CN114885371A - Wireless communication method, system, device and storage medium - Google Patents

Wireless communication method, system, device and storage medium Download PDF

Info

Publication number
CN114885371A
CN114885371A CN202210484058.2A CN202210484058A CN114885371A CN 114885371 A CN114885371 A CN 114885371A CN 202210484058 A CN202210484058 A CN 202210484058A CN 114885371 A CN114885371 A CN 114885371A
Authority
CN
China
Prior art keywords
random
delay
voltages
delay time
voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210484058.2A
Other languages
Chinese (zh)
Inventor
李良
陈国强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiawei Renewable Energy Co ltd
Original Assignee
Jiawei Renewable Energy Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiawei Renewable Energy Co ltd filed Critical Jiawei Renewable Energy Co ltd
Priority to CN202210484058.2A priority Critical patent/CN114885371A/en
Publication of CN114885371A publication Critical patent/CN114885371A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0215Traffic management, e.g. flow control or congestion control based on user or device properties, e.g. MTC-capable devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a wireless communication method, a system, equipment and a storage medium, belonging to the field of wireless communication. The method comprises the following steps: the method comprises the steps that first equipment continuously collects random voltages generated by a first ADC module in the first equipment to obtain a plurality of first random voltages, then a delay value corresponding to each first random voltage in the plurality of first random voltages is determined, first delay time is determined according to the delay values corresponding to the plurality of first random voltages, and a carrier carrying a first communication signal is sent to second equipment after the first delay time. Because the random voltages generated by the ADC modules in different equipment are different under the influence of overall noise of circuits in the equipment and charge disturbance in the air, the delay time lengths determined by different equipment according to the random voltages are also different, so that the same frequency interference can be avoided, and because the delay time lengths are determined by the random voltages generated by the ADC modules, the delay programs in different equipment are not limited, and the large-scale production of the equipment is facilitated.

Description

