A method, device, equipment and storage medium for wake-up communication between multiple single-chip computers

By setting up a communication channel for level signal interaction in a multi-microcontroller system, the problem that the main control microcontroller cannot determine the wake-up status of the auxiliary microcontroller is solved, enabling reliable execution of communication commands and improving communication efficiency.

CN114647448BActive Publication Date: 2024-11-05AEROSPACE SCI & IND INERTIA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011494883.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2024-11-05
Estimated Expiration
2040-12-17

AI Technical Summary

Technical Problem

In a multi-microcontroller system, the master microcontroller cannot determine whether the auxiliary microcontroller has been woken up or whether the serial communication interface is ready to receive data, making it difficult to guarantee the correct execution of communication commands.

Method used

By setting up first and second communication channels between the first and second microcontrollers, the wake-up status of the other party is confirmed by level signal interaction, thus ensuring the correct execution of communication commands.

Benefits of technology

This increases the probability of correct execution of communication commands between multiple microcontrollers, ensuring the reliability and efficiency of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114647448B_ABST
    Figure CN114647448B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment and storage medium for waking up communication between multiple single-chip microcomputers. The method is applied to a multi-chip microcomputer system, the system includes a first single-chip microcomputer and a second single-chip microcomputer, and the method includes: after the first single-chip microcomputer wakes up from a sleep state, it is determined whether the wake-up is an active wake-up; if the wake-up is an active wake-up, the first single-chip microcomputer sends a first signal to the second single-chip microcomputer to wake up the second single-chip microcomputer; when the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer, the first single-chip microcomputer confirms that the second single-chip microcomputer has woken up. The implementation method of the present application can increase the probability of correct execution of communication commands between the first single-chip microcomputer and the second single-chip microcomputer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer data processing, and in particular to a method, device, equipment and storage medium for wake-up communication between multiple single-chip microcomputers. Background Art

[0002] A multi-MCU system is usually composed of multiple groups of MCUs, which interact and work together to complete tasks. When a multi-MCU system is used in an IoT intelligent terminal (RTU), under the requirements of low power consumption and miniaturization, RTU has the characteristics of low power consumption, small size and easy integration. However, since RTU requires many external interfaces and highly integrated functions, and one MCU cannot realize all RTU functions due to the limitation of the number of pins and response time, multiple MCUs are usually required to work together to complete the task.

[0003] When multiple MCUs complete tasks, they are usually divided into a master MCU and multiple parallel auxiliary MCUs according to their functions. The master MCU completes the main functions of RTU, namely the collection, data processing and remote data transmission of multiple sensor data, etc. The auxiliary MCU completes the collection of circuit's own environmental status information, motion status information collection and equipment detection, etc.

[0004] Due to the size and battery capacity of the device, multiple MCUs need to be in a dormant state during non-task processing time to reduce power consumption. When the master MCU or the auxiliary MCU is performing a task, they can wake each other up and communicate using the serial communication interface. Usually, when the MCU is woken up and communicates, the IO pin other than the serial communication interface receiving pin is set as an IO interrupt. First, the command initiator wakes up the command receiver through the IO interrupt. After the command receiver is woken up, the serial communication interface is initialized. The command initiator sends the command to the command receiver after a certain delay (tens to hundreds of milliseconds). After the command receiver executes the command, it actively returns to the low-power mode or the command initiator sends a command to put it into the low-power mode.

[0005] In the above process, the command initiator cannot know whether the command receiver is awakened or whether its serial communication interface is ready to receive data. The command initiator can only set an empirical value of the delay time. At this time, whether the command can be successful depends entirely on the wake-up response time of the command receiver. For the command receiver, which is a main control microcontroller with many tasks to execute, its response time will be difficult to guarantee due to the large number of tasks to execute, and ultimately it is impossible to ensure the correct execution of the communication commands of both parties. Summary of the invention

