Wake-up method, communication module and medium

By receiving server data in the communication module and cache it, waiting for the host to wake up before sending data, the problem of data loss in low power consumption is solved, and the timeliness and accuracy of service interaction is improved.

CN119440641APending Publication Date: 2025-02-14FIBOCOM WIRELESS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411481353.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When the communication module receives server data in a low-power state, the prior art has the risk of data loss and cannot wake up the host in time for service interaction.

Method used

By receiving server data from the server, cache it, and sending a first signal to the host to wake up the host. After receiving the second signal that the host has been awakened, the cached server data is sent to the host.

Benefits of technology

Ensure that server data is sent when the host has been awakened effectively reduces the risk of server data loss and ensures the timeliness and accuracy of host services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440641A_ABST
    Figure CN119440641A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a wake-up method, a communication module and a medium, the method is applied to the communication module, the wake-up method comprises the steps of receiving server data from a server, caching the server data, sending a first signal to a host, receiving a second signal from the host, the second signal is used for indicating that the host is awakened, and sending the cached server data to the host in response to the second signal. According to the embodiment of the invention, the risk of server data loss can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a wake-up method, a communication module and a medium. Background Art

[0002] With the rapid development of the Internet of Things, communication modules are increasingly used in various industries, and the battery life of products has become one of the most important competitive advantages. Therefore, the communication module not only needs to support low power consumption characteristics, but also needs to be able to wake up the host in time when receiving server data during low power consumption to interact with the service. Therefore, it is necessary to use a method to quickly wake up the host when the communication module receives server data in a low power state, and not to lose data, to ensure the timeliness and accuracy of the host service. However, there is a risk of data loss when using existing solutions.

[0003] Therefore, a wake-up method needs to be studied to solve the problem of data loss. Summary of the invention

[0004] The embodiments of the present application provide a wake-up method, a communication module and a medium, which can effectively reduce the risk of data loss.

[0005] In a first aspect, an embodiment of the present application provides a wake-up method, which can be applied to a communication module, and the method includes:

[0006] receiving server data from a server, and caching the server data;

[0007] Sending a first signal to a host, where the first signal is used to wake up the host;

[0008] receiving a second signal from the host, wherein the second signal is used to indicate that the host has been awakened;

[0009] In response to the second signal, the server data is sent to the host.

[0010] In the embodiment of the present application, after receiving the server data, the communication module first caches the server data, then wakes up the host, and sends the server data to the host after receiving a confirmation signal that the host has been awakened. The communication module uses the above process to send and receive server data to ensure that the server data is sent when the host has been awakened, thereby effectively reducing the risk of server data loss.

[0011] In a possible implementation, the receiving the server data includes: receiving the server data when the communication module is in a low power consumption mode. During the low power consumption mode, the communication module receives the server data and caches the server data, then wakes up the host, and sends the server data to the host after receiving a confirmation signal that the host has been woken up.

[0012] In this implementation, the communication module sends and receives server data during the low power consumption mode, which can reduce the energy loss of the communication module, improve the battery life of the communication module, and also effectively reduce the risk of server data loss.

[0013] In a possible implementation, after sending the server data, the method further includes: receiving a third signal from the host, where the third signal is used to wake up the communication module.

[0014] In this implementation, after the communication module sends server data to the host, it receives a wake-up signal from the host and is then awakened, so that after sending the server data, the communication module is in an awakened state during business interaction with the host. Business interaction is performed when both the communication module and the host are in an awakened state, which can increase the speed of business interaction and thereby ensure the timeliness of the host's business, while also effectively reducing the risk of server data loss.

[0015] In a possible implementation, the communication module includes a first input pin and a first output pin, and the host includes a second input pin and a second output pin; the first input pin is connected to the second output pin, and the first output pin is connected to the second input pin;

[0016] The sending of a first signal to the host comprises:

[0017] Sending a first signal to the second input pin via the first output pin;

[0018] The receiving a second signal from the host comprises:

[0019] A second signal sent by the second output pin is received through the first input pin.

[0020] Exemplarily, the first output pin may be a wake-up (WAKEUP_HOST) pin or a ring indication (ringindicator, RI) pin, the first input pin may be an awakened input (HOST_READY) pin, the second input pin may be an interrupt (external interrupt, EINT) pin, and the second output pin may be an awakened output (WAKEUP_READY) pin.

[0021] In this implementation, the power module of the communication module is connected to the host through pins, and signal reception and transmission are realized through the pins. The first signal is transmitted to wake up the host, and the second signal is received to indicate that the host has been awakened. Thus, server data can be sent while ensuring that the host has been awakened, thereby effectively reducing the risk of server data loss.