Wireless communication method, system, device and storage medium
Technical Field
The present application relates to the field of wireless communications, and in particular, to a wireless communication method, system, device, and storage medium.
Background
The wireless communication is a communication mode for exchanging information by using the propagation characteristics of electromagnetic waves in free space, and common frequency interference exists in the field of wireless communication, which may cause loss of communication signals and further cause communication failure, so how to avoid the common frequency interference is one of the important points in the field of wireless communication. The same-frequency interference means that mutual interference exists between communication signals with the same carrier frequency. For example, if the first device and the second device simultaneously transmit communication signals to each other, and carrier frequencies of the communication signals transmitted by the first device and the second device to each other are the same, co-channel interference may exist between the two communication signals.
In the prior art, the problem of co-channel interference can be avoided by introducing different random delay durations. For example, different random delay durations are introduced into the first device and the second device through different delay procedures, respectively. The first device may introduce a first random delay time duration through the first delay program, and send a carrier carrying the communication signal to the second device after the first random delay time duration. The second device may introduce a second random delay time through the second delay program, and send the carrier carrying the communication signal to the first device after the second random delay time. Because the first delay program and the second delay program are different, the first random delay time length introduced by the first delay program is different from the second random delay time length introduced by the second delay program, so that the first equipment and the second equipment can be prevented from simultaneously sending communication signals to each other, and the same frequency interference is avoided. Or under the condition that the first device and the second device simultaneously send communication signals to the opposite side and co-channel interference occurs, the co-channel interference of the communication signals sent again can be avoided by introducing different random delay durations.
However, the method of introducing different random delay durations through different delay programs in the first device and the second device needs to store different delay programs in different devices to ensure that the communication signals are sent with different random delay durations after the same frequency interference occurs, which is not beneficial to the large-scale production of the devices.
Disclosure of Invention
The application provides a wireless communication method, a system, a device and a storage medium, which can determine delay time according to random voltage generated by an ADC module in the device, so as to avoid the situation that carriers carrying communication signals with the same frequency are sent to the opposite side simultaneously among different devices through the delay time, and further avoid the occurrence of co-channel interference. The technical scheme is as follows:
in a first aspect, a wireless communication method is provided and applied to a first device, where the first device includes a first ADC analog-to-digital conversion module, and the method includes:
continuously collecting the random voltage generated by the first ADC module to obtain a plurality of first random voltages, wherein the first random voltages are represented by m-bit binary numbers;
determining a delay value corresponding to each first random voltage in the plurality of first random voltages, wherein the delay value corresponding to each first random voltage refers to a numerical value of a digit in m-bit binary numbers corresponding to each first random voltage;
determining a first delay time according to the delay values corresponding to the plurality of first random voltages;
and sending a carrier carrying a first communication signal to the second equipment after the first delay time, wherein the carrier carrying the first communication signal has the same frequency as a carrier carrying a second communication signal sent to the first equipment by the second equipment.
As an example, the determining the delay value corresponding to each of the plurality of first random voltages includes:
for a target random voltage in the plurality of first random voltages, determining a lowest bit value of a binary number of m bits corresponding to the target random voltage, where the lowest bit value is a delay value corresponding to the target random voltage, and the target random voltage is any one of the plurality of first random voltages.
As an example, the determining a first delay duration according to the delay values corresponding to the plurality of first random voltages includes:
generating a first random delay time according to the delay values corresponding to the plurality of first random voltages, wherein the first random delay time is an n-bit binary number, and the delay values corresponding to the plurality of first random voltages are values of different digits of the first random delay time;
and determining the first delay time length according to the first random delay time number.
As an example, the delay values corresponding to the plurality of first random voltages include t delay values, where t is less than or equal to n;
the generating a first random delay time according to the delay values corresponding to the plurality of first random voltages includes:
if t is equal to n, sequentially writing the t delay numerical values into different numerical digits of the n-bit binary number, wherein the n-bit binary number after the numerical values are written is the first random delay time;
if t is smaller than n, writing the t delay numerical values into designated t digits in n-bit binary numbers, writing other digits except the designated t digits in the n-bit binary numbers into preset numerical values, wherein the n-bit binary numbers after the numerical values are written are the first random delay time number.
As an example, the minimum resolution voltage of the first ADC block is mv-level voltage.
As one example, before the continuously collecting the random voltages generated by the first ADC module, the method further comprises:
if a communication request is received, sending a carrier carrying the first communication signal to the second equipment;
and if a response signal sent by the second device is not received within a preset time period after the first communication signal is sent, continuously collecting the random voltage generated by the first ADC module, wherein the response signal is used for indicating that the second device receives the first communication signal.
As an example, the first ADC module is an ADC pin of a main control unit in the first device, or an ADC device in the first device.
In a second aspect, a wireless communication system is provided, the system comprising a first device comprising a first ADC module and a second device comprising a second ADC module;
the first device is used for continuously collecting the random voltage generated by the first ADC module to obtain a plurality of first random voltages, and the first random voltages are represented by m-bit binary numbers; determining a delay value corresponding to each first random voltage in the plurality of first random voltages, wherein the delay value corresponding to each first random voltage refers to a numerical value of a digit in m-bit binary numbers corresponding to each first random voltage; determining a first delay time according to the delay values corresponding to the plurality of first random voltages; sending a carrier carrying a first communication signal to the second device after the first delay time;
the second device is configured to continuously acquire the random voltages generated by the second ADC module to obtain a plurality of second random voltages, where the second random voltages are represented by m-bit binary numbers; determining a delay value corresponding to each second random voltage in the plurality of second random voltages, wherein the delay value corresponding to each second random voltage refers to a numerical value of a digit in m-bit binary numbers corresponding to each second random voltage; determining a second delay time according to the delay values corresponding to the plurality of second random voltages; and sending a carrier carrying a second communication signal to the first equipment after the second delay time, wherein the frequency of the carrier carrying the second communication signal is the same as that of the carrier carrying the first communication signal.
In a third aspect, a computer device is provided, the computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the computer program, when executed by the processor, implementing the above-described wireless communication method.
In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the wireless communication method described above.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
in the embodiment of the application, first equipment continuously collects random voltages generated by a first ADC module included in the first equipment to obtain a plurality of first random voltages, the first random voltages are represented by m-bit binary numbers, a delay value corresponding to each first random voltage in the plurality of first random voltages is determined, the delay value corresponding to each first random voltage refers to a value indicating a bit number in the m-bit binary numbers corresponding to each first random voltage, then, according to the delay values corresponding to the plurality of first random voltages, a first delay duration is determined, and a carrier frequency carrying a first communication signal is sent to second equipment after the first delay duration. 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 time according to the random voltage generated by the ADC module in the first device, and the random voltages generated by the ADC modules in different devices are different due to the influence of the overall noise of the circuit in the device and the disturbance of the electric charge in the air, so that the delay times determined by different devices according to the random voltages are different even if the delay times determined by different devices storing the same delay program according to the random voltages are different, so that the same frequency carrier carrying communication signals can be prevented from being simultaneously transmitted to each other between the different devices, thereby preventing the occurrence of co-channel interference, and the delay time is determined by the random voltage generated by the ADC module in the device, so that the delay programs in the different devices are not limited, i.e., the delay programs in the different devices can be different or the same, thereby facilitating the application of the wireless communication method, is beneficial to the large-scale production of equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a system diagram of a wireless communication system according to an embodiment of the present application;
fig. 2 is a flowchart of a wireless communication method according to an embodiment of the present application;
fig. 3 is a flow chart of another wireless communication method provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application;
reference numerals:
1: first device, 11: first ADC block, 12: first master control unit, 13: first wireless communication module, 14: first light-emitting module, 15: first detection module, 2: second device, 21: second ADC block, 22: second master control unit, 23: second wireless communication module, 24: second light emitting module, 25: and a second detection module.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference to "a plurality" in this application means two or more. In the description of the present application, "/" means "or" unless otherwise stated, for example, a/B may mean a or B; "and/or" herein is only an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, for the convenience of clearly describing the technical solutions of the present application, the terms "first", "second", and the like are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
Before explaining the embodiments of the present application in detail, an application scenario of the embodiments of the present application will be described.
Because there is co-channel interference in the wireless communication field, and the co-channel interference may cause loss of communication signals, thereby causing communication failure, how to avoid the co-channel interference is one of the important points in the wireless communication field.
For example, there is no master-slave relationship between the first device and the second device, that is, both the first device and the second device can wirelessly transmit a communication signal to each other, and can also receive a communication signal transmitted by each other, and the carrier frequencies of the communication signals transmitted 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 simultaneously transmit the communication signals to each other wirelessly, the carrier frequencies of the communication signals are the same, and therefore co-channel interference may exist between the two communication signals.
As an example, the first device and the second device may be companion lights, which means that in case one of the devices emits light, the device will send a communication signal to the other device to control the other device to also emit light. For example, when the first device and the second device emit light simultaneously, the first device and the second device may send communication signals to each other simultaneously, and because the frequencies of carriers carrying the communication signals are the same, there may be co-channel interference between the two communication signals, so that neither the first device nor the second device can receive the communication signals sent by each other nor can receive response signals sent by each other.
Because both the first device and the second device cannot receive the response signal sent by the other party, both the first device and the second device can send the communication signal to the other party again according to the retransmission mechanism, and under the condition, the retransmitted communication signal still has co-channel interference. Therefore, under the condition that the first equipment still emits light, the second equipment cannot timely receive the communication signal sent by the first equipment due to the co-channel interference of the retransmission mechanism, and the second equipment does not send the communication signal to the first equipment any more due to the stop of the retransmission mechanism.
In the prior art, the problem of co-channel interference can be avoided by introducing different random delay durations. For example, different random delay durations are introduced into the first device and the second device through different delay procedures, respectively.
As an example, the first device and the second device are companion lights, and when co-channel interference occurs between the first device and the second device, according to a retransmission mechanism, the first device may 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 may introduce a second random delay time through a stored second delay program, and send a carrier carrying the communication signal to the first device after the second random delay time. Because the first delay program and the second delay program are different, the first random delay time length introduced by the first delay program is different from the second random delay time length introduced by the second delay program, so that the situation that the communication signals sent to the opposite side again by the first equipment and the second equipment still have same-frequency interference can be avoided.
However, in the prior art, the method of introducing different random delay durations through different delay programs in the first device and the second device needs to store different delay programs in different devices to ensure that the communication signals are sent at different random delay durations after the occurrence of co-channel interference, so that the co-channel interference is avoided, and the method is not beneficial to the large-scale production of the devices.
Based on this, the embodiment of the present application provides a wireless communication method, which can determine a delay time according to a random voltage generated by an ADC module in a device, so as to avoid sending carriers carrying the same frequency of a communication signal to an opposite side simultaneously between different devices through the delay time, thereby avoiding occurrence of co-channel interference, and because the delay time is determined by the ADC module in the device, there is no limitation on delay programs in different devices, that is, the delay programs in different devices may be different or the same, which is convenient for application of the wireless communication method, and is beneficial to large-scale production of the devices.
A wireless communication system provided in an embodiment of the present application is explained in detail below.
Referring to fig. 1, fig. 1 is a system diagram of a wireless communication system according to an embodiment of the present disclosure, as shown in fig. 1, the wireless communication system includes a first device 1 and a second device 2, and the wireless communication method according to the embodiment of the present disclosure may be applied to the wireless communication system shown in fig. 1.
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.
The first ADC module 11 and the second ADC module 21 may implement an analog-to-digital conversion function, and may generate a random voltage, where the random voltage generated by the first ADC module 11 changes at any time under the influence of the overall noise of the circuit in the first device 1 and the disturbance of the charge 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.
The random voltage generated by the second ADC module 21 changes at different moments under the influence of the overall circuit noise in the second device 2 and the charge disturbance in the air, that is, the random voltages generated by the second ADC module 21 of the second device 2 at different moments are different.
In addition, since the space where the first device 1 and the second device 2 are located is different and the overall situation of the circuit in the first device 1 and the second device 2 is different, the random voltages generated by the first ADC module 11 and the second ADC module 21 are different. That is, the random voltages generated by the ADC modules in different devices are different due to the influence of noise on the whole circuit in the device and disturbance of charge in the air.
As an example, the first ADC module 11 may be an ADC pin of a device in the first apparatus 1 or an ADC device in the first apparatus 1, and the second ADC module 21 may be an ADC pin of a device in the second apparatus 2 or an ADC device in the second apparatus 2, and the first ADC module 11 and the second ADC module 21 are not limited in this embodiment.
For example, the first ADC module 11 is a floating ADC pin of a device in the first apparatus 1, that is, the first ADC module 11 is a floating ADC pin. The floating ADC pin may generate a true random voltage when it is constantly affected by the overall noise of the circuit in the first device 1 and the disturbance of the charge in the air.
The first device 1 is configured to continuously acquire random voltages generated by the first ADC module 11 to obtain a plurality of first random voltages, where the first random voltages are represented by m-bit binary numbers; determining a delay value corresponding to each first random voltage in the plurality of first random voltages, wherein the delay value corresponding to each first random voltage refers to a numerical value of a digit in m-digit binary numbers corresponding to each first random voltage; determining a first delay time according to delay values corresponding to the plurality of first random voltages; and sending the carrier carrying the first communication signal to the second device 2 after the first delay time.
The second device 2 is configured to continuously acquire the random voltages generated by the second ADC module 21 to obtain a plurality of second random voltages, where the second random voltages are represented by m-bit binary numbers; determining a delay value corresponding to each second random voltage in the plurality of second random voltages, wherein the delay value corresponding to each second random voltage refers to a numerical value of a digit in m-digit binary numbers corresponding to each second random voltage; determining a second delay time according to the delay values corresponding to the plurality of second random voltages; and sending the carrier carrying the second communication signal to the first device 1 after the second delay time, wherein the frequency of the carrier carrying the second communication signal is the same as that of the carrier carrying the first communication signal.
That is, there is no master-slave relationship between the first device 1 and the second device 2, that is, both the first device 1 and the second device 2 can transmit and receive the communication signal transmitted by the other party, and the frequencies of the carriers of the communication signals transmitted by the first device 1 and the second device 2 to the other party are the same.
It should be noted that, because the random voltages generated by the ADC modules in different devices are different, the delay durations determined by different devices according to the random voltages are also different, and even though the delay durations determined by different devices storing the same delay program according to the random voltages are also different, it can be avoided that the first device 1 and the second device 2 simultaneously transmit carriers carrying the same frequency of the communication signal to each other, thereby avoiding the occurrence of co-frequency interference, and because the delay durations are determined by the random voltages generated by the ADC modules in the devices, there is no limitation 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 may be different or the same, which facilitates the application of the wireless communication method, and is beneficial to the large-scale production of the devices.
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.
The first main control unit 12 may be configured to continuously collect the random voltages generated by the first ADC module 11 to obtain a plurality of first random voltages; determining a delay value corresponding to each first random voltage in the plurality of first random voltages; determining a first delay time according to delay values corresponding to the plurality of first random voltages; and sending the carrier carrying the first communication signal to the second device 2 after the first delay time. That is, the functions of the first device 1 described above may be implemented by the first main control unit 12.
As an example, the first main control unit 12 may be connected to the first ADC module 11 in a wired or wireless manner, and the first main control unit 12 may collect a random voltage generated by the first ADC module 11. For example, as shown in fig. 1, the first ADC module 11 may be an ADC pin of the first main control unit 12 in the first device 1, where the ADC pin is in a floating input state. In this case, the first main control unit 12 may be connected to the first ADC module 11 in a wired manner.
As an example, the first main control unit 12 may be a processor with processing capability, and the like, and may determine a first delay time duration according to the random voltage after acquiring the random voltage generated by the first ADC module 11, and send a carrier carrying the first communication signal to the second device 2 after the first delay time duration. For example, the first main control Unit 12 is a CPU (Central processing Unit) or an MCU (Micro Controller Unit), and the embodiment of the present application does not limit the first main control Unit 12. For example, as shown in fig. 1, the first master control unit 12 is an MCU.
Wherein the first wireless communication module 13 is used for realizing the function of communicating with the second device 2. For example, the first device 1 sends a carrier carrying the first communication signal to the second device 2 through the first wireless communication module 13.
As an example, the first master control unit 12 may be connected to the first wireless communication module 13 in a wired manner, and configured to control the first wireless communication module 13 to send the carrier carrying the first communication signal to the second device 2 after the first delay time.
As an example, the communication mode of the first wireless communication module 13 may be zigbee, bluetooth, wireless broadband, ultra wideband, or the like, which is not limited in this embodiment of the application. For example, as shown in fig. 1, the communication method of the first wireless communication module 13 is a wireless broadband.
For the explanation of the second main control unit 22 and the second wireless communication module 23 of the second device 2, reference may be made to the explanation of the first main control unit 12 and the first wireless communication module 13, which is not described herein again.
The first device 1 and the second device 2 may be electronic devices such as terminals or servers without master-slave relationship, and the terminals may be electronic devices such as mobile phones, tablet computers, and lamps.
As an example, the first device 1 and the second device 2 are companion lights. For example, as shown in fig. 1, the first device 1 further includes a first light-emitting module 14, and the second device 2 further 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 generate co-channel interference, the random voltages generated by the first ADC module 11 are continuously collected to obtain a plurality of first random voltages. And then, determining a first delay time according to the plurality of first random voltages, and sending a first communication signal to the second device 2 through the first wireless communication module 13 after the first delay time, where the first communication signal is used to indicate that the second device 2 emits 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.
Or, after acquiring the communication request, the first main control unit 12 may continuously acquire the random voltage generated by the first ADC module 11 to obtain a plurality of first random voltages.
For example, the first main control unit 12 may control the first light-emitting module 14 to emit light to trigger the communication request after receiving a start instruction sent by another module in the first device 1 or receiving a start instruction sent by another device sensor. For example, the first device 1 further includes a first detection module 15, and the first main control unit 12 may receive the start instruction sent by the first detection module 15.
As an example, the first detection module 15 is used for detecting an object or a sound or the like within a detection range, i.e. detecting an object or a sound or the like approaching 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.
As an example, the first main control unit 12 and the first detection module 15 may be connected by a wired or wireless manner. For example, as shown in fig. 1, the first detection module 15 is connected to the first main control unit 12 in a wired manner.
As an example, if there is a voice of a person within a certain range of the first device 1, the first detection module 15 may detect the voice and send a turn-on instruction to the first main control unit 12.
The first Light Emitting module 14 and the second Light Emitting module 24 may be LEDs (Light Emitting diodes), fluorescent tubes, or the like, which is not limited in this embodiment. For example, as shown in fig. 1, the first and second light emitting modules 14 and 24 are LEDs.
The first detection module 15 has a detection range, the first detection module 15 may be an infrared sensor, an ultrasonic sensor, a camera, a sound sensor, or the like, and the first detection module 15 is not limited in this embodiment of the application.
Of course, the second device 2 may also include the second detection module 25, and the explanation of the second detection module 25 may refer to the explanation of the first detection module 15, which is not described herein again.
Fig. 1 only illustrates that the wireless communication system includes a first device 1 and a second device 2 as an example, and those skilled in the art can understand that the wireless communication system may include more devices, and there is no master-slave relationship between at least two devices in the wireless communication system, and the frequencies of carriers for the at least two devices to transmit communication signals to other devices are the same.
The following explains the wireless communication method provided in the embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a flowchart of a wireless communication method according to an embodiment of the present disclosure. Wherein the wireless communication method can be applied in the wireless communication system as shown in fig. 1. In the embodiment of the present application, the wireless communication method is described by taking an example that a first device 1 in a wireless communication system shown in fig. 1 sends a communication signal to a second device 2, where the first device 1 includes a first ADC module 11. As shown in fig. 2, the method comprises the steps of:
step 201, the first device continuously collects the random voltages generated by the first ADC module to obtain a plurality of first random voltages.
Wherein the first random voltage can be represented by a binary number of m bits, and m is a positive integer.
The first ADC module may be an ADC pin of a device in the first apparatus, or an ADC device in the first apparatus, which is not limited in this embodiment of the application. For example, as shown in fig. 1, 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.
The random voltage generated by the first ADC module varies from moment to moment under the influence of overall noise of the circuit in the first device and disturbance of charges in the air, that is, the random voltages generated by the first ADC module at different moments are different, and the random voltages generated by the ADC modules in different devices are also different.
For example, the minimum resolution voltage of the first ADC module is mv (millivolt) voltage, that is, if the first ADC module is affected by overall noise of the circuit in the first device and charge disturbance in the air, the first ADC module can resolve mv voltage, so that the random voltages generated by the ADC modules of different devices are different and are true random numbers, and the random voltages generated by the ADC modules of the same device at different times are also different and are true random numbers.
The smaller the minimum resolution voltage of the first ADC module is, the more random the random voltage generated by the first ADC module is, that is, the lower the probability that the ADC modules of different devices generate the same random voltage is, and the lower the probability that the ADC modules of the same device generate the same random voltage at different times is.
The minimum resolution voltage of the first ADC module is generally determined by the reference voltage and the number of bits of the first ADC module, which is the number of binary digits of the first random voltage generated by the first ADC module.
As an example, the reference voltage of the first ADC block in the first device is 1.1v, the first random voltage is represented by a binary number of 10 bits, and since the binary number of 10 bits can represent 0 to 1023, the minimum resolution voltage is 1.07mv after dividing 1.1v into 1024 parts. Thus, the larger the number of bits of the first ADC block is, the smaller the minimum resolution voltage of the first ADC block is.
The number of continuous acquisition times of the random voltage generated by the first ADC module by the first device may be preset, for example, the number of acquisition times may be 7, so as to obtain 7 first random voltages.
As an example, if the first device determines that the first device and the second device generate co-channel interference, the first device continuously collects the random voltage generated by the first ADC module. 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 a 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 period after the first communication signal is sent, the step of continuously collecting the random voltage generated by the first ADC module is performed. Wherein the response signal is used to indicate that the second device received the first communication signal.
The preset time duration may be a preset time duration, such as 1s or 5 s.
It should be noted that, in the embodiment of the present application, only the condition that the first device does not receive the response signal sent by the second device within the preset time period after sending the first communication signal is used as a condition for determining the co-channel interference, and of course, other conditions may also be used as the condition for determining the co-channel interference, which is not limited in the embodiment of the present application.
In step 202, the first device determines a delay value corresponding to each of the plurality of first random voltages.
The delay value corresponding to each first random voltage refers to a numerical value of a digit in m-digit binary numbers corresponding to each first random voltage.
The designated number of bits may be set in advance as required, and the designated number of bits may include one or more number of bits. For example, the designated number of bits may be the lowest bit in the corresponding m-bit binary number, or the last two bits, etc.
For example, for a target random voltage in the plurality of first random voltages, the first device may determine a lowest bit value of a binary number of m bits corresponding to the target random voltage, where the lowest bit value is a delay value corresponding to the target random voltage, and the target random voltage is any one of the plurality of 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 which case, the delay value corresponding to the first random voltage is composed of 1 bit, and may be 0 or 1.
As an example, the first random voltage may be represented by a binary number of 10 bits, and the first device may determine a value of a lowest bit of the binary number of 10 bits of the first random voltage as the corresponding delay value.
Of course, the first device may also determine any s bits in 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, and s is not less than 1 and not more than 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, 11.
In step 203, the first device determines a first delay duration according to the delay values corresponding to the plurality of first random voltages.
For example, the first device may generate a first random delay time number according to the delay values corresponding to the plurality of first random voltages, and determine the first delay time duration according to the first random delay time number. The first random delay time is n-bit binary number, and the delay values corresponding to the plurality of first random voltages are different-digit values of the first random delay time.
The first device may determine the number of delay values included in the delay values corresponding to the plurality of first random voltages, and the first random delay values may be generated by different methods according to different numbers of the delay values.
As an example, the first random delay time is an n-bit binary number, the delay values corresponding to the plurality of first random voltages include t delay values, t is less than or equal to n, and both t and n are positive integers. The first device may generate the first random delay number according to the delay values corresponding to the plurality of first random voltages, where the first random delay number includes the following two cases:
in the first case: if t is equal to n, the t delay numerical values are sequentially written into different numerical digits of the n-bit binary number, and the n-bit binary number after the numerical values are written is the first random delay time.
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, where the delay value corresponding to the first random voltage is composed of 2 bits, and may be 00, 01, 10, or 11. In this case, if the first device collects the random voltages 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, so that the delay values corresponding to the 4 first random voltages include 8 delay values, that is, t is 8.
If n is 8, that is, the first random delay time is an 8-bit binary number, t is equal to n, the first device may correspond each of the 4 first random voltages to a 2-bit delay value, that is, the 8 delay values are sequentially written into different bit numbers of the 8-bit binary number, and the 8-bit binary number after the value is written is the first random delay time.
Of course, the first device may also write the t delay values into different digits of the n-bit binary number according to a specified rule, which is not limited in this embodiment of the present application.
In the second case: if t is smaller than n, t delay numerical values are written into designated t digits in the n-bit binary number, other digits except the designated t digits in the n-bit binary number are written into preset numerical values, and the n-bit binary number after the numerical values are written is the first random delay time.
The preset value may be preset, for example, the preset value may be 0 or 1.
For example, the first device determines a value of a lowest bit in an m-bit binary number corresponding to each first random voltage as a delay value corresponding to the first random voltage, where the delay value corresponding to the first random voltage is composed of 1 bit and may be 0 or 1. In this case, if the first device collects the random voltages 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, so that the delay values corresponding to the 7 first random voltages include 7 delay values, that is, t is 7.
If n is 8, that is, the first random delay time is an 8-bit binary number, t is less than n, the first device may write 7 delay values into the designated 7-digit number in the 8-bit binary number, write a preset value into the remaining one digit except the designated 7-digit number in the 8-bit binary number, and write the 8-bit binary number after the value is the first random delay time.
As an example, if the lower four bits of the first random voltage of the binary number of m bits 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, 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 mv-level voltage, the first random delay time obtained after taking the lowest bit of each first random voltage in the plurality of first random voltages as one of the n bits of the first random delay time is the true random delay time.
After the first random delay time is obtained, the first delay time duration may be determined according to the first random delay time of the n-bit binary system. For example, if the first random delay time of the 8-bit binary number is a representable range of 0 to 255 for the first random delay time of 8 delay values sequentially written into the 8-bit binary number, the determined first delay time is any value between 0 and 255.
Step 204, the first device sends the carrier carrying the first communication signal to the second device after the first delay time.
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.
It should be noted that the above steps 201 to 204 may also be performed by a second device, that is, the second device includes a second ADC module, the second device first continuously collects the random voltages generated by the second ADC module to obtain a plurality of second random voltages, then determines a delay value corresponding to each second random voltage in the plurality of second random voltages, determines a second delay time according to the delay values corresponding to the plurality of second random voltages, and then sends a carrier carrying the second communication signal to the first device after the second delay time.
As an example, if the first device and the second device have generated co-channel interference, 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. Because the first device determines the first delay time length according to the random voltage generated by the first ADC module, the second device determines the second delay time length according to the random voltage generated by the second ADC module, and the second delay time length is influenced by the integral noise of a circuit in the device and the disturbance of charges in the air, and the random voltages generated by the ADC modules in different devices are different, the first delay time length is different from the second delay time length, so that according to a retransmission mechanism, the time for sending the communication signals to the opposite side by the first device and the second device is different again, therefore, the situation that the carriers carrying the same frequency of the communication signals are sent to the opposite side simultaneously between different devices can be avoided, and the occurrence of co-frequency interference is further avoided. And because the time delay duration is determined by the random voltage generated by the ADC module in the device, the time delay programs in the first device and the second device are not limited, namely the time delay programs in the first device and the second device can be different or the same, so that the application of a wireless communication method is facilitated, and the large-scale production of the device is facilitated.
For example, the first device includes a first wireless communication module, and the first device may send a carrier carrying the first communication signal to the second device through the first wireless communication module.
Step 205, the second device receives the carrier wave carrying the first communication signal sent by the first device, and acquires the first communication signal.
For example, the second device includes a second wireless communication module, and the second device may receive, through the second wireless communication module, a carrier that carries the first communication signal and is sent by the first device, and acquire the first communication signal from the received carrier.
After acquiring the first communication signal, the second device sends a response signal to the first device, where the response signal is used to indicate that the second device receives the first communication signal. The first device may receive a response signal sent by the second device such that the first device and the second device complete the communication.
As an example, the first device may also not receive the response signal sent by the second device within a preset time period after sending the first communication signal, in this case, the first device may send the carrier carrying the first communication signal to the second device again according to the retransmission mechanism. The retransmission mechanism may be to retransmit the first communication signal after the delay time duration.
For example, after the first device does not receive the response signal sent by the second device within the preset time period after sending the first communication signal, the random voltages generated by the first ADC module can be continuously collected to obtain a plurality of third random voltages, the third random voltages are represented by m-bit binary numbers, a delay value corresponding to each third random voltage in the plurality of third random voltages is determined, the delay value corresponding to each third random voltage refers to a numerical value of a designated digit in the m-bit binary numbers corresponding to each third random voltage, then a third delay duration is determined according to the delay values corresponding to the plurality of third random voltages, and after a third delay time, sending the carrier carrying the first communication signal to the second device again, wherein the frequency of the carrier carrying the first communication signal is the same as that of the carrier carrying the second communication signal sent to the first device by the second device.
In the embodiment of the application, first equipment continuously collects random voltages generated by a first ADC module included in the first equipment to obtain a plurality of first random voltages, the first random voltages are represented by m-bit binary numbers, a delay value corresponding to each first random voltage in the plurality of first random voltages is determined, the delay value corresponding to each first random voltage refers to a value indicating a bit number in the m-bit binary numbers corresponding to each first random voltage, then, according to the delay values corresponding to the plurality of first random voltages, a first delay duration is determined, and a carrier frequency carrying a first communication signal is sent to second equipment after the first delay duration. 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 time according to the random voltage generated by the ADC module in the first device, and the random voltages generated by the ADC modules in different devices are different due to the influence of the overall noise of the circuit in the device and the disturbance of the electric charge in the air, so that the delay times determined by different devices according to the random voltages are different even if the delay times determined by different devices storing the same delay program according to the random voltages are different, so that the same frequency carrier carrying communication signals can be prevented from being simultaneously transmitted to each other between the different devices, thereby preventing the occurrence of co-channel interference, and the delay time is determined by the random voltage generated by the ADC module in the device, so that the delay programs in the different devices are not limited, i.e., the delay programs in the different devices can be different or the same, thereby facilitating the application of the wireless communication method, is beneficial to the large-scale production of equipment.
Referring to fig. 3, fig. 3 is a flowchart of another wireless communication method according to an embodiment of the present disclosure. Wherein the wireless communication method can be applied in the wireless communication system as shown in fig. 1. In the embodiment of the present application, the wireless communication method is described by taking an example that a first device 1 in a wireless communication system shown in fig. 1 sends a communication signal to a second device 2, where the first device 1 includes a first ADC module 11. As shown in fig. 3, the method comprises the steps of:
step 301, if receiving the communication request, the first device sends a carrier carrying the first communication signal to the second device.
The communication request is used for requesting to send a carrier carrying the first communication signal to the second equipment. The carrier carrying the first communication signal is the same frequency as the carrier carrying the second communication signal sent by the second device to the first device.
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 illuminate. And if the first equipment receives the starting instruction, the first equipment controls the first equipment to emit light, triggers a communication request and sends a first communication signal to the first equipment, so that the second equipment receives the first communication signal and controls the first equipment to emit light. Alternatively, the first device may receive a communication request sent from the outside, for example, the mobile phone may trigger a communication operation by a human, and the mobile phone receives the communication operation and sends the communication request to the first device.
As an example, the first device may include a first detection module and a first main control unit, the first detection module is used for detecting an object or sound and the like within a detection range, that is, detecting an object or sound and the like approaching the first device. If the first detection module detects an object or sound in the detection range, a starting instruction is sent to the first main control unit, and the first main control unit can control self light emitting according to the starting instruction to trigger a communication request.
As an example, the first device may further include a second light emitting module, and the first main control unit of the first device controls the first light emitting module to turn on after receiving the turn-on instruction, so that the first device emits light.
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, continuously collecting the random voltages generated by the first ADC module to obtain a plurality of first random voltages.
The response signal is used for indicating that the second device receives the first communication signal, the first random voltage may be represented by a binary number of m bits, m is a positive integer, and the preset time duration may be a preset time.
If the first device does not receive the response signal sent by the second device within the preset time length, it determines that the first communication fails, and in this case, the first device may send the first communication signal to the second device again according to the retransmission mechanism.
It should be noted that, in the embodiment of the present application, of course, other situations may also be used as the condition for determining the co-channel interference, and the embodiment of the present application does not limit this.
The retransmission mechanism may be to retransmit the first communication signal after the delay time duration. In this embodiment of the present application, only the condition that the first device does not receive the response signal sent by the second device within the preset time period after sending the first communication signal is used as a condition for determining the co-channel interference, so that the first device may send the first communication signal to the second device again after the time delay according to the retransmission mechanism when the first communication fails.
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 this embodiment of the application.
The first ADC module generates different random voltages at different moments under the influence of overall circuit noise in the first device and charge disturbance in the air, and the ADC modules in different devices generate different random voltages.
As an example, the first device may continuously collect the random voltage generated by the first ADC module according to a preset threshold number of times. For example, the first device continuously collects the random voltages generated by the first ADC module multiple times according to the time threshold to obtain multiple first random voltages, and stops collecting until the time of collecting the random voltages is greater than the time threshold.
For example, the first device collects the random voltages generated by the first ADC module 7 times according to the time threshold, to obtain 7 first random voltages, where each of the 7 first random voltages may be represented by a binary number of 10 bits.
Step 303, the first device determines a delay value corresponding to each of the plurality of first random voltages.
The delay value corresponding to each first random voltage refers to a numerical value of a digit in m-digit binary numbers corresponding to each first random voltage.
For example, 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 which case, the delay value corresponding to the first random voltage is composed of 1 bit, and may be 0 or 1.
For example, the first device determines the value of the lowest 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.
Of course, the first device may also determine any two bits of the m-bit binary number as the delay value corresponding to the first random voltage, in which case, the delay value corresponding to the first random voltage consists of 2 bits, which may be 00, 01, 10, and 11.
Step 304, the first device determines a first delay duration according to the delay values corresponding to the plurality of first random voltages.
For example, the first device may generate a first random delay time number according to the delay values corresponding to the plurality of first random voltages, and determine the first delay time duration according to the first random delay time number. The first random delay time is n-bit binary number, and the delay values corresponding to the plurality of first random voltages are different-digit values of the first random delay time.
The first device may combine the delay values corresponding to each of the plurality of first random voltages to obtain an n-bit value as the first random delay time, or write a preset value to a bit number, in which the delay value is not written, of the n bits after combining the n-bit values to obtain the n-bit value, where the n-bit value is the first random delay time.
For example, the first random delay time is an 8-bit binary number, the first device generates 7 delay values according to 1-bit delay values 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, then writes the 7 delay values into 0 th bit to 6 th bit of the 8-bit binary number, writes a preset value into the 7 th bit of the 8-bit binary number, and the 8-bit binary number after the 0 th bit to the 7 th bit is written with the value is the first random delay time.
After the first random delay time is obtained, the first delay time duration may be determined according to the first random delay time of the n-bit binary system. For example, if the predetermined value written in the 7 th bit of the 8-bit binary number is 0, the representable range of the first random delay time is 0-127, and the determined first delay time duration is a value between 0 and 127.
Step 305, the first device sends the carrier carrying the first communication signal to the second device after the first delay time.
It should be noted that the above steps 301 to 305 may also be performed by a second device, that is, the second device includes a second ADC module, and if the second device receives the communication request, the second device sends a carrier carrying the second communication signal to the first device, and if the response signal sent by the first device is not received within a preset time period after the second communication signal is sent, the second device continuously collects the random voltage generated by the second ADC module to obtain a plurality of second random voltages, determines a delay value corresponding to each of the plurality of second random voltages, determines a second delay time period according to the delay values corresponding to the plurality of second random voltages, and then sends the carrier carrying the second communication signal to the first device after the second delay time period.
Step 306, the second device receives the carrier wave carrying the first communication signal sent by the first device, and acquires the first communication signal.
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 the second device controls its own light emission according to the first communication signal after acquiring 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, the second main control unit controls the second light emitting module to turn on, so that the second device emits light.
Step 307, the second device sends a response signal to the first device.
Wherein the response signal is used to indicate that the second device received the first communication signal.
In step 308, the first device receives the response signal sent by the second device.
And if the first equipment receives a response signal sent by the second equipment within a preset time length, the first equipment and the second equipment are determined to be successfully communicated.
In the embodiment of the application, if a first device receives a communication request, a carrier carrying a first communication signal is sent to a second device, if a response signal sent by the second device is not received within a preset time period after the first communication signal is sent, a plurality of first random voltages are obtained by continuously collecting random voltages generated by a first ADC module, the first random voltages are represented by m-bit binary numbers, a delay value corresponding to each first random voltage in the plurality of first random voltages is determined, the delay value corresponding to each first random voltage refers to a value of a digit in the m-bit binary numbers corresponding to each first random voltage, then a first delay time period is determined according to the delay values corresponding to the plurality of first random voltages, and a carrier frequency carrying the first communication signal is sent to the second device after the first delay time period. 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 time according to the random voltage generated by the ADC module in the first device, and the random voltages generated by the ADC modules in different devices are different due to the influence of the overall noise of the circuit in the device and the disturbance of the electric charge in the air, so that the delay times determined by different devices according to the random voltages are different even if the delay times determined by different devices storing the same delay program according to the random voltages are different, so that the same frequency carrier carrying communication signals can be prevented from being simultaneously transmitted to each other between the different devices, thereby preventing the occurrence of co-channel interference, and the delay time is determined by the random voltage generated by the ADC module in the device, so that the delay programs in the different devices are not limited, i.e., the delay programs in the different devices can be different or the same, thereby facilitating the application of the wireless communication method, is beneficial to the large-scale production of equipment.
Fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 4, the computer apparatus includes: a processor 401, a memory 402 and a computer program 403 stored in the memory 402 and operable on the processor 401, the steps in the wireless communication method in the above embodiments being implemented when the processor 401 executes the computer program 403.
The computer device may be the first device 1 or the second device 2 in the embodiment of fig. 1, and the computer device may be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device may be a desktop computer, a laptop computer, a server, a palmtop computer, a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device, and the like, and the embodiment of the present application does not limit the type of the computer device. Those skilled in the art will appreciate that fig. 4 is merely an example of a computing device and is not intended to limit the computing device, and may include more or fewer components than those shown, or some components in combination, or different components, such as input output devices, network access devices, etc.
Processor 401 may be a Central Processing Unit (CPU), and Processor 401 may also be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or any conventional processor.
The storage 402 may be, in some embodiments, an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The memory 402 may also be an external storage device of the computer device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device. Further, the memory 402 may also include both internal storage units of the computer device and external storage devices. The memory 402 is used to store an operating system, application programs, a Boot Loader (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.
An embodiment of the present application further provides a computer device, where the computer device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application also provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
The embodiments of the present application provide a computer program product, which when run on a computer causes the computer to perform the steps of the above-described method embodiments.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above method embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the above method embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a photographing apparatus/terminal device, a recording medium, computer Memory, ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, optical data storage device, etc. The computer-readable storage medium referred to herein may be a non-volatile storage medium, in other words, a non-transitory storage medium.
It should be understood that all or part of the steps for implementing the above embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented in software, may 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 may be stored in the computer-readable storage medium described above.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/computer device and method may be implemented in other ways. For example, the above-described apparatus/computer device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A wireless communication method applied to a first device, the first device comprising a first ADC analog-to-digital conversion module, the method comprising:
continuously collecting the random voltage generated by the first ADC module to obtain a plurality of first random voltages, wherein the first random voltages are represented by m-bit binary numbers;
determining a delay value corresponding to each first random voltage in the plurality of first random voltages, wherein the delay value corresponding to each first random voltage refers to a numerical value of a digit in m-bit binary numbers corresponding to each first random voltage;
determining a first delay time according to the delay values corresponding to the plurality of first random voltages;
and sending a carrier carrying a first communication signal to the second equipment after the first delay time, wherein the carrier carrying the first communication signal has the same frequency as a carrier carrying a second communication signal sent to the first equipment by the second equipment.
2. The method of claim 1, wherein the determining the delay value for each of the plurality of first random voltages comprises:
for a target random voltage in the plurality of first random voltages, determining a lowest bit value of a binary number of m bits corresponding to the target random voltage, where the lowest bit value is a delay value corresponding to the target random voltage, and the target random voltage is any one of the plurality of first random voltages.
3. The method of claim 1, wherein determining the first delay time duration according to the delay values corresponding to the plurality of first random voltages comprises:
generating a first random delay time according to the delay values corresponding to the plurality of first random voltages, wherein the first random delay time is an n-bit binary number, and the delay values corresponding to the plurality of first random voltages are values of different digits of the first random delay time;
and determining the first delay time length according to the first random delay time number.
4. The method of claim 3, wherein the delay values for the first plurality of random voltages comprises t delay values, t being less than or equal to n;
generating a first random delay time according to the delay values corresponding to the plurality of first random voltages, including:
if t is equal to n, sequentially writing the t delay numerical values into different numerical digits of the n-bit binary number, wherein the n-bit binary number after the numerical values are written is the first random delay time;
if t is smaller than n, writing the t delay numerical values into designated t digits in n-bit binary numbers, writing other digits except the designated t digits in the n-bit binary numbers into preset numerical values, wherein the n-bit binary numbers after the numerical values are written are the first random delay time number.
5. The method of claim 1, wherein a minimum resolution voltage of the first ADC block is an mv-level voltage.
6. The method of claim 1, wherein prior to the continuously collecting the random voltages generated by the first ADC module, the method further comprises:
if a communication request is received, sending a carrier carrying the first communication signal to the second equipment;
and if a response signal sent by the second device is not received within a preset time period after the first communication signal is sent, continuously collecting the random voltage generated by the first ADC module, wherein the response signal is used for indicating that the second device receives the first communication signal.
7. The method of any of claims 1-6, wherein the first ADC module is an ADC pin of a master control unit in the first device or is an ADC device in the first device.
8. A wireless communication system, the system comprising a first device comprising a first ADC module and a second device comprising a second ADC module;
the first device is used for continuously collecting the random voltage generated by the first ADC module to obtain a plurality of first random voltages, and the first random voltages are represented by m-bit binary numbers; determining a delay value corresponding to each first random voltage in the plurality of first random voltages, wherein the delay value corresponding to each first random voltage refers to a numerical value of a digit in m-bit binary numbers corresponding to each first random voltage; determining a first delay time according to the delay values corresponding to the plurality of first random voltages; sending a carrier carrying a first communication signal to the second device after the first delay time;
the second device is configured to continuously acquire the random voltages generated by the second ADC module to obtain a plurality of second random voltages, where the second random voltages are represented by m-bit binary numbers; determining a delay value corresponding to each second random voltage in the plurality of second random voltages, wherein the delay value corresponding to each second random voltage refers to a numerical value of a digit in m-bit binary numbers corresponding to each second random voltage; determining a second delay time according to the delay values corresponding to the plurality of second random voltages; and sending a carrier carrying a second communication signal to the first equipment after the second delay time, wherein 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, characterized in that the computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, which computer program, when executed by the processor, implements the method according to any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202210484058.2A 2022-05-06 2022-05-06 Wireless communication method, system, device and storage medium Pending CN114885371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210484058.2A CN114885371A (en) 2022-05-06 2022-05-06 Wireless communication method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210484058.2A CN114885371A (en) 2022-05-06 2022-05-06 Wireless communication method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN114885371A true CN114885371A (en) 2022-08-09

Family

ID=82674029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210484058.2A Pending CN114885371A (en) 2022-05-06 2022-05-06 Wireless communication method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN114885371A (en)

Similar Documents

Publication Publication Date Title
US8482441B2 (en) Method and apparatus to perform functional compression
US7562172B2 (en) I2C Slave/master interface enhancement using state machines
CN107003958A (en) With stamp of interior break period
US11984988B2 (en) System and method for providing dynamic hybrid automatic repeat request (HARQ) codebook with multiple valid unicast downlink control information (DCI) per monitoring occasion index per serving cell
US11818716B2 (en) User equipment assistance for resource selection in new radio vehicle to everything
JP2016539533A (en) Error detection capability via CCIe protocol
CN106257854B (en) Single-side nibble transmission error generator
JP4906736B2 (en) Control and monitoring signal transmission system
US20230232409A1 (en) System and method for physical downlink control channel monitoring based on user equipment capability
US20150311955A1 (en) Wireless charging method and system, and mobile terminal
JP2024020475A (en) Method for transmitting side-link information, terminal, and control node
CN114885371A (en) Wireless communication method, system, device and storage medium
CN111213366B (en) Rigid body identification method, device and system and terminal equipment
US10360748B2 (en) Method of achieving free-pairing wireless door lock based on DIP switch, a wireless door lock and a communication method for the wireless door lock
TW201944746A (en) Electronic device and method for blind detection of preempted resources in orthogonal frequency division multiplexing (OFDM) systems and wireless communication system
CN105653025B (en) Information processing method and electronic equipment
EP2876970A1 (en) Communication apparatus
KR20180127085A (en) Electronic device for compressing data and method for operation thereof
JP7457840B2 (en) DAI counting method, DAI counting control method, terminal and network equipment
CN117528607A (en) Method for predicting redundancy rate of data packet and electronic device
CN117112193A (en) Memory resource management method and electronic equipment
CN116890672A (en) Wireless charging device communication method, device, equipment, storage medium and vehicle
CN114494181A (en) Image processing method and apparatus, electronic device, and storage medium
TW202245525A (en) Method for monitoring physical downlink control channel candidate and user equipment
TW202214028A (en) Method and system for resource selection

Legal Events

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