Wireless communication method, system, device and storage medium

By using the ADC module to generate random voltage in the wireless communication device to determine the delay time, the problem of co-frequency interference is solved and the production process is simplified, realizing the large-scale production of the equipment and the application of wireless communication methods.

CN114885371BActive Publication Date: 2024-12-13JIAWEI RENEWABLE ENERGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210484058.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-06
Publication Date
2024-12-13
Estimated Expiration
2042-05-06

AI Technical Summary

Technical Problem

The prior art requires storing different delay programs in different devices when avoiding homofrequency interference in wireless communications, which limits the large-scale production of devices.

Method used

The ADC module in the device generates a random voltage to determine the delay time, avoiding the same frequency carrier waves sent between different devices at the same time, thereby avoiding the same frequency interference, and allowing different devices to use the same or different delay programs.

Benefits of technology

It realizes the avoidance of concurrent interference between different devices while simplifying the production process, facilitating the application of wireless communication methods and large-scale production of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114885371B_ABST
    Figure CN114885371B_ABST
Patent Text Reader

Abstract

The present application discloses a wireless communication method, system, device and storage medium, belonging to the field of wireless communication. The method includes: a first device first continuously collects the random voltage generated by the first ADC module in the first device to obtain multiple first random voltages, then determines the delay value corresponding to each of the multiple first random voltages, determines the first delay time according to the delay values ​​corresponding to the multiple first random voltages, and sends a carrier carrying a first communication signal to the second device after the first delay time. Due to the influence of the overall circuit noise in the device and the charge disturbance in the air, the random voltages generated by the ADC modules in different devices are different, so the delay time determined by different devices according to the random voltage is also different, so that the same frequency interference can be avoided, and because the delay time is determined by the random voltage generated by the ADC module, there is no restriction on the delay program in different devices, which is conducive to the large-scale production of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communications, and in particular to a wireless communication method, system, device and storage medium. Background Art

[0002] Wireless communication is a communication method that uses the propagation characteristics of electromagnetic waves in free space to exchange information. In the field of wireless communication, there will be co-channel interference, which may cause the loss of communication signals and lead to communication failure. Therefore, how to avoid co-channel interference is one of the key points of attention in the field of wireless communication. Among them, co-channel interference refers to the mutual interference between communication signals with the same carrier frequency. For example, if the first device and the second device send communication signals to each other at the same time, and the carrier frequencies of the communication signals sent by the first device and the second device to each other are the same, there may be co-channel interference between the two communication signals.

[0003] In the prior art, the occurrence of co-channel interference problems can be avoided by introducing different random delay durations. For example, different random delay durations are introduced in the first device and the second device respectively through different delay programs. The first device can introduce a first random delay duration through a first delay program, and send a carrier carrying a communication signal to the second device after the first random delay duration. The second device can introduce a second random delay duration through a second delay program, and send a carrier carrying a communication signal to the first device after the second random delay duration. Since the first delay program and the second delay program are different, the first random delay duration introduced by the first delay program and the second random delay duration introduced by the second delay program are different, so that the first device and the second device can be prevented from sending communication signals to each other at the same time, thereby avoiding co-channel interference. Or when the first device and the second device send communication signals to each other at the same time and co-channel interference occurs, the communication signal sent again can be prevented from still having co-channel interference by introducing different random delay durations.

[0004] However, the above method of introducing different random delay durations through different delay programs in the first device and the second device requires storing different delay programs in different devices to ensure that communication signals are sent with different random delay durations after co-channel interference occurs, which is not conducive to large-scale production of equipment. Summary of the invention

[0005] The present application provides a wireless communication method, system, device and storage medium, which can determine the delay time according to the random voltage generated by the ADC module in the device, so as to avoid different devices from sending the same frequency carrier carrying the communication signal to each other at the same time through the delay time, thereby avoiding the occurrence of co-frequency interference, and because the delay time is determined by the random voltage generated by the ADC module in the device, there is no restriction on the delay program in different devices, that is, the delay program in different devices can be different or the same, which is convenient for the application of the wireless communication method and conducive to the large-scale production of the device. The technical solution is as follows:

[0006] In a first aspect, a wireless communication method is provided, which is applied to a first device, wherein the first device includes a first ADC analog-to-digital conversion module, and the method includes:

[0007] Continuously collecting the random voltage generated by the first ADC module to obtain a plurality of first random voltages, where the first random voltages are represented by m-bit binary numbers;

[0008] Determine a delay value corresponding to each of the plurality of first random voltages, wherein the delay value corresponding to each of the first random voltages refers to a value of a specified number of bits in an m-bit binary number corresponding to each of the first random voltages;

[0009] Determining a first delay duration according to the delay values ​​corresponding to the plurality of first random voltages;

[0010] A carrier carrying a first communication signal is sent to a second device after the first delay period, wherein the carrier carrying the first communication signal has the same frequency as a carrier carrying a second communication signal sent by the second device to the first device.

[0011] As an example, determining a delay value corresponding to each of the plurality of first random voltages includes:

[0012] For a target random voltage among the multiple first random voltages, determine the lowest bit value of the m-bit binary number corresponding to the target random voltage, the lowest bit value is the delay value corresponding to the target random voltage, and the target random voltage is any first random voltage among the multiple first random voltages.

[0013] As an example, determining the first delay duration according to the delay values ​​corresponding to the multiple first random voltages includes:

[0014] Generate a first random delay number according to the delay values ​​corresponding to the multiple first random voltages, wherein the first random delay number is an n-bit binary number, and the delay values ​​corresponding to the multiple first random voltages are values ​​of different digits of the first random delay number;

[0015] The first delay duration is determined according to the first random delay number.

[0016] As an example, the delay values ​​corresponding to the multiple first random voltages include t delay values, where t is less than or equal to n;

[0017] The step of generating a first random delay value according to the delay values ​​corresponding to the plurality of first random voltages comprises:

[0018] If t is equal to n, the t delay values ​​are sequentially written into different digits of the n-bit binary number, and the n-bit binary number after the written values ​​is the first random delay number;

[0019] If t is less than n, the t delay values ​​are written into the specified t digits in the n-bit binary number, and the preset values ​​are written into the other digits in the n-bit binary number except the specified t digits. The n-bit binary number after writing the values ​​is the first random delay number.

[0020] As an example, the minimum resolution voltage of the first ADC module is a voltage of mV level.

[0021] As an example, before continuously collecting the random voltage generated by the first ADC module, the method further includes:

