Communication method of WIFI module, WIFI module and terminal device

By introducing a microprocessor and a power control module into the WIFI module, the power supply module's power level is detected and the WIFI module's power on/off state is controlled, solving the problem of high power consumption during WIFI module standby and achieving low-power standby and efficient data transmission.

CN115866728BActive Publication Date: 2026-01-09BOE TECHNOLOGY GROUP CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211475639.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-23
Publication Date
2026-01-09
Estimated Expiration
2042-11-23

AI Technical Summary

Technical Problem

Existing Wi-Fi modules still require a large standby voltage when in standby mode, resulting in high power consumption of terminal devices and failing to effectively reduce overall power consumption when the network is not in use.

Method used

Design a WIFI module that combines a microprocessor and a power control module. The microprocessor detects the power supply module's power level and controls the WIFI module's power on/off state. A lower-power microprocessor is used to manage the WIFI module's operating state, reducing unnecessary power supply.

Benefits of technology

Without extending the data link between the WIFI module and the host computer, the overall power consumption of the WIFI module is significantly reduced, improving working efficiency and avoiding the load caused by circuit complexity and data link extension.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115866728B_ABST
    Figure CN115866728B_ABST
Patent Text Reader

Abstract

The present disclosure provides a WIFI module communication method, WIFI module and terminal device, and belongs to the technical field of communication. The WIFI module of the present disclosure comprises a microprocessor, a power supply control module and a WIFI module; wherein the microprocessor, the power supply control module and the WIFI module are in communication connection with each other, and the communication method comprises: detecting the power supply of the power supply module by the microprocessor, and sending a first control signal to the power supply control module when it is detected that the power supply of the power supply module is greater than a preset value; the power supply control module loads the working voltage provided by the power supply module to the WIFI module in response to the first control signal; the WIFI module enters a working state in response to the working voltage provided by the power supply module, receives the serial port instruction sent by the upper computer and executes the corresponding working mode.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure belongs to the technical field of communication, and particularly relates to a WIFI module communication method, WIFI module and terminal device. BACKGROUND

[0002] Among a plurality of functional modules of a terminal device, there is a WIFI module. When the terminal device is working, the WIFI module does not work continuously. For example, when the terminal device is processing data and the networking demand is not strong, the WIFI module can be turned off to reduce power consumption. In particular, when the terminal device is powered by a mobile power supply, such as a battery, the power consumption has a greater impact on the terminal, and therefore it is necessary to reduce the power consumption of the terminal device as much as possible.

[0003] In the existing WIFI module standby mode, a large standby voltage is still required, and therefore when the network is not used, the WIFI module standby mode cannot significantly reduce the overall power consumption of the terminal device, and therefore it is urgent to design a WIFI module for reducing the power consumption of the terminal device when the network is not used. SUMMARY

[0004] The present disclosure aims to at least solve one of the technical problems in the prior art, and provides a WIFI module communication method, WIFI module and terminal device.

[0005] In a first aspect, the present disclosure provides a WIFI module communication method, the WIFI module comprising a microprocessor, a power supply control module and a WIFI module; wherein the microprocessor, the power supply control module and the WIFI module are in communication connection with each other, and the communication method comprises the following steps:

[0006] detecting the power of the power supply module by the microprocessor, and sending a first control signal to the power supply control module when it is detected that the power of the power supply module is greater than a preset value;

[0007] loading the working voltage provided by the power supply module to the WIFI module by the power supply control module in response to the first control signal;

[0008] entering a working state by the WIFI module in response to the working voltage provided by the power supply module, receiving a serial port instruction sent by an upper computer and executing a corresponding working mode.

[0009] The step of entering the working state by the WIFI module, receiving the serial port instruction sent by the upper computer and executing the corresponding working mode comprises the following steps:

[0010] directly receiving the serial port instruction sent by the upper computer by the WIFI module, and determining whether the serial port instruction is a shutdown instruction.

[0011] If the serial port instruction is a non-shutdown instruction, the WIFI module directly executes the corresponding instruction;