[0022] In a possible implementation, the communication module further includes a first receiving pin and a first sending pin, and the host further includes a second receiving pin and a second sending pin; the first receiving pin is connected to the second sending pin, and the first sending pin is connected to the second receiving pin;

[0023] The sending the server data to the host comprises:

[0024] The server data is sent to the second receiving pin through the first sending pin.

[0025] Exemplarily, the first receiving pin may be a receiver or receiving end (receiver, RX) pin, the first sending pin may be a transmitter or transmitting end (transmitter, TX) pin, the second receiving pin may be a receiver or receiving end (receiver, RX) pin, and the second sending pin may be a transmitter or transmitting end (transmitter, TX) pin.

[0026] In this implementation method, the data transmission module of the communication module is connected to the host through pins, and data transmission is realized through the pins. Compared with wireless communication, the above transmission method has more stable data transmission and stronger anti-interference ability. In addition, data transmission is performed when the host has been awakened, which can effectively reduce the risk of server data loss.

[0027] In a second aspect, an embodiment of the present application provides a wake-up method, which can be applied to a host, and the method includes:

[0028] When the host is in a low power consumption mode, a first signal is received from a communication module, wherein the first signal is used to wake up the host; in response to the first signal, a second signal is sent to the communication module, wherein the second signal is used to indicate that the host has been awakened.

[0029] In an embodiment of the present application, when the host is in a low power consumption mode, it is immediately awakened upon receiving a first signal from the communication module, and sends a second signal to the communication module to inform the communication module that the host has been awakened. The communication module can then send the cached server data to the host, thereby ensuring that the server data is transmitted when the host has been awakened, which can effectively reduce the risk of server data loss.

[0030] In a possible implementation manner, after sending the second signal, the method further includes:

[0031] receiving server data from the communication module;

[0032] In a case where the server data includes wake-up data, a third signal is sent to the communication module, where the third signal is used to wake up the communication module.

[0033] In this implementation, after the host is awakened and sends the second signal to the communication module, it receives the server data from the communication module, effectively reducing the risk of server data loss. A third signal is sent to the communication module to wake up the communication module, ensuring the normal interaction of communication services. Optionally, the host sends a third signal to the communication module, and the third signal is used to wake up the communication module. When both the host and the communication module have been awakened, business interaction is performed, which can ensure the accuracy and timeliness of the host business.

[0034] In a third aspect, an embodiment of the present application provides a communication module, which includes a module for executing part or all of the methods described in the first aspect of the embodiment of the present application.

[0035] In a fourth aspect, an embodiment of the present application provides a communication module, which includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute a module of part or all of the methods described in the first aspect of the embodiment of the present application.

[0036] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by an application processor, the application processor executes modules of part or all of the methods described in the first aspect of the embodiment of the present application, or executes modules of part or all of the methods described in the second aspect of the embodiment of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0038] Figure 1 This is a schematic diagram of a connection between a communication module and a host provided in an embodiment of the present application;

[0039] Figure 2 This is a schematic diagram of another connection between a communication module and a host provided in an embodiment of the present application;

[0040] Figure 3 is a waveform diagram of a first signal and a second signal provided in an embodiment of the present application;

[0041] Figure 4 is another waveform diagram of a first signal and a second signal provided in an embodiment of the present application;

[0042] Figure 5 It is a flowchart of a wake-up method provided in an embodiment of the present application;

[0043] Figure 6 is a flowchart of another wake-up method provided in an embodiment of the present application;

[0044] Figure 7 This is a flowchart of another wake-up method provided in an embodiment of the present application;

[0045] Figure 8 It is a structural schematic diagram of a communication module provided in an embodiment of the present application;

[0046] Fig. 9 is another structural schematic diagram of a communication module provided in an embodiment of the present application;

[0047] Fig.10 This is another structural diagram of the communication module provided in the embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0049] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0050] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0051] In the present application, "at least one (item)" means one or more, "more than one" means two or more, "at least two (items)" means two or three and more than three, and "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. "Or" means that two relationships may exist, such as only A exists, only B exists; when A and B are not mutually exclusive, it can also mean that there are three relationships, such as only A exists, only B exists, and A and B exist at the same time. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c".

[0052] In this application, "indication" may include direct indication, indirect indication, explicit indication, and implicit indication. When describing that a certain indication information is used to indicate A, it can be understood that the indication information carries A, directly indicates A, or indirectly indicates A.

