CN115866728A - Communication method of WIFI module, WIFI module and terminal equipment - Google Patents

Communication method of WIFI module, WIFI module and terminal equipment Download PDF

Info

Publication number
CN115866728A
CN115866728A CN202211475639.6A CN202211475639A CN115866728A CN 115866728 A CN115866728 A CN 115866728A CN 202211475639 A CN202211475639 A CN 202211475639A CN 115866728 A CN115866728 A CN 115866728A
Authority
CN
China
Prior art keywords
module
power supply
wifi module
microprocessor
wifi
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211475639.6A
Other languages
Chinese (zh)
Inventor
张莹
关红涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202211475639.6A priority Critical patent/CN115866728A/en
Publication of CN115866728A publication Critical patent/CN115866728A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The disclosure provides a communication method of a WIFI module, the WIFI module and terminal equipment, and belongs to the technical field of communication. The WIFI module comprises a microprocessor, a power supply control module and a WIFI module; the microprocessor, the power control module and the WIFI module are in two-to-two communication connection, and the communication method comprises the following steps: detecting the electric quantity of a power supply module through a microprocessor, and sending a first control signal to a power control module when the electric quantity of the power supply module is detected to be larger than a preset value; 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; the WIFI module responds to the working voltage provided by the power supply module to enter a working state, receives a serial port instruction sent by the upper computer and executes a corresponding working mode.

Description