[0006] The purpose of the embodiments of the present application is to provide a method, device, equipment and storage medium for wake-up communication between multiple microcontrollers to improve the probability of correct execution of communication commands between the main control microcontroller and the auxiliary microcontroller.

[0007] To achieve the above-mentioned object, on the one hand, an embodiment of the present application provides a method for waking up communication between multiple single-chip microcomputers, which is applied to a multi-single-chip microcomputer system, wherein the system includes a first single-chip microcomputer and a second single-chip microcomputer, and the method includes:

[0008] After the first single-chip microcomputer wakes up from the sleep state, it is determined whether the wake-up is an active wake-up;

[0009] If the current wake-up is active wake-up, the first single-chip microcomputer sends a first signal to the second single-chip microcomputer to wake up the second single-chip microcomputer;

[0010] When the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer, the first single-chip microcomputer confirms that the second single-chip microcomputer has woken up.

[0011] Preferably, a first communication channel and a second communication channel are provided between the first single chip microcomputer and the second single chip microcomputer;

[0012] Accordingly, the first single-chip microcomputer sends a first signal to the second single-chip microcomputer, including:

[0013] The first single-chip microcomputer provides a first level signal to the second single-chip microcomputer through the first communication channel;

[0014] Correspondingly, the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer, including:

[0015] The first single-chip microcomputer obtains the second level signal provided by the second single-chip microcomputer through the second communication channel.

[0016] Preferably, before the first single-chip microcomputer provides the first level signal to the second single-chip microcomputer through the first communication channel, the method further includes:

[0017] If the first single-chip microcomputer wakes up actively this time, the first single-chip microcomputer sets an active wake-up state flag;

[0018] After the first single chip microcomputer sends the first signal to the second single chip microcomputer, the method further includes:

[0019] When the signal returned by the second single-chip microcomputer is obtained, the first single-chip microcomputer queries whether the active wake-up state flag is set;

[0020] When the active wake-up state flag is set, the first single-chip microcomputer confirms that the signal returned by the second single-chip microcomputer is the second signal.

[0021] Preferably, it also includes:

[0022] If the current awakening is a passive awakening, the first single-chip microcomputer provides a third level signal to the second single-chip microcomputer through the first communication channel, so as to feedback to the second single-chip microcomputer that it has awakened.

[0023] Preferably, a second communication channel is provided between the first single-chip microcomputer and the second single-chip microcomputer, and the determining whether the current awakening is an active awakening includes:

[0024] Detecting whether a fourth level signal exists in the second communication channel;

[0025] If there is no fourth level signal, the first single chip microcomputer determines that this wake-up is an active wake-up;

[0026] If there is a fourth level signal on the second communication channel, the first single chip microcomputer determines that this wake-up is a passive wake-up.

[0027] Preferably, a first communication channel and a second communication channel are provided between the first single-chip microcomputer and the second single-chip microcomputer, and after the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer, the method further includes:

[0028] After the communication between the first single-chip microcomputer and the second single-chip microcomputer is completed, the first single-chip microcomputer provides a fifth level signal to the second single-chip microcomputer through the first communication channel, so that the second single-chip microcomputer enters a dormant state;

[0029] When the first single-chip microcomputer obtains the sixth level signal provided by the second single-chip microcomputer through the second communication channel, the first single-chip microcomputer confirms that the second single-chip microcomputer has entered a dormant state;

[0030] The first single-chip microcomputer enters a dormant state;

[0031] After the communication between the first single-chip microcomputer and the second single-chip microcomputer is completed, the method further includes:

[0032] The first single-chip microcomputer clears the active wake-up state flag.

[0033] Preferably, it also includes:

[0034] The first single chip microcomputer detects whether an abnormality occurs in itself;

[0035] If the first single-chip microcomputer has an abnormality, the first single-chip microcomputer sends a fifth signal to the second single-chip microcomputer to put the second single-chip microcomputer into a dormant state;