[0022] If a communication request is received, sending a carrier wave carrying the first communication signal to the second device;

[0023] If no response signal is received from the second device within a preset time after sending the first communication signal, a step of continuously collecting the random voltage generated by the first ADC module is performed, and the response signal is used to indicate that the second device has received the first communication signal.

[0024] As an example, the first ADC module is an ADC pin of a main control unit in the first device, or is an ADC device in the first device.

[0025] In a second aspect, a wireless communication system is provided, the system comprising a first device and a second device, the first device comprising a first ADC module, and the second device comprising a second ADC module;

[0026] The first device is used to continuously collect the random voltage generated by the first ADC module to obtain multiple first random voltages, where the first random voltage is represented by an m-bit binary number; determine a delay value corresponding to each of the multiple first random voltages, where the delay value corresponding to each first random voltage refers to a value of a specified number of bits in the m-bit binary number corresponding to each first random voltage; determine a first delay duration according to the delay values ​​corresponding to the multiple first random voltages; and send a carrier carrying a first communication signal to the second device after the first delay duration;

[0027] The second device is used to continuously collect the random voltage generated by the second ADC module to obtain multiple second random voltages, where the second random voltage is represented by an m-bit binary number; determine the delay value corresponding to each of the multiple second random voltages, where the delay value corresponding to each second random voltage refers to the value of a specified number of bits in the m-bit binary number corresponding to each second random voltage; determine a second delay duration according to the delay values ​​corresponding to the multiple second random voltages; and send a carrier carrying a second communication signal to the first device after the second delay duration, where the frequency of the carrier carrying the second communication signal is the same as that of the carrier carrying the first communication signal.

[0028] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the above-mentioned wireless communication method when executed by the processor.

[0029] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned wireless communication method is implemented.

[0030] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0031] In the embodiment of the present application, the first device first continuously collects the random voltage generated by the first ADC module included in the first device to obtain multiple first random voltages, the first random voltage is represented by an m-bit binary number, and then determines the delay value corresponding to each of the multiple first random voltages, the delay value corresponding to each first random voltage refers to the value of the specified number of bits in the m-bit binary number corresponding to each first random voltage, and then determines the first delay duration according to the delay values ​​corresponding to the multiple first random voltages, and sends the carrier frequency carrying the first communication signal to the second device after the first delay duration. Wherein, the carrier frequency carrying the first communication signal is the same as the carrier frequency carrying the second communication signal sent by the second device to the first device. That is, the first device can determine the delay duration according to the random voltage generated by the ADC module in the first device. Due to the influence of the overall circuit noise in the device and the charge disturbance in the air, the random voltages generated by the ADC modules in different devices are different. Therefore, the delay durations determined by different devices according to the random voltages are also different. Even different devices storing the same delay program may determine different delay durations according to the random voltages. This can avoid different devices from simultaneously sending carriers of the same frequency carrying communication signals to each other, thereby avoiding co-frequency interference. Moreover, since the delay duration is determined by the random voltage generated by the ADC module in the device, there is no restriction on the delay programs in different devices, that is, the delay programs in different devices may be different or the same, which facilitates the application of the wireless communication method and is conducive to the large-scale production of equipment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0033] Figure 1 is a system schematic diagram of a wireless communication system provided in an embodiment of the present application;

[0034] Figure 2 is a flow chart of a wireless communication method provided by an embodiment of the present application;

[0035] Figure 3 is a flow chart of another wireless communication method provided by an embodiment of the present application;

[0036] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application;

[0037] Reference numerals:

[0038] 1: first device, 11: first ADC module, 12: first main control unit, 13: first wireless communication module, 14: first light emitting module, 15: first detection module, 2: second device, 21: second ADC module, 22: second main control unit, 23: second wireless communication module, 24: second light emitting module, 25: second detection module. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0040] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.

[0041] Before explaining the embodiments of the present application in detail, the application scenarios of the embodiments of the present application are first described.

[0042] Since co-channel interference may exist in the field of wireless communications and may cause the loss of communication signals, thereby leading to communication failure, how to avoid co-channel interference is one of the key concerns in the field of wireless communications.

[0043] For example, there is no master-slave relationship between the first device and the second device, that is, the first device and the second device can both send communication signals to each other wirelessly, and can also receive communication signals sent by each other, and the carrier frequencies of the communication signals sent by the first device and the second device to each other are the same. In this case, if the first device and the second device send communication signals to each other wirelessly at the same time, since the carrier frequencies carrying the communication signals are the same, there may be co-frequency interference between the two communication signals.

[0044] As an example, the first device and the second device may be companion lights, which means that when one of the devices emits light, the device will send a communication signal to the other device to control the other device to emit light. For example, when the first device and the second device emit light at the same time, the first device and the second device may send communication signals to each other at the same time. Since the frequencies of the carriers carrying the communication signals are the same, there may be co-frequency interference between the two communication signals, so that the first device and the second device cannot receive the communication signals sent by the other party, nor can they receive the response signals sent by the other party.

[0045] Since the first device and the second device cannot receive the response signal sent by the other party, according to the retransmission mechanism, the first device and the second device will retransmit the communication signal to the other party. In this case, the retransmitted communication signal still has co-channel interference. In this way, when the first device is still emitting light, due to the co-channel interference of the retransmission mechanism, the second device cannot receive the communication signal sent by the first device in time. Since the retransmission mechanism stops, the second device no longer sends the communication signal to the first device. In this case, the second device may receive the communication signal sent by the first device at the moment when it is not emitting light, so that the second device has an exposure problem, which reduces the user's experience of using the device and affects the sales of the device.

[0046] In the prior art, the co-channel interference problem can be avoided by introducing different random delay durations. For example, different random delay durations are introduced in the first device and the second device respectively through different delay programs.

[0047] As an example, the first device and the second device are companion lights. In the case of co-channel interference between the first device and the second device, according to the retransmission mechanism, the first device can introduce a first random delay duration through a stored first delay program, and send a carrier carrying a communication signal to the second device after the first random delay duration. The second device can introduce a second random delay duration through a stored second delay program, and send a carrier carrying a communication signal to the first device after the second random delay duration. Since the first delay program and the second delay program are different, the first random delay duration introduced by the first delay program and the second random delay duration introduced by the second delay program are different, thereby avoiding the co-channel interference between the communication signals sent by the first device and the second device to each other again.

[0048] However, the prior art introduces different random delay durations through different delay programs in the first device and the second device, which requires storing different delay programs in different devices to ensure that communication signals are sent with different random delay durations after co-channel interference occurs, thereby avoiding co-channel interference, which is not conducive to large-scale production of equipment.