Communication method of WIFI module, WIFI module and terminal equipment
Technical Field
The disclosure belongs to the technical field of communication, and particularly relates to a communication method of a WIFI module, the WIFI module and a terminal device.
Background
In a plurality of functional modules of terminal equipment, including the WIFI module, when terminal equipment carries out work, the WIFI module is not continuous work, for example when terminal equipment carries out data processing and is not strong to the networking demand, can close the WIFI module to reduce the consumption. In particular, the mobile power supply used in the terminal device is, for example: a battery; the power consumption has a greater influence on the terminal, and therefore, it is necessary to reduce the power consumption of the terminal device as much as possible.
When current WIFI module standby, still need great standby voltage, consequently when not using the network, with the reduction terminal equipment's that WIFI module standby can not be showing whole consumption, consequently need design a WIFI module urgently and be used for when terminal equipment does not use the network, reduce terminal equipment's consumption.
Disclosure of Invention
The invention aims to at least solve one of technical problems in the prior art, and provides a communication method of a WIFI module, the WIFI module and terminal equipment.
In a first aspect, the disclosed embodiments provide a communication method for a WIFI module, where the WIFI module includes a microprocessor, a power control module, and a WIFI module; the microprocessor, the power control module and the WIFI module are in two-to-two communication connection, and the communication method comprises the following steps:
detecting the electric quantity of a power supply module through a microprocessor, and sending a first control signal to a power control module when the electric quantity of the power supply module is detected to be larger than a preset value;
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;
the WIFI module responds to the working voltage provided by the power supply module to enter a working state, receives a serial port instruction sent by the upper computer and executes a corresponding working mode.
Wherein, WIFI module entering operating condition receives the serial ports instruction that the host computer sent and the step of execution, includes:
the WIFI module directly receives a serial port instruction sent by an upper computer and judges whether the serial port instruction is a shutdown instruction or not;
if the serial port instruction is a non-shutdown instruction, the WIFI module directly executes a corresponding instruction;
if the serial port instruction is a shutdown instruction, the WIFI module feeds back shutdown instruction information to the microprocessor; the microprocessor responds to the shutdown instruction information and sends a second control signal to the power supply control module; the power supply control module responds to the second control signal, the power supply module is disconnected from the WIFI module, and the WIFI module executes shutdown.
The communication method of the WIFI module further comprises the following steps:
when the microprocessor detects that the electric quantity of the power supply module is smaller than or equal to a preset value, judging whether the WIIF module is in a shutdown state or a working state;
if the WIIF module is in a shutdown state, the microprocessor feeds back electric quantity reminding information of the power supply module to the upper computer, and the microprocessor returns to a standby state;
if the WIIF module is in a working state, the microprocessor sends a second control signal to the power supply control module and feeds back electric quantity reminding information of the power supply module to the upper computer; the power control module is responsive to the second control signal; and the power supply module is disconnected from the WIFI module, the WIFI module executes shutdown, and the microprocessor enters a standby state.
The communication method of the WIFI module further comprises the following steps: when the WIFI module is in the working state,
the microprocessor periodically detects the electric quantity of the power supply module;
if the microprocessor detects that the electric quantity of the power supply module is larger than the preset value, the microprocessor sends the first control signal to the power control module;
if the microprocessor detects that the electric quantity of the power supply module is smaller than or equal to the preset value, the microprocessor sends a second control signal to the power control module and feeds back electric quantity reminding information of the power supply module to the upper computer; the power supply control module responds to the second control signal, the power supply module is disconnected from the WIFI module, the WIFI module is powered off, and the microprocessor enters a standby state.
In a second aspect, the embodiment of the present disclosure further provides a WIFI module, where 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 supply control module when detecting that the electric quantity of the power supply module is greater than a preset value;
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 so as to control the WIFI module to enter a working state;
and the WIFI module is configured to receive a serial port instruction sent by the upper computer and execute a corresponding working mode when the WIFI module is in a working state.
The WIFI module is specifically configured to receive a serial port instruction sent by an upper computer in a 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 control module to control the WIFI module to execute shutdown.
The microprocessor is further configured to control the power supply control module to send a second control signal to control the power supply module to be turned off and feed back the power supply reminding information of the power supply module to the upper computer when the fact that the electric quantity of the power supply module is smaller than or equal to a preset value is detected, and the microprocessor enters a standby state.
The microprocessor is configured to periodically detect whether the electric quantity of the power supply module is larger than the preset value or not when the WIFI module is in a working state, send the first control signal to the power control module when the electric quantity of the power supply module is larger than the preset value, send the second control signal to the power control module when the electric quantity of the power supply module is smaller than or equal to the preset value, and feed back the electric quantity reminding information of the power supply module to the upper computer, and the microprocessor enters a standby state.
The microprocessor and the WIFI module are connected through a UART interface.
The microprocessor and the power supply control module are connected through an IO interface.
And the minimum working voltage of the microprocessor is less than the minimum working voltage of the WIFI module.
In a third aspect, the present disclosure further provides a terminal device, where the terminal device includes any one of the foregoing WIFI modules.
Drawings
Fig. 1 is a schematic view of a communication method of a WIFI module provided in an embodiment of the present disclosure.
Fig. 2 is a flowchart of a communication method of a WIFI module provided in an embodiment of the present disclosure.
Fig. 3 is a schematic view of a communication method after the WIFI module enters the working state in the embodiment of the present disclosure.
Fig. 4 is a schematic diagram of a communication method when the microprocessor detects that the power of the power supply module is less than or equal to a preset value according to an embodiment of the present disclosure.
Fig. 5 is a schematic view of a workflow of a microprocessor after a WIFI module enters a working state, which is provided in an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of a WIFI module provided in an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present invention better understood, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Unless otherwise defined, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this disclosure belongs. The use of "first," "second," and similar terms in this disclosure is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. Also, the use of the terms "a," "an," or "the" and similar referents do not denote a limitation of quantity, but rather denote the presence of at least one. The word "comprising" or "comprises", and the like, means that the element or item preceding the word comprises the element or item listed after the word and its equivalent, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
The terminal equipment comprises a plurality of types, each terminal equipment comprises a plurality of modules which are used for realizing different functions, the main functions of different terminal equipment are different, and the power supply modes are also different. The method is characterized in that the service time of the terminal is expected to be as long as possible, the power consumption is expected to be as small as possible, the power consumption of each module on the corresponding terminal is required to be reduced, taking an electronic ink screen terminal adopting a battery as a power supply module as an example, the electronic ink screen terminal comprises software or an operation program which needs to be realized by networking, and software or an operation program which can be processed without a network, and when the networking requirement is not strong, the WIFI module can be in a shutdown state or a standby state, so that the effect of reducing the power consumption of terminal equipment is achieved. If the WIFI module is powered off when not in work, a power supply enabling module needs to be added in the circuit to control the power-on and power-off of the WIFI module, so that a transmission link of the WIFI module is lengthened; the standby of the WIFI module still requires the external device to wake up the WIFI module, and the standby of the WIFI module cannot effectively reduce the consumed power.
In view of this, the embodiment of the present disclosure provides a communication method for a WIFI module, and a terminal device. The WIFI module is designed by combining a traditional WIFI module and a microprocessor, and a communication method of the WIFI module is designed, so that the WIFI module capable of realizing low-power-consumption standby is realized on the premise of not increasing a transmission link between the WIFI module and terminal equipment.
In a first aspect, an embodiment of the present disclosure discloses a communication method for a WIFI module, where fig. 1 is a schematic diagram of the communication method for the WIFI module provided in the embodiment of the present disclosure, and fig. 2 is a flowchart of the communication method for the WIFI module provided in the embodiment of the present disclosure, and as shown in fig. 1 and 2, the communication method for the WIFI module includes: the WIFI module comprises a microprocessor, a power supply control module and a WIFI module; the microprocessor, the power control module and the WIFI module are in two-two communication connection, and the communication method comprises the following steps:
s1: the method comprises the steps of detecting the electric quantity of a power supply module through a microprocessor, and sending a first control signal to a power control module when the electric quantity of the power supply module is detected to be larger than a preset value.
Specifically, when the WIFI module is turned off and the microprocessor is in a standby state, the microprocessor initializes itself before executing the instruction on the premise that the microprocessor is powered on. After the WIFI module receives the data signal of the upper computer, the initialized microprocessor reads an enabling signal from the data signal and wakes up the microprocessor in a standby state. The awakened microprocessor starts to detect electric quantity information according to data such as current and voltage input to the power control module from the power supply module, and when the detected electric quantity of the power supply module is larger than a preset value, the microprocessor sends a first control signal to the power control module. The microprocessor can be understood to supply power through the power supply module, and the microprocessor is directly connected with the power supply module; the data signal read by the microprocessor may also be a control signal where the control signal is used as an enable signal to wake up the microprocessor.
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 this embodiment of the disclosure can be any one kind of terminal equipment, and the WIFI module can be connected with the integrated circuit board in the terminal equipment, communicates through a UART interface, also can communicate through the USB interface, in this embodiment of the disclosure, does not do further injecture to the connected mode of host computer, WIFI module and host computer and the structure that the WIFI module and host computer are connected.
S2: 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.
Specifically, the power control module plays a role of a switch, and after the power control module receives a first control signal, the power supply module is conducted with the WIFI module, so that the WIFI module is switched on to work voltage.
S3: the WIFI module responds to the working voltage provided by the power supply module to enter a working state, receives a serial port instruction sent by the upper computer and executes a corresponding working mode.
Specifically, after the working voltage provided by the power module is loaded by the WIFI module, the WIFI module is initialized according to specific conditions, then the WIFI module enters a working state, and 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 a corresponding working mode according to the serial port instruction, for example: if the serial port instruction is a shutdown instruction, the WIFI module executes a shutdown process and feeds back shutdown instruction information to the microprocessor; if the serial port instruction is a working starting instruction, the WIFI module is initialized and starts working after being awakened by the working starting instruction after being powered on; when the serial port instruction is a data transmission instruction, a data receiving instruction and a data analysis instruction, the WIFI module executes a corresponding working mode to correspondingly process the transmitted data.
By the method, on the premise that a data link between the WIFI module and the upper computer is not prolonged, the microprocessor is additionally arranged and used for detecting the electric quantity information of the power supply module and controlling the power supply control module to supply power to the WIFI module or not. In the prior art, the standby of the WIFI module is changed into the standby of the microprocessor in the application when the terminal equipment does not need a network. The supply voltage of the WIFI module is usually 3.3V to 5V, and the microprocessor supplies power by adopting a wide potential, so that standby can be realized under the voltage of 1V to 2V, and the WIFI module can be awakened to start working at any time. Through this technical scheme, increased the operating condition that supply voltage is lower and the lower microprocessor of consumption controls whole module in the WIFI module, realized reducing the holistic consumption of WIFI module. If do not increase microprocessor, want to close or open the WIFI module at any time, then need design power enable module in circuit or integrated circuit board, can make whole circuit or integrated circuit board become relatively complicated, and the data link length of WIFI module when carrying out the data interaction in the work has been prolonged, therefore, through increasing microprocessor in the WIFI module, direct and host computer carry out interactive method when the WIFI module is worked, under the prerequisite that has reduced the operating power of WIFI module, do not prolong the data link of WIFI module, can not influence data transmission's efficiency, also can not lead to causing extra load because of the data link that has prolonged data link increases.
As shown in fig. 3, after the power control module receives the first control signal, the power control module switches on the power supply module and the WIFI module, and the WIFI module enters a working state, receives a serial port instruction sent by the upper computer and executes the serial port instruction, including:
s11: the WIFI module directly receives a serial port instruction sent by the upper computer and judges whether the serial port instruction is a shutdown instruction or not.
Specifically, when the WIFI module is in a working state, after the WIFI module directly receives a serial port instruction from the upper computer, after the serial port instruction is received, the WIFI module firstly judges the instruction, judges whether the instruction is a shutdown instruction or not, and enters a corresponding subsequent flow according to a judgment result.
S12: and if the serial port instruction is a non-shutdown instruction, the WIFI module directly executes a corresponding instruction.
Specifically, when the WIFI module judges that the serial port instruction that the host computer sent is not the shutdown instruction, the WIFI module directly executes the serial port instruction, and the serial port instruction can be a data transmission instruction, a data receiving instruction and a data analysis instruction or a start work instruction just after the WIFI module is electrified.
S13: if the serial port instruction is a shutdown instruction, the WIFI module feeds back shutdown instruction information to the microprocessor; the microprocessor responds to the shutdown instruction information and sends a second control signal to the power supply control module; the power supply control module responds to the second control signal, the power supply module is cut off from being connected with the WIFI module, and the WIFI module executes shutdown.
Specifically, because 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, the power control module for controlling the power supply of the WIFI module needs to be controlled by the microprocessor, the WIFI module feeds back shutdown instruction information to the microprocessor after receiving the shutdown instruction of the upper computer, the microprocessor sends a second control signal to the power control module, the power supply module is cut off from being connected with the WIFI module, the WIFI module is shut down, and the microprocessor is restored to the standby state. The microprocessor is only used for detecting the electric quantity information of the power supply module and controlling the working state of the power supply control module, extra working requirements do not need to be increased, extra power consumption cannot be increased, and too many serial port instructions cannot be generated to increase the operation amount of the WIFI module.
As shown in fig. 4, when the microprocessor detects that the electric quantity of the power supply module is less than or equal to the preset value, the communication method of the WIFI module further includes:
s21: when the microprocessor detects that the electric quantity of the power supply module is smaller than or equal to a preset value, whether the WIIF module is in a shutdown state or a working state is judged.
Specifically, microprocessor detects the electric quantity of power supply module when standby awakening state, also can detect the electric quantity of power supply module when WIFI module is in operating condition. Therefore, when the microprocessor detects that the electric quantity of the power supply module is smaller than or equal to the preset value, the microprocessor needs to judge the working state of the WIFI module first so as to select a subsequent work flow.
S22: if the WIIF module is in a shutdown state, the microprocessor feeds back electric quantity reminding information of the power supply module to the upper computer, and the microprocessor restores to a standby state.
Specifically, when the WIFI module is in a shutdown state and the microprocessor is in a standby state, the microprocessor receives an enabling signal to wake up, the power supply module is firstly subjected to electric quantity detection after the wake-up, and when the detected electric quantity is smaller than or equal to a preset value, the electric quantity reminding information of the power supply module is directly fed back to the upper computer and is recovered to the standby state.
S23: if the WIIF module is in a working state, the microprocessor sends a second control signal to the power supply control module and feeds back electric quantity reminding information of the power supply module to the upper computer; the power control module responds to a second control signal; and the power supply module is disconnected from the WIFI module, the WIFI module executes shutdown, and the microprocessor enters a standby state.
Specifically, when the WIFI module is in a working state, the microprocessor detects the electric quantity of the power supply module, and when the detected electric quantity is smaller than or equal to a preset value, the microprocessor directly sends a second control signal to the power supply control module, and the power supply control module responds to the second control signal, cuts off the connection between the power supply module and the WIFI module, and feeds back electric quantity reminding information of the power supply module to the upper computer; the WIFI module does not need to wait for the shutdown instruction given by the upper computer, and when the microprocessor detects that the electric quantity of the power supply module is smaller than or equal to a preset value, the power supply control module is directly controlled to cut off the connection between the power supply module and the WIFI module, so that the working efficiency of the WIFI module is improved.
It should be noted that the sending end of the microprocessor, which is used for sending the electric quantity reminding information to the upper computer, may be only used for sending the electric quantity reminding information, and is in the off state of the high resistance state under the condition that the sending information is not needed. Before sending the electric quantity reminding information, initializing a sending end of the microprocessor for sending the electric quantity reminding information to the upper computer.
As shown in fig. 5, when the WIFI module is in an operating state, the power information of the power supply module needs to be detected in real time, and therefore the communication method of the WIFI module further includes:
s31: when the WIFI module is in a working state, the microprocessor detects the electric quantity of the power supply module periodically.
Specifically, in order to detect the electric quantity information of the power supply module in real time, when the WIFI module is in a working state, the microprocessor keeps performing periodic electric quantity detection on the power supply module. For example, in a certain period, the upper computer intermittently sends an enable signal to the microprocessor, the microprocessor receives the enable signal and then executes electric quantity detection on the power supply module, and when the electric quantity detection is not needed, the microprocessor returns to the standby state.
S32: if the microprocessor detects that the electric quantity of the power supply module is larger than a preset value, the microprocessor sends a first control signal to the power control module.
S33: if the microprocessor detects that the electric quantity of the power supply module is smaller than or equal to a preset value, the microprocessor sends a second control signal to the power control module and feeds back electric quantity reminding information of the power supply module to the upper computer; the power control module responds to the second control signal, the power supply module is cut off from being connected with the WIFI module, the WIFI module is shut down, and the microprocessor enters a standby state.
Specifically, the workflow of S33 is identical to S23, and will not be described herein.
In a second aspect, an embodiment of the present disclosure further provides a WIFI module, as shown in fig. 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 supply control module when detecting that the electric quantity of the power supply module is larger than a preset value; 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 so as to control the WIFI module to enter a working state; the WIFI module is configured to receive a serial port instruction sent by the upper computer and execute a corresponding working mode when the WIFI module is in a working state.
The microprocessor, the power 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; the microprocessor is connected with the power supply control module through an IO interface. In order to reduce the connecting interface between the WIFI module and the upper computer, the WIFI module and the microprocessor can share the connecting interface to be used for sending data and receiving data. The WIFI module receives a data signal of the upper computer, reads an enabling signal from the data signal, and wakes up the microprocessor in a standby state. The awakened microprocessor starts to detect electric quantity information according to data such as current and voltage input to the power control module from the power supply module, and when the detected electric quantity of the power supply module is larger than a preset value, the microprocessor sends a first control signal to the power control module. The power supply control module plays a role of a switch, and after the power supply control module receives the first control signal, the power supply module is conducted with the WIFI module, so that the WIFI module is switched on to work voltage. After the working voltage that power module provided is loaded on to the WIFI module, carry out WIFI module initialization earlier according to particular case, then the WIFI module gets into operating condition, and after the WIFI module got into operating condition, the serial port instruction that the host computer sent can directly be received to the WIFI module to carry out corresponding mode according to the serial port instruction, for example: if the serial port instruction is a shutdown instruction, the WIFI module executes a shutdown process and feeds back shutdown instruction information to the microprocessor; if the serial port instruction is a working starting instruction, the WIFI module is initialized and starts working after being awakened by the working starting instruction after being powered on; when the serial port instruction is a data transmission instruction, a data receiving instruction and a data analysis instruction, the WIFI module executes a corresponding working mode to correspondingly process the transmitted data.
The WIFI module in the embodiment of the disclosure adds a microprocessor for detecting the electric quantity information of the power supply module and controlling whether the power supply control module supplies power to the WIFI module or not on the premise of not prolonging the data link between the WIFI module and the upper computer. In the prior art, the standby of the WIFI module is changed into the standby of the microprocessor in the application when the terminal equipment does not need a network. The supply voltage of the WIFI module is usually 3.3V to 5V, and the microprocessor supplies power by adopting a wide potential, so that standby can be realized under the voltage of 1V to 2V, and the WIFI module can be awakened to start working at any time. It can be appreciated that the minimum operating voltage of the microprocessor is less than the minimum operating voltage of the WIFI module. Through this technical scheme, increased the operating condition that supply voltage is lower and the lower microprocessor of consumption controls whole module in the WIFI module, realized reducing the holistic consumption of WIFI module. If not increase microprocessor, want to close or open the WIFI module at any time, then need design power enable module in circuit or integrated circuit board, can make whole circuit or integrated circuit board become relatively complicated, and prolonged the data link length of WIFI module when carrying out data interaction in the work, therefore, through increasing microprocessor in the WIFI module, direct method of carrying out the interaction with the host computer when WIFI module during operation, under the prerequisite that has reduced the operating power of WIFI module, do not prolong the data link of WIFI module, can not influence data transmission's efficiency, can not lead to leading to causing extra load because of the data link of having prolonged the data link increases yet.
In some examples, the WIFI module is specifically configured to receive a serial port instruction sent by the upper computer in an operating 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 control module to control the WIFI module to perform shutdown. The microprocessor is also configured to control the power supply control module to send a second control signal when detecting that the electric quantity of the power supply module is smaller than or equal to a preset value so as to control the power supply module to be switched off and to remind information of the electric quantity of the feedback source supply module of the upper computer, and the microprocessor enters a standby state.
Further, the WIFI module can directly receive a serial port order of the upper computer in the working state, so that the upper computer directly sends a shutdown order to the WIFI module, a power supply control module for controlling a power supply of the WIFI module needs to be controlled through the microprocessor, the WIFI module feeds back shutdown order information to the microprocessor after receiving the shutdown order of the upper computer, then the microprocessor sends a second control signal to the power supply control module, the power supply module is cut off from being connected with the WIFI module, the WIFI module is shut down, and the microprocessor is restored to the standby state. The microprocessor is only used for detecting the electric quantity information of the power supply module and controlling the working state of the power supply control module, extra working requirements do not need to be increased, extra power consumption cannot be increased, and too many serial port instructions cannot be generated to increase the operation amount of the WIFI module.
In some examples, the microprocessor is further configured to control the power supply control module to send a second control signal to control the power supply module to turn off when detecting that the electric quantity of the power supply module is less than or equal to a preset value, and to provide the electric quantity reminding information of the module to the feedback source of the upper computer, and the microprocessor enters a standby state.
Further, microprocessor detects the electric quantity of power supply module when standby awakening state, also can detect the electric quantity of power supply module when WIFI module is in operating condition. Therefore, when the microprocessor detects that the electric quantity of the power supply module is smaller than or equal to the preset value, the microprocessor needs to judge the working state of the WIFI module first so as to select a subsequent work flow. If the WIFI module is in a shutdown state and the microprocessor is in a standby state, the microprocessor receives the enabling signal to wake up, the power supply module is firstly subjected to power detection after wake-up, when the detected power is smaller than or equal to a preset value, the power supply module directly feeds back power reminding information to the upper computer, and the microprocessor recovers to the standby state. If the WIFI module is in a working state, the microprocessor detects the electric quantity of the power supply module, when the detected electric quantity is smaller than or equal to a preset value, the microprocessor directly sends a second control signal to the power supply control module, the power supply control module responds to the second control signal, the power supply module is cut off from being connected with the WIFI module, and the power supply module feeds back electric quantity reminding information to the upper computer.
It should be noted that the sending end of the microprocessor, which is used for sending the electric quantity reminding information to the upper computer, may be only used for sending the electric quantity reminding information, and is in the off state of the high resistance state under the condition that the sending information is not needed. Before sending the electric quantity reminding information, initializing a sending end of the microprocessor for sending the electric quantity reminding information to the upper computer.
In some examples, the microprocessor is configured to periodically detect whether the electric quantity of the power supply module is greater than a preset value when the WIFI module is in an operating state, and send a first control signal to the power control module when the electric quantity of the power supply module is greater than the preset value, send a second control signal to the power control module when the electric quantity of the power supply module is less than or equal to the preset value, and feed back electric quantity reminding information of the power supply module to the upper computer, and the microprocessor enters a standby state. In order to detect the electric quantity information of the power supply module in real time, when the WIFI module is in a working state, the microprocessor keeps carrying out periodic electric quantity detection on the power supply module. For example, in a certain period, the upper computer intermittently sends an enable signal to the microprocessor, the microprocessor receives the enable signal and then executes power detection on the power supply module, and when the power detection is not needed, the microprocessor returns to the standby state.
In a third aspect, the embodiment of the present disclosure further provides a terminal device, which includes the above-mentioned WIFI module, and the terminal device may be an electronic ink screen terminal, a computer terminal, or other physical machine terminals.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (12)