[0036] When the first single-chip microcomputer obtains the sixth signal returned by the second single-chip microcomputer, the first single-chip microcomputer confirms that the second single-chip microcomputer has entered a dormant state;

[0037] The first single-chip microcomputer enters a sleep state.

[0038] On the other hand, the present application provides a device for waking up communication between multiple single-chip microcomputers, the device comprising:

[0039] A judgment module, used for judging whether the first single-chip microcomputer wakes up actively after waking up from a dormant state;

[0040] A wake-up module, used for sending a first signal to the second single-chip microcomputer to wake up the second single-chip microcomputer when the current wake-up is an active wake-up;

[0041] The confirmation module is used to confirm that the second single-chip microcomputer has woken up when the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer.

[0042] On the other hand, the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein when the computer program is executed by the processor, the instructions of any one of the above methods are executed.

[0043] On the other hand, the present application further provides a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor of a computer device, the computer program executes instructions of any one of the above methods.

[0044] It can be seen from the technical solution provided by the above embodiment of the present application that the embodiment of the present application sends a first signal to the second single-chip microcomputer through the first single-chip microcomputer, and when the second signal returned by the second single-chip microcomputer is queried, it is confirmed that the second single-chip microcomputer is awakened by the first single-chip microcomputer. Then the communication between the first single-chip microcomputer and the second single-chip microcomputer is carried out to ensure the normal execution of the communication command between the first single-chip microcomputer and the second single-chip microcomputer. The defect of the prior art that the response time is difficult to be guaranteed due to the large number of tasks to be executed, and ultimately makes it impossible to ensure the correct execution of the communication commands of both parties. Therefore, the embodiment of the present application can increase the probability of correct execution of communication commands between multiple single-chip microcomputers. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0046] Figure 1 It is a flowchart of a method for waking up communication between multiple single-chip microcomputers provided in an embodiment of the present application;

[0047] Figure 2 is a schematic diagram for reflecting the communication relationship between the first single-chip microcomputer and the second single-chip microcomputer provided in an embodiment of the present application;

[0048] Figure 3 It is a flowchart of another method for waking up communication between multiple single-chip microcomputers provided in an embodiment of the present application;

[0049] Figure 4 This is a partial flow chart of a method for waking up communication between multiple single-chip microcomputers provided in an embodiment of the present application;

[0050] Figure 5 This is another partial flow chart of a method for waking up communication between multiple single-chip microcomputers provided in an embodiment of the present application;

[0051] Figure 6 It is a schematic diagram of the module structure of a device for waking up communication between multiple single-chip computers provided in an embodiment of the present application;

[0052] Figure 7 It is a structural block diagram of a computer device provided in an embodiment of the present application.

[0053] Description of Reference Numerals

[0054] 1. First single-chip microcomputer; 11. First output pin; 12. Second input pin; 2. Second single-chip microcomputer; 21. First input pin; 22. Second output pin; 3. First communication channel; 4. Second communication channel; 402. Computer device; 404. Processor; 406. Memory; 410. Input / output module; 412. Input device; 414. Output device; 416. Presentation device; 418. GUI; 420. Network interface; 422. Communication link; 424. Communication bus. DETAILED DESCRIPTION

[0055] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0056] The following is an example of a specific application scenario to illustrate the implementation plan of this specification. Specifically, Figure 1It is a flow chart of an embodiment of a method for waking up communication between multiple single-chip microcomputers provided in this specification. Although this specification provides method operation steps or device structures as shown in the following embodiments or drawings, more or fewer operation steps or module units may be included in the method or device based on routine or no creative labor. In the steps or structures where there is no necessary causal relationship logically, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure shown in the embodiments or drawings of this specification. When the method or module structure described is applied in an actual device, server or terminal product, it can be executed sequentially or in parallel according to the method or module structure shown in the embodiments or drawings (for example, a parallel processor or multi-threaded processing environment, or even a distributed processing, server cluster implementation environment).

[0057] Of course, the description of the following embodiments does not limit other technical solutions that can be extended based on this specification.