[0049] Based on this, an embodiment of the present application proposes a wireless communication method, which can determine the delay duration according to the random voltage generated by the ADC module in the device, so as to avoid different devices from simultaneously sending carriers of the same frequency carrying communication signals to each other through the delay duration, thereby avoiding co-frequency interference. Moreover, since the delay duration is determined by the ADC module in the device, there is no restriction on the delay programs in different devices, that is, the delay programs in different devices can be different or the same, which facilitates the application of the wireless communication method and is conducive to the large-scale production of equipment.

[0050] A wireless communication system provided in an embodiment of the present application is explained in detail below.

[0051] Please refer to Figure 1 , Figure 1 is a system schematic diagram of a wireless communication system provided in an embodiment of the present application, such as Figure 1 As shown, the wireless communication system includes a first device 1 and a second device 2. The wireless communication method provided in the embodiment of the present application can be applied to Figure 1 In the wireless communication system shown.

[0052] The first device 1 includes a first ADC (Analog to Digital Converter) module 11 , and the second device 2 includes a second ADC module 21 .

[0053] The first ADC module 11 and the second ADC module 21 can realize analog-to-digital conversion functions and can generate random voltages. The random voltages generated by the first ADC module 11 are constantly changing due to the influence of the overall noise of the circuit in the first device 1 and the charge disturbance in the air. That is, the random voltages generated by the first ADC module 11 of the first device 1 at different times are different.

[0054] The random voltage generated by the second ADC module 21 changes all the time due to the influence of the overall noise of the circuit in the second device 2 and the charge disturbance in the air, that is, the random voltage generated by the second ADC module 21 of the second device 2 is different at different times.

[0055] In addition, since the first device 1 and the second device 2 are located in different spaces and the overall circuit conditions in the first device 1 and the second device 2 are different, the random voltages generated by the first ADC module 11 and the second ADC module 21 are different. That is, affected by the overall circuit noise in the device and the charge disturbance in the air, the random voltages generated by the ADC modules in different devices are different.

[0056] As an example, the first ADC module 11 may be an ADC pin of a device in the first device 1 or an ADC device in the first device 1, and the second ADC module 21 may be an ADC pin of a device in the second device 2 or an ADC device in the second device 2. The embodiments of the present application do not limit the first ADC module 11 and the second ADC module 21.

[0057] For example, the first ADC module 11 is a suspended ADC pin of a device in the first device 1, that is, the first ADC module 11 is a suspended ADC pin. The suspended ADC pin can generate a true random voltage due to the influence of the overall circuit noise in the first device 1 and the charge disturbance in the air.

[0058] The first device 1 is used to continuously collect the random voltage generated by the first ADC module 11 to obtain multiple first random voltages, where the first random voltage is represented by an m-bit binary number; determine a delay value corresponding to each of the multiple first random voltages, where the delay value corresponding to each first random voltage refers to a value of a specified number of bits in the m-bit binary number corresponding to each first random voltage; determine a first delay duration according to the delay values ​​corresponding to the multiple first random voltages; and send a carrier carrying a first communication signal to the second device 2 after the first delay duration.

[0059] The second device 2 is used to continuously collect the random voltage generated by the second ADC module 21 to obtain multiple second random voltages, where the second random voltage is represented by an m-bit binary number; determine a delay value corresponding to each of the multiple second random voltages, where the delay value corresponding to each second random voltage refers to a value of a specified number of bits in the m-bit binary number corresponding to each second random voltage; determine a second delay duration according to the delay values ​​corresponding to the multiple second random voltages; and send a carrier carrying a second communication signal to the first device 1 after the second delay duration, where the frequency of the carrier carrying the second communication signal is the same as that of the carrier carrying the first communication signal.

[0060] That is, there is no master-slave relationship between the first device 1 and the second device 2, that is, the first device 1 and the second device 2 can both send communication signals to each other and receive communication signals sent by each other, and the frequency of the carrier waves used by the first device 1 and the second device 2 to send communication signals to each other is the same.

[0061] It should be noted that since the random voltages generated by the ADC modules in different devices are different, the delay durations determined by different devices based on the random voltages are also different. Even different devices storing the same delay program have different delay durations determined by the random voltages. This can prevent the first device 1 and the second device 2 from simultaneously sending carriers of the same frequency carrying communication signals to each other, thereby avoiding co-channel interference. Moreover, since the delay duration is determined by the random voltage generated by the ADC modules in the devices, there is no restriction on the delay programs in the first device 1 and the second device 2, that is, the delay programs in the first device 1 and the second device 2 can be different or the same, which facilitates the application of the wireless communication method and is conducive to large-scale production of equipment.

[0062] The first device 1 may further include a first main control unit 12 or a first wireless communication module 13 , and the second device 2 may further include a second main control unit 22 or a second wireless communication module 23 .

[0063] The first main control unit 12 can be used to continuously collect the random voltage generated by the first ADC module 11 to obtain multiple first random voltages; determine the delay value corresponding to each of the multiple first random voltages; determine the first delay time according to the delay values ​​corresponding to the multiple first random voltages; and send a carrier carrying the first communication signal to the second device 2 after the first delay time. That is, the functions of the above-mentioned first device 1 can be implemented by the first main control unit 12.

[0064] As an example, the first main control unit 12 can be connected to the first ADC module 11 by wire or wirelessly, and the first main control unit 12 can collect the random voltage generated by the first ADC module 11. Figure 1 As shown, the first ADC module 11 may be an ADC pin of the first main control unit 12 in the first device 1, and the ADC pin is in a suspended input state. In this case, the first main control unit 12 may be connected to the first ADC module 11 in a wired manner.

[0065] As an example, the first main control unit 12 may be a processor with processing capabilities, etc., and after collecting the random voltage generated by the first ADC module 11, it may determine the first delay time according to the random voltage, and send a carrier carrying the first communication signal to the second device 2 after the first delay time. For example, the first main control unit 12 is a CPU (Central Process Unit) or an MCU (Micro Controller Unit), etc., and the embodiment of the present application does not limit the first main control unit 12. For example, Figure 1 As shown, the first main control unit 12 is an MCU.

[0066] The first wireless communication module 13 is used to realize the function of communicating with the second device 2. For example, the first device 1 sends a carrier carrying a first communication signal to the second device 2 through the first wireless communication module 13.