1. The communication method of the WIFI module is characterized in that the WIFI module comprises a microprocessor, a power supply control module and a WIFI module; the microprocessor, the power control module and the WIFI module are in two-to-two communication connection, and the communication method comprises the following steps:
detecting the electric quantity of a power supply module through a microprocessor, and sending a first control signal to a power control module when the electric quantity of the power supply module is detected to be larger than a preset value;
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;
the WIFI module responds to the working voltage provided by the power supply module to enter a working state, receives a serial port instruction sent by the upper computer and executes a corresponding working mode.
2. The communication method of the WIFI module according to claim 1, wherein the WIFI module enters a working state, receives a serial port instruction sent by an upper computer and executes the serial port instruction, and the method comprises the following steps:
the WIFI module directly receives a serial port instruction sent by an upper computer and judges whether the serial port instruction is a shutdown instruction or not;
if the serial port instruction is a non-shutdown instruction, the WIFI module directly executes a corresponding instruction;
if the serial port instruction is a shutdown instruction, the WIFI module feeds back shutdown instruction information to the microprocessor; the microprocessor responds to the shutdown instruction information and sends a second control signal to the power supply control module; the power supply control module responds to the second control signal, the power supply module is disconnected from the WIFI module, and the WIFI module executes shutdown.
3. The communication method for the WIFI module according to claim 1, further comprising:
when the microprocessor detects that the electric quantity of the power supply module is smaller than or equal to a preset value, judging whether the WIIF module is in a shutdown state or a working state;
if the WIIF module is in a shutdown state, the microprocessor feeds back electric quantity reminding information of the power supply module to the upper computer, and the microprocessor returns to a standby state;
if the WIIF module is in a working state, the microprocessor sends a second control signal to the power supply control module and feeds back electric quantity reminding information of the power supply module to the upper computer; the power control module is responsive to the second control signal; and the power supply module is disconnected from the WIFI module, the WIFI module executes shutdown, and the microprocessor enters a standby state.
4. The communication method of the WIFI module of claim 1, further comprising: when the WIFI module is in the working state,
the microprocessor periodically detects the electric quantity of the power supply module;
if the microprocessor detects that the electric quantity of the power supply module is larger than the preset value, the microprocessor sends the first control signal to the power control module;
if the microprocessor detects that the electric quantity of the power supply module is smaller than or equal to the preset value, the microprocessor sends a second control signal to the power control module and feeds back electric quantity reminding information of the power supply module to the upper computer; the power supply control module responds to the second control signal, the power supply module is disconnected from the WIFI module, the WIFI module is powered off, and the microprocessor enters a standby state.
5. The WIFI module is characterized by comprising a microprocessor, a power supply control module and a WIFI module;
the microprocessor is configured to send a first control signal to the power supply control module when detecting that the electric quantity of the power supply module is larger than a preset value;
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 so as to control the WIFI module to enter a working state;
and the WIFI module is configured to receive a serial port instruction sent by the upper computer and execute a corresponding working mode when the WIFI module is in a working state.
6. The WIFI module according to claim 5, wherein the WIFI module is specifically configured to receive a serial port instruction sent by an upper computer in an operating 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 control module to control the WIFI module to execute shutdown.
7. The WIFI module of claim 5, wherein the microprocessor is further configured to control the power control module to send a second control signal when it is detected that the electric quantity of the power supply module is smaller than or equal to a preset value, so as to control the power module to be turned off, and feed back an electric quantity reminding message of the source supply module to the upper computer, so that the microprocessor enters a standby state.
8. The WIFI module according to claim 5, wherein the microprocessor is configured to periodically detect whether the power of the power supply module is greater than the preset value when the WIFI module is in an operating state, send the first control signal to the power control module when the power of the power supply module is greater than the preset value, send the second control signal to the power control module when the power of the power supply module is less than or equal to the preset value, and feed back power reminding information of the power supply module to the upper computer, and the microprocessor enters a standby state.
9. The WIFI module of claim 5, wherein the microprocessor and the WIFI module are communicatively connected through a UART interface.
10. The WIFI module of claim 5, wherein the microprocessor and the power control module are connected through an IO interface.
11. The WIFI module of claim 5, wherein a minimum operating voltage of the microprocessor is less than a minimum operating voltage of the WIFI module.
12. A terminal device, characterized in that the terminal device comprises a WIFI module as claimed in any one of claims 5 to 11.
CN202211475639.6A 2022-11-23 2022-11-23 Communication method of WIFI module, WIFI module and terminal equipment Pending CN115866728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211475639.6A CN115866728A (en) 2022-11-23 2022-11-23 Communication method of WIFI module, WIFI module and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211475639.6A CN115866728A (en) 2022-11-23 2022-11-23 Communication method of WIFI module, WIFI module and terminal equipment