[0053] In the present application, the information indicated by the indication information is referred to as the information to be indicated. The information used to indicate a certain information shown below can all be referred to as indication information. In the specific implementation process, there are many ways to indicate the information to be indicated, such as but not limited to, the information to be indicated can be directly indicated, such as the information to be indicated itself or the index of the information to be indicated. The information to be indicated can also be indirectly indicated by indicating other information, wherein there is an association relationship between the other information and the information to be indicated. It is also possible to indicate only a part of the information to be indicated, while the other parts of the information to be indicated are known or agreed in advance. For example, the indication of specific information can also be achieved by means of the arrangement order of each information agreed in advance (for example, specified by the protocol), thereby reducing the indication overhead to a certain extent. In addition, the information to be indicated can be sent together as a whole, or it can be divided into multiple sub-information and sent separately, and the sending period and / or sending time of these sub-information can be the same or different.

[0054] In this application, "send" and "receive" indicate the direction of signal transmission. For example, "send information to XX" can be understood as the destination of the information is XX, which can include direct sending through the air interface, and also include indirect sending through the air interface by other units or modules. "Receiving information from YY" can be understood as the source of the information is YY, which can include direct reception from YY through the air interface, and also include indirect reception from YY through the air interface from other units or modules. "Send" can also be understood as the "output" of the chip interface, and "receive" can also be understood as the "input" of the chip interface. In other words, sending and receiving can be performed between devices, for example, between network devices and terminal devices, or can be performed within a device, for example, sending or receiving between components, modules, chips, software modules or hardware modules within the device through a bus, wiring or interface.

[0055] In the existing scheme, the host turns on the module wake-up host function through the attention (AT) command. The module configures the ring indicator (RI) pin to output a pulse waveform according to the AI ​​command. When the communication module receives server data, the RI pin will output a pulse waveform to wake up the host and then send the data. Among them, server data refers to various information and resources stored on the server, including but not limited to files, database records, log files, configuration information, etc. Exemplarily, the server data is socket data (socket data), transmission control protocol (TCP) data or wake-up data packet. In the process of the above-mentioned server data transmission, the communication module does not know whether the host has been awakened, so it sends the server data, which poses a risk of server data loss, causing host service abnormalities.

[0056] Based on the above problems, the embodiment of the present application provides a method for waking up the host, which can reduce the risk of server data loss. The method provided by the embodiment of the present application is specifically described below.

[0057] A communication module is an electronic device that integrates communication functions. It mainly integrates chips, memory, power amplifier devices, antenna interfaces, functional interfaces, etc. into modular components on a circuit board to achieve functions such as radio wave transmission and reception, channel noise filtering, and conversion between analog signals and digital signals. Communication modules mainly include three types: wireless modules, wired modules, and hybrid modules. Wireless modules mainly use wireless signals for data transmission, such as Bluetooth, Wi-Fi, etc., while wired modules use wired signals for data transmission, such as Ethernet, serial port communication, etc. Hybrid modules have both wireless and wired communication functions. With the continuous popularization of Internet of Things technology and the continuous expansion of its application fields, the market demand for communication modules will continue to grow. Especially in the fields of Internet of Vehicles and smart buildings, the demand for wireless communication modules will increase significantly.

[0058] The communication module involved in the embodiments of the present application mainly takes a hybrid module as an example, especially a device that can access a wireless local area network (WLAN), or a device that can provide a voice broadcast function, and can support an internal integrated circuit bus (inter-integrated circuit, I2C) serial communication protocol and a global navigation satellite system (global navigation satellite system, GNSS).

[0059] The host involved in the embodiment of the present application may be a microcontroller unit (MCU) or a digital signal processor (DSP). Exemplarily, the host is an MCU chip on a shared bicycle.

[0060] See also Figure 1 , Figure 1 1 is a schematic diagram of a connection between a communication module and a host provided in an embodiment of the present application. The description of the communication module and the host involved in the method can be referred to above and will not be described in detail here. When the host (HOST) is an MCU, the host and the communication module adopt the following Figure 1The universal asynchronous receiver / transmitter (UART) connection (UART CONNECT) method shown, the communication module includes but is not limited to a TX pin, an RX pin, a RI / WAKEUUP_HOST pin, a HOST_READY pin and a GND pin, and the host includes but is not limited to an RX pin, a TX pin, an EINT pin, a WAKEUP_READY pin and a GND pin, wherein the TX pin of the communication module is connected to the RX pin of the host, the RX pin of the communication module is connected to the TX pin of the host, the RI / WAKEUUP_HOST pin of the communication module is connected to the EINT pin of the host, the HOST_READY pin of the communication module is connected to the WAKEUP_READY pin of the host, and the GND pin of the communication module is connected to the GND pin of the host. The naming of the above pins is not fixed, and can be named according to the function of the pins, which is not a limitation on the embodiments of the present application.