[0067] As an example, the first main control unit 12 may be connected to the first wireless communication module 13 in a wired manner, and is used to control the first wireless communication module 13 to send a carrier carrying the first communication signal to the second device 2 after a first delay time.

[0068] As an example, the communication mode of the first wireless communication module 13 may be Zig-Bee, Bluetooth, wireless broadband or ultra-wideband, etc., which is not limited in the present embodiment of the application. Figure 1 As shown, the communication mode of the first wireless communication module 13 is wireless broadband.

[0069] Among them, the explanation of the second main control unit 22 and the second wireless communication module 23 of the second device 2 can refer to the explanation of the first main control unit 12 and the first wireless communication module 13, which will not be repeated here.

[0070] Among them, the first device 1 and the second device 2 can be electronic devices such as terminals or servers without a master-slave relationship, and the terminal can be an electronic device such as a mobile phone, a tablet computer, a lamp, etc.

[0071] As an example, the first device 1 and the second device 2 are companion lights. Figure 1 As shown, the first device 1 also includes a first light-emitting module 14, and the second device 2 also includes a second light-emitting module 24. If the first main control unit 12 determines that the first device 1 and the second device 2 have co-frequency interference, the random voltage generated by the first ADC module 11 is continuously collected to obtain a plurality of first random voltages. Then the first delay time is determined according to the plurality of first random voltages, and after the first delay time, a first communication signal is sent to the second device 2 through the first wireless communication module 13, and the first communication signal is used to instruct the second device 2 to emit light. The second main control unit 22 of the second device 2 receives the first communication signal sent by the first device 1 through the second wireless communication module 23, and controls the second light-emitting module 24 to emit light according to the first communication signal.

[0072] Alternatively, after obtaining the communication request, the first main control unit 12 may continuously collect the random voltage generated by the first ADC module 11 to obtain a plurality of first random voltages.

[0073] For example, the first main control unit 12 can control the first light-emitting module 14 to emit light and trigger a communication request after receiving an opening instruction sent by other modules in the first device 1 or receiving an opening instruction sent by a sensor of other devices. For example, the first device 1 also includes a first detection module 15, and the first main control unit 12 can receive an opening instruction sent by the first detection module 15.

[0074] As an example, the first detection module 15 is used to detect objects or sounds within the detection range, that is, to detect objects or sounds close to the first device 1. If the first detection module 15 detects an object or sound within the detection range, it sends an opening instruction to the first main control unit 12.

[0075] As an example, the first main control unit 12 and the first detection module 15 may be connected via wired or wireless means. Figure 1 As shown, the first detection module 15 is connected to the first main control unit 12 in a wired manner.

[0076] As an example, if there is human voice within a certain range of the first device 1 , the first detection module 15 can detect the voice and send a start instruction to the first main control unit 12 .

[0077] The first light emitting module 14 and the second light emitting module 24 may be LEDs (Light Emitting Diodes) or fluorescent tubes, etc., which are not limited in the present embodiment. Figure 1 As shown, the first light emitting module 14 and the second light emitting module 24 are LEDs.

[0078] Among them, the first detection module 15 has a detection range, and the first detection module 15 can be an infrared sensor, an ultrasonic sensor, a camera, a camera or a sound sensor, etc. The embodiment of the present application does not limit the first detection module 15.

[0079] Of course, the second device 2 may also include a second detection module 25. The explanation of the second detection module 25 may refer to the explanation of the first detection module 15, which will not be repeated here.

[0080] in, Figure 1 The wireless communication system includes a first device 1 and a second device 2 as an example for explanation. Those skilled in the art can understand that the wireless communication system can include more devices, and there are at least two devices in the wireless communication system without a master-slave relationship, and the frequency of the carrier wave for sending communication signals from at least two devices to other devices is the same.

[0081] The wireless communication method provided in the embodiment of the present application is explained in detail below.

[0082] Please refer to Figure 2 , Figure 2 is a flow chart of a wireless communication method provided in an embodiment of the present application. The wireless communication method can be applied to Figure 1 In the wireless communication system shown in FIG. Figure 1 Taking the example of a first device 1 sending a communication signal to a second device 2 in the wireless communication system shown in the figure as an example, the wireless communication method is described, wherein the first device 1 includes a first ADC module 11. Figure 2 As shown, the method comprises the following steps:

[0083] Step 201: A first device continuously samples random voltages generated by a first ADC module to obtain a plurality of first random voltages.

[0084] The first random voltage can be represented by an m-bit binary number, where m is a positive integer.

[0085] The first ADC module may be an ADC pin of a device in the first device, or an ADC device in the first device, which is not limited in the present embodiment. Figure 1 As shown, the first device 1 includes a main control unit 12 , and the first ADC module 11 is an ADC pin of the main control unit 12 in the first device 1 .

[0086] Among them, affected by the overall circuit noise in the first device and the charge disturbance in the air, the random voltage generated by the first ADC module changes all the time, that is, the random voltage generated by the first ADC module at different times is different, and the random voltage generated by the ADC modules in different devices is also different.

[0087] For example, the minimum resolution voltage of the first ADC module is mV (millivolt) level voltage, that is, if affected by the overall circuit noise in the first device and the charge disturbance in the air, the first ADC module can resolve the mV level voltage. Therefore, the random voltages generated by the ADC modules of different devices are different, which are true random numbers, and the random voltages generated by the ADC modules of the same device at different times are also different, which are true random numbers.

[0088] Among them, the smaller the minimum resolution voltage of the first ADC module, the more random the random voltage generated by the first ADC module, that is, the smaller the possibility that ADC modules of different devices generate the same random voltage, and the smaller the possibility that ADC modules of the same device generate the same random voltage at different times.

[0089] The minimum resolution voltage of the first ADC module is usually determined by the reference voltage and the number of bits of the first ADC module, and the number of bits of the first ADC module is the number of binary digits of the first random voltage generated by the first ADC module.

[0090] As an example, the reference voltage of the first ADC module in the first device is 1.1V, and the first random voltage is represented by a 10-bit binary number. Since a 10-bit binary number can represent 0-1023, the minimum resolution voltage is the voltage after 1.1V is divided into 1024 parts, which is 1.07mv. In this way, the larger the number of bits of the first ADC module, the smaller the minimum resolution voltage of the first ADC module.

[0091] The number of times the first device continuously collects the random voltage generated by the first ADC module can be preset, for example, the number of times can be 7, so as to obtain 7 first random voltages.