[0012] If the serial port instruction is a shutdown instruction, the WIFI module feeds back the shutdown instruction information to the microprocessor; the microprocessor sends a second control signal to the power control module in response to the shutdown instruction information; the power control module cuts off the connection between the power supply module and the WIFI module in response to the second control signal, and the WIFI module executes shutdown.

[0013] The communication method of the WIFI module further comprises:

[0014] When the microprocessor detects that the power supply module has an electric quantity less than or equal to a preset value, the microprocessor judges whether the WIFI module is in a shutdown state or a working state;

[0015] If the WIFI module is in the shutdown state, the microprocessor feeds back the electric quantity reminder information of the power supply module to the upper computer, and the microprocessor resumes the standby state;

[0016] If the WIFI module is in the working state, the microprocessor sends a second control signal to the power control module and feeds back the electric quantity reminder information of the power supply module to the upper computer; the power control module cuts off the connection between the power supply module and the WIFI module in response to the second control signal, the WIFI module executes shutdown, and the microprocessor enters the standby state.

[0017] The communication method of the WIFI module further comprises:

[0018] The microprocessor periodically detects the electric quantity of the power supply module;

[0019] If the microprocessor detects that the electric quantity of the power supply module is greater than the preset value, the microprocessor sends the first control signal to the power control module;

[0020] If the microprocessor detects that the electric quantity of the power supply module is less than or equal to the preset value, the microprocessor sends a second control signal to the power control module and feeds back the electric quantity reminder information of the power supply module to the upper computer; the power control module cuts off the connection between the power supply module and the WIFI module in response to the second control signal, shuts down the WIFI module, and the microprocessor enters the standby state.

[0021] In a second aspect, the present disclosure also provides a WIFI module, which comprises a microprocessor, a power supply control module and a WIFI module.

[0022] The microprocessor is configured to send a first control signal to the power supply control module when detecting that the power supply of the power supply module is greater than a preset value.

[0023] The power supply control module responds to the first control signal and loads the working voltage provided by the power supply module to the WIFI module to control the WIFI module to enter a working state.

[0024] The WIFI module is configured to receive a serial port instruction sent by an upper computer and execute a corresponding working mode when in the working state.

[0025] The WIFI module is specifically configured to receive a serial port instruction sent by an upper computer when in the working state, directly execute a corresponding instruction when the serial port instruction is a non-shutdown instruction, and feed back shutdown instruction information to the microprocessor when the serial port instruction is a shutdown instruction, so that the microprocessor sends a second control signal to the power supply control module to control the WIFI module to execute shutdown.

[0026] The microprocessor is also configured to control the power supply control module to send a second control signal to control the power module to shut down and feed back power supply module power reminder information to the upper computer when detecting that the power supply of the power supply module is less than or equal to a preset value, and the microprocessor enters a standby state.

[0027] The microprocessor is configured to periodically detect whether the power supply of the power supply module is greater than the preset value when the WIFI module is in the working state, send the first control signal to the power supply control module when the power supply of the power supply module is greater than the preset value, send the second control signal to the power supply control module when the power supply of the power supply module is less than or equal to the preset value, and feed back power supply module power reminder information to the upper computer, and the microprocessor enters a standby state.

[0028] The microprocessor and the WIFI module are connected through a UART interface.

[0029] The microprocessor and the power supply control module are connected through an IO interface.

[0030] The minimum working voltage of the microprocessor is less than the minimum working voltage of the WIFI module.

[0031] In a third aspect, the disclosure also provides a terminal device, which comprises the WIFI module as described in any of the above. BRIEF DESCRIPTION OF DRAWINGS

[0032] Figure 1 A schematic diagram of the communication method of the WIFI module provided in the embodiments of the disclosure.

[0033] Figure 2 A flowchart of the communication method of the WIFI module provided in the embodiments of the disclosure.

[0034] Figure 3 A schematic diagram of the communication method of the WIFI module after entering the working state in the embodiments of the disclosure.

[0035] Figure 4 A schematic diagram of the communication method of the WIFI module when the microprocessor detects that the power supply module has an amount of power less than or equal to a preset value in the embodiments of the disclosure.