[0061] MCU, or single-chip microcomputer (also called microcontroller unit), is a small computer system that integrates the computer's central processing unit (CPU), memory, input and output ports, timer\counter, interrupt system, analog-to-digital conversion, etc. on a single chip. Designed specifically for embedded applications, it has the characteristics of small size, low power consumption, low cost, and high reliability.

[0062] UART connection performs data transmission based on the principle of asynchronous serial communication, that is, the sender and receiver of data do not need to share the same clock signal, but each sends and receives data according to its own clock frequency.

[0063] In the embodiment of the present application, the RI / WAKEUP_HOST pin of the communication module is used to output a first signal to wake up the host. After the EINT pin of the host receives the pulse waveform, the host suspends the currently executing program and immediately executes the wake-up task. The WAKEUP_READY pin of the host is used to output a second signal to inform the communication module that the host has been awakened. After the HOST_READY pin of the communication module receives the second signal, the communication module can transmit server data normally with the host. The host can send a third signal to wake up the communication module through the TX pin or the WAKEUP_READY pin. The TX pin and RX pin of the communication module are respectively used to send and receive data generated in the process of business interaction with the host, and the RX pin and TX pin of the host are respectively used to receive and send data generated in the process of business interaction with the communication module. The GND pin of the communication module is connected to the GND pin of the host to establish a common potential reference for the two and realize a current loop. The RI / WAKEUP_HOST pin and HOST_READY pin of the above-mentioned communication module belong to the power module of the communication module, and the TX pin and RX pin of the communication module belong to the transmission control module of the communication module. The first signal and the second signal will be described in detail below.

[0064] See also Figure 2 , Figure 2 1 is another schematic diagram of the connection between the communication module and the host provided in the embodiment of the present application. The description of the communication module and the host involved in the method can be referred to above and will not be described in detail here. When the host (HOST) is a digital signal processor (DSP), the host and the communication module adopt the following Figure 2The universal serial bus (USB) connection (USB CONNECT) method shown, the communication module includes but is not limited to the VBUS pin, the data positive signal (data positive, DP) pin, the data negative signal (data minus, DM) pin, the GND pin, the RI / WAKEUUP_HOST pin and the HOST_READY pin, the host includes but is not limited to the VBUS / GPIO pin, the DP pin, the DM pin, the GND pin, the EINT pin and the WAKEUP_READY pin, wherein the VBUS pin of the communication module is connected to the VBUS / GPIO pin of the host, the DP pin of the communication module is connected to the DP pin of the host, the DM pin of the communication module is connected to the DM pin of the host, the GND pin of the communication module is connected to the GND pin of the host, the RI / WAKEUUP_HOST pin of the communication module is connected to the EINT pin of the host, and the HOST_READY pin of the communication module is connected to the WAKEUP_READY pin of the host. The naming of the above pins is not fixed, and can be named according to the function of the pins, which is not a limitation of the embodiments of the present application.

[0065] DSP, or digital signal processor, is a microprocessor specially designed for processing digital signals. Its core is the internal processing unit, which has a high-performance multiplier-accumulator and other hardware accelerators specially used for digital signal processing. In addition, DSP is usually equipped with a wealth of peripheral interfaces, such as timers, analog-to-digital converters, digital-to-analog converters, serial ports, etc., to communicate and exchange data with other devices and systems.

[0066] The USB connection uses differential signal transmission, that is, the signal line connected by the DM and MP pins is used to transmit data. This method can effectively reduce electromagnetic interference and improve the stability of data transmission.

[0067] In the embodiment of the present application, the description of the RI / WAKEUP_HOST pin and the HOST_READY pin of the communication module, and the description of the EINT pin and the WAKEUP_READY pin of the host can be referred to Figure 1 The relevant description in the communication module is not repeated here. The DP and DM pins of the communication module are used to send and receive data generated in the process of business interaction with the host. The DP and DM pins of the host are used to receive and send data generated in the process of business interaction with the host. The DP pin and DM pin are used as differential signal lines in the USB connection to achieve stable signal transmission. For relevant instructions on connecting the communication module and the GND pin of the host, please refer to Figure 1The host can wake up the communication module by pulling up the VBUS pin level. The above DP pin and DM pin belong to the transmission control module of the communication module.

[0068] See also Figure 3 , Figure 3 1 is a waveform diagram of a first signal and a second signal provided in an embodiment of the present application. The description of the communication module and the host involved in the method can be referred to above and will not be described in detail here.

[0069] like Figure 3 As shown, from top to bottom are the signal waveform of the first signal output by the RI / WAKEUUP_HOST pin of the communication module and the signal waveform of the second signal output by the HOST_READY pin. The waveform of the first signal is a low pulse waveform, which is sent when the communication module receives server data from the server. The pulse width is the time interval between the time when the communication module receives the server data and the time when the communication module sends the server data to the host. The waveform of the second signal is a level jump waveform. After the host receives the first signal and is awakened, it informs the communication module that the host has been awakened by pulling up the level of the HOST_READY pin. The communication module can determine that the host has been awakened at the moment of the level jump, and send the cached server data to the host at the same time.

[0070] Optionally, the level of the HOST_READY pin of the communication module returns to a low level after the current business with the host is completed, and the module re-enters a low power consumption state, waiting to be awakened next time.

[0071] See also Figure 4 , Figure 4 1 is another waveform diagram of the first signal and the second signal provided in the embodiment of the present application. The description of the communication module and the host involved in the method can be referred to above and will not be described in detail here.

[0072] like Figure 4 From top to bottom, there are another signal waveform of the first signal output by the RI / WAKEUUP_HOST pin of the communication module and the signal waveform of the second signal output by the HOST_READY pin. For the description of the signal waveform of the second signal, please refer to Figure 3 The description of the second signal in is not repeated here. The waveform of the first signal is a high pulse waveform, which is sent when the communication module receives server data from the server, and the pulse width is the time interval between the time when the communication module receives the server data and the time when the communication module sends the server data to the host.

[0073] See also Figure 5 , Figure 5FIG. 1 is a flowchart of a wake-up method provided in an embodiment of the present application. The description of the communication module and the host involved in the method can be referred to above and will not be described in detail here. Figure 5 As shown, the wake-up method may include the following steps.

[0074] 501 and 502, the communication module and the host are both in low power consumption mode.

[0075] Low power mode is an operating state of electronic devices, which aims to extend battery life or reduce energy consumption by reducing the power consumption of the device. Low power mode minimizes power consumption by shutting down unnecessary functions, reducing processor speed, reducing backlight brightness or screen refresh rate, etc. Low power mode can not only extend the battery life of the device but also reduce energy consumption, achieving green environmental protection.

[0076] The communication module can also send and receive server data during low power consumption and wake up the host in time, ensuring the timeliness and accuracy of the host's services.

[0077] 503, receiving server data and caching the server data.

[0078] In the embodiment of the present application, server data refers to various information and resources stored on the server, including but not limited to files, database records, log files, configuration information, etc. Exemplarily, the server data is socket data, transmission control protocol (TCP) data, or wake-up data packet.

[0079] In this embodiment, the communication module can receive server data by wireless communication, such as Bluetooth, Wi-Fi, etc., or by wired means, such as twisted pair, coaxial cable, etc., which is not limited in the embodiment of the present application. The communication module caches the server data and sends the server data after confirming that the host has been awakened, which can avoid the loss of server data and ensure that the host business can proceed normally. Exemplarily, when the communication module is in low power consumption mode, the server sends the server data, the transmission control module of the communication module receives the server data, and then notifies the power module that the server data has been received by sending an event (EVENT) message, and the power module wakes up the host after receiving the event information.

[0080] 504, the communication module sends a first signal, and correspondingly, the host receives the signal.

[0081] For the description of the first signal, please refer to Figure 3 and Figure 4The description is not repeated here. The first signal is used to wake up the host. Exemplarily, after receiving the event information, the power module of the communication module outputs a low pulse waveform or a high pulse waveform to the host through the RI / WAKEUUP_HOST pin for a certain period of time, which is not limited in the embodiment of the present application, and is used to wake up the host.

[0082] 505, the host is awakened.

[0083] The host is awakened after receiving the first signal. Exemplarily, after the interrupt pin of the host receives the first signal, the host pauses the currently executing program and immediately executes the awakening program.

[0084] 506, the host sends a second signal, and correspondingly, the communication module receives the signal.

[0085] For the description of the second signal, please refer to Figure 3 and Figure 4 The description is not repeated here.

[0086] The second signal is used to inform the communication module that the host has been awakened. After receiving the second signal, the communication module can send server data to the host. Exemplarily, the host informs the communication module that the host has been awakened by pulling up the level of the WAKEUP_READY pin.

[0087] 507, the communication module sends the server data, and correspondingly, the host receives the server data.

[0088] For the description of server data, please refer to the above description and will not be repeated here.

[0089] After receiving the second signal, the communication module can ensure that the host has been awakened. At this time, sending the cached server data to the host can reduce the risk of data loss. Exemplarily, the power module of the communication module detects that the level of the HOST_READY pin is pulled high, indicating that the host has been awakened. At this time, the transmission control module sends the cached server data to the host through the TX pin or sends it to the host through the DP pin and the DM pin.

[0090] 508, the host sends a third signal, and correspondingly, the communication module receives the third signal.