[0092] As an example, if the first device determines that the first device and the second device have co-channel interference, the random voltage generated by the first ADC module is continuously collected. For example, before the first device continuously collects the random voltage generated by the first ADC module, if a communication request is received, a carrier carrying the first communication signal is sent to the second device, and if a response signal sent by the second device is not received within a preset time after sending the first communication signal, the step of continuously collecting the random voltage generated by the first ADC module is performed. The response signal is used to indicate that the second device has received the first communication signal.

[0093] The preset duration may be a pre-set duration, such as 1 second or 5 seconds.

[0094] It should be noted that the embodiment of the present application only uses the condition that the first device does not receive the response signal sent by the second device within a preset time period after sending the first communication signal as the condition for determining the co-channel interference. Of course, other situations can also be used as conditions for determining the co-channel interference, and the embodiment of the present application does not limit this.

[0095] Step 202: The first device determines a delay value corresponding to each first random voltage among a plurality of first random voltages.

[0096] The delay value corresponding to each first random voltage refers to the value of a specified number of bits in the m-bit binary number corresponding to each first random voltage.

[0097] The designated number of digits may be pre-set as required, and may include one or more digits. For example, the designated number of digits may be the lowest digit, or the last two digits, of the corresponding m-digit binary number.

[0098] For example, for a target random voltage among multiple first random voltages, the first device may determine the lowest bit value of the m-bit binary number corresponding to the target random voltage, the lowest bit value is the delay value corresponding to the target random voltage, and the target random voltage is any first random voltage among the multiple first random voltages. That is, the first device determines the lowest bit value of the m-bit binary number corresponding to each first random voltage as the delay value corresponding to the first random voltage. In this case, the delay value corresponding to the first random voltage consists of 1 bit, which can be 0 or 1.

[0099] As an example, the first random voltage may be represented by a 10-bit binary number, and the first device may determine the value of the least significant bit of the 10-bit binary number of the first random voltage as the corresponding delay value.

[0100] Of course, the first device may also determine any s bits of the m-bit binary number corresponding to each first random voltage as the delay value corresponding to the first random voltage. s is a positive integer, s is greater than or equal to 1, and less than or equal to m. For example, s is 2, that is, the first device may also determine any two bits of the m-bit binary number corresponding to each first random voltage as the delay value corresponding to the first random voltage. In this case, the delay value may be 00, 01, 10, or 11.

[0101] Step 203: The first device determines a first delay duration according to delay values ​​corresponding to a plurality of first random voltages.

[0102] For example, the first device can generate a first random delay number according to the delay values ​​corresponding to the multiple first random voltages, and determine the first delay duration according to the first random delay number, wherein the first random delay number is an n-bit binary number, and the delay values ​​corresponding to the multiple first random voltages are values ​​of different digits of the first random delay number.

[0103] The first device may first determine the number of delay values ​​included in the delay values ​​corresponding to the multiple first random voltages, and different methods for generating the first random delay number are different for different numbers of delay values.

[0104] As an example, the first random delay number is an n-bit binary number, and the delay values ​​corresponding to the multiple first random voltages include t delay values, t is less than or equal to n, and t and n are both positive integers. The first device generates the first random delay number according to the delay values ​​corresponding to the multiple first random voltages, which may include the following two situations:

[0105] The first case: if t is equal to n, t delay values ​​are written into different bits of the n-bit binary number in sequence, and the n-bit binary number after the written values ​​is the first random delay number.

[0106] For example, the first device determines any two bits of the m-bit binary number corresponding to each first random voltage as the delay value corresponding to the first random voltage, and the delay value corresponding to the first random voltage consists of 2 bits, which can be 00, 01, 10, or 11. In this case, if the first device collects the random voltage generated by the first ADC module 4 times, 4 first random voltages are obtained, and each of the 4 first random voltages corresponds to a 2-bit delay value, then the delay values ​​corresponding to the 4 first random voltages include 8 delay values, that is, t is 8.

[0107] If n is 8, that is, the first random delay number is an 8-bit binary number, then t is equal to n, and the first device can correspond each of the 4 first random voltages to a 2-bit delay value, that is, write the 8 delay values ​​into different bits of the 8-bit binary number in sequence, and the 8-bit binary number after writing the values ​​is the first random delay number.

[0108] Of course, the first device may also write the t delay values ​​into different bits of the n-bit binary number according to specified regulations, and this embodiment of the present application does not limit this.

[0109] The second case: if t is less than n, t delay values ​​are written into the specified t digits in the n-bit binary number, and preset values ​​are written into the digits other than the specified t digits in the n-bit binary number. The n-bit binary number after writing the values ​​is the first random delay number.

[0110] The preset value may be set in advance, for example, the preset value may be 0 or 1.

[0111] For example, the first device determines the value of the lowest bit in the m-bit binary number corresponding to each first random voltage as the delay value corresponding to the first random voltage, and the delay value corresponding to the first random voltage consists of 1 bit, which can be 0 or 1. In this case, if the first device collects the random voltage generated by the first ADC module 7 times, 7 first random voltages are obtained, and each of the 7 first random voltages corresponds to a 1-bit delay value, then the delay values ​​corresponding to the 7 first random voltages include 7 delay values, that is, t is 7.

[0112] If n is 8, that is, the first random delay number is an 8-bit binary number, then t is less than n, and the first device can write the 7 delay values ​​into the specified 7 digits in the 8-bit binary number, and write the preset value into the remaining digit of the 8-bit binary number except the specified 7 digits, and the 8-bit binary number after writing the value is the first random delay number.

[0113] As an example, if the lower four bits of the first random voltage of the m-bit binary number are 0011, it means that the millivolt part of the first random voltage is 3 millivolts; if the lower four bits of the first random voltage are 0100, it means that the millivolt part of the first random voltage is 4 millivolts; if the lower four bits of the first random voltage are 0010, it means that the millivolt part of the first random voltage is 2 millivolts. Since the minimum resolution voltage of the first ADC module is the mV level voltage, after taking the lowest bit of each of the multiple first random voltages as one of the n bits of the first random delay number, the first random delay number obtained is a true random delay number.

[0114] After obtaining the first random delay number, the first delay duration can be determined according to the n-bit binary first random delay number. For example, the 8-bit binary first random delay number is 8 delay values ​​written sequentially into the 8-bit binary number. The representable range of the first random delay number is 0-255, and the determined first delay duration is any value between 0-255.

[0115] Step 204: The first device sends a carrier wave carrying the first communication signal to the second device after a first delay period.

[0116] The frequency of the carrier carrying the first communication signal is the same as the frequency of the carrier carrying the second communication signal sent by the second device to the first device.