[0036] Figure 5 A schematic diagram of the working process of the microprocessor after the WIFI module enters the working state in the embodiments of the disclosure.

[0037] Figure 6 A structural schematic diagram of the WIFI module provided in the embodiments of the disclosure. DETAILED DESCRIPTION

[0038] In order for those skilled in the art to better understand the technical solutions of the present application, the present application will be further described in detail below in conjunction with the drawings and specific embodiments.

[0039] Unless otherwise defined, the technical terms or scientific terms used in the disclosure should be understood as the usual meanings understood by those skilled in the art in the field to which the disclosure belongs. The terms "first", "second", and similar words used in the disclosure do not represent any order, quantity, or importance, but are only used to distinguish different components. Similarly, "one", "an", or "the" and similar words do not represent a quantity limitation, but represent the presence of at least one. "Including" or "containing" and similar words mean that the elements or objects before the word cover the elements or objects listed after the word and their equivalents, and do not exclude other elements or objects. "Connected" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right", and the like are only used to represent relative positional relationships, and when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0040] Terminal devices include various types, each of which includes a plurality of modules for implementing different functions, and the main functions of different terminal devices are different, and the power supply modes are also different. We hope that the terminal can be used for as long as possible, and the power consumption is as small as possible, so the power consumption of each module on the corresponding terminal will be reduced. Taking an electronic ink screen terminal with a power supply module as an example, it includes software or operation programs that need to be connected to the network to be implemented, and also includes software or operation programs that do not need to be connected to the network to be processed. When the networking demand is not strong, the WIFI module can be turned off or put into standby state to reduce the power consumption of the terminal device. If the WIFI module is turned off when it is not working, a power enable module needs to be added in the circuit to control the startup and shutdown of the WIFI module, which makes the transmission link of the WIFI module longer. The WIFI module still needs to be woken up by an external device when it is in standby state, and the standby state of the WIFI module cannot effectively reduce the consumed power.

[0041] In view of this, the embodiments of the present disclosure provide a WIFI module communication method, a WIFI module and a terminal device. A WIFI module is designed by combining a traditional WIFI module with a microprocessor, and a WIFI module communication method is designed to realize a WIFI module with low-power standby without increasing the transmission link of the WIFI module and the terminal device.

[0042] In a first aspect, the embodiments of the present disclosure disclose a WIFI module communication method, Figure 1 A schematic diagram of the WIFI module communication method provided in the embodiments of the present disclosure is shown in Figure 2 A flowchart of the WIFI module communication method provided in the embodiments of the present disclosure is shown in Figure 1 、 2 As shown in the flowchart, the WIFI module communication method includes: the WIFI module includes a microprocessor, a power control module and a WIFI module; wherein the microprocessor, the power control module and the WIFI module are in communication connection with each other, and the communication method includes:

[0043] S1: detecting the power of the power supply module by the microprocessor, and sending a first control signal to the power control module when it is detected that the power of the power supply module is greater than a preset value.

[0044] Specifically, when the WIFI module is closed and the microprocessor is in a standby state, the microprocessor is initialized before executing instructions under the premise of turning on the power. After the WIFI module receives the data signal of the host computer, the initialized microprocessor reads the enable signal from the data signal to wake up the microprocessor in the standby state. The microprocessor after waking up starts to detect the power information according to the current voltage and other data input from the power supply module to the power control module. When the detected power of the power supply module is greater than the preset value, the microprocessor sends a first control signal to the power control module. It can be understood that the microprocessor is also powered by the power supply module, and the microprocessor is directly connected to the power supply module. The data signal read by the microprocessor can also be a control signal, which is used as an enable signal to wake up the microprocessor.

[0045] It should be noted that the power supply module in the embodiment of the present disclosure is a mobile power supply, for example: a battery. The host computer in the embodiment of the present disclosure can be any terminal device, and the WIFI module can be connected with the board card in the terminal device to communicate through a UART interface, or can communicate through a USB interface. In the embodiment of the present disclosure, the connection mode of the host computer, the WIFI module and the host computer, and the structure of the WIFI module and the host computer are not further limited.