[0091] The third signal is used to wake up the communication module. As an example, the host is an MCU chip, and the third signal can be sent to the communication module through the TX pin or the communication module can be woken up by pulling up the level of the WAKEUP_READY pin. The third signal can be a low pulse waveform or a high pulse waveform. As another example, the host is a DSP chip, and the host can wake up the communication module by pulling up the level of the VBUS pin or the WAKEUP_READY pin.

[0092] 509, the communication module is awakened.

[0093] The communication module is awakened after receiving the third signal sent by the host.

[0094] 510, the communication module performs business interaction with the host.

[0095] Both the communication module and the host have been awakened, and the host can use the communication module to implement various application functions, such as positioning, information sending and receiving, and online payment.

[0096] In an embodiment of the present application, the communication module receives data sent by the server during the low power consumption mode and caches the server data. The communication module then wakes up the host and sends the cached server data after confirming that the host has been awakened.

[0097] See also Figure 6 , Figure 6 FIG. 1 is a flow chart of another wake-up method provided in an embodiment of the present application. The description of the communication module and the host involved in the method can be referred to above and will not be described in detail here. Figure 6 As shown, the flow chart is the communication flow of the communication module in the process of waking up the host. The communication module involved includes user space and kernel space, wherein the user space includes the application layer (FFW_APPLICATION) and the adaptation layer (FFW_PM PAL), and the transmission control protocol (TCP) module and the power module (PM) of the communication module belong to the application layer. The description of the TCP module and PM will be described in detail in the communication module part provided in the embodiment of the present application below. The general-purpose input / output (GPIO) driver (which can be / dev / fibo_gpio) and the communication interface (which can use the NETLINK communication method) belong to the adaptation layer, and the kernel space includes the GPIO module. Figure 6 GPIO 61 in the figure belongs to the GPIO module. To explain the method provided in the embodiment of the present application clearly, RI / WAKEUP_HOST in the GPIO module is an output pin and HOST_READY is an input pin. The wake-up method may include the following steps.

[0098] In the embodiment of the present application, both the communication module and the host are in low power consumption mode.

[0099] 601. The server sends server data to the TCP module of the application layer in the user space of the communication module.

[0100] For the description of the server data, please refer to the description of step 503 above, which will not be repeated here.

[0101] 602. The TCP module receives the server data, puts the data into the cache first, and notifies the PM to wake up the host through the EVENT event.

[0102] In the embodiment of the present application, the EVENT event is when the TCP module receives server data, and the EVENT event can trigger the PM to execute a program to wake up the host.

[0103] 603, 604, 605, PM drives and controls the RI / WAKEUP_HOST pin to output the first signal by operating the GPIO.

[0104] For the description of the RI / WAKEUP_HOST pin and the first signal, please refer to the above and will not be repeated here.

[0105] In the embodiment of the present application, the GPIO driver is an important interface for data interaction between the communication module and the host. It allows the application in the user space or the driver in the kernel space to configure the GPIO pins to input or output mode through a standard application programming interface (API).

[0106] In the embodiment of the present application, a first signal is outputted to wake up the host, and an interrupt pin of the host receives the first signal to trigger an interrupt.

[0107] 606. The host receives the interrupt and, after being awakened, sends a second signal to the HOST_READY pin of the communication module.

[0108] For example, the second signal sent by the host to the communication module is to pull up the level of the HOST_READY pin to inform the communication module that the host has been awakened.

[0109] 607, 608. After receiving the interrupt, the GPIO driver notifies the PM module that the host has been awakened.

[0110] The communication module triggers an interrupt after receiving the second signal. In the embodiment of the present application, the signal adopts the NETLINK communication method through the communication interface. NETLINK communication is a special mechanism for communication between kernel space and user space, and is also a process communication method. Other communication methods can also be used, which is not limited in the present application.

[0111] 609. PM notifies the TCP module to send the server data through the EVENT event.

[0112] When the host has been awakened, PM tells the TCP module to send the cached server data, which can reduce the risk of server data loss.

[0113] Optionally, the host sends a third signal to the communication module to wake up the communication module.

[0114] See also Figure 7 , Figure 7 This is a flowchart of another wake-up method provided in an embodiment of the present application. The description of the communication module and the host involved in this method can be referred to above and will not be described in detail here.

[0115] As shown in the figure, device 701 is a mobile terminal that can access a wireless local area network, and can be a mobile phone, a smart watch, a tablet or other device. Devices 702 and 705 are base stations, which can be the same base station or different base stations, and the functions of the two base stations are the same. Devices 703 and 704 are servers, wherein server 703 is a management server, server 704 is a target server, and server 703 can manage server 704. 706 is a communication module, and 707 is a host, and the two are connected via USB or UART. 708 is a device that integrates a communication module and a host, such as a shared bicycle. If the mobile terminal 701 and device 708 belong to the same cell, base stations 702 and 705 are the same base station. If the mobile terminal 701 and device 708 do not belong to the same cell, the base station of the cell to which the mobile terminal 701 belongs is 702, and the base station of the cell to which the device 708 belongs is 705. All of the above devices can transmit data in the direction of the arrows shown in the figure to realize business interaction. The following example will illustrate the specific communication process of the embodiment of the present application.