[0117] It should be noted that the above steps 201 to 204 can also be performed by the second device, that is, the second device includes a second ADC module, and the second device first continuously collects the random voltage generated by the second ADC module to obtain multiple second random voltages, and then determines the delay value corresponding to each second random voltage in the multiple second random voltages, determines the second delay length according to the delay values ​​corresponding to the multiple second random voltages, and then sends the carrier carrying the second communication signal to the first device after the second delay length.

[0118] As an example, if the first device and the second device have co-channel interference, then according to the retransmission mechanism, the first device will send the carrier carrying the first communication signal to the second device again after the first delay time, and the second device will send the carrier carrying the second communication signal to the first device again after the second delay time. Since the first device determines the first delay time according to the random voltage generated by the first ADC module, and the second device determines the second delay time according to the random voltage generated by the second ADC module, and the random voltages generated by the ADC modules in different devices are different due to the overall noise of the circuit in the device and the charge disturbance in the air, the first delay time and the second delay time are different. Therefore, according to the retransmission mechanism, the time when the first device and the second device send the communication signal to each other again is different, so it can be avoided that different devices send the same frequency carrier carrying the communication signal to each other at the same time, thereby avoiding co-channel interference. And because the delay time is determined by the random voltage generated by the ADC module in the device, there is no restriction on the delay program in the first device and the second device, that is, the delay program in the first device and the second device can be different or the same, which is convenient for the application of the wireless communication method and conducive to the large-scale production of equipment.

[0119] For example, the first device includes a first wireless communication module, and the first device can send a carrier carrying a first communication signal to the second device through the first wireless communication module.

[0120] Step 205: The second device receives a carrier wave carrying a first communication signal sent by the first device, and acquires the first communication signal.

[0121] For example, the second device includes a second wireless communication module, and the second device can receive a carrier carrying the first communication signal sent by the first device through the second wireless communication module, and obtain the first communication signal from the received carrier.

[0122] After acquiring the first communication signal, the second device will send a response signal to the first device, and the response signal is used to indicate that the second device has received the first communication signal. The first device can receive the response signal sent by the second device, so that the first device and the second device complete communication.

[0123] As an example, the first device may not receive a response signal sent by the second device within a preset time after sending the first communication signal. In this case, the first device will send the carrier carrying the first communication signal to the second device again according to the retransmission mechanism. The retransmission mechanism may be to send the first communication signal again after a delay time.

[0124] For example, after the first device does not receive a response signal sent by the second device within a preset time period after sending the first communication signal, the first device can continuously collect the random voltage generated by the first ADC module to obtain multiple third random voltages, where the third random voltage is represented by an m-bit binary number, and then determine the delay value corresponding to each of the multiple third random voltages, where the delay value corresponding to each third random voltage refers to the value of a specified number of bits in the m-bit binary number corresponding to each third random voltage, and then determine the third delay duration based on the delay values ​​corresponding to the multiple third random voltages, and send the carrier carrying the first communication signal to the second device again after the third delay duration, where the frequency of the carrier carrying the first communication signal is the same as the frequency of the carrier carrying the second communication signal sent by the second device to the first device.

[0125] In the embodiment of the present application, the first device first continuously collects the random voltage generated by the first ADC module included in the first device to obtain multiple first random voltages, the first random voltage is represented by an m-bit binary number, and then determines the delay value corresponding to each of the multiple first random voltages, the delay value corresponding to each first random voltage refers to the value of the specified number of bits in the m-bit binary number corresponding to each first random voltage, and then determines the first delay duration according to the delay values ​​corresponding to the multiple first random voltages, and sends the carrier frequency carrying the first communication signal to the second device after the first delay duration. Wherein, the carrier frequency carrying the first communication signal is the same as the carrier frequency carrying the second communication signal sent by the second device to the first device. That is, the first device can determine the delay duration according to the random voltage generated by the ADC module in the first device. Due to the influence of the overall circuit noise in the device and the charge disturbance in the air, the random voltages generated by the ADC modules in different devices are different. Therefore, the delay durations determined by different devices according to the random voltages are also different. Even different devices storing the same delay program may determine different delay durations according to the random voltages. This can avoid different devices from simultaneously sending carriers of the same frequency carrying communication signals to each other, thereby avoiding co-frequency interference. Moreover, since the delay duration is determined by the random voltage generated by the ADC module in the device, there is no restriction on the delay programs in different devices, that is, the delay programs in different devices may be different or the same, which facilitates the application of the wireless communication method and is conducive to the large-scale production of equipment.

[0126] Please refer to Figure 3 , Figure 3 is a flow chart of another wireless communication method provided by an embodiment of the present application. The wireless communication method can be applied to Figure 1 In the wireless communication system shown in FIG. Figure 1Taking the example of a first device 1 sending a communication signal to a second device 2 in the wireless communication system shown in the figure as an example, the wireless communication method is described, wherein the first device 1 includes a first ADC module 11. Figure 3 As shown, the method comprises the following steps:

[0127] Step 301: If the first device receives a communication request, it sends a carrier carrying a first communication signal to the second device.

[0128] The communication request is used to request to send a carrier carrying the first communication signal to the second device. The carrier carrying the first communication signal has the same frequency as the carrier carrying the second communication signal sent by the second device to the first device.

[0129] For example, the first device and the second device may be companion lights, and the first communication signal is used to instruct the second device to emit light. If the first device receives the start instruction, it controls itself to emit light, triggers a communication request, and sends the first communication signal to the first device, so that the second device receives the first communication signal and controls itself to emit light. Alternatively, the first device may receive a communication request sent externally, for example, a communication operation is manually triggered through a mobile phone, and the mobile phone receives the communication operation and sends a communication request to the first device.

[0130] As an example, the first device may include a first detection module and a first main control unit, wherein the first detection module is used to detect objects or sounds within a detection range, that is, to detect objects or sounds close to the first device. If the first detection module detects an object or sound within the detection range, it sends an opening instruction to the first main control unit, and the first main control unit may control itself to emit light according to the opening instruction, thereby triggering a communication request.

[0131] As an example, the first device may further include a second light-emitting module. After receiving the start-up instruction, the first main control unit of the first device controls the first light-emitting module to turn on, so that the first device emits light.

[0132] Step 302: If the first device does not receive a response signal sent by the second device within a preset time period after sending the first communication signal, the first device continuously samples the random voltage generated by the first ADC module to obtain a plurality of first random voltages.

[0133] The response signal is used to indicate that the second device has received the first communication signal, the first random voltage can be represented by an m-bit binary number, m is a positive integer, and the preset duration can be a pre-set time.

[0134] If the first device does not receive a response signal sent by the second device within a preset time period, it determines that the first communication has failed. In this case, the first device may send the first communication signal to the second device again according to a retransmission mechanism.

[0135] It should be noted that, in the embodiments of the present application, of course, other situations can also be used as conditions for determining co-channel interference, and the embodiments of the present application are not limited to this.

[0136] The retransmission mechanism may be to send the first communication signal again after a delay time. In the embodiment of the present application, only the condition of determining the co-channel interference is that the first device does not receive the response signal sent by the second device within a preset time after sending the first communication signal. Therefore, in the case of the first communication failure, the first device can send the first communication signal to the second device again after a delay time according to the retransmission mechanism.

[0137] For example, the first ADC module may be an ADC pin of a main control unit in the first device, or an ADC device in the first device, which is not limited in the embodiments of the present application.

[0138] In which, affected by the overall noise of the circuit in the first device and the charge disturbance in the air, the random voltages generated by the first ADC module at different times are different, and the random voltages generated by the ADC modules in different devices are different.

[0139] As an example, the first device may continuously collect the random voltage generated by the first ADC module according to a preset number threshold. For example, the first device continuously collects the random voltage generated by the first ADC module multiple times according to the number threshold to obtain multiple first random voltages, and stops collecting until the number of times the random voltage is collected exceeds the number threshold.

[0140] For example, the first device collects the random voltage generated by the first ADC module seven times according to the number threshold, and obtains seven first random voltages, and each of the seven first random voltages can be represented by a 10-bit binary number.

[0141] Step 303: The first device determines a delay value corresponding to each first random voltage among a plurality of first random voltages.

[0142] The delay value corresponding to each first random voltage refers to the value of a specified number of bits in the m-bit binary number corresponding to each first random voltage.

[0143] For example, the first device determines the value of the lowest bit in the m-bit binary number corresponding to each first random voltage as the delay value corresponding to the first random voltage. In this case, the delay value corresponding to the first random voltage consists of 1 bit, which can be 0 or 1.

[0144] For example, the first device determines the value of the least significant bit in the 10-bit binary number corresponding to each of the 7 first random voltages as the 1-bit delay value corresponding to the first random voltage.

[0145] Of course, the first device can also determine any two bits of the m-bit binary number as the delay value corresponding to the first random voltage. In this case, the delay value corresponding to the first random voltage consists of 2 bits, which can be 00, 01, 10, or 11.

[0146] Step 304: The first device determines a first delay duration according to delay values ​​corresponding to the plurality of first random voltages.

[0147] For example, the first device can generate a first random delay number according to the delay values ​​corresponding to the multiple first random voltages, and determine the first delay duration according to the first random delay number, wherein the first random delay number is an n-bit binary number, and the delay values ​​corresponding to the multiple first random voltages are values ​​of different digits of the first random delay number.

[0148] Among them, the first device can combine the delay values ​​corresponding to each first random voltage in multiple first random voltages to obtain an n-bit value as the first random delay number, or after combining to obtain a value less than n bits, write a preset value to the number of bits in the n bits that have not written the delay value, thereby obtaining an n-bit value, and the obtained n-bit value is the first random delay number.

[0149] For example, the first random delay number is an 8-bit binary number. The first device first generates 7 delay values ​​according to the 1-bit delay value corresponding to each of the 7 first random voltages, that is, the delay values ​​corresponding to the 7 first random voltages include 7 delay values, and then writes the 7 delay values ​​into the 0th to 6th bits of the 8-bit binary number, writes a preset value into the 7th bit of the 8-bit binary number, and the 8-bit binary number after the 0th to 7th bits are all written with the values ​​is the first random delay number.

[0150] After obtaining the first random delay number, the first delay duration can be determined according to the n-bit binary first random delay number. For example, if the preset value written in the 7th bit of the 8-bit binary number is 0, the representable range of the first random delay number is 0-127, and the determined first delay duration is a value between 0-127.

[0151] Step 305: The first device sends a carrier wave carrying the first communication signal to the second device after a first delay period.

[0152] It should be noted that the above steps 301 to 305 can also be performed by the second device, that is, the second device includes a second ADC module. If the second device receives a communication request, it sends a carrier carrying the second communication signal to the first device. If the response signal sent by the first device is not received within a preset time after sending the second communication signal, the random voltage generated by the second ADC module is continuously collected to obtain multiple second random voltages, and then the delay value corresponding to each second random voltage in the multiple second random voltages is determined. According to the delay values ​​corresponding to the multiple second random voltages, the second delay duration is determined, and then the carrier carrying the second communication signal is sent to the first device after the second delay duration.

[0153] Step 306: The second device receives the carrier wave carrying the first communication signal sent by the first device, and obtains the first communication signal.

[0154] For example, if the first device and the second device are companion lights, the first communication signal is used to instruct the second device to emit light, and after the second device obtains the first communication signal, it controls itself to emit light according to the first communication signal. For example, the first device includes a second main control unit and a second light-emitting module, and after the second main control unit of the second device obtains the first communication signal, it controls the second light-emitting module to turn on, so that the second device emits light.

[0155] Step 307: The second device sends a response signal to the first device.

[0156] The response signal is used to indicate that the second device has received the first communication signal.

[0157] Step 308: The first device receives a response signal sent by the second device.

[0158] If the first device receives a response signal sent by the second device within a preset time period, it is determined that the first device and the second device have successfully communicated.

[0159] In the embodiment of the present application, if the first device receives a communication request, it sends a carrier carrying the first communication signal to the second device. If the response signal sent by the second device is not received within the preset time after sending the first communication signal, the random voltage generated by the first ADC module is continuously collected to obtain multiple first random voltages, and the first random voltage is represented by an m-bit binary number. Then, the delay value corresponding to each of the multiple first random voltages is determined. The delay value corresponding to each first random voltage refers to the value of the specified number of bits in the m-bit binary number corresponding to each first random voltage. Then, according to the delay values ​​corresponding to the multiple first random voltages, the first delay duration is determined, and the carrier frequency carrying the first communication signal is sent to the second device after the first delay duration. Among them, the carrier frequency carrying the first communication signal is the same as the carrier frequency carrying the second communication signal sent by the second device to the first device. That is, the first device can determine the delay duration according to the random voltage generated by the ADC module in the first device. Due to the influence of the overall circuit noise in the device and the charge disturbance in the air, the random voltages generated by the ADC modules in different devices are different. Therefore, the delay durations determined by different devices according to the random voltages are also different. Even different devices storing the same delay program may determine different delay durations according to the random voltages. This can avoid different devices from simultaneously sending carriers of the same frequency carrying communication signals to each other, thereby avoiding co-frequency interference. Moreover, since the delay duration is determined by the random voltage generated by the ADC module in the device, there is no restriction on the delay programs in different devices, that is, the delay programs in different devices may be different or the same, which facilitates the application of the wireless communication method and is conducive to the large-scale production of equipment.