[0046] S2: The power control module loads the working voltage provided by the power supply module to the WIFI module in response to the first control signal.

[0047] Specifically, the power control module functions as a switch. After the power control module receives the first control signal, the power supply module and the WIFI module are turned on, so that the WIFI module is connected to the working voltage.

[0048] S3: The WIFI module enters a working state in response to the working voltage provided by the power supply module, receives the serial port instruction sent by the host computer, and executes the corresponding working mode.

[0049] Specifically, the WIFI module is loaded with the working voltage provided by the power supply module, and then the WIFI module is initialized according to the specific situation, and then the WIFI module enters the working state. After the WIFI module enters the working state, the WIFI module can directly receive the serial port instruction sent by the host computer, and execute the corresponding working mode according to the serial port instruction, for example: if the serial port instruction is a shutdown instruction, the WIFI module executes the shutdown process and feeds back the shutdown instruction information to the microprocessor; if the serial port instruction is a start working instruction, the WIFI module initializes and starts working under the wake-up of the start working instruction after the power supply is turned on; if the serial port instruction is a data transmission instruction, a data receiving instruction and a data analysis instruction, the WIFI module executes the corresponding working mode to process the transmitted data.

[0050] Through the above method, without prolonging the data link between the WIFI module and the host computer, a microprocessor is added to detect the power information of the power supply module and control whether the power supply control module supplies power to the WIFI module. In the prior art, when the terminal device does not need a network, the WIFI module is changed to standby in the microprocessor in the present application. The power supply voltage of the WIFI module is usually 3.3V to 5V, and the microprocessor uses wide potential power supply, which can realize standby and start working at any time under the voltage of 1V to 2V. Through the technical scheme, a microprocessor with lower power supply voltage and lower power consumption is added in the WIFI module to control the working state of the whole module, and the overall power consumption of the WIFI module is reduced. If the microprocessor is not added, the power enable module needs to be designed in the circuit or the board to turn off or turn on the WIFI module at any time, which makes the whole circuit or board relatively complex, and prolongs the data link length when the WIFI module works in data interaction. Therefore, by adding the microprocessor in the WIFI module, the method of directly interacting with the host computer when the WIFI module works reduces the working power of the WIFI module without prolonging the data link of the WIFI module, and does not affect the efficiency of data transmission. In addition, the additional load caused by the increase of the data link for transmitting data is also avoided.

[0051] As shown in Figure 3 After the power supply control module receives the first control signal, the power supply control module connects the power supply module with the WIFI module, and the WIFI module enters the working state. The steps of receiving the serial port instruction sent by the host computer and executing the serial port instruction include:

[0052] S11: The WIFI module directly receives the serial port instruction sent by the host computer, and judges whether the serial port instruction is a shutdown instruction.

[0053] Specifically, the WIFI module directly receives the serial port instruction from the upper computer in the working state, and after receiving the serial port instruction, the WIFI module first judges the instruction, judges whether it is a shutdown instruction, and enters the corresponding subsequent process according to the judgment result.

[0054] S12: If the serial port instruction is not a shutdown instruction, the WIFI module directly executes the corresponding instruction.

[0055] Specifically, when the WIFI module judges that the serial port instruction sent by the upper computer is not a shutdown instruction, the WIFI module directly executes the serial port instruction. At this time, the serial port instruction can be a data transmission instruction, a data receiving instruction, and a data analysis instruction, or a start working instruction after the WIFI module is powered on.

[0056] S13: If the serial port instruction is a shutdown instruction, the WIFI module feeds back the shutdown instruction information to the microprocessor; the microprocessor responds to the shutdown instruction information and sends a second control signal to the power control module; the power control module responds to the second control signal and cuts off the connection between the power supply module and the WIFI module, and the WIFI module executes the shutdown.