[0116] As an example, a user needs to unlock a shared bicycle. The user uses a mobile terminal 701, such as a mobile phone, which is in the cell where the base station 702 is located and establishes a communication connection with the base station 702. When the user needs to use a shared bicycle 708, and scans the QR code on the target shared bicycle 708 with the mobile phone 701, the mobile phone sends an unlock request to the base station 702 to unlock the target shared bicycle 708. The unlock request may include the location information, device information, etc. of the target shared bicycle 708. The base station 702 sends the unlock request to the server 703, which is the management center. The server 703 determines the corresponding target server 704 according to the location information of the shared bicycle 708. The server 703 then sends the unlock request to the server 704, which is the data center. After receiving the unlock request, the corresponding information of the target shared bicycle 708 is found through parsing. Then the server 704 sends the unlock information to the communication module 706 of the target shared bicycle 708 through the base station 705 where the target shared bicycle 708 is located. At this time, the communication module 706 and the host 707 in the shared bicycle 708 are both in low power consumption mode. After receiving the unlock request, the communication module 706 first caches the unlock request information, and then sends a wake-up signal to the host 707 through the RI pin to wake up the host 707. After the host 707 is awakened, it sends a wake-up signal to the communication module 706 through the MCU READY pin. After confirming that the host 707 has been awakened, the communication module 706 sends an unlock request to the host 707, and then the host 707 executes the unlocking procedure, and finally the target shared bicycle 708 is unlocked.

[0117] As another example, the shared bicycle reports its status and location information, and the user completes payment and deduction, and ends the use. Mobile terminal 701 establishes a communication connection between the two by scanning the QR code of shared bicycle 708. After the user has used shared bicycle 708, shared bicycle 708 reports its current status and location information. Base station 705 receives the status and location information and forwards the information to target server 704. Target server 704 calculates the riding time based on the information, and then determines the riding fee based on the riding time, and reports the riding time and billing results to management server 703. Management server 703 determines the base station 702 of the user's cell based on the user information, and then sends the riding time and billing results to base station 702. Base station 702 then feeds back the riding time and billing results to mobile terminal 701. The user completes the payment, and the shared bicycle ride ends.

[0118] In an embodiment of the present application, the communication module 706 receives data sent by the server 704 during the low power consumption mode and caches the server data. The communication module then wakes up the host 707, receives the wake-up signal sent by the host 707, and sends the cached server data when it is confirmed that the host 707 has been awakened, thereby reducing the risk of server data loss.

[0119] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the terminal device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0120] The following is an introduction to the communication module provided in the embodiments of the present application.

[0121] The present application divides the functional modules of the communication module according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in this application is schematic and is only a logical function division. There may be other division methods in actual implementation. The following will be combined with Figure 8 Fig.10 A communication device according to an embodiment of the present application is described.

[0122] See also Figure 8 , Figure 8 Schematic diagram of a communication module provided in an embodiment of the present application. Figure 8 As shown, the communication module includes a power module 801 and a transmission control module 802. The power module 801 can implement a corresponding wake-up function, and the transmission control module 802 is used to implement a corresponding data transmission function.

[0123] Specifically, the power module 801 is used to send a first signal to the host, where the first signal is used to wake up the host; and receive a second signal from the host, where the second signal is used to indicate that the host has been awakened.

[0124] The transmission control module 802 is used to receive server data from the server and cache the server data; and send the server data to the host in response to the second signal.

[0125] Optionally, receiving the server data includes receiving the server data when the communication module is in a low power consumption mode.

[0126] Optionally, after sending the server data, a third signal is received from the host, and the third signal is used to wake up the communication module.

[0127] In an embodiment of the present application, the communication module receives data sent by the server during a low power consumption mode and caches the server data. The communication module then wakes up the host and sends the cached server data after confirming that the host has been awakened, thereby reducing the risk of server data loss.

[0128] See also Fig. 9 , Fig. 9 is another structural diagram of the communication module provided in the embodiment of the present application. Fig. 9 As shown, the communication module includes one or more processors 902 , a transceiver 901 and a memory 903 .

[0129] The processor 902 and the memory 903 may be connected to each other via a communication bus 904. The communication bus 904 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 904 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 The memory 903 is used to store computer programs. The computer programs include program instructions. The processor 902 is configured to call the program instructions. The above program includes instructions for executing Figures 5 to 7 In some or all steps of any method shown, the transceiver 901 may include a receiver and a transmitter, the receiver is used to perform a receiving function (or operation), and the transmitter is used to perform a transmitting function (or operation). And the transceiver is used to communicate with other devices / apparatuses through a transmission medium.

[0130] In the embodiment of the present application, the processor 902 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor, etc.

[0131] In the embodiment of the present application, the memory 903 may include, but is not limited to, non-volatile memories such as a hard disk drive (HDD) or a solid-state drive (SSD), random access memory (RAM), erasable programmable read-only memory (EPROM), read-only memory (ROM) or portable read-only memory (CD-ROM), etc. The memory is any storage medium that can be used to carry or store program codes in the form of instructions or data structures and can be read and / or written by a computer (such as the communication device shown in the present application), but is not limited thereto. The memory in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0132] See also Fig.10 , Fig.10 is another structural diagram of the communication module provided in the embodiment of the present application. Fig.10 As shown, Fig.10 The communication module shown includes a logic circuit 1001 and an interface 1002. That is, the power module 801 can be implemented by the logic circuit 1001, and the transmission control module 802 can be implemented by the interface 1002. The logic circuit 1001 can be a chip, a processing circuit, an integrated circuit or a system on chip (SoC) chip, etc., and the interface 1002 can be a communication interface, an input / output interface, a pin, etc. For example, Fig.10 The above communication device is taken as an example of a chip, and the chip includes a logic circuit 1001 and an interface 1002 .

[0133] In the embodiment of the present application, the logic circuit and the interface may also be coupled to each other. The embodiment of the present application does not limit the specific connection method between the logic circuit and the interface. For example, the logic circuit 1001 may be used to perform the following Fig. 9The functions or steps implemented by the processor 902 and the memory 903 shown in FIG. 1002 can be used to perform the following steps: Fig. 9 The functions or steps implemented by the transceiver 901 shown in FIG. 1001 and the interface 1002 can be referred to in detail. Fig. 9 Or the method embodiments shown above will not be described in detail here.

[0134] The present application also provides a computer-readable storage medium, in which computer codes are stored. When the computer codes are executed on a computer, the computer executes the operations and / or processes performed by each site in the method provided by the present application.

[0135] The present application also provides a computer program product, which includes a computer code or a computer program. When the computer code or the computer program runs on a computer, the operations and / or processes performed by each method provided by the present application are executed.

[0136] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A wake-up method, characterized in that: The method is applied to a communication module, and the method comprises: receiving server data from a server, and caching the server data; Sending a first signal to a host, where the first signal is used to wake up the host; receiving a second signal from the host, wherein the second signal is used to indicate that the host has been awakened; In response to the second signal, the server data is sent to the host.

2. The method according to claim 1, characterized in that The receiving server data includes: When the communication module is in a low power consumption mode, the server data is received.

3. The method according to claim 2, characterized in that After sending the server data, the method further includes: A third signal is received from the host, where the third signal is used to wake up the communication module.

4. The method according to any one of claims 1 to 3, characterized in that: The communication module includes a first input pin and a first output pin, and the host includes a second input pin and a second output pin; the first input pin is connected to the second output pin, and the first output pin is connected to the second input pin; The sending of a first signal to the host comprises: Sending a first signal to the second input pin via the first output pin; The receiving a second signal from the host comprises: A second signal sent by the second output pin is received through the first input pin.

5. The method according to claim 4, characterized in that The communication module further includes a first receiving pin and a first sending pin, and the host further includes a second receiving pin and a second sending pin; the first receiving pin is connected to the second sending pin, and the first sending pin is connected to the second receiving pin; The sending the server data to the host comprises: The server data is sent to the second receiving pin through the first sending pin.

6. A wake-up method, characterized in that: The method is applied to a host, and the method comprises: When the host is in a low power consumption mode, receiving a first signal from a communication module, wherein the first signal is used to wake up the host; In response to the first signal, a second signal is sent to the communication module, where the second signal is used to indicate that the host has been awakened.

7. The method according to claim 4, characterized in that After sending the second signal, the method further includes: receiving server data from the communication module; In a case where the server data includes wake-up data, a third signal is sent to the communication module, where the third signal is used to wake up the communication module.

8. A communication module, characterized in that: The method comprises a module for executing the method according to any one of claims 1 to 5.

9. A communication module, characterized in that: The method comprises a transceiver, a processor and a memory, wherein the transceiver is used to receive and send data, the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by an application processor, the application processor executes the method according to any one of claims 1 to 5, or the method according to any one of claims 6 to 7.