WO2021203737A1 - Data processing method and apparatus, and computer readable storage medium - Google Patents

Data processing method and apparatus, and computer readable storage medium Download PDF

Info

Publication number
WO2021203737A1
WO2021203737A1 PCT/CN2020/138377 CN2020138377W WO2021203737A1 WO 2021203737 A1 WO2021203737 A1 WO 2021203737A1 CN 2020138377 W CN2020138377 W CN 2020138377W WO 2021203737 A1 WO2021203737 A1 WO 2021203737A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
module
external data
subsystem
auxiliary system
Prior art date
Application number
PCT/CN2020/138377
Other languages
French (fr)
Chinese (zh)
Inventor
周文杰
Original Assignee
出门问问信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202010274261.8A external-priority patent/CN111586653B/en
Priority claimed from CN202010274254.8A external-priority patent/CN111586652B/en
Priority claimed from CN202010274281.5A external-priority patent/CN111601372B/en
Priority claimed from CN202010274913.8A external-priority patent/CN111538400A/en
Application filed by 出门问问信息科技有限公司 filed Critical 出门问问信息科技有限公司
Publication of WO2021203737A1 publication Critical patent/WO2021203737A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Definitions

  • the present invention relates to the field of communication technology, and in particular to a data processing method, device, and computer-readable storage medium.
  • the main system when the main system is not awakened, the main system will be awakened once it receives an external notification message. Frequent waking up of the main system will increase the power consumption of the system.
  • the embodiments of the present invention provide a data processing method, a device, and a computer-readable storage medium, which have the technical effects of reducing system power consumption and improving battery life.
  • the present invention provides a data processing method applied to an auxiliary system.
  • the method includes: when determining that the main system is in a non-awake state, receiving external data through the auxiliary system; determining whether the received external data is Is the notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, then the data content in the external data is notified to the outside through the auxiliary system; if It is determined that the received external data is a notification type that is not supported by the auxiliary system, and then the auxiliary system provides an external prompt for the external data.
  • the method when it is determined that the main system is in a non-awake state, in the process of receiving external data through the auxiliary system, the method further includes: cutting off the communication connection between the main system and the outside, so that the The auxiliary system receives all external data.
  • the external notification of the data content of the external data in the auxiliary system includes: extracting key display content from the data content, and displaying the extracted key display content in the auxiliary system. Display on the screen of the system.
  • the external prompting for the external data in the auxiliary system includes: displaying an unread message prompt and icon information corresponding to the data content on a screen in the auxiliary system .
  • the auxiliary system includes a first subsystem and a second subsystem; the receiving external data through the auxiliary system includes: receiving external data through a data receiving module of the first subsystem; Correspondingly, the externally notifying the data content of the external data in the auxiliary system includes: displaying the data content of the external data on the screen of the second subsystem; correspondingly, the The external prompting for the external data in the auxiliary system includes: external prompting for the external data on the screen of the second subsystem.
  • the present invention provides a data processing device applied to an auxiliary system.
  • the device includes: an external data receiving module for receiving external data through the auxiliary system when it is determined that the main system is in a non-awake state;
  • the type judgment module is used to judge whether the received external data is the notification type supported by the auxiliary system;
  • the external notification module is used to determine whether the received external data is the auxiliary system through the notification type judgment module
  • the data content of the external data is notified to the outside through the auxiliary system;
  • the external prompt module is used to determine that the received external data is the auxiliary by the notification type judging module
  • the auxiliary system provides external prompts for the external data.
  • the external data receiving module is further specifically configured to: cut off the communication connection between the main system and the outside world in the process of receiving external data through the auxiliary system, so that the auxiliary system can receive all the external data. External data.
  • the external notification module is specifically configured to extract key display content from the data content, and display the extracted key display content on the screen of the auxiliary system.
  • the external prompt module is specifically configured to: display an unread message prompt and icon information corresponding to the data content on a screen in the auxiliary system.
  • the present invention provides a computer-readable storage medium.
  • the storage medium includes a set of computer-executable instructions, which are used to execute the data processing method described in any one of the above when the instructions are executed.
  • the notification type when the main system is in a non-wake-up state, once external data is received, the notification type can be filtered by the auxiliary system and displayed according to the notification type without awakening the main system.
  • the power consumption of the system is reduced, and the battery life of the system is increased.
  • the present invention provides a data processing device that includes an auxiliary system and a switch module: the switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-awakened state, wherein the The first control instruction is used to drive the main system to disconnect the communication connection with the outside world, the second control instruction is used to drive the auxiliary system to communicate with the outside world; the auxiliary system receives and responds to the second The control instruction is used to drive the data receiving module in the auxiliary system to receive external data; the auxiliary system is also used to notify the received external data.
  • the auxiliary system is specifically configured to notify the received external data through voice broadcast, display on a screen interface, or information transmission through the network.
  • the auxiliary system includes a first subsystem and a second subsystem; the data receiving module is installed in the first subsystem; the first subsystem is specifically used to transfer the received Data preprocessing is performed in the external data of the second sub-system to obtain intermediate data that can be jointly applied by the first subsystem and the second sub-system, and the obtained intermediate data is transmitted to the second sub-system; the second sub-system The system is specifically used to notify the transmitted intermediate data to the outside.
  • the first subsystem further specifically includes a first hardware interface module and a first service module; the data receiving module is installed in the first hardware interface module; the first hardware interface module It is used to transmit the external data received by the data receiving module to the first service module; the first service module performs data preprocessing on the external data to obtain intermediate data, and transfer the intermediate data To the second subsystem.
  • the first hardware interface module specifically transmits the external data to the first service module through the first hardware abstraction layer; the first service module specifically transmits the external data through the second hardware abstraction layer
  • the intermediate data is transmitted to the second subsystem.
  • the intermediate data is data content
  • the first service module is specifically configured to perform shelling processing from the external data to obtain the data content from the external data.
  • the second subsystem includes a second hardware interface module, a display screen, and a second service module; the second service module is used to receive the intermediate data and add to the intermediate data.
  • Shell processing to obtain specific data only for the second subsystem application, and transmit the obtained specific data to the second hardware interface module; install the display screen on the second hardware interface module, and According to the received specific data, the intermediate data in the specific data is displayed.
  • the second service module receives the intermediate data through a third hardware abstraction layer, and transmits the specific data to the second hardware interface module through a fourth hardware abstraction layer.
  • the switch module is further specifically configured to drive the auxiliary system to continue to receive and notify external data when the auxiliary system is in a working state and the main system changes from a non-awakened state to an awakened state.
  • the data receiving module is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  • the external data when external data is transmitted to the device, the external data is processed by the auxiliary system, thereby reducing the wake-up frequency of the main system, reducing the power consumption of the system, and achieving the purpose of improving battery life.
  • the present invention provides a data reading method applied to an auxiliary system
  • the auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other, and the method includes: determining that the main system is not awake In the state, the stored data is acquired through the memory in the second subsystem; the acquired stored data is transmitted to the first subsystem; the first subsystem is instructed to read the stored data.
  • the instructing the first subsystem to read the stored data includes: instructing the first subsystem to pack the received stored data to obtain only The specific data applied by the first subsystem; instruct the first subsystem to read the obtained specific data.
  • the present invention provides a data storage method applied to an auxiliary system
  • the auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other, and the method includes: determining that the main system is in a non-awake state When downloading, obtain external data through the data receiving module in the first subsystem, or, when it is determined that the main system is in an awake state, receive external data through the main system; transmit the obtained external data to the second Subsystem; instruct the second sub-system to store the external data obtained by the transmission in the memory.
  • the data receiving module is a Bluetooth low energy module; correspondingly, the obtaining external data through the data receiving module in the first subsystem includes: pairing with the Bluetooth low energy module
  • the method further includes: when it is determined that the main system is in an awake state, pairing with the device through the classic Bluetooth module in the main system, the low power The Bluetooth consuming module loses the pairing function; when it is determined that the main system is in a non-awake state, the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
  • the method further includes: in a state where the classic Bluetooth module has been paired with the device, if the main system is switched from the wake-up state to the non-wake-up state, the classic Bluetooth module is paired with the device. The device is disconnected; and the Bluetooth low energy module is instructed to send a pairing request instruction to the device to be paired.
  • the present invention provides a data reading device applied to an auxiliary system.
  • the auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other.
  • the device includes: a stored data acquisition module, Acquiring stored data through the memory in the second subsystem when determining that the main system is in a non-awake state; a stored data transmission module for transmitting the acquired stored data to the first subsystem;
  • the stored data reading module is used to instruct the first subsystem to read the stored data.
  • the present invention provides a data storage device applied to an auxiliary system.
  • the auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other.
  • the device includes: an external data acquisition module for When it is determined that the main system is in the non-awakened state, the external data is obtained through the data receiving module in the first subsystem, or when it is determined that the main system is in the awake state, the external data is received through the main system; the external data transmission module, It is used to transmit the acquired external data to the second subsystem; the external data storage module is used to instruct the second subsystem to store the transmitted external data in the memory.
  • the present invention provides a computer-readable storage medium, the storage medium including a set of computer-executable instructions, which are used to execute the data reading method described in any one of the foregoing when the instructions are executed.
  • the present invention provides a computer-readable storage medium.
  • the storage medium includes a set of computer-executable instructions, which are used to execute any of the above-mentioned data storage methods when the instructions are executed.
  • the present invention provides a communication switching method.
  • the method includes: when determining that the main system is in a non-awake state, receiving external data through the auxiliary system; determining the notification type of the received external data; When the notification type of the received external data is a specific notification type, the main system is awakened, and the main system is instructed to process the external data.
  • the method further includes: if it is determined that the notification type of the received external data is a normal notification type, instructing the auxiliary system to process the external data.
  • the instructing auxiliary system to process the external data includes: instructing the auxiliary system to notify the external data to the outside.
  • the method further includes: disconnecting the communication connection between the auxiliary system and the outside; when the main system After the processing is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
  • the waking up the main system and instructing the main system to process the external data includes: using a switch module to wake up the classic Bluetooth module in the main system and instruct the classic Bluetooth module Process the external data.
  • the present invention provides a communication switching device.
  • the device includes: an external data receiving module for receiving external data through the auxiliary system when determining that the main system is in a non-awake state; and a notification type determining module for Determine the notification type of the received external data; the first data processing module is used for waking up the main system when the notification type determining module determines that the notification type of the received external data is a specific notification type, and Instruct the main system to process the external data.
  • the device further includes: a second data processing module, configured to instruct the auxiliary system to process the notification type when the notification type of the received external data is determined by the notification type determination module to be a normal notification type External data.
  • a second data processing module configured to instruct the auxiliary system to process the notification type when the notification type of the received external data is determined by the notification type determination module to be a normal notification type External data.
  • the second data processing module is specifically configured to instruct the auxiliary system to notify the external data.
  • the first data processing module is specifically configured to: use a switch module to wake up the classic Bluetooth module in the main system, and instruct the classic Bluetooth module to process the external data.
  • the present invention provides a computer-readable storage medium, the storage medium including a set of computer-executable instructions, which are used to execute the communication switching method described in any one of the foregoing when the instructions are executed.
  • the type of external data is judged, and if it is a specific notification type, it is handed over to the main system to process the external data to ensure that all external data can be processed.
  • FIG. 1 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention.
  • FIG. 2 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the implementation flow of a data processing method according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention.
  • FIG. 11 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention.
  • 15 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention.
  • 16 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention.
  • FIG. 19 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention.
  • 20 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention.
  • 21 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention.
  • 22 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention.
  • FIG. 23 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention.
  • 24 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention.
  • 25 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention.
  • FIG. 26 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention.
  • FIG. 27 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention.
  • FIG. 28 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention.
  • 29 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention.
  • FIG. 30 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention.
  • FIG. 31 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention.
  • FIG. 32 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention.
  • FIG. 33 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention.
  • FIG. 34 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention.
  • 35 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention.
  • FIG. 36 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention. As shown in Figure 1, one aspect of the present invention provides a data processing device, which includes an auxiliary system and a switch module:
  • the switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-wake-up state, wherein the first control instruction is used to drive the main system to disconnect the communication connection with the outside world, and the second control instruction is used to drive the auxiliary system to communicate with the outside world. Communication connection with the outside world;
  • the auxiliary system receives and responds to the second control instruction to drive the data receiving module 11 in the auxiliary system to receive external data;
  • the auxiliary system is also used to notify the received external data.
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the switch module When the switch module captures that the main system is in a non-awakened state, it sends a first control instruction to the main system, and the first control instruction is used to disconnect the main system from the communication connection with the outside world. At the same time, the switch module sends a second control instruction to the auxiliary system. The second control instruction is used to establish a communication connection between the auxiliary system and the outside world. Outside the scope.
  • the auxiliary system receives and responds to the second control instruction sent by the switch module to drive the data receiving module 11 installed in the auxiliary system to communicate with the outside world to receive external data.
  • the external data includes phone notifications, short message notifications and application notifications, and the auxiliary system finally informs the received external data.
  • the data receiving module 11 is preferably BLE (Bluetooth Low Energy, Bluetooth Low Energy).
  • each system in the existing multi-system equipment will be equipped with a BLE module to achieve communication with the outside world when any system is working.
  • the BLE module in the main system can be optimized and reduced The occupancy rate of hardware resources in the device.
  • the switch module is also specifically used to drive the auxiliary system to continue receiving and to notify external data when the auxiliary system is in a working state and the main system changes from the non-wake-up state to the wake-up state.
  • the switch module when the auxiliary system is in the working state and the main system changes from the non-wake-up state to the wake-up state, the switch module will not block the communication connection between the auxiliary system and the outside world, and still receive external data through the auxiliary system. Further reduce the power consumption of the main system.
  • the auxiliary system is specifically used to notify the received external data through voice broadcast, or through display on a screen interface, or through information transmission through the network.
  • the auxiliary system may include hardware devices such as a sounder, a screen, and a wireless transceiver module.
  • the auxiliary system can notify the external data according to the type of the external data.
  • the types of the external data include image, audio, video and text. If the external data is image, video and text data If the external data is audio data, it will be notified through the sounder broadcast method; the received external data can also be transmitted to the external device through the network channel again The way to inform the public.
  • the object of external notification may be people, animals, equipment modules, and so on.
  • the auxiliary system includes a first sub-system 12 and a second sub-system 13;
  • the data receiving module 11 is installed in the first subsystem 12;
  • the first subsystem 12 is specifically used to perform data preprocessing on the received external data, to obtain intermediate data that can be jointly applied by the first subsystem 12 and the second subsystem 13, and to transmit the obtained intermediate data to The second subsystem 13;
  • the second subsystem 13 is specifically used to notify the transmitted intermediate data to the outside.
  • the first subsystem 12 is preferably an Apollo3+ type single-chip microcomputer in this embodiment
  • the second subsystem 13 is preferably an ST type single-chip microcomputer in this embodiment. 12 and the second subsystem 13 are connected in communication with each other.
  • the data receiving module 11 is installed in the first sub-system 12. Since different sub-systems can only process the data identified or supported by them, the data receiving module 11 (ie BLE in the figure) will receive the data through the first sub-system 12 Perform data preprocessing on the received external data to obtain intermediate data that can be jointly used by the first subsystem 12 and the second subsystem 13, and transmit the intermediate data to the second subsystem 13, and the second subsystem 13 transmits the obtained intermediate data. Of the intermediate data.
  • the first subsystem 12 further specifically includes a first hardware interface module 14 and a first service module 15;
  • the data receiving module 11 is installed in the first hardware interface module 14;
  • the first hardware interface module 14 is used to transmit the external data received by the data receiving module 11 to the first service module 15;
  • the first service module 15 performs data preprocessing on external data to obtain intermediate data, and transmits the intermediate data to the second subsystem 13.
  • the first hardware interface module 14 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), QSPI/SPI (QSPI: Queued Serial Peripheral Interface, serial peripheral interface; /SPI: Serial Peripheral) Interface, serial peripheral interface), DMA (Direct Memory Access, direct memory access), I2S/PCM (I2S: Inter-IC Sound, integrated circuit built-in audio bus; PCM: Pulse-code modulation) and other hardware or Interface, so the first hardware interface module 14 can be installed on the first hardware interface module 14, such as LCD (Liquid Crystal Display), FG (Fual Guard, hardware fuel gauge), Sen (Sensors), BlE (Bluetooth Low Energy, low power consumption) Bluetooth), AI (Audio In, audio input) and Mic (Microphone, microphone) and other hardware devices.
  • the data receiving module 11 ie, BLE in the figure
  • the data receiving module 11 can be connected to the first hardware interface module 14 according to its own interface type.
  • the first hardware interface module 14 is used to transmit the external data received by the data receiving module 11 to the first service module 15.
  • the first service module 15 is the processing core of the first subsystem 12, and is used to process data in the first subsystem 12. Since the first subsystem 12 is preferably an Apollo3+ single-chip microcomputer, correspondingly, the first service module 15 is preferably Apollo3+Service module.
  • the external data is preprocessed by the first service module 15 to obtain intermediate data, and the intermediate data is transmitted to the second subsystem 13 through the first service module 15.
  • the first hardware interface module 14 specifically transmits external data to the first service module 15 through the first hardware abstraction layer 16;
  • the first service module 15 specifically transmits the intermediate data to the second subsystem 13 through the second hardware abstraction layer 17.
  • the first hardware abstraction layer 16 and the second hardware abstraction layer 17 are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
  • the intermediate data is data content
  • the first service module 15 is specifically configured to perform shelling processing from external data to obtain data content from the external data.
  • the external data received by the data receiving module 11 includes features that can be recognized or supported by the first subsystem 12 (mainly the first hardware interface module 14 or hardware under the first subsystem 12) Information and data content, therefore, the first service module 15 needs to shell out the external data, specifically deleting the characteristic information from the external data, and only retaining the data content.
  • the second subsystem 13 includes a second hardware interface module 18, a display screen 19, and a second service module;
  • the second service module is used to receive intermediate data, and pack the intermediate data to obtain specific data that is only used by the second subsystem 13 and transmit the obtained specific data to the second hardware interface module 18;
  • a display screen 19 is installed on the second hardware interface module 18, and according to the received specific data, the intermediate data in the specific data is displayed.
  • the second hardware interface module 18 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), SPI-M (Serial Peripheral Interface Master, serial peripheral interface), and DMA (Direct Memory). Access, direct memory access) and other hardware or interfaces, so that OLED (Organic Light-Emitting Diode, organic light-emitting semiconductor), Tou (Touch), GPS (Global Positioning System) can be installed in the second subsystem 13 System) and K (KEY, keyboard) and other hardware devices.
  • I2C-M Inter-Integrated Circuit Master, integrated circuit bus
  • SPI-M Serial Peripheral Interface Master, serial peripheral interface
  • DMA Direct Memory
  • Access direct memory access
  • OLED Organic Light-Emitting Diode, organic light-emitting semiconductor
  • Tou Touch
  • GPS Global Positioning System
  • the display screen 19 is preferably an OLED screen, which is installed on the second hardware interface module 18 according to its own interface type, so as to realize the communication connection between the second hardware interface module 18 and the display screen 19.
  • the second service module corresponds to an ST Service module, which is used to process data operations in the second subsystem 13.
  • the second service module is mainly used to pack the received intermediate data, specifically: adding characteristic information that can be recognized or supported by the second hardware interface module 18 and the hardware to the intermediate data, Generate specific data.
  • the second service module transmits the generated specific data to the second hardware interface module 18, and the second hardware interface module 18 receives the specific data and displays the intermediate data through the display screen 19.
  • the second service module receives intermediate data through the third hardware abstraction layer 110, and transmits specific data to the second hardware interface module 18 through the fourth hardware abstraction layer 111.
  • the third hardware abstraction layer 110 and the fourth hardware abstraction layer 111 are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
  • the data receiving module 11 is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  • the data receiving module 11 is mainly used to receive external data, which can be specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  • the data receiving module 11 is preferably a BLE module (low Bluetooth power consumption).
  • FIG. 2 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention.
  • another aspect of the embodiment of the present invention provides a data reading method, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 12 and a second subsystem 13 that are communicatively connected to each other.
  • the method includes:
  • Step 1101 Acquire stored data through the memory 112 in the second subsystem 13 when it is determined that the main system is in a non-awake state;
  • Step 1102 Transmit the acquired stored data to the first subsystem 12;
  • Step 1103 instruct the first subsystem 12 to read the stored data.
  • the structural relationship between the main system and the auxiliary system and the structure of the auxiliary system can refer to FIG. 1.
  • the stored data is obtained through the memory 112 in the second sub-system 13, wherein the working state judgment process of the main system can be obtained and judged through the switch module; the memory 112 is pre-installed
  • the second subsystem 13 is specifically a memory based on NF (Nor flash, non-volatile flash memory technology) for storing data.
  • the first subsystem 12 is instructed to read the stored data, where the read operation in this embodiment includes the display and broadcast of the data; if the stored data is audio data, the read operation is broadcast; if the data is stored If it is text information, the reading operation at this time is display.
  • the second subsystem 13 includes a second service module. Therefore, the specific process of step 1101 and step 1102 is: when it is determined that the main system is in a non-awake state, the second service module obtains the memory The stored data in 112 is transmitted to the first subsystem 12 through the third hardware abstraction layer 110 through the second service module.
  • instructing the first subsystem 12 to read the stored data includes:
  • the specific process of step 1103 is: instruct the first subsystem 12 to pack the received stored data to obtain specific data that can only be used by the first subsystem 12, specifically: in the original data Based on the addition of feature information that can be identified or supported by the first subsystem 12, specific data is generated, and the specific data can be identified by the interface module or hardware in the first subsystem 12, so that the interface module or hardware The specific data being read.
  • the first subsystem 12 there are multiple different reading methods for the first subsystem 12, and different specific data corresponds to different reading methods, and corresponding hardware cooperation is required. If it is assumed that the extracted stored data is audio data, Sounder hardware is required, and the hardware needs to be installed in the I2S/PCM interface in the first hardware interface module 14. After the acquired stored data is transmitted to the first subsystem 12 in step 1101, the first service module 15 of the first subsystem 12 receives the stored data and packs it to obtain specific data, and then transfers the specific data It is transmitted to the sounder in the second interface module to broadcast audio data.
  • FIG. 3 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention.
  • another aspect of the embodiment of the present invention is a data storage method, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 12 and a second subsystem 13 that are communicatively connected to each other.
  • the method includes:
  • Step 1201 When it is determined that the main system is in a non-awake state, obtain external data through the data receiving module 11 in the first subsystem 12,
  • the slave receives external data through the main system
  • Step 1202 Transmit the acquired external data to the second subsystem 13;
  • Step 1203 Instruct the second subsystem 13 to store the external data obtained by the transmission in the memory 112.
  • the data receiving module 11 is mainly used to receive data from the outside world. Specifically, it can be one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In this embodiment, The data receiving module 11 is preferably BLE (Bluetooth Low Energy).
  • step 1201 when it is determined that the main system is in a non-awake state, the switch module causes the other auxiliary system to start working. At this time, the data receiving module 11 in the first sub-system 12 receives external data; When the system is in an awake state, the main system is in communication connection with the memory 112, and the receiving module in the main system, such as a classic Bluetooth module, is used to receive external data.
  • the obtained external data is transmitted to the second subsystem 13, specifically: if the external data is received through the first subsystem 12, the received external data is sequentially passed through the first hardware interface module 14, the first hardware abstraction layer 16.
  • the first service module 15 and the second hardware abstraction layer 17 are then transmitted to the second subsystem 13; if the external data is received through the main system, the output interface of the main system is used to transmit the external data to the second subsystem 13 In the memory 112.
  • the second subsystem 13 is instructed to store the external data obtained by the transmission in the memory 112, and the specific process is: the external data is stored in the memory 112 after sequentially passing through the third abstraction layer and the second service module.
  • the data receiving module 11 is a Bluetooth low energy module
  • obtaining external data through the data receiving module 11 in the first subsystem 12 includes:
  • the main system includes classic Bluetooth module
  • receiving external data from the main system includes:
  • the data receiving module 11 is a low-power Bluetooth module
  • the main system includes a classic Bluetooth module; therefore, step 1201 specifically includes: obtaining external data through a device paired with the low-power Bluetooth module, and from the main system The device paired with the classic Bluetooth module obtains external data.
  • the method further includes:
  • the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
  • only one side of the main system and the auxiliary system can perform data receiving Bluetooth pairing.
  • the classic Bluetooth module in the main system is paired with the device to receive external data from the device.
  • the Bluetooth low energy module loses its pairing function;
  • the Bluetooth low energy module in the auxiliary system is paired with the device to receive external data from the paired device.
  • the classic Bluetooth The module loses the pairing function, and the opening and closing of the pairing function can be controlled by the switch module.
  • the method further includes: in a state where the classic Bluetooth module is paired with the device, if the main system is switched from the wake-up state to the non-wake-up state, the classic Bluetooth module is disconnected from the paired device;
  • the switch module controls the classic Bluetooth module in the main system to disconnect the communication connection with the paired device. And start the Bluetooth low energy module in the auxiliary system. At this time, the Bluetooth low energy module sends a pairing request to the disconnected device, and the disconnected device can respond to the request to establish a communication connection again.
  • FIG. 4 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention.
  • another aspect of the embodiment of the present invention provides a data reading device, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 12 and a second subsystem 13 that are communicatively connected to each other, and the device includes:
  • the stored data acquisition module 1301 is configured to acquire the stored data through the memory 112 in the second subsystem 13 when it is determined that the main system is in the non-awake state;
  • the stored data transmission module 1302 is used to transmit the acquired stored data to the first subsystem 12;
  • the stored data reading module 1303 is used to instruct the first subsystem 12 to read the stored data.
  • the structural relationship diagram of the main system and the auxiliary system can refer to FIG. 1.
  • the stored data acquisition module 1301 determines that the main system is in a non-awake state
  • the stored data is acquired through the memory 112 in the second sub-system 13, where the working state judgment process of the main system can be judged by the switch module;
  • the memory 112 is installed in the second subsystem 13 for storing data.
  • the stored data reading module 1303 instructs the first subsystem 12 to read the stored data.
  • the reading operation in this embodiment includes the display and broadcasting of the data; if the stored data is audio data, the read The operation is broadcast; if the stored data is text information, the read operation at this time is display.
  • FIG. 5 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention. As shown in FIG. 5, another aspect of the embodiment of the present invention provides a data storage device, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 12 and a second subsystem 13 that are communicatively connected to each other, and the device includes:
  • the external data acquisition module 1401 is used to acquire external data through the data receiving module 11 in the first subsystem 12 when it is determined that the main system is in a non-awake state,
  • the slave receives external data through the main system
  • the external data transmission module 1402 is used to transmit the acquired external data to the second subsystem 3;
  • the external data storage module 1403 is used to instruct the second subsystem 13 to store the external data obtained by the transmission in the memory 112.
  • the data receiving module 11 in the first sub-system 12 obtains external data, or, when the main system is determined When the system is awake, it receives external data from the main system.
  • the working status of the main system can be judged by the switch module.
  • the data receiving module 11 is mainly used to receive data from the outside world. Specifically, it can be one of the Bluetooth module, the wireless receiving and sending module, the wireless receiving and sending module, and the wired receiving and sending module. 1.
  • the data receiving module 11 is preferably BLE (Bluetooth Low Energy).
  • the external data acquisition module 1401 is specifically: when it is determined that the main system is in a non-awake state, the main system disconnects the communication connection with the memory 112, and the switch module causes the auxiliary system to start working. At this time, the data receiving module in the first subsystem 12 11 to receive external data; when it is determined that the main system is in an awake state, the main system communicates with the memory 112, and receives external data through a receiving module in the main system, such as a classic Bluetooth module.
  • the acquired external data is transmitted to the second subsystem 13 through the external data transmission module 1402, specifically: if the external data is received through the first subsystem 12, the received external data is sequentially passed through the first hardware interface module 14 , The first hardware abstraction layer 16, the first service module 15, and the second hardware abstraction layer 17 are then transmitted to the second subsystem 13; if the external data is received through the main system, the external data is transmitted to the Two subsystem 13.
  • the external data storage module 1403 instructs the second subsystem 13 to store the transmitted external data in the memory 112.
  • the specific process is: the external data is stored in the memory 112 after sequentially passing through the third abstraction layer and the second service module. .
  • the storage medium includes a set of computer-executable instructions, which are used to execute a data reading method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When the instructions are executed, they are used to obtain stored data through the memory 112 in the second subsystem 13 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 12; instruct the first subsystem 12 to read the stored data.
  • the storage medium includes a set of computer-executable instructions, which are used to execute a data storage method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain stored data through the memory 112 in the second subsystem 13 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 12; instruct the first subsystem 12 to read the stored data
  • the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain the data through the data receiving module 11 in the first subsystem 12 when it is determined that the main system is in a non-awake state. External data, or, when it is determined that the main system is in an awake state, receive external data from the main system; transmit the obtained external data to the second subsystem 13; instruct the second subsystem 13 to store the external data obtained by the transmission To the memory 112.
  • FIG. 6 is a schematic diagram of the implementation process of a data processing method according to an embodiment of the present invention. As shown in FIG. 6, another aspect of the embodiment of the present invention provides a data processing method, which is applied to an auxiliary system, and the method includes:
  • Step 1501 When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
  • Step 1502 Determine whether the received external data is a notification type supported by the auxiliary system
  • Step 1503 If it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system;
  • Step 1504 If it is determined that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides an external prompt for the external data.
  • the auxiliary system receives external data.
  • the non-wake-up state includes sleep, hibernation, and shutdown states.
  • the external data includes phone notifications, SMS notifications, and application notifications.
  • the supported notification type is usually set in advance in the system.
  • the SMS notification function and location notification function are preset in the mobile phone operating system on the market.
  • the corresponding SMS notification type, location notification type, and some application notification data are data supported by the auxiliary system, and other external data are data that the auxiliary system does not support.
  • the data may be supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
  • the data content in the external data is notified to the outside through the auxiliary system.
  • the external notification is specifically to display the data content on the screen. , Or broadcast the data content to the outside through the sounder, or transmit the data content to other devices through the network.
  • the auxiliary system will provide an external prompt for the external data.
  • the external prompt is specifically a message notification prompt displayed on the screen, The message notification prompt or light prompt is broadcasted to indicate the arrival of the notification message, but the data content in it is not displayed.
  • the user can actively wake up the main system according to the notification prompt to view or process it.
  • notification types can be filtered through the auxiliary system and displayed according to the notification type, without awakening the main system, thereby reducing system Power consumption increases the battery life of the system.
  • the method further includes:
  • the communication connection between the main system and the outside world is cut off, so as to prevent the data receiving module 11 in the main system from receiving external data, which will cause the main system to wake up, so that the auxiliary system can receive all external data.
  • this step is specifically as follows: cut off the communication connection between the main system and the outside through the switch module communicatively connected with the main system and the auxiliary system, and drive the data receiving module 11 in the auxiliary system to receive all Outside news.
  • the auxiliary system includes a first sub-system 12 and a second sub-system 13;
  • auxiliary systems including:
  • the data content of external data is notified to the outside in the auxiliary system, including:
  • external prompts for external data in the auxiliary system include:
  • the auxiliary system includes a first subsystem 12 and a second subsystem 13.
  • step 1501 receives external data through the data receiving module 11 of the first subsystem 12. Specifically: further, the received external data is transmitted to the first service module 15 through the first hardware interface module 14 and the first hardware abstraction layer 16. The first service module 15 extracts the data content of external data and transmits the data content to the second subsystem 13. The second subsystem 13 transmits the data content to the second service module through the third hardware abstraction layer 110, and uses the second service module to judge the notification type of the data content and pack it.
  • step 1503 if the notification type is a supported type, the data content is displayed on the screen through the fourth hardware abstraction layer 111 and the second hardware interface module 18.
  • step 1504 The specific process of step 1504 is: if the notification type is an unsupported type, the screen displays the message prompt information.
  • the external notification of the data content of the external data in the auxiliary system includes:
  • the key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
  • the extraction method can be achieved through a trained neural network model.
  • the general steps of training the neural network model are:
  • the relevant training corpus and the corresponding result are used as the input of the neural network model to obtain the output result. If the output result deviates greatly from the corresponding real result, continue training with the corpus until the output result is between the corresponding real result The training is completed when the deviation is within the preset range.
  • the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 1, it is specifically displayed on the OLED screen in the second subsystem 13.
  • the external prompt for external data in the auxiliary system includes:
  • step 1504 is specifically: displaying an unread message prompt and icon information corresponding to the data content on the screen in the auxiliary system.
  • the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
  • FIG. 7 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the present invention. As shown in FIG. 7, another aspect of the embodiment of the present invention provides a data processing device, which is applied to an auxiliary system, and the device includes:
  • the external data receiving module 1601 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
  • the notification type judgment module 1602 is used to judge whether the received external data is a notification type supported by the auxiliary system
  • the external notification module 1603 is configured to, if the notification type determining module 1602 determines that the received external data is a notification type supported by the auxiliary system, then externally notify the data content of the external data through the auxiliary system;
  • the external prompting module 1604 is configured to, if the notification type judging module 1602 determines that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides external prompts for the external data.
  • the external data receiving module 1601 first receives external data through the auxiliary system when it is determined that the main system is in the non-awakened state.
  • the non-awakened state includes the sleep state, the hibernation state, and the off state, and the external data includes phone notifications and short messages. Notifications and application notifications, etc.
  • the notification type judgment module 1602 judges whether the received external data is a notification type supported by the auxiliary system.
  • the supported notification type is usually set in advance in the system, for example, a short message is preset in the mobile phone operating system on the market. Notification function, location notification function and some cooperative third-party applications, etc.
  • the corresponding SMS notification type, location notification type and some application notification data are data supported by the auxiliary system, and other external data is auxiliary Data not supported by the system, but the data is supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
  • the notification type determination module 1602 determines that the received external data is a notification type supported by the auxiliary system
  • the external notification module 1603 will notify the data content in the external data through the auxiliary system.
  • the external notification is in this
  • the data content is specifically displayed on the screen, or the data content is broadcast to the outside through a sounder, or the data content is transmitted to other devices through the network.
  • the notification type determination module 1602 determines that the received external data is a notification type that is not supported by the auxiliary system
  • the external notification module 1604 provides external notifications for the external data through the auxiliary system.
  • the external notification in this embodiment is specifically The screen displays the message notification prompt, broadcasts the message notification prompt or light prompt on the sounder to indicate the receipt of the notification message, but does not display the data content.
  • the user can actively wake up the main system to view or process them.
  • the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
  • the external data receiving module 1601 is also specifically configured to: in the process of receiving external data through the auxiliary system:
  • the external data receiving module 1601 during the execution of the external data receiving module 1601, it is also specifically used to cut off the communication connection between the main system and the outside world, so as to prevent the data receiving module 11 in the main system from receiving external data, causing the main system to be awakened.
  • the auxiliary system receives all external data.
  • the external notification module 1603 is specifically configured to:
  • the key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
  • the external notification module 1603 is specifically used to extract key display content in the data content, and the extraction method can be through trained
  • the neural network model is implemented, and the general steps for training the neural network model are:
  • the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 1, it is specifically displayed on the OLED screen in the second subsystem 13.
  • the external prompting module 1604 is specifically configured to:
  • the external prompting module 1604 is specifically configured to display unread message prompts and icon information corresponding to data content on the screen in the auxiliary system.
  • the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
  • the storage medium includes a set of computer-executable instructions, which are used to execute a data processing method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data Whether it is the notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, the data content in the external data will be notified to the outside through the auxiliary system; if the received external data is determined For notification types that are not supported by the auxiliary system, the auxiliary system will provide external notifications for external data.
  • notification types can be filtered through the auxiliary system and displayed according to the notification type, without awakening the main system, thereby reducing system Power consumption increases the battery life of the system.
  • FIG. 8 is a schematic diagram of the implementation process of a communication switching method according to an embodiment of the present invention. As shown in FIG. 8, another aspect of the embodiment of the present invention provides a communication switching method, and the method includes:
  • Step 1701 When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
  • Step 1702 Determine the notification type of the received external data
  • Step 1703 If it is determined that the notification type of the received external data is a specific notification type, wake up the main system and instruct the main system to process the external data.
  • the auxiliary system receives external data.
  • the non-wake-up state includes sleep, hibernation, and shutdown states.
  • the external data includes phone notifications, SMS notifications, and application notifications.
  • the notification type of the received external data where the notification type is usually set in advance in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
  • the main system is awakened and the main system is instructed to process the external data.
  • the specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc.
  • the communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type.
  • the switch module determines that the main system is in a non-awake state
  • the data receiving module 11 in the auxiliary system receives external data, and then transmits the external data to the first service module 15, and
  • the first service module 15 determines whether the external data is of a specific notification type, and if it determines that the external data is of a specific notification type, it wakes up the main system through the switch module and instructs the main system to process the specific notification type.
  • the method further includes:
  • the auxiliary system is instructed to process the external data.
  • the auxiliary system if it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data.
  • the normal notification type is defined as a notification type other than the specific notification type in this embodiment. For example, calendar notifications, alarm clock notifications, etc.
  • the common notification type is processed in the second service module in the second subsystem 13.
  • instructing the auxiliary system to process external data includes:
  • the specific process of the step "instruct the auxiliary system to process external data” is: instruct the data receiving module 11 in the first subsystem 12 to receive external data, and the first subsystem 12 transmits the external data to The second subsystem 13, the second subsystem 13 informs externally according to the data content of the external data.
  • the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders ; It can also be a notification of external information transmission, which can be used for the transmission of some intermediate data.
  • the method further includes:
  • the auxiliary system After the processing of the main system is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
  • the communication connection between the auxiliary system and the outside world is disconnected.
  • the communication connection between the data receiving module 11 and the outside world is specifically disconnected.
  • waking up the main system and instructing the main system to process external data includes:
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
  • FIG. 9 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention. As shown in FIG. 9, another aspect of the embodiment of the present invention provides a communication switching device, which includes:
  • the external data receiving module 1801 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
  • the notification type judgment module 1802 is used to judge the notification type of the received external data
  • the first data processing module 1803 is configured to wake up the main system and instruct the main system to process the external data when the notification type judging module 1802 determines that the notification type of the received external data is a specific notification type.
  • the external data receiving module 1801 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state.
  • the non-awakened state includes sleep state, hibernation state, and shutdown state, and the external data includes phone notifications and short messages. Notifications and application notifications, etc.
  • the notification type judgment module 1802 judges the notification type of the received external data, where the notification type is usually preset in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
  • the notification type determining module 1802 determines that the notification type of the received external data is a specific notification type
  • the first data processing module 1803 wakes up the main system and instructs the main system to process the external data.
  • the specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc.
  • the communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type.
  • the device further includes:
  • the second data processing module 1804 is configured to instruct the auxiliary system to process the external data if it is determined that the notification type of the received external data is a normal notification type.
  • the notification type judging module 1802 determines that the notification type of the received external data is a common notification type
  • the second data processing module 1804 instructs the auxiliary system to process the external data.
  • the common notification type is described in this embodiment. In the example, it is defined as a notification type other than a specific notification type, such as calendar notification, alarm notification, and so on.
  • the second data processing module 1804 is specifically configured to:
  • the second data processing module 1804 is specifically used to: instruct the data receiving module 11 in the first subsystem 12 to receive external data, and the first subsystem 12 to transmit the external data to the second Subsystem 13, the second subsystem 13 informs externally according to the data content of external data, where the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
  • the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
  • the first data processing module 1803 is specifically configured to:
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
  • the storage medium includes a set of computer-executable instructions, which are used to execute a communication switching method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data The notification type; if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data.
  • FIG. 10 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention. As shown in Figure 10, one aspect of the present invention provides a data processing device, which includes an auxiliary system and a switch module:
  • the switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-wake-up state, wherein the first control instruction is used to drive the main system to disconnect the communication connection with the outside world, and the second control instruction is used to drive the auxiliary system to communicate with the outside world. Communication connection with the outside world;
  • the auxiliary system receives and responds to the second control instruction to drive the data receiving module 21 in the auxiliary system to receive external data;
  • the auxiliary system is also used to notify the received external data.
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the switch module When the switch module captures that the main system is in a non-awakened state, it sends a first control instruction to the main system, and the first control instruction is used to disconnect the main system from the communication connection with the outside world. At the same time, the switch module sends a second control instruction to the auxiliary system. The second control instruction is used to establish a communication connection between the auxiliary system and the outside world. Outside the scope.
  • the auxiliary system receives and responds to the second control command sent by the switch module to drive the data receiving module 21 installed in the auxiliary system to communicate with the outside world to receive external data.
  • the external data includes phone notifications, short message notifications and application notifications, and the auxiliary system finally informs the received external data.
  • the data receiving module 21 is preferably BLE (Bluetooth Low Energy, Bluetooth Low Energy).
  • each system in the existing multi-system equipment will be equipped with a BLE module to achieve communication with the outside world when any system is working.
  • the BLE module in the main system can be optimized and reduced The occupancy rate of hardware resources in the device.
  • the switch module is also specifically used to drive the auxiliary system to continue receiving and to notify external data when the auxiliary system is in a working state and the main system changes from the non-wake-up state to the wake-up state.
  • the switch module when the auxiliary system is in the working state and the main system changes from the non-wake-up state to the wake-up state, the switch module will not block the communication connection between the auxiliary system and the outside world, and still receive external data through the auxiliary system. Further reduce the power consumption of the main system.
  • the auxiliary system is specifically used to notify the received external data through voice broadcast, or through display on a screen interface, or through information transmission through the network.
  • the auxiliary system may include hardware devices such as a sounder, a screen, and a wireless transceiver module.
  • the auxiliary system can notify the external data according to the type of the external data.
  • the types of the external data include image, audio, video and text. If the external data is image, video and text data If the external data is audio data, it will be notified through the sounder broadcast method; the received external data can also be transmitted to the external device through the network channel again The way to inform the public.
  • the object of external notification may be people, animals, equipment modules, and so on.
  • the auxiliary system includes a first subsystem 22 and a second subsystem 23;
  • the data receiving module 21 is installed in the first subsystem 22;
  • the first subsystem 22 is specifically used to perform data preprocessing on the received external data, to obtain intermediate data that can be jointly applied by the first subsystem 22 and the second subsystem 23, and to transmit the obtained intermediate data to The second subsystem 23;
  • the second subsystem 23 is specifically used to notify the transmitted intermediate data to the outside.
  • the first subsystem 22 is preferably an Apollo3+ type single-chip microcomputer in this embodiment
  • the second subsystem 23 is preferably an ST type single-chip microcomputer in this embodiment. 22 and the second subsystem 23 are connected in communication with each other.
  • the data receiving module 21 is installed in the first sub-system 22. Since different sub-systems can only process the data identified or supported by them, the data receiving module 21 (ie BLE in the figure) will receive the data through the first sub-system 22. Perform data preprocessing on the received external data to obtain intermediate data that can be jointly used by the first subsystem 22 and the second subsystem 23, and transmit the intermediate data to the second subsystem 23, and the second subsystem 23 transmits the obtained intermediate data. Of the intermediate data.
  • the first subsystem 22 further specifically includes a first hardware interface module 24 and a first service module 25;
  • the data receiving module 21 is installed in the first hardware interface module 24;
  • the first hardware interface module 24 is used to transmit the external data received by the data receiving module 21 to the first service module 25;
  • the first service module 25 performs data preprocessing on external data to obtain intermediate data, and transmits the intermediate data to the second subsystem 23.
  • the first hardware interface module 24 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), QSPI/SPI (QSPI: Queued Serial Peripheral Interface, serial peripheral interface; /SPI: Serial Peripheral) Interface, serial peripheral interface), DMA (Direct Memory Access, direct memory access), I2S/PCM (I2S: Inter-IC Sound, integrated circuit built-in audio bus; PCM: Pulse-code modulation) and other hardware or Interface, so the first hardware interface module 24 can be installed on the first hardware interface module 24 such as LCD (Liquid Crystal Display), FG (Fual Guard, hardware fuel gauge), Sen (Sensors), BlE (Bluetooth Low Energy, low power consumption) Bluetooth), AI (Audio In, audio input) and Mic (Microphone, microphone) and other hardware devices.
  • the data receiving module 21 ie, BLE in the figure
  • the data receiving module 21 can be connected to the first hardware interface module 24 according to its own interface type.
  • the first hardware interface module 24 is used to transmit the external data received by the data receiving module 21 to the first service module 25.
  • the first service module 25 is the processing core of the first subsystem 22, and is used to process data in the first subsystem 22. Since the first subsystem 22 is preferably an Apollo3+ type single-chip microcomputer, correspondingly, the first service module 25 is preferably Apollo3+Service module.
  • the external data is preprocessed through the first service module 25 to obtain intermediate data, and the intermediate data is transmitted to the second subsystem 23 through the first service module 25.
  • the first hardware interface module 24 specifically transmits external data to the first service module 25 through the first hardware abstraction layer 26;
  • the first service module 25 specifically transmits the intermediate data to the second subsystem 23 through the second hardware abstraction layer 27.
  • the first hardware abstraction layer 26 and the second hardware abstraction layer 27 are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
  • the intermediate data is data content
  • the first service module 25 is specifically configured to perform shelling processing from external data to obtain data content from the external data.
  • the external data received by the data receiving module 21 includes features that can be recognized or supported by the first subsystem 22 (mainly the first hardware interface module 24 or hardware under the first subsystem 22) Information and data content, therefore, the first service module 25 needs to shell out the external data, specifically deleting the characteristic information from the external data, and only retaining the data content.
  • the second subsystem 23 includes a second hardware interface module 28, a display screen 29, and a second service module;
  • the second service module is used to receive intermediate data, and pack the intermediate data to obtain specific data that is only used by the second subsystem 23, and transmit the obtained specific data to the second hardware interface module 28;
  • a display screen 29 is installed on the second hardware interface module 28, and according to the received specific data, the intermediate data in the specific data is displayed.
  • the second hardware interface module 28 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), SPI-M (Serial Peripheral Interface Master, serial peripheral interface), and DMA (Direct Memory). Access, direct memory access) and other hardware or interfaces, so that OLED (Organic Light-Emitting Diode, organic light-emitting semiconductor), Tou (Touch, touch panel), GPS (Global Positioning System, global positioning system) can be installed in the second subsystem 23 System) and K (KEY, keyboard) and other hardware devices.
  • I2C-M Inter-Integrated Circuit Master, integrated circuit bus
  • SPI-M Serial Peripheral Interface Master, serial peripheral interface
  • DMA Direct Memory
  • Access direct memory access
  • OLED Organic Light-Emitting Diode, organic light-emitting semiconductor
  • Tou Touch, touch panel
  • GPS Global Positioning System, global positioning system
  • K Key, keyboard
  • the display screen 29 is preferably an OLED screen, which is installed on the second hardware interface module 28 according to its own interface type, so as to realize the communication connection between the second hardware interface module 28 and the display screen 29.
  • the second service module corresponds to an ST Service module, which is used to process data operations in the second subsystem 23.
  • the second service module is mainly used to pack the received intermediate data, specifically: adding characteristic information that can be recognized or supported by the second hardware interface module 28 and the hardware to the intermediate data, Generate specific data.
  • the second service module transmits the generated specific data to the second hardware interface module 28, and the second hardware interface module 28 receives the specific data and displays the intermediate data through the display screen 29.
  • the second service module receives intermediate data through the third hardware abstraction layer 210, and transmits specific data to the second hardware interface module 8 through the fourth hardware abstraction layer 211.
  • the third hardware abstraction layer 210 and the fourth hardware abstraction layer 211 are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
  • the data receiving module 21 is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  • the data receiving module 21 is mainly used to receive external data, which can be specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  • the data receiving module 21 is preferably a BLE module (low Bluetooth power consumption).
  • FIG. 11 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention.
  • another aspect of the embodiment of the present invention provides a data reading method, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 22 and a second subsystem 23 that are communicatively connected to each other.
  • the method includes:
  • Step 2101 Acquire stored data through the memory 212 in the second subsystem 23 when it is determined that the main system is in a non-awake state;
  • Step 2102 Transmit the acquired stored data to the first subsystem 22;
  • Step 2103 instruct the first subsystem 22 to read the stored data.
  • the structural relationship between the main system and the auxiliary system and the structure of the auxiliary system can refer to FIG. 10.
  • the stored data is obtained through the memory 212 in the second sub-system 23, and the judgment process of the working state of the main system can be obtained through the switch module; the memory 212 is pre-installed In the second subsystem 23, specifically, a memory based on NF (Nor flash, non-volatile flash memory technology) is used to store data.
  • NF Nor flash, non-volatile flash memory technology
  • the first subsystem 22 is instructed to read the stored data, where the reading operation in this embodiment includes the display and broadcasting of the data; if the stored data is audio data, the reading operation is broadcasting; if the data is already stored If it is text information, the reading operation at this time is display.
  • the second subsystem 23 includes a second service module. Therefore, the specific process of step 2101 and step 2102 is: when it is determined that the main system is in a non-awake state, the second service module obtains the memory The stored data in 212 is transmitted to the first subsystem 22 through the third hardware abstraction layer 210 through the second service module.
  • instructing the first subsystem 22 to read the stored data includes:
  • the specific process of step 2103 is: instructing the first subsystem 22 to pack the received stored data to obtain specific data that can only be used by the first subsystem 22, specifically: in the original data
  • specific data is generated, and the specific data can be recognized by the interface module or hardware in the first subsystem 22, so that the interface module or hardware The specific data being read.
  • the first subsystem 22 there are many different reading methods for the first subsystem 22. Different specific data corresponds to different reading methods and requires corresponding hardware cooperation. If it is assumed that the extracted stored data is audio data, Sounder hardware is required, and the hardware needs to be installed in the I2S/PCM interface in the first hardware interface module 24. After the acquired stored data is transmitted to the first subsystem 22 in step 2101, the first service module 25 of the first subsystem 22 receives the stored data and packs it to obtain specific data, and then transfers the specific data It is transmitted to the sounder in the second interface module to broadcast the audio data.
  • FIG. 12 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention.
  • another aspect of the embodiment of the present invention is a data storage method, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 22 and a second subsystem 23 that are communicatively connected to each other.
  • the method includes:
  • Step 2201 When it is determined that the main system is in a non-awake state, obtain external data through the data receiving module 21 in the first subsystem 22,
  • the slave receives external data through the main system
  • Step 2202 Transmit the acquired external data to the second subsystem 23;
  • Step 2203 Instruct the second subsystem 23 to store the transmitted external data in the memory 212.
  • the data receiving module 21 is mainly used to receive data from the outside world, which can be specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  • the data receiving module 21 is preferably BLE (Bluetooth Low Energy).
  • step 2201 when it is determined that the main system is in a non-awake state, the switch module causes the other auxiliary system to start working. At this time, the data receiving module 21 in the first subsystem 22 receives external data; When the system is in an awake state, the main system is in communication connection with the memory 212, and the receiving module in the main system, such as a classic Bluetooth module, is used to receive external data.
  • the acquired external data is transmitted to the second subsystem 23, specifically: if the external data is received through the first subsystem 22, the received external data is sequentially passed through the first hardware interface module 24 and the first hardware abstraction layer 26.
  • the first service module 25 and the second hardware abstraction layer 27 are then transmitted to the second subsystem 23; if the external data is received through the main system, the output interface of the main system is used to transmit the external data to the second subsystem 23 In the memory 212.
  • the second subsystem 23 is instructed to store the external data obtained by the transmission in the memory 212, and the specific process is: the external data is stored in the memory 212 after passing through the third abstraction layer and the second service module in sequence.
  • the data receiving module 21 is a Bluetooth low energy module
  • obtaining external data through the data receiving module 21 in the first subsystem 22 includes:
  • the main system includes classic Bluetooth module
  • receiving external data from the main system includes:
  • the data receiving module 21 is a low-power Bluetooth module
  • the main system includes a classic Bluetooth module; therefore, step 2201 specifically includes: obtaining external data through a device paired with the low-power Bluetooth module, and from the main system The device paired with the classic Bluetooth module obtains external data.
  • the method further includes:
  • the classic Bluetooth module in the main system is paired with the device, and the low-power Bluetooth module loses the pairing function
  • the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
  • only one side of the main system and the auxiliary system can perform data receiving Bluetooth pairing.
  • the classic Bluetooth module in the main system is paired with the device to receive external data from the device.
  • the Bluetooth low energy module loses its pairing function;
  • the Bluetooth low energy module in the auxiliary system is paired with the device to receive external data from the paired device.
  • the classic Bluetooth The module loses the pairing function, and the opening and closing of the pairing function can be controlled by the switch module.
  • the method further includes: in a state where the classic Bluetooth module is paired with the device, if the main system is switched from the wake-up state to the non-wake-up state, the classic Bluetooth module is disconnected from the paired device;
  • the switch module controls the classic Bluetooth module in the main system to disconnect the communication connection with the paired device. And start the Bluetooth low energy module in the auxiliary system. At this time, the Bluetooth low energy module sends a pairing request to the disconnected device, and the disconnected device can respond to the request to establish a communication connection again.
  • FIG. 13 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention. As shown in FIG. 13, another aspect of the embodiment of the present invention provides a data reading device, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 22 and a second subsystem 23 that are communicatively connected to each other.
  • the device includes:
  • the stored data acquisition module 2301 is used to acquire the stored data through the memory 212 in the second subsystem 23 when it is determined that the main system is in the non-awake state;
  • the stored data transmission module 2302 is used to transmit the acquired stored data to the first subsystem 22;
  • the stored data reading module 2303 is used to instruct the first subsystem 22 to read the stored data.
  • the structural relationship diagram of the main system and the auxiliary system can refer to FIG. 10.
  • the stored data acquisition module 2301 determines that the main system is in a non-awake state
  • the stored data is acquired through the memory 212 in the second subsystem 23, wherein the judgment process of the main system's working state can be judged by the switch module;
  • the memory 212 is installed in the second subsystem 23 for storing data.
  • the stored data reading module 2303 instructs the first subsystem 22 to read the stored data.
  • the reading operation in this embodiment includes the display and broadcast of the data; if the stored data is audio data, the read The operation is broadcast; if the stored data is text information, the read operation at this time is display.
  • FIG. 14 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention.
  • another aspect of the embodiment of the present invention provides a data storage device, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 22 and a second subsystem 23 that are communicatively connected to each other.
  • the device includes:
  • the external data acquisition module 2401 is used to acquire external data through the data receiving module 21 in the first subsystem 22 when it is determined that the main system is in a non-awake state,
  • the slave receives external data through the main system
  • the external data transmission module 2402 is used to transmit the acquired external data to the second subsystem 23;
  • the external data storage module 2403 is used to instruct the second subsystem 23 to store the external data obtained by the transmission in the memory 212.
  • the data receiving module 21 in the first sub-system 22 obtains external data, or, when the main system is determined When the system is awake, it receives external data from the main system.
  • the working status of the main system can be judged by the switch module.
  • the data receiving module 21 is mainly used to receive data from the outside world. Specifically, it can be one of the Bluetooth module, the wireless receiving and sending module, the wireless receiving and sending module, and the wired receiving and sending module. 1.
  • the data receiving module 21 is preferably BLE (Bluetooth Low Energy).
  • the external data acquisition module 2401 is specifically: when it is determined that the main system is in a non-awake state, the main system disconnects the communication connection with the memory 212, and the switch module makes the auxiliary system start working. At this time, the data receiving module in the first subsystem 22 21 to receive external data; when it is determined that the main system is in an awake state, the main system communicates with the memory 212, and receives external data through a receiving module in the main system, such as a classic Bluetooth module.
  • the acquired external data is transmitted to the second subsystem 23 through the external data transmission module 2402, specifically: if the external data is received through the first subsystem 22, the received external data is sequentially passed through the first hardware interface module 24 , The first hardware abstraction layer 26, the first service module 25, and the second hardware abstraction layer 27 are then transmitted to the second subsystem 23; if the external data is received through the main system, the external data is transmitted to the second subsystem through the output interface of the main system Two subsystem 23.
  • the external data storage module 2403 instructs the second subsystem 23 to store the transmitted external data in the memory 212.
  • the specific process is: the external data is stored in the memory 212 after passing through the third abstraction layer and the second service module in turn. .
  • the storage medium includes a set of computer-executable instructions, which are used to execute a data reading method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When the instructions are executed, they are used to obtain stored data through the memory 212 in the second subsystem 23 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 22; instruct the first subsystem 22 to read the stored data.
  • the storage medium includes a set of computer-executable instructions, which are used to execute a data storage method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When the instructions are executed, they are used to obtain stored data through the memory 212 in the second subsystem 23 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 22; instruct the first subsystem 22 to read the stored data
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When the instructions are executed, they are used to obtain the data through the data receiving module 21 in the first subsystem 22 when it is determined that the main system is in a non-awake state.
  • External data or, when it is determined that the main system is in an awake state, receive external data from the main system; transmit the obtained external data to the second subsystem 23; instruct the second subsystem 23 to store the transmitted external data To the memory 212.
  • FIG. 15 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention. As shown in FIG. 15, another aspect of the embodiment of the present invention provides a data notification method, which is applied to an auxiliary system, and the method includes:
  • Step 2501 when determining that the main system is in a non-awake state, receive external data through the auxiliary system;
  • Step 2502 Determine whether the received external data is a notification type supported by the auxiliary system
  • Step 2503 If it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system;
  • Step 2504 If it is determined that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides an external prompt for the external data.
  • the auxiliary system receives external data.
  • the non-wake-up state includes sleep, hibernation, and shutdown states.
  • the external data includes phone notifications, SMS notifications, and application notifications.
  • the supported notification type is usually set in advance in the system.
  • the SMS notification function and location notification function are preset in the mobile phone operating system on the market.
  • the corresponding SMS notification type, location notification type, and some application notification data are data supported by the auxiliary system, and other external data are data that the auxiliary system does not support.
  • the data may be supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
  • the data content in the external data is notified to the outside through the auxiliary system.
  • the external notification is specifically to display the data content on the screen. , Or broadcast the data content to the outside through the sounder, or transmit the data content to other devices through the network.
  • the auxiliary system will provide an external prompt for the external data.
  • the external prompt is specifically a message notification prompt displayed on the screen, The message notification prompt or light prompt is broadcasted to indicate the arrival of the notification message, but the data content in it is not displayed.
  • the user can actively wake up the main system according to the notification prompt to view or process it.
  • the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
  • the method further includes:
  • the communication connection between the main system and the outside world is cut off, so as to prevent the data receiving module 21 in the main system from receiving external data, causing the main system to wake up, and then the auxiliary system to receive all external data. .
  • this step is specifically as follows: cut off the communication connection between the main system and the outside world through the switch module communicatively connected with the main system and the auxiliary system, and drive the data receiving module 21 in the auxiliary system to receive all Outside news.
  • the auxiliary system includes a first subsystem 22 and a second subsystem 23;
  • auxiliary systems including:
  • the data content of external data is notified to the outside in the auxiliary system, including:
  • external prompts for external data in the auxiliary system include:
  • the auxiliary system includes a first subsystem 22 and a second subsystem 23.
  • step 2501 receives external data through the data receiving module 21 of the first subsystem 22. Specifically: further, the received external data is transmitted to the first service module 25 through the first hardware interface module 24 and the first hardware abstraction layer 26. The first service module 25 extracts the data content of external data and transmits the data content to the second subsystem 23. The second subsystem 23 transmits the data content to the second service module through the third hardware abstraction layer 210, and uses the second service module to determine the notification type of the data content and performs shelling processing on the data content.
  • step 2503 if the notification type is a supported type, the data content is displayed on the screen through the fourth hardware abstraction layer 211 and the second hardware interface module 28.
  • step 2504 The specific process of step 2504 is: if the notification type is an unsupported type, the screen displays the message prompt information.
  • the external notification of the data content of the external data in the auxiliary system includes:
  • the key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
  • the extraction method can be achieved through a trained neural network model.
  • the general steps of training the neural network model are:
  • the relevant training corpus and the corresponding result are used as the input of the neural network model to obtain the output result. If the output result deviates greatly from the corresponding real result, continue training with the corpus until the output result is between the corresponding real result The training is completed when the deviation is within the preset range.
  • the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 10, it is specifically displayed on the OLED screen in the second subsystem 23.
  • the external prompt for external data in the auxiliary system includes:
  • step 2504 is specifically: displaying an unread message prompt and icon information corresponding to the data content on the screen in the auxiliary system.
  • the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
  • FIG. 16 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention. As shown in FIG. 16, another aspect of the embodiment of the present invention provides a data notification device, which is applied to an auxiliary system, and the device includes:
  • the external data receiving module 2601 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
  • Notification type judging module 2602 for judging whether the received external data is a notification type supported by the auxiliary system
  • the external notification module 2603 is configured to, if the notification type determining module 2602 determines that the received external data is a notification type supported by the auxiliary system, then the data content of the external data is notified to the outside through the auxiliary system;
  • the external prompting module 2604 is configured to, if the notification type judging module 2602 determines that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides external prompts for the external data.
  • the external data receiving module 2601 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state.
  • the non-awakened state includes the sleep state, the hibernation state, and the off state, and the external data includes phone notifications and short messages. Notifications and application notifications, etc.
  • the notification type judgment module 2602 judges whether the received external data is a notification type supported by the auxiliary system.
  • the supported notification type is usually set in advance in the system, for example, a short message is preset in the mobile phone operating system on the market. Notification function, location notification function and some cooperative third-party applications, etc.
  • the corresponding SMS notification type, location notification type and some application notification data are data supported by the auxiliary system, and other external data is auxiliary Data not supported by the system, but the data is supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
  • the notification type determination module 2602 determines that the received external data is a notification type supported by the auxiliary system
  • the external notification module 2603 will notify the data content in the external data through the auxiliary system.
  • the external notification is in this
  • the data content is specifically displayed on the screen, or the data content is broadcast to the outside through a sounder, or the data content is transmitted to other devices through the network.
  • the external prompt module 2604 provides external prompts for the external data through the auxiliary system.
  • the external prompts in this embodiment are specifically The screen displays the message notification prompt, broadcasts the message notification prompt or light prompt on the sounder to indicate the receipt of the notification message, but does not display the data content.
  • the user can actively wake up the main system to view or process them.
  • the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
  • the external data receiving module 2601 is further specifically configured to: in the process of receiving external data through the auxiliary system:
  • the external data receiving module 2601 during the execution of the external data receiving module 2601, it is also specifically used to cut off the communication connection between the main system and the outside world, so as to prevent the data receiving module 21 in the main system from receiving external data, causing the main system to be awakened.
  • the auxiliary system receives all external data.
  • the external notification module 2603 is specifically used to:
  • the key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
  • the external notification module 2603 is specifically used to extract key display content in the data content, and the extraction method can be through trained
  • the neural network model is implemented.
  • the general steps for training the neural network model are:
  • the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 10, it is specifically displayed on the OLED screen in the second subsystem 23.
  • the external prompting module 2604 is specifically used to:
  • the external prompting module 2604 is specifically configured to display unread message prompts and icon information corresponding to data content on the screen in the auxiliary system.
  • the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
  • the storage medium includes a set of computer-executable instructions, which are used to execute a data notification method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data Whether it is the notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, the data content in the external data will be notified to the outside through the auxiliary system; if the received external data is determined For notification types that are not supported by the auxiliary system, the auxiliary system will provide external notifications for external data.
  • the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
  • FIG. 17 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention. As shown in FIG. 17, another aspect of the embodiment of the present invention provides a communication handover method. The method includes:
  • Step 2701 When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
  • Step 2702 Determine the notification type of the received external data
  • Step 2703 If it is determined that the notification type of the received external data is a specific notification type, wake up the main system and instruct the main system to process the external data.
  • the auxiliary system receives external data.
  • the non-wake-up state includes sleep, hibernation, and shutdown states.
  • the external data includes phone notifications, SMS notifications, and application notifications.
  • the notification type of the received external data where the notification type is usually set in advance in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
  • the main system is awakened and the main system is instructed to process the external data.
  • the specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc.
  • the communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type.
  • the data receiving module 21 in the auxiliary system receives external data, and then transmits the external data to the first service module 25, and then The first service module 25 determines whether the external data is of a specific notification type, and if it determines that the external data is of a specific notification type, it wakes up the main system through the switch module and instructs the main system to process the specific notification type.
  • the method further includes:
  • the auxiliary system is instructed to process the external data.
  • the auxiliary system if it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data.
  • the normal notification type is defined as a notification type other than the specific notification type in this embodiment. For example, calendar notifications, alarm clock notifications, etc.
  • the common notification type is processed in the second service module in the second subsystem 23.
  • instructing the auxiliary system to process external data includes:
  • the specific process of the step "instruct the auxiliary system to process external data” is: instruct the data receiving module 21 in the first subsystem 22 to receive external data, and the first subsystem 22 transmits the external data to The second sub-system 23, the second sub-system 23 informs externally according to the data content of the external data.
  • the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders ; It can also be a notification of external information transmission, which can be used for the transmission of some intermediate data.
  • the method further includes:
  • the auxiliary system After the processing of the main system is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
  • the communication connection between the auxiliary system and the outside world is disconnected.
  • the communication connection between the data receiving module 21 and the outside world is specifically disconnected.
  • waking up the main system and instructing the main system to process external data includes:
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
  • FIG. 18 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention. As shown in FIG. 18, another aspect of the embodiment of the present invention provides a communication switching device, and the device includes:
  • the external data receiving module 2801 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
  • Notification type judging module 2802 for judging the notification type of the received external data
  • the first data processing module 2803 is configured to wake up the main system and instruct the main system to process the external data when the notification type judging module 2802 determines that the notification type of the received external data is a specific notification type.
  • the external data receiving module 2801 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state.
  • the non-awakened state includes sleep state, hibernation state, and shutdown state.
  • the external data includes phone notifications and short messages. Notifications and application notifications, etc.
  • the notification type judgment module 2802 judges the notification type of the received external data, where the notification type is usually preset in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
  • the notification type determining module 2802 determines that the notification type of the received external data is a specific notification type
  • the first data processing module 2803 wakes up the main system and instructs the main system to process the external data.
  • the specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc.
  • the communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type.
  • the device further includes:
  • the second data processing module 2804 is used for instructing the auxiliary system to process the external data if it is determined that the notification type of the received external data is a normal notification type.
  • the notification type judging module 2802 determines that the notification type of the received external data is a common notification type
  • the second data processing module 2804 instructs the auxiliary system to process the external data.
  • the common notification type is described in this embodiment. In the example, it is defined as a notification type other than a specific notification type, such as calendar notification, alarm notification, and so on.
  • the second data processing module 2804 is specifically configured to:
  • the second data processing module 2804 is specifically used to: instruct the data receiving module 21 in the first subsystem 22 to receive external data, and the first subsystem 22 to transmit the external data to the second Subsystem 23, the second subsystem 23 informs externally according to the data content of external data.
  • the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
  • the first data processing module 2803 is specifically configured to:
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
  • the storage medium includes a set of computer-executable instructions, which are used to execute a communication switching method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data The notification type; if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data.
  • FIG. 19 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention. As shown in Figure 19, one aspect of the present invention provides a data processing device, which includes an auxiliary system and a switch module:
  • the switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-wake-up state, wherein the first control instruction is used to drive the main system to disconnect the communication connection with the outside world, and the second control instruction is used to drive the auxiliary system to communicate with the outside world. Communication connection with the outside world;
  • the auxiliary system receives and responds to the second control instruction to drive the data receiving module 31 in the auxiliary system to receive external data;
  • the auxiliary system is also used to notify the received external data.
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the switch module When the switch module captures that the main system is in a non-awakened state, it sends a first control instruction to the main system, and the first control instruction is used to disconnect the main system from the communication connection with the outside world. At the same time, the switch module sends a second control instruction to the auxiliary system. The second control instruction is used to establish a communication connection between the auxiliary system and the outside world. Outside the scope.
  • the auxiliary system receives and responds to the second control instruction sent by the switch module to drive the data receiving module 31 installed in the auxiliary system to communicate with the outside world to receive external data.
  • the external data includes phone notifications, short message notifications and application notifications, and the auxiliary system finally informs the received external data.
  • the data receiving module 31 is preferably BLE (Bluetooth Low Energy, Bluetooth low energy).
  • each system in the existing multi-system equipment will be equipped with a BLE module to achieve communication with the outside world when any system is working.
  • the BLE module in the main system can be optimized and reduced The occupancy rate of hardware resources in the device.
  • the switch module is also specifically used to drive the auxiliary system to continue receiving and to notify external data when the auxiliary system is in a working state and the main system changes from the non-wake-up state to the wake-up state.
  • the switch module when the auxiliary system is in the working state and the main system changes from the non-wake-up state to the wake-up state, the switch module will not block the communication connection between the auxiliary system and the outside world, and still receive external data through the auxiliary system. Further reduce the power consumption of the main system.
  • the auxiliary system is specifically used to notify the received external data through voice broadcast, or through display on a screen interface, or through information transmission through the network.
  • the auxiliary system may include hardware devices such as a sounder, a screen, and a wireless transceiver module.
  • the auxiliary system can notify the external data according to the type of the external data.
  • the types of the external data include image, audio, video and text. If the external data is image, video and text data If the external data is audio data, it will be notified through the sounder broadcast method; the received external data can also be transmitted to the external device through the network channel again The way to inform the public.
  • the object of external notification may be people, animals, equipment modules, and so on.
  • the auxiliary system includes a first subsystem 32 and a second subsystem 33;
  • the data receiving module 31 is installed in the first subsystem 32;
  • the first subsystem 32 is specifically used to preprocess the received external data to obtain intermediate data that can be jointly applied by the first subsystem 32 and the second subsystem 33, and transmit the obtained intermediate data to The second subsystem 33;
  • the second subsystem 33 is specifically used to notify the transmitted intermediate data to the outside.
  • the first subsystem 32 is preferably an Apollo3+ type single-chip microcomputer in this embodiment
  • the second subsystem 33 is preferably an ST type single-chip microcomputer in this embodiment. 32 and the second subsystem 33 are communicatively connected to each other.
  • the data receiving module 31 is installed in the first sub-system 32. Since different sub-systems can only process the data identified or supported by them, the data receiving module 31 (ie BLE in the figure) will receive the data through the first sub-system 32. Perform data preprocessing on the received external data to obtain intermediate data that can be jointly used by the first subsystem 32 and the second subsystem 33, and transmit the intermediate data to the second subsystem 33, and the second subsystem 33 transmits the obtained intermediate data. Of the intermediate data.
  • the first subsystem 32 further specifically includes a first hardware interface module 34 and a first service module 35;
  • the data receiving module 31 is installed in the first hardware interface module 34;
  • the first hardware interface module 34 is configured to transmit the external data received by the data receiving module 31 to the first service module 35;
  • the first service module 35 performs data preprocessing on external data to obtain intermediate data, and transmits the intermediate data to the second subsystem 33.
  • the first hardware interface module 34 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), QSPI/SPI (QSPI: Queued Serial Peripheral Interface, serial peripheral interface; /SPI: Serial Peripheral) Interface, serial peripheral interface), DMA (Direct Memory Access, direct memory access), I2S/PCM (I2S: Inter-IC Sound, integrated circuit built-in audio bus; PCM: Pulse-code modulation) and other hardware or Interface, so it can be installed on the first hardware interface module 34, such as LCD (Liquid Crystal Display), FG (Fual Guard, hardware fuel gauge), Sen (Sensors), BlE (Bluetooth Low Energy, low power consumption) Bluetooth), AI (Audio In, audio input) and Mic (Microphone, microphone) and other hardware devices.
  • the data receiving module 31 ie, BLE in the figure
  • the data receiving module 31 can be connected to the first hardware interface module 34 according to its own interface type.
  • the first hardware interface module 34 is configured to transmit the external data received by the data receiving module 31 to the first service module 35.
  • the first service module 35 is the processing core of the first subsystem 32, and is used to process the data in the first subsystem 32. Since the first subsystem 32 is preferably an Apollo3+ single-chip microcomputer, correspondingly, the first service module 35 is preferably Apollo3+Service module.
  • the external data is preprocessed by the first service module 35 to obtain intermediate data, and the intermediate data is transmitted to the second subsystem 33 through the first service module 35.
  • the first hardware interface module 34 specifically transmits external data to the first service module 35 through the first hardware abstraction layer 36;
  • the first service module 35 specifically transmits the intermediate data to the second subsystem 33 through the second hardware abstraction layer 37.
  • the first hardware abstraction layer 36 and the second hardware abstraction layer 37 are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
  • the intermediate data is data content
  • the first service module 35 is specifically configured to perform shelling processing from external data to obtain data content from the external data.
  • the external data received by the data receiving module 31 includes features that can be recognized or supported by the first subsystem 32 (mainly the first hardware interface module 34 or hardware under the first subsystem 32) Information and data content, therefore, the first service module 35 needs to shell the external data, specifically deleting the characteristic information from the external data, and only retaining the data content.
  • the second subsystem 33 includes a second hardware interface module 38, a display screen 39, and a second service module;
  • the second service module is used to receive the intermediate data, and pack the intermediate data to obtain specific data that can only be used by the second subsystem 33, and transmit the obtained specific data to the second hardware interface module 38;
  • a display screen 39 is installed on the second hardware interface module 38, and according to the received specific data, the intermediate data in the specific data is displayed.
  • the second hardware interface module 38 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), SPI-M (Serial Peripheral Interface Master, serial peripheral interface), and DMA (Direct Memory). Access, direct memory access) and other hardware or interfaces, so that OLED (Organic Light-Emitting Diode, organic light-emitting semiconductor), Tou (Touch, touch panel), GPS (Global Positioning System, global positioning system) can be installed in the second subsystem 33 System) and K (KEY, keyboard) and other hardware devices.
  • I2C-M Inter-Integrated Circuit Master, integrated circuit bus
  • SPI-M Serial Peripheral Interface Master, serial peripheral interface
  • DMA Direct Memory
  • Access direct memory access
  • OLED Organic Light-Emitting Diode, organic light-emitting semiconductor
  • Tou Touch, touch panel
  • GPS Global Positioning System, global positioning system
  • K Key, keyboard
  • the display screen 39 is preferably an OLED screen, which is installed on the second hardware interface module 38 according to its own interface type, so as to realize the communication connection between the second hardware interface module 38 and the display screen 39.
  • the second service module corresponds to an ST Service module, which is used to process data operations in the second subsystem 33.
  • the second service module is mainly used to pack the received intermediate data, specifically: adding characteristic information that can be recognized or supported by the second hardware interface module 38 and the hardware to the intermediate data. Generate specific data.
  • the second service module transmits the generated specific data to the second hardware interface module 38, and the second hardware interface module 38 receives the specific data and displays the intermediate data through the display screen 39.
  • the second service module receives intermediate data through the third hardware abstraction layer 310, and transmits specific data to the second hardware interface module 38 through the fourth hardware abstraction layer 311.
  • the third hardware abstraction layer 310 and the fourth hardware abstraction layer 311 are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
  • the data receiving module 31 is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  • the data receiving module 31 is mainly used to receive external data, which can be specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  • the data receiving module 31 is preferably a BLE module (low Bluetooth power consumption).
  • FIG. 20 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention.
  • another aspect of the embodiment of the present invention provides a data reading method, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 32 and a second subsystem 33 that are communicatively connected to each other.
  • the method includes:
  • Step 3101 Acquire stored data through the memory 312 in the second subsystem 33 when it is determined that the main system is in a non-awake state;
  • Step 3102 Transmit the acquired stored data to the first subsystem 32;
  • Step 3103 instruct the first subsystem 32 to read the stored data.
  • the structural relationship between the main system and the auxiliary system and the structure of the auxiliary system can refer to FIG. 19.
  • the stored data is obtained through the memory 312 in the second sub-system 33.
  • the working state judgment process of the main system can be obtained through the switch module; the memory 312 is pre-installed
  • the second subsystem 33 is specifically a memory based on NF (Nor flash, non-volatile flash memory technology) for storing data.
  • the first subsystem 32 is instructed to read the stored data, where the reading operation in this embodiment includes the display and broadcasting of the data; if the stored data is audio data, the reading operation is broadcasting; if the data is already stored If it is text information, the reading operation at this time is display.
  • the second subsystem 33 includes a second service module. Therefore, the specific process of step 3101 and step 3102 is: when it is determined that the main system is in a non-awake state, the second service module obtains the memory The stored data in 312 is transmitted to the first subsystem 32 through the third hardware abstraction layer 310 through the second service module.
  • instructing the first subsystem 32 to read the stored data includes:
  • the specific process of step 3103 is: instruct the first subsystem 32 to pack the received stored data to obtain specific data that can only be used by the first subsystem 32, specifically: in the original data
  • the specific data can be identified by the interface module or hardware in the first subsystem 32, so that the interface module or hardware The specific data being read.
  • the first sub-system 32 there are multiple different reading methods for the first sub-system 32. Different specific data corresponds to different reading methods and requires corresponding hardware cooperation. If it is assumed that the extracted stored data is audio data, Sounder hardware is required, and the hardware needs to be installed in the I2S/PCM interface in the first hardware interface module 34. After the acquired stored data is transmitted to the first sub-system 32 in step 3101, the first service module 35 of the first sub-system 32 receives the stored data and packs it to obtain specific data, and then transfers the specific data It is transmitted to the sounder in the second interface module to broadcast audio data.
  • FIG. 21 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention.
  • another aspect of the embodiment of the present invention is a data storage method, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 32 and a second subsystem 33 that are communicatively connected to each other.
  • the method includes:
  • Step 3201 When it is determined that the main system is in a non-awake state, obtain external data through the data receiving module 31 in the first subsystem 32,
  • the slave receives external data through the main system
  • Step 3202 Transmit the acquired external data to the second subsystem 33;
  • Step 3203 Instruct the second subsystem 33 to store the external data obtained by the transmission in the memory 312.
  • the data receiving module 31 in the first subsystem 32 obtains external data, or when it is determined that the main system is in the awake state. , By receiving external data from the main system (the classic Bluetooth module in the specific main system).
  • the working state of the main system can be determined by the switch module.
  • the data receiving module 31 is mainly used to receive data from the outside world. Specifically, it can be one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In this embodiment, The data receiving module 31 is preferably BLE (Bluetooth Low Energy).
  • step 3201 when it is determined that the main system is in a non-awakened state, the switch module causes the other auxiliary system to start working. At this time, the data receiving module 31 in the first sub-system 32 receives external data; When the system is in an awake state, the main system is in communication connection with the memory 312, and the receiving module in the main system, such as a classic Bluetooth module, is used to receive external data.
  • the obtained external data is transmitted to the second subsystem 33, specifically: if the external data is received through the first subsystem 32, the received external data is sequentially passed through the first hardware interface module 34 and the first hardware abstraction layer. 36. The first service module 35 and the second hardware abstraction layer 37 are then transmitted to the second subsystem 33; if the external data is received through the main system, the output interface of the main system is used to transmit the external data to the second subsystem 33 In the memory 312.
  • the second subsystem 33 is instructed to store the external data obtained by the transmission in the memory 312, and the specific process is: the external data is stored in the memory 312 after sequentially passing through the third abstraction layer and the second service module.
  • the data receiving module 31 is a Bluetooth low energy module
  • obtaining external data through the data receiving module 31 in the first subsystem 32 includes:
  • the main system includes classic Bluetooth module
  • receiving external data from the main system includes:
  • the data receiving module 31 is a low energy Bluetooth module
  • the main system includes a classic Bluetooth module; therefore, step 3201 specifically includes: obtaining external data through a device paired with the low energy Bluetooth module, and obtaining external data from the main system The device paired with the classic Bluetooth module obtains external data.
  • the method further includes:
  • the classic Bluetooth module in the main system is paired with the device, and the low-power Bluetooth module loses the pairing function
  • the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
  • only one side of the main system and the auxiliary system can perform data receiving Bluetooth pairing.
  • the classic Bluetooth module in the main system is paired with the device to receive external data from the device.
  • the Bluetooth low energy module loses its pairing function;
  • the Bluetooth low energy module in the auxiliary system is paired with the device to receive external data from the paired device.
  • the classic Bluetooth The module loses the pairing function, and the opening and closing of the pairing function can be controlled by the switch module.
  • the method further includes: in a state where the classic Bluetooth module is paired with the device, if the main system is switched from the wake-up state to the non-wake-up state, the classic Bluetooth module is disconnected from the paired device;
  • the switch module controls the classic Bluetooth module in the main system to disconnect the communication connection with the paired device. And start the Bluetooth low energy module in the auxiliary system. At this time, the Bluetooth low energy module sends a pairing request to the disconnected device, and the disconnected device can respond to the request to establish a communication connection again.
  • FIG. 22 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention. As shown in FIG. 22, another aspect of the embodiment of the present invention provides a data reading device, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 32 and a second subsystem 33 that are communicatively connected to each other.
  • the device includes:
  • the stored data acquisition module 3301 is used to acquire the stored data through the memory 312 in the second subsystem 33 when it is determined that the main system is in the non-awake state;
  • the stored data transmission module 3302 is used to transmit the acquired stored data to the first subsystem 32;
  • the stored data reading module 3303 is used to instruct the first subsystem 32 to read the stored data.
  • the structural relationship diagram of the main system and the auxiliary system can refer to FIG. 19.
  • the stored data acquisition module 3301 determines that the main system is in a non-awake state
  • the stored data is acquired through the memory 312 in the second subsystem 33, wherein the judgment process of the main system's working state can be judged by the switch module;
  • the memory 312 is installed in the second subsystem 33 for storing data.
  • the stored data reading module 3303 instructs the first subsystem 32 to read the stored data.
  • the reading operation in this embodiment includes the display and broadcast of the data; if the stored data is audio data, the read The operation is broadcast; if the stored data is text information, the read operation at this time is display.
  • FIG. 23 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention. As shown in FIG. 23, another aspect of the embodiment of the present invention provides a data storage device, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 32 and a second subsystem 33 that are communicatively connected to each other.
  • the device includes:
  • the external data acquisition module 3401 is used to acquire external data through the data receiving module 31 in the first subsystem 32 when it is determined that the main system is in a non-awake state,
  • the slave receives external data through the main system
  • the external data transmission module 3402 is configured to transmit the acquired external data to the second subsystem 33;
  • the external data storage module 3403 is used to instruct the second subsystem 33 to store the external data obtained by transmission in the memory 312.
  • the data receiving module 31 in the first subsystem 32 obtains external data, or, when the main system is determined When the system is awake, it receives external data from the main system.
  • the working status of the main system can be determined by the switch module.
  • the data receiving module 31 is mainly used to receive data from the outside world. Specifically, it can be one of the Bluetooth module, the wireless receiving and sending module, the wireless receiving and sending module, and the wired receiving and sending module. 1.
  • the data receiving module 31 is preferably BLE (Bluetooth Low Energy).
  • the external data acquisition module 3401 is specifically: when it is determined that the main system is in a non-awakened state, the main system disconnects the communication connection with the memory 312, and the switch module causes the auxiliary system to start working. At this time, the data receiving module in the first subsystem 32 31 to receive external data; when it is determined that the main system is in an awake state, the main system communicates with the memory 312, and receives external data through a receiving module in the main system, such as a classic Bluetooth module.
  • the acquired external data is transmitted to the second subsystem 33 through the external data transmission module 3402, specifically: if the external data is received through the first subsystem 32, the received external data is sequentially passed through the first hardware interface module 34 , The first hardware abstraction layer 36, the first service module 35, and the second hardware abstraction layer 37 are then transmitted to the second subsystem 33; if the external data is received through the main system, the external data is transmitted to the second subsystem through the output interface of the main system Two subsystem 33.
  • the external data storage module 3403 instructs the second subsystem 33 to store the transmitted external data in the memory 312.
  • the specific process is: the external data is stored in the memory 312 after passing through the third abstraction layer and the second service module in turn. .
  • the storage medium includes a set of computer-executable instructions, which are used to execute a data reading method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When the instructions are executed, they are used to obtain stored data through the memory 312 in the second subsystem 33 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 32; instruct the first subsystem 32 to read the stored data.
  • the storage medium includes a set of computer-executable instructions, which are used to execute a data storage method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When the instructions are executed, they are used to obtain stored data through the memory 312 in the second subsystem 33 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 32; instruct the first subsystem 32 to read the stored data
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When the instructions are executed, they are used to obtain the data through the data receiving module 31 in the first subsystem 32 when it is determined that the main system is in a non-awake state.
  • External data or, when it is determined that the main system is in an awake state, receive external data from the main system; transmit the obtained external data to the second subsystem 33; instruct the second subsystem 33 to store the transmitted external data To the memory 312.
  • FIG. 24 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention. As shown in FIG. 24, another aspect of the embodiment of the present invention provides a data notification method, which is applied to an auxiliary system, and the method includes:
  • Step 3501 When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
  • Step 3502 Determine whether the received external data is a notification type supported by the auxiliary system
  • Step 3503 If it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system;
  • Step 3504 If it is determined that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides an external prompt for the external data.
  • the auxiliary system receives external data.
  • the non-wake-up state includes sleep, hibernation, and shutdown states.
  • the external data includes phone notifications, SMS notifications, and application notifications.
  • the supported notification type is usually set in advance in the system.
  • the SMS notification function and location notification function are preset in the mobile phone operating system on the market.
  • the corresponding SMS notification type, location notification type, and some application notification data are data supported by the auxiliary system, and other external data are data that the auxiliary system does not support.
  • the data may be supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
  • the data content in the external data is notified to the outside through the auxiliary system.
  • the external notification is specifically to display the data content on the screen. , Or broadcast the data content to the outside through the sounder, or transmit the data content to other devices through the network.
  • the auxiliary system will provide an external prompt for the external data.
  • the external prompt is specifically a message notification prompt displayed on the screen, The message notification prompt or light prompt is broadcasted to indicate the arrival of the notification message, but the data content in it is not displayed.
  • the user can actively wake up the main system according to the notification prompt to view or process it.
  • the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
  • the method further includes:
  • the communication connection between the main system and the outside world is cut off, so as to prevent the data receiving module 31 in the main system from receiving external data, causing the main system to be awakened, so that the auxiliary system can receive all external data.
  • this step is specifically as follows: cut off the communication connection between the main system and the outside world through the switch module communicatively connected with the main system and the auxiliary system, and drive the data receiving module 31 in the auxiliary system to receive all Outside news.
  • the auxiliary system includes a first subsystem 32 and a second subsystem 33;
  • auxiliary systems including:
  • the data content of external data is notified to the outside in the auxiliary system, including:
  • external prompts for external data in the auxiliary system include:
  • the auxiliary system includes a first subsystem 32 and a second subsystem 33.
  • step 3501 receives external data through the data receiving module 31 of the first sub-system 32. Specifically: further, the received external data is transmitted to the first service module 35 through the first hardware interface module 34 and the first hardware abstraction layer 36. The first service module 35 extracts the data content of external data and transmits the data content to the second subsystem 33. The second sub-system 33 transmits the data content to the second service module through the third hardware abstraction layer 310, and uses the second service module to determine the notification type of the data content and to pack it.
  • step 3503 if the notification type is a supported type, the data content is displayed on the screen through the fourth hardware abstraction layer 311 and the second hardware interface module 38.
  • step 3504 The specific process of step 3504 is: if the notification type is an unsupported type, the screen displays the message prompt information.
  • the external notification of the data content of the external data in the auxiliary system includes:
  • the key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
  • the extraction method can be achieved through a trained neural network model.
  • the general steps of training the neural network model are:
  • the relevant training corpus and the corresponding result are used as the input of the neural network model to obtain the output result. If the output result deviates greatly from the corresponding real result, continue training with the corpus until the output result is between the corresponding real result The training is completed when the deviation is within the preset range.
  • the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 19, it is specifically displayed on the OLED screen in the second subsystem 33.
  • the external prompt for external data in the auxiliary system includes:
  • step 3504 is specifically: displaying an unread message prompt and icon information corresponding to the data content on the screen in the auxiliary system.
  • the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
  • FIG. 25 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention. As shown in FIG. 25, another aspect of an embodiment of the present invention provides a data notification device, which is applied to an auxiliary system, and the device includes:
  • the external data receiving module 3601 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
  • the notification type judgment module 3602 is used to judge whether the received external data is a notification type supported by the auxiliary system;
  • the external notification module 3603 is configured to, if the notification type determination module 3602 determines that the received external data is a notification type supported by the auxiliary system, then externally notify the data content of the external data through the auxiliary system;
  • the external prompting module 3604 is configured to, if the notification type judging module 3602 determines that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides external prompts for the external data.
  • the external data receiving module 3601 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state.
  • the non-awake state includes sleep state, hibernation state, and shutdown state
  • the external data includes phone notifications and short messages. Notifications and application notifications, etc.
  • the notification type judgment module 3602 judges whether the received external data is a notification type supported by the auxiliary system.
  • the supported notification type is usually set in advance in the system. For example, a short message is preset in the mobile phone operating system on the market. Notification function, location notification function and some cooperative third-party applications, etc.
  • the corresponding SMS notification type, location notification type and some application notification data are data supported by the auxiliary system, and other external data is auxiliary Data not supported by the system, but the data is supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
  • the notification type judgment module 3602 determines that the received external data is a notification type supported by the auxiliary system
  • the external notification module 3603 will notify the data content in the external data through the auxiliary system.
  • the external notification is in this
  • the data content is specifically displayed on the screen, or the data content is broadcast to the outside through a sounder, or the data content is transmitted to other devices through the network.
  • the external prompt module 3604 uses the auxiliary system to provide external prompts for the external data.
  • the external prompt is specifically The screen displays the message notification prompt, broadcasts the message notification prompt or light prompt on the sounder to indicate the receipt of the notification message, but does not display the data content.
  • the user can actively wake up the main system to view or process them.
  • the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
  • the external data receiving module 3601 is also specifically configured to: in the process of receiving external data through the auxiliary system:
  • the external data receiving module 3601 is also specifically used to cut off the communication connection between the main system and the outside world during the execution process, so as to prevent the data receiving module 31 in the main system from receiving external data, causing the main system to be awakened.
  • the auxiliary system receives all external data.
  • the external notification module 3603 is specifically used to:
  • the key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
  • the external notification module 3603 is specifically used to extract key display content in the data content, and the extraction method may be through trained
  • the neural network model is implemented.
  • the general steps for training the neural network model are:
  • the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 19, it is specifically displayed on the OLED screen in the second subsystem 33.
  • the external prompting module 3604 is specifically used for:
  • the external prompting module 3604 is specifically configured to display unread message prompts and icon information corresponding to data content on the screen in the auxiliary system.
  • the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
  • the storage medium includes a set of computer-executable instructions, which are used to execute the data notification method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data Whether it is the notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, the data content in the external data will be notified to the outside through the auxiliary system; if the received external data is determined For notification types that are not supported by the auxiliary system, the auxiliary system will provide external notifications for external data.
  • the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
  • FIG. 26 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention. As shown in FIG. 26, another aspect of an embodiment of the present invention provides a communication handover method, and the method includes:
  • Step 3701 When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
  • Step 3702 Determine the notification type of the received external data
  • Step 3703 If it is determined that the notification type of the received external data is a specific notification type, wake up the main system and instruct the main system to process the external data.
  • the auxiliary system receives external data.
  • the non-wake-up state includes sleep, hibernation, and shutdown states.
  • the external data includes phone notifications, SMS notifications, and application notifications.
  • the notification type of the received external data where the notification type is usually set in advance in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
  • the main system is awakened and the main system is instructed to process the external data.
  • the specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc.
  • the communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type.
  • the data receiving module 31 in the auxiliary system receives external data, and then transmits the external data to the first service module 35, and then The first service module 35 determines whether the external data is of a specific notification type, and if it determines that the external data is of a specific notification type, it wakes up the main system through the switch module and instructs the main system to process the specific notification type.
  • the method further includes:
  • the auxiliary system is instructed to process the external data.
  • the auxiliary system if it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data.
  • the normal notification type is defined as a notification type other than the specific notification type in this embodiment. For example, calendar notifications, alarm clock notifications, etc.
  • the common notification type is processed in the second service module in the second subsystem 33.
  • instructing the auxiliary system to process external data includes:
  • the specific process of the step "instruct the auxiliary system to process external data” is: instruct the data receiving module 31 in the first subsystem 32 to receive external data, and the first subsystem 32 transmits the external data to The second sub-system 33, the second sub-system 33 informs the outside according to the data content of the external data.
  • the method of the external notification can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders. ; It can also be a notification of external information transmission, which can be used for the transmission of some intermediate data.
  • the method further includes:
  • the auxiliary system After the processing of the main system is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
  • the communication connection between the auxiliary system and the outside world is disconnected.
  • the communication connection between the data receiving module 31 and the outside world is specifically disconnected.
  • waking up the main system and instructing the main system to process external data includes:
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
  • FIG. 27 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention. As shown in FIG. 27, another aspect of the embodiment of the present invention provides a communication switching device, and the device includes:
  • the external data receiving module 3801 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
  • the notification type judging module 3802 is used to judge the notification type of the received external data
  • the first data processing module 3803 is used for waking up the main system and instructing the main system to process the external data when the notification type judging module 3802 determines that the notification type of the received external data is a specific notification type.
  • the external data receiving module 3801 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state.
  • the non-awakened state includes sleep state, hibernation state, and shutdown state, and the external data includes phone notifications and short messages. Notifications and application notifications, etc.
  • the notification type judgment module 3802 judges the notification type of the received external data, where the notification type is usually preset in the system, such as SMS notification type, phone notification type, and third-party application notification type.
  • the notification type determining module 3802 determines that the notification type of the received external data is a specific notification type
  • the first data processing module 3803 wakes up the main system and instructs the main system to process the external data.
  • the specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc.
  • the communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type.
  • the device further includes:
  • the second data processing module 3804 is used for instructing the auxiliary system to process the external data if it is determined that the notification type of the received external data is a normal notification type.
  • the notification type judging module 3802 determines that the notification type of the received external data is a common notification type
  • the second data processing module 3804 instructs the auxiliary system to process the external data.
  • the common notification type is described in this implementation. In the example, it is defined as a notification type other than a specific notification type, such as calendar notification, alarm notification, and so on.
  • the second data processing module 3804 is specifically configured to:
  • the second data processing module 3804 is specifically used to: instruct the data receiving module 31 in the first subsystem 32 to receive external data, and the first subsystem 32 to transmit the external data to the second Subsystem 33, the second subsystem 33 informs externally according to the data content of external data, where the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
  • the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
  • the first data processing module 3803 is specifically configured to:
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
  • the storage medium includes a set of computer-executable instructions, which are used to execute a communication switching method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data The notification type; if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data.
  • FIG. 28 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention. As shown in Figure 28, one aspect of the present invention provides a data processing device, which includes an auxiliary system and a switch module:
  • the switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-wake-up state, wherein the first control instruction is used to drive the main system to disconnect the communication connection with the outside world, and the second control instruction is used to drive the auxiliary system to communicate with the outside world. Communication connection with the outside world;
  • the auxiliary system receives and responds to the second control instruction to drive the data receiving module 41 in the auxiliary system to receive external data;
  • the auxiliary system is also used to notify the received external data.
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the switch module When the switch module captures that the main system is in a non-awakened state, it sends a first control instruction to the main system, and the first control instruction is used to disconnect the main system from the communication connection with the outside world. At the same time, the switch module sends a second control instruction to the auxiliary system. The second control instruction is used to establish a communication connection between the auxiliary system and the outside world. Outside the scope.
  • the auxiliary system receives and responds to the second control instruction sent by the switch module to drive the data receiving module 41 installed in the auxiliary system to communicate with the outside world to receive external data.
  • the external data includes phone notifications, short message notifications and application notifications, and the auxiliary system finally informs the received external data.
  • the data receiving module 41 is preferably BLE (Bluetooth Low Energy, Bluetooth Low Energy).
  • each system in the existing multi-system equipment will be equipped with a BLE module to achieve communication with the outside world when any system is working.
  • the BLE module in the main system can be optimized and reduced The occupancy rate of hardware resources in the device.
  • the switch module is also specifically used to drive the auxiliary system to continue receiving and to notify external data when the auxiliary system is in a working state and the main system changes from the non-wake-up state to the wake-up state.
  • the switch module when the auxiliary system is in the working state and the main system changes from the non-wake-up state to the wake-up state, the switch module will not block the communication connection between the auxiliary system and the outside world, and still receive external data through the auxiliary system. Further reduce the power consumption of the main system.
  • the auxiliary system is specifically used to notify the received external data through voice broadcast, or through display on a screen interface, or through information transmission through the network.
  • the auxiliary system may include hardware devices such as a sounder, a screen, and a wireless transceiver module.
  • the auxiliary system can inform the external data according to the type of the external data.
  • the types of the external data include image, audio, video and text. If the external data is image, video and text data If the external data is audio data, it will be notified through the sounder broadcast method; the received external data can also be transmitted to the external device through the network channel again The way to inform the public.
  • the object of external notification may be people, animals, equipment modules, and so on.
  • the auxiliary system includes a first subsystem 42 and a second subsystem 43;
  • the data receiving module 41 is installed in the first subsystem 42;
  • the first subsystem 42 is specifically used to preprocess the received external data to obtain intermediate data that can be jointly applied by the first subsystem 42 and the second subsystem 43, and transmit the obtained intermediate data to Second subsystem 43;
  • the second subsystem 43 is specifically used to notify the transmitted intermediate data to the outside.
  • the first subsystem 42 is preferably an Apollo3+ type single-chip microcomputer in this embodiment
  • the second subsystem 43 is preferably an ST type single-chip microcomputer in this embodiment. 42 and the second subsystem 43 are communicatively connected to each other.
  • the data receiving module 41 is installed in the first sub-system 42, because different sub-systems can only process the data that it recognizes or supports, so through the first sub-system 42 it will be received by the data receiving module 41 (that is, BLE in the figure) Perform data preprocessing on the received external data to obtain intermediate data that can be jointly used by the first subsystem 42 and the second subsystem 43, and transmit the intermediate data to the second subsystem 43, and the second subsystem 43 transmits the obtained intermediate data. Of the intermediate data.
  • the first subsystem 42 further specifically includes a first hardware interface module 44 and a first service module 45;
  • the data receiving module 41 is installed in the first hardware interface module 44;
  • the first hardware interface module 44 is configured to transmit the external data received by the data receiving module 41 to the first service module 45;
  • the first service module 45 performs data preprocessing on external data to obtain intermediate data, and transmits the intermediate data to the second subsystem 43.
  • the first hardware interface module 44 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), QSPI/SPI (QSPI: Queued Serial Peripheral Interface, serial peripheral interface; /SPI: Serial Peripheral) Interface, serial peripheral interface), DMA (Direct Memory Access, direct memory access), I2S/PCM (I2S: Inter-IC Sound, integrated circuit built-in audio bus; PCM: Pulse-code modulation) and other hardware or Interface, so the first hardware interface module 44 can be installed on the first hardware interface module 44 such as LCD (Liquid Crystal Display), FG (Fual Guard, hardware fuel gauge), Sen (Sensors), BlE (Bluetooth Low Energy, low power consumption) Bluetooth), AI (Audio In, audio input) and Mic (Microphone, microphone) and other hardware devices.
  • the data receiving module 41 ie, BLE in the figure
  • the data receiving module 41 can be connected to the first hardware interface module 44 according to its own interface type.
  • the first hardware interface module 44 is configured to transmit the external data received by the data receiving module 41 to the first service module 45.
  • the first service module 45 is the processing core of the first subsystem 42 and is used to process data in the first subsystem 42. Since the first subsystem 42 is preferably an Apollo3+ single-chip microcomputer, correspondingly, the first service module 45 is preferably Apollo3+Service module.
  • the external data is preprocessed by the first service module 45 to obtain intermediate data, and the intermediate data is transmitted to the second subsystem 43 through the first service module 45.
  • the first hardware interface module 44 specifically transmits external data to the first service module 45 through the first hardware abstraction layer 46;
  • the first service module 45 specifically transmits the intermediate data to the second subsystem 43 through the second hardware abstraction layer 47.
  • the first hardware abstraction layer 46 and the second hardware abstraction layer 47 are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
  • the intermediate data is data content
  • the first service module 45 is specifically configured to perform shelling processing from external data to obtain data content from the external data.
  • the external data received by the data receiving module 41 includes features that can be recognized or supported by the first subsystem 42 (mainly the first hardware interface module 44 or hardware under the first subsystem 42) Information and data content, therefore, the first service module 45 needs to shell out the external data, specifically deleting the characteristic information from the external data, and only retaining the data content.
  • the second subsystem 43 includes a second hardware interface module 48, a display screen 49, and a second service module;
  • the second service module is used to receive intermediate data, and pack the intermediate data to obtain specific data that is only used by the second subsystem 43, and transmit the obtained specific data to the second hardware interface module 48;
  • a display screen 49 is installed on the second hardware interface module 48, and according to the received specific data, the intermediate data in the specific data is displayed.
  • the second hardware interface module 48 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), SPI-M (Serial Peripheral Interface Master, serial peripheral interface), and DMA (Direct Memory). Access, direct memory access) and other hardware or interfaces, so that OLED (Organic Light-Emitting Diode, organic light-emitting semiconductor), Tou (Touch, touch panel), GPS (Global Positioning System, global positioning) can be installed in the second subsystem 43 System) and K (KEY, keyboard) and other hardware devices.
  • I2C-M Inter-Integrated Circuit Master, integrated circuit bus
  • SPI-M Serial Peripheral Interface Master, serial peripheral interface
  • DMA Direct Memory
  • Access direct memory access
  • OLED Organic Light-Emitting Diode, organic light-emitting semiconductor
  • Tou Touch, touch panel
  • GPS Global Positioning System, global positioning
  • the display screen 49 is preferably an OLED screen, which is installed on the second hardware interface module 48 according to its own interface type, so as to realize the communication connection between the second hardware interface module 48 and the display screen 49.
  • the second service module corresponds to an ST Service module, which is used to process data operations in the second subsystem 43.
  • the second service module is mainly used to pack the received intermediate data, specifically: adding characteristic information that can be recognized or supported by the second hardware interface module 48 and the hardware to the intermediate data, Generate specific data.
  • the second service module transmits the generated specific data to the second hardware interface module 48, and the second hardware interface module 48 receives the specific data and displays the intermediate data through the display screen 49.
  • the second service module receives intermediate data through the third hardware abstraction layer 410, and transmits specific data to the second hardware interface module 48 through the fourth hardware abstraction layer 411.
  • the third hardware abstraction layer 410 and the fourth hardware abstraction layer 411 are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
  • the data receiving module 41 is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  • the data receiving module 41 is mainly used to receive external data, which can be specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  • the data receiving module 41 is preferably a BLE module (low Bluetooth power consumption).
  • FIG. 29 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention.
  • another aspect of the embodiment of the present invention provides a data reading method, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 42 and a second subsystem 43 that are communicatively connected to each other.
  • the method includes:
  • Step 4101 Acquire stored data through the memory 412 in the second subsystem 43 when it is determined that the main system is in a non-awake state;
  • Step 4102 Transmit the acquired stored data to the first subsystem 42;
  • Step 4103 instruct the first subsystem 42 to read the stored data.
  • the structural relationship between the main system and the auxiliary system and the structure of the auxiliary system can refer to FIG. 28.
  • the stored data is obtained through the memory 412 in the second sub-system 43, and the judgment process of the working state of the main system can be obtained through the switch module; the memory 412 is pre-installed In the second subsystem 43, specifically, a memory based on NF (Nor flash, non-volatile flash memory technology) is used to store data.
  • NF Nor flash, non-volatile flash memory technology
  • the first subsystem 42 is instructed to read the stored data, where the read operation in this embodiment includes the display and broadcast of the data; if the stored data is audio data, the read operation is broadcast; if the data is stored If it is text information, the reading operation at this time is display.
  • the second subsystem 43 includes a second service module. Therefore, the specific process of step 4101 and step 4102 is: when it is determined that the main system is in a non-awake state, the second service module obtains the memory The stored data in 412 is transmitted to the first subsystem 42 through the third hardware abstraction layer 410 through the second service module.
  • instructing the first subsystem 42 to read the stored data includes:
  • the specific process of step 4103 is: instructing the first subsystem 42 to pack the received stored data to obtain specific data that can only be used by the first subsystem 42, specifically: in the original data
  • the specific data can be identified by the interface module or hardware in the first subsystem 42 so that the interface module or hardware The specific data being read.
  • the first subsystem 42 there are many different reading methods of the first subsystem 42. Different specific data corresponds to different reading methods, and corresponding hardware cooperation is required. If it is assumed that the extracted stored data is audio data, Sounder hardware is required, and the hardware needs to be installed in the I2S/PCM interface in the first hardware interface module 44. After the acquired stored data is transmitted to the first subsystem 42 in step 4101, the first service module 45 of the first subsystem 42 receives the stored data and packs it to obtain specific data, and then transfers the specific data It is transmitted to the sounder in the second interface module to broadcast audio data.
  • FIG. 30 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention.
  • another aspect of the embodiment of the present invention is a data storage method, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 42 and a second subsystem 43 that are communicatively connected to each other.
  • the method includes:
  • Step 4201 When it is determined that the main system is in a non-awake state, obtain external data through the data receiving module 41 in the first subsystem 42.
  • the slave receives external data through the main system
  • Step 4202 Transmit the acquired external data to the second subsystem 43;
  • Step 4203 Instruct the second subsystem 43 to store the external data obtained by the transmission in the memory 412.
  • the data receiving module 41 is mainly used to receive data from the outside world. Specifically, it can be one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In this embodiment, The data receiving module 41 is preferably BLE (Bluetooth Low Energy).
  • step 4201 when it is determined that the main system is in the non-awake state, the switch module causes the other auxiliary system to start working. At this time, the data receiving module 41 in the first subsystem 42 receives external data; When the system is in an awake state, the main system is in communication connection with the memory 412, and the receiving module in the main system, such as a classic Bluetooth module, is used to receive external data.
  • the obtained external data is transmitted to the second subsystem 43, specifically: if the external data is received through the first subsystem 42, then the received external data is passed through the first hardware interface module 44 and the first hardware abstraction layer in turn. 46.
  • the first service module 45 and the second hardware abstraction layer 47 are then transmitted to the second subsystem 43; if the external data is received through the main system, the output interface of the main system is used to transmit the external data to the second subsystem 43.
  • the second subsystem 43 is instructed to store the external data obtained by the transmission in the memory 412.
  • the specific process is: the external data is stored in the memory 412 after passing through the third abstraction layer and the second service module in sequence.
  • the data receiving module 41 is a Bluetooth low energy module
  • obtaining external data through the data receiving module 41 in the first subsystem 42 includes:
  • the main system includes classic Bluetooth module
  • receiving external data from the main system includes:
  • the data receiving module 41 is a low-power Bluetooth module
  • the main system includes a classic Bluetooth module; therefore, step 4201 specifically includes: obtaining external data through a device paired with the low-power Bluetooth module, and from the main system The device paired with the classic Bluetooth module obtains external data.
  • the method further includes:
  • the classic Bluetooth module in the main system is paired with the device, and the low-power Bluetooth module loses the pairing function
  • the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
  • only one side of the main system and the auxiliary system can perform data receiving Bluetooth pairing.
  • the classic Bluetooth module in the main system is paired with the device to receive external data from the device.
  • the Bluetooth low energy module loses its pairing function;
  • the Bluetooth low energy module in the auxiliary system is paired with the device to receive external data from the paired device.
  • the classic Bluetooth The module loses the pairing function, and the opening and closing of the pairing function can be controlled by the switch module.
  • the method further includes: in a state where the classic Bluetooth module is paired with the device, if the main system is switched from the wake-up state to the non-wake-up state, the classic Bluetooth module is disconnected from the paired device;
  • the switch module controls the classic Bluetooth module in the main system to disconnect the communication connection with the paired device. And start the Bluetooth low energy module in the auxiliary system. At this time, the Bluetooth low energy module sends a pairing request to the disconnected device, and the disconnected device can respond to the request to establish a communication connection again.
  • FIG. 31 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention. As shown in FIG. 31, another aspect of the embodiment of the present invention provides a data reading device, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 42 and a second subsystem 43 that are communicatively connected to each other.
  • the device includes:
  • the stored data acquisition module 4301 is used to acquire the stored data through the memory 412 in the second subsystem 43 when it is determined that the main system is in a non-awake state;
  • the stored data transmission module 4302 is used to transmit the acquired stored data to the first subsystem 42;
  • the stored data reading module 4303 is used to instruct the first subsystem 42 to read the stored data.
  • the structural relationship diagram of the main system and the auxiliary system can refer to FIG. 28.
  • the stored data acquisition module 4301 determines that the main system is in a non-awake state
  • the stored data is acquired through the memory 412 in the second subsystem 43, where the main system's working state judgment process can be judged by the switch module;
  • the memory 412 is installed in the second subsystem 43 for storing data.
  • the stored data reading module 4303 instructs the first subsystem 42 to read the stored data.
  • the reading operation in this embodiment includes the display and broadcast of the data; if the stored data is audio data, the read The operation is broadcast; if the stored data is text information, the read operation at this time is display.
  • FIG. 32 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention.
  • FIG. 32 another aspect of the embodiment of the present invention provides a data storage device, which is applied to an auxiliary system.
  • the auxiliary system includes a first subsystem 42 and a second subsystem 43 that are communicatively connected to each other.
  • the device includes:
  • the external data acquisition module 4401 is used to acquire external data through the data receiving module 41 in the first subsystem 42 when it is determined that the main system is in a non-awake state,
  • the slave receives external data through the main system
  • the external data transmission module 4402 is used to transmit the acquired external data to the second subsystem 43;
  • the external data storage module 4403 is used to instruct the second subsystem 43 to store the external data obtained by transmission in the memory 412.
  • the external data acquisition module 4401 is used to determine that the main system is in a non-awake state
  • the data receiving module 41 in the first subsystem 42 is used to obtain external data, or when the main system is determined When the system is awake, it receives external data from the main system.
  • the working status of the main system can be determined by the switch module.
  • the data receiving module 41 is mainly used to receive data from the outside world. Specifically, it can be one of the Bluetooth module, the wireless receiving and sending module, the wireless receiving and sending module, and the wired receiving and sending module. 1.
  • the data receiving module 41 is preferably BLE (Bluetooth Low Energy).
  • the external data acquisition module 4401 is specifically: when it is determined that the main system is in a non-awakened state, the main system disconnects the communication connection with the memory 412, and the switch module causes the auxiliary system to start working. At this time, the data receiving module in the first subsystem 42 41 to receive external data; when it is determined that the main system is in an awake state, the main system communicates with the memory 412, and receives external data through a receiving module in the main system, such as a classic Bluetooth module.
  • the acquired external data is transmitted to the second subsystem 43 through the external data transmission module 4402, specifically: if the external data is received through the first subsystem 42, then the received external data is sequentially passed through the first hardware interface module 44 , The first hardware abstraction layer 46, the first service module 45, and the second hardware abstraction layer 47 are then transmitted to the second subsystem 43; if the external data is received through the main system, the external data is transmitted to the second subsystem through the output interface of the main system Two subsystem 43.
  • the external data storage module 4403 instructs the second subsystem 43 to store the transmitted external data in the memory 412.
  • the specific process is: the external data is stored in the memory 412 after passing through the third abstraction layer and the second service module in turn. .
  • the storage medium includes a set of computer-executable instructions, which are used to execute a data reading method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When the instructions are executed, they are used to obtain stored data through the memory 412 in the second subsystem 43 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 42; instruct the first subsystem 42 to read the stored data.
  • the storage medium includes a set of computer-executable instructions, which are used to execute a data storage method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain stored data through the memory 412 in the second subsystem 43 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 42; instruct the first subsystem 42 to read the stored data
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When the instructions are executed, they are used to obtain the data through the data receiving module 41 in the first subsystem 42 when it is determined that the main system is in a non-awake state.
  • External data or, when it is determined that the main system is in an awake state, receive external data from the main system; transmit the obtained external data to the second subsystem 43; instruct the second subsystem 43 to store the transmitted external data To the memory 412.
  • FIG. 33 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention. As shown in FIG. 33, another aspect of the embodiment of the present invention provides a data notification method, which is applied to an auxiliary system, and the method includes:
  • Step 4501 When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
  • Step 4502 Determine whether the received external data is a notification type supported by the auxiliary system
  • Step 4503 If it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system;
  • Step 4504 If it is determined that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides an external prompt for the external data.
  • the auxiliary system receives external data.
  • the non-wake-up state includes sleep, hibernation, and shutdown states.
  • the external data includes phone notifications, SMS notifications, and application notifications.
  • the supported notification type is usually set in advance in the system.
  • the SMS notification function and location notification function are preset in the mobile phone operating system on the market.
  • the corresponding SMS notification type, location notification type, and some application notification data are data supported by the auxiliary system, and other external data are data that the auxiliary system does not support.
  • the data may be supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
  • the data content in the external data is notified to the outside through the auxiliary system.
  • the external notification is specifically to display the data content on the screen. , Or broadcast the data content to the outside through the sounder, or transmit the data content to other devices through the network.
  • the auxiliary system will provide an external prompt for the external data.
  • the external prompt is specifically a message notification prompt displayed on the screen, The message notification prompt or light prompt is broadcasted to indicate the arrival of the notification message, but the data content in it is not displayed.
  • the user can actively wake up the main system according to the notification prompt to view or process it.
  • the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
  • the method further includes:
  • the communication connection between the main system and the outside world is cut off, so as to prevent the data receiving module 41 in the main system from receiving external data, which will cause the main system to wake up, so that the auxiliary system can receive all external data.
  • this step is specifically: cut off the communication connection between the main system and the outside through the switch module that is communicatively connected with the main system and the auxiliary system, and drive the data receiving module 41 in the auxiliary system to receive all Outside news.
  • the auxiliary system includes a first subsystem 42 and a second subsystem 43;
  • auxiliary systems including:
  • the data content of external data is notified to the outside in the auxiliary system, including:
  • external prompts for external data in the auxiliary system include:
  • the auxiliary system includes a first subsystem 42 and a second subsystem 43.
  • step 4501 is: receiving external data through the data receiving module 41 of the first sub-system 42. Specifically: further, the received external data is transmitted to the first service module 45 through the first hardware interface module 44 and the first hardware abstraction layer 46. The first service module 45 extracts the data content of the external data and transmits the data content to the second subsystem 43. The second subsystem 43 transmits the data content to the second service module through the third hardware abstraction layer 410, and uses the second service module to judge the notification type of the data content and performs shelling processing on it.
  • step 4503 if the notification type is a supported type, the data content is displayed on the screen through the fourth hardware abstraction layer 411 and the second hardware interface module 48.
  • step 4504 if the notification type is an unsupported type, the screen displays the message prompt information.
  • the external notification of the data content of the external data in the auxiliary system includes:
  • the key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
  • the extraction method can be achieved through a trained neural network model.
  • the general steps of training the neural network model are:
  • the relevant training corpus and the corresponding result are used as the input of the neural network model to obtain the output result. If the output result deviates greatly from the corresponding real result, continue training with the corpus until the output result is between the corresponding real result The training is completed when the deviation is within the preset range.
  • the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 28, it is specifically displayed on the OLED screen in the second subsystem 43.
  • the external prompt for external data in the auxiliary system includes:
  • step 4504 is specifically: displaying an unread message prompt and icon information corresponding to the data content on the screen in the auxiliary system.
  • the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
  • FIG. 34 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention. As shown in FIG. 34, another aspect of the embodiment of the present invention provides a data notification device, which is applied to an auxiliary system, and the device includes:
  • the external data receiving module 4601 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
  • the notification type judging module 4602 is used for judging whether the received external data is a notification type supported by the auxiliary system;
  • the external notification module 4603 is configured to, if the notification type determining module 4602 determines that the received external data is a notification type supported by the auxiliary system, then externally notify the data content of the external data through the auxiliary system;
  • the external prompting module 4604 is configured to, if the notification type judging module 4602 determines that the received external data is a notification type that is not supported by the auxiliary system, then externally prompt the external data through the auxiliary system.
  • the external data receiving module 4601 first receives external data through the auxiliary system when determining that the main system is in the non-awake state.
  • the non-awakened state includes sleep state, hibernation state, and shutdown state
  • the external data includes phone notifications and short messages. Notifications and application notifications, etc.
  • the notification type judging module 4602 judges whether the received external data is a notification type supported by the auxiliary system.
  • the supported notification type is usually set in advance in the system. For example, short messages are preset in the mobile phone operating system on the market. Notification function, location notification function and some cooperative third-party applications, etc.
  • the corresponding SMS notification type, location notification type and some application notification data are data supported by the auxiliary system, and other external data is auxiliary Data not supported by the system, but the data is supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
  • the notification type determination module 4602 determines that the received external data is a notification type supported by the auxiliary system
  • the external notification module 4603 will notify the data content in the external data through the auxiliary system, where the external notification is in this
  • the data content is specifically displayed on the screen, or the data content is broadcast to the outside through a sounder, or the data content is transmitted to other devices through the network.
  • the external prompt module 4604 provides external prompts for the external data through the auxiliary system.
  • the external prompts in this embodiment are specifically The screen displays the message notification prompt, broadcasts the message notification prompt or light prompt on the sounder to indicate the receipt of the notification message, but does not display the data content.
  • the user can actively wake up the main system to view or process them.
  • the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
  • the external data receiving module 4601 is further specifically configured to: in the process of receiving external data through the auxiliary system:
  • the external data receiving module 4601 is also specifically used to cut off the communication connection between the main system and the outside world during the execution process, so as to prevent the data receiving module 41 in the main system from receiving external data, causing the main system to be awakened.
  • the auxiliary system receives all external data.
  • the external notification module 4603 is specifically configured to:
  • the key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
  • the external notification module 4603 is specifically used to extract key display content in the data content, and the extraction method can be through trained
  • the neural network model is implemented.
  • the general steps for training the neural network model are:
  • the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 28, it is specifically displayed on the OLED screen in the second subsystem 43.
  • the external prompting module 4604 is specifically used for:
  • the external prompt module 4604 is specifically configured to: display an unread message prompt and icon information corresponding to the data content on the screen in the auxiliary system.
  • the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
  • the storage medium includes a set of computer-executable instructions, which are used to execute the data notification method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data Whether it is the notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, the data content in the external data will be notified to the outside through the auxiliary system; if the received external data is determined For notification types that are not supported by the auxiliary system, the auxiliary system will provide external notifications for external data.
  • the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
  • FIG. 35 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention. As shown in FIG. 35, another aspect of the embodiment of the present invention provides a communication switching method, and the method includes:
  • Step 4701 When determining that the main system is in a non-awake state, receive external data through the auxiliary system;
  • Step 4702 Determine the notification type of the received external data
  • Step 4703 If it is determined that the notification type of the received external data is a specific notification type, the main system is awakened, and the main system is instructed to process the external data.
  • the auxiliary system receives external data.
  • the non-wake-up state includes sleep, hibernation, and shutdown states.
  • the external data includes phone notifications, SMS notifications, and application notifications.
  • the notification type of the received external data where the notification type is usually set in advance in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
  • the main system is awakened and the main system is instructed to process the external data.
  • the specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc.
  • the communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type.
  • the data receiving module 41 in the auxiliary system receives external data, and then transmits the external data to the first service module 45, and then The first service module 45 determines whether the external data is of a specific notification type, and if it determines that the external data is of a specific notification type, it wakes up the main system through the switch module and instructs the main system to process the specific notification type.
  • the method further includes:
  • the auxiliary system is instructed to process the external data.
  • the auxiliary system if it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data.
  • the normal notification type is defined as a notification type other than the specific notification type in this embodiment. For example, calendar notifications, alarm clock notifications, etc.
  • the common notification type is processed in the second service module in the second subsystem 43.
  • instructing the auxiliary system to process external data includes:
  • the specific process of the step "instruct the auxiliary system to process external data” is: instruct the data receiving module 41 in the first subsystem 42 to receive external data, and the first subsystem 42 transmits the external data to The second subsystem 43, the second subsystem 43 informs externally according to the data content of the external data.
  • the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders ; It can also be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
  • the method further includes:
  • the auxiliary system After the processing of the main system is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
  • the switch module determines that the main system is in the non-awakened state, it drives the data receiving module 41, that is, the auxiliary system to establish a communication connection with the outside again.
  • waking up the main system and instructing the main system to process external data includes:
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
  • FIG. 36 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention. As shown in FIG. 36, another aspect of an embodiment of the present invention provides a communication switching device, which includes:
  • the external data receiving module 4801 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
  • Notification type judging module 4802 used for judging the notification type of the received external data
  • the first data processing module 4803 is configured to wake up the main system and instruct the main system to process the external data when the notification type judging module 4802 determines that the notification type of the received external data is a specific notification type.
  • the external data receiving module 4801 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state.
  • the non-wake state includes sleep state, hibernation state, and shutdown state.
  • the external data includes phone notifications and short messages. Notifications and application notifications, etc.
  • the notification type judgment module 4802 judges the notification type of the received external data, where the notification type is usually preset in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
  • the notification type determining module 4802 determines that the notification type of the received external data is a specific notification type
  • the first data processing module 4803 wakes up the main system and instructs the main system to process the external data.
  • the specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc.
  • the communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type.
  • the device further includes:
  • the second data processing module 4804 is used for instructing the auxiliary system to process the external data if it is determined that the notification type of the received external data is the normal notification type.
  • the notification type judging module 4802 determines that the notification type of the received external data is a normal notification type
  • the second data processing module 4804 instructs the auxiliary system to process the external data.
  • the normal notification type is described in this embodiment. In the example, it is defined as a notification type other than a specific notification type, such as calendar notification, alarm notification, and so on.
  • the second data processing module 4804 is specifically configured to:
  • the second data processing module 4804 is specifically used to: instruct the data receiving module 41 in the first subsystem 42 to receive external data, and the first subsystem 42 to transmit the external data to the second Subsystem 43, the second sub-system 43 informs externally according to the data content of external data, wherein the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
  • the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
  • the first data processing module 4803 is specifically configured to:
  • the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system.
  • the working state includes the wake-up state and the non-wake-up state.
  • the wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
  • the classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
  • the storage medium includes a set of computer-executable instructions, which are used to execute a communication switching method when the instructions are executed.
  • the computer-readable storage medium includes a set of computer-executable instructions.
  • the instructions When executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data The notification type; if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include at least one of the features.
  • “plurality” means two or more than two, unless otherwise specifically defined.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed in the present invention are a data processing method and apparatus, and a computer readable storage medium, being applied to an auxiliary system. The method comprises: when determining that a main system is in a non-wakeup state, receiving external data by means of an auxiliary system; determining whether the received external data is a notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, notifying data content in the external data to the outside by means of the auxiliary system; and if it is determined that the received external data is a notification type that is not supported by the auxiliary system, prompting the external data to the outside by means of the auxiliary system. Thus, when the main system is in the non-wakeup state, once the external data is received, the notification type can be selected by means of the auxiliary system and the external data can be displayed according to the notification type in a targeted mode, without waking up the main system, thereby reducing the power consumption of the system and increasing the endurance time of the system.

Description

一种数据处理方法、装置以及计算机可读存储介质Data processing method, device and computer readable storage medium
本申请要求了2020年4月9日提交的、申请号为202010274913.8、发明名称为“一种数据通知方法、装置以及计算机可读存储介质”,2020年4月9日提交的、申请号为202010274281.5、发明名称为“一种数据处理装置”,2020年4月9日提交的、申请号为202010274261.8、发明名称为“一种数据读取和存储方法、装置以及计算机可读存储介质”,2020年4月9日提交的、申请号为202010274254.8、发明名称为“一种通信切换方法、装置以及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the application number to be 202010274913.8 and the title of the invention as "a data notification method, device and computer-readable storage medium" submitted on April 9, 2020, and the application number is 202010274281.5 submitted on April 9, 2020. , The title of the invention is "a data processing device", filed on April 9, 2020, the application number is 202010274261.8, the title of the invention is "a data reading and storage method, device and computer readable storage medium", 2020 The priority of the Chinese patent application filed on April 9 with the application number 202010274254.8 and the invention title is "a communication switching method, device and computer-readable storage medium", the entire content of which is incorporated into this application by reference.
技术领域Technical field
本本发明涉及通信技术领域,尤其涉及一种数据处理方法、装置以及计算机可读存储介质。The present invention relates to the field of communication technology, and in particular to a data processing method, device, and computer-readable storage medium.
背景技术Background technique
在一些内置多系统的设备中,在主系统处于未唤醒状态下时,一旦接收外界的通知消息便会唤醒主系统,频繁唤醒主系统将会导致增加了系统的功耗。In some devices with built-in multiple systems, when the main system is not awakened, the main system will be awakened once it receives an external notification message. Frequent waking up of the main system will increase the power consumption of the system.
发明内容Summary of the invention
本发明实施例提供了一种数据处理方法、装置以及计算机可读存储介质,具有减少系统功耗,提升续航时间的技术效果。The embodiments of the present invention provide a data processing method, a device, and a computer-readable storage medium, which have the technical effects of reducing system power consumption and improving battery life.
第一方面,本发明提供一种数据处理方法,应用于辅助系统,所述方法包括:在判定主系统处于非唤醒状态时,通过所述辅助系统接收外界数据;判断所接收到的外界数据是否为所述辅助系统所支持的通知类型;若判定所接收到的外界数据为所述辅助系统所支持的通知类型,则将所述外界数据中的数据内容通过所述辅助系统进行对外通知;若判定所接收到的外界数据为所述辅助系统所不支持的通知类型,则通过所述辅助系统针对所述外界数据进行对外提示。In the first aspect, the present invention provides a data processing method applied to an auxiliary system. The method includes: when determining that the main system is in a non-awake state, receiving external data through the auxiliary system; determining whether the received external data is Is the notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, then the data content in the external data is notified to the outside through the auxiliary system; if It is determined that the received external data is a notification type that is not supported by the auxiliary system, and then the auxiliary system provides an external prompt for the external data.
在一可实施方式中,在判定主系统处于非唤醒状态时,通过所述辅助系统接收外界数据的过程中,所述方法还包括:切断所述主系统与外界的通信连接,以使所述辅助系统接收所有的外界数据。In an implementation manner, when it is determined that the main system is in a non-awake state, in the process of receiving external data through the auxiliary system, the method further includes: cutting off the communication connection between the main system and the outside, so that the The auxiliary system receives all external data.
在一可实施方式中,所述将所述外界数据的数据内容在所述辅助系统内进行对外通知,包括:从所述数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。In an implementation manner, the external notification of the data content of the external data in the auxiliary system includes: extracting key display content from the data content, and displaying the extracted key display content in the auxiliary system. Display on the screen of the system.
在一可实施方式中,所述在所述辅助系统内针对所述外界数据进行对外提示,包括:在所述辅助系统内的屏幕上显示未读消息提示和对应于所述数据内容的图标信息。In an implementation manner, the external prompting for the external data in the auxiliary system includes: displaying an unread message prompt and icon information corresponding to the data content on a screen in the auxiliary system .
在一可实施方式中,所述辅助系统包括第一子系统和第二子系统;所述通过所述辅助系统接收外界数据,包括:通过所述第一子系统的数据接收模块接收外界数据;相应的,所述将所述外界数据的数据内容在所述辅助系统内进行对外通知,包括:在所述第二子系统的屏幕上显示所述外界数据的数据内容;相应的,所述在所述辅助系统内针对所述外界数据进行对外提示,包括:在所述第二子系统的屏幕上针对所述外界数据进行对外提示。In an implementation manner, the auxiliary system includes a first subsystem and a second subsystem; the receiving external data through the auxiliary system includes: receiving external data through a data receiving module of the first subsystem; Correspondingly, the externally notifying the data content of the external data in the auxiliary system includes: displaying the data content of the external data on the screen of the second subsystem; correspondingly, the The external prompting for the external data in the auxiliary system includes: external prompting for the external data on the screen of the second subsystem.
第二方面,本发明提供一种数据处理装置,应用于辅助系统,所述装置包括:外界数据接收模块,用于在判定主系统处于非唤醒状态时,通过所述辅助系统接收外界数据;通知类型判断模块,用于判断所接收到的外界数据是否为所述辅助系统所支持的通知类型;对外通知模块,用于若经所述通知类型判断模块判定所接收到的外界数据为所述辅助系统所支持的通知类型,则将所述外界数据的数据内容通过所述辅助系统进行对外通知;对外提示模块,用于若经所述通知类型判断模块判定所接收到的外界数据为所述辅助系统所不支持的通知类型,则通过所述辅助系统针对所述外界数据进行对外提示。In a second aspect, the present invention provides a data processing device applied to an auxiliary system. The device includes: an external data receiving module for receiving external data through the auxiliary system when it is determined that the main system is in a non-awake state; The type judgment module is used to judge whether the received external data is the notification type supported by the auxiliary system; the external notification module is used to determine whether the received external data is the auxiliary system through the notification type judgment module For the notification type supported by the system, the data content of the external data is notified to the outside through the auxiliary system; the external prompt module is used to determine that the received external data is the auxiliary by the notification type judging module For notification types that are not supported by the system, the auxiliary system provides external prompts for the external data.
在一可实施方式中,所述外界数据接收模块在通过所述辅助系统接收外界数据的过程中,还具体用于:切断所述主系统与外界的通信连接,以使所述辅助系统接收所有的外界数据。In an implementation manner, the external data receiving module is further specifically configured to: cut off the communication connection between the main system and the outside world in the process of receiving external data through the auxiliary system, so that the auxiliary system can receive all the external data. External data.
在一可实施方式中,所述对外通知模块具体用于:从所述数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。In an implementation manner, the external notification module is specifically configured to extract key display content from the data content, and display the extracted key display content on the screen of the auxiliary system.
在一可实施方式中,所述对外提示模块具体用于:在所述辅助系统内的屏幕上显示未读消息提示和对应于所述数据内容的图标信息。In an implementation manner, the external prompt module is specifically configured to: display an unread message prompt and icon information corresponding to the data content on a screen in the auxiliary system.
第三方面,本发明提供一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,当所述指令被执行时用于执行上述任一项所述的数据处理方法。In a third aspect, the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute the data processing method described in any one of the above when the instructions are executed.
在本发明实施例中,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。In the embodiment of the present invention, when the main system is in a non-wake-up state, once external data is received, the notification type can be filtered by the auxiliary system and displayed according to the notification type without awakening the main system. The power consumption of the system is reduced, and the battery life of the system is increased.
第四方面,本发明提供一种数据处理装置,所述装置包括辅助系统和开关模块:所述开关模块用于当主系统处于非唤醒状态时发出第一控制指令和第二控制指令,其中所述第一控制指令用于驱使所述主系统断开与外界的通信连接,所述第二控制指令用于驱使所述辅助系统与外界进行通信连接;所述辅助系统接收并响应于所述第二控制指令,以驱使所述辅助系统中的数据接收模块接收外界数据;所述辅助系统还用于将所接收到的外界数据对外告知。In a fourth aspect, the present invention provides a data processing device that includes an auxiliary system and a switch module: the switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-awakened state, wherein the The first control instruction is used to drive the main system to disconnect the communication connection with the outside world, the second control instruction is used to drive the auxiliary system to communicate with the outside world; the auxiliary system receives and responds to the second The control instruction is used to drive the data receiving module in the auxiliary system to receive external data; the auxiliary system is also used to notify the received external data.
在一可实施方式中,所述辅助系统具体用于将所接收到的外界数据通过语音播报的方式,或者通过在屏幕界面上显示的方式,或者通过网络进行信息传输的方式对外告知。In an implementation manner, the auxiliary system is specifically configured to notify the received external data through voice broadcast, display on a screen interface, or information transmission through the network.
在一可实施方式中,所述辅助系统包括第一子系统和第二子系统;所述数据接收模块安装在所述第一子系统中;所述第一子系统具体用于将所接收到的外界数据中进行数据预处理,得到可被所述第一子系统和第二子系统共同应用的中间数据,并将所得到的中间数据传输给所述第二子系统;所述第二子系统具体用于将所传输到的中间数据对外告知。In an implementable manner, the auxiliary system includes a first subsystem and a second subsystem; the data receiving module is installed in the first subsystem; the first subsystem is specifically used to transfer the received Data preprocessing is performed in the external data of the second sub-system to obtain intermediate data that can be jointly applied by the first subsystem and the second sub-system, and the obtained intermediate data is transmitted to the second sub-system; the second sub-system The system is specifically used to notify the transmitted intermediate data to the outside.
在一可实施方式中,所述第一子系统还具体包括第一硬件接口模块和第一服务模块;所述数据接收模块安装于所述第一硬件接口模块中;所述第一硬件接口模块用于将由所述数据接收模块所接收到的外界数据传输到所述第一服务模块中;所述第一服务模块将所述外界数据进行数据预处理,得到中间数据,并将所述中间数据传输给所述第二子系统。In an implementation manner, the first subsystem further specifically includes a first hardware interface module and a first service module; the data receiving module is installed in the first hardware interface module; the first hardware interface module It is used to transmit the external data received by the data receiving module to the first service module; the first service module performs data preprocessing on the external data to obtain intermediate data, and transfer the intermediate data To the second subsystem.
在一可实施方式中,所述第一硬件接口模块具体通过第一硬件抽象层将所述外界数据传输到所述第一服务模块中;所述第一服务模块具体通过第二硬件抽象层将所述中间数据传输给所述第二子系统。In an implementation manner, the first hardware interface module specifically transmits the external data to the first service module through the first hardware abstraction layer; the first service module specifically transmits the external data through the second hardware abstraction layer The intermediate data is transmitted to the second subsystem.
在一可实施方式中,所述中间数据为数据内容;所述第一服务模块具体用于从所述外界数据进行去壳处理,以从所述外界数据中获取数据内容。In an implementation manner, the intermediate data is data content; the first service module is specifically configured to perform shelling processing from the external data to obtain the data content from the external data.
在一可实施方式中,所述第二子系统包括第二硬件接口模块、显示屏幕和第二服务模块;所述第二服务模块用于接收所述中间数据,并对所述中间数据进行加壳处理,以得到仅供所述第二子系统应用的特定数据,并将所得到的特定数据传输到所述第二硬件接口模块;所述第二硬件接口模块上安装所述显示屏幕,并根据所接收到的特定数据,显示所述特定数据中的中间数据。In an implementable manner, the second subsystem includes a second hardware interface module, a display screen, and a second service module; the second service module is used to receive the intermediate data and add to the intermediate data. Shell processing to obtain specific data only for the second subsystem application, and transmit the obtained specific data to the second hardware interface module; install the display screen on the second hardware interface module, and According to the received specific data, the intermediate data in the specific data is displayed.
在一可实施方式中,所述第二服务模块通过第三硬件抽象层接收所述中间数据,并通过第四硬件抽象层将所述特定数据传输到所述第二硬件接口模块。In an implementation manner, the second service module receives the intermediate data through a third hardware abstraction layer, and transmits the specific data to the second hardware interface module through a fourth hardware abstraction layer.
在一可实施方式中,所述开关模块还具体用于当所述辅助系统处于工作状态并且所述主系统从非唤醒状态转为唤醒状态时驱使所述辅助系统继续接收并对外告知外界数据。In an implementation manner, the switch module is further specifically configured to drive the auxiliary system to continue to receive and notify external data when the auxiliary system is in a working state and the main system changes from a non-awakened state to an awakened state.
在一可实施方式中,所述数据接收模块具体为蓝牙模块、无线收发模块和有线收发模块之一。In an implementation manner, the data receiving module is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
在本发明实施例中,当外界有数据传递到装置时,通过辅助系统对外界数据进行处理,从而降低了主系统的唤醒频率,减少了系统的功耗,以达到提高续航的目的。In the embodiment of the present invention, when external data is transmitted to the device, the external data is processed by the auxiliary system, thereby reducing the wake-up frequency of the main system, reducing the power consumption of the system, and achieving the purpose of improving battery life.
第五方面,本发明提供一种数据读取方法,应用于辅助系统,所述辅助系统包括相互通信连接的第一子系统和第二子系统,所述方法包括:在判定主系统处于非唤醒状态下时通过所述第二子系统中的存储器获取已存数据;将所获取的已存数据传输给所述第一子系统;指示所述第一子系统读取所述已存数据。In a fifth aspect, the present invention provides a data reading method applied to an auxiliary system, the auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other, and the method includes: determining that the main system is not awake In the state, the stored data is acquired through the memory in the second subsystem; the acquired stored data is transmitted to the first subsystem; the first subsystem is instructed to read the stored data.
在一可实施方式中,所述指示所述第一子系统读取所述已存数据,包括:指示所述第一子系统对所接收到的已存数据进行加壳处理,得到仅供所述第一子系统应用的特定数据;指示所述第一子系统对所得到的特定数据进行读取。In an implementable manner, the instructing the first subsystem to read the stored data includes: instructing the first subsystem to pack the received stored data to obtain only The specific data applied by the first subsystem; instruct the first subsystem to read the obtained specific data.
第六方面,本发明提供一种数据存储方法,应用于辅助系统,所述辅助系统包括相互通信连接的第一子系统和第二子系统,所述方法包括:在判定主系统处于非唤醒状态下时,通过第一子系统中的数据接收模块获取外界数据,或者,在判定主系统处于唤醒状态下时,通过所述主系统接收外界数据;将所获取的外界数据传输给所述第二子系统;指示所述第二子系统将所述传输得到的外界数据存储到存储器中。In a sixth aspect, the present invention provides a data storage method applied to an auxiliary system, the auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other, and the method includes: determining that the main system is in a non-awake state When downloading, obtain external data through the data receiving module in the first subsystem, or, when it is determined that the main system is in an awake state, receive external data through the main system; transmit the obtained external data to the second Subsystem; instruct the second sub-system to store the external data obtained by the transmission in the memory.
在一可实施方式中,所述数据接收模块为低功耗蓝牙模块;相应的,所述通过第一子系统中的数据接收模块获取外界数据,包括:通过与所述低功耗蓝牙模块配对的设备获取外界数据;所述主系统中包括经典蓝牙模块;相应的,所述从所述主系统接收外界数据,具体包括:从所述主系统中的经典蓝牙模块所配对的设备获取到外界数据。In an implementation manner, the data receiving module is a Bluetooth low energy module; correspondingly, the obtaining external data through the data receiving module in the first subsystem includes: pairing with the Bluetooth low energy module The device to obtain external data; the main system includes a classic Bluetooth module; correspondingly, the receiving external data from the main system specifically includes: obtaining external data from a device paired with the classic Bluetooth module in the main system data.
在一可实施方式中,在蓝牙配对的过程中,所述方法还包括:在判定所述主系统处于唤醒状态时,通过所述主系统中的经典蓝牙模块与设备进行配对,所述低功耗蓝牙模块失去配对功能;在判定所述主系统处于非唤醒状态时,通过所述辅助系统中的低功耗蓝牙模块与设备进行配对,所述经典蓝牙模块失去配对功能。In an implementable manner, during the Bluetooth pairing process, the method further includes: when it is determined that the main system is in an awake state, pairing with the device through the classic Bluetooth module in the main system, the low power The Bluetooth consuming module loses the pairing function; when it is determined that the main system is in a non-awake state, the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
在一可实施方式中,所述方法还包括:在经典蓝牙模块已与所述设备配对的状态下,若所述主系统在唤醒状态切换至非唤醒状态时,所述经典蓝牙模块与已配对设备断开连接;指示所述低功耗蓝牙模块向待配对设备发出配对请求指令。In an implementable manner, the method further includes: in a state where the classic Bluetooth module has been paired with the device, if the main system is switched from the wake-up state to the non-wake-up state, the classic Bluetooth module is paired with the device. The device is disconnected; and the Bluetooth low energy module is instructed to send a pairing request instruction to the device to be paired.
第七方面,本发明提供一种数据读取装置,应用于辅助系统,所述辅助系统包括相互通信连接的第一子系统和第二子系统,所述装置包括:已存数据获取模块,用于在判定主系统处于非唤醒状态下时通过所述第二子系统中的存储器获取已存数据;已存数据传输模块,用于将所获取的已存数据传输给所述第一子系统;已存数据读取模块,用于指示所述第一子系统读取所述已存数据。In a seventh aspect, the present invention provides a data reading device applied to an auxiliary system. The auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other. The device includes: a stored data acquisition module, Acquiring stored data through the memory in the second subsystem when determining that the main system is in a non-awake state; a stored data transmission module for transmitting the acquired stored data to the first subsystem; The stored data reading module is used to instruct the first subsystem to read the stored data.
第八方面,本发明提供一种数据存储装置,应用于辅助系统,所述辅助系统包括相互通信连接的第一子系统和第二子系统,所述装置包括:外界数据获取模块,用于在判定主系统处于非唤醒状态下时,通过第一子系统中的数据接收模块获取外界数据,或者,在判定主系统处于唤醒状态下时,通过所述主系统接收外界数据;外界数据传输模块,用于将所获取的外界数据传输给所述第二子系统;外界数据存储模块,用于指示所述第二子系统将所述传输得到的外界数据存储到存储器中。In an eighth aspect, the present invention provides a data storage device applied to an auxiliary system. The auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other. The device includes: an external data acquisition module for When it is determined that the main system is in the non-awakened state, the external data is obtained through the data receiving module in the first subsystem, or when it is determined that the main system is in the awake state, the external data is received through the main system; the external data transmission module, It is used to transmit the acquired external data to the second subsystem; the external data storage module is used to instruct the second subsystem to store the transmitted external data in the memory.
第九方面,本发明提供一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,当所述指令被执行时用于执行上述任一项所述的数据读取方法。In a ninth aspect, the present invention provides a computer-readable storage medium, the storage medium including a set of computer-executable instructions, which are used to execute the data reading method described in any one of the foregoing when the instructions are executed.
第十方面,本发明提供一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,当所述指令被执行时用于执行上述任一项所述的数据存储方法。In a tenth aspect, the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute any of the above-mentioned data storage methods when the instructions are executed.
在本发明实施例中,在主系统处于非唤醒状态下时,通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。In the embodiment of the present invention, when the main system is in a non-wake-up state, some data can be read through the auxiliary system, thereby avoiding the increase of system power consumption caused by waking up the main system.
第十一方面,本发明提供一种通信切换方法,所述方法包括:在判定主系统处于非唤醒状态时, 通过辅助系统接收外界数据;判断所接收到的外界数据的通知类型;若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒所述主系统,并指示所述主系统处理所述外界数据。In an eleventh aspect, the present invention provides a communication switching method. The method includes: when determining that the main system is in a non-awake state, receiving external data through the auxiliary system; determining the notification type of the received external data; When the notification type of the received external data is a specific notification type, the main system is awakened, and the main system is instructed to process the external data.
在一可实施方式中,所述方法还包括:若判定所接收到的外界数据的通知类型为普通通知类型时,则指示辅助系统处理所述外界数据。In an implementation manner, the method further includes: if it is determined that the notification type of the received external data is a normal notification type, instructing the auxiliary system to process the external data.
在一可实施方式中,所述指示辅助系统处理所述外界数据,包括:指示辅助系统将所述外界数据对外告知。In an implementation manner, the instructing auxiliary system to process the external data includes: instructing the auxiliary system to notify the external data to the outside.
在一可实施方式中,在唤醒所述主系统,并指示所述主系统处理所述外界数据的过程中,所述方法还包括:断开辅助系统与外界的通信连接;当所述主系统处理完成之后,或者当所述主系统进入非唤醒状态时,所述辅助系统与外界重新建立通信连接。In an implementation manner, in the process of waking up the main system and instructing the main system to process the external data, the method further includes: disconnecting the communication connection between the auxiliary system and the outside; when the main system After the processing is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
在一可实施方式中,所述唤醒所述主系统,并指示所述主系统处理所述外界数据,包括:利用开关模块唤醒所述主系统中的经典蓝牙模块,并指示所述经典蓝牙模块处理所述外界数据。In an implementation manner, the waking up the main system and instructing the main system to process the external data includes: using a switch module to wake up the classic Bluetooth module in the main system and instruct the classic Bluetooth module Process the external data.
第十二方面,本发明提供一种通信切换装置,所述装置包括:外界数据接收模块,用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;通知类型判断模块,用于判断所接收到的外界数据的通知类型;第一数据处理模块,用于经所述通知类型判断模块判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒所述主系统,并指示所述主系统处理所述外界数据。In a twelfth aspect, the present invention provides a communication switching device. The device includes: an external data receiving module for receiving external data through the auxiliary system when determining that the main system is in a non-awake state; and a notification type determining module for Determine the notification type of the received external data; the first data processing module is used for waking up the main system when the notification type determining module determines that the notification type of the received external data is a specific notification type, and Instruct the main system to process the external data.
在一可实施方式中,所述装置还包括:第二数据处理模块,用于经所述通知类型判断模块判定所接收到的外界数据的通知类型为普通通知类型时,指示辅助系统处理所述外界数据。In an implementation manner, the device further includes: a second data processing module, configured to instruct the auxiliary system to process the notification type when the notification type of the received external data is determined by the notification type determination module to be a normal notification type External data.
在一可实施方式中,所述第二数据处理模块,具体用于:指示所述辅助系统将所述外界数据对外告知。In an implementation manner, the second data processing module is specifically configured to instruct the auxiliary system to notify the external data.
在一可实施方式中,所述第一数据处理模块,具体用于:利用开关模块唤醒所述主系统中的经典蓝牙模块,并指示所述经典蓝牙模块处理所述外界数据。In an implementation manner, the first data processing module is specifically configured to: use a switch module to wake up the classic Bluetooth module in the main system, and instruct the classic Bluetooth module to process the external data.
第十三方面,本发明提供一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,当所述指令被执行时用于执行上述任一项所述的通信切换方法。In a thirteenth aspect, the present invention provides a computer-readable storage medium, the storage medium including a set of computer-executable instructions, which are used to execute the communication switching method described in any one of the foregoing when the instructions are executed.
在本发明实施例中,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。In the embodiment of the present invention, the type of external data is judged, and if it is a specific notification type, it is handed over to the main system to process the external data to ensure that all external data can be processed.
附图说明Description of the drawings
通过参考附图阅读下文的详细描述,本发明示例性实施方式的上述以及其他目的、特征和优点将变得易于理解。在附图中,以示例性而非限制性的方式示出了本发明的若干实施方式,其中:By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features, and advantages of the exemplary embodiments of the present invention will become easier to understand. In the drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, in which:
在附图中,相同或对应的标号表示相同或对应的部分。In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
图1为发明实施例一种数据处理装置的结构组成示意图;FIG. 1 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention;
图2为本发明实施例一种数据读取方法的实现流程示意图;2 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention;
图3为本发明实施例一种数据存储方法的实现流程示意图;3 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention;
图4为本发明实施例一种数据读取装置的结构组成示意图;4 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention;
图5为本发明实施例一种数据存储装置的结构组成示意图;5 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention;
图6为本发明实施例一种数据处理方法的实现流程示意图;6 is a schematic diagram of the implementation flow of a data processing method according to an embodiment of the present invention;
图7为本发明实施例一种数据处理装置的结构组成示意图;7 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the present invention;
图8为本发明实施例一种通信切换方法的实现流程示意图;FIG. 8 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention;
图9为本发明实施例一种通信切换装置的结构组成示意图;9 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention;
图10为发明实施例一种数据处理装置的结构组成示意图;10 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention;
图11为本发明实施例一种数据读取方法的实现流程示意图;11 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention;
图12为本发明实施例一种数据存储方法的实现流程示意图;12 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention;
图13为本发明实施例一种数据读取装置的结构组成示意图;13 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention;
图14为本发明实施例一种数据存储装置的结构组成示意图;14 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention;
图15为本发明实施例一种数据通知方法的实现流程示意图;15 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention;
图16为本发明实施例一种数据通知装置的结构组成示意图;16 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention;
图17为本发明实施例一种通信切换方法的实现流程示意图;FIG. 17 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention;
图18为本发明实施例一种通信切换装置的结构组成示意图;18 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention;
图19为发明实施例一种数据处理装置的结构组成示意图;19 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention;
图20为本发明实施例一种数据读取方法的实现流程示意图;20 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention;
图21为本发明实施例一种数据存储方法的实现流程示意图;21 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention;
图22为本发明实施例一种数据读取装置的结构组成示意图;22 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention;
图23为本发明实施例一种数据存储装置的结构组成示意图;FIG. 23 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention; FIG.
图24为本发明实施例一种数据通知方法的实现流程示意图;24 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention;
图25为本发明实施例一种数据通知装置的结构组成示意图;25 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention;
图26为本发明实施例一种通信切换方法的实现流程示意图;FIG. 26 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention;
图27为本发明实施例一种通信切换装置的结构组成示意图;FIG. 27 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention;
图28为发明实施例一种数据处理装置的结构组成示意图;28 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention;
图29为本发明实施例一种数据读取方法的实现流程示意图;29 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention;
图30为本发明实施例一种数据存储方法的实现流程示意图;FIG. 30 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention; FIG.
图31为本发明实施例一种数据读取装置的结构组成示意图;31 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention;
图32为本发明实施例一种数据存储装置的结构组成示意图;32 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention;
图33为本发明实施例一种数据通知方法的实现流程示意图;FIG. 33 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention;
图34为本发明实施例一种数据通知装置的结构组成示意图;FIG. 34 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention;
图35为本发明实施例一种通信切换方法的实现流程示意图;35 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention;
图36为本发明实施例一种通信切换装置的结构组成示意图。FIG. 36 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, features, and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present invention.
实施例一Example one
图1为发明实施例一种数据处理装置的结构组成示意图。如图1所示,本发明一方面提供一种数据处理装置,装置包括辅助系统和开关模块:FIG. 1 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention. As shown in Figure 1, one aspect of the present invention provides a data processing device, which includes an auxiliary system and a switch module:
开关模块用于当主系统处于非唤醒状态时发出第一控制指令和第二控制指令,其中第一控制指令用于驱使主系统断开与外界的通信连接,第二控制指令用于驱使辅助系统与外界进行通信连接;The switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-wake-up state, wherein the first control instruction is used to drive the main system to disconnect the communication connection with the outside world, and the second control instruction is used to drive the auxiliary system to communicate with the outside world. Communication connection with the outside world;
辅助系统接收并响应于第二控制指令,以驱使辅助系统中的数据接收模块11接收外界数据;The auxiliary system receives and responds to the second control instruction to drive the data receiving module 11 in the auxiliary system to receive external data;
辅助系统还用于将所接收到的外界数据对外告知。The auxiliary system is also used to notify the received external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
当开关模块捕获到主系统处于非唤醒状态时,对主系统发送第一控制指令,该第一控制指令用于使主系统断开与外界的通信连接。同时,开关模块对辅助系统发送第二控制指令,该第二控制指令用于辅助系统与外界建立通信连接,其中本实施例所提及的“外界”为除自身以外的范围,并非除整个设备以外的范围。When the switch module captures that the main system is in a non-awakened state, it sends a first control instruction to the main system, and the first control instruction is used to disconnect the main system from the communication connection with the outside world. At the same time, the switch module sends a second control instruction to the auxiliary system. The second control instruction is used to establish a communication connection between the auxiliary system and the outside world. Outside the scope.
辅助系统接收并响应由开关模块所发送的第二控制指令,以驱使安装在辅助系统中的数据接收模块11与外界通信连接,以接收外界数据。其中外界数据包括电话通知、短信通知和应用通知,辅助系统最后将所接收到的外界数据对外告知。The auxiliary system receives and responds to the second control instruction sent by the switch module to drive the data receiving module 11 installed in the auxiliary system to communicate with the outside world to receive external data. The external data includes phone notifications, short message notifications and application notifications, and the auxiliary system finally informs the received external data.
由此,当外界有数据传递到装置时,通过辅助系统对数据进行处理,从而降低了主系统的唤醒频率,减少了系统的功耗,以达到提高续航的目的。As a result, when data from the outside world is transmitted to the device, the data is processed by the auxiliary system, thereby reducing the wake-up frequency of the main system, reducing the power consumption of the system, and achieving the purpose of improving battery life.
进一步地,数据接收模块11优选为BLE(Bluetooth Low Energy,低功耗蓝牙)。Further, the data receiving module 11 is preferably BLE (Bluetooth Low Energy, Bluetooth Low Energy).
进一步地,现有的多系统设备中的每个系统都会设置BLE模块,以达到在任一系统在工作时均能与外界保持通信,通过此装置,可以优化掉主系统中的BLE模块,减少了设备中硬件资源的占用率。Furthermore, each system in the existing multi-system equipment will be equipped with a BLE module to achieve communication with the outside world when any system is working. Through this device, the BLE module in the main system can be optimized and reduced The occupancy rate of hardware resources in the device.
在一可实施方式中,开关模块还具体用于当辅助系统处于工作状态并且主系统从非唤醒状态转为唤醒状态时驱使辅助系统继续接收并对外告知外界数据。In a possible implementation, the switch module is also specifically used to drive the auxiliary system to continue receiving and to notify external data when the auxiliary system is in a working state and the main system changes from the non-wake-up state to the wake-up state.
本实施例中,当辅助系统处于工作状态下,并且当主系统由非唤醒状态转为唤醒状态时,开关模块将不阻断辅助系统与外界的通信连接,依旧通过辅助系统来接收外界数据,进而进一步降低主系统的功耗。In this embodiment, when the auxiliary system is in the working state and the main system changes from the non-wake-up state to the wake-up state, the switch module will not block the communication connection between the auxiliary system and the outside world, and still receive external data through the auxiliary system. Further reduce the power consumption of the main system.
在一可实施方式中,辅助系统具体用于将所接收到的外界数据通过语音播报的方式,或者通过在屏幕界面上显示的方式,或者通过网络进行信息传输的方式对外告知。In an implementation manner, the auxiliary system is specifically used to notify the received external data through voice broadcast, or through display on a screen interface, or through information transmission through the network.
本实施例中,辅助系统中可以包含发声器、屏幕、无线收发模块等硬件设备。当数据接收模块11接收到外界数据之后,辅助系统可以根据外界数据的类型针对性地对外告知,其中外界数据的类型包括图像、音频、视频和文字等,若外界数据为图像、视频和文字数据时,则通过在屏幕上进行显示的方式对外告知;若外界数据为音频数据时,则通过发声器播报的方式对外告知;所接收到的外界数据还可以通过网络渠道再次向外界的设备进行传输的方式对外告知。其中,对外告知的对象可以是人、动物、设备模块等。In this embodiment, the auxiliary system may include hardware devices such as a sounder, a screen, and a wireless transceiver module. After the data receiving module 11 receives the external data, the auxiliary system can notify the external data according to the type of the external data. The types of the external data include image, audio, video and text. If the external data is image, video and text data If the external data is audio data, it will be notified through the sounder broadcast method; the received external data can also be transmitted to the external device through the network channel again The way to inform the public. Among them, the object of external notification may be people, animals, equipment modules, and so on.
在一可实施方式中,辅助系统包括第一子系统12和第二子系统13;In a possible implementation, the auxiliary system includes a first sub-system 12 and a second sub-system 13;
数据接收模块11安装在第一子系统12中;The data receiving module 11 is installed in the first subsystem 12;
第一子系统12具体用于将所接收到的外界数据中进行数据预处理,得到可被第一子系统12和第二子系统13共同应用的中间数据,并将所得到的中间数据传输给第二子系统13;The first subsystem 12 is specifically used to perform data preprocessing on the received external data, to obtain intermediate data that can be jointly applied by the first subsystem 12 and the second subsystem 13, and to transmit the obtained intermediate data to The second subsystem 13;
第二子系统13具体用于将所传输到的中间数据对外告知。The second subsystem 13 is specifically used to notify the transmitted intermediate data to the outside.
本实施例中,具体参考图1所示,第一子系统12在本实施例中优选为Apollo3+型号的单片机,第二子系统13在本实施例中优选为ST型号的单片机,第一子系统12和第二子系统13相互通信连接。In this embodiment, referring specifically to FIG. 1, the first subsystem 12 is preferably an Apollo3+ type single-chip microcomputer in this embodiment, and the second subsystem 13 is preferably an ST type single-chip microcomputer in this embodiment. 12 and the second subsystem 13 are connected in communication with each other.
数据接收模块11安装在第一子系统12中,由于不同子系统只会处理其所识别或者所支持的数据,因此通过第一子系统12将由数据接收模块11(即图中的BLE)所接收到的外界数据进行数据预处理,得到可被第一子系统12和第二子系统13共同应用的中间数据,并将中间数据传输给第二子系统13,第二子系统13将所传输得到的中间数据对外告知。The data receiving module 11 is installed in the first sub-system 12. Since different sub-systems can only process the data identified or supported by them, the data receiving module 11 (ie BLE in the figure) will receive the data through the first sub-system 12 Perform data preprocessing on the received external data to obtain intermediate data that can be jointly used by the first subsystem 12 and the second subsystem 13, and transmit the intermediate data to the second subsystem 13, and the second subsystem 13 transmits the obtained intermediate data. Of the intermediate data.
在一可实施方式中,第一子系统12还具体包括第一硬件接口模块14和第一服务模块15;In an implementation manner, the first subsystem 12 further specifically includes a first hardware interface module 14 and a first service module 15;
数据接收模块11安装于第一硬件接口模块14中;The data receiving module 11 is installed in the first hardware interface module 14;
第一硬件接口模块14用于将由数据接收模块11所接收到的外界数据传输到第一服务模块15中;The first hardware interface module 14 is used to transmit the external data received by the data receiving module 11 to the first service module 15;
第一服务模块15将外界数据进行数据预处理,得到中间数据,并将中间数据传输给第二子系统13。The first service module 15 performs data preprocessing on external data to obtain intermediate data, and transmits the intermediate data to the second subsystem 13.
本实施例中,第一硬件接口模块14中包括I2C-M(Inter-Integrated Circuit Master,集成电路总线)、QSPI/SPI(QSPI:Queued Serial Peripheral Interface,串行外设接口;/SPI:Serial Peripheral Interface,串行外设接口)、DMA(Direct Memory Access,直接存储器访问)、I2S/PCM(I2S:Inter—IC Sound,集成电路内置音频总线;PCM:Pulse-code modulation脉冲编码调制)等硬件或接口,因此可在第一硬件接口模块14上安装比如LCD(Liquid Crystal Display,液晶显示器)、FG(Fual Guage,硬件电量计)、Sen(Sensors,传感器)、BlE(Bluetooth Low Energy,低功耗蓝牙)、AI(Audio In,音频输入)和Mic(Microphone,麦克风)等硬件设备。数据接收模块11(即图中的BLE)可根据自身的接口类型接入到第一硬件接口模块14中。In this embodiment, the first hardware interface module 14 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), QSPI/SPI (QSPI: Queued Serial Peripheral Interface, serial peripheral interface; /SPI: Serial Peripheral) Interface, serial peripheral interface), DMA (Direct Memory Access, direct memory access), I2S/PCM (I2S: Inter-IC Sound, integrated circuit built-in audio bus; PCM: Pulse-code modulation) and other hardware or Interface, so the first hardware interface module 14 can be installed on the first hardware interface module 14, such as LCD (Liquid Crystal Display), FG (Fual Guard, hardware fuel gauge), Sen (Sensors), BlE (Bluetooth Low Energy, low power consumption) Bluetooth), AI (Audio In, audio input) and Mic (Microphone, microphone) and other hardware devices. The data receiving module 11 (ie, BLE in the figure) can be connected to the first hardware interface module 14 according to its own interface type.
第一硬件接口模块14用于将数据接收模块11所接收到的外界数据传输给第一服务模块15。第一服务模块15是第一子系统12的处理内核,用于处理第一子系统12中的数据,由于第一子系统12优选为Apollo3+型号的单片机,对应的,第一服务模块15优选为Apollo3+Service模块。通过第一服务模块15对外界数据进行数据预处理,得到中间数据,并通过第一服务模块15将中间数据传输给第二子系统13。The first hardware interface module 14 is used to transmit the external data received by the data receiving module 11 to the first service module 15. The first service module 15 is the processing core of the first subsystem 12, and is used to process data in the first subsystem 12. Since the first subsystem 12 is preferably an Apollo3+ single-chip microcomputer, correspondingly, the first service module 15 is preferably Apollo3+Service module. The external data is preprocessed by the first service module 15 to obtain intermediate data, and the intermediate data is transmitted to the second subsystem 13 through the first service module 15.
在一可实施方式中,第一硬件接口模块14具体通过第一硬件抽象层16将外界数据传输到第一服务模块15中;In an implementation manner, the first hardware interface module 14 specifically transmits external data to the first service module 15 through the first hardware abstraction layer 16;
第一服务模块15具体通过第二硬件抽象层17将中间数据传输给第二子系统13。The first service module 15 specifically transmits the intermediate data to the second subsystem 13 through the second hardware abstraction layer 17.
本实施例中,第一硬件抽象层16和第二硬件抽象层17(即图中的HAL,Hardware Abstraction Layer)是位于操作系统内核与硬件电路之间的接口层,其目的在于将硬件抽象化。In this embodiment, the first hardware abstraction layer 16 and the second hardware abstraction layer 17 (ie HAL, Hardware Abstraction Layer in the figure) are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
在一可实施方式中,中间数据为数据内容;In a possible implementation, the intermediate data is data content;
第一服务模块15具体用于从外界数据进行去壳处理,以从外界数据中获取数据内容。The first service module 15 is specifically configured to perform shelling processing from external data to obtain data content from the external data.
在本实施例中,由数据接收模块11所接收到的外界数据中包括可被第一子系统12(主要为第一子系统12下的第一硬件接口模块14或硬件)识别或者支持的特征信息和数据内容,因此第一服务模块15需要对外界数据进行去壳处理,具体为从外界数据中删除特征信息,只保留数据内容。In this embodiment, the external data received by the data receiving module 11 includes features that can be recognized or supported by the first subsystem 12 (mainly the first hardware interface module 14 or hardware under the first subsystem 12) Information and data content, therefore, the first service module 15 needs to shell out the external data, specifically deleting the characteristic information from the external data, and only retaining the data content.
在一可实施方式中,第二子系统13包括第二硬件接口模块18、显示屏幕19和第二服务模块;In an implementation manner, the second subsystem 13 includes a second hardware interface module 18, a display screen 19, and a second service module;
第二服务模块用于接收中间数据,并对中间数据进行加壳处理,以得到仅供第二子系统13应用的特定数据,并将所得到的特定数据传输到第二硬件接口模块18;The second service module is used to receive intermediate data, and pack the intermediate data to obtain specific data that is only used by the second subsystem 13 and transmit the obtained specific data to the second hardware interface module 18;
第二硬件接口模块18上安装显示屏幕19,并根据所接收到的特定数据,显示特定数据中的中间数据。A display screen 19 is installed on the second hardware interface module 18, and according to the received specific data, the intermediate data in the specific data is displayed.
本实施例中,第二硬件接口模块18包括I2C-M I2C-M(Inter-Integrated Circuit Master,集成电路总线)、SPI-M(Serial Peripheral Interface Master,串行外设接口)、DMA(Direct Memory Access,直接存储器访问)等硬件或接口,以可在第二子系统13中安装OLED(Organic Light-Emitting Diode,有机发光半导体)、Tou(Touch,触摸板)、GPS(Global Positioning System,全球定位系统)和K(KEY,键盘)等硬件设备。In this embodiment, the second hardware interface module 18 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), SPI-M (Serial Peripheral Interface Master, serial peripheral interface), and DMA (Direct Memory). Access, direct memory access) and other hardware or interfaces, so that OLED (Organic Light-Emitting Diode, organic light-emitting semiconductor), Tou (Touch), GPS (Global Positioning System) can be installed in the second subsystem 13 System) and K (KEY, keyboard) and other hardware devices.
显示屏幕19优选为OLED屏幕,根据自身的接口类型安装在第二硬件接口模块18上,以实现第二硬件接口模块18与显示屏幕19通信连接。The display screen 19 is preferably an OLED screen, which is installed on the second hardware interface module 18 according to its own interface type, so as to realize the communication connection between the second hardware interface module 18 and the display screen 19.
由于第二子系统13优选为ST型号的单片机,相应的,第二服务模块对应对应为ST Service模块,用于处理第二子系统13中数据的运算。在本实施例中第二服务模块主要用于对所接收到的中间数据进行加壳处理,具体为:对中间数据加上可被第二硬件接口模块18、硬件所识别或支持的特征信息,生成特定数据。第二服务模块将所生成的特定数据传输给第二硬件接口模块18,第二硬件接口模块18接收特定数据,并通过显示屏幕19显示中间数据。Since the second subsystem 13 is preferably an ST-type single-chip microcomputer, correspondingly, the second service module corresponds to an ST Service module, which is used to process data operations in the second subsystem 13. In this embodiment, the second service module is mainly used to pack the received intermediate data, specifically: adding characteristic information that can be recognized or supported by the second hardware interface module 18 and the hardware to the intermediate data, Generate specific data. The second service module transmits the generated specific data to the second hardware interface module 18, and the second hardware interface module 18 receives the specific data and displays the intermediate data through the display screen 19.
在一可实施方式中,第二服务模块通过第三硬件抽象层110接收中间数据,并通过第四硬件抽象层111将特定数据传输到第二硬件接口模块18。In an implementation manner, the second service module receives intermediate data through the third hardware abstraction layer 110, and transmits specific data to the second hardware interface module 18 through the fourth hardware abstraction layer 111.
本实施例中,第三硬件抽象层110和第四硬件抽象层111(即图中的HAL,Hardware Abstraction Layer)是位于操作系统内核与硬件电路之间的接口层,其目的在于将硬件抽象化。In this embodiment, the third hardware abstraction layer 110 and the fourth hardware abstraction layer 111 (ie, HAL, Hardware Abstraction Layer in the figure) are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
在一可实施方式中,数据接收模块11具体为蓝牙模块、无线收发模块和有线收发模块之一。In an implementation manner, the data receiving module 11 is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
本实施例中,数据接收模块11主要用于接收外界的数据,其具体可以为蓝牙模块、无线收发模块和有线收发模块的其中之一,图1中,数据接收模块11优选为BLE模块(低功耗蓝牙)。In this embodiment, the data receiving module 11 is mainly used to receive external data, which can be specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In FIG. 1, the data receiving module 11 is preferably a BLE module (low Bluetooth power consumption).
图2为本发明实施例一种数据读取方法的实现流程示意图。如图2所示,本发明实施例另一方面提供一种数据读取方法,应用于辅助系统,辅助系统包括相互通信连接的第一子系统12和第二子系统13,方法包括:FIG. 2 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention. As shown in FIG. 2, another aspect of the embodiment of the present invention provides a data reading method, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 12 and a second subsystem 13 that are communicatively connected to each other. The method includes:
步骤1101,在判定主系统处于非唤醒状态下时通过第二子系统13中的存储器112获取已存数据;Step 1101: Acquire stored data through the memory 112 in the second subsystem 13 when it is determined that the main system is in a non-awake state;
步骤1102,将所获取的已存数据传输给第一子系统12;Step 1102: Transmit the acquired stored data to the first subsystem 12;
步骤1103,指示第一子系统12读取已存数据。 Step 1103, instruct the first subsystem 12 to read the stored data.
本实施例中,主系统和辅助系统的结构关系以及辅助系统的结构可参考图1。In this embodiment, the structural relationship between the main system and the auxiliary system and the structure of the auxiliary system can refer to FIG. 1.
结合图1,当判定主系统处于非唤醒状态下时,通过第二子系统13中的存储器112获取已存数据,其中主系统的工作状态判断过程可通过开关模块来获取判断;存储器112预先安装在第二子系统13中,具体为基于NF(Nor Flash,非易失闪存技术)的存储器,用于存储数据。With reference to Figure 1, when it is determined that the main system is in a non-awake state, the stored data is obtained through the memory 112 in the second sub-system 13, wherein the working state judgment process of the main system can be obtained and judged through the switch module; the memory 112 is pre-installed The second subsystem 13 is specifically a memory based on NF (Nor flash, non-volatile flash memory technology) for storing data.
接着将所获取的已存数据传输给第一子系统12;Then transmit the acquired stored data to the first subsystem 12;
最后指示第一子系统12读取已存数据,其中本实施例中的读取操作包括对数据的显示、播报;若已存数据为音频数据,则读取的操作为播报;若已存数据为文本信息,则此时的读取操作为显示。Finally, the first subsystem 12 is instructed to read the stored data, where the read operation in this embodiment includes the display and broadcast of the data; if the stored data is audio data, the read operation is broadcast; if the data is stored If it is text information, the reading operation at this time is display.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
进一步地,参考图1,第二子系统13中包括第二服务模块,因此,步骤1101和步骤1102的具体过程为:在判定主系统处于非唤醒状态下时,通过第二服务模块来获取存储器112中的已存数据,并通过第二服务模块将已存数据传输通过第三硬件抽象层110传输给第一子系统12。Further, referring to FIG. 1, the second subsystem 13 includes a second service module. Therefore, the specific process of step 1101 and step 1102 is: when it is determined that the main system is in a non-awake state, the second service module obtains the memory The stored data in 112 is transmitted to the first subsystem 12 through the third hardware abstraction layer 110 through the second service module.
在一可实施方式中,指示第一子系统12读取已存数据,包括:In an implementation manner, instructing the first subsystem 12 to read the stored data includes:
指示第一子系统12对所接收到的已存数据进行加壳处理,得到仅供第一子系统12应用的特定数据;Instruct the first subsystem 12 to pack the received stored data to obtain specific data that can only be used by the first subsystem 12;
指示第一子系统12对所得到的特定数据进行读取。Instruct the first subsystem 12 to read the obtained specific data.
本实施例中,步骤1103的具体过程为:指示第一子系统12对所接收到的已存数据进行加壳处理,得到仅供第一子系统12应用的特定数据,具体为:在原有数据的基础上增加可被对应于第一子系统12所识别或所支持的特征信息,生成特定数据,该特定数据可被第一子系统12中的接口模块或者硬件所识别,以便接口模块或者硬件所读取特定数据。In this embodiment, the specific process of step 1103 is: instruct the first subsystem 12 to pack the received stored data to obtain specific data that can only be used by the first subsystem 12, specifically: in the original data Based on the addition of feature information that can be identified or supported by the first subsystem 12, specific data is generated, and the specific data can be identified by the interface module or hardware in the first subsystem 12, so that the interface module or hardware The specific data being read.
进一步地,参考图1,第一子系统12不同的读取方式有多种,不同的特定数据对应不同的读取方式,并且需要相应的硬件配合,若假设提取的已存数据为音频数据,则需要发声器硬件,该硬件需安装在第一硬件接口模块14中的I2S/PCM接口中。在步骤1101将所获取的已存数据传输给第一子系统12之后,由第一子系统12的第一服务模块15接收已存数据并对其进行加壳处理得到特定数据,再将特定数据传输给第二接口模块中的发声器,从而对音频数据进行播报。Further, referring to FIG. 1, there are multiple different reading methods for the first subsystem 12, and different specific data corresponds to different reading methods, and corresponding hardware cooperation is required. If it is assumed that the extracted stored data is audio data, Sounder hardware is required, and the hardware needs to be installed in the I2S/PCM interface in the first hardware interface module 14. After the acquired stored data is transmitted to the first subsystem 12 in step 1101, the first service module 15 of the first subsystem 12 receives the stored data and packs it to obtain specific data, and then transfers the specific data It is transmitted to the sounder in the second interface module to broadcast audio data.
图3为本发明实施例一种数据存储方法的实现流程示意图。如图3所示,本发明实施例另一方面一种数据存储方法,应用于辅助系统,辅助系统包括相互通信连接的第一子系统12和第二子系统13,方法包括:FIG. 3 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention. As shown in FIG. 3, another aspect of the embodiment of the present invention is a data storage method, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 12 and a second subsystem 13 that are communicatively connected to each other. The method includes:
步骤1201,在判定主系统处于非唤醒状态下时,通过第一子系统12中的数据接收模块11获取外界数据,Step 1201: When it is determined that the main system is in a non-awake state, obtain external data through the data receiving module 11 in the first subsystem 12,
或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;Or, when it is determined that the main system is in the wake-up state, the slave receives external data through the main system;
步骤1202,将所获取的外界数据传输给第二子系统13;Step 1202: Transmit the acquired external data to the second subsystem 13;
步骤1203,指示第二子系统13将传输得到的外界数据存储到存储器112中。Step 1203: Instruct the second subsystem 13 to store the external data obtained by the transmission in the memory 112.
本实施例中,结合图1所示,首先在判定主系统处于非唤醒状态下时,通过第一子系统12中的数据接收模块11获取外界数据,或者,在判定主系统处于唤醒状态下时,通过从主系统(具体主系统中的经典蓝牙模块)接收外界数据。其中主系统的工作状态可通过开关模块来获取判定,数据接收模块11主要用于接收外界的数据,其具体可以为蓝牙模块、无线收发模块和有线收发模块的其中之一,在本实施例中,数据接收模块11优选为BLE(低功耗蓝牙)。In this embodiment, as shown in FIG. 1, first, when it is determined that the main system is in a non-awakened state, external data is obtained through the data receiving module 11 in the first subsystem 12, or when it is determined that the main system is in an awake state , By receiving external data from the main system (the classic Bluetooth module in the specific main system). The working state of the main system can be determined by the switch module. The data receiving module 11 is mainly used to receive data from the outside world. Specifically, it can be one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In this embodiment, The data receiving module 11 is preferably BLE (Bluetooth Low Energy).
步骤1201具体过程为:在判定主系统处于非唤醒状态下时,开关模块令另辅助系统开始工作,此时具体为由第一子系统12中的数据接收模块11来接收外界数据;在判定主系统中处于唤醒状态下时,主系统与存储器112通信连接,利用通过主系统中的接收模块如经典蓝牙模块来接收外界数据。The specific process of step 1201 is: when it is determined that the main system is in a non-awake state, the switch module causes the other auxiliary system to start working. At this time, the data receiving module 11 in the first sub-system 12 receives external data; When the system is in an awake state, the main system is in communication connection with the memory 112, and the receiving module in the main system, such as a classic Bluetooth module, is used to receive external data.
接着将所获取的外界数据传输给第二子系统13,具体为:若通过第一子系统12接收外界数据,则将接收到的外界数据依次通过第一硬件接口模块14、第一硬件抽象层16、第一服务模块15、第二硬件抽象层17之后传输给第二子系统13;若通过主系统接收外界数据,则利用主系统的输出接口将外界数据传输给第二子系统13下的存储器112中。Then the obtained external data is transmitted to the second subsystem 13, specifically: if the external data is received through the first subsystem 12, the received external data is sequentially passed through the first hardware interface module 14, the first hardware abstraction layer 16. The first service module 15 and the second hardware abstraction layer 17 are then transmitted to the second subsystem 13; if the external data is received through the main system, the output interface of the main system is used to transmit the external data to the second subsystem 13 In the memory 112.
最后指示第二子系统13将传输得到的外界数据存储到存储器112中,具体过程为:将外界数据依次通过第三抽象层、第二服务模块之后存入到存储器112中。Finally, the second subsystem 13 is instructed to store the external data obtained by the transmission in the memory 112, and the specific process is: the external data is stored in the memory 112 after sequentially passing through the third abstraction layer and the second service module.
在一可实施方式中,数据接收模块11为低功耗蓝牙模块;In an implementation manner, the data receiving module 11 is a Bluetooth low energy module;
相应的,通过第一子系统12中的数据接收模块11获取外界数据,包括:Correspondingly, obtaining external data through the data receiving module 11 in the first subsystem 12 includes:
通过与低功耗蓝牙模块配对的设备获取外界数据;Obtain external data through a device paired with a Bluetooth low energy module;
主系统中包括经典蓝牙模块;The main system includes classic Bluetooth module;
相应的,从主系统接收外界数据,具体包括:Correspondingly, receiving external data from the main system includes:
从主系统中的经典蓝牙模块所配对的设备获取到外界数据。Obtain external data from the device paired with the classic Bluetooth module in the main system.
本实施例中,数据接收模块11为低功耗蓝牙模块,主系统中包括经典蓝牙模块;因此,步骤1201具体为:通过与低功耗蓝牙模块配对的设备获取外界数据,和从主系统中的经典蓝牙模块所配对的设备获取到外界数据。In this embodiment, the data receiving module 11 is a low-power Bluetooth module, and the main system includes a classic Bluetooth module; therefore, step 1201 specifically includes: obtaining external data through a device paired with the low-power Bluetooth module, and from the main system The device paired with the classic Bluetooth module obtains external data.
在一可实施方式中,在蓝牙配对的过程中,方法还包括:In an implementation manner, during the Bluetooth pairing process, the method further includes:
在判定主系统处于唤醒状态时,通过主系统中的经典蓝牙模块与设备进行配对,低功耗蓝牙模块 失去配对功能;When it is determined that the main system is in the awake state, pair the device with the classic Bluetooth module in the main system, and the Bluetooth low energy module loses the pairing function;
在判定主系统处于非唤醒状态时,通过辅助系统中的低功耗蓝牙模块与设备进行配对,经典蓝牙模块失去配对功能。When it is determined that the main system is in a non-awake state, the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
本实施例中,主系统和辅助系统只能有一侧进行数据接收蓝牙配对,当判定主系统处于唤醒状态时,通过主系统中的经典蓝牙模块与设备进行配对,以从设备中接收外界数据,此时令低功耗蓝牙模块失去配对功能;在判定主系统处于非唤醒状态时,通过辅助系统中的低功耗蓝牙模块与设备进行配对,以从已配对设备中接收外界数据,此时经典蓝牙模块失去配对功能,其中配对功能的开启和关闭可通过开关模块来控制。In this embodiment, only one side of the main system and the auxiliary system can perform data receiving Bluetooth pairing. When it is determined that the main system is in the awake state, the classic Bluetooth module in the main system is paired with the device to receive external data from the device. At this time, the Bluetooth low energy module loses its pairing function; when it is determined that the main system is not awake, the Bluetooth low energy module in the auxiliary system is paired with the device to receive external data from the paired device. At this time, the classic Bluetooth The module loses the pairing function, and the opening and closing of the pairing function can be controlled by the switch module.
在一可实施方式中,方法还包括:在经典蓝牙模块已与设备配对的状态下,若主系统在唤醒状态切换至非唤醒状态时,经典蓝牙模块与已配对设备断开连接;In an implementation manner, the method further includes: in a state where the classic Bluetooth module is paired with the device, if the main system is switched from the wake-up state to the non-wake-up state, the classic Bluetooth module is disconnected from the paired device;
指示低功耗蓝牙模块向待配对设备发出配对请求指令。Instruct the Bluetooth low energy module to send a pairing request instruction to the device to be paired.
本实施例中,在经典蓝牙模块已与设备配对的状态下,若主系统在唤醒状态切换至非唤醒状态时,开关模块控制主系统中的经典蓝牙模块断开与已配对设备的通信连接,并启动辅助系统中的低功耗蓝牙模块,此时通过低功耗蓝牙模块对已断开的设备发出配对请求,已断开设备可通过响应该请求以再次建立通信连接。In this embodiment, when the classic Bluetooth module is paired with the device, if the main system switches to the non-awake state in the wake-up state, the switch module controls the classic Bluetooth module in the main system to disconnect the communication connection with the paired device. And start the Bluetooth low energy module in the auxiliary system. At this time, the Bluetooth low energy module sends a pairing request to the disconnected device, and the disconnected device can respond to the request to establish a communication connection again.
图4为本发明实施例一种数据读取装置的结构组成示意图。如图4所示,本发明实施例另一方面提供一种数据读取装置,应用于辅助系统,辅助系统包括相互通信连接的第一子系统12和第二子系统13,装置包括:FIG. 4 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention. As shown in FIG. 4, another aspect of the embodiment of the present invention provides a data reading device, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 12 and a second subsystem 13 that are communicatively connected to each other, and the device includes:
已存数据获取模块1301,用于在判定主系统处于非唤醒状态下时通过第二子系统13中的存储器112获取已存数据;The stored data acquisition module 1301 is configured to acquire the stored data through the memory 112 in the second subsystem 13 when it is determined that the main system is in the non-awake state;
已存数据传输模块1302,用于将所获取的已存数据传输给第一子系统12;The stored data transmission module 1302 is used to transmit the acquired stored data to the first subsystem 12;
已存数据读取模块1303,用于指示第一子系统12读取已存数据。The stored data reading module 1303 is used to instruct the first subsystem 12 to read the stored data.
本实施例中,主系统和辅助系统的结构关系图可参考图1。In this embodiment, the structural relationship diagram of the main system and the auxiliary system can refer to FIG. 1.
结合图1,通过已存数据获取模块1301判定主系统处于非唤醒状态下时,通过第二子系统13中的存储器112获取已存数据,其中主系统的工作状态判断过程可通过开关模块判断;存储器112安装在第二子系统13中,用于存储数据。With reference to FIG. 1, when the stored data acquisition module 1301 determines that the main system is in a non-awake state, the stored data is acquired through the memory 112 in the second sub-system 13, where the working state judgment process of the main system can be judged by the switch module; The memory 112 is installed in the second subsystem 13 for storing data.
接着通过已存数据传输模块1302将所获取的已存数据传输给第一子系统12;Then transmit the acquired stored data to the first subsystem 12 through the stored data transmission module 1302;
最后通过已存数据读取模块1303指示第一子系统12读取已存数据,其中本实施例中的读取操作包括对数据的显示、播报;若已存数据为音频数据,则读取的操作为播报;若已存数据为文本信息,则此时的读取操作为显示。Finally, the stored data reading module 1303 instructs the first subsystem 12 to read the stored data. The reading operation in this embodiment includes the display and broadcasting of the data; if the stored data is audio data, the read The operation is broadcast; if the stored data is text information, the read operation at this time is display.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
图5为本发明实施例一种数据存储装置的结构组成示意图。如图5所示,本发明实施例另一方面提供一种数据存储装置,应用于辅助系统,辅助系统包括相互通信连接的第一子系统12和第二子系统13,装置包括:FIG. 5 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention. As shown in FIG. 5, another aspect of the embodiment of the present invention provides a data storage device, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 12 and a second subsystem 13 that are communicatively connected to each other, and the device includes:
外界数据获取模块1401,用于在判定主系统处于非唤醒状态下时,通过第一子系统12中的数据接收模块11获取外界数据,The external data acquisition module 1401 is used to acquire external data through the data receiving module 11 in the first subsystem 12 when it is determined that the main system is in a non-awake state,
或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;Or, when it is determined that the main system is in the wake-up state, the slave receives external data through the main system;
外界数据传输模块1402,用于将所获取的外界数据传输给第二子系统3;The external data transmission module 1402 is used to transmit the acquired external data to the second subsystem 3;
外界数据存储模块1403,用于指示第二子系统13将传输得到的外界数据存储到存储器112中。The external data storage module 1403 is used to instruct the second subsystem 13 to store the external data obtained by the transmission in the memory 112.
本实施例中,结合图1所示,首先通过外界数据获取模块1401在判定主系统处于非唤醒状态下时,通过第一子系统12中的数据接收模块11获取外界数据,或者,在判定主系统处于唤醒状态下时,从主系统接收外界数据。其中主系统的工作状态可通过开关模块来判定,数据接收模块11主要用于接收外界的数据,其具体可以为蓝牙模块、无线接发模块无线收发模块和有线接发模块有线收发模块的其中之一,在本实施例中,数据接收模块11优选为BLE(低功耗蓝牙)。In this embodiment, with reference to Figure 1, when the external data acquisition module 1401 determines that the main system is in a non-awake state, the data receiving module 11 in the first sub-system 12 obtains external data, or, when the main system is determined When the system is awake, it receives external data from the main system. The working status of the main system can be judged by the switch module. The data receiving module 11 is mainly used to receive data from the outside world. Specifically, it can be one of the Bluetooth module, the wireless receiving and sending module, the wireless receiving and sending module, and the wired receiving and sending module. 1. In this embodiment, the data receiving module 11 is preferably BLE (Bluetooth Low Energy).
外界数据获取模块1401具体为:在判定主系统处于非唤醒状态下时,主系统与存储器112断开通信连接,开关模块令辅助系统开始工作,此时由第一子系统12中的数据接收模块11来接收外界数据;在判定主系统中处于唤醒状态下时,主系统与存储器112通信连接,通过主系统中的接收模块如经典蓝牙模块来接收外界数据。The external data acquisition module 1401 is specifically: when it is determined that the main system is in a non-awake state, the main system disconnects the communication connection with the memory 112, and the switch module causes the auxiliary system to start working. At this time, the data receiving module in the first subsystem 12 11 to receive external data; when it is determined that the main system is in an awake state, the main system communicates with the memory 112, and receives external data through a receiving module in the main system, such as a classic Bluetooth module.
接着通过外界数据传输模块1402将所获取的外界数据传输给第二子系统13,具体为:若通过第一子系统12接收外界数据,则将接收到的外界数据依次通过第一硬件接口模块14、第一硬件抽象层16、第一服务模块15、第二硬件抽象层17之后传输给第二子系统13;若通过主系统接收外界数据,则利用主系统的输出接口将外界数据传输给第二子系统13。Then the acquired external data is transmitted to the second subsystem 13 through the external data transmission module 1402, specifically: if the external data is received through the first subsystem 12, the received external data is sequentially passed through the first hardware interface module 14 , The first hardware abstraction layer 16, the first service module 15, and the second hardware abstraction layer 17 are then transmitted to the second subsystem 13; if the external data is received through the main system, the external data is transmitted to the Two subsystem 13.
最后通过外界数据存储模块1403指示第二子系统13将传输得到的外界数据存储到存储器112中,具体过程为:将外界数据依次通过第三抽象层、第二服务模块之后存入到存储器112中。Finally, the external data storage module 1403 instructs the second subsystem 13 to store the transmitted external data in the memory 112. The specific process is: the external data is stored in the memory 112 after sequentially passing through the third abstraction layer and the second service module. .
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据读取方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a data reading method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定 主系统处于非唤醒状态下时通过第二子系统13中的存储器112获取已存数据;将所获取的已存数据传输给第一子系统12;指示第一子系统12读取已存数据。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain stored data through the memory 112 in the second subsystem 13 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 12; instruct the first subsystem 12 to read the stored data.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据存储方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a data storage method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时通过第二子系统13中的存储器112获取已存数据;将所获取的已存数据传输给第一子系统12;指示第一子系统12读取已存数据In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain stored data through the memory 112 in the second subsystem 13 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 12; instruct the first subsystem 12 to read the stored data
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时,通过第一子系统12中的数据接收模块11获取外界数据,或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;将所获取的外界数据传输给第二子系统13;指示第二子系统13将传输得到的外界数据存储到存储器112中。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain the data through the data receiving module 11 in the first subsystem 12 when it is determined that the main system is in a non-awake state. External data, or, when it is determined that the main system is in an awake state, receive external data from the main system; transmit the obtained external data to the second subsystem 13; instruct the second subsystem 13 to store the external data obtained by the transmission To the memory 112.
图6为本发明实施例一种数据处理方法的实现流程示意图。如图6所示,本发明实施例另一方面提供一种数据处理方法,应用于辅助系统,方法包括:FIG. 6 is a schematic diagram of the implementation process of a data processing method according to an embodiment of the present invention. As shown in FIG. 6, another aspect of the embodiment of the present invention provides a data processing method, which is applied to an auxiliary system, and the method includes:
步骤1501,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;Step 1501: When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
步骤1502,判断所接收到的外界数据是否为辅助系统所支持的通知类型;Step 1502: Determine whether the received external data is a notification type supported by the auxiliary system;
步骤1503,若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统进行对外通知;Step 1503: If it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system;
步骤1504,若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。Step 1504: If it is determined that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides an external prompt for the external data.
本实施例中,首先在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, first, when determining that the main system is in a non-wake-up state, the auxiliary system receives external data. The non-wake-up state includes sleep, hibernation, and shutdown states. The external data includes phone notifications, SMS notifications, and application notifications.
接着判断所接收到的外界数据是否为辅助系统所支持的通知类型,其中所支持的通知类型通常为系统中事先设定,比如市面上的手机操作系统中会预设短信通知功能、定位通知功能和一些合作的第三方应用等,其对应的短信通知类型、定位通知类型和一些应用通知的数据则为辅助系统所支持的数据,除此之外的外界数据则为辅助系统所不支持的数据,但是该数据为可能是主系统所支持的。因此该步骤的具体过程可以为:获取并判断外界数据的通知类型,将所获取的通知类型与系统中预设的通知类型进行比较即可判断该外界数据是否为系统所支持。Then determine whether the received external data is a notification type supported by the auxiliary system. The supported notification type is usually set in advance in the system. For example, the SMS notification function and location notification function are preset in the mobile phone operating system on the market. With some cooperative third-party applications, the corresponding SMS notification type, location notification type, and some application notification data are data supported by the auxiliary system, and other external data are data that the auxiliary system does not support. , But the data may be supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
接着若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统内进行对外通知,其中对外通知在本实施例中具体为在屏幕上显示数据内容,或者通过发声器将数据内容对外播报,或者将数据内容通过网络向其他设备进行传输。Then, if it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system. In this embodiment, the external notification is specifically to display the data content on the screen. , Or broadcast the data content to the outside through the sounder, or transmit the data content to other devices through the network.
若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示,其中对外提示在本实施例中具体为在屏幕上显示消息通知提示、在发声器上播报消息通知提示或者灯光提示,以表示有通知消息的接收到达,但不显示其中的数据内容。针对于辅助系统所不支持的通知类型,用户可以根据通知提示主动唤醒主系统对其进行查看或处理。If it is determined that the received external data is a notification type that is not supported by the auxiliary system, the auxiliary system will provide an external prompt for the external data. In this embodiment, the external prompt is specifically a message notification prompt displayed on the screen, The message notification prompt or light prompt is broadcasted to indicate the arrival of the notification message, but the data content in it is not displayed. For notification types that are not supported by the auxiliary system, the user can actively wake up the main system according to the notification prompt to view or process it.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。As a result, when the main system is in a non-wake-up state, once external data is received, notification types can be filtered through the auxiliary system and displayed according to the notification type, without awakening the main system, thereby reducing system Power consumption increases the battery life of the system.
在一可实施方式中,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据的过程中,方法还包括:In an implementation manner, in the process of receiving external data through the auxiliary system when it is determined that the main system is in the non-awake state, the method further includes:
切断主系统与外界的通信连接,以使辅助系统接收所有的外界数据。Cut off the communication connection between the main system and the outside world so that the auxiliary system can receive all external data.
本实施例中,在执行步骤1501的过程中,切断主系统与外界的通信连接,以免主系统中的数据接收模块11来接收外界数据从而导致唤醒主系统,进而使辅助系统接收所有的外界数据。In this embodiment, in the process of performing step 1501, the communication connection between the main system and the outside world is cut off, so as to prevent the data receiving module 11 in the main system from receiving external data, which will cause the main system to wake up, so that the auxiliary system can receive all external data. .
进一步地,结合图1所示,该步骤具体为:通过与主系统和辅助系统均通信连接的开关模块来切断主系统与外界的通信连接,并驱使辅助系统中的数据接收模块11来接收所有的外界消息。Further, as shown in FIG. 1, this step is specifically as follows: cut off the communication connection between the main system and the outside through the switch module communicatively connected with the main system and the auxiliary system, and drive the data receiving module 11 in the auxiliary system to receive all Outside news.
在一可实施方式中,辅助系统包括第一子系统12和第二子系统13;In a possible implementation, the auxiliary system includes a first sub-system 12 and a second sub-system 13;
通过辅助系统接收外界数据,包括:Receive external data through auxiliary systems, including:
通过第一子系统12的数据接收模块11接收外界数据;Receive external data through the data receiving module 11 of the first subsystem 12;
相应的,将外界数据的数据内容在辅助系统内进行对外通知,包括:Correspondingly, the data content of external data is notified to the outside in the auxiliary system, including:
在第二子系统13的屏幕上显示外界数据的数据内容;Display the data content of the external data on the screen of the second subsystem 13;
相应的,在辅助系统内针对外界数据进行对外提示,包括:Correspondingly, external prompts for external data in the auxiliary system include:
在第二子系统13的屏幕上针对外界数据进行对外提示。On the screen of the second subsystem 13, external prompts are given for external data.
本实施例中,结合图1所示,辅助系统包括第一子系统12和第二子系统13。In this embodiment, as shown in FIG. 1, the auxiliary system includes a first subsystem 12 and a second subsystem 13.
结合图1,由此,步骤1501的具体过程为:通过第一子系统12的数据接收模块11接收外界数据。具体为:进一步地,将所接收到的外界数据通过第一硬件接口模块14和第一硬件抽象层16传送到第一服务模块15。第一服务模块15提取外界数据的数据内容,并将数据内容传输到第二子系统13。第二子系统13通过第三硬件抽象层110将数据内容传输到第二服务模块中,利用第二服务模块对数据内 容进行通知类型的判断并对其进行加壳处理。With reference to FIG. 1, therefore, the specific process of step 1501 is: receiving external data through the data receiving module 11 of the first subsystem 12. Specifically: further, the received external data is transmitted to the first service module 15 through the first hardware interface module 14 and the first hardware abstraction layer 16. The first service module 15 extracts the data content of external data and transmits the data content to the second subsystem 13. The second subsystem 13 transmits the data content to the second service module through the third hardware abstraction layer 110, and uses the second service module to judge the notification type of the data content and pack it.
相应的,步骤1503的具体过程为:若该通知类型为支持的类型,则将数据内容通过第四硬件抽象层111和第二硬件接口模块18在屏幕上进行显示。Correspondingly, the specific process of step 1503 is: if the notification type is a supported type, the data content is displayed on the screen through the fourth hardware abstraction layer 111 and the second hardware interface module 18.
步骤1504的具体过程为:若通知类型为不支持的类型,则令屏幕显示消息提示信息。The specific process of step 1504 is: if the notification type is an unsupported type, the screen displays the message prompt information.
在一可实施方式中,将外界数据的数据内容在辅助系统内进行对外通知,包括:In an implementation manner, the external notification of the data content of the external data in the auxiliary system includes:
从数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。The key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
本实施例中,为了将该方法可以应用于小屏幕或者分辨率较低的设备上,需要对数据内容中的重点显示内容进行抽取,其抽取方式可以是通过经过训练的神经网络模型来实现,该神经网络模型的训练大致步骤为:In this embodiment, in order to apply the method to small screens or devices with low resolution, it is necessary to extract the key display content in the data content. The extraction method can be achieved through a trained neural network model. The general steps of training the neural network model are:
将相关训练语料和对应的结果作为神经网络模型的输入,得到输出结果,若输出结果跟对应的真实结果的偏差较大,则继续用语料进行训练,直到输出结果与对应的真实结果之间的偏差在预设范围内时训练完成。The relevant training corpus and the corresponding result are used as the input of the neural network model to obtain the output result. If the output result deviates greatly from the corresponding real result, continue training with the corpus until the output result is between the corresponding real result The training is completed when the deviation is within the preset range.
然后将所抽到的重点显示内容在辅助系统的屏幕上进行显示,结合图1,具体在第二子系统13中的OLED屏幕上进行显示。Then the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 1, it is specifically displayed on the OLED screen in the second subsystem 13.
在一可实施方式中,在辅助系统内针对外界数据进行对外提示,包括:In an implementation manner, the external prompt for external data in the auxiliary system includes:
在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。Display unread message prompts and icon information corresponding to the data content on the screen in the auxiliary system.
本实施例中,步骤1504具体为:在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。其中,图标信息可以包括在数据内容内,也可以在辅助系统内事先存储一些不支持通知类型所对应的图标信息,在显示未读消息提示的同时从数据内容中提取对应的图表信息或者根据通知类型从系统中选取对应的图标信息,并将该图标信息在屏幕上进行显示。In this embodiment, step 1504 is specifically: displaying an unread message prompt and icon information corresponding to the data content on the screen in the auxiliary system. Among them, the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
图7为本发明实施例一种数据处理装置的结构组成示意图。如图7所示,本发明实施例另一方面提供一种数据处理装置,应用于辅助系统,装置包括:FIG. 7 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the present invention. As shown in FIG. 7, another aspect of the embodiment of the present invention provides a data processing device, which is applied to an auxiliary system, and the device includes:
外界数据接收模块1601,用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;The external data receiving module 1601 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
通知类型判断模块1602,用于判断所接收到的外界数据是否为辅助系统所支持的通知类型;The notification type judgment module 1602 is used to judge whether the received external data is a notification type supported by the auxiliary system;
对外通知模块1603,用于若经通知类型判断模块1602判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据的数据内容通过辅助系统进行对外通知;The external notification module 1603 is configured to, if the notification type determining module 1602 determines that the received external data is a notification type supported by the auxiliary system, then externally notify the data content of the external data through the auxiliary system;
对外提示模块1604,用于若经通知类型判断模块1602判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。The external prompting module 1604 is configured to, if the notification type judging module 1602 determines that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides external prompts for the external data.
本实施例中,首先通过外界数据接收模块1601在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, the external data receiving module 1601 first receives external data through the auxiliary system when it is determined that the main system is in the non-awakened state. The non-awakened state includes the sleep state, the hibernation state, and the off state, and the external data includes phone notifications and short messages. Notifications and application notifications, etc.
接着通过通知类型判断模块1602判断所接收到的外界数据是否为辅助系统所支持的通知类型,其中所支持的通知类型通常为系统中事先设定,比如市面上的手机操作系统中会预设短信通知功能、定位通知功能和一些合作的第三方应用等,其对应的短信通知类型、定位通知类型和一些应用通知的数据则为辅助系统所支持的数据,除此之外的外界数据则为辅助系统所不支持的数据,但是该数据为主系统所支持的。因此该步骤的具体过程可以为:获取并判断外界数据的通知类型,将所获取的通知类型与系统中预设的通知类型进行比较即可判断该外界数据是否为系统所支持。Next, the notification type judgment module 1602 judges whether the received external data is a notification type supported by the auxiliary system. The supported notification type is usually set in advance in the system, for example, a short message is preset in the mobile phone operating system on the market. Notification function, location notification function and some cooperative third-party applications, etc. The corresponding SMS notification type, location notification type and some application notification data are data supported by the auxiliary system, and other external data is auxiliary Data not supported by the system, but the data is supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
接着若经通知类型判断模块1602判定所接收到的外界数据为辅助系统所支持的通知类型,则通过对外通知模块1603将外界数据中的数据内容通过辅助系统内进行对外通知,其中对外通知在本实施例中具体为在屏幕上显示数据内容,或者通过发声器将数据内容对外播报,或者将数据内容通过网络向其他设备进行传输。Then, if the notification type determination module 1602 determines that the received external data is a notification type supported by the auxiliary system, the external notification module 1603 will notify the data content in the external data through the auxiliary system. The external notification is in this In the embodiment, the data content is specifically displayed on the screen, or the data content is broadcast to the outside through a sounder, or the data content is transmitted to other devices through the network.
若经通知类型判断模块1602判定所接收到的外界数据为辅助系统所不支持的通知类型,则对外提示模块1604通过辅助系统针对外界数据进行对外提示,其中对外提示在本实施例中具体为在屏幕上显示消息通知提示、在发声器上播报消息通知提示或者灯光提示,以表示有通知消息的接收,但不显示其中的数据内容。针对于辅助系统所不支持的通知类型,用户可以主动唤醒主系统对其进行查看或处理。If the notification type determination module 1602 determines that the received external data is a notification type that is not supported by the auxiliary system, the external notification module 1604 provides external notifications for the external data through the auxiliary system. The external notification in this embodiment is specifically The screen displays the message notification prompt, broadcasts the message notification prompt or light prompt on the sounder to indicate the receipt of the notification message, but does not display the data content. For notification types that are not supported by the auxiliary system, the user can actively wake up the main system to view or process them.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。Therefore, when the main system is in a non-wake-up state, once the external data is received, the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
在一可实施方式中,外界数据接收模块1601在通过辅助系统接收外界数据的过程中,还具体用于:In an implementation manner, the external data receiving module 1601 is also specifically configured to: in the process of receiving external data through the auxiliary system:
切断主系统与外界的通信连接,以使辅助系统接收所有的外界数据。Cut off the communication connection between the main system and the outside world so that the auxiliary system can receive all external data.
本实施例中,外界数据接收模块1601在执行过程中,还具体用于,切断主系统与外界的通信连接,以免主系统中的数据接收模块11来接收外界数据从而导致唤醒主系统,进而使辅助系统接收所有的外界数据。In this embodiment, during the execution of the external data receiving module 1601, it is also specifically used to cut off the communication connection between the main system and the outside world, so as to prevent the data receiving module 11 in the main system from receiving external data, causing the main system to be awakened. The auxiliary system receives all external data.
在一可实施方式中,对外通知模块1603具体用于:In an implementation manner, the external notification module 1603 is specifically configured to:
从数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。The key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
本实施例中,为了将该方法可以应用于小屏幕或者分辨率较低的设备上,对外通知模块1603具体用于对数据内容中的重点显示内容进行抽取,其抽取方式可以是通过经过训练的神经网络模型来实现, 该神经网络模型的训练大致步骤为:In this embodiment, in order that the method can be applied to small screens or devices with lower resolution, the external notification module 1603 is specifically used to extract key display content in the data content, and the extraction method can be through trained The neural network model is implemented, and the general steps for training the neural network model are:
然后将所抽到的重点显示内容在辅助系统的屏幕上进行显示,结合图1,具体在第二子系统13中的OLED屏幕上进行显示。Then the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 1, it is specifically displayed on the OLED screen in the second subsystem 13.
在一可实施方式中,对外提示模块1604具体用于:In an implementation manner, the external prompting module 1604 is specifically configured to:
在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。Display unread message prompts and icon information corresponding to the data content on the screen in the auxiliary system.
本实施例中,对外提示模块1604具体用于:在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。其中,图标信息可以包括在数据内容内,也可以在辅助系统内事先存储一些不支持通知类型所对应的图标信息,在显示未读消息提示的同时从数据内容中提取对应的图表信息或者根据通知类型从系统中选取对应的图标信息,并将该图标信息在屏幕上进行显示。In this embodiment, the external prompting module 1604 is specifically configured to display unread message prompts and icon information corresponding to data content on the screen in the auxiliary system. Among them, the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据处理方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a data processing method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;判断所接收到的外界数据是否为辅助系统所支持的通知类型;若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统进行对外通知;若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data Whether it is the notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, the data content in the external data will be notified to the outside through the auxiliary system; if the received external data is determined For notification types that are not supported by the auxiliary system, the auxiliary system will provide external notifications for external data.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。As a result, when the main system is in a non-wake-up state, once external data is received, notification types can be filtered through the auxiliary system and displayed according to the notification type, without awakening the main system, thereby reducing system Power consumption increases the battery life of the system.
图8为本发明实施例一种通信切换方法的实现流程示意图。如图8所示,本发明实施例另一方面提供一种通信切换方法,方法包括:FIG. 8 is a schematic diagram of the implementation process of a communication switching method according to an embodiment of the present invention. As shown in FIG. 8, another aspect of the embodiment of the present invention provides a communication switching method, and the method includes:
步骤1701,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;Step 1701: When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
步骤1702,判断所接收到的外界数据的通知类型;Step 1702: Determine the notification type of the received external data;
步骤1703,若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。Step 1703: If it is determined that the notification type of the received external data is a specific notification type, wake up the main system and instruct the main system to process the external data.
本实施例中,首先在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, first, when determining that the main system is in a non-wake-up state, the auxiliary system receives external data. The non-wake-up state includes sleep, hibernation, and shutdown states. The external data includes phone notifications, SMS notifications, and application notifications.
接着判断所接收到的外界数据的通知类型,其中通知类型通常为系统中事先设定,比如说短信通知类型、电话通知类型、第三方应用通知类型等。Then determine the notification type of the received external data, where the notification type is usually set in advance in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
接着若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。其中特定通知类型在本实施例中定义为仅能被主系统处理的通知类型或者辅助系统处理困难的特定通知类型,可事先在系统中设定,比如可以将电话通知类型、短信通知类型等即时通信类的类型作为特定通知类型,当然也可通过用户自行添加一些第三方应用作为特定通知类型。其中指示主系统处理外界数据具体为:若特定通知类型为电话通知类型,则指示主系统对其进行接听、挂断等操作;若特定通知类型为短信通知类型,则指示主系统对其进行阅读、删除和回复等操作。Then, if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data. The specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc. The communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type. Instruct the main system to process external data specifically as follows: if the specific notification type is a phone notification type, instruct the main system to answer, hang up, etc.; if the specific notification type is a short message notification type, instruct the main system to read it , Delete and reply.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
进一步地,结合图1所示,在通过开关模块判定主系统处于非唤醒状态时,通过辅助系统中的数据接收模块11接收外界数据,再将外界数据传输到第一服务模块15内,并经第一服务模块15判断该外界数据是否为特定通知类型,若判定外界数据为特定通知类型,则通过开关模块唤醒主系统,并指示主系统处理该特定通知类型。Further, in conjunction with Figure 1, when the switch module determines that the main system is in a non-awake state, the data receiving module 11 in the auxiliary system receives external data, and then transmits the external data to the first service module 15, and The first service module 15 determines whether the external data is of a specific notification type, and if it determines that the external data is of a specific notification type, it wakes up the main system through the switch module and instructs the main system to process the specific notification type.
在一可实施方式中,方法还包括:In a possible implementation, the method further includes:
若判定所接收到的外界数据的通知类型为普通通知类型时,则指示辅助系统处理外界数据。If it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data.
本实施例中,若判定所接收到的外界数据的通知类型为普通通知类型时,则指示辅助系统处理外界数据,其中普通通知类型在本实施例中定义为除了特定通知类型以外的通知类型,比如说日历通知、闹钟通知等。In this embodiment, if it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data. The normal notification type is defined as a notification type other than the specific notification type in this embodiment. For example, calendar notifications, alarm clock notifications, etc.
进一步地,结合图1,普通通知类型在第二子系统13中的第二服务模块中处理。Further, with reference to FIG. 1, the common notification type is processed in the second service module in the second subsystem 13.
在一可实施方式中,指示辅助系统处理外界数据,包括:In an implementation manner, instructing the auxiliary system to process external data includes:
指示辅助系统将外界数据对外告知。Instruct the auxiliary system to notify external data.
本实施例中,结合图1所示,步骤“指示辅助系统处理外界数据”具体过程为:指示第一子系统12中的数据接收模块11接收外界数据,第一子系统12将外界数据传输给第二子系统13,第二子系统13根据外界数据的数据内容对外告知,其中对外告知方式可以是亮屏显示告知,可用于闹钟提醒;还可以是语音播报的方式进行告知,可用于备忘录提醒;也可以是对外信息传输的方式告知,可用于一些中间数据的传输。In this embodiment, with reference to Figure 1, the specific process of the step "instruct the auxiliary system to process external data" is: instruct the data receiving module 11 in the first subsystem 12 to receive external data, and the first subsystem 12 transmits the external data to The second subsystem 13, the second subsystem 13 informs externally according to the data content of the external data. The external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders ; It can also be a notification of external information transmission, which can be used for the transmission of some intermediate data.
在一可实施方式中,在唤醒主系统,并指示主系统处理外界数据的过程中,方法还包括:In an implementation manner, in the process of waking up the main system and instructing the main system to process external data, the method further includes:
断开辅助系统与外界的通信连接;Disconnect the communication connection between the auxiliary system and the outside world;
当主系统处理完成之后,或者当主系统进入非唤醒状态时,辅助系统与外界重新建立通信连接。After the processing of the main system is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
本实施例中,在唤醒主系统,并指示主系统处理外界数据的过程中,断开辅助系统与外界的通信 连接,结合图1,具体为断开数据接收模块11与外界的通信连接,当主系统处理完成之后,或者当主系统进入非唤醒状态时,开关模块判定主系统处于非唤醒状态时,驱使数据接收模块11即辅助系统再次与外界建立通信连接。In this embodiment, in the process of waking up the main system and instructing the main system to process external data, the communication connection between the auxiliary system and the outside world is disconnected. With reference to Figure 1, the communication connection between the data receiving module 11 and the outside world is specifically disconnected. After the system processing is completed, or when the main system enters the non-awakened state, when the switch module determines that the main system is in the non-awakened state, it drives the data receiving module 11, that is, the auxiliary system to establish a communication connection with the outside again.
在一可实施方式中,唤醒主系统,并指示主系统处理外界数据,包括:In an implementation manner, waking up the main system and instructing the main system to process external data includes:
利用开关模块唤醒主系统中的经典蓝牙模块,并指示经典蓝牙模块处理外界数据。Use the switch module to wake up the classic Bluetooth module in the main system and instruct the classic Bluetooth module to process external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
经典蓝牙模块预先设置在主系统内,主要用于与外界进行通话连接。若外界数据被判定特定通知类型,并且该特定通知类型为通话类型时,利用经典蓝牙模块对其进行接听、挂断或者挂起等处理。The classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
图9为本发明实施例一种通信切换装置的结构组成示意图。如图9所示,本发明实施例另一方面提供一种通信切换装置,装置包括:FIG. 9 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention. As shown in FIG. 9, another aspect of the embodiment of the present invention provides a communication switching device, which includes:
外界数据接收模块1801,用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;The external data receiving module 1801 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
通知类型判断模块1802,用于判断所接收到的外界数据的通知类型;The notification type judgment module 1802 is used to judge the notification type of the received external data;
第一数据处理模块1803,用于经通知类型判断模块1802判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。The first data processing module 1803 is configured to wake up the main system and instruct the main system to process the external data when the notification type judging module 1802 determines that the notification type of the received external data is a specific notification type.
本实施例中,首先通过外界数据接收模块1801在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, the external data receiving module 1801 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state. The non-awakened state includes sleep state, hibernation state, and shutdown state, and the external data includes phone notifications and short messages. Notifications and application notifications, etc.
接着通过通知类型判断模块1802判断所接收到的外界数据的通知类型,其中通知类型通常为系统中事先设定,比如说短信通知类型、电话通知类型、第三方应用通知类型等。Then, the notification type judgment module 1802 judges the notification type of the received external data, where the notification type is usually preset in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
接着经通知类型判断模块1802判定所接收到的外界数据的通知类型为特定通知类型时,则通过第一数据处理模块1803唤醒主系统,并指示主系统处理外界数据。其中特定通知类型在本实施例中定义为仅能被主系统处理的通知类型或者辅助系统处理困难的特定通知类型,可事先在系统中设定,比如可以将电话通知类型、短信通知类型等即时通信类的类型作为特定通知类型,当然也可通过用户自行添加一些第三方应用作为特定通知类型。其中指示主系统处理外界数据具体为:若特定通知类型为电话通知类型,则指示主系统对其进行接听、挂断等操作;若特定通知类型为短信通知类型,则指示主系统对其进行阅读、删除和回复等操作。Then, when the notification type determining module 1802 determines that the notification type of the received external data is a specific notification type, the first data processing module 1803 wakes up the main system and instructs the main system to process the external data. The specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc. The communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type. Instruct the main system to process external data specifically as follows: if the specific notification type is a phone notification type, instruct the main system to answer, hang up, etc.; if the specific notification type is a short message notification type, instruct the main system to read it , Delete and reply.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
在一可实施方式中,装置还包括:In a possible implementation, the device further includes:
第二数据处理模块1804,用于若判定所接收到的外界数据的通知类型为普通通知类型时,指示辅助系统处理外界数据。The second data processing module 1804 is configured to instruct the auxiliary system to process the external data if it is determined that the notification type of the received external data is a normal notification type.
本实施例中,若经通知类型判断模块1802判定所接收到的外界数据的通知类型为普通通知类型时,则通过第二数据处理模块1804指示辅助系统处理外界数据,其中普通通知类型在本实施例中定义为除了特定通知类型以外的通知类型,比如说日历通知、闹钟通知等。In this embodiment, if the notification type judging module 1802 determines that the notification type of the received external data is a common notification type, the second data processing module 1804 instructs the auxiliary system to process the external data. The common notification type is described in this embodiment. In the example, it is defined as a notification type other than a specific notification type, such as calendar notification, alarm notification, and so on.
在一可实施方式中,第二数据处理模块1804,具体用于:In an implementation manner, the second data processing module 1804 is specifically configured to:
指示辅助系统将外界数据对外告知。Instruct the auxiliary system to notify external data.
本实施例中,结合图1所示,第二数据处理模块1804,具体用于:指示第一子系统12中的数据接收模块11接收外界数据,第一子系统12将外界数据传输给第二子系统13,第二子系统13根据外界数据的数据内容对外告知,其中对外告知方式可以是亮屏显示告知,可用于闹钟提醒;还可以是语音播报的方式进行告知,可用于备忘录提醒;也可以是对外信息传输的方式告知,可用于一些中间数据的传输。In this embodiment, as shown in FIG. 1, the second data processing module 1804 is specifically used to: instruct the data receiving module 11 in the first subsystem 12 to receive external data, and the first subsystem 12 to transmit the external data to the second Subsystem 13, the second subsystem 13 informs externally according to the data content of external data, where the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
在一可实施方式中,第一数据处理模块1803,具体用于:In an implementation manner, the first data processing module 1803 is specifically configured to:
利用开关模块唤醒主系统中的经典蓝牙模块,并指示经典蓝牙模块处理外界数据。Use the switch module to wake up the classic Bluetooth module in the main system and instruct the classic Bluetooth module to process external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
经典蓝牙模块预先设置在主系统内,主要用于与外界进行通话连接。若外界数据被判定特定通知类型,并且该特定通知类型为通话类型时,利用经典蓝牙模块对其进行接听、挂断或者挂起等处理。The classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行通信切换方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a communication switching method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;判断所接收到的外界数据的通知类型;若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data The notification type; if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
实施例二Example two
图10为发明实施例一种数据处理装置的结构组成示意图。如图10所示,本发明一方面提供一种数据处理装置,装置包括辅助系统和开关模块:FIG. 10 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention. As shown in Figure 10, one aspect of the present invention provides a data processing device, which includes an auxiliary system and a switch module:
开关模块用于当主系统处于非唤醒状态时发出第一控制指令和第二控制指令,其中第一控制指令用于驱使主系统断开与外界的通信连接,第二控制指令用于驱使辅助系统与外界进行通信连接;The switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-wake-up state, wherein the first control instruction is used to drive the main system to disconnect the communication connection with the outside world, and the second control instruction is used to drive the auxiliary system to communicate with the outside world. Communication connection with the outside world;
辅助系统接收并响应于第二控制指令,以驱使辅助系统中的数据接收模块21接收外界数据;The auxiliary system receives and responds to the second control instruction to drive the data receiving module 21 in the auxiliary system to receive external data;
辅助系统还用于将所接收到的外界数据对外告知。The auxiliary system is also used to notify the received external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
当开关模块捕获到主系统处于非唤醒状态时,对主系统发送第一控制指令,该第一控制指令用于使主系统断开与外界的通信连接。同时,开关模块对辅助系统发送第二控制指令,该第二控制指令用于辅助系统与外界建立通信连接,其中本实施例所提及的“外界”为除自身以外的范围,并非除整个设备以外的范围。When the switch module captures that the main system is in a non-awakened state, it sends a first control instruction to the main system, and the first control instruction is used to disconnect the main system from the communication connection with the outside world. At the same time, the switch module sends a second control instruction to the auxiliary system. The second control instruction is used to establish a communication connection between the auxiliary system and the outside world. Outside the scope.
辅助系统接收并响应由开关模块所发送的第二控制指令,以驱使安装在辅助系统中的数据接收模块21与外界通信连接,以接收外界数据。其中外界数据包括电话通知、短信通知和应用通知,辅助系统最后将所接收到的外界数据对外告知。The auxiliary system receives and responds to the second control command sent by the switch module to drive the data receiving module 21 installed in the auxiliary system to communicate with the outside world to receive external data. The external data includes phone notifications, short message notifications and application notifications, and the auxiliary system finally informs the received external data.
由此,当外界有数据传递到装置时,通过辅助系统对数据进行处理,从而降低了主系统的唤醒频率,减少了系统的功耗,以达到提高续航的目的。As a result, when data from the outside world is transmitted to the device, the data is processed by the auxiliary system, thereby reducing the wake-up frequency of the main system, reducing the power consumption of the system, and achieving the purpose of improving battery life.
进一步地,数据接收模块21优选为BLE(Bluetooth Low Energy,低功耗蓝牙)。Further, the data receiving module 21 is preferably BLE (Bluetooth Low Energy, Bluetooth Low Energy).
进一步地,现有的多系统设备中的每个系统都会设置BLE模块,以达到在任一系统在工作时均能与外界保持通信,通过此装置,可以优化掉主系统中的BLE模块,减少了设备中硬件资源的占用率。Furthermore, each system in the existing multi-system equipment will be equipped with a BLE module to achieve communication with the outside world when any system is working. Through this device, the BLE module in the main system can be optimized and reduced The occupancy rate of hardware resources in the device.
在一可实施方式中,开关模块还具体用于当辅助系统处于工作状态并且主系统从非唤醒状态转为唤醒状态时驱使辅助系统继续接收并对外告知外界数据。In a possible implementation, the switch module is also specifically used to drive the auxiliary system to continue receiving and to notify external data when the auxiliary system is in a working state and the main system changes from the non-wake-up state to the wake-up state.
本实施例中,当辅助系统处于工作状态下,并且当主系统由非唤醒状态转为唤醒状态时,开关模块将不阻断辅助系统与外界的通信连接,依旧通过辅助系统来接收外界数据,进而进一步降低主系统的功耗。In this embodiment, when the auxiliary system is in the working state and the main system changes from the non-wake-up state to the wake-up state, the switch module will not block the communication connection between the auxiliary system and the outside world, and still receive external data through the auxiliary system. Further reduce the power consumption of the main system.
在一可实施方式中,辅助系统具体用于将所接收到的外界数据通过语音播报的方式,或者通过在屏幕界面上显示的方式,或者通过网络进行信息传输的方式对外告知。In an implementation manner, the auxiliary system is specifically used to notify the received external data through voice broadcast, or through display on a screen interface, or through information transmission through the network.
本实施例中,辅助系统中可以包含发声器、屏幕、无线收发模块等硬件设备。当数据接收模块21接收到外界数据之后,辅助系统可以根据外界数据的类型针对性地对外告知,其中外界数据的类型包括图像、音频、视频和文字等,若外界数据为图像、视频和文字数据时,则通过在屏幕上进行显示的方式对外告知;若外界数据为音频数据时,则通过发声器播报的方式对外告知;所接收到的外界数据还可以通过网络渠道再次向外界的设备进行传输的方式对外告知。其中,对外告知的对象可以是人、动物、设备模块等。In this embodiment, the auxiliary system may include hardware devices such as a sounder, a screen, and a wireless transceiver module. After the data receiving module 21 receives the external data, the auxiliary system can notify the external data according to the type of the external data. The types of the external data include image, audio, video and text. If the external data is image, video and text data If the external data is audio data, it will be notified through the sounder broadcast method; the received external data can also be transmitted to the external device through the network channel again The way to inform the public. Among them, the object of external notification may be people, animals, equipment modules, and so on.
在一可实施方式中,辅助系统包括第一子系统22和第二子系统23;In a possible embodiment, the auxiliary system includes a first subsystem 22 and a second subsystem 23;
数据接收模块21安装在第一子系统22中;The data receiving module 21 is installed in the first subsystem 22;
第一子系统22具体用于将所接收到的外界数据中进行数据预处理,得到可被第一子系统22和第二子系统23共同应用的中间数据,并将所得到的中间数据传输给第二子系统23;The first subsystem 22 is specifically used to perform data preprocessing on the received external data, to obtain intermediate data that can be jointly applied by the first subsystem 22 and the second subsystem 23, and to transmit the obtained intermediate data to The second subsystem 23;
第二子系统23具体用于将所传输到的中间数据对外告知。The second subsystem 23 is specifically used to notify the transmitted intermediate data to the outside.
本实施例中,具体参考图10所示,第一子系统22在本实施例中优选为Apollo3+型号的单片机,第二子系统23在本实施例中优选为ST型号的单片机,第一子系统22和第二子系统23相互通信连接。In this embodiment, referring specifically to FIG. 10, the first subsystem 22 is preferably an Apollo3+ type single-chip microcomputer in this embodiment, and the second subsystem 23 is preferably an ST type single-chip microcomputer in this embodiment. 22 and the second subsystem 23 are connected in communication with each other.
数据接收模块21安装在第一子系统22中,由于不同子系统只会处理其所识别或者所支持的数据,因此通过第一子系统22将由数据接收模块21(即图中的BLE)所接收到的外界数据进行数据预处理,得到可被第一子系统22和第二子系统23共同应用的中间数据,并将中间数据传输给第二子系统23,第二子系统23将所传输得到的中间数据对外告知。The data receiving module 21 is installed in the first sub-system 22. Since different sub-systems can only process the data identified or supported by them, the data receiving module 21 (ie BLE in the figure) will receive the data through the first sub-system 22. Perform data preprocessing on the received external data to obtain intermediate data that can be jointly used by the first subsystem 22 and the second subsystem 23, and transmit the intermediate data to the second subsystem 23, and the second subsystem 23 transmits the obtained intermediate data. Of the intermediate data.
在一可实施方式中,第一子系统22还具体包括第一硬件接口模块24和第一服务模块25;In an implementation manner, the first subsystem 22 further specifically includes a first hardware interface module 24 and a first service module 25;
数据接收模块21安装于第一硬件接口模块24中;The data receiving module 21 is installed in the first hardware interface module 24;
第一硬件接口模块24用于将由数据接收模块21所接收到的外界数据传输到第一服务模块25中;The first hardware interface module 24 is used to transmit the external data received by the data receiving module 21 to the first service module 25;
第一服务模块25将外界数据进行数据预处理,得到中间数据,并将中间数据传输给第二子系统23。The first service module 25 performs data preprocessing on external data to obtain intermediate data, and transmits the intermediate data to the second subsystem 23.
本实施例中,第一硬件接口模块24中包括I2C-M(Inter-Integrated Circuit Master,集成电路总线)、QSPI/SPI(QSPI:Queued Serial Peripheral Interface,串行外设接口;/SPI:Serial Peripheral Interface,串行外设接口)、DMA(Direct Memory Access,直接存储器访问)、I2S/PCM(I2S:Inter—IC Sound,集成电路内置音频总线;PCM:Pulse-code modulation脉冲编码调制)等硬件或接口,因此可在第一硬件接口模块24上安装比如LCD(Liquid Crystal Display,液晶显示器)、FG(Fual Guage,硬件电量计)、Sen(Sensors,传感器)、BlE(Bluetooth Low Energy,低功耗蓝牙)、AI(Audio In,音频输入)和Mic(Microphone,麦克风)等硬件设备。数据接收模块21 (即图中的BLE)可根据自身的接口类型接入到第一硬件接口模块24中。In this embodiment, the first hardware interface module 24 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), QSPI/SPI (QSPI: Queued Serial Peripheral Interface, serial peripheral interface; /SPI: Serial Peripheral) Interface, serial peripheral interface), DMA (Direct Memory Access, direct memory access), I2S/PCM (I2S: Inter-IC Sound, integrated circuit built-in audio bus; PCM: Pulse-code modulation) and other hardware or Interface, so the first hardware interface module 24 can be installed on the first hardware interface module 24 such as LCD (Liquid Crystal Display), FG (Fual Guard, hardware fuel gauge), Sen (Sensors), BlE (Bluetooth Low Energy, low power consumption) Bluetooth), AI (Audio In, audio input) and Mic (Microphone, microphone) and other hardware devices. The data receiving module 21 (ie, BLE in the figure) can be connected to the first hardware interface module 24 according to its own interface type.
第一硬件接口模块24用于将数据接收模块21所接收到的外界数据传输给第一服务模块25。第一服务模块25是第一子系统22的处理内核,用于处理第一子系统22中的数据,由于第一子系统22优选为Apollo3+型号的单片机,对应的,第一服务模块25优选为Apollo3+Service模块。通过第一服务模块25对外界数据进行数据预处理,得到中间数据,并通过第一服务模块25将中间数据传输给第二子系统23。The first hardware interface module 24 is used to transmit the external data received by the data receiving module 21 to the first service module 25. The first service module 25 is the processing core of the first subsystem 22, and is used to process data in the first subsystem 22. Since the first subsystem 22 is preferably an Apollo3+ type single-chip microcomputer, correspondingly, the first service module 25 is preferably Apollo3+Service module. The external data is preprocessed through the first service module 25 to obtain intermediate data, and the intermediate data is transmitted to the second subsystem 23 through the first service module 25.
在一可实施方式中,第一硬件接口模块24具体通过第一硬件抽象层26将外界数据传输到第一服务模块25中;In an implementation manner, the first hardware interface module 24 specifically transmits external data to the first service module 25 through the first hardware abstraction layer 26;
第一服务模块25具体通过第二硬件抽象层27将中间数据传输给第二子系统23。The first service module 25 specifically transmits the intermediate data to the second subsystem 23 through the second hardware abstraction layer 27.
本实施例中,第一硬件抽象层26和第二硬件抽象层27(即图中的HAL,Hardware Abstraction Layer)是位于操作系统内核与硬件电路之间的接口层,其目的在于将硬件抽象化。In this embodiment, the first hardware abstraction layer 26 and the second hardware abstraction layer 27 (ie, HAL, Hardware Abstraction Layer in the figure) are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
在一可实施方式中,中间数据为数据内容;In a possible implementation, the intermediate data is data content;
第一服务模块25具体用于从外界数据进行去壳处理,以从外界数据中获取数据内容。The first service module 25 is specifically configured to perform shelling processing from external data to obtain data content from the external data.
在本实施例中,由数据接收模块21所接收到的外界数据中包括可被第一子系统22(主要为第一子系统22下的第一硬件接口模块24或硬件)识别或者支持的特征信息和数据内容,因此第一服务模块25需要对外界数据进行去壳处理,具体为从外界数据中删除特征信息,只保留数据内容。In this embodiment, the external data received by the data receiving module 21 includes features that can be recognized or supported by the first subsystem 22 (mainly the first hardware interface module 24 or hardware under the first subsystem 22) Information and data content, therefore, the first service module 25 needs to shell out the external data, specifically deleting the characteristic information from the external data, and only retaining the data content.
在一可实施方式中,第二子系统23包括第二硬件接口模块28、显示屏幕29和第二服务模块;In a possible implementation, the second subsystem 23 includes a second hardware interface module 28, a display screen 29, and a second service module;
第二服务模块用于接收中间数据,并对中间数据进行加壳处理,以得到仅供第二子系统23应用的特定数据,并将所得到的特定数据传输到第二硬件接口模块28;The second service module is used to receive intermediate data, and pack the intermediate data to obtain specific data that is only used by the second subsystem 23, and transmit the obtained specific data to the second hardware interface module 28;
第二硬件接口模块28上安装显示屏幕29,并根据所接收到的特定数据,显示特定数据中的中间数据。A display screen 29 is installed on the second hardware interface module 28, and according to the received specific data, the intermediate data in the specific data is displayed.
本实施例中,第二硬件接口模块28包括I2C-M I2C-M(Inter-Integrated Circuit Master,集成电路总线)、SPI-M(Serial Peripheral Interface Master,串行外设接口)、DMA(Direct Memory Access,直接存储器访问)等硬件或接口,以可在第二子系统23中安装OLED(Organic Light-Emitting Diode,有机发光半导体)、Tou(Touch,触摸板)、GPS(Global Positioning System,全球定位系统)和K(KEY,键盘)等硬件设备。In this embodiment, the second hardware interface module 28 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), SPI-M (Serial Peripheral Interface Master, serial peripheral interface), and DMA (Direct Memory). Access, direct memory access) and other hardware or interfaces, so that OLED (Organic Light-Emitting Diode, organic light-emitting semiconductor), Tou (Touch, touch panel), GPS (Global Positioning System, global positioning system) can be installed in the second subsystem 23 System) and K (KEY, keyboard) and other hardware devices.
显示屏幕29优选为OLED屏幕,根据自身的接口类型安装在第二硬件接口模块28上,以实现第二硬件接口模块28与显示屏幕29通信连接。The display screen 29 is preferably an OLED screen, which is installed on the second hardware interface module 28 according to its own interface type, so as to realize the communication connection between the second hardware interface module 28 and the display screen 29.
由于第二子系统23优选为ST型号的单片机,相应的,第二服务模块对应对应为ST Service模块,用于处理第二子系统23中数据的运算。在本实施例中第二服务模块主要用于对所接收到的中间数据进行加壳处理,具体为:对中间数据加上可被第二硬件接口模块28、硬件所识别或支持的特征信息,生成特定数据。第二服务模块将所生成的特定数据传输给第二硬件接口模块28,第二硬件接口模块28接收特定数据,并通过显示屏幕29显示中间数据。Since the second subsystem 23 is preferably an ST-type single-chip microcomputer, correspondingly, the second service module corresponds to an ST Service module, which is used to process data operations in the second subsystem 23. In this embodiment, the second service module is mainly used to pack the received intermediate data, specifically: adding characteristic information that can be recognized or supported by the second hardware interface module 28 and the hardware to the intermediate data, Generate specific data. The second service module transmits the generated specific data to the second hardware interface module 28, and the second hardware interface module 28 receives the specific data and displays the intermediate data through the display screen 29.
在一可实施方式中,第二服务模块通过第三硬件抽象层210接收中间数据,并通过第四硬件抽象层211将特定数据传输到第二硬件接口模块8。In an implementation manner, the second service module receives intermediate data through the third hardware abstraction layer 210, and transmits specific data to the second hardware interface module 8 through the fourth hardware abstraction layer 211.
本实施例中,第三硬件抽象层210和第四硬件抽象层211(即图中的HAL,Hardware Abstraction Layer)是位于操作系统内核与硬件电路之间的接口层,其目的在于将硬件抽象化。In this embodiment, the third hardware abstraction layer 210 and the fourth hardware abstraction layer 211 (ie HAL, Hardware Abstraction Layer in the figure) are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
在一可实施方式中,数据接收模块21具体为蓝牙模块、无线收发模块和有线收发模块之一。In an implementation manner, the data receiving module 21 is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
本实施例中,数据接收模块21主要用于接收外界的数据,其具体可以为蓝牙模块、无线收发模块和有线收发模块的其中之一,图10中,数据接收模块21优选为BLE模块(低功耗蓝牙)。In this embodiment, the data receiving module 21 is mainly used to receive external data, which can be specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In FIG. 10, the data receiving module 21 is preferably a BLE module (low Bluetooth power consumption).
图11为本发明实施例一种数据读取方法的实现流程示意图。如图11所示,本发明实施例另一方面提供一种数据读取方法,应用于辅助系统,辅助系统包括相互通信连接的第一子系统22和第二子系统23,方法包括:FIG. 11 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention. As shown in FIG. 11, another aspect of the embodiment of the present invention provides a data reading method, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 22 and a second subsystem 23 that are communicatively connected to each other. The method includes:
步骤2101,在判定主系统处于非唤醒状态下时通过第二子系统23中的存储器212获取已存数据;Step 2101: Acquire stored data through the memory 212 in the second subsystem 23 when it is determined that the main system is in a non-awake state;
步骤2102,将所获取的已存数据传输给第一子系统22;Step 2102: Transmit the acquired stored data to the first subsystem 22;
步骤2103,指示第一子系统22读取已存数据。 Step 2103, instruct the first subsystem 22 to read the stored data.
本实施例中,主系统和辅助系统的结构关系以及辅助系统的结构可参考图10。In this embodiment, the structural relationship between the main system and the auxiliary system and the structure of the auxiliary system can refer to FIG. 10.
结合图0,当判定主系统处于非唤醒状态下时,通过第二子系统23中的存储器212获取已存数据,其中主系统的工作状态判断过程可通过开关模块来获取判断;存储器212预先安装在第二子系统23中,具体为基于NF(Nor Flash,非易失闪存技术)的存储器,用于存储数据。With reference to Figure 0, when it is determined that the main system is in a non-awake state, the stored data is obtained through the memory 212 in the second sub-system 23, and the judgment process of the working state of the main system can be obtained through the switch module; the memory 212 is pre-installed In the second subsystem 23, specifically, a memory based on NF (Nor flash, non-volatile flash memory technology) is used to store data.
接着将所获取的已存数据传输给第一子系统22;Then transmit the acquired stored data to the first subsystem 22;
最后指示第一子系统22读取已存数据,其中本实施例中的读取操作包括对数据的显示、播报;若已存数据为音频数据,则读取的操作为播报;若已存数据为文本信息,则此时的读取操作为显示。Finally, the first subsystem 22 is instructed to read the stored data, where the reading operation in this embodiment includes the display and broadcasting of the data; if the stored data is audio data, the reading operation is broadcasting; if the data is already stored If it is text information, the reading operation at this time is display.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
进一步地,参考图10,第二子系统23中包括第二服务模块,因此,步骤2101和步骤2102的具体过程为:在判定主系统处于非唤醒状态下时,通过第二服务模块来获取存储器212中的已存数据, 并通过第二服务模块将已存数据传输通过第三硬件抽象层210传输给第一子系统22。Further, referring to FIG. 10, the second subsystem 23 includes a second service module. Therefore, the specific process of step 2101 and step 2102 is: when it is determined that the main system is in a non-awake state, the second service module obtains the memory The stored data in 212 is transmitted to the first subsystem 22 through the third hardware abstraction layer 210 through the second service module.
在一可实施方式中,指示第一子系统22读取已存数据,包括:In an implementation manner, instructing the first subsystem 22 to read the stored data includes:
指示第一子系统22对所接收到的已存数据进行加壳处理,得到仅供第一子系统22应用的特定数据;Instruct the first subsystem 22 to pack the received stored data to obtain specific data that can only be used by the first subsystem 22;
指示第一子系统22对所得到的特定数据进行读取。Instruct the first subsystem 22 to read the obtained specific data.
本实施例中,步骤2103的具体过程为:指示第一子系统22对所接收到的已存数据进行加壳处理,得到仅供第一子系统22应用的特定数据,具体为:在原有数据的基础上增加可被对应于第一子系统22所识别或所支持的特征信息,生成特定数据,该特定数据可被第一子系统22中的接口模块或者硬件所识别,以便接口模块或者硬件所读取特定数据。In this embodiment, the specific process of step 2103 is: instructing the first subsystem 22 to pack the received stored data to obtain specific data that can only be used by the first subsystem 22, specifically: in the original data On the basis of adding feature information that can be identified or supported by the first subsystem 22, specific data is generated, and the specific data can be recognized by the interface module or hardware in the first subsystem 22, so that the interface module or hardware The specific data being read.
进一步地,参考图10,第一子系统22不同的读取方式有多种,不同的特定数据对应不同的读取方式,并且需要相应的硬件配合,若假设提取的已存数据为音频数据,则需要发声器硬件,该硬件需安装在第一硬件接口模块24中的I2S/PCM接口中。在步骤2101将所获取的已存数据传输给第一子系统22之后,由第一子系统22的第一服务模块25接收已存数据并对其进行加壳处理得到特定数据,再将特定数据传输给第二接口模块中的发声器,从而对音频数据进行播报。Further, referring to FIG. 10, there are many different reading methods for the first subsystem 22. Different specific data corresponds to different reading methods and requires corresponding hardware cooperation. If it is assumed that the extracted stored data is audio data, Sounder hardware is required, and the hardware needs to be installed in the I2S/PCM interface in the first hardware interface module 24. After the acquired stored data is transmitted to the first subsystem 22 in step 2101, the first service module 25 of the first subsystem 22 receives the stored data and packs it to obtain specific data, and then transfers the specific data It is transmitted to the sounder in the second interface module to broadcast the audio data.
图12为本发明实施例一种数据存储方法的实现流程示意图。如图12所示,本发明实施例另一方面一种数据存储方法,应用于辅助系统,辅助系统包括相互通信连接的第一子系统22和第二子系统23,方法包括:FIG. 12 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention. As shown in FIG. 12, another aspect of the embodiment of the present invention is a data storage method, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 22 and a second subsystem 23 that are communicatively connected to each other. The method includes:
步骤2201,在判定主系统处于非唤醒状态下时,通过第一子系统22中的数据接收模块21获取外界数据,Step 2201: When it is determined that the main system is in a non-awake state, obtain external data through the data receiving module 21 in the first subsystem 22,
或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;Or, when it is determined that the main system is in the wake-up state, the slave receives external data through the main system;
步骤2202,将所获取的外界数据传输给第二子系统23;Step 2202: Transmit the acquired external data to the second subsystem 23;
步骤2203,指示第二子系统23将传输得到的外界数据存储到存储器212中。Step 2203: Instruct the second subsystem 23 to store the transmitted external data in the memory 212.
本实施例中,结合图10所示,首先在判定主系统处于非唤醒状态下时,通过第一子系统22中的数据接收模块21获取外界数据,或者,在判定主系统处于唤醒状态下时,通过从主系统(具体主系统中的经典蓝牙模块)接收外界数据。其中主系统的工作状态可通过开关模块来获取判定,数据接收模块21主要用于接收外界的数据,其具体可以为蓝牙模块、无线收发模块和有线收发模块的其中之一,在本实施例中,数据接收模块21优选为BLE(低功耗蓝牙)。In this embodiment, as shown in FIG. 10, when it is determined that the main system is in the non-awakened state, external data is obtained through the data receiving module 21 in the first subsystem 22, or when it is determined that the main system is in the awake state. , By receiving external data from the main system (the classic Bluetooth module in the specific main system). The working state of the main system can be determined by the switch module. The data receiving module 21 is mainly used to receive data from the outside world, which can be specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In this embodiment The data receiving module 21 is preferably BLE (Bluetooth Low Energy).
步骤2201具体过程为:在判定主系统处于非唤醒状态下时,开关模块令另辅助系统开始工作,此时具体为由第一子系统22中的数据接收模块21来接收外界数据;在判定主系统中处于唤醒状态下时,主系统与存储器212通信连接,利用通过主系统中的接收模块如经典蓝牙模块来接收外界数据。The specific process of step 2201 is: when it is determined that the main system is in a non-awake state, the switch module causes the other auxiliary system to start working. At this time, the data receiving module 21 in the first subsystem 22 receives external data; When the system is in an awake state, the main system is in communication connection with the memory 212, and the receiving module in the main system, such as a classic Bluetooth module, is used to receive external data.
接着将所获取的外界数据传输给第二子系统23,具体为:若通过第一子系统22接收外界数据,则将接收到的外界数据依次通过第一硬件接口模块24、第一硬件抽象层26、第一服务模块25、第二硬件抽象层27之后传输给第二子系统23;若通过主系统接收外界数据,则利用主系统的输出接口将外界数据传输给第二子系统23下的存储器212中。Then the acquired external data is transmitted to the second subsystem 23, specifically: if the external data is received through the first subsystem 22, the received external data is sequentially passed through the first hardware interface module 24 and the first hardware abstraction layer 26. The first service module 25 and the second hardware abstraction layer 27 are then transmitted to the second subsystem 23; if the external data is received through the main system, the output interface of the main system is used to transmit the external data to the second subsystem 23 In the memory 212.
最后指示第二子系统23将传输得到的外界数据存储到存储器212中,具体过程为:将外界数据依次通过第三抽象层、第二服务模块之后存入到存储器212中。Finally, the second subsystem 23 is instructed to store the external data obtained by the transmission in the memory 212, and the specific process is: the external data is stored in the memory 212 after passing through the third abstraction layer and the second service module in sequence.
在一可实施方式中,数据接收模块21为低功耗蓝牙模块;In an implementation manner, the data receiving module 21 is a Bluetooth low energy module;
相应的,通过第一子系统22中的数据接收模块21获取外界数据,包括:Correspondingly, obtaining external data through the data receiving module 21 in the first subsystem 22 includes:
通过与低功耗蓝牙模块配对的设备获取外界数据;Obtain external data through a device paired with a Bluetooth low energy module;
主系统中包括经典蓝牙模块;The main system includes classic Bluetooth module;
相应的,从主系统接收外界数据,具体包括:Correspondingly, receiving external data from the main system includes:
从主系统中的经典蓝牙模块所配对的设备获取到外界数据。Obtain external data from the device paired with the classic Bluetooth module in the main system.
本实施例中,数据接收模块21为低功耗蓝牙模块,主系统中包括经典蓝牙模块;因此,步骤2201具体为:通过与低功耗蓝牙模块配对的设备获取外界数据,和从主系统中的经典蓝牙模块所配对的设备获取到外界数据。In this embodiment, the data receiving module 21 is a low-power Bluetooth module, and the main system includes a classic Bluetooth module; therefore, step 2201 specifically includes: obtaining external data through a device paired with the low-power Bluetooth module, and from the main system The device paired with the classic Bluetooth module obtains external data.
在一可实施方式中,在蓝牙配对的过程中,方法还包括:In an implementation manner, during the Bluetooth pairing process, the method further includes:
在判定主系统处于唤醒状态时,通过主系统中的经典蓝牙模块与设备进行配对,低功耗蓝牙模块失去配对功能;When it is determined that the main system is in the awake state, the classic Bluetooth module in the main system is paired with the device, and the low-power Bluetooth module loses the pairing function;
在判定主系统处于非唤醒状态时,通过辅助系统中的低功耗蓝牙模块与设备进行配对,经典蓝牙模块失去配对功能。When it is determined that the main system is in a non-awake state, the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
本实施例中,主系统和辅助系统只能有一侧进行数据接收蓝牙配对,当判定主系统处于唤醒状态时,通过主系统中的经典蓝牙模块与设备进行配对,以从设备中接收外界数据,此时令低功耗蓝牙模块失去配对功能;在判定主系统处于非唤醒状态时,通过辅助系统中的低功耗蓝牙模块与设备进行配对,以从已配对设备中接收外界数据,此时经典蓝牙模块失去配对功能,其中配对功能的开启和关闭可通过开关模块来控制。In this embodiment, only one side of the main system and the auxiliary system can perform data receiving Bluetooth pairing. When it is determined that the main system is in the awake state, the classic Bluetooth module in the main system is paired with the device to receive external data from the device. At this time, the Bluetooth low energy module loses its pairing function; when it is determined that the main system is not awake, the Bluetooth low energy module in the auxiliary system is paired with the device to receive external data from the paired device. At this time, the classic Bluetooth The module loses the pairing function, and the opening and closing of the pairing function can be controlled by the switch module.
在一可实施方式中,方法还包括:在经典蓝牙模块已与设备配对的状态下,若主系统在唤醒状态切换至非唤醒状态时,经典蓝牙模块与已配对设备断开连接;In an implementation manner, the method further includes: in a state where the classic Bluetooth module is paired with the device, if the main system is switched from the wake-up state to the non-wake-up state, the classic Bluetooth module is disconnected from the paired device;
指示低功耗蓝牙模块向待配对设备发出配对请求指令。Instruct the Bluetooth low energy module to send a pairing request instruction to the device to be paired.
本实施例中,在经典蓝牙模块已与设备配对的状态下,若主系统在唤醒状态切换至非唤醒状态时,开关模块控制主系统中的经典蓝牙模块断开与已配对设备的通信连接,并启动辅助系统中的低功耗蓝牙模块,此时通过低功耗蓝牙模块对已断开的设备发出配对请求,已断开设备可通过响应该请求以再次建立通信连接。In this embodiment, when the classic Bluetooth module is paired with the device, if the main system switches to the non-awake state in the wake-up state, the switch module controls the classic Bluetooth module in the main system to disconnect the communication connection with the paired device. And start the Bluetooth low energy module in the auxiliary system. At this time, the Bluetooth low energy module sends a pairing request to the disconnected device, and the disconnected device can respond to the request to establish a communication connection again.
图13为本发明实施例一种数据读取装置的结构组成示意图。如图13所示,本发明实施例另一方面提供一种数据读取装置,应用于辅助系统,辅助系统包括相互通信连接的第一子系统22和第二子系统23,装置包括:FIG. 13 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention. As shown in FIG. 13, another aspect of the embodiment of the present invention provides a data reading device, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 22 and a second subsystem 23 that are communicatively connected to each other. The device includes:
已存数据获取模块2301,用于在判定主系统处于非唤醒状态下时通过第二子系统23中的存储器212获取已存数据;The stored data acquisition module 2301 is used to acquire the stored data through the memory 212 in the second subsystem 23 when it is determined that the main system is in the non-awake state;
已存数据传输模块2302,用于将所获取的已存数据传输给第一子系统22;The stored data transmission module 2302 is used to transmit the acquired stored data to the first subsystem 22;
已存数据读取模块2303,用于指示第一子系统22读取已存数据。The stored data reading module 2303 is used to instruct the first subsystem 22 to read the stored data.
本实施例中,主系统和辅助系统的结构关系图可参考图10。In this embodiment, the structural relationship diagram of the main system and the auxiliary system can refer to FIG. 10.
结合图10,通过已存数据获取模块2301判定主系统处于非唤醒状态下时,通过第二子系统23中的存储器212获取已存数据,其中主系统的工作状态判断过程可通过开关模块判断;存储器212安装在第二子系统23中,用于存储数据。10, when the stored data acquisition module 2301 determines that the main system is in a non-awake state, the stored data is acquired through the memory 212 in the second subsystem 23, wherein the judgment process of the main system's working state can be judged by the switch module; The memory 212 is installed in the second subsystem 23 for storing data.
接着通过已存数据传输模块2302将所获取的已存数据传输给第一子系统22;Then transmit the acquired stored data to the first subsystem 22 through the stored data transmission module 2302;
最后通过已存数据读取模块2303指示第一子系统22读取已存数据,其中本实施例中的读取操作包括对数据的显示、播报;若已存数据为音频数据,则读取的操作为播报;若已存数据为文本信息,则此时的读取操作为显示。Finally, the stored data reading module 2303 instructs the first subsystem 22 to read the stored data. The reading operation in this embodiment includes the display and broadcast of the data; if the stored data is audio data, the read The operation is broadcast; if the stored data is text information, the read operation at this time is display.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
图14为本发明实施例一种数据存储装置的结构组成示意图。如图14所示,本发明实施例另一方面提供一种数据存储装置,应用于辅助系统,辅助系统包括相互通信连接的第一子系统22和第二子系统23,装置包括:FIG. 14 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention. As shown in FIG. 14, another aspect of the embodiment of the present invention provides a data storage device, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 22 and a second subsystem 23 that are communicatively connected to each other. The device includes:
外界数据获取模块2401,用于在判定主系统处于非唤醒状态下时,通过第一子系统22中的数据接收模块21获取外界数据,The external data acquisition module 2401 is used to acquire external data through the data receiving module 21 in the first subsystem 22 when it is determined that the main system is in a non-awake state,
或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;Or, when it is determined that the main system is in the wake-up state, the slave receives external data through the main system;
外界数据传输模块2402,用于将所获取的外界数据传输给第二子系统23;The external data transmission module 2402 is used to transmit the acquired external data to the second subsystem 23;
外界数据存储模块2403,用于指示第二子系统23将传输得到的外界数据存储到存储器212中。The external data storage module 2403 is used to instruct the second subsystem 23 to store the external data obtained by the transmission in the memory 212.
本实施例中,结合图10所示,首先通过外界数据获取模块2401在判定主系统处于非唤醒状态下时,通过第一子系统22中的数据接收模块21获取外界数据,或者,在判定主系统处于唤醒状态下时,从主系统接收外界数据。其中主系统的工作状态可通过开关模块来判定,数据接收模块21主要用于接收外界的数据,其具体可以为蓝牙模块、无线接发模块无线收发模块和有线接发模块有线收发模块的其中之一,在本实施例中,数据接收模块21优选为BLE(低功耗蓝牙)。In this embodiment, with reference to FIG. 10, first, when the external data acquisition module 2401 determines that the main system is in a non-awake state, the data receiving module 21 in the first sub-system 22 obtains external data, or, when the main system is determined When the system is awake, it receives external data from the main system. The working status of the main system can be judged by the switch module. The data receiving module 21 is mainly used to receive data from the outside world. Specifically, it can be one of the Bluetooth module, the wireless receiving and sending module, the wireless receiving and sending module, and the wired receiving and sending module. 1. In this embodiment, the data receiving module 21 is preferably BLE (Bluetooth Low Energy).
外界数据获取模块2401具体为:在判定主系统处于非唤醒状态下时,主系统与存储器212断开通信连接,开关模块令辅助系统开始工作,此时由第一子系统22中的数据接收模块21来接收外界数据;在判定主系统中处于唤醒状态下时,主系统与存储器212通信连接,通过主系统中的接收模块如经典蓝牙模块来接收外界数据。The external data acquisition module 2401 is specifically: when it is determined that the main system is in a non-awake state, the main system disconnects the communication connection with the memory 212, and the switch module makes the auxiliary system start working. At this time, the data receiving module in the first subsystem 22 21 to receive external data; when it is determined that the main system is in an awake state, the main system communicates with the memory 212, and receives external data through a receiving module in the main system, such as a classic Bluetooth module.
接着通过外界数据传输模块2402将所获取的外界数据传输给第二子系统23,具体为:若通过第一子系统22接收外界数据,则将接收到的外界数据依次通过第一硬件接口模块24、第一硬件抽象层26、第一服务模块25、第二硬件抽象层27之后传输给第二子系统23;若通过主系统接收外界数据,则利用主系统的输出接口将外界数据传输给第二子系统23。Then the acquired external data is transmitted to the second subsystem 23 through the external data transmission module 2402, specifically: if the external data is received through the first subsystem 22, the received external data is sequentially passed through the first hardware interface module 24 , The first hardware abstraction layer 26, the first service module 25, and the second hardware abstraction layer 27 are then transmitted to the second subsystem 23; if the external data is received through the main system, the external data is transmitted to the second subsystem through the output interface of the main system Two subsystem 23.
最后通过外界数据存储模块2403指示第二子系统23将传输得到的外界数据存储到存储器212中,具体过程为:将外界数据依次通过第三抽象层、第二服务模块之后存入到存储器212中。Finally, the external data storage module 2403 instructs the second subsystem 23 to store the transmitted external data in the memory 212. The specific process is: the external data is stored in the memory 212 after passing through the third abstraction layer and the second service module in turn. .
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据读取方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a data reading method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时通过第二子系统23中的存储器212获取已存数据;将所获取的已存数据传输给第一子系统22;指示第一子系统22读取已存数据。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain stored data through the memory 212 in the second subsystem 23 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 22; instruct the first subsystem 22 to read the stored data.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据存储方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a data storage method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时通过第二子系统23中的存储器212获取已存数据;将所获取的已存数据传输给第一子系统22;指示第一子系统22读取已存数据In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain stored data through the memory 212 in the second subsystem 23 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 22; instruct the first subsystem 22 to read the stored data
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时,通过第一子系统22中的数据接收模块21获取外界数据,或者,在判 定主系统处于唤醒状态下时,从通过主系统接收外界数据;将所获取的外界数据传输给第二子系统23;指示第二子系统23将传输得到的外界数据存储到存储器212中。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain the data through the data receiving module 21 in the first subsystem 22 when it is determined that the main system is in a non-awake state. External data, or, when it is determined that the main system is in an awake state, receive external data from the main system; transmit the obtained external data to the second subsystem 23; instruct the second subsystem 23 to store the transmitted external data To the memory 212.
图15为本发明实施例一种数据通知方法的实现流程示意图。如图15所示,本发明实施例另一方面提供一种数据通知方法,应用于辅助系统,方法包括:FIG. 15 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention. As shown in FIG. 15, another aspect of the embodiment of the present invention provides a data notification method, which is applied to an auxiliary system, and the method includes:
步骤2501,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据; Step 2501, when determining that the main system is in a non-awake state, receive external data through the auxiliary system;
步骤2502,判断所接收到的外界数据是否为辅助系统所支持的通知类型;Step 2502: Determine whether the received external data is a notification type supported by the auxiliary system;
步骤2503,若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统进行对外通知;Step 2503: If it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system;
步骤2504,若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。Step 2504: If it is determined that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides an external prompt for the external data.
本实施例中,首先在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, first, when determining that the main system is in a non-wake-up state, the auxiliary system receives external data. The non-wake-up state includes sleep, hibernation, and shutdown states. The external data includes phone notifications, SMS notifications, and application notifications.
接着判断所接收到的外界数据是否为辅助系统所支持的通知类型,其中所支持的通知类型通常为系统中事先设定,比如市面上的手机操作系统中会预设短信通知功能、定位通知功能和一些合作的第三方应用等,其对应的短信通知类型、定位通知类型和一些应用通知的数据则为辅助系统所支持的数据,除此之外的外界数据则为辅助系统所不支持的数据,但是该数据为可能是主系统所支持的。因此该步骤的具体过程可以为:获取并判断外界数据的通知类型,将所获取的通知类型与系统中预设的通知类型进行比较即可判断该外界数据是否为系统所支持。Then determine whether the received external data is a notification type supported by the auxiliary system. The supported notification type is usually set in advance in the system. For example, the SMS notification function and location notification function are preset in the mobile phone operating system on the market. With some cooperative third-party applications, the corresponding SMS notification type, location notification type, and some application notification data are data supported by the auxiliary system, and other external data are data that the auxiliary system does not support. , But the data may be supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
接着若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统内进行对外通知,其中对外通知在本实施例中具体为在屏幕上显示数据内容,或者通过发声器将数据内容对外播报,或者将数据内容通过网络向其他设备进行传输。Then, if it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system. In this embodiment, the external notification is specifically to display the data content on the screen. , Or broadcast the data content to the outside through the sounder, or transmit the data content to other devices through the network.
若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示,其中对外提示在本实施例中具体为在屏幕上显示消息通知提示、在发声器上播报消息通知提示或者灯光提示,以表示有通知消息的接收到达,但不显示其中的数据内容。针对于辅助系统所不支持的通知类型,用户可以根据通知提示主动唤醒主系统对其进行查看或处理。If it is determined that the received external data is a notification type that is not supported by the auxiliary system, the auxiliary system will provide an external prompt for the external data. In this embodiment, the external prompt is specifically a message notification prompt displayed on the screen, The message notification prompt or light prompt is broadcasted to indicate the arrival of the notification message, but the data content in it is not displayed. For notification types that are not supported by the auxiliary system, the user can actively wake up the main system according to the notification prompt to view or process it.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。Therefore, when the main system is in a non-wake-up state, once the external data is received, the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
在一可实施方式中,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据的过程中,方法还包括:In an implementation manner, in the process of receiving external data through the auxiliary system when it is determined that the main system is in the non-awake state, the method further includes:
切断主系统与外界的通信连接,以使辅助系统接收所有的外界数据。Cut off the communication connection between the main system and the outside world so that the auxiliary system can receive all external data.
本实施例中,在执行步骤2501的过程中,切断主系统与外界的通信连接,以免主系统中的数据接收模块21来接收外界数据从而导致唤醒主系统,进而使辅助系统接收所有的外界数据。In this embodiment, in the process of performing step 2501, the communication connection between the main system and the outside world is cut off, so as to prevent the data receiving module 21 in the main system from receiving external data, causing the main system to wake up, and then the auxiliary system to receive all external data. .
进一步地,结合图10所示,该步骤具体为:通过与主系统和辅助系统均通信连接的开关模块来切断主系统与外界的通信连接,并驱使辅助系统中的数据接收模块21来接收所有的外界消息。Further, as shown in FIG. 10, this step is specifically as follows: cut off the communication connection between the main system and the outside world through the switch module communicatively connected with the main system and the auxiliary system, and drive the data receiving module 21 in the auxiliary system to receive all Outside news.
在一可实施方式中,辅助系统包括第一子系统22和第二子系统23;In a possible embodiment, the auxiliary system includes a first subsystem 22 and a second subsystem 23;
通过辅助系统接收外界数据,包括:Receive external data through auxiliary systems, including:
通过第一子系统22的数据接收模块21接收外界数据;Receive external data through the data receiving module 21 of the first subsystem 22;
相应的,将外界数据的数据内容在辅助系统内进行对外通知,包括:Correspondingly, the data content of external data is notified to the outside in the auxiliary system, including:
在第二子系统23的屏幕上显示外界数据的数据内容;Display the data content of the external data on the screen of the second subsystem 23;
相应的,在辅助系统内针对外界数据进行对外提示,包括:Correspondingly, external prompts for external data in the auxiliary system include:
在第二子系统23的屏幕上针对外界数据进行对外提示。On the screen of the second subsystem 23, external prompts are given for external data.
本实施例中,结合图10所示,辅助系统包括第一子系统22和第二子系统23。In this embodiment, as shown in FIG. 10, the auxiliary system includes a first subsystem 22 and a second subsystem 23.
结合图10,由此,步骤2501的具体过程为:通过第一子系统22的数据接收模块21接收外界数据,。具体为:进一步地,将所接收到的外界数据通过第一硬件接口模块24和第一硬件抽象层26传送到第一服务模块25。第一服务模块25提取外界数据的数据内容,并将数据内容传输到第二子系统23。第二子系统23通过第三硬件抽象层210将数据内容传输到第二服务模块中,利用第二服务模块对数据内容进行通知类型的判断并对其进行加壳处理。With reference to FIG. 10, the specific process of step 2501 is: receiving external data through the data receiving module 21 of the first subsystem 22. Specifically: further, the received external data is transmitted to the first service module 25 through the first hardware interface module 24 and the first hardware abstraction layer 26. The first service module 25 extracts the data content of external data and transmits the data content to the second subsystem 23. The second subsystem 23 transmits the data content to the second service module through the third hardware abstraction layer 210, and uses the second service module to determine the notification type of the data content and performs shelling processing on the data content.
相应的,步骤2503的具体过程为:若该通知类型为支持的类型,则将数据内容通过第四硬件抽象层211和第二硬件接口模块28在屏幕上进行显示。Correspondingly, the specific process of step 2503 is: if the notification type is a supported type, the data content is displayed on the screen through the fourth hardware abstraction layer 211 and the second hardware interface module 28.
步骤2504的具体过程为:若通知类型为不支持的类型,则令屏幕显示消息提示信息。The specific process of step 2504 is: if the notification type is an unsupported type, the screen displays the message prompt information.
在一可实施方式中,将外界数据的数据内容在辅助系统内进行对外通知,包括:In an implementation manner, the external notification of the data content of the external data in the auxiliary system includes:
从数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。The key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
本实施例中,为了将该方法可以应用于小屏幕或者分辨率较低的设备上,需要对数据内容中的重点显示内容进行抽取,其抽取方式可以是通过经过训练的神经网络模型来实现,该神经网络模型的训练大致步骤为:In this embodiment, in order to apply the method to small screens or devices with low resolution, it is necessary to extract the key display content in the data content. The extraction method can be achieved through a trained neural network model. The general steps of training the neural network model are:
将相关训练语料和对应的结果作为神经网络模型的输入,得到输出结果,若输出结果跟对应的真实结果的偏差较大,则继续用语料进行训练,直到输出结果与对应的真实结果之间的偏差在预设范 围内时训练完成。The relevant training corpus and the corresponding result are used as the input of the neural network model to obtain the output result. If the output result deviates greatly from the corresponding real result, continue training with the corpus until the output result is between the corresponding real result The training is completed when the deviation is within the preset range.
然后将所抽到的重点显示内容在辅助系统的屏幕上进行显示,结合图10,具体在第二子系统23中的OLED屏幕上进行显示。Then the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 10, it is specifically displayed on the OLED screen in the second subsystem 23.
在一可实施方式中,在辅助系统内针对外界数据进行对外提示,包括:In an implementation manner, the external prompt for external data in the auxiliary system includes:
在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。Display unread message prompts and icon information corresponding to the data content on the screen in the auxiliary system.
本实施例中,步骤2504具体为:在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。其中,图标信息可以包括在数据内容内,也可以在辅助系统内事先存储一些不支持通知类型所对应的图标信息,在显示未读消息提示的同时从数据内容中提取对应的图表信息或者根据通知类型从系统中选取对应的图标信息,并将该图标信息在屏幕上进行显示。In this embodiment, step 2504 is specifically: displaying an unread message prompt and icon information corresponding to the data content on the screen in the auxiliary system. Among them, the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
图16为本发明实施例一种数据通知装置的结构组成示意图。如图16所示,本发明实施例另一方面提供一种数据通知装置,应用于辅助系统,装置包括:FIG. 16 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention. As shown in FIG. 16, another aspect of the embodiment of the present invention provides a data notification device, which is applied to an auxiliary system, and the device includes:
外界数据接收模块2601,用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;The external data receiving module 2601 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
通知类型判断模块2602,用于判断所接收到的外界数据是否为辅助系统所支持的通知类型;Notification type judging module 2602, for judging whether the received external data is a notification type supported by the auxiliary system;
对外通知模块2603,用于若经通知类型判断模块2602判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据的数据内容通过辅助系统进行对外通知;The external notification module 2603 is configured to, if the notification type determining module 2602 determines that the received external data is a notification type supported by the auxiliary system, then the data content of the external data is notified to the outside through the auxiliary system;
对外提示模块2604,用于若经通知类型判断模块2602判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。The external prompting module 2604 is configured to, if the notification type judging module 2602 determines that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides external prompts for the external data.
本实施例中,首先通过外界数据接收模块2601在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, the external data receiving module 2601 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state. The non-awakened state includes the sleep state, the hibernation state, and the off state, and the external data includes phone notifications and short messages. Notifications and application notifications, etc.
接着通过通知类型判断模块2602判断所接收到的外界数据是否为辅助系统所支持的通知类型,其中所支持的通知类型通常为系统中事先设定,比如市面上的手机操作系统中会预设短信通知功能、定位通知功能和一些合作的第三方应用等,其对应的短信通知类型、定位通知类型和一些应用通知的数据则为辅助系统所支持的数据,除此之外的外界数据则为辅助系统所不支持的数据,但是该数据为主系统所支持的。因此该步骤的具体过程可以为:获取并判断外界数据的通知类型,将所获取的通知类型与系统中预设的通知类型进行比较即可判断该外界数据是否为系统所支持。Then the notification type judgment module 2602 judges whether the received external data is a notification type supported by the auxiliary system. The supported notification type is usually set in advance in the system, for example, a short message is preset in the mobile phone operating system on the market. Notification function, location notification function and some cooperative third-party applications, etc. The corresponding SMS notification type, location notification type and some application notification data are data supported by the auxiliary system, and other external data is auxiliary Data not supported by the system, but the data is supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
接着若经通知类型判断模块2602判定所接收到的外界数据为辅助系统所支持的通知类型,则通过对外通知模块2603将外界数据中的数据内容通过辅助系统内进行对外通知,其中对外通知在本实施例中具体为在屏幕上显示数据内容,或者通过发声器将数据内容对外播报,或者将数据内容通过网络向其他设备进行传输。Then, if the notification type determination module 2602 determines that the received external data is a notification type supported by the auxiliary system, the external notification module 2603 will notify the data content in the external data through the auxiliary system. The external notification is in this In the embodiment, the data content is specifically displayed on the screen, or the data content is broadcast to the outside through a sounder, or the data content is transmitted to other devices through the network.
若经通知类型判断模块2602判定所接收到的外界数据为辅助系统所不支持的通知类型,则对外提示模块2604通过辅助系统针对外界数据进行对外提示,其中对外提示在本实施例中具体为在屏幕上显示消息通知提示、在发声器上播报消息通知提示或者灯光提示,以表示有通知消息的接收,但不显示其中的数据内容。针对于辅助系统所不支持的通知类型,用户可以主动唤醒主系统对其进行查看或处理。If the notification type judging module 2602 determines that the received external data is a notification type that is not supported by the auxiliary system, the external prompt module 2604 provides external prompts for the external data through the auxiliary system. The external prompts in this embodiment are specifically The screen displays the message notification prompt, broadcasts the message notification prompt or light prompt on the sounder to indicate the receipt of the notification message, but does not display the data content. For notification types that are not supported by the auxiliary system, the user can actively wake up the main system to view or process them.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。Therefore, when the main system is in a non-wake-up state, once the external data is received, the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
在一可实施方式中,外界数据接收模块2601在通过辅助系统接收外界数据的过程中,还具体用于:In an implementation manner, the external data receiving module 2601 is further specifically configured to: in the process of receiving external data through the auxiliary system:
切断主系统与外界的通信连接,以使辅助系统接收所有的外界数据。Cut off the communication connection between the main system and the outside world so that the auxiliary system can receive all external data.
本实施例中,外界数据接收模块2601在执行过程中,还具体用于,切断主系统与外界的通信连接,以免主系统中的数据接收模块21来接收外界数据从而导致唤醒主系统,进而使辅助系统接收所有的外界数据。In this embodiment, during the execution of the external data receiving module 2601, it is also specifically used to cut off the communication connection between the main system and the outside world, so as to prevent the data receiving module 21 in the main system from receiving external data, causing the main system to be awakened. The auxiliary system receives all external data.
在一可实施方式中,对外通知模块2603具体用于:In an implementation manner, the external notification module 2603 is specifically used to:
从数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。The key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
本实施例中,为了将该方法可以应用于小屏幕或者分辨率较低的设备上,对外通知模块2603具体用于对数据内容中的重点显示内容进行抽取,其抽取方式可以是通过经过训练的神经网络模型来实现,该神经网络模型的训练大致步骤为:In this embodiment, in order that the method can be applied to small screens or devices with lower resolution, the external notification module 2603 is specifically used to extract key display content in the data content, and the extraction method can be through trained The neural network model is implemented. The general steps for training the neural network model are:
然后将所抽到的重点显示内容在辅助系统的屏幕上进行显示,结合图10,具体在第二子系统23中的OLED屏幕上进行显示。Then the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 10, it is specifically displayed on the OLED screen in the second subsystem 23.
在一可实施方式中,对外提示模块2604具体用于:In an implementation manner, the external prompting module 2604 is specifically used to:
在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。Display unread message prompts and icon information corresponding to the data content on the screen in the auxiliary system.
本实施例中,对外提示模块2604具体用于:在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。其中,图标信息可以包括在数据内容内,也可以在辅助系统内事先存储一些不支持通知类型所对应的图标信息,在显示未读消息提示的同时从数据内容中提取对应的图表信息或者根据通知类型从系统中选取对应的图标信息,并将该图标信息在屏幕上进行显示。In this embodiment, the external prompting module 2604 is specifically configured to display unread message prompts and icon information corresponding to data content on the screen in the auxiliary system. Among them, the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令, 当指令被执行时用于执行数据通知方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a data notification method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;判断所接收到的外界数据是否为辅助系统所支持的通知类型;若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统进行对外通知;若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data Whether it is the notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, the data content in the external data will be notified to the outside through the auxiliary system; if the received external data is determined For notification types that are not supported by the auxiliary system, the auxiliary system will provide external notifications for external data.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。Therefore, when the main system is in a non-wake-up state, once the external data is received, the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
图17为本发明实施例一种通信切换方法的实现流程示意图。如图17所示,本发明实施例另一方面提供一种通信切换方法,方法包括:FIG. 17 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention. As shown in FIG. 17, another aspect of the embodiment of the present invention provides a communication handover method. The method includes:
步骤2701,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;Step 2701: When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
步骤2702,判断所接收到的外界数据的通知类型;Step 2702: Determine the notification type of the received external data;
步骤2703,若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。Step 2703: If it is determined that the notification type of the received external data is a specific notification type, wake up the main system and instruct the main system to process the external data.
本实施例中,首先在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, first, when determining that the main system is in a non-wake-up state, the auxiliary system receives external data. The non-wake-up state includes sleep, hibernation, and shutdown states. The external data includes phone notifications, SMS notifications, and application notifications.
接着判断所接收到的外界数据的通知类型,其中通知类型通常为系统中事先设定,比如说短信通知类型、电话通知类型、第三方应用通知类型等。Then determine the notification type of the received external data, where the notification type is usually set in advance in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
接着若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。其中特定通知类型在本实施例中定义为仅能被主系统处理的通知类型或者辅助系统处理困难的特定通知类型,可事先在系统中设定,比如可以将电话通知类型、短信通知类型等即时通信类的类型作为特定通知类型,当然也可通过用户自行添加一些第三方应用作为特定通知类型。其中指示主系统处理外界数据具体为:若特定通知类型为电话通知类型,则指示主系统对其进行接听、挂断等操作;若特定通知类型为短信通知类型,则指示主系统对其进行阅读、删除和回复等操作。Then, if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data. The specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc. The communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type. Instruct the main system to process external data specifically as follows: if the specific notification type is a phone notification type, instruct the main system to answer, hang up, etc.; if the specific notification type is a short message notification type, instruct the main system to read it , Delete and reply.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
进一步地,结合图10所示,在通过开关模块判定主系统处于非唤醒状态时,通过辅助系统中的数据接收模块21接收外界数据,再将外界数据传输到第一服务模块25内,并经第一服务模块25判断该外界数据是否为特定通知类型,若判定外界数据为特定通知类型,则通过开关模块唤醒主系统,并指示主系统处理该特定通知类型。Further, in conjunction with FIG. 10, when the main system is determined to be in a non-awake state by the switch module, the data receiving module 21 in the auxiliary system receives external data, and then transmits the external data to the first service module 25, and then The first service module 25 determines whether the external data is of a specific notification type, and if it determines that the external data is of a specific notification type, it wakes up the main system through the switch module and instructs the main system to process the specific notification type.
在一可实施方式中,方法还包括:In a possible implementation, the method further includes:
若判定所接收到的外界数据的通知类型为普通通知类型时,则指示辅助系统处理外界数据。If it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data.
本实施例中,若判定所接收到的外界数据的通知类型为普通通知类型时,则指示辅助系统处理外界数据,其中普通通知类型在本实施例中定义为除了特定通知类型以外的通知类型,比如说日历通知、闹钟通知等。In this embodiment, if it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data. The normal notification type is defined as a notification type other than the specific notification type in this embodiment. For example, calendar notifications, alarm clock notifications, etc.
进一步地,结合图10,普通通知类型在第二子系统23中的第二服务模块中处理。Further, with reference to FIG. 10, the common notification type is processed in the second service module in the second subsystem 23.
在一可实施方式中,指示辅助系统处理外界数据,包括:In an implementation manner, instructing the auxiliary system to process external data includes:
指示辅助系统将外界数据对外告知。Instruct the auxiliary system to notify external data.
本实施例中,结合图10所示,步骤“指示辅助系统处理外界数据”具体过程为:指示第一子系统22中的数据接收模块21接收外界数据,第一子系统22将外界数据传输给第二子系统23,第二子系统23根据外界数据的数据内容对外告知,其中对外告知方式可以是亮屏显示告知,可用于闹钟提醒;还可以是语音播报的方式进行告知,可用于备忘录提醒;也可以是对外信息传输的方式告知,可用于一些中间数据的传输。In this embodiment, as shown in FIG. 10, the specific process of the step "instruct the auxiliary system to process external data" is: instruct the data receiving module 21 in the first subsystem 22 to receive external data, and the first subsystem 22 transmits the external data to The second sub-system 23, the second sub-system 23 informs externally according to the data content of the external data. The external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders ; It can also be a notification of external information transmission, which can be used for the transmission of some intermediate data.
在一可实施方式中,在唤醒主系统,并指示主系统处理外界数据的过程中,方法还包括:In an implementation manner, in the process of waking up the main system and instructing the main system to process external data, the method further includes:
断开辅助系统与外界的通信连接;Disconnect the communication connection between the auxiliary system and the outside world;
当主系统处理完成之后,或者当主系统进入非唤醒状态时,辅助系统与外界重新建立通信连接。After the processing of the main system is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
本实施例中,在唤醒主系统,并指示主系统处理外界数据的过程中,断开辅助系统与外界的通信连接,结合图10,具体为断开数据接收模块21与外界的通信连接,当主系统处理完成之后,或者当主系统进入非唤醒状态时,开关模块判定主系统处于非唤醒状态时,驱使数据接收模块21即辅助系统再次与外界建立通信连接。In this embodiment, in the process of waking up the main system and instructing the main system to process external data, the communication connection between the auxiliary system and the outside world is disconnected. With reference to FIG. 10, the communication connection between the data receiving module 21 and the outside world is specifically disconnected. After the system processing is completed, or when the main system enters the non-awakened state, when the switch module determines that the main system is in the non-awakened state, it drives the data receiving module 21, that is, the auxiliary system to establish a communication connection with the outside again.
在一可实施方式中,唤醒主系统,并指示主系统处理外界数据,包括:In an implementation manner, waking up the main system and instructing the main system to process external data includes:
利用开关模块唤醒主系统中的经典蓝牙模块,并指示经典蓝牙模块处理外界数据。Use the switch module to wake up the classic Bluetooth module in the main system and instruct the classic Bluetooth module to process external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
经典蓝牙模块预先设置在主系统内,主要用于与外界进行通话连接。若外界数据被判定特定通知类型,并且该特定通知类型为通话类型时,利用经典蓝牙模块对其进行接听、挂断或者挂起等处理。The classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
图18为本发明实施例一种通信切换装置的结构组成示意图。如图18所示,本发明实施例另一方面提供一种通信切换装置,装置包括:FIG. 18 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention. As shown in FIG. 18, another aspect of the embodiment of the present invention provides a communication switching device, and the device includes:
外界数据接收模块2801,用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;The external data receiving module 2801 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
通知类型判断模块2802,用于判断所接收到的外界数据的通知类型;Notification type judging module 2802, for judging the notification type of the received external data;
第一数据处理模块2803,用于经通知类型判断模块2802判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。The first data processing module 2803 is configured to wake up the main system and instruct the main system to process the external data when the notification type judging module 2802 determines that the notification type of the received external data is a specific notification type.
本实施例中,首先通过外界数据接收模块2801在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, the external data receiving module 2801 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state. The non-awakened state includes sleep state, hibernation state, and shutdown state. The external data includes phone notifications and short messages. Notifications and application notifications, etc.
接着通过通知类型判断模块2802判断所接收到的外界数据的通知类型,其中通知类型通常为系统中事先设定,比如说短信通知类型、电话通知类型、第三方应用通知类型等。Then, the notification type judgment module 2802 judges the notification type of the received external data, where the notification type is usually preset in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
接着经通知类型判断模块2802判定所接收到的外界数据的通知类型为特定通知类型时,则通过第一数据处理模块2803唤醒主系统,并指示主系统处理外界数据。其中特定通知类型在本实施例中定义为仅能被主系统处理的通知类型或者辅助系统处理困难的特定通知类型,可事先在系统中设定,比如可以将电话通知类型、短信通知类型等即时通信类的类型作为特定通知类型,当然也可通过用户自行添加一些第三方应用作为特定通知类型。其中指示主系统处理外界数据具体为:若特定通知类型为电话通知类型,则指示主系统对其进行接听、挂断等操作;若特定通知类型为短信通知类型,则指示主系统对其进行阅读、删除和回复等操作。Then, when the notification type determining module 2802 determines that the notification type of the received external data is a specific notification type, the first data processing module 2803 wakes up the main system and instructs the main system to process the external data. The specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc. The communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type. Instruct the main system to process external data specifically as follows: if the specific notification type is a phone notification type, instruct the main system to answer, hang up, etc.; if the specific notification type is a short message notification type, instruct the main system to read it , Delete and reply.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
在一可实施方式中,装置还包括:In a possible implementation, the device further includes:
第二数据处理模块2804,用于若判定所接收到的外界数据的通知类型为普通通知类型时,指示辅助系统处理外界数据。The second data processing module 2804 is used for instructing the auxiliary system to process the external data if it is determined that the notification type of the received external data is a normal notification type.
本实施例中,若经通知类型判断模块2802判定所接收到的外界数据的通知类型为普通通知类型时,则通过第二数据处理模块2804指示辅助系统处理外界数据,其中普通通知类型在本实施例中定义为除了特定通知类型以外的通知类型,比如说日历通知、闹钟通知等。In this embodiment, if the notification type judging module 2802 determines that the notification type of the received external data is a common notification type, the second data processing module 2804 instructs the auxiliary system to process the external data. The common notification type is described in this embodiment. In the example, it is defined as a notification type other than a specific notification type, such as calendar notification, alarm notification, and so on.
在一可实施方式中,第二数据处理模块2804,具体用于:In an implementation manner, the second data processing module 2804 is specifically configured to:
指示辅助系统将外界数据对外告知。Instruct the auxiliary system to notify external data.
本实施例中,结合图10所示,第二数据处理模块2804,具体用于:指示第一子系统22中的数据接收模块21接收外界数据,第一子系统22将外界数据传输给第二子系统23,第二子系统23根据外界数据的数据内容对外告知,其中对外告知方式可以是亮屏显示告知,可用于闹钟提醒;还可以是语音播报的方式进行告知,可用于备忘录提醒;也可以是对外信息传输的方式告知,可用于一些中间数据的传输。In this embodiment, as shown in FIG. 10, the second data processing module 2804 is specifically used to: instruct the data receiving module 21 in the first subsystem 22 to receive external data, and the first subsystem 22 to transmit the external data to the second Subsystem 23, the second subsystem 23 informs externally according to the data content of external data. The external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
在一可实施方式中,第一数据处理模块2803,具体用于:In an implementation manner, the first data processing module 2803 is specifically configured to:
利用开关模块唤醒主系统中的经典蓝牙模块,并指示经典蓝牙模块处理外界数据。Use the switch module to wake up the classic Bluetooth module in the main system and instruct the classic Bluetooth module to process external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
经典蓝牙模块预先设置在主系统内,主要用于与外界进行通话连接。若外界数据被判定特定通知类型,并且该特定通知类型为通话类型时,利用经典蓝牙模块对其进行接听、挂断或者挂起等处理。The classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行通信切换方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a communication switching method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;判断所接收到的外界数据的通知类型;若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data The notification type; if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
实施例三Example three
图19为发明实施例一种数据处理装置的结构组成示意图。如图19所示,本发明一方面提供一种数据处理装置,装置包括辅助系统和开关模块:FIG. 19 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention. As shown in Figure 19, one aspect of the present invention provides a data processing device, which includes an auxiliary system and a switch module:
开关模块用于当主系统处于非唤醒状态时发出第一控制指令和第二控制指令,其中第一控制指令用于驱使主系统断开与外界的通信连接,第二控制指令用于驱使辅助系统与外界进行通信连接;The switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-wake-up state, wherein the first control instruction is used to drive the main system to disconnect the communication connection with the outside world, and the second control instruction is used to drive the auxiliary system to communicate with the outside world. Communication connection with the outside world;
辅助系统接收并响应于第二控制指令,以驱使辅助系统中的数据接收模块31接收外界数据;The auxiliary system receives and responds to the second control instruction to drive the data receiving module 31 in the auxiliary system to receive external data;
辅助系统还用于将所接收到的外界数据对外告知。The auxiliary system is also used to notify the received external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
当开关模块捕获到主系统处于非唤醒状态时,对主系统发送第一控制指令,该第一控制指令用 于使主系统断开与外界的通信连接。同时,开关模块对辅助系统发送第二控制指令,该第二控制指令用于辅助系统与外界建立通信连接,其中本实施例所提及的“外界”为除自身以外的范围,并非除整个设备以外的范围。When the switch module captures that the main system is in a non-awakened state, it sends a first control instruction to the main system, and the first control instruction is used to disconnect the main system from the communication connection with the outside world. At the same time, the switch module sends a second control instruction to the auxiliary system. The second control instruction is used to establish a communication connection between the auxiliary system and the outside world. Outside the scope.
辅助系统接收并响应由开关模块所发送的第二控制指令,以驱使安装在辅助系统中的数据接收模块31与外界通信连接,以接收外界数据。其中外界数据包括电话通知、短信通知和应用通知,辅助系统最后将所接收到的外界数据对外告知。The auxiliary system receives and responds to the second control instruction sent by the switch module to drive the data receiving module 31 installed in the auxiliary system to communicate with the outside world to receive external data. The external data includes phone notifications, short message notifications and application notifications, and the auxiliary system finally informs the received external data.
由此,当外界有数据传递到装置时,通过辅助系统对数据进行处理,从而降低了主系统的唤醒频率,减少了系统的功耗,以达到提高续航的目的。As a result, when data from the outside world is transmitted to the device, the data is processed by the auxiliary system, thereby reducing the wake-up frequency of the main system, reducing the power consumption of the system, and achieving the purpose of improving battery life.
进一步地,数据接收模块31优选为BLE(Bluetooth Low Energy,低功耗蓝牙)。Further, the data receiving module 31 is preferably BLE (Bluetooth Low Energy, Bluetooth low energy).
进一步地,现有的多系统设备中的每个系统都会设置BLE模块,以达到在任一系统在工作时均能与外界保持通信,通过此装置,可以优化掉主系统中的BLE模块,减少了设备中硬件资源的占用率。Furthermore, each system in the existing multi-system equipment will be equipped with a BLE module to achieve communication with the outside world when any system is working. Through this device, the BLE module in the main system can be optimized and reduced The occupancy rate of hardware resources in the device.
在一可实施方式中,开关模块还具体用于当辅助系统处于工作状态并且主系统从非唤醒状态转为唤醒状态时驱使辅助系统继续接收并对外告知外界数据。In a possible implementation, the switch module is also specifically used to drive the auxiliary system to continue receiving and to notify external data when the auxiliary system is in a working state and the main system changes from the non-wake-up state to the wake-up state.
本实施例中,当辅助系统处于工作状态下,并且当主系统由非唤醒状态转为唤醒状态时,开关模块将不阻断辅助系统与外界的通信连接,依旧通过辅助系统来接收外界数据,进而进一步降低主系统的功耗。In this embodiment, when the auxiliary system is in the working state and the main system changes from the non-wake-up state to the wake-up state, the switch module will not block the communication connection between the auxiliary system and the outside world, and still receive external data through the auxiliary system. Further reduce the power consumption of the main system.
在一可实施方式中,辅助系统具体用于将所接收到的外界数据通过语音播报的方式,或者通过在屏幕界面上显示的方式,或者通过网络进行信息传输的方式对外告知。In an implementation manner, the auxiliary system is specifically used to notify the received external data through voice broadcast, or through display on a screen interface, or through information transmission through the network.
本实施例中,辅助系统中可以包含发声器、屏幕、无线收发模块等硬件设备。当数据接收模块31接收到外界数据之后,辅助系统可以根据外界数据的类型针对性地对外告知,其中外界数据的类型包括图像、音频、视频和文字等,若外界数据为图像、视频和文字数据时,则通过在屏幕上进行显示的方式对外告知;若外界数据为音频数据时,则通过发声器播报的方式对外告知;所接收到的外界数据还可以通过网络渠道再次向外界的设备进行传输的方式对外告知。其中,对外告知的对象可以是人、动物、设备模块等。In this embodiment, the auxiliary system may include hardware devices such as a sounder, a screen, and a wireless transceiver module. After the data receiving module 31 receives the external data, the auxiliary system can notify the external data according to the type of the external data. The types of the external data include image, audio, video and text. If the external data is image, video and text data If the external data is audio data, it will be notified through the sounder broadcast method; the received external data can also be transmitted to the external device through the network channel again The way to inform the public. Among them, the object of external notification may be people, animals, equipment modules, and so on.
在一可实施方式中,辅助系统包括第一子系统32和第二子系统33;In a possible embodiment, the auxiliary system includes a first subsystem 32 and a second subsystem 33;
数据接收模块31安装在第一子系统32中;The data receiving module 31 is installed in the first subsystem 32;
第一子系统32具体用于将所接收到的外界数据中进行数据预处理,得到可被第一子系统32和第二子系统33共同应用的中间数据,并将所得到的中间数据传输给第二子系统33;The first subsystem 32 is specifically used to preprocess the received external data to obtain intermediate data that can be jointly applied by the first subsystem 32 and the second subsystem 33, and transmit the obtained intermediate data to The second subsystem 33;
第二子系统33具体用于将所传输到的中间数据对外告知。The second subsystem 33 is specifically used to notify the transmitted intermediate data to the outside.
本实施例中,具体参考图19所示,第一子系统32在本实施例中优选为Apollo3+型号的单片机,第二子系统33在本实施例中优选为ST型号的单片机,第一子系统32和第二子系统33相互通信连接。In this embodiment, referring specifically to FIG. 19, the first subsystem 32 is preferably an Apollo3+ type single-chip microcomputer in this embodiment, and the second subsystem 33 is preferably an ST type single-chip microcomputer in this embodiment. 32 and the second subsystem 33 are communicatively connected to each other.
数据接收模块31安装在第一子系统32中,由于不同子系统只会处理其所识别或者所支持的数据,因此通过第一子系统32将由数据接收模块31(即图中的BLE)所接收到的外界数据进行数据预处理,得到可被第一子系统32和第二子系统33共同应用的中间数据,并将中间数据传输给第二子系统33,第二子系统33将所传输得到的中间数据对外告知。The data receiving module 31 is installed in the first sub-system 32. Since different sub-systems can only process the data identified or supported by them, the data receiving module 31 (ie BLE in the figure) will receive the data through the first sub-system 32. Perform data preprocessing on the received external data to obtain intermediate data that can be jointly used by the first subsystem 32 and the second subsystem 33, and transmit the intermediate data to the second subsystem 33, and the second subsystem 33 transmits the obtained intermediate data. Of the intermediate data.
在一可实施方式中,第一子系统32还具体包括第一硬件接口模块34和第一服务模块35;In an implementation manner, the first subsystem 32 further specifically includes a first hardware interface module 34 and a first service module 35;
数据接收模块31安装于第一硬件接口模块34中;The data receiving module 31 is installed in the first hardware interface module 34;
第一硬件接口模块34用于将由数据接收模块31所接收到的外界数据传输到第一服务模块35中;The first hardware interface module 34 is configured to transmit the external data received by the data receiving module 31 to the first service module 35;
第一服务模块35将外界数据进行数据预处理,得到中间数据,并将中间数据传输给第二子系统33。The first service module 35 performs data preprocessing on external data to obtain intermediate data, and transmits the intermediate data to the second subsystem 33.
本实施例中,第一硬件接口模块34中包括I2C-M(Inter-Integrated Circuit Master,集成电路总线)、QSPI/SPI(QSPI:Queued Serial Peripheral Interface,串行外设接口;/SPI:Serial Peripheral Interface,串行外设接口)、DMA(Direct Memory Access,直接存储器访问)、I2S/PCM(I2S:Inter—IC Sound,集成电路内置音频总线;PCM:Pulse-code modulation脉冲编码调制)等硬件或接口,因此可在第一硬件接口模块34上安装比如LCD(Liquid Crystal Display,液晶显示器)、FG(Fual Guage,硬件电量计)、Sen(Sensors,传感器)、BlE(Bluetooth Low Energy,低功耗蓝牙)、AI(Audio In,音频输入)和Mic(Microphone,麦克风)等硬件设备。数据接收模块31(即图中的BLE)可根据自身的接口类型接入到第一硬件接口模块34中。In this embodiment, the first hardware interface module 34 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), QSPI/SPI (QSPI: Queued Serial Peripheral Interface, serial peripheral interface; /SPI: Serial Peripheral) Interface, serial peripheral interface), DMA (Direct Memory Access, direct memory access), I2S/PCM (I2S: Inter-IC Sound, integrated circuit built-in audio bus; PCM: Pulse-code modulation) and other hardware or Interface, so it can be installed on the first hardware interface module 34, such as LCD (Liquid Crystal Display), FG (Fual Guard, hardware fuel gauge), Sen (Sensors), BlE (Bluetooth Low Energy, low power consumption) Bluetooth), AI (Audio In, audio input) and Mic (Microphone, microphone) and other hardware devices. The data receiving module 31 (ie, BLE in the figure) can be connected to the first hardware interface module 34 according to its own interface type.
第一硬件接口模块34用于将数据接收模块31所接收到的外界数据传输给第一服务模块35。第一服务模块35是第一子系统32的处理内核,用于处理第一子系统32中的数据,由于第一子系统32优选为Apollo3+型号的单片机,对应的,第一服务模块35优选为Apollo3+Service模块。通过第一服务模块35对外界数据进行数据预处理,得到中间数据,并通过第一服务模块35将中间数据传输给第二子系统33。The first hardware interface module 34 is configured to transmit the external data received by the data receiving module 31 to the first service module 35. The first service module 35 is the processing core of the first subsystem 32, and is used to process the data in the first subsystem 32. Since the first subsystem 32 is preferably an Apollo3+ single-chip microcomputer, correspondingly, the first service module 35 is preferably Apollo3+Service module. The external data is preprocessed by the first service module 35 to obtain intermediate data, and the intermediate data is transmitted to the second subsystem 33 through the first service module 35.
在一可实施方式中,第一硬件接口模块34具体通过第一硬件抽象层36将外界数据传输到第一服务模块35中;In an implementation manner, the first hardware interface module 34 specifically transmits external data to the first service module 35 through the first hardware abstraction layer 36;
第一服务模块35具体通过第二硬件抽象层37将中间数据传输给第二子系统33。The first service module 35 specifically transmits the intermediate data to the second subsystem 33 through the second hardware abstraction layer 37.
本实施例中,第一硬件抽象层36和第二硬件抽象层37(即图中的HAL,Hardware Abstraction  Layer)是位于操作系统内核与硬件电路之间的接口层,其目的在于将硬件抽象化。In this embodiment, the first hardware abstraction layer 36 and the second hardware abstraction layer 37 (ie, HAL, Hardware Abstraction Layer in the figure) are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
在一可实施方式中,中间数据为数据内容;In a possible implementation, the intermediate data is data content;
第一服务模块35具体用于从外界数据进行去壳处理,以从外界数据中获取数据内容。The first service module 35 is specifically configured to perform shelling processing from external data to obtain data content from the external data.
在本实施例中,由数据接收模块31所接收到的外界数据中包括可被第一子系统32(主要为第一子系统32下的第一硬件接口模块34或硬件)识别或者支持的特征信息和数据内容,因此第一服务模块35需要对外界数据进行去壳处理,具体为从外界数据中删除特征信息,只保留数据内容。In this embodiment, the external data received by the data receiving module 31 includes features that can be recognized or supported by the first subsystem 32 (mainly the first hardware interface module 34 or hardware under the first subsystem 32) Information and data content, therefore, the first service module 35 needs to shell the external data, specifically deleting the characteristic information from the external data, and only retaining the data content.
在一可实施方式中,第二子系统33包括第二硬件接口模块38、显示屏幕39和第二服务模块;In a possible implementation, the second subsystem 33 includes a second hardware interface module 38, a display screen 39, and a second service module;
第二服务模块用于接收中间数据,并对中间数据进行加壳处理,以得到仅供第二子系统33应用的特定数据,并将所得到的特定数据传输到第二硬件接口模块38;The second service module is used to receive the intermediate data, and pack the intermediate data to obtain specific data that can only be used by the second subsystem 33, and transmit the obtained specific data to the second hardware interface module 38;
第二硬件接口模块38上安装显示屏幕39,并根据所接收到的特定数据,显示特定数据中的中间数据。A display screen 39 is installed on the second hardware interface module 38, and according to the received specific data, the intermediate data in the specific data is displayed.
本实施例中,第二硬件接口模块38包括I2C-M I2C-M(Inter-Integrated Circuit Master,集成电路总线)、SPI-M(Serial Peripheral Interface Master,串行外设接口)、DMA(Direct Memory Access,直接存储器访问)等硬件或接口,以可在第二子系统33中安装OLED(Organic Light-Emitting Diode,有机发光半导体)、Tou(Touch,触摸板)、GPS(Global Positioning System,全球定位系统)和K(KEY,键盘)等硬件设备。In this embodiment, the second hardware interface module 38 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), SPI-M (Serial Peripheral Interface Master, serial peripheral interface), and DMA (Direct Memory). Access, direct memory access) and other hardware or interfaces, so that OLED (Organic Light-Emitting Diode, organic light-emitting semiconductor), Tou (Touch, touch panel), GPS (Global Positioning System, global positioning system) can be installed in the second subsystem 33 System) and K (KEY, keyboard) and other hardware devices.
显示屏幕39优选为OLED屏幕,根据自身的接口类型安装在第二硬件接口模块38上,以实现第二硬件接口模块38与显示屏幕39通信连接。The display screen 39 is preferably an OLED screen, which is installed on the second hardware interface module 38 according to its own interface type, so as to realize the communication connection between the second hardware interface module 38 and the display screen 39.
由于第二子系统33优选为ST型号的单片机,相应的,第二服务模块对应对应为ST Service模块,用于处理第二子系统33中数据的运算。在本实施例中第二服务模块主要用于对所接收到的中间数据进行加壳处理,具体为:对中间数据加上可被第二硬件接口模块38、硬件所识别或支持的特征信息,生成特定数据。第二服务模块将所生成的特定数据传输给第二硬件接口模块38,第二硬件接口模块38接收特定数据,并通过显示屏幕39显示中间数据。Since the second subsystem 33 is preferably an ST-type single-chip microcomputer, correspondingly, the second service module corresponds to an ST Service module, which is used to process data operations in the second subsystem 33. In this embodiment, the second service module is mainly used to pack the received intermediate data, specifically: adding characteristic information that can be recognized or supported by the second hardware interface module 38 and the hardware to the intermediate data. Generate specific data. The second service module transmits the generated specific data to the second hardware interface module 38, and the second hardware interface module 38 receives the specific data and displays the intermediate data through the display screen 39.
在一可实施方式中,第二服务模块通过第三硬件抽象层310接收中间数据,并通过第四硬件抽象层311将特定数据传输到第二硬件接口模块38。In an implementation manner, the second service module receives intermediate data through the third hardware abstraction layer 310, and transmits specific data to the second hardware interface module 38 through the fourth hardware abstraction layer 311.
本实施例中,第三硬件抽象层310和第四硬件抽象层311(即图中的HAL,Hardware Abstraction Layer)是位于操作系统内核与硬件电路之间的接口层,其目的在于将硬件抽象化。In this embodiment, the third hardware abstraction layer 310 and the fourth hardware abstraction layer 311 (ie, HAL, Hardware Abstraction Layer in the figure) are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
在一可实施方式中,数据接收模块31具体为蓝牙模块、无线收发模块和有线收发模块之一。In an implementation manner, the data receiving module 31 is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
本实施例中,数据接收模块31主要用于接收外界的数据,其具体可以为蓝牙模块、无线收发模块和有线收发模块的其中之一,图19中,数据接收模块31优选为BLE模块(低功耗蓝牙)。In this embodiment, the data receiving module 31 is mainly used to receive external data, which can be specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In FIG. 19, the data receiving module 31 is preferably a BLE module (low Bluetooth power consumption).
图20为本发明实施例一种数据读取方法的实现流程示意图。如图20所示,本发明实施例另一方面提供一种数据读取方法,应用于辅助系统,辅助系统包括相互通信连接的第一子系统32和第二子系统33,方法包括:FIG. 20 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention. As shown in FIG. 20, another aspect of the embodiment of the present invention provides a data reading method, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 32 and a second subsystem 33 that are communicatively connected to each other. The method includes:
步骤3101,在判定主系统处于非唤醒状态下时通过第二子系统33中的存储器312获取已存数据;Step 3101: Acquire stored data through the memory 312 in the second subsystem 33 when it is determined that the main system is in a non-awake state;
步骤3102,将所获取的已存数据传输给第一子系统32;Step 3102: Transmit the acquired stored data to the first subsystem 32;
步骤3103,指示第一子系统32读取已存数据。 Step 3103, instruct the first subsystem 32 to read the stored data.
本实施例中,主系统和辅助系统的结构关系以及辅助系统的结构可参考图19。In this embodiment, the structural relationship between the main system and the auxiliary system and the structure of the auxiliary system can refer to FIG. 19.
结合图19,当判定主系统处于非唤醒状态下时,通过第二子系统33中的存储器312获取已存数据,其中主系统的工作状态判断过程可通过开关模块来获取判断;存储器312预先安装在第二子系统33中,具体为基于NF(Nor Flash,非易失闪存技术)的存储器,用于存储数据。With reference to Figure 19, when it is determined that the main system is in a non-awake state, the stored data is obtained through the memory 312 in the second sub-system 33. The working state judgment process of the main system can be obtained through the switch module; the memory 312 is pre-installed The second subsystem 33 is specifically a memory based on NF (Nor flash, non-volatile flash memory technology) for storing data.
接着将所获取的已存数据传输给第一子系统32;Then transmit the acquired stored data to the first subsystem 32;
最后指示第一子系统32读取已存数据,其中本实施例中的读取操作包括对数据的显示、播报;若已存数据为音频数据,则读取的操作为播报;若已存数据为文本信息,则此时的读取操作为显示。Finally, the first subsystem 32 is instructed to read the stored data, where the reading operation in this embodiment includes the display and broadcasting of the data; if the stored data is audio data, the reading operation is broadcasting; if the data is already stored If it is text information, the reading operation at this time is display.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
进一步地,参考图19,第二子系统33中包括第二服务模块,因此,步骤3101和步骤3102的具体过程为:在判定主系统处于非唤醒状态下时,通过第二服务模块来获取存储器312中的已存数据,并通过第二服务模块将已存数据传输通过第三硬件抽象层310传输给第一子系统32。Further, referring to FIG. 19, the second subsystem 33 includes a second service module. Therefore, the specific process of step 3101 and step 3102 is: when it is determined that the main system is in a non-awake state, the second service module obtains the memory The stored data in 312 is transmitted to the first subsystem 32 through the third hardware abstraction layer 310 through the second service module.
在一可实施方式中,指示第一子系统32读取已存数据,包括:In an implementation manner, instructing the first subsystem 32 to read the stored data includes:
指示第一子系统32对所接收到的已存数据进行加壳处理,得到仅供第一子系统32应用的特定数据;Instruct the first subsystem 32 to pack the received stored data to obtain specific data that can only be used by the first subsystem 32;
指示第一子系统32对所得到的特定数据进行读取。Instruct the first subsystem 32 to read the obtained specific data.
本实施例中,步骤3103的具体过程为:指示第一子系统32对所接收到的已存数据进行加壳处理,得到仅供第一子系统32应用的特定数据,具体为:在原有数据的基础上增加可被对应于第一子系统32所识别或所支持的特征信息,生成特定数据,该特定数据可被第一子系统32中的接口模块或者硬件所识别,以便接口模块或者硬件所读取特定数据。In this embodiment, the specific process of step 3103 is: instruct the first subsystem 32 to pack the received stored data to obtain specific data that can only be used by the first subsystem 32, specifically: in the original data On the basis of adding feature information that can be identified or supported by the first subsystem 32 to generate specific data, the specific data can be identified by the interface module or hardware in the first subsystem 32, so that the interface module or hardware The specific data being read.
进一步地,参考图19,第一子系统32不同的读取方式有多种,不同的特定数据对应不同的读 取方式,并且需要相应的硬件配合,若假设提取的已存数据为音频数据,则需要发声器硬件,该硬件需安装在第一硬件接口模块34中的I2S/PCM接口中。在步骤3101将所获取的已存数据传输给第一子系统32之后,由第一子系统32的第一服务模块35接收已存数据并对其进行加壳处理得到特定数据,再将特定数据传输给第二接口模块中的发声器,从而对音频数据进行播报。Further, referring to FIG. 19, there are multiple different reading methods for the first sub-system 32. Different specific data corresponds to different reading methods and requires corresponding hardware cooperation. If it is assumed that the extracted stored data is audio data, Sounder hardware is required, and the hardware needs to be installed in the I2S/PCM interface in the first hardware interface module 34. After the acquired stored data is transmitted to the first sub-system 32 in step 3101, the first service module 35 of the first sub-system 32 receives the stored data and packs it to obtain specific data, and then transfers the specific data It is transmitted to the sounder in the second interface module to broadcast audio data.
图21为本发明实施例一种数据存储方法的实现流程示意图。如图21所示,本发明实施例另一方面一种数据存储方法,应用于辅助系统,辅助系统包括相互通信连接的第一子系统32和第二子系统33,方法包括:FIG. 21 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention. As shown in FIG. 21, another aspect of the embodiment of the present invention is a data storage method, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 32 and a second subsystem 33 that are communicatively connected to each other. The method includes:
步骤3201,在判定主系统处于非唤醒状态下时,通过第一子系统32中的数据接收模块31获取外界数据,Step 3201: When it is determined that the main system is in a non-awake state, obtain external data through the data receiving module 31 in the first subsystem 32,
或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;Or, when it is determined that the main system is in the wake-up state, the slave receives external data through the main system;
步骤3202,将所获取的外界数据传输给第二子系统33;Step 3202: Transmit the acquired external data to the second subsystem 33;
步骤3203,指示第二子系统33将传输得到的外界数据存储到存储器312中。Step 3203: Instruct the second subsystem 33 to store the external data obtained by the transmission in the memory 312.
本实施例中,结合图19所示,首先在判定主系统处于非唤醒状态下时,通过第一子系统32中的数据接收模块31获取外界数据,或者,在判定主系统处于唤醒状态下时,通过从主系统(具体主系统中的经典蓝牙模块)接收外界数据。其中主系统的工作状态可通过开关模块来获取判定,数据接收模块31主要用于接收外界的数据,其具体可以为蓝牙模块、无线收发模块和有线收发模块的其中之一,在本实施例中,数据接收模块31优选为BLE(低功耗蓝牙)。In this embodiment, as shown in FIG. 19, when it is determined that the main system is in the non-awakened state, the data receiving module 31 in the first subsystem 32 obtains external data, or when it is determined that the main system is in the awake state. , By receiving external data from the main system (the classic Bluetooth module in the specific main system). The working state of the main system can be determined by the switch module. The data receiving module 31 is mainly used to receive data from the outside world. Specifically, it can be one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In this embodiment, The data receiving module 31 is preferably BLE (Bluetooth Low Energy).
步骤3201具体过程为:在判定主系统处于非唤醒状态下时,开关模块令另辅助系统开始工作,此时具体为由第一子系统32中的数据接收模块31来接收外界数据;在判定主系统中处于唤醒状态下时,主系统与存储器312通信连接,利用通过主系统中的接收模块如经典蓝牙模块来接收外界数据。The specific process of step 3201 is: when it is determined that the main system is in a non-awakened state, the switch module causes the other auxiliary system to start working. At this time, the data receiving module 31 in the first sub-system 32 receives external data; When the system is in an awake state, the main system is in communication connection with the memory 312, and the receiving module in the main system, such as a classic Bluetooth module, is used to receive external data.
接着将所获取的外界数据传输给第二子系统33,具体为:若通过第一子系统32接收外界数据,则将接收到的外界数据依次通过第一硬件接口模块34、第一硬件抽象层36、第一服务模块35、第二硬件抽象层37之后传输给第二子系统33;若通过主系统接收外界数据,则利用主系统的输出接口将外界数据传输给第二子系统33下的存储器312中。Then the obtained external data is transmitted to the second subsystem 33, specifically: if the external data is received through the first subsystem 32, the received external data is sequentially passed through the first hardware interface module 34 and the first hardware abstraction layer. 36. The first service module 35 and the second hardware abstraction layer 37 are then transmitted to the second subsystem 33; if the external data is received through the main system, the output interface of the main system is used to transmit the external data to the second subsystem 33 In the memory 312.
最后指示第二子系统33将传输得到的外界数据存储到存储器312中,具体过程为:将外界数据依次通过第三抽象层、第二服务模块之后存入到存储器312中。Finally, the second subsystem 33 is instructed to store the external data obtained by the transmission in the memory 312, and the specific process is: the external data is stored in the memory 312 after sequentially passing through the third abstraction layer and the second service module.
在一可实施方式中,数据接收模块31为低功耗蓝牙模块;In an implementation manner, the data receiving module 31 is a Bluetooth low energy module;
相应的,通过第一子系统32中的数据接收模块31获取外界数据,包括:Correspondingly, obtaining external data through the data receiving module 31 in the first subsystem 32 includes:
通过与低功耗蓝牙模块配对的设备获取外界数据;Obtain external data through a device paired with a Bluetooth low energy module;
主系统中包括经典蓝牙模块;The main system includes classic Bluetooth module;
相应的,从主系统接收外界数据,具体包括:Correspondingly, receiving external data from the main system includes:
从主系统中的经典蓝牙模块所配对的设备获取到外界数据。Obtain external data from the device paired with the classic Bluetooth module in the main system.
本实施例中,数据接收模块31为低功耗蓝牙模块,主系统中包括经典蓝牙模块;因此,步骤3201具体为:通过与低功耗蓝牙模块配对的设备获取外界数据,和从主系统中的经典蓝牙模块所配对的设备获取到外界数据。In this embodiment, the data receiving module 31 is a low energy Bluetooth module, and the main system includes a classic Bluetooth module; therefore, step 3201 specifically includes: obtaining external data through a device paired with the low energy Bluetooth module, and obtaining external data from the main system The device paired with the classic Bluetooth module obtains external data.
在一可实施方式中,在蓝牙配对的过程中,方法还包括:In an implementation manner, during the Bluetooth pairing process, the method further includes:
在判定主系统处于唤醒状态时,通过主系统中的经典蓝牙模块与设备进行配对,低功耗蓝牙模块失去配对功能;When it is determined that the main system is in the awake state, the classic Bluetooth module in the main system is paired with the device, and the low-power Bluetooth module loses the pairing function;
在判定主系统处于非唤醒状态时,通过辅助系统中的低功耗蓝牙模块与设备进行配对,经典蓝牙模块失去配对功能。When it is determined that the main system is in a non-awake state, the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
本实施例中,主系统和辅助系统只能有一侧进行数据接收蓝牙配对,当判定主系统处于唤醒状态时,通过主系统中的经典蓝牙模块与设备进行配对,以从设备中接收外界数据,此时令低功耗蓝牙模块失去配对功能;在判定主系统处于非唤醒状态时,通过辅助系统中的低功耗蓝牙模块与设备进行配对,以从已配对设备中接收外界数据,此时经典蓝牙模块失去配对功能,其中配对功能的开启和关闭可通过开关模块来控制。In this embodiment, only one side of the main system and the auxiliary system can perform data receiving Bluetooth pairing. When it is determined that the main system is in the awake state, the classic Bluetooth module in the main system is paired with the device to receive external data from the device. At this time, the Bluetooth low energy module loses its pairing function; when it is determined that the main system is not awake, the Bluetooth low energy module in the auxiliary system is paired with the device to receive external data from the paired device. At this time, the classic Bluetooth The module loses the pairing function, and the opening and closing of the pairing function can be controlled by the switch module.
在一可实施方式中,方法还包括:在经典蓝牙模块已与设备配对的状态下,若主系统在唤醒状态切换至非唤醒状态时,经典蓝牙模块与已配对设备断开连接;In an implementation manner, the method further includes: in a state where the classic Bluetooth module is paired with the device, if the main system is switched from the wake-up state to the non-wake-up state, the classic Bluetooth module is disconnected from the paired device;
指示低功耗蓝牙模块向待配对设备发出配对请求指令。Instruct the Bluetooth low energy module to send a pairing request instruction to the device to be paired.
本实施例中,在经典蓝牙模块已与设备配对的状态下,若主系统在唤醒状态切换至非唤醒状态时,开关模块控制主系统中的经典蓝牙模块断开与已配对设备的通信连接,并启动辅助系统中的低功耗蓝牙模块,此时通过低功耗蓝牙模块对已断开的设备发出配对请求,已断开设备可通过响应该请求以再次建立通信连接。In this embodiment, when the classic Bluetooth module is paired with the device, if the main system switches to the non-awake state in the wake-up state, the switch module controls the classic Bluetooth module in the main system to disconnect the communication connection with the paired device. And start the Bluetooth low energy module in the auxiliary system. At this time, the Bluetooth low energy module sends a pairing request to the disconnected device, and the disconnected device can respond to the request to establish a communication connection again.
图22为本发明实施例一种数据读取装置的结构组成示意图。如图22所示,本发明实施例另一方面提供一种数据读取装置,应用于辅助系统,辅助系统包括相互通信连接的第一子系统32和第二子系统33,装置包括:FIG. 22 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention. As shown in FIG. 22, another aspect of the embodiment of the present invention provides a data reading device, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 32 and a second subsystem 33 that are communicatively connected to each other. The device includes:
已存数据获取模块3301,用于在判定主系统处于非唤醒状态下时通过第二子系统33中的存储器312获取已存数据;The stored data acquisition module 3301 is used to acquire the stored data through the memory 312 in the second subsystem 33 when it is determined that the main system is in the non-awake state;
已存数据传输模块3302,用于将所获取的已存数据传输给第一子系统32;The stored data transmission module 3302 is used to transmit the acquired stored data to the first subsystem 32;
已存数据读取模块3303,用于指示第一子系统32读取已存数据。The stored data reading module 3303 is used to instruct the first subsystem 32 to read the stored data.
本实施例中,主系统和辅助系统的结构关系图可参考图19。In this embodiment, the structural relationship diagram of the main system and the auxiliary system can refer to FIG. 19.
结合图19,通过已存数据获取模块3301判定主系统处于非唤醒状态下时,通过第二子系统33中的存储器312获取已存数据,其中主系统的工作状态判断过程可通过开关模块判断;存储器312安装在第二子系统33中,用于存储数据。With reference to Figure 19, when the stored data acquisition module 3301 determines that the main system is in a non-awake state, the stored data is acquired through the memory 312 in the second subsystem 33, wherein the judgment process of the main system's working state can be judged by the switch module; The memory 312 is installed in the second subsystem 33 for storing data.
接着通过已存数据传输模块3302将所获取的已存数据传输给第一子系统32;Then transmit the acquired stored data to the first subsystem 32 through the stored data transmission module 3302;
最后通过已存数据读取模块3303指示第一子系统32读取已存数据,其中本实施例中的读取操作包括对数据的显示、播报;若已存数据为音频数据,则读取的操作为播报;若已存数据为文本信息,则此时的读取操作为显示。Finally, the stored data reading module 3303 instructs the first subsystem 32 to read the stored data. The reading operation in this embodiment includes the display and broadcast of the data; if the stored data is audio data, the read The operation is broadcast; if the stored data is text information, the read operation at this time is display.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
图23为本发明实施例一种数据存储装置的结构组成示意图。如图23所示,本发明实施例另一方面提供一种数据存储装置,应用于辅助系统,辅助系统包括相互通信连接的第一子系统32和第二子系统33,装置包括:FIG. 23 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention. As shown in FIG. 23, another aspect of the embodiment of the present invention provides a data storage device, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 32 and a second subsystem 33 that are communicatively connected to each other. The device includes:
外界数据获取模块3401,用于在判定主系统处于非唤醒状态下时,通过第一子系统32中的数据接收模块31获取外界数据,The external data acquisition module 3401 is used to acquire external data through the data receiving module 31 in the first subsystem 32 when it is determined that the main system is in a non-awake state,
或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;Or, when it is determined that the main system is in the wake-up state, the slave receives external data through the main system;
外界数据传输模块3402,用于将所获取的外界数据传输给第二子系统33;The external data transmission module 3402 is configured to transmit the acquired external data to the second subsystem 33;
外界数据存储模块3403,用于指示第二子系统33将传输得到的外界数据存储到存储器312中。The external data storage module 3403 is used to instruct the second subsystem 33 to store the external data obtained by transmission in the memory 312.
本实施例中,结合图19所示,首先通过外界数据获取模块3401在判定主系统处于非唤醒状态下时,通过第一子系统32中的数据接收模块31获取外界数据,或者,在判定主系统处于唤醒状态下时,从主系统接收外界数据。其中主系统的工作状态可通过开关模块来判定,数据接收模块31主要用于接收外界的数据,其具体可以为蓝牙模块、无线接发模块无线收发模块和有线接发模块有线收发模块的其中之一,在本实施例中,数据接收模块31优选为BLE(低功耗蓝牙)。In this embodiment, with reference to FIG. 19, first, when the external data acquisition module 3401 determines that the main system is in a non-awake state, the data receiving module 31 in the first subsystem 32 obtains external data, or, when the main system is determined When the system is awake, it receives external data from the main system. The working status of the main system can be determined by the switch module. The data receiving module 31 is mainly used to receive data from the outside world. Specifically, it can be one of the Bluetooth module, the wireless receiving and sending module, the wireless receiving and sending module, and the wired receiving and sending module. 1. In this embodiment, the data receiving module 31 is preferably BLE (Bluetooth Low Energy).
外界数据获取模块3401具体为:在判定主系统处于非唤醒状态下时,主系统与存储器312断开通信连接,开关模块令辅助系统开始工作,此时由第一子系统32中的数据接收模块31来接收外界数据;在判定主系统中处于唤醒状态下时,主系统与存储器312通信连接,通过主系统中的接收模块如经典蓝牙模块来接收外界数据。The external data acquisition module 3401 is specifically: when it is determined that the main system is in a non-awakened state, the main system disconnects the communication connection with the memory 312, and the switch module causes the auxiliary system to start working. At this time, the data receiving module in the first subsystem 32 31 to receive external data; when it is determined that the main system is in an awake state, the main system communicates with the memory 312, and receives external data through a receiving module in the main system, such as a classic Bluetooth module.
接着通过外界数据传输模块3402将所获取的外界数据传输给第二子系统33,具体为:若通过第一子系统32接收外界数据,则将接收到的外界数据依次通过第一硬件接口模块34、第一硬件抽象层36、第一服务模块35、第二硬件抽象层37之后传输给第二子系统33;若通过主系统接收外界数据,则利用主系统的输出接口将外界数据传输给第二子系统33。Then the acquired external data is transmitted to the second subsystem 33 through the external data transmission module 3402, specifically: if the external data is received through the first subsystem 32, the received external data is sequentially passed through the first hardware interface module 34 , The first hardware abstraction layer 36, the first service module 35, and the second hardware abstraction layer 37 are then transmitted to the second subsystem 33; if the external data is received through the main system, the external data is transmitted to the second subsystem through the output interface of the main system Two subsystem 33.
最后通过外界数据存储模块3403指示第二子系统33将传输得到的外界数据存储到存储器312中,具体过程为:将外界数据依次通过第三抽象层、第二服务模块之后存入到存储器312中。Finally, the external data storage module 3403 instructs the second subsystem 33 to store the transmitted external data in the memory 312. The specific process is: the external data is stored in the memory 312 after passing through the third abstraction layer and the second service module in turn. .
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据读取方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a data reading method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时通过第二子系统33中的存储器312获取已存数据;将所获取的已存数据传输给第一子系统32;指示第一子系统32读取已存数据。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain stored data through the memory 312 in the second subsystem 33 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 32; instruct the first subsystem 32 to read the stored data.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据存储方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a data storage method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时通过第二子系统33中的存储器312获取已存数据;将所获取的已存数据传输给第一子系统32;指示第一子系统32读取已存数据In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain stored data through the memory 312 in the second subsystem 33 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 32; instruct the first subsystem 32 to read the stored data
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时,通过第一子系统32中的数据接收模块31获取外界数据,或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;将所获取的外界数据传输给第二子系统33;指示第二子系统33将传输得到的外界数据存储到存储器312中。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain the data through the data receiving module 31 in the first subsystem 32 when it is determined that the main system is in a non-awake state. External data, or, when it is determined that the main system is in an awake state, receive external data from the main system; transmit the obtained external data to the second subsystem 33; instruct the second subsystem 33 to store the transmitted external data To the memory 312.
图24为本发明实施例一种数据通知方法的实现流程示意图。如图24所示,本发明实施例另一方面提供一种数据通知方法,应用于辅助系统,方法包括:FIG. 24 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention. As shown in FIG. 24, another aspect of the embodiment of the present invention provides a data notification method, which is applied to an auxiliary system, and the method includes:
步骤3501,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;Step 3501: When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
步骤3502,判断所接收到的外界数据是否为辅助系统所支持的通知类型;Step 3502: Determine whether the received external data is a notification type supported by the auxiliary system;
步骤3503,若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统进行对外通知;Step 3503: If it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system;
步骤3504,若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。Step 3504: If it is determined that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides an external prompt for the external data.
本实施例中,首先在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, first, when determining that the main system is in a non-wake-up state, the auxiliary system receives external data. The non-wake-up state includes sleep, hibernation, and shutdown states. The external data includes phone notifications, SMS notifications, and application notifications.
接着判断所接收到的外界数据是否为辅助系统所支持的通知类型,其中所支持的通知类型通常为系统中事先设定,比如市面上的手机操作系统中会预设短信通知功能、定位通知功能和一些合作的第三方应用等,其对应的短信通知类型、定位通知类型和一些应用通知的数据则为辅助系统所支持的数据,除此之外的外界数据则为辅助系统所不支持的数据,但是该数据为可能是主系统所支持的。因此该步骤的具体过程可以为:获取并判断外界数据的通知类型,将所获取的通知类型与系统中预设的通知类型进行比较即可判断该外界数据是否为系统所支持。Then determine whether the received external data is a notification type supported by the auxiliary system. The supported notification type is usually set in advance in the system. For example, the SMS notification function and location notification function are preset in the mobile phone operating system on the market. With some cooperative third-party applications, the corresponding SMS notification type, location notification type, and some application notification data are data supported by the auxiliary system, and other external data are data that the auxiliary system does not support. , But the data may be supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
接着若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统内进行对外通知,其中对外通知在本实施例中具体为在屏幕上显示数据内容,或者通过发声器将数据内容对外播报,或者将数据内容通过网络向其他设备进行传输。Then, if it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system. In this embodiment, the external notification is specifically to display the data content on the screen. , Or broadcast the data content to the outside through the sounder, or transmit the data content to other devices through the network.
若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示,其中对外提示在本实施例中具体为在屏幕上显示消息通知提示、在发声器上播报消息通知提示或者灯光提示,以表示有通知消息的接收到达,但不显示其中的数据内容。针对于辅助系统所不支持的通知类型,用户可以根据通知提示主动唤醒主系统对其进行查看或处理。If it is determined that the received external data is a notification type that is not supported by the auxiliary system, the auxiliary system will provide an external prompt for the external data. In this embodiment, the external prompt is specifically a message notification prompt displayed on the screen, The message notification prompt or light prompt is broadcasted to indicate the arrival of the notification message, but the data content in it is not displayed. For notification types that are not supported by the auxiliary system, the user can actively wake up the main system according to the notification prompt to view or process it.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。Therefore, when the main system is in a non-wake-up state, once the external data is received, the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
在一可实施方式中,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据的过程中,方法还包括:In an implementation manner, in the process of receiving external data through the auxiliary system when it is determined that the main system is in the non-awake state, the method further includes:
切断主系统与外界的通信连接,以使辅助系统接收所有的外界数据。Cut off the communication connection between the main system and the outside world so that the auxiliary system can receive all external data.
本实施例中,在执行步骤3501的过程中,切断主系统与外界的通信连接,以免主系统中的数据接收模块31来接收外界数据从而导致唤醒主系统,进而使辅助系统接收所有的外界数据。In this embodiment, in the process of performing step 3501, the communication connection between the main system and the outside world is cut off, so as to prevent the data receiving module 31 in the main system from receiving external data, causing the main system to be awakened, so that the auxiliary system can receive all external data. .
进一步地,结合图19所示,该步骤具体为:通过与主系统和辅助系统均通信连接的开关模块来切断主系统与外界的通信连接,并驱使辅助系统中的数据接收模块31来接收所有的外界消息。Further, as shown in FIG. 19, this step is specifically as follows: cut off the communication connection between the main system and the outside world through the switch module communicatively connected with the main system and the auxiliary system, and drive the data receiving module 31 in the auxiliary system to receive all Outside news.
在一可实施方式中,辅助系统包括第一子系统32和第二子系统33;In a possible embodiment, the auxiliary system includes a first subsystem 32 and a second subsystem 33;
通过辅助系统接收外界数据,包括:Receive external data through auxiliary systems, including:
通过第一子系统32的数据接收模块31接收外界数据;Receive external data through the data receiving module 31 of the first subsystem 32;
相应的,将外界数据的数据内容在辅助系统内进行对外通知,包括:Correspondingly, the data content of external data is notified to the outside in the auxiliary system, including:
在第二子系统33的屏幕上显示外界数据的数据内容;Display the data content of the external data on the screen of the second subsystem 33;
相应的,在辅助系统内针对外界数据进行对外提示,包括:Correspondingly, external prompts for external data in the auxiliary system include:
在第二子系统33的屏幕上针对外界数据进行对外提示。On the screen of the second subsystem 33, external prompts are given for external data.
本实施例中,结合图19所示,辅助系统包括第一子系统32和第二子系统33。In this embodiment, as shown in FIG. 19, the auxiliary system includes a first subsystem 32 and a second subsystem 33.
结合图19,由此,步骤3501的具体过程为:通过第一子系统32的数据接收模块31接收外界数据。具体为:进一步地,将所接收到的外界数据通过第一硬件接口模块34和第一硬件抽象层36传送到第一服务模块35。第一服务模块35提取外界数据的数据内容,并将数据内容传输到第二子系统33。第二子系统33通过第三硬件抽象层310将数据内容传输到第二服务模块中,利用第二服务模块对数据内容进行通知类型的判断并对其进行加壳处理。With reference to FIG. 19, therefore, the specific process of step 3501 is: receiving external data through the data receiving module 31 of the first sub-system 32. Specifically: further, the received external data is transmitted to the first service module 35 through the first hardware interface module 34 and the first hardware abstraction layer 36. The first service module 35 extracts the data content of external data and transmits the data content to the second subsystem 33. The second sub-system 33 transmits the data content to the second service module through the third hardware abstraction layer 310, and uses the second service module to determine the notification type of the data content and to pack it.
相应的,步骤3503的具体过程为:若该通知类型为支持的类型,则将数据内容通过第四硬件抽象层311和第二硬件接口模块38在屏幕上进行显示。Correspondingly, the specific process of step 3503 is: if the notification type is a supported type, the data content is displayed on the screen through the fourth hardware abstraction layer 311 and the second hardware interface module 38.
步骤3504的具体过程为:若通知类型为不支持的类型,则令屏幕显示消息提示信息。The specific process of step 3504 is: if the notification type is an unsupported type, the screen displays the message prompt information.
在一可实施方式中,将外界数据的数据内容在辅助系统内进行对外通知,包括:In an implementation manner, the external notification of the data content of the external data in the auxiliary system includes:
从数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。The key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
本实施例中,为了将该方法可以应用于小屏幕或者分辨率较低的设备上,需要对数据内容中的重点显示内容进行抽取,其抽取方式可以是通过经过训练的神经网络模型来实现,该神经网络模型的训练大致步骤为:In this embodiment, in order to apply the method to small screens or devices with low resolution, it is necessary to extract the key display content in the data content. The extraction method can be achieved through a trained neural network model. The general steps of training the neural network model are:
将相关训练语料和对应的结果作为神经网络模型的输入,得到输出结果,若输出结果跟对应的真实结果的偏差较大,则继续用语料进行训练,直到输出结果与对应的真实结果之间的偏差在预设范围内时训练完成。The relevant training corpus and the corresponding result are used as the input of the neural network model to obtain the output result. If the output result deviates greatly from the corresponding real result, continue training with the corpus until the output result is between the corresponding real result The training is completed when the deviation is within the preset range.
然后将所抽到的重点显示内容在辅助系统的屏幕上进行显示,结合图19,具体在第二子系统33中的OLED屏幕上进行显示。Then the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 19, it is specifically displayed on the OLED screen in the second subsystem 33.
在一可实施方式中,在辅助系统内针对外界数据进行对外提示,包括:In an implementation manner, the external prompt for external data in the auxiliary system includes:
在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。Display unread message prompts and icon information corresponding to the data content on the screen in the auxiliary system.
本实施例中,步骤3504具体为:在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。其中,图标信息可以包括在数据内容内,也可以在辅助系统内事先存储一些不支持通知类型所对应的图标信息,在显示未读消息提示的同时从数据内容中提取对应的图表信息或者根据通知类型从系统中选取对应的图标信息,并将该图标信息在屏幕上进行显示。In this embodiment, step 3504 is specifically: displaying an unread message prompt and icon information corresponding to the data content on the screen in the auxiliary system. Among them, the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
图25为本发明实施例一种数据通知装置的结构组成示意图。如图25所示,本发明实施例另一 方面提供一种数据通知装置,应用于辅助系统,装置包括:FIG. 25 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention. As shown in FIG. 25, another aspect of an embodiment of the present invention provides a data notification device, which is applied to an auxiliary system, and the device includes:
外界数据接收模块3601,用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;The external data receiving module 3601 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
通知类型判断模块3602,用于判断所接收到的外界数据是否为辅助系统所支持的通知类型;The notification type judgment module 3602 is used to judge whether the received external data is a notification type supported by the auxiliary system;
对外通知模块3603,用于若经通知类型判断模块3602判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据的数据内容通过辅助系统进行对外通知;The external notification module 3603 is configured to, if the notification type determination module 3602 determines that the received external data is a notification type supported by the auxiliary system, then externally notify the data content of the external data through the auxiliary system;
对外提示模块3604,用于若经通知类型判断模块3602判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。The external prompting module 3604 is configured to, if the notification type judging module 3602 determines that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides external prompts for the external data.
本实施例中,首先通过外界数据接收模块3601在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, the external data receiving module 3601 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state. The non-awake state includes sleep state, hibernation state, and shutdown state, and the external data includes phone notifications and short messages. Notifications and application notifications, etc.
接着通过通知类型判断模块3602判断所接收到的外界数据是否为辅助系统所支持的通知类型,其中所支持的通知类型通常为系统中事先设定,比如市面上的手机操作系统中会预设短信通知功能、定位通知功能和一些合作的第三方应用等,其对应的短信通知类型、定位通知类型和一些应用通知的数据则为辅助系统所支持的数据,除此之外的外界数据则为辅助系统所不支持的数据,但是该数据为主系统所支持的。因此该步骤的具体过程可以为:获取并判断外界数据的通知类型,将所获取的通知类型与系统中预设的通知类型进行比较即可判断该外界数据是否为系统所支持。Then the notification type judgment module 3602 judges whether the received external data is a notification type supported by the auxiliary system. The supported notification type is usually set in advance in the system. For example, a short message is preset in the mobile phone operating system on the market. Notification function, location notification function and some cooperative third-party applications, etc. The corresponding SMS notification type, location notification type and some application notification data are data supported by the auxiliary system, and other external data is auxiliary Data not supported by the system, but the data is supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
接着若经通知类型判断模块3602判定所接收到的外界数据为辅助系统所支持的通知类型,则通过对外通知模块3603将外界数据中的数据内容通过辅助系统内进行对外通知,其中对外通知在本实施例中具体为在屏幕上显示数据内容,或者通过发声器将数据内容对外播报,或者将数据内容通过网络向其他设备进行传输。Then, if the notification type judgment module 3602 determines that the received external data is a notification type supported by the auxiliary system, the external notification module 3603 will notify the data content in the external data through the auxiliary system. The external notification is in this In the embodiment, the data content is specifically displayed on the screen, or the data content is broadcast to the outside through a sounder, or the data content is transmitted to other devices through the network.
若经通知类型判断模块3602判定所接收到的外界数据为辅助系统所不支持的通知类型,则对外提示模块3604通过辅助系统针对外界数据进行对外提示,其中对外提示在本实施例中具体为在屏幕上显示消息通知提示、在发声器上播报消息通知提示或者灯光提示,以表示有通知消息的接收,但不显示其中的数据内容。针对于辅助系统所不支持的通知类型,用户可以主动唤醒主系统对其进行查看或处理。If the notification type judging module 3602 determines that the received external data is a notification type that is not supported by the auxiliary system, the external prompt module 3604 uses the auxiliary system to provide external prompts for the external data. In this embodiment, the external prompt is specifically The screen displays the message notification prompt, broadcasts the message notification prompt or light prompt on the sounder to indicate the receipt of the notification message, but does not display the data content. For notification types that are not supported by the auxiliary system, the user can actively wake up the main system to view or process them.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。Therefore, when the main system is in a non-wake-up state, once the external data is received, the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
在一可实施方式中,外界数据接收模块3601在通过辅助系统接收外界数据的过程中,还具体用于:In an implementation manner, the external data receiving module 3601 is also specifically configured to: in the process of receiving external data through the auxiliary system:
切断主系统与外界的通信连接,以使辅助系统接收所有的外界数据。Cut off the communication connection between the main system and the outside world so that the auxiliary system can receive all external data.
本实施例中,外界数据接收模块3601在执行过程中,还具体用于,切断主系统与外界的通信连接,以免主系统中的数据接收模块31来接收外界数据从而导致唤醒主系统,进而使辅助系统接收所有的外界数据。In this embodiment, the external data receiving module 3601 is also specifically used to cut off the communication connection between the main system and the outside world during the execution process, so as to prevent the data receiving module 31 in the main system from receiving external data, causing the main system to be awakened. The auxiliary system receives all external data.
在一可实施方式中,对外通知模块3603具体用于:In an implementation manner, the external notification module 3603 is specifically used to:
从数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。The key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
本实施例中,为了将该方法可以应用于小屏幕或者分辨率较低的设备上,对外通知模块3603具体用于对数据内容中的重点显示内容进行抽取,其抽取方式可以是通过经过训练的神经网络模型来实现,该神经网络模型的训练大致步骤为:In this embodiment, in order to apply the method to small screens or devices with low resolution, the external notification module 3603 is specifically used to extract key display content in the data content, and the extraction method may be through trained The neural network model is implemented. The general steps for training the neural network model are:
然后将所抽到的重点显示内容在辅助系统的屏幕上进行显示,结合图19,具体在第二子系统33中的OLED屏幕上进行显示。Then the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 19, it is specifically displayed on the OLED screen in the second subsystem 33.
在一可实施方式中,对外提示模块3604具体用于:In an implementation manner, the external prompting module 3604 is specifically used for:
在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。Display unread message prompts and icon information corresponding to the data content on the screen in the auxiliary system.
本实施例中,对外提示模块3604具体用于:在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。其中,图标信息可以包括在数据内容内,也可以在辅助系统内事先存储一些不支持通知类型所对应的图标信息,在显示未读消息提示的同时从数据内容中提取对应的图表信息或者根据通知类型从系统中选取对应的图标信息,并将该图标信息在屏幕上进行显示。In this embodiment, the external prompting module 3604 is specifically configured to display unread message prompts and icon information corresponding to data content on the screen in the auxiliary system. Among them, the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据通知方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute the data notification method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;判断所接收到的外界数据是否为辅助系统所支持的通知类型;若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统进行对外通知;若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data Whether it is the notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, the data content in the external data will be notified to the outside through the auxiliary system; if the received external data is determined For notification types that are not supported by the auxiliary system, the auxiliary system will provide external notifications for external data.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。Therefore, when the main system is in a non-wake-up state, once the external data is received, the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
图26为本发明实施例一种通信切换方法的实现流程示意图。如图26所示,本发明实施例另一 方面提供一种通信切换方法,方法包括:FIG. 26 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention. As shown in FIG. 26, another aspect of an embodiment of the present invention provides a communication handover method, and the method includes:
步骤3701,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;Step 3701: When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
步骤3702,判断所接收到的外界数据的通知类型;Step 3702: Determine the notification type of the received external data;
步骤3703,若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。Step 3703: If it is determined that the notification type of the received external data is a specific notification type, wake up the main system and instruct the main system to process the external data.
本实施例中,首先在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, first, when determining that the main system is in a non-wake-up state, the auxiliary system receives external data. The non-wake-up state includes sleep, hibernation, and shutdown states. The external data includes phone notifications, SMS notifications, and application notifications.
接着判断所接收到的外界数据的通知类型,其中通知类型通常为系统中事先设定,比如说短信通知类型、电话通知类型、第三方应用通知类型等。Then determine the notification type of the received external data, where the notification type is usually set in advance in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
接着若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。其中特定通知类型在本实施例中定义为仅能被主系统处理的通知类型或者辅助系统处理困难的特定通知类型,可事先在系统中设定,比如可以将电话通知类型、短信通知类型等即时通信类的类型作为特定通知类型,当然也可通过用户自行添加一些第三方应用作为特定通知类型。其中指示主系统处理外界数据具体为:若特定通知类型为电话通知类型,则指示主系统对其进行接听、挂断等操作;若特定通知类型为短信通知类型,则指示主系统对其进行阅读、删除和回复等操作。Then, if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data. The specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc. The communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type. Instruct the main system to process external data specifically as follows: if the specific notification type is a phone notification type, instruct the main system to answer, hang up, etc.; if the specific notification type is a short message notification type, instruct the main system to read it , Delete and reply.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
进一步地,结合图19所示,在通过开关模块判定主系统处于非唤醒状态时,通过辅助系统中的数据接收模块31接收外界数据,再将外界数据传输到第一服务模块35内,并经第一服务模块35判断该外界数据是否为特定通知类型,若判定外界数据为特定通知类型,则通过开关模块唤醒主系统,并指示主系统处理该特定通知类型。Further, as shown in FIG. 19, when the main system is determined to be in a non-awake state by the switch module, the data receiving module 31 in the auxiliary system receives external data, and then transmits the external data to the first service module 35, and then The first service module 35 determines whether the external data is of a specific notification type, and if it determines that the external data is of a specific notification type, it wakes up the main system through the switch module and instructs the main system to process the specific notification type.
在一可实施方式中,方法还包括:In a possible implementation, the method further includes:
若判定所接收到的外界数据的通知类型为普通通知类型时,则指示辅助系统处理外界数据。If it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data.
本实施例中,若判定所接收到的外界数据的通知类型为普通通知类型时,则指示辅助系统处理外界数据,其中普通通知类型在本实施例中定义为除了特定通知类型以外的通知类型,比如说日历通知、闹钟通知等。In this embodiment, if it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data. The normal notification type is defined as a notification type other than the specific notification type in this embodiment. For example, calendar notifications, alarm clock notifications, etc.
进一步地,结合图19,普通通知类型在第二子系统33中的第二服务模块中处理。Further, with reference to FIG. 19, the common notification type is processed in the second service module in the second subsystem 33.
在一可实施方式中,指示辅助系统处理外界数据,包括:In an implementation manner, instructing the auxiliary system to process external data includes:
指示辅助系统将外界数据对外告知。Instruct the auxiliary system to notify external data.
本实施例中,结合图19所示,步骤“指示辅助系统处理外界数据”具体过程为:指示第一子系统32中的数据接收模块31接收外界数据,第一子系统32将外界数据传输给第二子系统33,第二子系统33根据外界数据的数据内容对外告知,其中对外告知方式可以是亮屏显示告知,可用于闹钟提醒;还可以是语音播报的方式进行告知,可用于备忘录提醒;也可以是对外信息传输的方式告知,可用于一些中间数据的传输。In this embodiment, with reference to Figure 19, the specific process of the step "instruct the auxiliary system to process external data" is: instruct the data receiving module 31 in the first subsystem 32 to receive external data, and the first subsystem 32 transmits the external data to The second sub-system 33, the second sub-system 33 informs the outside according to the data content of the external data. The method of the external notification can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders. ; It can also be a notification of external information transmission, which can be used for the transmission of some intermediate data.
在一可实施方式中,在唤醒主系统,并指示主系统处理外界数据的过程中,方法还包括:In an implementation manner, in the process of waking up the main system and instructing the main system to process external data, the method further includes:
断开辅助系统与外界的通信连接;Disconnect the communication connection between the auxiliary system and the outside world;
当主系统处理完成之后,或者当主系统进入非唤醒状态时,辅助系统与外界重新建立通信连接。After the processing of the main system is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
本实施例中,在唤醒主系统,并指示主系统处理外界数据的过程中,断开辅助系统与外界的通信连接,结合图19,具体为断开数据接收模块31与外界的通信连接,当主系统处理完成之后,或者当主系统进入非唤醒状态时,开关模块判定主系统处于非唤醒状态时,驱使数据接收模块31即辅助系统再次与外界建立通信连接。In this embodiment, in the process of waking up the main system and instructing the main system to process external data, the communication connection between the auxiliary system and the outside world is disconnected. With reference to Figure 19, the communication connection between the data receiving module 31 and the outside world is specifically disconnected. After the system processing is completed, or when the main system enters the non-awakened state, when the switch module determines that the main system is in the non-awakened state, it drives the data receiving module 31, that is, the auxiliary system to establish a communication connection with the outside again.
在一可实施方式中,唤醒主系统,并指示主系统处理外界数据,包括:In an implementation manner, waking up the main system and instructing the main system to process external data includes:
利用开关模块唤醒主系统中的经典蓝牙模块,并指示经典蓝牙模块处理外界数据。Use the switch module to wake up the classic Bluetooth module in the main system and instruct the classic Bluetooth module to process external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
经典蓝牙模块预先设置在主系统内,主要用于与外界进行通话连接。若外界数据被判定特定通知类型,并且该特定通知类型为通话类型时,利用经典蓝牙模块对其进行接听、挂断或者挂起等处理。The classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
图27为本发明实施例一种通信切换装置的结构组成示意图。如图27所示,本发明实施例另一方面提供一种通信切换装置,装置包括:FIG. 27 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention. As shown in FIG. 27, another aspect of the embodiment of the present invention provides a communication switching device, and the device includes:
外界数据接收模块3801,用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;The external data receiving module 3801 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
通知类型判断模块3802,用于判断所接收到的外界数据的通知类型;The notification type judging module 3802 is used to judge the notification type of the received external data;
第一数据处理模块3803,用于经通知类型判断模块3802判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。The first data processing module 3803 is used for waking up the main system and instructing the main system to process the external data when the notification type judging module 3802 determines that the notification type of the received external data is a specific notification type.
本实施例中,首先通过外界数据接收模块3801在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, the external data receiving module 3801 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state. The non-awakened state includes sleep state, hibernation state, and shutdown state, and the external data includes phone notifications and short messages. Notifications and application notifications, etc.
接着通过通知类型判断模块3802判断所接收到的外界数据的通知类型,其中通知类型通常为系 统中事先设定,比如说短信通知类型、电话通知类型、第三方应用通知类型等。Then the notification type judgment module 3802 judges the notification type of the received external data, where the notification type is usually preset in the system, such as SMS notification type, phone notification type, and third-party application notification type.
接着经通知类型判断模块3802判定所接收到的外界数据的通知类型为特定通知类型时,则通过第一数据处理模块3803唤醒主系统,并指示主系统处理外界数据。其中特定通知类型在本实施例中定义为仅能被主系统处理的通知类型或者辅助系统处理困难的特定通知类型,可事先在系统中设定,比如可以将电话通知类型、短信通知类型等即时通信类的类型作为特定通知类型,当然也可通过用户自行添加一些第三方应用作为特定通知类型。其中指示主系统处理外界数据具体为:若特定通知类型为电话通知类型,则指示主系统对其进行接听、挂断等操作;若特定通知类型为短信通知类型,则指示主系统对其进行阅读、删除和回复等操作。Then, when the notification type determining module 3802 determines that the notification type of the received external data is a specific notification type, the first data processing module 3803 wakes up the main system and instructs the main system to process the external data. The specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc. The communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type. Instruct the main system to process external data specifically as follows: if the specific notification type is a phone notification type, instruct the main system to answer, hang up, etc.; if the specific notification type is a short message notification type, instruct the main system to read it , Delete and reply.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
在一可实施方式中,装置还包括:In a possible implementation, the device further includes:
第二数据处理模块3804,用于若判定所接收到的外界数据的通知类型为普通通知类型时,指示辅助系统处理外界数据。The second data processing module 3804 is used for instructing the auxiliary system to process the external data if it is determined that the notification type of the received external data is a normal notification type.
本实施例中,若经通知类型判断模块3802判定所接收到的外界数据的通知类型为普通通知类型时,则通过第二数据处理模块3804指示辅助系统处理外界数据,其中普通通知类型在本实施例中定义为除了特定通知类型以外的通知类型,比如说日历通知、闹钟通知等。In this embodiment, if the notification type judging module 3802 determines that the notification type of the received external data is a common notification type, the second data processing module 3804 instructs the auxiliary system to process the external data. The common notification type is described in this implementation. In the example, it is defined as a notification type other than a specific notification type, such as calendar notification, alarm notification, and so on.
在一可实施方式中,第二数据处理模块3804,具体用于:In an implementation manner, the second data processing module 3804 is specifically configured to:
指示辅助系统将外界数据对外告知。Instruct the auxiliary system to notify external data.
本实施例中,结合图19所示,第二数据处理模块3804,具体用于:指示第一子系统32中的数据接收模块31接收外界数据,第一子系统32将外界数据传输给第二子系统33,第二子系统33根据外界数据的数据内容对外告知,其中对外告知方式可以是亮屏显示告知,可用于闹钟提醒;还可以是语音播报的方式进行告知,可用于备忘录提醒;也可以是对外信息传输的方式告知,可用于一些中间数据的传输。In this embodiment, as shown in FIG. 19, the second data processing module 3804 is specifically used to: instruct the data receiving module 31 in the first subsystem 32 to receive external data, and the first subsystem 32 to transmit the external data to the second Subsystem 33, the second subsystem 33 informs externally according to the data content of external data, where the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
在一可实施方式中,第一数据处理模块3803,具体用于:In an implementation manner, the first data processing module 3803 is specifically configured to:
利用开关模块唤醒主系统中的经典蓝牙模块,并指示经典蓝牙模块处理外界数据。Use the switch module to wake up the classic Bluetooth module in the main system and instruct the classic Bluetooth module to process external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
经典蓝牙模块预先设置在主系统内,主要用于与外界进行通话连接。若外界数据被判定特定通知类型,并且该特定通知类型为通话类型时,利用经典蓝牙模块对其进行接听、挂断或者挂起等处理。The classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行通信切换方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a communication switching method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;判断所接收到的外界数据的通知类型;若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data The notification type; if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
实施例四Example four
图28为发明实施例一种数据处理装置的结构组成示意图。如图28所示,本发明一方面提供一种数据处理装置,装置包括辅助系统和开关模块:FIG. 28 is a schematic diagram of the structural composition of a data processing device according to an embodiment of the invention. As shown in Figure 28, one aspect of the present invention provides a data processing device, which includes an auxiliary system and a switch module:
开关模块用于当主系统处于非唤醒状态时发出第一控制指令和第二控制指令,其中第一控制指令用于驱使主系统断开与外界的通信连接,第二控制指令用于驱使辅助系统与外界进行通信连接;The switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-wake-up state, wherein the first control instruction is used to drive the main system to disconnect the communication connection with the outside world, and the second control instruction is used to drive the auxiliary system to communicate with the outside world. Communication connection with the outside world;
辅助系统接收并响应于第二控制指令,以驱使辅助系统中的数据接收模块41接收外界数据;The auxiliary system receives and responds to the second control instruction to drive the data receiving module 41 in the auxiliary system to receive external data;
辅助系统还用于将所接收到的外界数据对外告知。The auxiliary system is also used to notify the received external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
当开关模块捕获到主系统处于非唤醒状态时,对主系统发送第一控制指令,该第一控制指令用于使主系统断开与外界的通信连接。同时,开关模块对辅助系统发送第二控制指令,该第二控制指令用于辅助系统与外界建立通信连接,其中本实施例所提及的“外界”为除自身以外的范围,并非除整个设备以外的范围。When the switch module captures that the main system is in a non-awakened state, it sends a first control instruction to the main system, and the first control instruction is used to disconnect the main system from the communication connection with the outside world. At the same time, the switch module sends a second control instruction to the auxiliary system. The second control instruction is used to establish a communication connection between the auxiliary system and the outside world. Outside the scope.
辅助系统接收并响应由开关模块所发送的第二控制指令,以驱使安装在辅助系统中的数据接收模块41与外界通信连接,以接收外界数据。其中外界数据包括电话通知、短信通知和应用通知,辅助系统最后将所接收到的外界数据对外告知。The auxiliary system receives and responds to the second control instruction sent by the switch module to drive the data receiving module 41 installed in the auxiliary system to communicate with the outside world to receive external data. The external data includes phone notifications, short message notifications and application notifications, and the auxiliary system finally informs the received external data.
由此,当外界有数据传递到装置时,通过辅助系统对数据进行处理,从而降低了主系统的唤醒频率,减少了系统的功耗,以达到提高续航的目的。As a result, when data from the outside world is transmitted to the device, the data is processed by the auxiliary system, thereby reducing the wake-up frequency of the main system, reducing the power consumption of the system, and achieving the purpose of improving battery life.
进一步地,数据接收模块41优选为BLE(Bluetooth Low Energy,低功耗蓝牙)。Further, the data receiving module 41 is preferably BLE (Bluetooth Low Energy, Bluetooth Low Energy).
进一步地,现有的多系统设备中的每个系统都会设置BLE模块,以达到在任一系统在工作时均 能与外界保持通信,通过此装置,可以优化掉主系统中的BLE模块,减少了设备中硬件资源的占用率。Furthermore, each system in the existing multi-system equipment will be equipped with a BLE module to achieve communication with the outside world when any system is working. Through this device, the BLE module in the main system can be optimized and reduced The occupancy rate of hardware resources in the device.
在一可实施方式中,开关模块还具体用于当辅助系统处于工作状态并且主系统从非唤醒状态转为唤醒状态时驱使辅助系统继续接收并对外告知外界数据。In a possible implementation, the switch module is also specifically used to drive the auxiliary system to continue receiving and to notify external data when the auxiliary system is in a working state and the main system changes from the non-wake-up state to the wake-up state.
本实施例中,当辅助系统处于工作状态下,并且当主系统由非唤醒状态转为唤醒状态时,开关模块将不阻断辅助系统与外界的通信连接,依旧通过辅助系统来接收外界数据,进而进一步降低主系统的功耗。In this embodiment, when the auxiliary system is in the working state and the main system changes from the non-wake-up state to the wake-up state, the switch module will not block the communication connection between the auxiliary system and the outside world, and still receive external data through the auxiliary system. Further reduce the power consumption of the main system.
在一可实施方式中,辅助系统具体用于将所接收到的外界数据通过语音播报的方式,或者通过在屏幕界面上显示的方式,或者通过网络进行信息传输的方式对外告知。In an implementation manner, the auxiliary system is specifically used to notify the received external data through voice broadcast, or through display on a screen interface, or through information transmission through the network.
本实施例中,辅助系统中可以包含发声器、屏幕、无线收发模块等硬件设备。当数据接收模块41接收到外界数据之后,辅助系统可以根据外界数据的类型针对性地对外告知,其中外界数据的类型包括图像、音频、视频和文字等,若外界数据为图像、视频和文字数据时,则通过在屏幕上进行显示的方式对外告知;若外界数据为音频数据时,则通过发声器播报的方式对外告知;所接收到的外界数据还可以通过网络渠道再次向外界的设备进行传输的方式对外告知。其中,对外告知的对象可以是人、动物、设备模块等。In this embodiment, the auxiliary system may include hardware devices such as a sounder, a screen, and a wireless transceiver module. After the data receiving module 41 receives the external data, the auxiliary system can inform the external data according to the type of the external data. The types of the external data include image, audio, video and text. If the external data is image, video and text data If the external data is audio data, it will be notified through the sounder broadcast method; the received external data can also be transmitted to the external device through the network channel again The way to inform the public. Among them, the object of external notification may be people, animals, equipment modules, and so on.
在一可实施方式中,辅助系统包括第一子系统42和第二子系统43;In a possible embodiment, the auxiliary system includes a first subsystem 42 and a second subsystem 43;
数据接收模块41安装在第一子系统42中;The data receiving module 41 is installed in the first subsystem 42;
第一子系统42具体用于将所接收到的外界数据中进行数据预处理,得到可被第一子系统42和第二子系统43共同应用的中间数据,并将所得到的中间数据传输给第二子系统43;The first subsystem 42 is specifically used to preprocess the received external data to obtain intermediate data that can be jointly applied by the first subsystem 42 and the second subsystem 43, and transmit the obtained intermediate data to Second subsystem 43;
第二子系统43具体用于将所传输到的中间数据对外告知。The second subsystem 43 is specifically used to notify the transmitted intermediate data to the outside.
本实施例中,具体参考图28所示,第一子系统42在本实施例中优选为Apollo3+型号的单片机,第二子系统43在本实施例中优选为ST型号的单片机,第一子系统42和第二子系统43相互通信连接。In this embodiment, referring specifically to FIG. 28, the first subsystem 42 is preferably an Apollo3+ type single-chip microcomputer in this embodiment, and the second subsystem 43 is preferably an ST type single-chip microcomputer in this embodiment. 42 and the second subsystem 43 are communicatively connected to each other.
数据接收模块41安装在第一子系统42中,由于不同子系统只会处理其所识别或者所支持的数据,因此通过第一子系统42将由数据接收模块41(即图中的BLE)所接收到的外界数据进行数据预处理,得到可被第一子系统42和第二子系统43共同应用的中间数据,并将中间数据传输给第二子系统43,第二子系统43将所传输得到的中间数据对外告知。The data receiving module 41 is installed in the first sub-system 42, because different sub-systems can only process the data that it recognizes or supports, so through the first sub-system 42 it will be received by the data receiving module 41 (that is, BLE in the figure) Perform data preprocessing on the received external data to obtain intermediate data that can be jointly used by the first subsystem 42 and the second subsystem 43, and transmit the intermediate data to the second subsystem 43, and the second subsystem 43 transmits the obtained intermediate data. Of the intermediate data.
在一可实施方式中,第一子系统42还具体包括第一硬件接口模块44和第一服务模块45;In an implementation manner, the first subsystem 42 further specifically includes a first hardware interface module 44 and a first service module 45;
数据接收模块41安装于第一硬件接口模块44中;The data receiving module 41 is installed in the first hardware interface module 44;
第一硬件接口模块44用于将由数据接收模块41所接收到的外界数据传输到第一服务模块45中;The first hardware interface module 44 is configured to transmit the external data received by the data receiving module 41 to the first service module 45;
第一服务模块45将外界数据进行数据预处理,得到中间数据,并将中间数据传输给第二子系统43。The first service module 45 performs data preprocessing on external data to obtain intermediate data, and transmits the intermediate data to the second subsystem 43.
本实施例中,第一硬件接口模块44中包括I2C-M(Inter-Integrated Circuit Master,集成电路总线)、QSPI/SPI(QSPI:Queued Serial Peripheral Interface,串行外设接口;/SPI:Serial Peripheral Interface,串行外设接口)、DMA(Direct Memory Access,直接存储器访问)、I2S/PCM(I2S:Inter—IC Sound,集成电路内置音频总线;PCM:Pulse-code modulation脉冲编码调制)等硬件或接口,因此可在第一硬件接口模块44上安装比如LCD(Liquid Crystal Display,液晶显示器)、FG(Fual Guage,硬件电量计)、Sen(Sensors,传感器)、BlE(Bluetooth Low Energy,低功耗蓝牙)、AI(Audio In,音频输入)和Mic(Microphone,麦克风)等硬件设备。数据接收模块41(即图中的BLE)可根据自身的接口类型接入到第一硬件接口模块44中。In this embodiment, the first hardware interface module 44 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), QSPI/SPI (QSPI: Queued Serial Peripheral Interface, serial peripheral interface; /SPI: Serial Peripheral) Interface, serial peripheral interface), DMA (Direct Memory Access, direct memory access), I2S/PCM (I2S: Inter-IC Sound, integrated circuit built-in audio bus; PCM: Pulse-code modulation) and other hardware or Interface, so the first hardware interface module 44 can be installed on the first hardware interface module 44 such as LCD (Liquid Crystal Display), FG (Fual Guard, hardware fuel gauge), Sen (Sensors), BlE (Bluetooth Low Energy, low power consumption) Bluetooth), AI (Audio In, audio input) and Mic (Microphone, microphone) and other hardware devices. The data receiving module 41 (ie, BLE in the figure) can be connected to the first hardware interface module 44 according to its own interface type.
第一硬件接口模块44用于将数据接收模块41所接收到的外界数据传输给第一服务模块45。第一服务模块45是第一子系统42的处理内核,用于处理第一子系统42中的数据,由于第一子系统42优选为Apollo3+型号的单片机,对应的,第一服务模块45优选为Apollo3+Service模块。通过第一服务模块45对外界数据进行数据预处理,得到中间数据,并通过第一服务模块45将中间数据传输给第二子系统43。The first hardware interface module 44 is configured to transmit the external data received by the data receiving module 41 to the first service module 45. The first service module 45 is the processing core of the first subsystem 42 and is used to process data in the first subsystem 42. Since the first subsystem 42 is preferably an Apollo3+ single-chip microcomputer, correspondingly, the first service module 45 is preferably Apollo3+Service module. The external data is preprocessed by the first service module 45 to obtain intermediate data, and the intermediate data is transmitted to the second subsystem 43 through the first service module 45.
在一可实施方式中,第一硬件接口模块44具体通过第一硬件抽象层46将外界数据传输到第一服务模块45中;In an implementation manner, the first hardware interface module 44 specifically transmits external data to the first service module 45 through the first hardware abstraction layer 46;
第一服务模块45具体通过第二硬件抽象层47将中间数据传输给第二子系统43。The first service module 45 specifically transmits the intermediate data to the second subsystem 43 through the second hardware abstraction layer 47.
本实施例中,第一硬件抽象层46和第二硬件抽象层47(即图中的HAL,Hardware Abstraction Layer)是位于操作系统内核与硬件电路之间的接口层,其目的在于将硬件抽象化。In this embodiment, the first hardware abstraction layer 46 and the second hardware abstraction layer 47 (ie, HAL, Hardware Abstraction Layer in the figure) are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
在一可实施方式中,中间数据为数据内容;In a possible implementation, the intermediate data is data content;
第一服务模块45具体用于从外界数据进行去壳处理,以从外界数据中获取数据内容。The first service module 45 is specifically configured to perform shelling processing from external data to obtain data content from the external data.
在本实施例中,由数据接收模块41所接收到的外界数据中包括可被第一子系统42(主要为第一子系统42下的第一硬件接口模块44或硬件)识别或者支持的特征信息和数据内容,因此第一服务模块45需要对外界数据进行去壳处理,具体为从外界数据中删除特征信息,只保留数据内容。In this embodiment, the external data received by the data receiving module 41 includes features that can be recognized or supported by the first subsystem 42 (mainly the first hardware interface module 44 or hardware under the first subsystem 42) Information and data content, therefore, the first service module 45 needs to shell out the external data, specifically deleting the characteristic information from the external data, and only retaining the data content.
在一可实施方式中,第二子系统43包括第二硬件接口模块48、显示屏幕49和第二服务模块;In a possible implementation, the second subsystem 43 includes a second hardware interface module 48, a display screen 49, and a second service module;
第二服务模块用于接收中间数据,并对中间数据进行加壳处理,以得到仅供第二子系统43应用的特定数据,并将所得到的特定数据传输到第二硬件接口模块48;The second service module is used to receive intermediate data, and pack the intermediate data to obtain specific data that is only used by the second subsystem 43, and transmit the obtained specific data to the second hardware interface module 48;
第二硬件接口模块48上安装显示屏幕49,并根据所接收到的特定数据,显示特定数据中的中 间数据。A display screen 49 is installed on the second hardware interface module 48, and according to the received specific data, the intermediate data in the specific data is displayed.
本实施例中,第二硬件接口模块48包括I2C-M I2C-M(Inter-Integrated Circuit Master,集成电路总线)、SPI-M(Serial Peripheral Interface Master,串行外设接口)、DMA(Direct Memory Access,直接存储器访问)等硬件或接口,以可在第二子系统43中安装OLED(Organic Light-Emitting Diode,有机发光半导体)、Tou(Touch,触摸板)、GPS(Global Positioning System,全球定位系统)和K(KEY,键盘)等硬件设备。In this embodiment, the second hardware interface module 48 includes I2C-M (Inter-Integrated Circuit Master, integrated circuit bus), SPI-M (Serial Peripheral Interface Master, serial peripheral interface), and DMA (Direct Memory). Access, direct memory access) and other hardware or interfaces, so that OLED (Organic Light-Emitting Diode, organic light-emitting semiconductor), Tou (Touch, touch panel), GPS (Global Positioning System, global positioning) can be installed in the second subsystem 43 System) and K (KEY, keyboard) and other hardware devices.
显示屏幕49优选为OLED屏幕,根据自身的接口类型安装在第二硬件接口模块48上,以实现第二硬件接口模块48与显示屏幕49通信连接。The display screen 49 is preferably an OLED screen, which is installed on the second hardware interface module 48 according to its own interface type, so as to realize the communication connection between the second hardware interface module 48 and the display screen 49.
由于第二子系统43优选为ST型号的单片机,相应的,第二服务模块对应对应为ST Service模块,用于处理第二子系统43中数据的运算。在本实施例中第二服务模块主要用于对所接收到的中间数据进行加壳处理,具体为:对中间数据加上可被第二硬件接口模块48、硬件所识别或支持的特征信息,生成特定数据。第二服务模块将所生成的特定数据传输给第二硬件接口模块48,第二硬件接口模块48接收特定数据,并通过显示屏幕49显示中间数据。Since the second subsystem 43 is preferably an ST-type single-chip microcomputer, correspondingly, the second service module corresponds to an ST Service module, which is used to process data operations in the second subsystem 43. In this embodiment, the second service module is mainly used to pack the received intermediate data, specifically: adding characteristic information that can be recognized or supported by the second hardware interface module 48 and the hardware to the intermediate data, Generate specific data. The second service module transmits the generated specific data to the second hardware interface module 48, and the second hardware interface module 48 receives the specific data and displays the intermediate data through the display screen 49.
在一可实施方式中,第二服务模块通过第三硬件抽象层410接收中间数据,并通过第四硬件抽象层411将特定数据传输到第二硬件接口模块48。In an implementation manner, the second service module receives intermediate data through the third hardware abstraction layer 410, and transmits specific data to the second hardware interface module 48 through the fourth hardware abstraction layer 411.
本实施例中,第三硬件抽象层410和第四硬件抽象层411(即图中的HAL,Hardware Abstraction Layer)是位于操作系统内核与硬件电路之间的接口层,其目的在于将硬件抽象化。In this embodiment, the third hardware abstraction layer 410 and the fourth hardware abstraction layer 411 (ie HAL, Hardware Abstraction Layer in the figure) are the interface layers between the operating system kernel and the hardware circuit, and their purpose is to abstract the hardware. .
在一可实施方式中,数据接收模块41具体为蓝牙模块、无线收发模块和有线收发模块之一。In an implementation manner, the data receiving module 41 is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
本实施例中,数据接收模块41主要用于接收外界的数据,其具体可以为蓝牙模块、无线收发模块和有线收发模块的其中之一,图28中,数据接收模块41优选为BLE模块(低功耗蓝牙)。In this embodiment, the data receiving module 41 is mainly used to receive external data, which can be specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In FIG. 28, the data receiving module 41 is preferably a BLE module (low Bluetooth power consumption).
图29为本发明实施例一种数据读取方法的实现流程示意图。如图29所示,本发明实施例另一方面提供一种数据读取方法,应用于辅助系统,辅助系统包括相互通信连接的第一子系统42和第二子系统43,方法包括:FIG. 29 is a schematic diagram of the implementation process of a data reading method according to an embodiment of the present invention. As shown in FIG. 29, another aspect of the embodiment of the present invention provides a data reading method, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 42 and a second subsystem 43 that are communicatively connected to each other. The method includes:
步骤4101,在判定主系统处于非唤醒状态下时通过第二子系统43中的存储器412获取已存数据;Step 4101: Acquire stored data through the memory 412 in the second subsystem 43 when it is determined that the main system is in a non-awake state;
步骤4102,将所获取的已存数据传输给第一子系统42;Step 4102: Transmit the acquired stored data to the first subsystem 42;
步骤4103,指示第一子系统42读取已存数据。Step 4103, instruct the first subsystem 42 to read the stored data.
本实施例中,主系统和辅助系统的结构关系以及辅助系统的结构可参考图28。In this embodiment, the structural relationship between the main system and the auxiliary system and the structure of the auxiliary system can refer to FIG. 28.
结合图28,当判定主系统处于非唤醒状态下时,通过第二子系统43中的存储器412获取已存数据,其中主系统的工作状态判断过程可通过开关模块来获取判断;存储器412预先安装在第二子系统43中,具体为基于NF(Nor Flash,非易失闪存技术)的存储器,用于存储数据。With reference to Figure 28, when it is determined that the main system is in a non-awake state, the stored data is obtained through the memory 412 in the second sub-system 43, and the judgment process of the working state of the main system can be obtained through the switch module; the memory 412 is pre-installed In the second subsystem 43, specifically, a memory based on NF (Nor flash, non-volatile flash memory technology) is used to store data.
接着将所获取的已存数据传输给第一子系统42;Then transmit the acquired stored data to the first subsystem 42;
最后指示第一子系统42读取已存数据,其中本实施例中的读取操作包括对数据的显示、播报;若已存数据为音频数据,则读取的操作为播报;若已存数据为文本信息,则此时的读取操作为显示。Finally, the first subsystem 42 is instructed to read the stored data, where the read operation in this embodiment includes the display and broadcast of the data; if the stored data is audio data, the read operation is broadcast; if the data is stored If it is text information, the reading operation at this time is display.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
进一步地,参考图28,第二子系统43中包括第二服务模块,因此,步骤4101和步骤4102的具体过程为:在判定主系统处于非唤醒状态下时,通过第二服务模块来获取存储器412中的已存数据,并通过第二服务模块将已存数据传输通过第三硬件抽象层410传输给第一子系统42。Further, referring to FIG. 28, the second subsystem 43 includes a second service module. Therefore, the specific process of step 4101 and step 4102 is: when it is determined that the main system is in a non-awake state, the second service module obtains the memory The stored data in 412 is transmitted to the first subsystem 42 through the third hardware abstraction layer 410 through the second service module.
在一可实施方式中,指示第一子系统42读取已存数据,包括:In an implementation manner, instructing the first subsystem 42 to read the stored data includes:
指示第一子系统42对所接收到的已存数据进行加壳处理,得到仅供第一子系统42应用的特定数据;Instruct the first subsystem 42 to pack the received stored data to obtain specific data that can only be used by the first subsystem 42;
指示第一子系统42对所得到的特定数据进行读取。Instruct the first subsystem 42 to read the obtained specific data.
本实施例中,步骤4103的具体过程为:指示第一子系统42对所接收到的已存数据进行加壳处理,得到仅供第一子系统42应用的特定数据,具体为:在原有数据的基础上增加可被对应于第一子系统42所识别或所支持的特征信息,生成特定数据,该特定数据可被第一子系统42中的接口模块或者硬件所识别,以便接口模块或者硬件所读取特定数据。In this embodiment, the specific process of step 4103 is: instructing the first subsystem 42 to pack the received stored data to obtain specific data that can only be used by the first subsystem 42, specifically: in the original data On the basis of adding feature information that can be identified or supported by the first subsystem 42 to generate specific data, the specific data can be identified by the interface module or hardware in the first subsystem 42 so that the interface module or hardware The specific data being read.
进一步地,参考图28,第一子系统42不同的读取方式有多种,不同的特定数据对应不同的读取方式,并且需要相应的硬件配合,若假设提取的已存数据为音频数据,则需要发声器硬件,该硬件需安装在第一硬件接口模块44中的I2S/PCM接口中。在步骤4101将所获取的已存数据传输给第一子系统42之后,由第一子系统42的第一服务模块45接收已存数据并对其进行加壳处理得到特定数据,再将特定数据传输给第二接口模块中的发声器,从而对音频数据进行播报。Further, referring to FIG. 28, there are many different reading methods of the first subsystem 42. Different specific data corresponds to different reading methods, and corresponding hardware cooperation is required. If it is assumed that the extracted stored data is audio data, Sounder hardware is required, and the hardware needs to be installed in the I2S/PCM interface in the first hardware interface module 44. After the acquired stored data is transmitted to the first subsystem 42 in step 4101, the first service module 45 of the first subsystem 42 receives the stored data and packs it to obtain specific data, and then transfers the specific data It is transmitted to the sounder in the second interface module to broadcast audio data.
图30为本发明实施例一种数据存储方法的实现流程示意图。如图30所示,本发明实施例另一方面一种数据存储方法,应用于辅助系统,辅助系统包括相互通信连接的第一子系统42和第二子系统43,方法包括:FIG. 30 is a schematic diagram of the implementation process of a data storage method according to an embodiment of the present invention. As shown in FIG. 30, another aspect of the embodiment of the present invention is a data storage method, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 42 and a second subsystem 43 that are communicatively connected to each other. The method includes:
步骤4201,在判定主系统处于非唤醒状态下时,通过第一子系统42中的数据接收模块41获取外界数据,Step 4201: When it is determined that the main system is in a non-awake state, obtain external data through the data receiving module 41 in the first subsystem 42.
或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;Or, when it is determined that the main system is in the wake-up state, the slave receives external data through the main system;
步骤4202,将所获取的外界数据传输给第二子系统43;Step 4202: Transmit the acquired external data to the second subsystem 43;
步骤4203,指示第二子系统43将传输得到的外界数据存储到存储器412中。Step 4203: Instruct the second subsystem 43 to store the external data obtained by the transmission in the memory 412.
本实施例中,结合图28所示,首先在判定主系统处于非唤醒状态下时,通过第一子系统42中的数据接收模块41获取外界数据,或者,在判定主系统处于唤醒状态下时,通过从主系统(具体主系统中的经典蓝牙模块)接收外界数据。其中主系统的工作状态可通过开关模块来获取判定,数据接收模块41主要用于接收外界的数据,其具体可以为蓝牙模块、无线收发模块和有线收发模块的其中之一,在本实施例中,数据接收模块41优选为BLE(低功耗蓝牙)。In this embodiment, as shown in FIG. 28, when it is determined that the main system is in the non-awakened state, external data is obtained through the data receiving module 41 in the first subsystem 42, or when it is determined that the main system is in the awake state. , By receiving external data from the main system (the classic Bluetooth module in the specific main system). The working state of the main system can be determined by the switch module. The data receiving module 41 is mainly used to receive data from the outside world. Specifically, it can be one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module. In this embodiment, The data receiving module 41 is preferably BLE (Bluetooth Low Energy).
步骤4201具体过程为:在判定主系统处于非唤醒状态下时,开关模块令另辅助系统开始工作,此时具体为由第一子系统42中的数据接收模块41来接收外界数据;在判定主系统中处于唤醒状态下时,主系统与存储器412通信连接,利用通过主系统中的接收模块如经典蓝牙模块来接收外界数据。The specific process of step 4201 is: when it is determined that the main system is in the non-awake state, the switch module causes the other auxiliary system to start working. At this time, the data receiving module 41 in the first subsystem 42 receives external data; When the system is in an awake state, the main system is in communication connection with the memory 412, and the receiving module in the main system, such as a classic Bluetooth module, is used to receive external data.
接着将所获取的外界数据传输给第二子系统43,具体为:若通过第一子系统42接收外界数据,则将接收到的外界数据依次通过第一硬件接口模块44、第一硬件抽象层46、第一服务模块45、第二硬件抽象层47之后传输给第二子系统43;若通过主系统接收外界数据,则利用主系统的输出接口将外界数据传输给第二子系统43下的存储器412中。Then the obtained external data is transmitted to the second subsystem 43, specifically: if the external data is received through the first subsystem 42, then the received external data is passed through the first hardware interface module 44 and the first hardware abstraction layer in turn. 46. The first service module 45 and the second hardware abstraction layer 47 are then transmitted to the second subsystem 43; if the external data is received through the main system, the output interface of the main system is used to transmit the external data to the second subsystem 43. In the memory 412.
最后指示第二子系统43将传输得到的外界数据存储到存储器412中,具体过程为:将外界数据依次通过第三抽象层、第二服务模块之后存入到存储器412中。Finally, the second subsystem 43 is instructed to store the external data obtained by the transmission in the memory 412. The specific process is: the external data is stored in the memory 412 after passing through the third abstraction layer and the second service module in sequence.
在一可实施方式中,数据接收模块41为低功耗蓝牙模块;In an implementation manner, the data receiving module 41 is a Bluetooth low energy module;
相应的,通过第一子系统42中的数据接收模块41获取外界数据,包括:Correspondingly, obtaining external data through the data receiving module 41 in the first subsystem 42 includes:
通过与低功耗蓝牙模块配对的设备获取外界数据;Obtain external data through a device paired with a Bluetooth low energy module;
主系统中包括经典蓝牙模块;The main system includes classic Bluetooth module;
相应的,从主系统接收外界数据,具体包括:Correspondingly, receiving external data from the main system includes:
从主系统中的经典蓝牙模块所配对的设备获取到外界数据。Obtain external data from the device paired with the classic Bluetooth module in the main system.
本实施例中,数据接收模块41为低功耗蓝牙模块,主系统中包括经典蓝牙模块;因此,步骤4201具体为:通过与低功耗蓝牙模块配对的设备获取外界数据,和从主系统中的经典蓝牙模块所配对的设备获取到外界数据。In this embodiment, the data receiving module 41 is a low-power Bluetooth module, and the main system includes a classic Bluetooth module; therefore, step 4201 specifically includes: obtaining external data through a device paired with the low-power Bluetooth module, and from the main system The device paired with the classic Bluetooth module obtains external data.
在一可实施方式中,在蓝牙配对的过程中,方法还包括:In an implementation manner, during the Bluetooth pairing process, the method further includes:
在判定主系统处于唤醒状态时,通过主系统中的经典蓝牙模块与设备进行配对,低功耗蓝牙模块失去配对功能;When it is determined that the main system is in the awake state, the classic Bluetooth module in the main system is paired with the device, and the low-power Bluetooth module loses the pairing function;
在判定主系统处于非唤醒状态时,通过辅助系统中的低功耗蓝牙模块与设备进行配对,经典蓝牙模块失去配对功能。When it is determined that the main system is in a non-awake state, the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
本实施例中,主系统和辅助系统只能有一侧进行数据接收蓝牙配对,当判定主系统处于唤醒状态时,通过主系统中的经典蓝牙模块与设备进行配对,以从设备中接收外界数据,此时令低功耗蓝牙模块失去配对功能;在判定主系统处于非唤醒状态时,通过辅助系统中的低功耗蓝牙模块与设备进行配对,以从已配对设备中接收外界数据,此时经典蓝牙模块失去配对功能,其中配对功能的开启和关闭可通过开关模块来控制。In this embodiment, only one side of the main system and the auxiliary system can perform data receiving Bluetooth pairing. When it is determined that the main system is in the awake state, the classic Bluetooth module in the main system is paired with the device to receive external data from the device. At this time, the Bluetooth low energy module loses its pairing function; when it is determined that the main system is not awake, the Bluetooth low energy module in the auxiliary system is paired with the device to receive external data from the paired device. At this time, the classic Bluetooth The module loses the pairing function, and the opening and closing of the pairing function can be controlled by the switch module.
在一可实施方式中,方法还包括:在经典蓝牙模块已与设备配对的状态下,若主系统在唤醒状态切换至非唤醒状态时,经典蓝牙模块与已配对设备断开连接;In an implementation manner, the method further includes: in a state where the classic Bluetooth module is paired with the device, if the main system is switched from the wake-up state to the non-wake-up state, the classic Bluetooth module is disconnected from the paired device;
指示低功耗蓝牙模块向待配对设备发出配对请求指令。Instruct the Bluetooth low energy module to send a pairing request instruction to the device to be paired.
本实施例中,在经典蓝牙模块已与设备配对的状态下,若主系统在唤醒状态切换至非唤醒状态时,开关模块控制主系统中的经典蓝牙模块断开与已配对设备的通信连接,并启动辅助系统中的低功耗蓝牙模块,此时通过低功耗蓝牙模块对已断开的设备发出配对请求,已断开设备可通过响应该请求以再次建立通信连接。In this embodiment, when the classic Bluetooth module is paired with the device, if the main system switches to the non-awake state in the wake-up state, the switch module controls the classic Bluetooth module in the main system to disconnect the communication connection with the paired device. And start the Bluetooth low energy module in the auxiliary system. At this time, the Bluetooth low energy module sends a pairing request to the disconnected device, and the disconnected device can respond to the request to establish a communication connection again.
图31为本发明实施例一种数据读取装置的结构组成示意图。如图31所示,本发明实施例另一方面提供一种数据读取装置,应用于辅助系统,辅助系统包括相互通信连接的第一子系统42和第二子系统43,装置包括:FIG. 31 is a schematic diagram of the structural composition of a data reading device according to an embodiment of the present invention. As shown in FIG. 31, another aspect of the embodiment of the present invention provides a data reading device, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 42 and a second subsystem 43 that are communicatively connected to each other. The device includes:
已存数据获取模块4301,用于在判定主系统处于非唤醒状态下时通过第二子系统43中的存储器412获取已存数据;The stored data acquisition module 4301 is used to acquire the stored data through the memory 412 in the second subsystem 43 when it is determined that the main system is in a non-awake state;
已存数据传输模块4302,用于将所获取的已存数据传输给第一子系统42;The stored data transmission module 4302 is used to transmit the acquired stored data to the first subsystem 42;
已存数据读取模块4303,用于指示第一子系统42读取已存数据。The stored data reading module 4303 is used to instruct the first subsystem 42 to read the stored data.
本实施例中,主系统和辅助系统的结构关系图可参考图28。In this embodiment, the structural relationship diagram of the main system and the auxiliary system can refer to FIG. 28.
结合图28,通过已存数据获取模块4301判定主系统处于非唤醒状态下时,通过第二子系统43中的存储器412获取已存数据,其中主系统的工作状态判断过程可通过开关模块判断;存储器412安装在第二子系统43中,用于存储数据。28, when the stored data acquisition module 4301 determines that the main system is in a non-awake state, the stored data is acquired through the memory 412 in the second subsystem 43, where the main system's working state judgment process can be judged by the switch module; The memory 412 is installed in the second subsystem 43 for storing data.
接着通过已存数据传输模块4302将所获取的已存数据传输给第一子系统42;Then transmit the acquired stored data to the first subsystem 42 through the stored data transmission module 4302;
最后通过已存数据读取模块4303指示第一子系统42读取已存数据,其中本实施例中的读取操作包括对数据的显示、播报;若已存数据为音频数据,则读取的操作为播报;若已存数据为文本信息,则此时的读取操作为显示。Finally, the stored data reading module 4303 instructs the first subsystem 42 to read the stored data. The reading operation in this embodiment includes the display and broadcast of the data; if the stored data is audio data, the read The operation is broadcast; if the stored data is text information, the read operation at this time is display.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了 唤醒主系统导致系统功耗的增加。As a result, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
图32为本发明实施例一种数据存储装置的结构组成示意图。FIG. 32 is a schematic diagram of the structural composition of a data storage device according to an embodiment of the present invention.
如图32所示,本发明实施例另一方面提供一种数据存储装置,应用于辅助系统,辅助系统包括相互通信连接的第一子系统42和第二子系统43,装置包括:As shown in FIG. 32, another aspect of the embodiment of the present invention provides a data storage device, which is applied to an auxiliary system. The auxiliary system includes a first subsystem 42 and a second subsystem 43 that are communicatively connected to each other. The device includes:
外界数据获取模块4401,用于在判定主系统处于非唤醒状态下时,通过第一子系统42中的数据接收模块41获取外界数据,The external data acquisition module 4401 is used to acquire external data through the data receiving module 41 in the first subsystem 42 when it is determined that the main system is in a non-awake state,
或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;Or, when it is determined that the main system is in the wake-up state, the slave receives external data through the main system;
外界数据传输模块4402,用于将所获取的外界数据传输给第二子系统43;The external data transmission module 4402 is used to transmit the acquired external data to the second subsystem 43;
外界数据存储模块4403,用于指示第二子系统43将传输得到的外界数据存储到存储器412中。The external data storage module 4403 is used to instruct the second subsystem 43 to store the external data obtained by transmission in the memory 412.
本实施例中,结合图28所示,首先通过外界数据获取模块4401在判定主系统处于非唤醒状态下时,通过第一子系统42中的数据接收模块41获取外界数据,或者,在判定主系统处于唤醒状态下时,从主系统接收外界数据。其中主系统的工作状态可通过开关模块来判定,数据接收模块41主要用于接收外界的数据,其具体可以为蓝牙模块、无线接发模块无线收发模块和有线接发模块有线收发模块的其中之一,在本实施例中,数据接收模块41优选为BLE(低功耗蓝牙)。In this embodiment, with reference to FIG. 28, first the external data acquisition module 4401 is used to determine that the main system is in a non-awake state, and the data receiving module 41 in the first subsystem 42 is used to obtain external data, or when the main system is determined When the system is awake, it receives external data from the main system. The working status of the main system can be determined by the switch module. The data receiving module 41 is mainly used to receive data from the outside world. Specifically, it can be one of the Bluetooth module, the wireless receiving and sending module, the wireless receiving and sending module, and the wired receiving and sending module. 1. In this embodiment, the data receiving module 41 is preferably BLE (Bluetooth Low Energy).
外界数据获取模块4401具体为:在判定主系统处于非唤醒状态下时,主系统与存储器412断开通信连接,开关模块令辅助系统开始工作,此时由第一子系统42中的数据接收模块41来接收外界数据;在判定主系统中处于唤醒状态下时,主系统与存储器412通信连接,通过主系统中的接收模块如经典蓝牙模块来接收外界数据。The external data acquisition module 4401 is specifically: when it is determined that the main system is in a non-awakened state, the main system disconnects the communication connection with the memory 412, and the switch module causes the auxiliary system to start working. At this time, the data receiving module in the first subsystem 42 41 to receive external data; when it is determined that the main system is in an awake state, the main system communicates with the memory 412, and receives external data through a receiving module in the main system, such as a classic Bluetooth module.
接着通过外界数据传输模块4402将所获取的外界数据传输给第二子系统43,具体为:若通过第一子系统42接收外界数据,则将接收到的外界数据依次通过第一硬件接口模块44、第一硬件抽象层46、第一服务模块45、第二硬件抽象层47之后传输给第二子系统43;若通过主系统接收外界数据,则利用主系统的输出接口将外界数据传输给第二子系统43。Then the acquired external data is transmitted to the second subsystem 43 through the external data transmission module 4402, specifically: if the external data is received through the first subsystem 42, then the received external data is sequentially passed through the first hardware interface module 44 , The first hardware abstraction layer 46, the first service module 45, and the second hardware abstraction layer 47 are then transmitted to the second subsystem 43; if the external data is received through the main system, the external data is transmitted to the second subsystem through the output interface of the main system Two subsystem 43.
最后通过外界数据存储模块4403指示第二子系统43将传输得到的外界数据存储到存储器412中,具体过程为:将外界数据依次通过第三抽象层、第二服务模块之后存入到存储器412中。Finally, the external data storage module 4403 instructs the second subsystem 43 to store the transmitted external data in the memory 412. The specific process is: the external data is stored in the memory 412 after passing through the third abstraction layer and the second service module in turn. .
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据读取方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a data reading method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时通过第二子系统43中的存储器412获取已存数据;将所获取的已存数据传输给第一子系统42;指示第一子系统42读取已存数据。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain stored data through the memory 412 in the second subsystem 43 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 42; instruct the first subsystem 42 to read the stored data.
由此,在主系统处于非唤醒状态下时,也可通过辅助系统在实现一些数据的读取,进而避免了唤醒主系统导致系统功耗的增加。Therefore, when the main system is in a non-wake-up state, some data can also be read through the auxiliary system, thereby avoiding the increase in system power consumption caused by waking up the main system.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据存储方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a data storage method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时通过第二子系统43中的存储器412获取已存数据;将所获取的已存数据传输给第一子系统42;指示第一子系统42读取已存数据In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain stored data through the memory 412 in the second subsystem 43 when it is determined that the main system is in a non-awake state. ; Transmit the acquired stored data to the first subsystem 42; instruct the first subsystem 42 to read the stored data
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态下时,通过第一子系统42中的数据接收模块41获取外界数据,或者,在判定主系统处于唤醒状态下时,从通过主系统接收外界数据;将所获取的外界数据传输给第二子系统43;指示第二子系统43将传输得到的外界数据存储到存储器412中。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to obtain the data through the data receiving module 41 in the first subsystem 42 when it is determined that the main system is in a non-awake state. External data, or, when it is determined that the main system is in an awake state, receive external data from the main system; transmit the obtained external data to the second subsystem 43; instruct the second subsystem 43 to store the transmitted external data To the memory 412.
图33为本发明实施例一种数据通知方法的实现流程示意图。如图33所示,本发明实施例另一方面提供一种数据通知方法,应用于辅助系统,方法包括:FIG. 33 is a schematic diagram of the implementation process of a data notification method according to an embodiment of the present invention. As shown in FIG. 33, another aspect of the embodiment of the present invention provides a data notification method, which is applied to an auxiliary system, and the method includes:
步骤4501,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;Step 4501: When it is determined that the main system is in a non-awake state, receive external data through the auxiliary system;
步骤4502,判断所接收到的外界数据是否为辅助系统所支持的通知类型;Step 4502: Determine whether the received external data is a notification type supported by the auxiliary system;
步骤4503,若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统进行对外通知;Step 4503: If it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system;
步骤4504,若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。Step 4504: If it is determined that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system provides an external prompt for the external data.
本实施例中,首先在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, first, when determining that the main system is in a non-wake-up state, the auxiliary system receives external data. The non-wake-up state includes sleep, hibernation, and shutdown states. The external data includes phone notifications, SMS notifications, and application notifications.
接着判断所接收到的外界数据是否为辅助系统所支持的通知类型,其中所支持的通知类型通常为系统中事先设定,比如市面上的手机操作系统中会预设短信通知功能、定位通知功能和一些合作的第三方应用等,其对应的短信通知类型、定位通知类型和一些应用通知的数据则为辅助系统所支持的数据,除此之外的外界数据则为辅助系统所不支持的数据,但是该数据为可能是主系统所支持的。因此该步骤的具体过程可以为:获取并判断外界数据的通知类型,将所获取的通知类型与系统中预设的通知类型进行比较即可判断该外界数据是否为系统所支持。Then determine whether the received external data is a notification type supported by the auxiliary system. The supported notification type is usually set in advance in the system. For example, the SMS notification function and location notification function are preset in the mobile phone operating system on the market. With some cooperative third-party applications, the corresponding SMS notification type, location notification type, and some application notification data are data supported by the auxiliary system, and other external data are data that the auxiliary system does not support. , But the data may be supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
接着若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统内进行对外通知,其中对外通知在本实施例中具体为在屏幕上显示数据内容,或者通过发 声器将数据内容对外播报,或者将数据内容通过网络向其他设备进行传输。Then, if it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system. In this embodiment, the external notification is specifically to display the data content on the screen. , Or broadcast the data content to the outside through the sounder, or transmit the data content to other devices through the network.
若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示,其中对外提示在本实施例中具体为在屏幕上显示消息通知提示、在发声器上播报消息通知提示或者灯光提示,以表示有通知消息的接收到达,但不显示其中的数据内容。针对于辅助系统所不支持的通知类型,用户可以根据通知提示主动唤醒主系统对其进行查看或处理。If it is determined that the received external data is a notification type that is not supported by the auxiliary system, the auxiliary system will provide an external prompt for the external data. In this embodiment, the external prompt is specifically a message notification prompt displayed on the screen, The message notification prompt or light prompt is broadcasted to indicate the arrival of the notification message, but the data content in it is not displayed. For notification types that are not supported by the auxiliary system, the user can actively wake up the main system according to the notification prompt to view or process it.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。Therefore, when the main system is in a non-wake-up state, once the external data is received, the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
在一可实施方式中,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据的过程中,方法还包括:In an implementation manner, in the process of receiving external data through the auxiliary system when it is determined that the main system is in the non-awake state, the method further includes:
切断主系统与外界的通信连接,以使辅助系统接收所有的外界数据。Cut off the communication connection between the main system and the outside world so that the auxiliary system can receive all external data.
本实施例中,在执行步骤4501的过程中,切断主系统与外界的通信连接,以免主系统中的数据接收模块41来接收外界数据从而导致唤醒主系统,进而使辅助系统接收所有的外界数据。In this embodiment, in the process of performing step 4501, the communication connection between the main system and the outside world is cut off, so as to prevent the data receiving module 41 in the main system from receiving external data, which will cause the main system to wake up, so that the auxiliary system can receive all external data. .
进一步地,结合图28所示,该步骤具体为:通过与主系统和辅助系统均通信连接的开关模块来切断主系统与外界的通信连接,并驱使辅助系统中的数据接收模块41来接收所有的外界消息。Further, as shown in FIG. 28, this step is specifically: cut off the communication connection between the main system and the outside through the switch module that is communicatively connected with the main system and the auxiliary system, and drive the data receiving module 41 in the auxiliary system to receive all Outside news.
在一可实施方式中,辅助系统包括第一子系统42和第二子系统43;In a possible embodiment, the auxiliary system includes a first subsystem 42 and a second subsystem 43;
通过辅助系统接收外界数据,包括:Receive external data through auxiliary systems, including:
通过第一子系统42的数据接收模块41接收外界数据;Receive external data through the data receiving module 41 of the first subsystem 42;
相应的,将外界数据的数据内容在辅助系统内进行对外通知,包括:Correspondingly, the data content of external data is notified to the outside in the auxiliary system, including:
在第二子系统43的屏幕上显示外界数据的数据内容;Display the data content of the external data on the screen of the second subsystem 43;
相应的,在辅助系统内针对外界数据进行对外提示,包括:Correspondingly, external prompts for external data in the auxiliary system include:
在第二子系统43的屏幕上针对外界数据进行对外提示。On the screen of the second subsystem 43, external prompts are given for external data.
本实施例中,结合图28所示,辅助系统包括第一子系统42和第二子系统43。In this embodiment, as shown in FIG. 28, the auxiliary system includes a first subsystem 42 and a second subsystem 43.
结合图28,由此,步骤4501的具体过程为:通过第一子系统42的数据接收模块41接收外界数据,。具体为:进一步地,将所接收到的外界数据通过第一硬件接口模块44和第一硬件抽象层46传送到第一服务模块45。第一服务模块45提取外界数据的数据内容,并将数据内容传输到第二子系统43。第二子系统43通过第三硬件抽象层410将数据内容传输到第二服务模块中,利用第二服务模块对数据内容进行通知类型的判断并对其进行加壳处理。With reference to Fig. 28, therefore, the specific process of step 4501 is: receiving external data through the data receiving module 41 of the first sub-system 42. Specifically: further, the received external data is transmitted to the first service module 45 through the first hardware interface module 44 and the first hardware abstraction layer 46. The first service module 45 extracts the data content of the external data and transmits the data content to the second subsystem 43. The second subsystem 43 transmits the data content to the second service module through the third hardware abstraction layer 410, and uses the second service module to judge the notification type of the data content and performs shelling processing on it.
相应的,步骤4503的具体过程为:若该通知类型为支持的类型,则将数据内容通过第四硬件抽象层411和第二硬件接口模块48在屏幕上进行显示。Correspondingly, the specific process of step 4503 is: if the notification type is a supported type, the data content is displayed on the screen through the fourth hardware abstraction layer 411 and the second hardware interface module 48.
步骤4504的具体过程为:若通知类型为不支持的类型,则令屏幕显示消息提示信息。The specific process of step 4504 is: if the notification type is an unsupported type, the screen displays the message prompt information.
在一可实施方式中,将外界数据的数据内容在辅助系统内进行对外通知,包括:In an implementation manner, the external notification of the data content of the external data in the auxiliary system includes:
从数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。The key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
本实施例中,为了将该方法可以应用于小屏幕或者分辨率较低的设备上,需要对数据内容中的重点显示内容进行抽取,其抽取方式可以是通过经过训练的神经网络模型来实现,该神经网络模型的训练大致步骤为:In this embodiment, in order to apply the method to small screens or devices with low resolution, it is necessary to extract the key display content in the data content. The extraction method can be achieved through a trained neural network model. The general steps of training the neural network model are:
将相关训练语料和对应的结果作为神经网络模型的输入,得到输出结果,若输出结果跟对应的真实结果的偏差较大,则继续用语料进行训练,直到输出结果与对应的真实结果之间的偏差在预设范围内时训练完成。The relevant training corpus and the corresponding result are used as the input of the neural network model to obtain the output result. If the output result deviates greatly from the corresponding real result, continue training with the corpus until the output result is between the corresponding real result The training is completed when the deviation is within the preset range.
然后将所抽到的重点显示内容在辅助系统的屏幕上进行显示,结合图28,具体在第二子系统43中的OLED屏幕上进行显示。Then the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 28, it is specifically displayed on the OLED screen in the second subsystem 43.
在一可实施方式中,在辅助系统内针对外界数据进行对外提示,包括:In an implementation manner, the external prompt for external data in the auxiliary system includes:
在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。Display unread message prompts and icon information corresponding to the data content on the screen in the auxiliary system.
本实施例中,步骤4504具体为:在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。其中,图标信息可以包括在数据内容内,也可以在辅助系统内事先存储一些不支持通知类型所对应的图标信息,在显示未读消息提示的同时从数据内容中提取对应的图表信息或者根据通知类型从系统中选取对应的图标信息,并将该图标信息在屏幕上进行显示。In this embodiment, step 4504 is specifically: displaying an unread message prompt and icon information corresponding to the data content on the screen in the auxiliary system. Among them, the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
图34为本发明实施例一种数据通知装置的结构组成示意图。如图34所示,本发明实施例另一方面提供一种数据通知装置,应用于辅助系统,装置包括:FIG. 34 is a schematic diagram of the structural composition of a data notification device according to an embodiment of the present invention. As shown in FIG. 34, another aspect of the embodiment of the present invention provides a data notification device, which is applied to an auxiliary system, and the device includes:
外界数据接收模块4601,用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;The external data receiving module 4601 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
通知类型判断模块4602,用于判断所接收到的外界数据是否为辅助系统所支持的通知类型;The notification type judging module 4602 is used for judging whether the received external data is a notification type supported by the auxiliary system;
对外通知模块4603,用于若经通知类型判断模块4602判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据的数据内容通过辅助系统进行对外通知;The external notification module 4603 is configured to, if the notification type determining module 4602 determines that the received external data is a notification type supported by the auxiliary system, then externally notify the data content of the external data through the auxiliary system;
对外提示模块4604,用于若经通知类型判断模块4602判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。The external prompting module 4604 is configured to, if the notification type judging module 4602 determines that the received external data is a notification type that is not supported by the auxiliary system, then externally prompt the external data through the auxiliary system.
本实施例中,首先通过外界数据接收模块4601在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, the external data receiving module 4601 first receives external data through the auxiliary system when determining that the main system is in the non-awake state. The non-awakened state includes sleep state, hibernation state, and shutdown state, and the external data includes phone notifications and short messages. Notifications and application notifications, etc.
接着通过通知类型判断模块4602判断所接收到的外界数据是否为辅助系统所支持的通知类型,其中所支持的通知类型通常为系统中事先设定,比如市面上的手机操作系统中会预设短信通知功能、定位通知功能和一些合作的第三方应用等,其对应的短信通知类型、定位通知类型和一些应用通知的数据则为辅助系统所支持的数据,除此之外的外界数据则为辅助系统所不支持的数据,但是该数据为主系统所支持的。因此该步骤的具体过程可以为:获取并判断外界数据的通知类型,将所获取的通知类型与系统中预设的通知类型进行比较即可判断该外界数据是否为系统所支持。Then the notification type judging module 4602 judges whether the received external data is a notification type supported by the auxiliary system. The supported notification type is usually set in advance in the system. For example, short messages are preset in the mobile phone operating system on the market. Notification function, location notification function and some cooperative third-party applications, etc. The corresponding SMS notification type, location notification type and some application notification data are data supported by the auxiliary system, and other external data is auxiliary Data not supported by the system, but the data is supported by the main system. Therefore, the specific process of this step may be: obtaining and judging the notification type of external data, and comparing the obtained notification type with the notification type preset in the system to determine whether the external data is supported by the system.
接着若经通知类型判断模块4602判定所接收到的外界数据为辅助系统所支持的通知类型,则通过对外通知模块4603将外界数据中的数据内容通过辅助系统内进行对外通知,其中对外通知在本实施例中具体为在屏幕上显示数据内容,或者通过发声器将数据内容对外播报,或者将数据内容通过网络向其他设备进行传输。Then, if the notification type determination module 4602 determines that the received external data is a notification type supported by the auxiliary system, the external notification module 4603 will notify the data content in the external data through the auxiliary system, where the external notification is in this In the embodiment, the data content is specifically displayed on the screen, or the data content is broadcast to the outside through a sounder, or the data content is transmitted to other devices through the network.
若经通知类型判断模块4602判定所接收到的外界数据为辅助系统所不支持的通知类型,则对外提示模块4604通过辅助系统针对外界数据进行对外提示,其中对外提示在本实施例中具体为在屏幕上显示消息通知提示、在发声器上播报消息通知提示或者灯光提示,以表示有通知消息的接收,但不显示其中的数据内容。针对于辅助系统所不支持的通知类型,用户可以主动唤醒主系统对其进行查看或处理。If the notification type judging module 4602 determines that the received external data is a notification type that is not supported by the auxiliary system, the external prompt module 4604 provides external prompts for the external data through the auxiliary system. The external prompts in this embodiment are specifically The screen displays the message notification prompt, broadcasts the message notification prompt or light prompt on the sounder to indicate the receipt of the notification message, but does not display the data content. For notification types that are not supported by the auxiliary system, the user can actively wake up the main system to view or process them.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。Therefore, when the main system is in a non-wake-up state, once the external data is received, the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
在一可实施方式中,外界数据接收模块4601在通过辅助系统接收外界数据的过程中,还具体用于:In an implementation manner, the external data receiving module 4601 is further specifically configured to: in the process of receiving external data through the auxiliary system:
切断主系统与外界的通信连接,以使辅助系统接收所有的外界数据。Cut off the communication connection between the main system and the outside world so that the auxiliary system can receive all external data.
本实施例中,外界数据接收模块4601在执行过程中,还具体用于,切断主系统与外界的通信连接,以免主系统中的数据接收模块41来接收外界数据从而导致唤醒主系统,进而使辅助系统接收所有的外界数据。In this embodiment, the external data receiving module 4601 is also specifically used to cut off the communication connection between the main system and the outside world during the execution process, so as to prevent the data receiving module 41 in the main system from receiving external data, causing the main system to be awakened. The auxiliary system receives all external data.
在一可实施方式中,对外通知模块4603具体用于:In an implementation manner, the external notification module 4603 is specifically configured to:
从数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。The key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
本实施例中,为了将该方法可以应用于小屏幕或者分辨率较低的设备上,对外通知模块4603具体用于对数据内容中的重点显示内容进行抽取,其抽取方式可以是通过经过训练的神经网络模型来实现,该神经网络模型的训练大致步骤为:In this embodiment, in order that the method can be applied to small screens or devices with lower resolution, the external notification module 4603 is specifically used to extract key display content in the data content, and the extraction method can be through trained The neural network model is implemented. The general steps for training the neural network model are:
然后将所抽到的重点显示内容在辅助系统的屏幕上进行显示,结合图28,具体在第二子系统43中的OLED屏幕上进行显示。Then the extracted key display content is displayed on the screen of the auxiliary system, and in conjunction with FIG. 28, it is specifically displayed on the OLED screen in the second subsystem 43.
在一可实施方式中,对外提示模块4604具体用于:In an implementation manner, the external prompting module 4604 is specifically used for:
在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。Display unread message prompts and icon information corresponding to the data content on the screen in the auxiliary system.
本实施例中,对外提示模块4604具体用于:在辅助系统内的屏幕上显示未读消息提示和对应于数据内容的图标信息。其中,图标信息可以包括在数据内容内,也可以在辅助系统内事先存储一些不支持通知类型所对应的图标信息,在显示未读消息提示的同时从数据内容中提取对应的图表信息或者根据通知类型从系统中选取对应的图标信息,并将该图标信息在屏幕上进行显示。In this embodiment, the external prompt module 4604 is specifically configured to: display an unread message prompt and icon information corresponding to the data content on the screen in the auxiliary system. Among them, the icon information can be included in the data content, or some icon information corresponding to the type of notification that is not supported in the auxiliary system can be stored in advance, and the corresponding chart information can be extracted from the data content while displaying the unread message prompt or according to the notification Type Select the corresponding icon information from the system, and display the icon information on the screen.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行数据通知方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute the data notification method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;判断所接收到的外界数据是否为辅助系统所支持的通知类型;若判定所接收到的外界数据为辅助系统所支持的通知类型,则将外界数据中的数据内容通过辅助系统进行对外通知;若判定所接收到的外界数据为辅助系统所不支持的通知类型,则通过辅助系统针对外界数据进行对外提示。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data Whether it is the notification type supported by the auxiliary system; if it is determined that the received external data is the notification type supported by the auxiliary system, the data content in the external data will be notified to the outside through the auxiliary system; if the received external data is determined For notification types that are not supported by the auxiliary system, the auxiliary system will provide external notifications for external data.
由此,在主系统处于非唤醒状态下时,一旦接收到外界数据便可通过辅助系统来进行通知类型筛选并根据通知类型进行针对性地显示,而不会唤醒主系统,进而减少了系统的功耗,增加了系统的续航时间。Therefore, when the main system is in a non-wake-up state, once the external data is received, the notification type can be filtered through the auxiliary system and displayed according to the notification type, without waking the main system, thereby reducing the system's Power consumption increases the battery life of the system.
图35为本发明实施例一种通信切换方法的实现流程示意图。如图35所示,本发明实施例另一方面提供一种通信切换方法,方法包括:FIG. 35 is a schematic diagram of the implementation process of a communication handover method according to an embodiment of the present invention. As shown in FIG. 35, another aspect of the embodiment of the present invention provides a communication switching method, and the method includes:
步骤4701,在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;Step 4701: When determining that the main system is in a non-awake state, receive external data through the auxiliary system;
步骤4702,判断所接收到的外界数据的通知类型;Step 4702: Determine the notification type of the received external data;
步骤4703,若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。Step 4703: If it is determined that the notification type of the received external data is a specific notification type, the main system is awakened, and the main system is instructed to process the external data.
本实施例中,首先在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, first, when determining that the main system is in a non-wake-up state, the auxiliary system receives external data. The non-wake-up state includes sleep, hibernation, and shutdown states. The external data includes phone notifications, SMS notifications, and application notifications.
接着判断所接收到的外界数据的通知类型,其中通知类型通常为系统中事先设定,比如说短信通知类型、电话通知类型、第三方应用通知类型等。Then determine the notification type of the received external data, where the notification type is usually set in advance in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
接着若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统 处理外界数据。其中特定通知类型在本实施例中定义为仅能被主系统处理的通知类型或者辅助系统处理困难的特定通知类型,可事先在系统中设定,比如可以将电话通知类型、短信通知类型等即时通信类的类型作为特定通知类型,当然也可通过用户自行添加一些第三方应用作为特定通知类型。其中指示主系统处理外界数据具体为:若特定通知类型为电话通知类型,则指示主系统对其进行接听、挂断等操作;若特定通知类型为短信通知类型,则指示主系统对其进行阅读、删除和回复等操作。Then, if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data. The specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc. The communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type. Instruct the main system to process external data specifically as follows: if the specific notification type is a phone notification type, instruct the main system to answer, hang up, etc.; if the specific notification type is a short message notification type, instruct the main system to read it , Delete and reply.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
进一步地,结合图28所示,在通过开关模块判定主系统处于非唤醒状态时,通过辅助系统中的数据接收模块41接收外界数据,再将外界数据传输到第一服务模块45内,并经第一服务模块45判断该外界数据是否为特定通知类型,若判定外界数据为特定通知类型,则通过开关模块唤醒主系统,并指示主系统处理该特定通知类型。Further, as shown in FIG. 28, when the main system is determined to be in a non-awake state by the switch module, the data receiving module 41 in the auxiliary system receives external data, and then transmits the external data to the first service module 45, and then The first service module 45 determines whether the external data is of a specific notification type, and if it determines that the external data is of a specific notification type, it wakes up the main system through the switch module and instructs the main system to process the specific notification type.
在一可实施方式中,方法还包括:In a possible implementation, the method further includes:
若判定所接收到的外界数据的通知类型为普通通知类型时,则指示辅助系统处理外界数据。If it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data.
本实施例中,若判定所接收到的外界数据的通知类型为普通通知类型时,则指示辅助系统处理外界数据,其中普通通知类型在本实施例中定义为除了特定通知类型以外的通知类型,比如说日历通知、闹钟通知等。In this embodiment, if it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data. The normal notification type is defined as a notification type other than the specific notification type in this embodiment. For example, calendar notifications, alarm clock notifications, etc.
进一步地,结合图28,普通通知类型在第二子系统43中的第二服务模块中处理。Further, with reference to FIG. 28, the common notification type is processed in the second service module in the second subsystem 43.
在一可实施方式中,指示辅助系统处理外界数据,包括:In an implementation manner, instructing the auxiliary system to process external data includes:
指示辅助系统将外界数据对外告知。Instruct the auxiliary system to notify external data.
本实施例中,结合图28所示,步骤“指示辅助系统处理外界数据”具体过程为:指示第一子系统42中的数据接收模块41接收外界数据,第一子系统42将外界数据传输给第二子系统43,第二子系统43根据外界数据的数据内容对外告知,其中对外告知方式可以是亮屏显示告知,可用于闹钟提醒;还可以是语音播报的方式进行告知,可用于备忘录提醒;也可以是对外信息传输的方式告知,可用于一些中间数据的传输。In this embodiment, with reference to Figure 28, the specific process of the step "instruct the auxiliary system to process external data" is: instruct the data receiving module 41 in the first subsystem 42 to receive external data, and the first subsystem 42 transmits the external data to The second subsystem 43, the second subsystem 43 informs externally according to the data content of the external data. The external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders ; It can also be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
在一可实施方式中,在唤醒主系统,并指示主系统处理外界数据的过程中,方法还包括:In an implementation manner, in the process of waking up the main system and instructing the main system to process external data, the method further includes:
断开辅助系统与外界的通信连接;Disconnect the communication connection between the auxiliary system and the outside world;
当主系统处理完成之后,或者当主系统进入非唤醒状态时,辅助系统与外界重新建立通信连接。After the processing of the main system is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
本实施例中,在唤醒主系统,并指示主系统处理外界数据的过程中,断开辅助系统与外界的通信连接,结合图28,具体为断开数据接收模块41与外界的通信连接,当主系统处理完成之后,或者当主系统进入非唤醒状态时,开关模块判定主系统处于非唤醒状态时,驱使数据接收模块41即辅助系统再次与外界建立通信连接。In this embodiment, in the process of waking up the main system and instructing the main system to process external data, disconnect the communication connection between the auxiliary system and the outside world. With reference to FIG. 28, the communication connection between the data receiving module 41 and the outside world is specifically disconnected. After the system processing is completed, or when the main system enters the non-awakened state, when the switch module determines that the main system is in the non-awakened state, it drives the data receiving module 41, that is, the auxiliary system to establish a communication connection with the outside again.
在一可实施方式中,唤醒主系统,并指示主系统处理外界数据,包括:In an implementation manner, waking up the main system and instructing the main system to process external data includes:
利用开关模块唤醒主系统中的经典蓝牙模块,并指示经典蓝牙模块处理外界数据。Use the switch module to wake up the classic Bluetooth module in the main system and instruct the classic Bluetooth module to process external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
经典蓝牙模块预先设置在主系统内,主要用于与外界进行通话连接。若外界数据被判定特定通知类型,并且该特定通知类型为通话类型时,利用经典蓝牙模块对其进行接听、挂断或者挂起等处理。The classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
图36为本发明实施例一种通信切换装置的结构组成示意图。如图36所示,本发明实施例另一方面提供一种通信切换装置,装置包括:FIG. 36 is a schematic diagram of the structural composition of a communication switching device according to an embodiment of the present invention. As shown in FIG. 36, another aspect of an embodiment of the present invention provides a communication switching device, which includes:
外界数据接收模块4801,用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;The external data receiving module 4801 is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
通知类型判断模块4802,用于判断所接收到的外界数据的通知类型;Notification type judging module 4802, used for judging the notification type of the received external data;
第一数据处理模块4803,用于经通知类型判断模块4802判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。The first data processing module 4803 is configured to wake up the main system and instruct the main system to process the external data when the notification type judging module 4802 determines that the notification type of the received external data is a specific notification type.
本实施例中,首先通过外界数据接收模块4801在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据,其中非唤醒状态包括睡眠状态、休眠状态和关机状态,外界数据包括电话通知、短信通知和应用通知等。In this embodiment, the external data receiving module 4801 first receives external data through the auxiliary system when it is determined that the main system is in the non-awake state. The non-wake state includes sleep state, hibernation state, and shutdown state. The external data includes phone notifications and short messages. Notifications and application notifications, etc.
接着通过通知类型判断模块4802判断所接收到的外界数据的通知类型,其中通知类型通常为系统中事先设定,比如说短信通知类型、电话通知类型、第三方应用通知类型等。Then, the notification type judgment module 4802 judges the notification type of the received external data, where the notification type is usually preset in the system, such as SMS notification type, phone notification type, third-party application notification type, and so on.
接着经通知类型判断模块4802判定所接收到的外界数据的通知类型为特定通知类型时,则通过第一数据处理模块4803唤醒主系统,并指示主系统处理外界数据。其中特定通知类型在本实施例中定义为仅能被主系统处理的通知类型或者辅助系统处理困难的特定通知类型,可事先在系统中设定,比如可以将电话通知类型、短信通知类型等即时通信类的类型作为特定通知类型,当然也可通过用户自行添加一些第三方应用作为特定通知类型。其中指示主系统处理外界数据具体为:若特定通知类型为电话通知类型,则指示主系统对其进行接听、挂断等操作;若特定通知类型为短信通知类型,则指示主系统对其进行阅读、删除和回复等操作。Then, when the notification type determining module 4802 determines that the notification type of the received external data is a specific notification type, the first data processing module 4803 wakes up the main system and instructs the main system to process the external data. The specific notification type is defined in this embodiment as the notification type that can only be processed by the main system or the specific notification type that is difficult to process by the auxiliary system. It can be set in the system in advance. For example, the phone notification type, SMS notification type, etc. The communication type is used as the specific notification type. Of course, the user can also add some third-party applications as the specific notification type. Instruct the main system to process external data specifically as follows: if the specific notification type is a phone notification type, instruct the main system to answer, hang up, etc.; if the specific notification type is a short message notification type, instruct the main system to read it , Delete and reply.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
在一可实施方式中,装置还包括:In a possible implementation, the device further includes:
第二数据处理模块4804,用于若判定所接收到的外界数据的通知类型为普通通知类型时,指示辅助系统处理外界数据。The second data processing module 4804 is used for instructing the auxiliary system to process the external data if it is determined that the notification type of the received external data is the normal notification type.
本实施例中,若经通知类型判断模块4802判定所接收到的外界数据的通知类型为普通通知类型时,则通过第二数据处理模块4804指示辅助系统处理外界数据,其中普通通知类型在本实施例中定义为除了特定通知类型以外的通知类型,比如说日历通知、闹钟通知等。In this embodiment, if the notification type judging module 4802 determines that the notification type of the received external data is a normal notification type, the second data processing module 4804 instructs the auxiliary system to process the external data. The normal notification type is described in this embodiment. In the example, it is defined as a notification type other than a specific notification type, such as calendar notification, alarm notification, and so on.
在一可实施方式中,第二数据处理模块4804,具体用于:In an implementation manner, the second data processing module 4804 is specifically configured to:
指示辅助系统将外界数据对外告知。Instruct the auxiliary system to notify external data.
本实施例中,结合图28所示,第二数据处理模块4804,具体用于:指示第一子系统42中的数据接收模块41接收外界数据,第一子系统42将外界数据传输给第二子系统43,第二子系统43根据外界数据的数据内容对外告知,其中对外告知方式可以是亮屏显示告知,可用于闹钟提醒;还可以是语音播报的方式进行告知,可用于备忘录提醒;也可以是对外信息传输的方式告知,可用于一些中间数据的传输。In this embodiment, as shown in FIG. 28, the second data processing module 4804 is specifically used to: instruct the data receiving module 41 in the first subsystem 42 to receive external data, and the first subsystem 42 to transmit the external data to the second Subsystem 43, the second sub-system 43 informs externally according to the data content of external data, wherein the external notification method can be a bright-screen display notification, which can be used for alarm reminders; it can also be notified by voice broadcast, which can be used for memo reminders; also It can be notified by means of external information transmission, which can be used for the transmission of some intermediate data.
在一可实施方式中,第一数据处理模块4803,具体用于:In an implementation manner, the first data processing module 4803 is specifically configured to:
利用开关模块唤醒主系统中的经典蓝牙模块,并指示经典蓝牙模块处理外界数据。Use the switch module to wake up the classic Bluetooth module in the main system and instruct the classic Bluetooth module to process external data.
本实施例中,开关模块与主系统和辅助系统分别通信连接,具体用于获取主系统的工作状态并控制主系统和辅助系统各自的通信连接,其中工作状态包括唤醒状态和非唤醒状态,非唤醒状态还进一步包括休眠状态、睡眠状态和关机状态。In this embodiment, the switch module is respectively communicatively connected with the main system and the auxiliary system, and is specifically used to obtain the working state of the main system and control the respective communication connections of the main system and the auxiliary system. The working state includes the wake-up state and the non-wake-up state. The wake-up state further includes a hibernation state, a sleep state, and a shutdown state.
经典蓝牙模块预先设置在主系统内,主要用于与外界进行通话连接。若外界数据被判定特定通知类型,并且该特定通知类型为通话类型时,利用经典蓝牙模块对其进行接听、挂断或者挂起等处理。The classic Bluetooth module is preset in the main system and is mainly used to communicate with the outside world. If the external data is determined to be a specific notification type, and the specific notification type is a call type, the classic Bluetooth module is used to answer, hang up, or hang up.
本发明实施例另一方面提供一种计算机可读存储介质,存储介质包括一组计算机可执行指令,当指令被执行时用于执行通信切换方法。Another aspect of the embodiments of the present invention provides a computer-readable storage medium. The storage medium includes a set of computer-executable instructions, which are used to execute a communication switching method when the instructions are executed.
在本发明实施例中计算机可读存储介质包括一组计算机可执行指令,当指令被执行时用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;判断所接收到的外界数据的通知类型;若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒主系统,并指示主系统处理外界数据。In the embodiment of the present invention, the computer-readable storage medium includes a set of computer-executable instructions. When the instructions are executed, they are used to receive external data through the auxiliary system when determining that the main system is in a non-awake state; to determine the received external data The notification type; if it is determined that the notification type of the received external data is a specific notification type, the main system is awakened and the main system is instructed to process the external data.
由此,通过对外界数据进行类型判断,若是特定通知类型,则将其交给主系统来处理该外界数据,以确保所有的外界数据均能被处理。Therefore, by judging the type of external data, if it is a specific notification type, it will be handed over to the main system to process the external data to ensure that all external data can be processed.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean specific features described in conjunction with the embodiment or example , Structures, materials or features are included in at least one embodiment or example of the present invention. Moreover, the described specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples and the features of the different embodiments or examples described in this specification without contradicting each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, "plurality" means two or more than two, unless otherwise specifically defined.
以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific implementations of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, and they should all be covered. Within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (40)

  1. 一种数据处理方法,应用于辅助系统,其特征在于,所述方法包括:A data processing method applied to an auxiliary system, characterized in that the method includes:
    在判定主系统处于非唤醒状态时,通过所述辅助系统接收外界数据;When determining that the main system is in a non-awake state, receive external data through the auxiliary system;
    判断所接收到的外界数据是否为所述辅助系统所支持的通知类型;Judging whether the received external data is a notification type supported by the auxiliary system;
    若判定所接收到的外界数据为所述辅助系统所支持的通知类型,则将所述外界数据中的数据内容通过所述辅助系统进行对外通知;If it is determined that the received external data is a notification type supported by the auxiliary system, the data content in the external data is notified to the outside through the auxiliary system;
    若判定所接收到的外界数据为所述辅助系统所不支持的通知类型,则通过所述辅助系统针对所述外界数据进行对外提示。If it is determined that the received external data is a notification type that is not supported by the auxiliary system, then the auxiliary system will provide an external prompt for the external data.
  2. 根据权利要求1所述的方法,其特征在于,在判定主系统处于非唤醒状态时,通过所述辅助系统接收外界数据的过程中,所述方法还包括:The method according to claim 1, wherein when it is determined that the main system is in a non-awake state, in the process of receiving external data through the auxiliary system, the method further comprises:
    切断所述主系统与外界的通信连接,以使所述辅助系统接收所有的外界数据。The communication connection between the main system and the outside world is cut off, so that the auxiliary system receives all outside data.
  3. 根据权利要求1所述的方法,其特征在于,所述将所述外界数据的数据内容在所述辅助系统内进行对外通知,包括:The method according to claim 1, wherein the externally notifying the data content of the external data in the auxiliary system comprises:
    从所述数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。The key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
  4. 根据权利要求1所述的方法,其特征在于,所述在所述辅助系统内针对所述外界数据进行对外提示,包括:The method according to claim 1, wherein the performing external prompting of the external data in the auxiliary system comprises:
    在所述辅助系统内的屏幕上显示未读消息提示和对应于所述数据内容的图标信息。An unread message prompt and icon information corresponding to the data content are displayed on the screen in the auxiliary system.
  5. 根据权利要求1所述的方法,其特征在于,所述辅助系统包括第一子系统和第二子系统;The method according to claim 1, wherein the auxiliary system includes a first subsystem and a second subsystem;
    所述通过所述辅助系统接收外界数据,包括:The receiving external data through the auxiliary system includes:
    通过所述第一子系统的数据接收模块接收外界数据;Receiving external data through the data receiving module of the first subsystem;
    相应的,所述将所述外界数据的数据内容在所述辅助系统内进行对外通知,包括:Correspondingly, the external notification of the data content of the external data in the auxiliary system includes:
    在所述第二子系统的屏幕上显示所述外界数据的数据内容;Displaying the data content of the external data on the screen of the second subsystem;
    相应的,所述在所述辅助系统内针对所述外界数据进行对外提示,包括:Correspondingly, the external prompting of the external data in the auxiliary system includes:
    在所述第二子系统的屏幕上针对所述外界数据进行对外提示。An external prompt for the external data is performed on the screen of the second subsystem.
  6. 一种数据处理装置,应用于辅助系统,其特征在于,所述装置包括:A data processing device applied to an auxiliary system, characterized in that the device includes:
    外界数据接收模块,用于在判定主系统处于非唤醒状态时,通过所述辅助系统接收外界数据;The external data receiving module is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
    通知类型判断模块,用于判断所接收到的外界数据是否为所述辅助系统所支持的通知类型;A notification type judging module for judging whether the received external data is a notification type supported by the auxiliary system;
    对外通知模块,用于若经所述通知类型判断模块判定所接收到的外界数据为所述辅助系统所支持的通知类型,则将所述外界数据的数据内容通过所述辅助系统进行对外通知;The external notification module is configured to, if the received external data is determined by the notification type judging module to be a notification type supported by the auxiliary system, then externally notify the data content of the external data through the auxiliary system;
    对外提示模块,用于若经所述通知类型判断模块判定所接收到的外界数据为所述辅助系统所不支持的通知类型,则通过所述辅助系统针对所述外界数据进行对外提示。The external prompting module is configured to provide external prompts for the external data through the auxiliary system if the received external data is determined by the notification type judging module to be a notification type that is not supported by the auxiliary system.
  7. 根据权利要求6所述的装置,其特征在于,所述外界数据接收模块在通过所述辅助系统接收外界数据的过程中,还具体用于:7. The device according to claim 6, wherein the external data receiving module is further specifically configured to:
    切断所述主系统与外界的通信连接,以使所述辅助系统接收所有的外界数据。The communication connection between the main system and the outside world is cut off, so that the auxiliary system receives all outside data.
  8. 根据权利要求6所述的装置,其特征在于,所述对外通知模块具体用于:The device according to claim 6, wherein the external notification module is specifically configured to:
    从所述数据内容中抽取重点显示内容,并将所抽取的重点显示内容在辅助系统的屏幕上进行显示。The key display content is extracted from the data content, and the extracted key display content is displayed on the screen of the auxiliary system.
  9. 根据权利要求6所述的装置,其特征在于,所述对外提示模块具体用于:The device according to claim 6, wherein the external prompting module is specifically configured to:
    在所述辅助系统内的屏幕上显示未读消息提示和对应于所述数据内容的图标信息。An unread message prompt and icon information corresponding to the data content are displayed on the screen in the auxiliary system.
  10. 一种计算机可读存储介质,其特征在于,所述存储介质包括一组计算机可执行指令,当所述指令被执行时用于执行权利要求1-5任一项所述的数据处理方法。A computer-readable storage medium, wherein the storage medium includes a set of computer-executable instructions, which are used to execute the data processing method according to any one of claims 1 to 5 when the instructions are executed.
  11. 一种数据处理装置,其特征在于,所述装置包括辅助系统和开关模块:A data processing device, characterized in that the device includes an auxiliary system and a switch module:
    所述开关模块用于当主系统处于非唤醒状态时发出第一控制指令和第二控制指令,其中所述第一控制指令用于驱使所述主系统断开与外界的通信连接,所述第二控制指令用于驱使所述辅助系统与外界进行通信连接;The switch module is used to issue a first control instruction and a second control instruction when the main system is in a non-awake state, wherein the first control instruction is used to drive the main system to disconnect the communication connection with the outside world, and the second The control instruction is used to drive the auxiliary system to communicate with the outside world;
    所述辅助系统接收并响应于所述第二控制指令,以驱使所述辅助系统中的数据接收模块接收外界数据;The auxiliary system receives and responds to the second control instruction to drive the data receiving module in the auxiliary system to receive external data;
    所述辅助系统还用于将所接收到的外界数据对外告知。The auxiliary system is also used to notify the received external data.
  12. 根据权利要求11所述的装置,其特征在于,所述辅助系统具体用于将所接收到的外界数据通过语音播报的方式,或者通过在屏幕界面上显示的方式,或者通过网络进行信息传输的方式对外告知。The device according to claim 11, wherein the auxiliary system is specifically used to broadcast the received external data through voice, or through display on a screen interface, or through the network for information transmission. Ways to inform the public.
  13. 根据权利要求11所述的装置,其特征在于,所述辅助系统包括第一子系统和第二子系统;The device according to claim 11, wherein the auxiliary system includes a first subsystem and a second subsystem;
    所述数据接收模块安装在所述第一子系统中;The data receiving module is installed in the first subsystem;
    所述第一子系统具体用于将所接收到的外界数据中进行数据预处理,得到可被所述第一子系统和第二子系统共同应用的中间数据,并将所得到的中间数据传输给所述第二子系;The first subsystem is specifically used to perform data preprocessing on the received external data, to obtain intermediate data that can be jointly applied by the first subsystem and the second subsystem, and to transmit the obtained intermediate data To the second sub-line;
    所述第二子系统具体用于将所传输到的中间数据对外告知。The second subsystem is specifically used to notify the transmitted intermediate data to the outside.
  14. 根据权利要求13所述的装置,其特征在于,所述第一子系统还具体包括第一硬件接口模块和第一服务模块;The apparatus according to claim 13, wherein the first subsystem further specifically includes a first hardware interface module and a first service module;
    所述数据接收模块安装于所述第一硬件接口模块中;The data receiving module is installed in the first hardware interface module;
    所述第一硬件接口模块用于将由所述数据接收模块所接收到的外界数据传输到所述第一服务模块中;The first hardware interface module is used to transmit external data received by the data receiving module to the first service module;
    所述第一服务模块将所述外界数据进行数据预处理,得到中间数据,并将所述中间数据传输给所述第二子系统。The first service module performs data preprocessing on the external data to obtain intermediate data, and transmits the intermediate data to the second subsystem.
  15. 根据权利要求14所述的装置,其特征在于,所述第一硬件接口模块具体通过第一硬件抽象层将所述外界数据传输到所述第一服务模块中;The apparatus according to claim 14, wherein the first hardware interface module specifically transmits the external data to the first service module through a first hardware abstraction layer;
    所述第一服务模块具体通过第二硬件抽象层将所述中间数据传输给所述第二子系统。The first service module specifically transmits the intermediate data to the second subsystem through a second hardware abstraction layer.
  16. 根据权利要求14所述的装置,其特征在于,所述中间数据为数据内容;The device according to claim 14, wherein the intermediate data is data content;
    所述第一服务模块具体用于从所述外界数据进行去壳处理,以从所述外界数据中获取数据内容。The first service module is specifically configured to perform shelling processing from the external data to obtain data content from the external data.
  17. 根据权利要求13所述的装置,其特征在于,所述第二子系统包括第二硬件接口模块、显示屏幕和第二服务模块;The device according to claim 13, wherein the second subsystem includes a second hardware interface module, a display screen, and a second service module;
    所述第二服务模块用于接收所述中间数据,并对所述中间数据进行加壳处理,以得到仅供所述第二子系统应用的特定数据,并将所得到的特定数据传输到所述第二硬件接口模块;The second service module is used to receive the intermediate data, and pack the intermediate data to obtain specific data for the second subsystem application, and transmit the obtained specific data to all The second hardware interface module;
    所述第二硬件接口模块上安装所述显示屏幕,并根据所接收到的特定数据,显示所述特定数据中的中间数据。The display screen is installed on the second hardware interface module, and the intermediate data in the specific data is displayed according to the received specific data.
  18. 根据权利要求17所述的装置,其特征在于,所述第二服务模块通过第三硬件抽象层接收所述中间数据,并通过第四硬件抽象层将所述特定数据传输到所述第二硬件接口模块。The apparatus according to claim 17, wherein the second service module receives the intermediate data through a third hardware abstraction layer, and transmits the specific data to the second hardware through a fourth hardware abstraction layer. Interface module.
  19. 根据权利要求11所述的装置,其特征在于,所述开关模块还具体用于当所述辅助系统处于工作状态并且所述主系统从非唤醒状态转为唤醒状态时驱使所述辅助系统继续接收并对外告知外界数据。The device according to claim 11, wherein the switch module is further specifically configured to drive the auxiliary system to continue receiving when the auxiliary system is in a working state and the main system changes from a non-awakened state to an awakened state. And inform outside data.
  20. 根据权利要求11所述的装置,其特征在于,所述数据接收模块具体为蓝牙模块、无线收发模块和有线收发模块之一。The device according to claim 11, wherein the data receiving module is specifically one of a Bluetooth module, a wireless transceiver module, and a wired transceiver module.
  21. 一种数据读取方法,应用于辅助系统,其特征在于,所述辅助系统包括相互通信连接的第一子系统和第二子系统,所述方法包括:A data reading method applied to an auxiliary system, wherein the auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other, and the method includes:
    在判定主系统处于非唤醒状态下时通过所述第二子系统中的存储器获取已存数据;Acquiring stored data through the memory in the second subsystem when it is determined that the main system is in a non-awake state;
    将所获取的已存数据传输给所述第一子系统;Transmitting the acquired stored data to the first subsystem;
    指示所述第一子系统读取所述已存数据。Instruct the first subsystem to read the stored data.
  22. 根据权利要求21所述的方法,其特征在于,所述指示所述第一子系统读取所述已存数据,包括:The method of claim 21, wherein the instructing the first subsystem to read the stored data comprises:
    指示所述第一子系统对所接收到的已存数据进行加壳处理,得到仅供所述第一子系统应用的特定数据;Instruct the first subsystem to pack the received stored data to obtain specific data that is only applicable to the first subsystem;
    指示所述第一子系统对所得到的特定数据进行读取。Instruct the first subsystem to read the obtained specific data.
  23. 一种数据存储方法,应用于辅助系统,其特征在于,所述辅助系统包括相互通信连接的第一子系统和第二子系统,所述方法包括:A data storage method applied to an auxiliary system, wherein the auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other, and the method includes:
    在判定主系统处于非唤醒状态下时,通过第一子系统中的数据接收模块获取外界数据,When it is determined that the main system is in a non-awake state, the external data is obtained through the data receiving module in the first subsystem,
    或者,在判定主系统处于唤醒状态下时,通过所述主系统接收外界数据;Or, when it is determined that the main system is in an awake state, receiving external data through the main system;
    将所获取的外界数据传输给所述第二子系统;Transmitting the acquired external data to the second subsystem;
    指示所述第二子系统将所述传输得到的外界数据存储到存储器中。Instruct the second subsystem to store the external data obtained by the transmission in the memory.
  24. 根据权利要求23所述的方法,其特征在于,所述数据接收模块为低功耗蓝牙模块;The method according to claim 23, wherein the data receiving module is a Bluetooth low energy module;
    相应的,所述通过第一子系统中的数据接收模块获取外界数据,包括:Correspondingly, the acquiring external data through the data receiving module in the first subsystem includes:
    通过与所述低功耗蓝牙模块配对的设备获取外界数据;Acquiring external data through a device paired with the Bluetooth low energy module;
    所述主系统中包括经典蓝牙模块;The main system includes a classic Bluetooth module;
    相应的,所述从所述主系统接收外界数据,具体包括:Correspondingly, the receiving external data from the main system specifically includes:
    从所述主系统中的经典蓝牙模块所配对的设备获取到外界数据。The external data is obtained from the device paired with the classic Bluetooth module in the main system.
  25. 根据权利要求24所述的方法,其特征在于,在蓝牙配对的过程中,所述方法还包括:The method according to claim 24, wherein in the process of Bluetooth pairing, the method further comprises:
    在判定所述主系统处于唤醒状态时,通过所述主系统中的经典蓝牙模块与设备进行配对,所述低功耗蓝牙模块失去配对功能;When it is determined that the main system is in an awake state, pairing with the device through the classic Bluetooth module in the main system, the Bluetooth low energy module loses the pairing function;
    在判定所述主系统处于非唤醒状态时,通过所述辅助系统中的低功耗蓝牙模块与设备进行配对,所述经典蓝牙模块失去配对功能。When it is determined that the main system is in a non-awake state, the Bluetooth low energy module in the auxiliary system is paired with the device, and the classic Bluetooth module loses the pairing function.
  26. 根据权利要求24所述的方法,其特征在于,所述方法还包括:The method according to claim 24, wherein the method further comprises:
    在经典蓝牙模块已与所述设备配对的状态下,若所述主系统在唤醒状态切换至非唤醒状态时,所述经典蓝牙模块与已配对设备断开连接;In a state where the classic Bluetooth module has been paired with the device, if the main system switches from the awakened state to the non-awake state, the classic Bluetooth module is disconnected from the paired device;
    指示所述低功耗蓝牙模块向待配对设备发出配对请求指令。Instruct the Bluetooth low energy module to send a pairing request instruction to the device to be paired.
  27. 一种数据读取装置,应用于辅助系统,其特征在于,所述辅助系统包括相互通信连接的第一子系统和第二子系统,所述装置包括:A data reading device applied to an auxiliary system, wherein the auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other, and the device includes:
    已存数据获取模块,用于在判定主系统处于非唤醒状态下时通过所述第二子系统中的存储器获取已存数据;The stored data acquisition module is used to acquire the stored data through the memory in the second subsystem when it is determined that the main system is in a non-awake state;
    已存数据传输模块,用于将所获取的已存数据传输给所述第一子系统;The stored data transmission module is used to transmit the acquired stored data to the first subsystem;
    已存数据读取模块,用于指示所述第一子系统读取所述已存数据。The stored data reading module is used to instruct the first subsystem to read the stored data.
  28. 一种数据存储装置,应用于辅助系统,其特征在于,所述辅助系统包括相互通信连接的第一子系统和第二子系统,所述装置包括:A data storage device applied to an auxiliary system, wherein the auxiliary system includes a first subsystem and a second subsystem that are communicatively connected to each other, and the device includes:
    外界数据获取模块,用于在判定主系统处于非唤醒状态下时,通过第一子系统中的数据接收模块获取外界数据,The external data acquisition module is used to acquire external data through the data receiving module in the first subsystem when it is determined that the main system is in a non-awake state,
    或者,在判定主系统处于唤醒状态下时,通过所述主系统接收外界数据;Or, when it is determined that the main system is in an awake state, receiving external data through the main system;
    外界数据传输模块,用于将所获取的外界数据传输给所述第二子系统;An external data transmission module for transmitting the acquired external data to the second subsystem;
    外界数据存储模块,用于指示所述第二子系统将所述传输得到的外界数据存储到存储器中。The external data storage module is used to instruct the second subsystem to store the external data obtained by the transmission in the memory.
  29. 一种计算机可读存储介质,其特征在于,所述存储介质包括一组计算机可执行指令,当所述指令被执行时用于执行权利要求21-22任一项所述的数据读取方法。A computer-readable storage medium, wherein the storage medium includes a set of computer-executable instructions, which are used to execute the data reading method according to any one of claims 21-22 when the instructions are executed.
  30. 一种计算机可读存储介质,其特征在于,所述存储介质包括一组计算机可执行指令,当所述指令被执行时用于执行权利要求23-26任一项所述的数据存储方法。A computer-readable storage medium, wherein the storage medium includes a set of computer-executable instructions, which are used to execute the data storage method according to any one of claims 23-26 when the instructions are executed.
  31. 一种通信切换方法,其特征在于,所述方法包括:A communication switching method, characterized in that the method includes:
    在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;When determining that the main system is in a non-awake state, receive external data through the auxiliary system;
    判断所接收到的外界数据的通知类型;Determine the notification type of the received external data;
    若判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒所述主系统,并指示所述主系统处理所述外界数据。If it is determined that the notification type of the received external data is a specific notification type, the main system is awakened, and the main system is instructed to process the external data.
  32. 根据权利要求31所述的方法,其特征在于,所述方法还包括:The method according to claim 31, wherein the method further comprises:
    若判定所接收到的外界数据的通知类型为普通通知类型时,则指示辅助系统处理所述外界数据。If it is determined that the notification type of the received external data is a normal notification type, the auxiliary system is instructed to process the external data.
  33. 根据权利要求32所述的方法,其特征在于,所述指示辅助系统处理所述外界数据,包括:The method according to claim 32, wherein the processing of the external data by the instruction assistance system comprises:
    指示辅助系统将所述外界数据对外告知。Instruct the auxiliary system to notify the external data.
  34. 根据权利要求31所述的方法,其特征在于,在唤醒所述主系统,并指示所述主系统处理所述外界数据的过程中,所述方法还包括:The method according to claim 31, wherein, in the process of waking up the main system and instructing the main system to process the external data, the method further comprises:
    断开辅助系统与外界的通信连接;Disconnect the communication connection between the auxiliary system and the outside world;
    当所述主系统处理完成之后,或者当所述主系统进入非唤醒状态时,所述辅助系统与外界重新建立通信连接。After the processing of the main system is completed, or when the main system enters a non-awake state, the auxiliary system re-establishes a communication connection with the outside world.
  35. 根据权利要求31或34所述的方法,其特征在于,所述唤醒所述主系统,并指示所述主系统处理所述外界数据,包括:The method according to claim 31 or 34, wherein the waking up the main system and instructing the main system to process the external data comprises:
    利用开关模块唤醒所述主系统中的经典蓝牙模块,并指示所述经典蓝牙模块处理所述外界数据。The switch module is used to wake up the classic Bluetooth module in the main system, and instruct the classic Bluetooth module to process the external data.
  36. 一种通信切换装置,其特征在于,所述装置包括:A communication switching device, characterized in that the device includes:
    外界数据接收模块,用于在判定主系统处于非唤醒状态时,通过辅助系统接收外界数据;The external data receiving module is used to receive external data through the auxiliary system when it is determined that the main system is in a non-awake state;
    通知类型判断模块,用于判断所接收到的外界数据的通知类型;The notification type judgment module is used to judge the notification type of the received external data;
    第一数据处理模块,用于经所述通知类型判断模块判定所接收到的外界数据的通知类型为特定通知类型时,则唤醒所述主系统,并指示所述主系统处理所述外界数据。The first data processing module is configured to wake up the main system and instruct the main system to process the external data when the notification type determining module determines that the notification type of the received external data is a specific notification type.
  37. 根据权利要求36所述的装置,其特征在于,所述装置还包括:The device according to claim 36, wherein the device further comprises:
    第二数据处理模块,用于经所述通知类型判断模块判定所接收到的外界数据的通知类型为普通通知类型时,指示辅助系统处理所述外界数据。The second data processing module is configured to instruct the auxiliary system to process the external data when the notification type of the received external data is determined by the notification type judging module to be a common notification type.
  38. 根据权利要求37所述的装置,其特征在于,所述第二数据处理模块,具体用于:The device according to claim 37, wherein the second data processing module is specifically configured to:
    指示所述辅助系统将所述外界数据对外告知。Instruct the auxiliary system to notify the external data.
  39. 根据权利要求36所述的装置,其特征在于,所述第一数据处理模块,具体用于:The device according to claim 36, wherein the first data processing module is specifically configured to:
    利用开关模块唤醒所述主系统中的经典蓝牙模块,并指示所述经典蓝牙模块处理所述外界数据。The switch module is used to wake up the classic Bluetooth module in the main system, and instruct the classic Bluetooth module to process the external data.
  40. 一种计算机可读存储介质,其特征在于,所述存储介质包括一组计算机可执行指令,当所述指令被执行时用于执行权利要求31-35任一项所述的通信切换方法。A computer-readable storage medium, wherein the storage medium includes a set of computer-executable instructions, which are used to execute the communication switching method according to any one of claims 31-35 when the instructions are executed.
PCT/CN2020/138377 2020-04-09 2020-12-22 Data processing method and apparatus, and computer readable storage medium WO2021203737A1 (en)

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
CN202010274261.8A CN111586653B (en) 2020-04-09 2020-04-09 Data reading and storing method, device and computer readable storage medium
CN202010274261.8 2020-04-09
CN202010274913.8 2020-04-09
CN202010274254.8 2020-04-09
CN202010274254.8A CN111586652B (en) 2020-04-09 2020-04-09 Communication switching method, device and computer readable storage medium
CN202010274281.5A CN111601372B (en) 2020-04-09 2020-04-09 Data processing device
CN202010274281.5 2020-04-09
CN202010274913.8A CN111538400A (en) 2020-04-09 2020-04-09 Data notification method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2021203737A1 true WO2021203737A1 (en) 2021-10-14

Family

ID=78023672

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/138377 WO2021203737A1 (en) 2020-04-09 2020-12-22 Data processing method and apparatus, and computer readable storage medium

Country Status (1)

Country Link
WO (1) WO2021203737A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927200A (en) * 2014-03-25 2014-07-16 小米科技有限责任公司 Electronic equipment awakening method and related device
CN104035877A (en) * 2013-01-29 2014-09-10 三星电子株式会社 Apparatus and method for managing memory of mobile terminal
US20150121102A1 (en) * 2013-10-31 2015-04-30 Kyocera Document Solutions Inc. Electronic Device That Ensures Reduced Unnecessary Recovery
CN109151961A (en) * 2018-07-20 2019-01-04 重庆宝力优特科技有限公司 A kind of operation method of mobile terminal, terminal and computer readable storage medium
CN111538400A (en) * 2020-04-09 2020-08-14 出门问问信息科技有限公司 Data notification method and device and computer readable storage medium
CN111586653A (en) * 2020-04-09 2020-08-25 出门问问信息科技有限公司 Data reading and storing method and device and computer readable storage medium
CN111586652A (en) * 2020-04-09 2020-08-25 出门问问信息科技有限公司 Communication switching method and device and computer readable storage medium
CN111601372A (en) * 2020-04-09 2020-08-28 出门问问信息科技有限公司 Data processing device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035877A (en) * 2013-01-29 2014-09-10 三星电子株式会社 Apparatus and method for managing memory of mobile terminal
US20150121102A1 (en) * 2013-10-31 2015-04-30 Kyocera Document Solutions Inc. Electronic Device That Ensures Reduced Unnecessary Recovery
CN103927200A (en) * 2014-03-25 2014-07-16 小米科技有限责任公司 Electronic equipment awakening method and related device
CN109151961A (en) * 2018-07-20 2019-01-04 重庆宝力优特科技有限公司 A kind of operation method of mobile terminal, terminal and computer readable storage medium
CN111538400A (en) * 2020-04-09 2020-08-14 出门问问信息科技有限公司 Data notification method and device and computer readable storage medium
CN111586653A (en) * 2020-04-09 2020-08-25 出门问问信息科技有限公司 Data reading and storing method and device and computer readable storage medium
CN111586652A (en) * 2020-04-09 2020-08-25 出门问问信息科技有限公司 Communication switching method and device and computer readable storage medium
CN111601372A (en) * 2020-04-09 2020-08-28 出门问问信息科技有限公司 Data processing device

Similar Documents

Publication Publication Date Title
CN107809793B (en) Awakening control method and device of intelligent terminal
WO2021052413A1 (en) Energy-saving signal monitoring time determination and configuration method, and related device
US20090064195A1 (en) Method for synchronizing information of dual operating systems
EP3962167A1 (en) Handover method and terminal
CN107592615B (en) Positioning method and device
WO2016045027A1 (en) Screen sensitivity adjustment method and mobile terminal
US20220264462A1 (en) Wake-up signal configuration method, wake-up signal processing method, and related device
EP4132122A1 (en) Power optimization method and electronic device
US20230324974A1 (en) Method for system switching, wearable device, and storage medium
CN110543333B (en) Sleep processing method and device for processor, mobile terminal and storage medium
CN111601372B (en) Data processing device
EP4120747A1 (en) Transmission configuration method and electronic device
CN112153214A (en) Terminal state control method and terminal
WO2021203737A1 (en) Data processing method and apparatus, and computer readable storage medium
CN111586652A (en) Communication switching method and device and computer readable storage medium
CN111586653B (en) Data reading and storing method, device and computer readable storage medium
CN111538400A (en) Data notification method and device and computer readable storage medium
CN112637937B (en) Energy-saving signal receiving method, energy-saving signal sending method and related equipment
CN106249843B (en) A kind of course control method, device and mobile device
EP3917179A1 (en) Resource pool switching method and apparatus, and mobile terminal, network side device and medium
EP1542118A1 (en) Hybrid mobile terminal and method for controlling the same
WO2021197123A1 (en) Dormancy behavior processing method, indication method, terminal, and network device
CN111176598B (en) Multimedia apparatus and output method, and processing apparatus and control method
WO2023124622A1 (en) Method and apparatus for maintaining communication connection, and device, storage medium and program product
WO2021057778A1 (en) Pdcch monitoring control method and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20930227

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20930227

Country of ref document: EP

Kind code of ref document: A1