[0057] Specifically, since the WIFI module can directly receive the serial port instruction of the upper computer in the working state, the upper computer directly sends the shutdown instruction to the WIFI module, and the power control module controlling the power supply of the WIFI module needs to be controlled through the microprocessor. After the WIFI module receives the shutdown instruction of the upper computer, the WIFI module first feeds back the shutdown instruction information to the microprocessor, and then the microprocessor sends a second control signal to the power control module to cut off the connection between the power supply module and the WIFI module, and the WIFI module shuts down. The microprocessor restores to the standby state. The microprocessor is only used to detect the power information of the power supply module and control the working state of the power control module, without increasing additional work requirements, without increasing additional power consumption, and without generating too many serial port instructions to increase the operation amount of the WIFI module.

[0058] As shown in Figure 4 When the microprocessor detects that the power supply of the power supply module is less than or equal to the preset value, the communication method of the WIFI module further includes:

[0059] S21: When the microprocessor detects that the power supply of the power supply module is less than or equal to the preset value, it is judged whether the WIFI module is in a shutdown state or a working state.

[0060] Specifically, the microprocessor detects the power supply module in the standby wake-up state, and also detects the power supply module when the WIFI module is in the working state. Therefore, when the microprocessor detects that the power supply module is less than or equal to the preset value, the microprocessor needs to first judge the working state of the WIFI module to select the subsequent working process.

[0061] S22: If the WIFI module is in the shutdown state, the microprocessor feeds back the power supply module power reminding information to the upper computer, and the microprocessor restores the standby state.

[0062] Specifically, when the WIFI module is in the shutdown state and the microprocessor is in the standby state, the microprocessor receives an enable signal to wake up, and after waking up, the power supply module is first detected. When the detected power is less than or equal to the preset value, the power supply module power reminding information is directly fed back to the upper computer, and the standby state is restored.

[0063] S23: If the WIFI module is in the working state, the microprocessor sends a second control signal to the power control module and feeds back the power supply module power reminding information to the upper computer; the power control module responds to the second control signal; the connection between the power supply module and the WIFI module is cut off, the WIFI module executes shutdown, and the microprocessor enters the standby state.

[0064] Specifically, when the WIFI module is in the working state, the microprocessor detects the power supply module, and when the detected power is less than or equal to the preset value, the microprocessor directly sends a second control signal to the power control module. The power control module responds to the second control signal, cuts off the connection between the power supply module and the WIFI module, and feeds back the power supply module power reminding information to the upper computer; the WIFI module does not need to wait for the shutdown instruction from the upper computer, and directly controls the power control module to cut off the connection between the power supply module and the WIFI module when the microprocessor detects that the power supply module is less than or equal to the preset value, thereby improving the working efficiency of the WIFI module.

[0065] It should be noted that the sending end of the microprocessor for sending the power reminding information to the upper computer can only be used to send the power reminding information, and in the case of not needing to send information, it is in the high resistance state of the off state. Before sending the power reminding information, the sending end of the microprocessor for sending the power reminding information to the upper computer is initialized.

[0066] As shown in Figure 5 When the WIFI module is in the working state, the power supply module power information needs to be detected in real time, so the communication method of the WIFI module further includes:

[0067] S31: periodically detecting the power supply module by the microprocessor when the WIFI module is in the working state.

[0068] Specifically, in order to detect the power information of the power supply module in real time, the microprocessor periodically detects the power supply module when the WIFI module is in the working state. For example, the host computer intermittently sends an enable signal to the microprocessor in a certain period, and the microprocessor performs power detection on the power supply module after receiving the enable signal. When the power detection is not needed, the microprocessor returns to the standby state.

[0069] S32: if the microprocessor detects that the power of the power supply module is greater than the preset value, the microprocessor sends a first control signal to the power control module.

[0070] S33: if the microprocessor detects that the power of the power supply module is less than or equal to the preset value, the microprocessor sends a second control signal to the power control module and feeds back the power information of the power supply module to the host computer; the power control module responds to the second control signal, disconnects the connection between the power supply module and the WIFI module, powers off the WIFI module, and the microprocessor enters the standby state.

[0071] Specifically, the working process of S33 is consistent with that of S23, which will not be described here.

[0072] In a second aspect, the embodiments of the present disclosure also provide a WIFI module, as shown in the accompanying drawings. Figure 6 The WIFI module includes a microprocessor, a power control module and a WIFI module; the microprocessor is configured to send a first control signal to the power control module when detecting that the power of the power supply module is greater than a preset value; the power control module responds to the first control signal and loads the working voltage provided by the power supply module to the WIFI module to control the WIFI module to enter the working state; and the WIFI module is configured to receive the serial port instruction sent by the host computer and execute the corresponding working mode when in the working state.

[0073] The microprocessor, the power supply control module and the WIFI module are in communication connection with each other, wherein the microprocessor and the WIFI module are connected through a UART interface; and the microprocessor and the power supply control module are connected through an IO interface. In order to reduce the connection interface of the WIFI module and the upper computer, the WIFI module and the microprocessor can share the connection interface for sending and receiving data. The WIFI module receives the data signal of the upper computer, reads the enable signal from the data signal, and wakes up the microprocessor in the standby state. After being woken up, the microprocessor starts to detect the power information according to the current voltage and other data input from the power supply module to the power supply control module. When the detected power of the power supply module is greater than the preset value, the microprocessor sends a first control signal to the power supply control module. The power supply control module functions as a switch. After the power supply control module receives the first control signal, the power supply control module is turned on to make the WIFI module connect the working voltage. After the WIFI module is loaded with the working voltage provided by the power supply module, the WIFI module is initialized according to the specific situation, and then the WIFI module enters the working state. After the WIFI module enters the working state, the WIFI module can directly receive the serial port instruction sent by the upper computer, and execute the corresponding working mode according to the serial port instruction. For example, if the serial port instruction is a shutdown instruction, the WIFI module executes the shutdown process and feeds back the shutdown instruction information to the microprocessor; if the serial port instruction is a start working instruction, the WIFI module is initialized and starts working under the wake-up of the start working instruction after connecting the power supply; if the serial port instruction is a data transmission instruction, a data receiving instruction and a data analysis instruction, the WIFI module executes the corresponding working mode to process the transmitted data.

[0074] The WIFI module in the embodiments of the present disclosure increases a microprocessor for detecting power supply module power information and controlling whether the power supply control module supplies power to the WIFI module without prolonging the data link of the WIFI module and the host computer. The microprocessor standby in the present application is changed from the WIFI module standby in the prior art when the terminal device does not need a network. The power supply voltage of the WIFI module is usually 3.3V to 5V, and the microprocessor uses wide potential power supply, which can realize standby and start work at any time under the voltage of 1V to 2V. It can be understood that the minimum working voltage of the microprocessor is less than the minimum working voltage of the WIFI module. Through the technical scheme, the microprocessor with lower power supply voltage and lower power consumption is added in the WIFI module to control the working state of the whole module, and the overall power consumption of the WIFI module is reduced. If the microprocessor is not added, the power enable module needs to be designed in the circuit or the board to turn off or on the WIFI module at any time, which makes the whole circuit or board relatively complex, and prolongs the data link length when the WIFI module works in data interaction. Therefore, by adding the microprocessor in the WIFI module, the method of directly interacting with the host computer when the WIFI module works reduces the working power of the WIFI module without prolonging the data link of the WIFI module, and does not affect the efficiency of data transmission. It also does not cause additional load due to the increase of data link for transmitting data.

[0075] In some examples, the WIFI module is specifically configured to receive a serial port instruction sent by the host computer in the working state, execute the corresponding instruction directly when the serial port instruction is not a shutdown instruction, and feed back the shutdown instruction information to the microprocessor when the serial port instruction is a shutdown instruction, so that the microprocessor sends a second control signal to the power supply control module to control the WIFI module to execute shutdown. The microprocessor is further configured to control the power supply control module to send the second control signal to control the power supply module to turn off when detecting that the power supply module power is less than or equal to a preset value, and feed back the power supply module power reminding information to the host computer, and the microprocessor enters the standby state.