Publications (1)

Publication Number Publication Date
CN115866728A true CN115866728A (en) 2023-03-28

Family

ID=85665431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211475639.6A Pending CN115866728A (en) 2022-11-23 2022-11-23 Communication method of WIFI module, WIFI module and terminal equipment

Country Status (1)

Country Link
CN (1) CN115866728A (en)

Similar Documents

Publication Publication Date Title
US8745417B2 (en) Computer system and notebook computer, and method for controlling computer system
US7296107B2 (en) System and method for detection of an accessory device connection status
CN101387843B (en) Power control system
CN107340014B (en) Multi-sensor detection method and device and computer readable storage medium
US20100185884A1 (en) Standby power saving system and computer power-on and power-off method thereof
CN213338362U (en) Household appliance
CN101790225A (en) Power management method and device for on-line module
CN210273593U (en) High-power supply circuit with low standby power consumption and LED display control system
CN102609071B (en) Bridge device and power-saving operation method thereof
CN101639724A (en) Computer, computer power supply control device and power supply control method
CN101727159A (en) Power supply control circuit
CN102650904A (en) Low power consumption circuit and method for reducing power consumption
CN210041420U (en) Controllable power supply starting expansion circuit and vehicle-mounted electronic equipment
JP2000122756A (en) Electronic equipment
CN108227900B (en) Electronic device, energy-saving control method, energy-saving device, and readable storage medium
CN105554574B (en) Module television and low-power-consumption standby method and system thereof
CN105487638A (en) Electronic circuit system and power consumption reducing method thereof
CN115866728A (en) Communication method of WIFI module, WIFI module and terminal equipment
CN103488270B (en) Electricity saving method and electronic installation thereof
CN105446912A (en) Method and device of CPU (Central Processing Unit) for connecting WIFI module through HSIC (High Speed Inter-chip) bus interface
CN108196481B (en) Power supply adjusting method and electronic equipment
CN103186223A (en) Computer device and detection method for external daughterboard
CN109976490B (en) Power supply control method and electronic equipment
CN112910968B (en) Centralized control receiving system and receiving method thereof
CN110764398B (en) Intelligent watch and mode switching method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination