Communication method, apparatus, computer storage medium, and electronic device

By using low-power commands to start and switch to dynamic power commands in the wireless module communication between the electronic tag and the card reader, the problem of insufficient sensing distance was solved, and normal data transmission was achieved.

CN116456443BActive Publication Date: 2026-05-29ZHEJIANG SHAOXING SUPOR DOMESTIC ELECTRICAL APPLIANCE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG SHAOXING SUPOR DOMESTIC ELECTRICAL APPLIANCE CO LTD
Filing Date
2022-12-30
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Due to differences in the internal voltage regulator modules, existing electronic tags have a shorter sensing distance than required by design, making it difficult for the electronic tags and card readers to transmit data normally.

Method used

The second wireless module sends a preset number of low-power commands to the first wireless module. After receiving the preset number of target data, it switches to dynamic power commands for communication. The current of the dynamic power commands is greater than that of the low-power commands to ensure data transmission quality.

Benefits of technology

Even with a short sensing distance, normal data transmission between the electronic tag and the reader is achieved, reducing the cost of module replacement or maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116456443B_ABST
    Figure CN116456443B_ABST
Patent Text Reader

Abstract

The application discloses a communication method, device, computer storage medium and electronic device. The method comprises the following steps: controlling a second wireless module to send a preset number of low-power instructions to a first wireless module, wherein the second wireless module is arranged on a main body of a target device, and the first wireless module is arranged on a cover of the target device; judging whether the second wireless module receives the preset number of target data returned by the first wireless module; in the case that the second wireless module receives the preset number of target data returned by the first wireless module, controlling the second wireless module to communicate with the first wireless module by sending a dynamic power consumption instruction, wherein the current of the dynamic power consumption instruction is greater than that of the low-power instruction. Through the application, the problem that data transmission between an electronic tag and a card reader is difficult in the case that the sensing distance of the electronic tag is shorter than the designed sensing distance in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more specifically, to a communication method, apparatus, computer storage medium, and electronic device. Background Technology

[0002] Due to variations in their internal voltage regulation modules, a certain percentage of existing electronic tags have a sensing distance shorter than designed. This can cause startup failures when attempting to initiate communication between the tag and reader using conventional methods. For example, if the design requires the tag and reader to detect each other at a distance of 19mm, placing a tag with a sensing distance of only 15mm at 19mm will fail because the tag itself lacks sufficient power to power the upper module and transmit data. This results in data transmission failure between the tag and reader.

[0003] There is currently no effective solution to the problem of data transmission between electronic tags and card readers when the sensing distance of the electronic tag is shorter than the design requirement. Summary of the Invention

[0004] This application provides a communication method, apparatus, computer storage medium, and electronic device to solve the problem in the related art where it is difficult to transmit data between the electronic tag and the card reader when the sensing distance of the electronic tag is shorter than the design required sensing distance.

[0005] According to one aspect of this application, a communication method is provided. The method includes: controlling a second wireless module to send a preset number of low-power commands to a first wireless module, wherein the second wireless module is disposed on the main body of a target device, and the first wireless module is disposed on the cover of the target device; determining whether the second wireless module receives a preset number of target data returned by the first wireless module, wherein the first wireless module returns target data each time it receives a low-power command; and, upon receiving the preset number of target data returned by the first wireless module, controlling the second wireless module to communicate with the first wireless module by sending a dynamic power consumption command, wherein the current of the dynamic power consumption command is greater than the current of the low-power command. This embodiment achieves the effect of normal data transmission between the two wireless modules even when the sensing distance between them is short by controlling the second wireless module to start the first wireless module by sending a low-power command, and then controlling the second wireless module to communicate with the first wireless module by sending a dynamic power consumption command after the first wireless module is started.

[0006] Optionally, determining whether the second wireless module has received the target data returned by the first wireless module a preset number of times includes: after each low-power command sent by the second wireless module, determining whether the second wireless module has received the target data returned by the first wireless module; if the second wireless module has received the target data returned by the first wireless module, controlling the target counter to increment by one, wherein the target counter is cleared before the second wireless module sends the low-power command for the first time; after the second wireless module sends the last low-power command to the first wireless module, determining whether the counter count has reached the preset number, wherein sending the last low-power command refers to the last low-power command among the preset number of low-power commands sent; if the counter count has reached the preset number, determining that the second wireless module has received the target data returned by the first wireless module a preset number of times; if the counter count has not reached the preset number, determining that the second wireless module has not received the target data returned by the first wireless module a preset number of times. In this embodiment, after each low-power command sent by the second wireless module, it determines whether the second wireless module has received the target data returned by the first wireless module, and combines this with the counter to count the successful transmission of the low-power command, thereby obtaining the result of whether the second wireless module has received the target data returned by the first wireless module a preset number of times.

[0007] Optionally, after determining whether the second wireless module has received the target data returned by the first wireless module a preset number of times, the method further includes: if the second wireless module receives less than the preset number of target data returned by the first wireless module, issuing an alarm message, wherein the alarm message is used to indicate that a communication connection has not been established between the first and second wireless modules. This embodiment issues an alarm when the first wireless module fails to start, preventing the target device from using a first wireless module that cannot start, thus avoiding abnormal situations during subsequent operation.

[0008] Optionally, the current range of the low-power command is between 0 and 8 μA. This embodiment transmits low-power commands with lower current, allowing for a longer transmission distance, which facilitates the first wireless module receiving the command and starting up.

[0009] Optionally, the current of the dynamic power consumption command is determined by the resistance value of the first wireless module and the resistance value of the temperature measurement module connected to the first wireless module.

[0010] Optionally, controlling the second wireless module to communicate with the first wireless module by sending dynamic power consumption commands includes: controlling the second wireless module to send dynamic power consumption commands to the first wireless module; and controlling the second wireless module to receive the target data transmitted back by the first wireless module. In this embodiment, sending dynamic power consumption commands after the first wireless module has started normally ensures the data transmission quality between the first and second wireless modules.

[0011] Optionally, after controlling the second wireless module to communicate with the first wireless module by sending dynamic power consumption commands, the method further includes: determining the state of the cover of the target device based on the target data transmitted by the second wireless module and the first wireless module. This embodiment determines the state of the cover of the target device by transmitting target data, thereby enabling convenient determination of the cover's state without needing to set a power supply to the cover.

[0012] According to another aspect of this application, a communication device is provided. The device includes: a first control unit, configured to control a second wireless module to send a preset number of low-power commands to the first wireless module, wherein the second wireless module is disposed on the main body of a target device, and the first wireless module is disposed on the cover of the target device; a judging unit, configured to judge whether the second wireless module has received the preset number of target data returned by the first wireless module, wherein the first wireless module returns target data each time it receives a low-power command; and a second control unit, configured to, when the second wireless module receives the preset number of target data returned by the first wireless module, control the second wireless module to communicate with the first wireless module by sending dynamic power consumption commands, wherein the current of the dynamic power consumption command is greater than the current of the low-power command.

[0013] According to another aspect of the present invention, a computer storage medium is also provided, the computer storage medium including a stored program, wherein the program, when running, controls the device where the computer storage medium is located to execute a communication method.

[0014] According to another aspect of the present invention, an electronic device is also provided, comprising a processor and a memory; the memory stores computer-readable instructions, and the processor is configured to execute the computer-readable instructions, wherein the computer-readable instructions execute a communication method when executed.

[0015] This application employs the following steps: controlling a second wireless module to send a preset number of low-power commands to a first wireless module, wherein the second wireless module is disposed on the main body of the target device, and the first wireless module is disposed on the cover of the target device; determining whether the second wireless module has received the preset number of target data returned by the first wireless module, wherein the first wireless module returns target data each time it receives a low-power command; when the second wireless module receives the preset number of target data returned by the first wireless module, controlling the second wireless module to communicate with the first wireless module by sending a dynamic power consumption command, wherein the current of the dynamic power consumption command is greater than the current of the low-power command, thus solving the problem in related technologies where data transmission between the electronic tag and the card reader is difficult when the sensing distance of the electronic tag is shorter than the design required sensing distance. Controlling the second wireless module to start the first wireless module by sending a low-power command, and then controlling the second wireless module to communicate with the first wireless module by sending a dynamic power consumption command, achieves the effect of normal data transmission between the two wireless modules even when the sensing distance between them is short. Attached Figure Description

[0016] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0017] Figure 1 This is a schematic diagram of a communication system provided according to an embodiment of this application;

[0018] Figure 2 This is a flowchart of a communication method provided according to an embodiment of this application;

[0019] Figure 3 This is a flowchart of an optional communication method provided according to an embodiment of this application;

[0020] Figure 4 This is a schematic diagram of a communication device provided according to an embodiment of this application. Detailed Implementation

[0021] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] According to embodiments of this application, a communication system is provided. Figure 1 This is a flowchart of a communication system according to an embodiment of this application. For example... Figure 1 As shown, the system includes:

[0025] Temperature sensor 101 is installed on the cover of the target device. Specifically, temperature sensor 101 can be an NTC (Negative Temperature Coefficient) sensor, and the target device can be a rice cooker. First wireless module 102 is installed on the cover of the target device and connected to temperature sensor 101. First wireless module 102 can be an electronic tag. First wireless module 102 and temperature sensor 101 constitute a wireless temperature measurement module to collect the temperature of the cover of the target device.

[0026] The second wireless module 103 is installed on the main body of the target device and transmits data with the first wireless module 102 wirelessly. The second wireless module 103 can be a card reader. The second wireless module 103 supplies power to the first wireless module 102 and receives temperature data sent back by the first wireless module 102. The control module 104 is connected to the second wireless module 103, controls the second wireless module 103 to supply power to the first wireless module 102, and receives temperature data sent by the second wireless module 103.

[0027] According to an embodiment of this application, a communication method is provided.

[0028] Figure 2 This is a flowchart of a communication method according to an embodiment of this application, applied in the aforementioned communication system. For example... Figure 2 As shown, the method includes the following steps:

[0029] Step S202: Control the second wireless module to send a preset number of low-power commands to the first wireless module, wherein the second wireless module is disposed on the main body of the target device and the first wireless module is disposed on the cover of the target device.

[0030] Specifically, the target device can be a rice cooker, the first wireless module can be an electronic tag set on the lid of the rice cooker, the second wireless module can be a card reader set on the main body of the rice cooker, a temperature sensor can be set on the lid of the rice cooker, the electronic tag is connected to the temperature sensor to transmit the data collected by the temperature sensor to the second wireless module, and the second wireless module can be connected to a controller.

[0031] It should be noted that due to variations in the internal voltage regulator chip during mass production of the first wireless module, a certain percentage of the first wireless modules will have a shorter sensing distance than designed. For example, if the design requires a sensing distance of 19mm for the first wireless module, it can sense commands transmitted by the second wireless module. Since the first wireless module is a passive module and requires power from the second wireless module, if the sensing distance of the first wireless module is only 15mm, when it senses the command transmitted by the second wireless module at a distance of 19mm, it will lack power upon initial startup. If the second wireless module uses dynamic power mode to send commands, the power received by the first module at 19mm will be too weak to start the first module and transmit data.

[0032] Therefore, in this embodiment, the controller controls the second wireless module to send a preset number of low-power commands, so that the first wireless module can receive enough energy to start up. Specifically, the preset number of times can be 3. When the communication system is powered on and starts working, the second wireless module sends 3 low-power commands to the first module.

[0033] It should be noted that the command can be a high-level signal or a low-level signal. The low-power command uses less current to send the command, allowing for a longer transmission distance. Optionally, in the communication method provided in this application embodiment, the current range of the low-power command is between 0 and 8 μA.

[0034] Step S204: Determine whether the second wireless module has received the target data returned by the first wireless module a preset number of times, wherein the first wireless module returns the target data each time it receives a low-power command.

[0035] Specifically, if the first wireless module can receive a low-power command, it will transmit target data back, which can be temperature data collected by a temperature sensor on the cover of the target device.

[0036] Step S206: When the second wireless module receives the target data of a preset number of times transmitted back by the first wireless module, the second wireless module is controlled to communicate with the first wireless module by sending a dynamic power consumption command, wherein the current of the dynamic power consumption command is greater than the current of the low power consumption command.

[0037] Specifically, if the second wireless module receives the target data a preset number of times from the first wireless module, it means that the first wireless module can receive the low-power command and transmit the target data each time. This indicates that the first wireless module can start normally, and the energy received plus its own energy is sufficient for continuous operation. Therefore, the controller switches the operation between the two modules from low-power mode to dynamic power mode, that is, it controls the second wireless module to communicate with the first wireless module by sending dynamic power commands. It should be noted that the current of the dynamic power command is greater than the current of the low-power command to ensure the quality of data transmission.

[0038] Optionally, in the communication method provided in the embodiments of this application, the current of the dynamic power consumption command is determined by the resistance value of the first wireless module and the resistance value of the temperature measurement module connected to the first wireless module.

[0039] It should be noted that the current of the dynamic power consumption command is related to the hardware settings of the communication system. When the temperature sensor is an NTC sensor, the current of the dynamic power consumption command is I = 1.2V / (R1 + R2 + R...). NTC ), where R1 and R2 are resistors in the first wireless module. If the resistance of R1 and R2 is 20KΩ and the resistance of the NTC sensor at room temperature is 80K, then I = 1.2V / 20K + 20K + 80K = 10uA.

[0040] The communication method provided in this application embodiment controls a second wireless module to send a preset number of low-power commands to a first wireless module. The second wireless module is disposed on the main body of the target device, and the first wireless module is disposed on the cover of the target device. The method determines whether the second wireless module has received the preset number of target data returned by the first wireless module. The first wireless module returns target data each time it receives a low-power command. When the second wireless module receives the preset number of target data returned by the first wireless module, it controls the second wireless module to communicate with the first wireless module by sending a dynamic power consumption command. The current of the dynamic power consumption command is greater than the current of the low-power command, solving the problem in related technologies where data transmission between the electronic tag and the reader is difficult when the sensing distance of the electronic tag is shorter than the designed sensing distance. By controlling the second wireless module to start the first wireless module by sending low-power commands, and then controlling the second wireless module to communicate with the first wireless module by sending dynamic power consumption commands, the method achieves the effect of normal data transmission between the two wireless modules even when the sensing distance between them is short.

[0041] Optionally, in the communication method provided in this application embodiment, determining whether the second wireless module has received the target data returned by the first wireless module a preset number of times includes: after the second wireless module sends a low-power command each time, determining whether the second wireless module has received the target data returned by the first wireless module; if the second wireless module has received the target data returned by the first wireless module, controlling the target counter to increment by one, wherein the target counter is cleared before the second wireless module sends the low-power command for the first time; after the second wireless module sends the last low-power command to the first wireless module, determining whether the counter count has reached a preset number of times, wherein sending the last low-power command refers to the last low-power command among the low-power commands sent a preset number of times; if the counter count has reached the preset number of times, determining that the second wireless module has received the target data returned by the first wireless module a preset number of times; if the counter count has not reached the preset number of times, determining that the second wireless module has not received the target data returned by the first wireless module a preset number of times.

[0042] For example, with a preset number of attempts (3), after the second wireless module sends a low-power command for the first time, if the first wireless module receives the low-power command from the second wireless module, it sends the target data back to the second wireless module. If it does not receive the low-power command, it waits for the next command. It checks whether the second wireless module receives the target data sent back by the first wireless module. If it does, the counter is incremented by 1; otherwise, the second wireless module sends the low-power command a second and third time. After three low-power commands are sent, the counter's count is checked to determine if the second wireless module has successfully sent the command three times. If so, the upper module has started successfully; otherwise, the start-up has failed.

[0043] Optionally, in the communication method provided in the embodiments of this application, after determining whether the second wireless module has received the target data returned by the first wireless module a preset number of times, the method further includes: if the second wireless module receives less than the preset number of target data returned by the first wireless module, issuing an alarm message, wherein the alarm message is used to indicate that no communication connection has been established between the first wireless module and the second wireless module.

[0044] For example, if the second wireless module fails to receive the target data returned by the first wireless module after a preset number of attempts (3 times), or receives it only once or twice, it indicates that the wireless communication between the second and first wireless modules is unreachable or unstable. In other words, the first wireless module has not started successfully, and no communication connection has been established between the first and second wireless modules. The controller will then issue an alarm message to prompt the first wireless module on the target device to be repaired or replaced.

[0045] Optionally, in the communication method provided in this application embodiment, controlling the second wireless module to communicate with the first wireless module by sending a dynamic power consumption command includes: controlling the second wireless module to send a dynamic power consumption command to the first wireless module; and controlling the second wireless module to receive the target data returned by the first wireless module.

[0046] That is, after the first wireless module is started, the energy received plus its own energy is sufficient for the first wireless module to work normally and continuously. In order to ensure the quality of data transmission, the second wireless module communicates with the first wireless module by controlling the dynamic power consumption, sending dynamic power consumption instructions to the first wireless module, and receiving the target data returned by the first wireless module.

[0047] Optionally, in the communication method provided in the embodiments of this application, after controlling the second wireless module to communicate with the first wireless module by sending dynamic power consumption instructions, the method further includes: determining the state of the cover of the target device based on the transmission of target data between the second wireless module and the first wireless module.

[0048] For example, if the second wireless module receives the target data transmitted by the first wireless module more than the set number of times within a preset time period, it indicates that the distance between the first and second wireless modules is close and the cover of the target device is closed. If the number of times the second wireless module receives the target data transmitted by the first wireless module is less than or equal to the set number of times, it indicates that the distance between the first and second wireless modules is far and the cover of the target device is open.

[0049] Figure 3 This is a flowchart of an optional communication method according to an embodiment of this application, applied in the aforementioned communication system. For example... Figure 3 As shown, the method includes the following steps:

[0050] First, the system powers on and starts working, with the lower module sending three low-power commands to the upper module.

[0051] Secondly, it determines whether the upper module has received the low-power instruction from the lower module. If it has, it sends the data back to the upper module. If it has not received the instruction, it waits for the next instruction.

[0052] Furthermore, it determines whether the lower module has received the data information returned by the upper module. If it has, the count of the successful transmission instruction is incremented by 1. If it has not received, it returns to the first step to send the low-power instruction a second and a third time.

[0053] Finally, after sending three low-power commands, it is checked whether the number of successful commands sent equals three. If yes, the module starts successfully, and subsequent sending of dynamic power commands will proceed normally. If not, the module fails to start, and the system reports an error.

[0054] This embodiment adjusts the startup mode of the wireless module and the way the module transmits energy by software. It starts in low-power mode first, and after the modules have worked stably for 3 times, it switches to dynamic power mode. This allows modules with short sensing distances to work normally at the designed distance, greatly reducing the cost of replacing or repairing modules with short sensing distances.

[0055] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0056] This application also provides a communication device. It should be noted that the communication device of this application can be used to execute the communication method provided in this application. The communication device provided in this application is described below.

[0057] Figure 4This is a schematic diagram of a communication device according to an embodiment of this application. Figure 4 As shown, the device includes: a first control unit 10, a judgment unit 20, and a second control unit 30.

[0058] Specifically, the first control unit 10 is used to control the second wireless module to send a preset number of low-power commands to the first wireless module, wherein the second wireless module is disposed on the main body of the target device and the first wireless module is disposed on the cover of the target device.

[0059] The judgment unit 20 is used to determine whether the second wireless module has received the target data returned by the first wireless module a preset number of times, wherein the first wireless module returns the target data each time it receives a low-power command.

[0060] The second control unit 30 is configured to control the second wireless module to communicate with the first wireless module by sending a dynamic power consumption command when the second wireless module receives target data of a preset number of times from the first wireless module, wherein the current of the dynamic power consumption command is greater than the current of the low power consumption command.

[0061] The communication device provided in this application embodiment controls a second wireless module to send a preset number of low-power commands to the first wireless module via a first control unit 10. The second wireless module is disposed on the main body of the target device, and the first wireless module is disposed on the cover of the target device. A judgment unit 20 determines whether the second wireless module receives the preset number of target data returned by the first wireless module. The first wireless module returns target data each time it receives a low-power command. When the second wireless module receives the preset number of target data returned by the first wireless module, the second control unit 30 controls the second wireless module to communicate with the first wireless module by sending a dynamic power consumption command. The current of the dynamic power consumption command is greater than the current of the low-power command. This solves the problem in related technologies where it is difficult for data transmission between the electronic tag and the card reader when the sensing distance of the electronic tag is shorter than the design required sensing distance. By controlling the second wireless module to start the first wireless module by sending a low-power command, and then controlling the second wireless module to communicate with the first wireless module by sending a dynamic power consumption command after starting the first wireless module, the device achieves the effect of normal data transmission between the two wireless modules even when the sensing distance between them is short.

[0062] The aforementioned communication device includes a processor and a memory. The first control unit 10, the judgment unit 20, and the second control unit 30 are all stored in the memory as program units. The processor executes the aforementioned program units stored in the memory to realize the corresponding functions.

[0063] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can address the problem in related technologies where data transmission between the electronic tag and the reader is difficult when the sensing distance of the electronic tag is shorter than the design requirement.

[0064] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0065] This application also provides a computer storage medium, which includes a stored program, wherein the program, when running, controls the device where the computer storage medium is located to execute a communication method.

[0066] This application also provides an electronic device comprising a processor and a memory; the memory stores computer-readable instructions, and the processor executes the computer-readable instructions, wherein the computer-readable instructions, when executed, perform a communication method. The electronic device described herein may be a server, PC, PAD, mobile phone, etc.

[0067] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0068] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0069] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0070] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

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

[0072] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0073] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0074] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0075] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A communication method, characterized in that, include: The second wireless module is controlled to send a preset number of low-power commands to the first wireless module. The second wireless module is disposed on the main body of the target device, and the first wireless module is disposed on the cover of the target device. The first wireless module is a passive module and is powered by the second wireless module. The second wireless module sends the preset number of low-power commands so that the first wireless module receives enough energy to start. Determine whether the second wireless module receives the target data of the preset number of times returned by the first wireless module, wherein the first wireless module returns the target data each time it receives the low-power instruction; When the second wireless module receives the target data of the preset number of times transmitted back by the first wireless module, the second wireless module is controlled to communicate with the first wireless module by sending a dynamic power consumption command, wherein the current of the dynamic power consumption command is greater than the current of the low power consumption command.

2. The method according to claim 1, characterized in that, Determining whether the second wireless module has received the target data for the preset number of times transmitted back by the first wireless module includes: After the second wireless module sends the low-power command each time, it is determined whether the second wireless module has received the target data returned by the first wireless module; When the second wireless module receives the target data transmitted back by the first wireless module, it controls the target counter to increment by one, wherein the target counter is cleared to zero before the second wireless module sends the low power command for the first time after power-on; After the second wireless module sends the last low-power instruction to the first wireless module, it is determined whether the counter has reached the preset number of times. Sending the last low-power instruction means sending the last low-power instruction among the preset number of low-power instructions. When the counter reaches the preset number of times, it is determined that the second wireless module has received the target data of the preset number of times transmitted back by the first wireless module; If the counter count does not reach the preset number of times, it is determined that the second wireless module has not received the target data of the preset number of times transmitted back by the first wireless module.

3. The method according to claim 1, characterized in that, After determining whether the second wireless module has received the target data for the preset number of times transmitted back by the first wireless module, the method further includes: If the number of target data received by the second wireless module from the first wireless module is less than the preset number, an alarm message is issued, wherein the alarm message is used to indicate that no communication connection has been established between the first wireless module and the second wireless module.

4. The method according to claim 1, characterized in that, The current range of the low-power command is between 0 and 8 uA.

5. The method according to claim 1, characterized in that, The current of the dynamic power consumption command is determined by the resistance value of the first wireless module and the resistance value of the temperature measurement module connected to the first wireless module.

6. The method according to claim 1, characterized in that, Controlling the second wireless module to communicate with the first wireless module by sending dynamic power consumption commands includes: Control the second wireless module to send the dynamic power consumption command to the first wireless module; The second wireless module is controlled to receive the target data transmitted back by the first wireless module.

7. The method according to claim 1, characterized in that, After controlling the second wireless module to communicate with the first wireless module by sending dynamic power consumption commands, the method further includes: The state of the cover of the target device is determined based on the second wireless module and the target data transmitted by the second wireless module.

8. A communication device, characterized in that, include: The first control unit is used to control the second wireless module to send a preset number of low-power commands to the first wireless module. The second wireless module is disposed on the main body of the target device, and the first wireless module is disposed on the cover of the target device. The first wireless module is a passive module and is powered by the second wireless module. The second wireless module sends the preset number of low-power commands so that the first wireless module receives enough energy to start. The determination unit is used to determine whether the second wireless module receives the target data of the preset number of times returned by the first wireless module, wherein the first wireless module returns the target data each time it receives the low power command; The second control unit is configured to control the second wireless module to communicate with the first wireless module by sending a dynamic power consumption command when the second wireless module receives the target data of the preset number of times transmitted back by the first wireless module, wherein the current of the dynamic power consumption command is greater than the current of the low power consumption command.

9. A computer storage medium, characterized in that, The computer storage medium includes a stored program, wherein the program, when executed, controls the device on which the computer storage medium is located to perform the communication method according to any one of claims 1 to 7.

10. An electronic device, characterized in that, The device includes a processor and a memory, the memory storing computer-readable instructions, and the processor being configured to execute the computer-readable instructions, wherein the computer-readable instructions, when executed, perform the communication method according to any one of claims 1 to 7.