[0058] A multi-MCU system is usually composed of multiple groups of MCUs. Multiple groups of MCUs interact and work together to complete tasks. They can be applied in various fields. When applied to the IoT intelligent terminal (RTU), because RTU requires more external interfaces and highly integrated functions, and one MCU cannot realize all RTU functions due to the number of pins and response time limitations, multiple MCUs are usually required to work together to complete the task. RTU is generally composed of a master MCU and multiple parallel auxiliary MCUs. In a multi-MCU system, the master MCU is responsible for completing the main functions of RTU, namely, data collection, data processing and remote data transmission of various sensors. The auxiliary MCU completes some auxiliary functions, namely, the collection of circuit's own environmental status information and motion status information and the detection of equipment status. During the serial port communication between the main control microcontroller and multiple auxiliary microcontrollers, the command initiator cannot know whether the command receiver is awakened or whether its serial communication interface is ready to receive data. The command initiator can only set an empirical value of the delay time. At this time, whether the command can be successful depends entirely on the wake-up response time of the command receiver. For the main control microcontroller with many tasks to execute, its response time will be difficult to guarantee due to the large number of tasks to execute, and ultimately it is impossible to ensure the correct execution of the communication commands of both parties.

[0059] In some embodiments, the multi-MCU system includes a first MCU and a second MCU. In one embodiment, the first MCU can be a master MCU, and the second MCU is any auxiliary MCU. In another embodiment, the first MCU can be any auxiliary MCU, and the second MCU is the master MCU. Figure 2A first communication channel 3 and a second communication channel 4 are arranged between the first single-chip microcomputer 1 and the second single-chip microcomputer 2. Specifically, a first output pin 11 and a second input pin 12 are arranged on the first single-chip microcomputer 1, and a first input pin 21 and a second output pin 22 are arranged on the second single-chip microcomputer 2. The first output pin 11 and the first input pin 21 are both IO pins, and the first communication channel 3 is formed after being electrically connected. The second output pin 22 and the second input pin 12 are both IO pins, and the second communication channel 4 is formed after being electrically connected.

[0060] Figure 1 This is a method flow diagram of an embodiment of a method for waking up communication between multiple single-chip microcomputers provided in the present application. The method is applied to a multi-chip microcomputer system. In the initial state, the first single-chip microcomputer and the second single-chip microcomputer are both in a low-power sleep state, and the first communication channel and the second communication channel are both at a low level.

[0061] The method comprises the following steps:

[0062] S101: After the first single-chip microcomputer wakes up from the sleep state, it is determined whether this wake-up is an active wake-up.

[0063] S102: If the current wake-up is an active wake-up, the first single-chip microcomputer sends a first signal to the second single-chip microcomputer to wake up the second single-chip microcomputer.

[0064] S103: When the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer, the first single-chip microcomputer confirms that the second single-chip microcomputer has woken up.

[0065] When the first single-chip microcomputer actively wakes up, the first single-chip microcomputer sends a first signal to the second single-chip microcomputer to wake up the second single-chip microcomputer. When the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer, it can confirm that the second single-chip microcomputer has been awakened. Then, the first single-chip microcomputer and the second single-chip microcomputer can communicate with each other through serial ports, thereby increasing the probability of correct execution of communication commands of both parties.

[0066] After the first single-chip microcomputer wakes up from the dormant state, it determines whether this wake-up is an active wake-up to confirm what operations should be performed later. In some embodiments, if this wake-up is an active wake-up, the first single-chip microcomputer opens its own serial port, and then provides a first level signal to the second single-chip microcomputer through the first communication channel. The first level signal is a high level, and the first communication channel outputs a high level to wake up the second single-chip microcomputer. The second single-chip microcomputer wakes up after receiving the first level signal, opens the serial port for communicating with the first single-chip microcomputer, and then provides a second level signal to the first single-chip microcomputer through the second communication channel, feedback that it has woken up, and the second level signal is a high level. After obtaining the second level signal, the first single-chip microcomputer confirms that the second single-chip microcomputer is awakened. At this time, the two parties can communicate through the serial port.