[0076] Further, the WIFI module can directly receive the serial port order of the upper computer in the working state, so that the upper computer directly sends the shutdown instruction to the WIFI module. The power control module of the WIFI module needs to be controlled by the microprocessor. After the WIFI module receives the shutdown instruction of the upper computer, the microprocessor feeds back the shutdown instruction information to the microprocessor first, and then sends the second control signal to the power control module to cut off the connection between the power supply module and the WIFI module. The WIFI module is shut down, and the microprocessor returns to the standby state. The microprocessor is only used for detecting the power information of the power supply module and controlling the working state of the power control module, without increasing additional work requirements, without increasing additional power consumption, and without generating too many serial port instructions to increase the operation amount of the WIFI module.

[0077] In some examples, the microprocessor is further configured to, when detecting that the power of the power supply module is less than or equal to the preset value, control the power control module to send the second control signal to control the power module to be turned off, and feed back the power reminder information of the power supply module to the upper computer, and the microprocessor enters the standby state.

[0078] Further, the microprocessor detects the power of the power supply module in the standby wake-up state, and the power of the power supply module is also detected when the WIFI module is in the working state. Therefore, when the microprocessor detects that the power of the power supply module is less than or equal to the preset value, the working state of the WIFI module needs to be judged first to select the subsequent working process. If the WIFI module is in the shutdown state and the microprocessor is in the standby state, the microprocessor receives the enable signal to wake up. After waking up, the power of the power supply module is detected first. When the detected power is less than or equal to the preset value, the power reminder information of the power supply module is directly fed back to the upper computer, and the microprocessor returns to the standby state. If the WIFI module is in the working state, the microprocessor detects the power of the power supply module. When the detected power is less than or equal to the preset value, the microprocessor directly sends the second control signal to the power control module. The power control module responds to the second control signal to cut off the connection between the power supply module and the WIFI module, and feeds back the power reminder information of the power supply module to the upper computer.

[0079] It should be noted that the sending end of the microprocessor for sending the power reminder information to the upper computer can be used only for sending the power reminder information, and in the case of not needing to send information, it is in the high resistance state of the off state. Before sending the power reminder information, the sending end of the microprocessor for sending the power reminder information to the upper computer is initialized.

[0080] In some examples, the microprocessor is configured to periodically detect whether the power supply module has a power greater than a preset value when the WIFI module is in the working state, send a first control signal to the power control module when the power supply module has the power greater than the preset value, send a second control signal to the power control module when the power supply module has the power less than or equal to the preset value, and feed back power supply module power reminding information to the host computer, and the microprocessor enters a standby state. In order to detect the power supply module power information in real time, the microprocessor periodically detects the power supply module when the WIFI module is in the working state. For example, the host computer intermittently sends an enable signal to the microprocessor in a certain period, and the microprocessor performs power detection of the power supply module after receiving the enable signal. When the power detection is not needed, the microprocessor returns to the standby state.

[0081] In a third aspect, the embodiments of the present disclosure further provide a terminal device, which comprises the WIFI module described above. The terminal device can be an electronic ink screen terminal, a computer terminal or other physical machine terminal.

[0082] It can be understood that the above embodiments are only exemplary embodiments for illustrating the principles of the present application, and the present application is not limited thereto. Various modifications and improvements can be made by those skilled in the art without departing from the spirit and essence of the present application, and these modifications and improvements are also considered to be within the protection scope of the present application.

Claims

1. A communication method of a WIFI module, characterized in that, The WIFI module comprises a microprocessor, a power supply control module and a WIFI module; wherein the microprocessor, the power supply control module and the WIFI module are in communication connection with each other, and the minimum working voltage of the microprocessor is less than the minimum working voltage of the WIFI module; the communication method comprises: The microprocessor detects the power supply of the power supply module, and sends a first control signal to the power supply control module when it is detected that the power supply of the power supply module is greater than a preset value; the power supply control module loads the working voltage provided by the power supply module to the WIFI module in response to the first control signal; the WIFI module enters a working state in response to the working voltage provided by the power supply module, receives the serial port instruction sent by the upper computer and executes the corresponding working mode; The communication method further comprises: The microprocessor judges whether the WIFI module is in a shutdown state or a working state when it is detected that the power supply of the power supply module is less than or equal to a preset value; If the WIFI module is in a shutdown state, the microprocessor feeds back the power supply reminder information of the power supply module to the upper computer, and the microprocessor returns to a standby state; If the WIFI module is in a working state, the microprocessor sends a second control signal to the power supply control module and feeds back the power supply reminder information of the power supply module to the upper computer; The power supply control module does not need to wait for the shutdown instruction sent by the upper computer, and cuts off the connection between the power supply module and the WIFI module in response to the second control signal, the WIFI module executes shutdown, and the microprocessor enters a standby state. 2.The communication method of the WIFI module according to claim 1, wherein, The steps that the WIFI module enters a working state, receives the serial port instruction sent by the upper computer and executes the corresponding working mode, comprise: The WIFI module directly receives the serial port instruction sent by the upper computer, and judges whether the serial port instruction is a shutdown instruction; If the serial port instruction is not a shutdown instruction, the WIFI module directly executes the corresponding instruction; If the serial port instruction is a shutdown instruction, the WIFI module feeds back the shutdown instruction information to the microprocessor; the microprocessor sends a second control signal to the power supply control module in response to the shutdown instruction information; the power supply control module cuts off the connection between the power supply module and the WIFI module in response to the second control signal, and the WIFI module executes shutdown. 3.The communication method of the WIFI module according to claim 1, wherein, The communication method of the WIFI module further comprises: When the WIFI module is in a working state, the microprocessor periodically detects the power supply of the power supply module; If the microprocessor detects that the power supply of the power supply module is greater than the preset value, the microprocessor sends the first control signal to the power supply control module; If the microprocessor detects that the power supply module has an amount of power less than or equal to the preset value, the microprocessor sends a second control signal to the power control module and feeds back power amount reminding information of the power supply module to the host computer; the power control module, in response to the second control signal, cuts off the connection between the power supply module and the WIFI module, powers off the WIFI module, and the microprocessor enters a standby state.

4. A WIFI module, characterized in that, The WIFI module includes a microprocessor, a power control module and a WIFI module. The microprocessor is configured to send a first control signal to the power control module when it detects that the power supply module has an amount of power greater than a preset value. The power control module, in response to the first control signal, loads the working voltage provided by the power supply module to the WIFI module to control the WIFI module to enter a working state. The WIFI module is configured to receive serial port instructions sent by the host computer and execute corresponding working modes when in the working state.

5. The WIFI module of claim 4, wherein, The WIFI module is specifically configured to receive serial port instructions sent by the host computer when in the working state, directly execute corresponding instructions when the serial port instructions are non-power-off instructions, and feed back power-off instruction information to the microprocessor when the serial port instructions are power-off instructions, so that the microprocessor sends a second control signal to the power control module to control the WIFI module to execute power-off.

6. The WIFI module of claim 4, wherein, The microprocessor is further configured to control the power control module to send a second control signal to control the power supply module to be turned off and feed back power amount reminding information of the power supply module to the host computer when it detects that the power supply module has an amount of power less than or equal to a preset value, and the microprocessor enters a standby state.

7. The WIFI module of claim 4, wherein, The microprocessor is configured to periodically detect whether the power supply module has an amount of power greater than the preset value when the WIFI module is in the working state, send the first control signal to the power control module when the power supply module has an amount of power greater than the preset value, send a second control signal to the power control module when the power supply module has an amount of power less than or equal to the preset value, feed back power amount reminding information of the power supply module to the host computer, and the microprocessor enters a standby state. 8.The WIFI module of claim 4, wherein, The microprocessor and the WIFI module are connected in communication through a UART interface.

9. The WIFI module of claim 4, wherein, The microprocessor and the power control module are connected through an IO interface.

10. The WIFI module of claim 4, wherein, The minimum working voltage of the microprocessor is less than the minimum working voltage of the WIFI module.

11. A terminal device, comprising: The terminal device includes the WIFI module of any one of claims 4-10. The terminal device includes the WIFI module of any one of claims 4-10.

Citation Information

Patent Citations

  • Mobile communication terminal and power management method thereof

    CN103533619A

  • Intelligent MIFI equipment management method

    CN108419285A

  • Wireless camera system of ultra -low power consumption

    CN208158739U