[0160] Figure 4 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 4 As shown, the computer device includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the wireless communication method in the above embodiment are implemented.

[0161] Computer equipment can be Figure 1 In the first device 1 or the second device 2 in the embodiment, the computer device may be a general computer device or a special computer device. In a specific implementation, the computer device may be a desktop computer, a portable computer, a server, a PDA, a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device, etc. The embodiment of the present application does not limit the type of computer device. Those skilled in the art will understand that Figure 4It is only an example of a computer device and does not constitute a limitation of the computer device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, etc.

[0162] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0163] In some embodiments, the memory 402 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 402 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the memory 402 may also include both an internal storage unit of the computer device and an external storage device. The memory 402 is used to store an operating system, an application program, a boot loader, data, and other programs. The memory 402 may also be used to temporarily store data that has been output or is to be output.

[0164] An embodiment of the present application also provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, and when the processor executes the computer program, the steps in any of the above-mentioned method embodiments are implemented.

[0165] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0166] An embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the steps in the above-mentioned method embodiments.

[0167] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above method embodiments, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above method embodiments can be implemented. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk and optical data storage device. The computer-readable storage medium mentioned in the present application can be a non-volatile storage medium, in other words, it can be a non-transient storage medium.

[0168] It should be understood that all or part of the steps to implement the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.

[0169] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0170] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0171] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0172] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0173] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A wireless communication method, It is characterized in that Applied to a first device, the first device includes a first ADC analog-to-digital conversion module, and the method includes: The random voltage generated by the first ADC module is continuously collected to obtain a plurality of first random voltages, wherein the first random voltage is represented by an m-bit binary number; the first ADC module is capable of realizing an analog-to-digital conversion function and generating a random voltage, and the random voltage generated by the first ADC module is constantly changing under the influence of overall circuit noise in the first device and charge disturbance in the air; Determine a delay value corresponding to each of the plurality of first random voltages, wherein the delay value corresponding to each of the first random voltages refers to a value of a specified number of bits in an m-bit binary number corresponding to each of the first random voltages; Determining a first delay duration according to the delay values ​​corresponding to the plurality of first random voltages; A carrier carrying a first communication signal is sent to a second device after the first delay period, wherein the carrier carrying the first communication signal has the same frequency as a carrier carrying a second communication signal sent by the second device to the first device.

2. The method according to claim 1, It is characterized in that The determining of a delay value corresponding to each of the plurality of first random voltages comprises: For a target random voltage among the multiple first random voltages, determine the lowest bit value of the m-bit binary number corresponding to the target random voltage, the lowest bit value is the delay value corresponding to the target random voltage, and the target random voltage is any first random voltage among the multiple first random voltages.

3. The method according to claim 1, It is characterized in that The determining of the first delay duration according to the delay values ​​corresponding to the plurality of first random voltages includes: Generate a first random delay number according to the delay values ​​corresponding to the multiple first random voltages, wherein the first random delay number is an n-bit binary number, and the delay values ​​corresponding to the multiple first random voltages are values ​​of different digits of the first random delay number; The first delay duration is determined according to the first random delay number.

4. The method according to claim 3, It is characterized in that The delay values ​​corresponding to the multiple first random voltages include t delay values, where t is less than or equal to n; The step of generating a first random delay value according to the delay values ​​corresponding to the plurality of first random voltages comprises: If t is equal to n, the t delay values ​​are sequentially written into different digits of the n-bit binary number, and the n-bit binary number after the written values ​​is the first random delay number; If t is less than n, the t delay values ​​are written into the specified t digits in the n-bit binary number, and the preset values ​​are written into the other digits in the n-bit binary number except the specified t digits. The n-bit binary number after writing the values ​​is the first random delay number.

5. The method according to claim 1, It is characterized in that The minimum resolution voltage of the first ADC module is mV level voltage.

6. The method according to claim 1, It is characterized in that Before continuously collecting the random voltage generated by the first ADC module, the method further includes: If a communication request is received, sending a carrier wave carrying the first communication signal to the second device; If no response signal is received from the second device within a preset time after sending the first communication signal, a step of continuously collecting the random voltage generated by the first ADC module is performed, and the response signal is used to indicate that the second device has received the first communication signal.

7. The method according to any one of claims 1 to 6, It is characterized in that The first ADC module is an ADC pin of a main control unit in the first device, or is an ADC device in the first device.

8. A wireless communication system, It is characterized in that The system comprises a first device and a second device, the first device comprises a first ADC module, and the second device comprises a second ADC module; The first device is used to continuously collect the random voltage generated by the first ADC module to obtain multiple first random voltages, wherein the first random voltage is represented by an m-bit binary number; determine the delay value corresponding to each of the multiple first random voltages, wherein the delay value corresponding to each first random voltage refers to the value of a specified number of bits in the m-bit binary number corresponding to each first random voltage; determine the first delay time according to the delay values ​​corresponding to the multiple first random voltages; and send a carrier carrying a first communication signal to the second device after the first delay time; the first ADC module can realize analog-to-digital conversion function and generate random voltages, and the random voltage generated by the first ADC module changes all the time under the influence of the overall circuit noise in the first device and the charge disturbance in the air; The second device is used to continuously collect the random voltage generated by the second ADC module to obtain multiple second random voltages, where the second random voltage is represented by an m-bit binary number; determine a delay value corresponding to each of the multiple second random voltages, where the delay value corresponding to each second random voltage refers to a value of a specified number of bits in the m-bit binary number corresponding to each second random voltage; and determine a second delay duration according to the delay values ​​corresponding to the multiple second random voltages; After the second delay period, a carrier carrying a second communication signal is sent to the first device, where the frequency of the carrier carrying the second communication signal is the same as that of the carrier carrying the first communication signal.

9. A computer device, It is characterized in that The computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by the processor.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Intelligent protection device and method for power distribution circuit breaker

    CN104578400A

  • Active pen communication method and device, terminal and storage medium

    CN112558798A