[0067] In one embodiment, the first single-chip microcomputer is a main control single-chip microcomputer, and when the acquisition time arrives, the first single-chip microcomputer actively wakes up from the low power consumption mode, and the acquisition time is a time preset manually in the first single-chip microcomputer. In another embodiment, the first single-chip microcomputer is an auxiliary single-chip microcomputer, and when the first single-chip microcomputer receives a parameter configuration command sent by a Bluetooth device, it actively wakes up from the low power consumption mode.

[0068] Reference Figure 3 , the method also includes step S104.

[0069] S104: If the current awakening is a passive awakening, the first single-chip microcomputer provides a third level signal to the second single-chip microcomputer through the first communication channel, so as to feedback to the second single-chip microcomputer that it has awakened.

[0070] In some embodiments, if the current awakening is a passive awakening, that is, awakened by the second microcontroller, the first microcontroller provides a third level signal to the second microcontroller through the first communication channel to feedback to the second microcontroller that it has woken up, and the third level signal is a high level.

[0071] Reference Figure 4 In some implementations, when the first single-chip microcomputer determines whether the current wake-up is an active wake-up, the first single-chip microcomputer includes the following steps:

[0072] S105: Detect whether there is a fourth level signal on the second communication channel.

[0073] S106: If there is no fourth level signal, the first single chip microcomputer determines that this wake-up is an active wake-up.

[0074] S107: If there is a fourth level signal, the first single chip microcomputer confirms that this wake-up is a passive wake-up.

[0075] Since the second communication channel is at a low level when the first single-chip microcomputer is in a low-power sleep state, if the first single-chip microcomputer wakes up by the second single-chip microcomputer, the second single-chip microcomputer sends a fourth level signal through the second communication channel to wake up the first single-chip microcomputer, and the fourth level signal is at a high level. If the first single-chip microcomputer wakes up actively, the second communication channel is still at a low level. Therefore, it is possible to determine whether the first single-chip microcomputer wakes up actively by detecting whether there is a fourth level signal on the second communication channel. If there is no fourth level signal, the first single-chip microcomputer confirms that this wakeup is an active wakeup, and if there is a fourth level signal, the first single-chip microcomputer confirms that this wakeup is a passive wakeup.

[0076] Reference Figure 3 In some implementations, if this wakeup is an active wakeup, step S108 is executed.

[0077] S108: If the first single-chip microcomputer wakes up actively this time, the first single-chip microcomputer sets an active wake-up state flag.

[0078] The active wake-up state mark is a parameter set in the running program of the first microcontroller and the second microcontroller. In the initial state, the active wake-up state mark is 0. When the first microcontroller determines that it is actively awakened, it opens the serial port for communication with the second microcontroller, and the first microcontroller sets its own active wake-up state mark to 1 to mark itself as the party that actively wakes up.

[0079] In some implementations, after the first single-chip microcomputer sends the first signal to the second single-chip microcomputer, the method further includes the following steps:

[0080] S109: When the signal returned by the second single-chip microcomputer is obtained, the first single-chip microcomputer queries whether the active wake-up state flag is set.

[0081] S110: When the active wake-up state flag is set, the first single-chip microcomputer confirms that the signal returned by the second single-chip microcomputer is the second signal.

[0082] When the first single-chip microcomputer is actively awakened, the first single-chip microcomputer sends a first level signal to the second single-chip microcomputer through the first communication channel to wake up the second single-chip microcomputer. If the second single-chip microcomputer is successfully awakened, it will return a second level signal through the second communication channel to inform the first single-chip microcomputer that it has woken up. After the first single-chip microcomputer obtains the signal through the second communication channel, it needs to determine whether the signal is a second level signal. The first single-chip microcomputer will query the active awakening status flag. When the active awakening status flag is set, it is confirmed that the signal returned by the second single-chip microcomputer is a second level signal, that is, it is confirmed that the second single-chip microcomputer has been successfully awakened.

[0083] In some embodiments, the method further comprises the following steps:

[0084] S111: After the communication between the first single-chip microcomputer and the second single-chip microcomputer is completed, the first single-chip microcomputer provides a fifth level signal to the second single-chip microcomputer through the first communication channel, so that the second single-chip microcomputer enters a sleep state.

[0085] S112: When the first single-chip microcomputer obtains the sixth level signal provided by the second single-chip microcomputer through the second communication channel, the first single-chip microcomputer confirms that the second single-chip microcomputer has entered the sleep state.

[0086] S113: The first single-chip microcomputer enters a sleep state.

[0087] In one embodiment, the first single-chip microcomputer is the main control single-chip microcomputer. When the first single-chip microcomputer and the second single-chip microcomputer communicate with each other, the first single-chip microcomputer initiates a serial communication command, collects the status data of the second single-chip microcomputer, and the second single-chip microcomputer serial port receives the communication command and executes the command and gives a response through the serial port. After the first single-chip microcomputer receives the response of the second single-chip microcomputer, it transmits the collected status data to the host computer, and the communication between the first single-chip microcomputer and the second single-chip microcomputer is completed. In another embodiment, the first single-chip microcomputer is an auxiliary single-chip microcomputer. When the first single-chip microcomputer and the second single-chip microcomputer communicate with each other, the first single-chip microcomputer initiates a serial communication command, transmits a wireless command, and the second single-chip microcomputer serial port receives the communication command and executes the command and gives a response through the serial port. After the first single-chip microcomputer receives the response of the second single-chip microcomputer, it sends the response to the Bluetooth device via Bluetooth. After the Bluetooth device receives the response, it disconnects the Bluetooth connection, ends the Bluetooth wireless communication, and the communication between the first single-chip microcomputer and the second single-chip microcomputer is completed.

[0088] In some embodiments, after the communication is completed, the first single-chip microcomputer provides a fifth level signal to the second single-chip microcomputer through the first communication channel, and the fifth level signal is a low level. The first communication channel outputs a low level to make the second single-chip microcomputer enter a low-power sleep state. After receiving the fifth level signal output by the first communication channel, the second single-chip microcomputer closes its own serial port and enters a low-power sleep state, and provides a sixth level signal to the first single-chip microcomputer through the second communication channel. The sixth level signal is a low level, which is used to feedback that the second single-chip microcomputer has entered a sleep state. After the first single-chip microcomputer obtains the sixth level signal provided by the second single-chip microcomputer through the second communication channel, it enters a low-power sleep state.

[0089] In some implementations, after the communication between the first single-chip microcomputer and the second single-chip microcomputer is completed, step S114 is further included.

[0090] S114: The first single-chip microcomputer clears the active wake-up state flag.

[0091] After the communication between the first single chip microcomputer and the second single chip microcomputer is completed, the first single chip microcomputer clears the active wake-up state flag to prevent errors in subsequent steps.

[0092] Reference Figure 5 In some embodiments, the method further comprises the following steps:

[0093] S115: The first single chip microcomputer detects whether there is any abnormality in itself.

[0094] S116: If there is an abnormality in the first single-chip microcomputer, the first single-chip microcomputer sends a fifth signal to the second single-chip microcomputer to put the second single-chip microcomputer into a sleep state.

[0095] S117: When the first single-chip microcomputer obtains the sixth signal returned by the second single-chip microcomputer, the first single-chip microcomputer confirms that the second single-chip microcomputer has entered the sleep state.

[0096] S118: The first single-chip microcomputer enters a sleep state.

[0097] The first single-chip microcomputer detects whether there is an abnormality in itself, and the abnormality includes abnormal level signal output, abnormal judgment, etc. If there is an abnormality, the first single-chip microcomputer and the second single-chip microcomputer are put into a dormant state to prevent disordered execution of steps and reduce energy waste. Specifically, the first single-chip microcomputer provides a fifth level signal to the second single-chip microcomputer through the first communication channel, and the fifth level signal is a low level. The first communication channel outputs a low level to make the second single-chip microcomputer enter a low-power dormant state. After receiving the fifth level signal output by the first communication channel, the second single-chip microcomputer closes its own serial port and enters a low-power dormant state, and provides a sixth level signal to the first single-chip microcomputer through the second communication channel. The sixth level signal is a low level, which is used to feedback that the second single-chip microcomputer has entered a dormant state. After the first single-chip microcomputer obtains the sixth level signal provided by the second single-chip microcomputer through the second communication channel, it enters a low-power dormant state.

[0098] Based on the above-mentioned method for waking up communication between multiple single-chip microcomputers, one or more embodiments of this specification also provide a device for waking up communication between multiple single-chip microcomputers. The device may include a system (including a distributed system), software (application), module, component, server, client, etc. using the method described in the embodiment of this specification and a device combined with necessary implementation hardware. Based on the same innovative concept, the device in one or more embodiments provided in the embodiment of this specification is as described in the following embodiments. Since the implementation scheme and method of the device to solve the problem are similar, the implementation of the specific device in the embodiment of this specification can refer to the implementation of the aforementioned method, and the repetitions will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0099] Specifically, Figure 6 This is a schematic diagram of the module structure of an embodiment of a device for waking up communication between multiple single-chip computers provided in this specification, such as Figure 6 As shown, the present specification provides a device for waking up communication between multiple single-chip computers, including: a judgment module 100, a wake-up module 200, and a confirmation module 300.

[0100] The judgment module 100 is used to judge whether the first single-chip microcomputer wakes up actively after waking up from the sleep state.

[0101] The wake-up module 200 is used to send a first signal to the second single-chip microcomputer to wake up the second single-chip microcomputer when the current wake-up is an active wake-up.

[0102] The confirmation module 300 is used to confirm that the second single-chip microcomputer has woken up when the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer.

[0103] In the present application, refer to Figure 7 , a computer device 402 is also provided. The computer device 402 may include one or more processors 404, such as one or more central processing units (CPUs) or graphics processing units (GPUs), each of which may implement one or more hardware threads. The computer device 402 may also include any memory 406, which is used to store any kind of information such as code, settings, data, etc. In a specific embodiment, a computer program on the memory 406 and executable on the processor 404, when the computer program is executed by the processor 404, can execute instructions according to the above method. Non-limitingly, for example, the memory 406 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent a fixed or removable component of the computer device 402. In one case, when the processor 404 executes an associated instruction stored in any memory or combination of memories, the computer device 402 may perform any operation of the associated instruction. The computer device 402 also includes one or more drive mechanisms 408 for interacting with any storage, such as a hard disk drive mechanism, an optical disk drive mechanism, etc.

[0104] The computer device 402 may also include an input / output module 410 (I / O) for receiving various inputs (via input device 412) and for providing various outputs (via output device 414). A specific output mechanism may include a presentation device 416 and an associated graphical user interface GUI418. In other embodiments, the input / output module 410 (I / O), input device 412, and output device 414 may not be included, and the computer device 402 may be used as a computer device in a network. The computer device 402 may also include one or more network interfaces 420 for exchanging data with other devices via one or more communication links 422. One or more communication buses 424 couple the components described above together.

[0105] The communication link 422 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 422 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.

[0106] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processor to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processor generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processor to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0108] These computer program instructions can also be loaded onto a computer or other programmable data processor so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0109] In a typical configuration, a computer device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0110] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0111] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computer device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0112] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0113] The present specification embodiments may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present specification embodiments may also be practiced in distributed computing environments where tasks are performed by remote processors connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

Claims

1. A method for waking up communication between multiple single-chip microcomputers, applied to a multi-single-chip microcomputer system, the system comprising a first single-chip microcomputer and a second single-chip microcomputer, It is characterized in that The method comprises: After the first single-chip microcomputer wakes up from the sleep state, it is determined whether the wake-up is an active wake-up; If the current wake-up is active wake-up, the first single-chip microcomputer sends a first signal to the second single-chip microcomputer to wake up the second single-chip microcomputer; When the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer, the first single-chip microcomputer confirms that the second single-chip microcomputer has woken up; A first communication channel and a second communication channel are provided between the first single chip microcomputer and the second single chip microcomputer; Accordingly, the first single-chip microcomputer sends a first signal to the second single-chip microcomputer, including: The first single-chip microcomputer provides a first level signal to the second single-chip microcomputer through the first communication channel; Correspondingly, the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer, including: The first single-chip microcomputer obtains a second level signal provided by the second single-chip microcomputer through the second communication channel; The determining whether the current awakening is an active awakening includes: Detecting whether a fourth level signal exists in the second communication channel; If there is no fourth level signal, the first single chip microcomputer confirms that this wake-up is an active wake-up; If there is a fourth level signal on the second communication channel, the first single chip microcomputer confirms that this wake-up is a passive wake-up; Before the first single-chip microcomputer provides the first level signal to the second single-chip microcomputer through the first communication channel, the method further includes: If the first single-chip microcomputer wakes up actively this time, the first single-chip microcomputer sets an active wake-up state flag; After the first single chip microcomputer sends the first signal to the second single chip microcomputer, the method further includes: When the signal returned by the second single-chip microcomputer is obtained, the first single-chip microcomputer queries whether the active wake-up state flag is set; When the active wake-up state flag is set, the first single-chip microcomputer confirms that the signal returned by the second single-chip microcomputer is a second signal; If the current awakening is a passive awakening, the first single-chip microcomputer provides a third level signal to the second single-chip microcomputer through the first communication channel, so as to feedback to the second single-chip microcomputer that it has awakened; After the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer, the method further includes: After the communication between the first single-chip microcomputer and the second single-chip microcomputer is completed, the first single-chip microcomputer provides a fifth level signal to the second single-chip microcomputer through the first communication channel, so that the second single-chip microcomputer enters a dormant state; When the first single-chip microcomputer obtains the sixth level signal provided by the second single-chip microcomputer through the second communication channel, the first single-chip microcomputer confirms that the second single-chip microcomputer has entered a dormant state; The first single-chip microcomputer enters a dormant state; After the communication between the first single-chip microcomputer and the second single-chip microcomputer is completed, the method further includes: The first single chip microcomputer clears the active wake-up state flag; The method further includes: the first single chip microcomputer detecting whether an abnormality occurs in itself; If the first single-chip microcomputer has an abnormality, the first single-chip microcomputer sends a fifth signal to the second single-chip microcomputer to put the second single-chip microcomputer into a dormant state; When the first single-chip microcomputer obtains the sixth signal returned by the second single-chip microcomputer, the first single-chip microcomputer confirms that the second single-chip microcomputer has entered a dormant state; The first single-chip microcomputer enters a sleep state.

2. A device for waking up communication between multiple single-chip computers, It is characterized in that The device adopts the method according to claim 1, and the device comprises: A judgment module, used for judging whether the first single-chip microcomputer wakes up actively after waking up from a dormant state; A wake-up module, used for sending a first signal to the second single-chip microcomputer to wake up the second single-chip microcomputer when the current wake-up is an active wake-up; The confirmation module is used to confirm that the second single-chip microcomputer has woken up when the first single-chip microcomputer obtains the second signal returned by the second single-chip microcomputer.

3. A computer device comprising a memory, a processor, and a computer program stored on the memory, It is characterized in that When the computer program is executed by the processor, the instructions of the method according to claim 1 are executed.

4. A computer storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor of a computer device, the computer program executes the instructions of the method according to claim 1 .