CN106656221B - Data transceiving method and device - Google Patents

Data transceiving method and device Download PDF

Info

Publication number
CN106656221B
CN106656221B CN201611041015.8A CN201611041015A CN106656221B CN 106656221 B CN106656221 B CN 106656221B CN 201611041015 A CN201611041015 A CN 201611041015A CN 106656221 B CN106656221 B CN 106656221B
Authority
CN
China
Prior art keywords
data
antenna
received
control unit
radio frequency
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.)
Active
Application number
CN201611041015.8A
Other languages
Chinese (zh)
Other versions
CN106656221A (en
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.)
Shenzhen Hollyland Technology Co Ltd
Original Assignee
Shenzhen Hollyland Technology 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 Shenzhen Hollyland Technology Co Ltd filed Critical Shenzhen Hollyland Technology Co Ltd
Priority to CN201611041015.8A priority Critical patent/CN106656221B/en
Publication of CN106656221A publication Critical patent/CN106656221A/en
Application granted granted Critical
Publication of CN106656221B publication Critical patent/CN106656221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/02Transmitters
    • H04B1/04Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/06Receivers
    • H04B1/16Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection

Abstract

The application provides a data transceiving method and device, the data transceiving device comprises: the antenna comprises a control unit, a radio frequency switch, a first antenna and a second antenna, wherein the control unit is connected with the radio frequency switch; when the data transceiver is used as a receiver, the control unit is configured to control the radio frequency switch to be connected to the first antenna, and acquire first data received by the first antenna; when a preset switching condition is reached, controlling the radio frequency switch to be connected to the second type antenna, and acquiring second data received by the second type antenna; and checking the first data and the second data to obtain the first data or the second data which is correctly checked. By the technical scheme, the error rate and the packet loss rate are reduced, the receiving performance is better, the multipath interference is effectively resisted, the reliable transmission of data is realized, the distance between the transmitter and the receiver is increased, the data transmission process is simplified, and the data transmission efficiency is improved.

Description

Data receiving and sending method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transceiving method and apparatus.
Background
Compared with high-frequency Wireless transmission technologies (such as WIFI (Wireless Fidelity), bluetooth (Bluetooth), 4G (4 th-Generation, fourth Generation mobile communication technology), 5G (fifth Generation mobile communication technology), etc.), the low-frequency Wireless transmission technology can obtain a longer transmission distance under the same transmission power, and therefore, the low-frequency Wireless transmission technology has wide application in the fields of Wireless meter reading, voice talkback, etc.
Currently, a typical application of the low frequency wireless transmission technology is the ZigBee (ZigBee) protocol, which has characteristics including short range, low complexity, self-organization, low power consumption, low data rate, and the like. As shown in fig. 1, which is a schematic networking diagram of ZigBee, when data needs to be transmitted between terminal devices, the terminal devices first send the data to a coordinator/router, and the coordinator/router sends the data to another terminal device.
When the terminal device transmits data by adopting the ZigBee protocol, the ZigBee protocol is respectively a physical layer, a media access control layer, a transmission layer, a network layer and an application layer from bottom to top, so when the terminal device transmits data, a very complex protocol layer and a forwarding mechanism are involved, and the data transmission process is complex. Since the transmission range of the ZigBee protocol is 10 m to 100 m, when the distance between the terminal devices is relatively long, intermediate nodes such as a coordinator/router need to be used to increase the transmission distance, and the workload of use and maintenance increases.
Disclosure of Invention
The present application provides a data transceiver device, the data transceiver device includes: the antenna comprises a control unit, a radio frequency switch, a first antenna and a second antenna, wherein the control unit is connected with the radio frequency switch;
when the data-transceiving equipment is acting as a receiver,
the control unit is used for controlling the radio frequency switch to be connected to the first antenna and acquiring first data received by the first antenna; when a preset switching condition is reached, controlling the radio frequency switch to be connected to the second type antenna, and acquiring second data received by the second type antenna; and checking the first data and the second data to obtain the first data or the second data which is correctly checked.
The data transceiving apparatus further comprises: the control unit is connected with the baseband chip, the baseband chip is connected with the power processing unit, and the power processing unit is connected with the radio frequency switch; when the data-transceiving equipment is acting as a receiver,
the first antenna is used for sending the received first data to the power processing unit when the radio frequency switch is connected to the first antenna; the second antenna is used for sending the received second data to the power processing unit when the radio frequency switch is connected to the second antenna;
the power processing unit is configured to amplify the received first data or second data, and send the amplified first data or second data to the baseband chip;
the baseband chip is configured to demodulate the received first data or second data, and send the demodulated first data or second data to the control unit.
When the data-transceiving equipment is acting as a receiver,
the first antenna is further used for judging whether the received first data carries a specific identifier or not when the radio frequency switch is connected to the first antenna; if the first data is carried, the received first data is sent to the power processing unit; if not, discarding the received first data;
the second antenna is further configured to determine whether the received second data carries a specific identifier when the radio frequency switch is connected to the second antenna; if the first data is carried, the received second data is sent to the power processing unit; and if not, discarding the received second data.
When the data-transceiving equipment is acting as a receiver,
in the process of demodulating the received first data or second data, the baseband chip is specifically configured to demodulate the received first data or second data by using an Offset Quadrature Phase Shift Keying (OQPSK) modulation scheme or a Quadrature Phase Shift Keying (QPSK) modulation scheme.
When the data-transceiving equipment is acting as a transmitter,
the control unit is used for controlling the radio frequency switch to be connected to the first antenna or the second antenna, acquiring data to be sent and sending the data to the baseband chip;
the baseband chip is used for modulating the received data by adopting an OQPSK modulation mode or a QPSK modulation mode and sending the modulated data to the power processing unit;
the power processing unit is configured to amplify the received data, send the amplified data to the first antenna when the radio frequency switch is connected to the first antenna, and send the amplified data to the second antenna when the radio frequency switch is connected to the second antenna;
the first antenna or the second antenna is used for sending the received data.
The control unit is further configured to determine a specific identifier and a check identifier corresponding to the acquired data after the data to be sent is acquired, add the specific identifier and the check identifier to the acquired data, and periodically send the modified data to the baseband chip.
The preset switching conditions include: the control unit has acquired the data received by the first antenna; or, the time that the radio frequency switch is connected to the first antenna lasts for a preset time; or the control unit already acquires the data received by the first antenna, and the verification of the data is incorrect; the second type of antenna comprises at least one second antenna, and the second antenna and the first antenna are mutually orthogonal antennas;
the control unit is specifically configured to determine a check identifier corresponding to first data in a process of checking the first data and the second data to obtain correctly checked first data or second data, determine that the first data is correctly checked if the determined check identifier is the same as a check identifier carried in the first data, and select the first data as target data; if the determined check identifier is different from the check identifier carried in the first data, determining that the first data is not checked correctly, and determining a check identifier corresponding to second data; and if the determined check identifier is the same as the check identifier carried in the second data, determining that the second data is checked correctly, and selecting the second data as target data.
The application provides a data transceiving method, which is applied to a data transceiving device, wherein the data transceiving device comprises: the antenna comprises a control unit, a radio frequency switch, a first antenna and a second antenna;
when the data transceiving apparatus is used as a transmitter, the method comprises:
the control unit controls the radio frequency switch to be connected to the first antenna, acquires data to be sent and sends the data to the first antenna, and the first antenna sends the received data; or the control unit controls the radio frequency switch to be connected to the second type antenna, acquires data to be sent, and sends the data to the second type antenna, and the second type antenna sends the received data;
when the data transceiving device is used as a receiver, the method comprises the following steps:
the control unit controls the radio frequency switch to be connected to the first antenna and acquires first data received by the first antenna; when a preset switching condition is reached, the control unit controls the radio frequency switch to be connected to the second type antenna and obtains second data received by the second type antenna; and checking the first data and the second data to obtain the first data or the second data which is checked correctly.
The data transceiving apparatus further comprises: a baseband chip and a power processing unit;
when the data transceiving apparatus is used as a transmitter, the method further comprises:
after the data to be sent is obtained, the control unit determines a specific identifier and a check identifier corresponding to the obtained data, adds the specific identifier and the check identifier to the obtained data, and periodically sends the modified data to the baseband chip;
after receiving the data from the control unit, the baseband chip modulates the received data in an Offset Quadrature Phase Shift Keying (OQPSK) modulation mode or a Quadrature Phase Shift Keying (QPSK) modulation mode, and sends the modulated data to the power processing unit;
the power processing unit amplifies the received data, and when the radio frequency switch is connected to the first antenna, the amplified data is sent to the first antenna, and when the radio frequency switch is connected to the second antenna, the amplified data is sent to the second antenna;
when the data transceiving apparatus acts as a receiver, the method further comprises:
when the radio frequency switch is connected to a first antenna, the first antenna judges whether the received first data carries a specific identifier, if so, the received first data is sent to the power processing unit, and if not, the received first data is discarded; when the radio frequency switch is connected to a second antenna, the second antenna judges whether the received second data carries a specific identifier, if so, the received second data is sent to the power processing unit, and if not, the received second data is discarded;
the power processing unit amplifies the received first data or second data and sends the amplified first data or second data to the baseband chip;
after receiving the first data or the second data from the power processing unit, the baseband chip demodulates the received first data or second data in an OQPSK modulation mode or a QPSK modulation mode, and sends the demodulated first data or second data to the control unit.
The preset switching conditions include: the control unit has acquired the data received by the first antenna; or, the time that the radio frequency switch is connected to the first antenna lasts for a preset time; or the control unit acquires the data received by the first antenna, and the verification of the data is incorrect; the second type of antenna comprises at least one second antenna, and the second antenna and the first antenna are mutually orthogonal antennas;
the process of verifying the first data and the second data by the control unit to obtain correctly verified first data or second data specifically includes: determining a check identifier corresponding to first data, if the determined check identifier is the same as the check identifier carried in the first data, determining that the first data is checked correctly, and selecting the first data as target data; if the determined check identifier is different from the check identifier carried in the first data, determining that the first data is not checked correctly, and determining a check identifier corresponding to second data; and if the determined check identifier is the same as the check identifier carried in the second data, determining that the second data is checked correctly, and selecting the second data as target data.
Based on the above technical solution, in the embodiment of the present application, the receiver receives data through the first antenna and the second antenna in a hierarchical reception manner, and selects target data (i.e., correct data to be checked) from all the received data, so that the receiver can obtain correct data, and can obtain correct data even if multipath interference exists, thereby reducing bit error rate and packet loss rate, having better reception performance, effectively resisting multipath interference, and realizing reliable transmission of data. Moreover, because the anti-interference capability is strong, even if the distance between the transmitter and the receiver (such as 2Km wireless distance) is increased, reliable data receiving can be ensured without using intermediate nodes such as a coordinator/router and the like, so that the method has wider application in the fields of audio transmission (such as voice talkback), internet of things (such as wireless meter reading) and the like. Moreover, when data is transmitted between the transmitter and the receiver, a user-defined data transmission mode can be used without using a ZigBee protocol to transmit the data, and complex protocol layer processing and forwarding mechanisms of a physical layer, a media access control layer, a transmission layer, a network layer, an application layer and the like are avoided, so that the data transmission process is simplified, and the data transmission efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a networking schematic diagram of ZigBee;
fig. 2A to 2C are structural diagrams of a data transmitting and receiving apparatus according to an embodiment of the present application;
FIG. 3A is a schematic illustration of signal transmission in a multipath environment in one embodiment of the present application;
FIG. 3B is a schematic diagram of data transmission in one embodiment of the present application;
fig. 4A to 4D are structural diagrams of a data transmitting/receiving apparatus according to another embodiment of the present application.
Detailed Description
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Depending on the context, moreover, the word "if" used may be interpreted as "at \8230; \8230when" or "when 8230; \823030when" or "in response to a determination".
The embodiment of the present application provides a data transceiver, which may be applied to a terminal device, and the type of the terminal device is not limited, as long as the terminal device has a wireless transmitting function and a wireless receiving function, and all types of terminal devices are within the protection scope of the embodiment of the present application. The data transceiver can be applied to the scenes of low-frequency wireless transmission technology, such as the fields of audio transmission (such as voice talkback), internet of things (such as wireless meter reading) and the like, and the application field of the data transceiver is not limited.
In one example, referring to fig. 2A, a block diagram of the data transceiver is shown, and the data transceiver may include: the control unit 10, the radio frequency switch 20, the first antenna 30, and a second antenna, which may include at least one second antenna 40, and the second antenna 40 and the first antenna 30 may be mutually orthogonal antennas. The number of the first antennas 30 may be one, and the number of the second antennas 40 may be selected according to actual needs, for example, the number of the second antennas 40 may be one or multiple. In fig. 2A, the number of the second antennas 40 is one for example, and other numbers of processes are similar thereto.
In one example, as shown in fig. 2A, the control unit 10 is connected to the rf switch 20, and the rf switch 20 may be connected to the first antenna 30 or each of the second antennas 40 in the second type of antenna.
In one example, the data transceiver can be applied to a terminal device as a transmitter, and based on this, the data transceiver is used to transmit data, which is shown in fig. 2B, which is a schematic diagram of the transmitter transmitting data. In another example, the data transceiver may be applied to a terminal device as a receiver, and based on this, the data transceiver is used to receive data, as shown in fig. 2C, which is a schematic diagram of the receiver receiving data.
The first condition is as follows:
when the data transceiver is used as a transmitter, the control unit 10 is configured to control the rf switch 20 to be connected to the first antenna 30 or a second antenna (e.g. a second antenna 40), and obtain data to be transmitted. If the rf switch 20 is connected to the first antenna 30, the control unit 10 transmits the data to the first antenna 30, and the received data is transmitted by the first antenna 30. If the rf switch 20 is connected to the second type antenna, the control unit 10 transmits the data to the second type antenna, and the second type antenna transmits the received data. For convenience of description, the control unit 10 controls the rf switch 20 to be connected to the first antenna 30 for illustration.
In an example, for a process of "the control unit 10 acquires data to be transmitted", the control unit 10 may acquire the data to be transmitted from an application data source end through a protocol such as USART (Universal Synchronous Asynchronous Receiver Transmitter), SPI (Serial Peripheral Interface), I2C (Integrated Circuit bus), I2S (Inter IC Sound, internal audio bus), and the like, and details of the acquisition mode are omitted. The application data source may be a service end of the terminal device, and the application data source may collect data and provide the data to the control unit 10. For example, for a voice intercom service, the application data source end can acquire voice data; for the wireless meter reading service, the application data source end can acquire meter reading data.
In an example, after the control unit 10 acquires the data to be sent, before the control unit 10 sends the data to the first antenna 30, the control unit 10 may further determine a specific identifier and a check identifier corresponding to the acquired data, and add the specific identifier and the check identifier to the acquired data. Based on this, the control unit 10 may transmit the modified data to the first antenna 30.
In the process of determining the specific identifier corresponding to the data by the control unit 10, the control unit 10 may determine the specific identifier of the transmitter, where the specific identifier is used as the identifier of the transmitter, such as 123456, and the specific identifier is a predefined identifier between the transmitter and the receiver (for example, the specific identifier is configured on the transmitter and the receiver in advance, or the transmitter notifies the specific identifier to the receiver, and the specific predefined manner is not limited). Also, the receiver may upload data carrying a specific identifier to the control unit 10, and not upload data not carrying a specific identifier to the control unit 10. Therefore, even if the antenna of the receiver receives a large amount of data, the large amount of data is not all uploaded to the control unit 10, but whether the data carries the predetermined characteristic identifier or not is judged firstly, if yes, the data is uploaded to the control unit 10, and if not, the data is not uploaded to the control unit 10, so that the control unit 10 is prevented from processing useless data.
In the process of determining the Check identifier corresponding to the data by the control unit 10, after the control unit 10 acquires the data to be sent, the data to be sent may be used as original data, and the original data is calculated by using a preset algorithm (for example, a Cyclic Redundancy Check (CRC) algorithm, which does not limit the type of the preset algorithm) to obtain the Check identifier. The preset algorithm is an algorithm predetermined between the transmitter and the receiver (for example, the preset algorithm is configured on the transmitter and the receiver in advance, or the transmitter notifies the receiver of the preset algorithm, or the receiver notifies the transmitter of the preset algorithm, and the like, and the specific predetermined manner is not limited), that is, the transmitter and the receiver use the same preset algorithm.
In the process of "the control unit 10 adds the specific identifier and the check identifier to the acquired data", after the control unit 10 acquires the data to be transmitted, the data to be transmitted may be used as original data, and a layer of packet header is encapsulated outside the original data, where the packet header includes the specific identifier and the check identifier. Compared with the traditional low-frequency wireless transmission technology, the ZigBee protocol is taken as an example, and the ZigBee protocol relates to a physical layer, a media access control layer, a transmission layer, a network layer, an application layer and the like, all the layers can process original data, and relate to a complex protocol layer and a forwarding mechanism, and finally transmitted data comprise the original data and a large amount of encapsulation contents, so that transmission bandwidth is wasted. In the example of the present application, a self-defined communication protocol (which may be designed according to actual requirements of a user and is a wireless data interaction protocol) may be adopted, as long as the communication protocol can support one-to-one communication between a transmitter and a receiver, such as the manner of encapsulating a specific identifier outside the original data and checking the identifier as described above, so that the finally sent data includes the original data and a small amount of encapsulated content, thereby saving transmission bandwidth. For example, in the conventional manner, 2M data is transmitted, including 1.6M original data and 0.4M packaged content, whereas in the example of the present application, 1.9M original data and 0.1M packaged content are included, and obviously, more original data can be transmitted compared to the conventional manner.
In one example, for the process of "the control unit 10 sends the modified data (data carrying the specific identifier and the check identifier) to the first antenna 30", the control unit 10 may periodically send the modified data to the first antenna 30. For example, the control unit 10 may transmit data to the first antenna 30 once every N seconds, and the first antenna 30 may transmit data once every N seconds. Alternatively, the control unit 10 may transmit data to the first antenna 30 once every N seconds, the first antenna 30 may transmit data once every N seconds, and the control unit 10 may not transmit data after receiving an acknowledgement message for the data. Alternatively, the control unit 10 may transmit data to the first antenna 30 once every N seconds, the first antenna 30 may transmit data once every N seconds, and the control unit 10 may transmit data only M times (2 or more).
Case two:
when the data transceiver is used as a receiver, the control unit 10 is configured to control the rf switch 20 to be connected to the first antenna 30, and obtain the first data received by the first antenna 30. When the preset switching condition is reached, the control unit 10 is further configured to control the rf switch 20 to connect to a second type of antenna (e.g., a second antenna 40), and obtain second data received by the second type of antenna. Further, the control unit 10 may verify the first data and the second data to obtain the first data or the second data with correct verification.
In one example, since the transmitter periodically transmits data, both the first antenna 30 and the second antenna can receive the data transmitted by the transmitter, the data received by the first antenna 30 is referred to as first data, and the data received by the second antenna is referred to as second data. Based on this, when the rf switch 20 is connected to the first antenna 30, the first antenna 30 is further configured to determine whether the received first data carries a specific identifier (i.e. a specific identifier agreed in advance between the transmitter and the receiver); if the first data is carried, the first antenna 30 may send the received first data to the control unit 10, so that the control unit 10 obtains the first data received by the first antenna 30; if not, the first antenna 30 may discard the received first data. In addition, when the rf switch 20 is connected to the second type antenna, the second type antenna is further configured to determine whether the received second data carries a specific identifier; if the second type of antenna carries the second data, the second type of antenna may send the received second data to the control unit 10, so that the control unit 10 obtains the second data received by the second type of antenna; if not, the second type of antenna may discard the received second data.
In one example, the preset switching conditions may include, but are not limited to: the control unit 10 has acquired the data received by the first antenna 30; alternatively, the time that the radio frequency switch 20 is connected to the first antenna 30 has continued for a preset time; alternatively, the control unit 10 has already acquired the data received by the first antenna 30, and the verification of the data is incorrect. For example, taking the example that the second type of antenna includes a second antenna, the control unit 10 first controls the rf switch 20 to be connected to the first antenna 30, and if it has been acquired that the data received by the first antenna 30/the time that the rf switch 20 is connected to the first antenna 30 has lasted for a preset time, the control unit 10 controls the rf switch 20 to be connected to the second antenna 40. Taking the second type of antenna including two second antennas as an example, the control unit 10 first controls the rf switch 20 to be connected to the first antenna 30, if the time that the data/rf switch 20 received by the first antenna 30 is connected to the first antenna 30 lasts for the preset time, the control unit 10 controls the rf switch 20 to be connected to the first second antenna 40, and if the time that the data/rf switch 20 received by the first second antenna 40 is connected to the first second antenna 40 lasts for the preset time, the control unit 10 controls the rf switch 20 to be connected to the second antenna 40.
In an example, the process of "the control unit 10 checks the first data and the second data to obtain the correct first data or second data" may include, but is not limited to, the following ways: the control unit 10 determines a check identifier corresponding to the first data, and if the determined check identifier is the same as the check identifier carried in the first data, the control unit 10 determines that the first data is verified correctly, and selects the first data as the target data. If the determined check mark is different from the check mark carried in the first data, the control unit 10 determines that the first data is not verified correctly, and determines a check mark corresponding to the second data. If the determined check mark is the same as the check mark carried in the second data, the control unit 10 determines that the second data is verified correctly, and selects the second data as the target data. If the determined check mark is different from the check mark carried in the second data, the control unit 10 may discard the first data and the second data, in which case the control unit 10 may not be able to select the target data.
It should be noted that, when the second type antenna includes a plurality of second antennas, the number of the second data is multiple, and the number of the second data is the same as the number of the second antennas. The processing of the second data is processing of the second data received by each second antenna, and the specific processing is not described herein again.
In the process of determining the check identifier corresponding to the first data/the second data by the control unit 10, after the control unit 10 acquires the first data/the second data, the control unit 10 may remove a header (such as the specific identifier and the check identifier) encapsulated in the first data/the second data, and use the remaining part as the original data. Then, the control unit 10 calculates the original data by using a preset algorithm (such as a CRC algorithm, without limitation on the type of the preset algorithm), and obtains a check mark. The preset algorithm is an algorithm agreed in advance between the transmitter and the receiver, that is, the transmitter and the receiver use the same preset algorithm.
In addition, the control unit 10 may further parse the check identifier carried by the first data/second data from the first data/second data, and then compare whether the check identifier determined by itself and the check identifier carried by the first data/second data are the same; if the two are the same, it can be determined that the first data/second data are verified correctly, and if the two are different, it can be determined that the first data/second data are verified incorrectly.
In one example, after selecting the target data (the first data or the second data), the control unit 10 may send the target data to the application data source end through USART, SPI, I2C, I2S, or other protocols. The application data source end may be a service end of the terminal device, and the application data source end may perform service processing by using the target data. For example, for a voice intercom service, the source end of the application data may perform language processing by using the target data; for the wireless meter reading service, the application data source end can utilize the target data to process the meter reading result. For the service processing process, details are not described in the embodiment of the present application.
In one example, for the above first case and the second case, the control Unit 10 may include, but is not limited to, an MCU (micro controller Unit), and the type of the control Unit 10 is not limited.
As shown in fig. 3A, a signal transmission diagram of a multipath environment exists, and a radio frequency signal of the multipath environment has multipath fading. Referring to fig. 3A, the antenna of the receiver receives a superposition of multiple signals, and because the distance of the electric wave passing through each path is different, the time of arrival of the electric wave of each path at the receiver is different, and the phase is also different. Based on this, if multiple signals with different phases are superimposed at the receiving end, the superposition of the multiple signals may be in-phase superposition, in which the signals are strengthened, or in-phase superposition, in which the signals are weakened. Thus, the amplitude of the signal received by the antenna of the receiver changes sharply, i.e., multipath fading occurs. Multipath fading, as a multiplicative interference, severely affects the performance of the communication system, and can cause severe packet loss and bit errors.
In a conventional method, a transmitter transmits data through an antenna, and a receiver receives data through an antenna, so that, in order to avoid the problem of signal interference in a multipath environment, the distance between the transmitter and the receiver is relatively short, for example, under a ZigBee protocol, the distance between the transmitter and the receiver is 10 meters to 100 meters, so that the signal interference in the multipath environment can be reduced, but there is a problem that the distance between the transmitter and the receiver is short.
In the embodiment of the present application, the transmitter periodically transmits data through one antenna (i.e., repeatedly transmits data by using time diversity), and the receiver receives data through at least two antennas (i.e., hierarchically receives data by using space diversity), so that interference of a multipath environment is effectively resisted, and reliable transmission of data is achieved. As shown in fig. 3B, the transmitter repeatedly transmits the same data, and after the receiver receives the data through one antenna (i.e., a first antenna), the receiver switches the rf switch to another antenna (i.e., a second antenna orthogonal to the first antenna), and receives the data through the other antenna. Because the transmitter repeatedly transmits data, the receiver receives a plurality of data through the first antenna and the second antenna and selects correct target data from the plurality of data, so that the error rate and the packet loss rate can be reduced, and the signal interference problem in a multipath environment is avoided. In the above manner, since the signal interference problem of the multipath environment is not avoided by reducing the distance between the transmitter and the receiver, the distance between the transmitter and the receiver can be made longer, such as a wireless distance of 2 Km.
Based on the above technical solution, in the embodiment of the present application, the receiver receives data through the first antenna and the second antenna in a hierarchical reception manner, and selects target data (i.e., correct data to be checked) from all the received data, so that the receiver can obtain correct data, and can obtain correct data even if multipath interference exists, thereby reducing bit error rate and packet loss rate, having better reception performance, effectively resisting multipath interference, and realizing reliable transmission of data. Moreover, due to the strong anti-interference capability, even if the distance between the transmitter and the receiver (such as 2Km wireless distance) is increased, reliable data receiving can be ensured without using intermediate nodes such as a coordinator/router and the like, so that the method and the device have wider application in the fields of audio transmission (such as voice talkback), internet of things (such as wireless meter reading) and the like. Moreover, when data is transmitted between the transmitter and the receiver, a user-defined data transmission mode can be used without using a ZigBee protocol to transmit the data, and complex protocol layer processing and forwarding mechanisms of a physical layer, a media access control layer, a transmission layer, a network layer, an application layer and the like are avoided, so that the data transmission process is simplified, and the data transmission efficiency is improved.
The embodiment of the present application further provides another data transceiver, which can be applied to a terminal device, and the type of the terminal device is not limited as long as the terminal device has a wireless transmitting function and a wireless receiving function, and all types of terminal devices are within the protection scope of the embodiment of the present application. The data transceiver can be applied to the scenes of low-frequency wireless transmission technology, such as the fields of audio transmission (such as voice talkback), internet of things (such as wireless meter reading) and the like, and the application field of the data transceiver is not limited.
In one example, referring to fig. 4A, a block diagram of the data transceiver is shown, and the data transceiver may include: the radio frequency switch 20, the first antenna 30, and a second antenna, the second antenna may include at least one second antenna 40, and the second antenna 40 and the first antenna 30 may be mutually orthogonal antennas. Moreover, the data transmitting/receiving apparatus further includes: a baseband chip 50 and a power processing unit 60.
The number of the first antennas 30 may be one, and the number of the second antennas 40 may be selected according to actual needs, for example, the number of the second antennas 40 may be one or multiple. In fig. 4A, the number of the second antennas 40 is one, and the other number of processes is similar to this.
In one example, the control unit 10 may include, but is not limited to, an MCU. The baseband chip 50 may include, but is not limited to, a radio frequency baseband chip, such as a SUB1G (SUB-1 GHz) baseband chip, for example, the baseband chip 50 may be an AT86RF212B baseband chip. The Power processing unit 60 may include, but is not limited to, a PA (Power Amplifier) or an LNA (Low Noise Amplifier), for example, when the data transceiver device is used as a transmitter, the Power processing unit 60 may be the PA, and when the data transceiver device is used as a receiver, the Power processing unit 60 may be the LNA.
In an example, the type of the baseband chip is not limited, and may be arbitrarily selected according to actual needs, for example, the baseband chip may use an OQPSK (Offset Quadrature Phase Shift keying) modulation scheme or a QPSK (Quadrature Phase Shift keying) modulation scheme to perform modulation and demodulation processing on data, such as an AT86RF212B baseband chip. Of course, the baseband chip is not limited to adopt the OQPSK modulation scheme or the QPSK modulation scheme, and may also adopt other modulation schemes such as FSK (Frequency Shift Keying), BPSK (Binary Phase Shift Keying), and the like, which is not limited thereto.
The baseband chip can work in a 700MHz-1000MHz frequency band, the radio frequency bandwidth of the baseband chip is 1MHz, reliable data transmission at a distance of hundreds of meters to thousands of meters can be realized, medium and long distance data transmission can be realized, and the baseband chip has wide application value in markets of wireless voice, internet of things and the like.
In one example, as shown in fig. 4A, the control unit 10 is connected to the rf switch 20, and the control unit 10 is connected to the baseband chip 50; the radio frequency switch 20 is connected to the first antenna 30 or to each second antenna 40 of the second type of antenna; the baseband chip 50 is connected with the power processing unit 60; the power processing unit 60 is connected to the rf switch 20. In another example, as shown in fig. 4B, the control unit 10 is connected to the rf switch 20, the control unit 10 is connected to the baseband chip 50, and the control unit 10 is connected to the power processing unit 60; the radio frequency switch 20 is connected to the first antenna 30 or to each second antenna 40 of the second type of antenna; the baseband chip 50 is connected with the power processing unit 60; the power processing unit 60 is connected to the rf switch 20.
In an example, the data transceiver can be used as a transmitter applied to a terminal device, and based on this, the data transceiver is used to transmit data, which is shown in fig. 4C, which is a schematic diagram of the transmitter transmitting data. In another example, the data transceiver can be used as a receiver in a terminal device, and based on this, the data transceiver is used to receive data, as shown in fig. 4D, which is a schematic diagram of the receiver receiving data.
The first condition is as follows:
when the data transceiver is used as a transmitter, the control unit 10 is configured to control the rf switch 20 to be connected to the first antenna 30 or a second antenna (e.g., a second antenna 40), and to obtain data to be transmitted and send the obtained data to the baseband chip 50. The baseband chip 50 is configured to perform modulation processing on the received data and send the modulated data to the power processing unit 60. The power processing unit 60 is configured to amplify the received data, and if the rf switch 20 is connected to the first antenna 30, the power processing unit 60 transmits the amplified data to the first antenna 30, and the first antenna 30 transmits the received data. If the rf switch 20 is connected to the second type antenna, the power processing unit 60 sends the amplified data to the second type antenna, and the second type antenna sends the received data. For convenience of description, the control unit 10 controls the rf switch 20 to be connected to the first antenna 30 for illustration.
In an example, for a process of "the control unit 10 acquires data to be sent", the control unit 10 may acquire the data to be sent from the application data source end through USART, SPI, I2C, I2S, and other protocols. The application data source may be a service end of the terminal device, and the application data source may collect data and provide the data to the control unit 10. For example, for a voice talkback service, the source end of the application data may acquire voice data; for the wireless meter reading service, the application data source end can acquire meter reading data.
In an example, after the control unit 10 acquires the data to be sent, before the control unit 10 sends the data to the baseband chip 50, the control unit 10 may further determine a specific identifier and a check identifier corresponding to the acquired data, and add the specific identifier and the check identifier to the acquired data. Based on this, the control unit 10 may transmit the modified data to the baseband chip 50.
In this case, for the process of "the control unit 10 determines the specific identifier corresponding to the data", the control unit 10 may determine the specific identifier of the transmitter, which is used as the identifier of the transmitter, and the specific identifier is a pre-agreed identifier between the transmitter and the receiver. Also, the receiver may upload data carrying a specific identifier to the control unit 10, and not upload data not carrying a specific identifier to the control unit 10. Therefore, even if the antenna of the receiver receives a large amount of data, the large amount of data is not all sent to the control unit 10, but whether the data carries the predetermined characteristic identifier is judged firstly, if so, the data is sent to the control unit 10, and if not, the data is not sent to the control unit 10, so that the control unit 10 is prevented from processing useless data.
In the process of determining the check identifier corresponding to the data by the control unit 10, after the control unit 10 acquires the data to be sent, the data to be sent may be used as original data, and a preset algorithm (such as a CRC algorithm) is used to calculate the original data to obtain the check identifier. The preset algorithm is an algorithm agreed in advance between the transmitter and the receiver, that is, the transmitter and the receiver use the same preset algorithm.
In the process of "the control unit 10 adds the specific identifier and the check identifier to the acquired data", after the control unit 10 acquires the data to be transmitted, the data to be transmitted may be used as original data, and a layer of packet header is encapsulated outside the original data, where the packet header includes the specific identifier and the check identifier. Compared with the traditional low-frequency wireless transmission technology, the ZigBee protocol is taken as an example, and the ZigBee protocol relates to a physical layer, a media access control layer, a transmission layer, a network layer, an application layer and the like, all the layers can process original data, and relate to a complex protocol layer and a forwarding mechanism, and finally transmitted data comprise the original data and a large amount of encapsulation contents, so that transmission bandwidth is wasted. In the example of the present application, a customized communication protocol (which may be designed according to actual needs of a user and is a wireless data interaction protocol) may be adopted, as long as the communication protocol can support one-to-one communication between a transmitter and a receiver, such as the manner of encapsulating a specific identifier and checking the identifier outside the original data, so that the finally transmitted data includes the original data and a small amount of encapsulated content, thereby saving transmission bandwidth. For example, in the conventional manner, 2M data is transmitted, including 1.6M original data and 0.4M packaged content, whereas in the example of the present application, 1.9M original data and 0.1M packaged content are included, and obviously, more original data can be transmitted compared to the conventional manner.
In one example, for a process of "the control unit 10 sends modified data (data carrying a specific identifier and a check identifier) to the baseband chip 50", the control unit 10 may periodically send the modified data to the baseband chip 50. For example, the control unit 10 may transmit data to the baseband chip 50 once every N seconds, and the baseband chip 50 transmits data once every N seconds, so that the first antenna 30 will transmit data once every N seconds. Alternatively, the control unit 10 may send data to the baseband chip 50 every N seconds, and the baseband chip 50 sends data every N seconds, so that the first antenna 30 will send data every N seconds, and the control unit 10 does not send data any more after receiving an acknowledgement message for the data. Alternatively, the control unit 10 may transmit data to the baseband chip 50 every N seconds, and the baseband chip 50 may transmit data every N seconds, so that the first antenna 30 will transmit data every N seconds, and the control unit 10 may transmit data only M times (2 or more).
In an example, for the process of "the baseband chip 50 performs modulation processing on the received data", the baseband chip 50 may perform modulation processing on the received data by using an OQPSK modulation scheme or a QPSK modulation scheme. The baseband chip 50 may also perform encoding processing on the data, and send the data after modulation processing and encoding processing to the power processing unit 60. The manner of performing modulation processing and coding processing on data by the baseband chip 50 may be arbitrarily selected according to actual needs, and is not described herein again.
In an example, for a process of "the power processing unit 60 performs amplification processing on received data", the power processing unit 60 may perform amplification processing on a signal of the data, and a specific amplification factor may be arbitrarily selected according to actual needs, and the process of the amplification processing is not limited, and is not described in detail herein.
And a second condition:
when the data transceiver is used as a receiver, the control unit 10 can control the rf switch 20 to be connected to the first antenna 30, and when a preset switching condition is met, the control unit 10 can also control the rf switch 20 to be connected to a second antenna (e.g. a second antenna 40). When the rf switch 20 is connected to the first antenna 30, the first antenna 30 transmits the received first data to the power processing unit 60; when the rf switch 20 is connected to the second type antenna, the second type antenna transmits the received second data to the power processing unit 60. The power processing unit 60 is configured to amplify the received first data or second data, and send the amplified first data or second data to the baseband chip 50. The baseband chip 50 is configured to perform demodulation processing on the received first data or second data, and send the demodulated first data or second data to the control unit 10. After the above processing, the control unit 10 may acquire the first data received by the first antenna 30, acquire the second data received by the second type of antenna, and check the first data and the second data to obtain the first data or the second data that is correctly checked.
In one example, since the transmitter periodically transmits data, both the first antenna 30 and the second antenna can receive the data transmitted by the transmitter, the data received by the first antenna 30 is referred to as first data, and the data received by the second antenna is referred to as second data. Based on this, when the rf switch 20 is connected to the first antenna 30, the first antenna 30 is further configured to determine whether the received first data carries a specific identifier (i.e. a specific identifier agreed in advance between the transmitter and the receiver); if the data is carried, the first antenna 30 may send the received first data to the power processing unit 60, and at this time, the control unit 10 acquires the first data received by the first antenna 30; if not, the first antenna 30 may discard the received first data. In addition, when the rf switch 20 is connected to the second type antenna, the second type antenna is further configured to determine whether the received second data carries a specific identifier; if the second type of antenna carries the second data, the second type of antenna may send the received second data to the power processing unit 60, and at this time, the control unit 10 acquires the second data received by the second type of antenna; and if not, the second type antenna discards the received second data.
In an example, for a process of "the power processing unit 60 performs amplification processing on the received first data or second data", the power processing unit 60 may perform amplification processing on a signal of the first data or the second data, and a specific amplification factor may be arbitrarily selected according to actual needs as long as the signal of the first data or the second data can be amplified, which is not described in detail herein.
In an example, for a process that the baseband chip 50 is configured to perform demodulation processing on the received first data or second data, the baseband chip 50 may perform demodulation processing on the received first data or second data by using an OQPSK modulation scheme or a QPSK modulation scheme. The baseband chip 50 may also perform a decoding process on the received first data or second data, and send the first data or second data after the demodulation process and the decoding process to the control unit 10. The manner of demodulating and decoding the received first data or second data by the baseband chip 50 is not described herein again.
In one example, the preset switching condition may include, but is not limited to: the control unit 10 has acquired the data received by the first antenna 30; alternatively, the time that the radio frequency switch 20 is connected to the first antenna 30 has continued for a preset time; alternatively, the control unit 10 has already acquired the data received by the first antenna 30, and the verification of the data is incorrect. For example, taking the example that the second type of antenna includes a second antenna, the control unit 10 first controls the rf switch 20 to be connected to the first antenna 30, and if it has been acquired that the data received by the first antenna 30/the time that the rf switch 20 is connected to the first antenna 30 has lasted for a preset time, the control unit 10 controls the rf switch 20 to be connected to the second antenna 40. Taking the example that the second type of antenna includes two second antennas, the control unit 10 first controls the rf switch 20 to be connected to the first antenna 30, if the time that the data/rf switch 20 received by the first antenna 30 has been acquired to be connected to the first antenna 30 lasts for the preset time, the control unit 10 controls the rf switch 20 to be connected to the first second antenna 40, and if the time that the data/rf switch 20 received by the first second antenna 40 has been acquired to be connected to the first second antenna 40 lasts for the preset time, the control unit 10 controls the rf switch 20 to be connected to the second antenna 40.
In an example, the process of "the control unit 10 checks the first data and the second data to obtain the correct first data or second data" may further include, but is not limited to, the following manners: the control unit 10 determines a check identifier corresponding to the first data, and if the determined check identifier is the same as the check identifier carried in the first data, the control unit 10 determines that the first data is verified correctly, and selects the first data as the target data. If the determined check mark is different from the check mark carried in the first data, the control unit 10 determines that the first data is not verified correctly, and determines a check mark corresponding to the second data. If the determined check mark is the same as the check mark carried in the second data, the control unit 10 determines that the second data is verified correctly, and selects the second data as the target data. If the determined check mark is different from the check mark carried in the second data, the control unit 10 may discard the first data and the second data, in which case the control unit 10 may not be able to select the target data.
It should be noted that, when the second type of antenna includes a plurality of second antennas, the number of the second data is multiple, and the number of the second data is the same as the number of the second antennas. The processing for the second data is processing for the second data received by each second antenna, and specific processing is not described herein again.
In the process of determining the check identifier corresponding to the first data/the second data by the control unit 10, after the control unit 10 acquires the first data/the second data, the control unit 10 may remove the headers (such as the specific identifier and the check identifier) encapsulated in the first data/the second data, and use the remaining part as the original data. Then, the control unit 10 calculates the original data by using a preset algorithm (such as a CRC algorithm, without limitation on the type of the preset algorithm) to obtain a verification flag. The preset algorithm is an algorithm agreed in advance between the transmitter and the receiver, that is, the transmitter and the receiver use the same preset algorithm.
Further, the control unit 10 may further parse the check identifier carried by the first data/second data from the first data/second data, and then compare whether the check identifier determined by itself and the check identifier carried by the first data/second data are the same; if the two are the same, it can be determined that the first data/second data are verified correctly, and if the two are different, it can be determined that the first data/second data are verified incorrectly.
In one example, after selecting the target data (the first data or the second data), the control unit 10 may send the target data to the application data source end through USART, SPI, I2C, I2S, or the like. The application data source end may be a service end of the terminal device, and the application data source end may perform service processing by using the target data. For example, for a voice intercom service, the source end of the application data may perform language processing by using the target data; for the wireless meter reading service, the application data source end can utilize the target data to process the meter reading result. For the service processing process, details are not described in this embodiment.
In the embodiment of the application, the transmitter periodically transmits data through one antenna (namely, time diversity is adopted, and data are repeatedly transmitted), and the receiver receives data through at least two antennas (namely, spatial diversity is adopted, and data are received in a grading manner), so that the interference of a multipath environment is effectively resisted, and the reliable transmission of the data is realized. For example, the transmitter repeatedly transmits the same data, and after the receiver receives the data through one antenna (i.e., a first antenna), the receiver switches the rf switch to another antenna (i.e., a second antenna orthogonal to the first antenna) to receive the data through the other antenna. Because the transmitter repeatedly transmits data, the receiver receives a plurality of data through the first antenna and the second antenna and selects correct target data from the plurality of data, so that the error rate and the packet loss rate can be reduced, and the problem of signal interference in a multipath environment is avoided. In the above manner, since the signal interference problem of the multipath environment is not avoided by reducing the distance between the transmitter and the receiver, the distance between the transmitter and the receiver can be made longer, such as a wireless distance of 2 Km.
Based on the above technical solution, in the embodiment of the present application, the receiver receives data through the first antenna and the second antenna in a hierarchical reception manner, and selects target data (i.e., correct data to be checked) from all the received data, so that the receiver can obtain correct data, and can obtain correct data even if multipath interference exists, thereby reducing bit error rate and packet loss rate, having better reception performance, effectively resisting multipath interference, and realizing reliable transmission of data. Moreover, due to the strong anti-interference capability, even if the distance between the transmitter and the receiver (such as 2Km wireless distance) is increased, reliable data receiving can be ensured without using intermediate nodes such as a coordinator/router and the like, so that the method and the device have wider application in the fields of audio transmission (such as voice talkback), internet of things (such as wireless meter reading) and the like. Moreover, when data is transmitted between the transmitter and the receiver, a user-defined data transmission mode can be used without using a ZigBee protocol to transmit the data, and complex protocol layer processing and forwarding mechanisms of a physical layer, a media access control layer, a transmission layer, a network layer, an application layer and the like are avoided, so that the data transmission process is simplified, and the data transmission efficiency is improved.
Based on the same application concept as the data transceiver, the embodiment of the present application further provides a data transceiving method, where the data transceiving method may be applied to a data transceiver, and the data transceiver may include: the antenna comprises a control unit, a radio frequency switch, a first antenna and a second antenna;
when the data transceiving device is used as a transmitter, the method comprises the following steps:
the control unit controls the radio frequency switch to be connected to the first antenna, acquires data to be sent and sends the data to the first antenna, and the first antenna sends the received data; or the control unit controls the radio frequency switch to be connected to the second type antenna, acquires data to be sent, and sends the data to the second type antenna, and the second type antenna sends the received data;
when the data transceiving device is used as a receiver, the method comprises the following steps:
the control unit controls the radio frequency switch to be connected to the first antenna and acquires first data received by the first antenna; when a preset switching condition is reached, the control unit controls the radio frequency switch to be connected to the second type antenna and obtains second data received by the second type antenna; and checking the first data and the second data to obtain the first data or the second data which is correctly checked.
In one example, the data transceiving apparatus further comprises: a baseband chip and a power processing unit;
when the data transceiving apparatus is used as a transmitter, the method further comprises:
after the data to be sent is obtained, the control unit determines a specific identifier and a check identifier corresponding to the obtained data, adds the specific identifier and the check identifier to the obtained data, and periodically sends the modified data to the baseband chip;
after receiving the data from the control unit, the baseband chip modulates the received data in an Offset Quadrature Phase Shift Keying (OQPSK) modulation mode or a Quadrature Phase Shift Keying (QPSK) modulation mode, and sends the modulated data to the power processing unit;
the power processing unit amplifies the received data, and sends the amplified data to the first antenna when the radio frequency switch is connected to the first antenna, and sends the amplified data to the second antenna when the radio frequency switch is connected to the second antenna;
when the data transceiving apparatus acts as a receiver, the method further comprises:
when the radio frequency switch is connected to a first antenna, the first antenna judges whether the received first data carries a specific identifier, if so, the received first data is sent to the power processing unit, and if not, the received first data is discarded; when the radio frequency switch is connected to a second antenna, the second antenna judges whether the received second data carries a specific identifier, if so, the received second data is sent to the power processing unit, and if not, the received second data is discarded;
the power processing unit amplifies the received first data or second data and sends the amplified first data or second data to the baseband chip;
after receiving the first data or the second data from the power processing unit, the baseband chip demodulates the received first data or the received second data in an OQPSK modulation mode or a QPSK modulation mode, and sends the demodulated first data or the demodulated second data to the control unit.
In an example, the preset switching condition may specifically include but is not limited to: the control unit has acquired the data received by the first antenna; or, the time that the radio frequency switch is connected to the first antenna lasts for a preset time; or the control unit already acquires the data received by the first antenna, and the verification of the data is incorrect; in addition, the second type of antenna may include at least one second antenna, and the second antenna and the first antenna are mutually orthogonal antennas.
In one example, the process of the control unit verifying the first data and the second data to obtain the correct first data or second data may include, but is not limited to:
the control unit determines a check identifier corresponding to first data, if the determined check identifier is the same as the check identifier carried in the first data, the first data is determined to be checked correctly, and the first data is selected as target data; if the determined check identifier is different from the check identifier carried in the first data, determining that the first data is not checked correctly, and determining a check identifier corresponding to second data;
and if the determined check identifier is the same as the check identifier carried in the second data, the control unit determines that the second data is checked correctly, and selects the second data as target data.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (which may include, but is not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A data transmission/reception apparatus, comprising: the antenna comprises a control unit, a radio frequency switch, a first antenna and a second antenna, wherein the control unit is connected with the radio frequency switch;
when the data-transceiving equipment is acting as a receiver,
the control unit is used for controlling the radio frequency switch to be connected to the first antenna and acquiring first data received by the first antenna; when a preset switching condition is reached, controlling the radio frequency switch to be connected to the second type antenna, and acquiring second data received by the second type antenna; verifying the first data and the second data to obtain first data or second data which are correctly verified;
the preset switching condition comprises the following steps: the control unit already acquires the data received by the first antenna, and the verification of the data is incorrect.
2. The data-transceiving apparatus according to claim 1, further comprising: the control unit is connected with the baseband chip, the baseband chip is connected with the power processing unit, and the power processing unit is connected with the radio frequency switch;
when the data-transceiving equipment is acting as a receiver,
the first antenna is used for sending the received first data to the power processing unit when the radio frequency switch is connected to the first antenna; the second antenna is used for sending the received second data to the power processing unit when the radio frequency switch is connected to the second antenna;
the power processing unit is configured to amplify the received first data or second data, and send the amplified first data or second data to the baseband chip;
the baseband chip is configured to demodulate the received first data or second data, and send the demodulated first data or second data to the control unit.
3. The data-transceiving apparatus according to claim 2,
when the data-transceiving equipment is acting as a receiver,
the first antenna is further used for judging whether the received first data carries a specific identifier or not when the radio frequency switch is connected to the first antenna; if the first data is carried, the received first data is sent to the power processing unit; if not, discarding the received first data;
the second antenna is further configured to determine whether the received second data carries a specific identifier when the radio frequency switch is connected to the second antenna; if the first data is carried, the received second data is sent to the power processing unit; and if not, discarding the received second data.
4. The data-transceiving apparatus according to claim 2,
when the data-transceiving equipment is acting as a receiver,
in the process of demodulating the received first data or second data, the baseband chip is specifically configured to demodulate the received first data or second data by using an Offset Quadrature Phase Shift Keying (OQPSK) modulation scheme or a Quadrature Phase Shift Keying (QPSK) modulation scheme.
5. The data-transceiving apparatus according to claim 2,
when the data-transceiving equipment is acting as a transmitter,
the control unit is used for controlling the radio frequency switch to be connected to the first antenna or the second antenna, acquiring data to be sent and sending the data to the baseband chip;
the baseband chip is used for modulating the received data by adopting an OQPSK modulation mode or a QPSK modulation mode and sending the modulated data to the power processing unit;
the power processing unit is configured to amplify the received data, send the amplified data to the first antenna when the radio frequency switch is connected to the first antenna, and send the amplified data to the second antenna when the radio frequency switch is connected to the second antenna;
the first antenna or the second antenna is used for sending the received data.
6. The data-transceiving apparatus of claim 5,
the control unit is further configured to determine a specific identifier and a check identifier corresponding to the acquired data after the data to be sent is acquired, add the specific identifier and the check identifier to the acquired data, and periodically send the modified data to the baseband chip.
7. The data transceiver device of claim 1, wherein the second antenna comprises at least one second antenna, and the second antenna and the first antenna are mutually orthogonal antennas;
the control unit is specifically configured to determine a check identifier corresponding to the first data in a process of checking the first data and the second data to obtain correctly checked first data or second data, determine that the first data is correctly checked if the determined check identifier is the same as a check identifier carried in the first data, and select the first data as target data; if the determined check identifier is different from the check identifier carried in the first data, determining that the first data is not checked correctly, and determining a check identifier corresponding to second data; and if the determined check identifier is the same as the check identifier carried in the second data, determining that the second data is checked correctly, and selecting the second data as target data.
8. A data transceiving method is applied to a data transceiving device, and the data transceiving device comprises: the antenna comprises a control unit, a radio frequency switch, a first antenna and a second antenna;
when the data transceiving device is used as a transmitter, the method comprises the following steps:
the control unit controls the radio frequency switch to be connected to the first antenna, acquires data to be sent and sends the data to the first antenna, and the first antenna sends the received data; or the control unit controls the radio frequency switch to be connected to the second type antenna, acquires data to be sent, and sends the data to the second type antenna, and the second type antenna sends the received data;
when the data transceiving device is used as a receiver, the method comprises the following steps:
the control unit controls the radio frequency switch to be connected to the first antenna and acquires first data received by the first antenna; when a preset switching condition is reached, the control unit controls the radio frequency switch to be connected to the second type antenna and obtains second data received by the second type antenna; verifying the first data and the second data to obtain first data or second data which are correctly verified;
the preset switching conditions include: the control unit already acquires the data received by the first antenna, and the verification of the data is incorrect.
9. The method of claim 8,
the data transceiving apparatus further comprises: a baseband chip and a power processing unit;
when the data transceiving apparatus is used as a transmitter, the method further comprises:
after the data to be sent is obtained, the control unit determines a specific identifier and a check identifier corresponding to the obtained data, adds the specific identifier and the check identifier to the obtained data, and periodically sends the modified data to the baseband chip;
after receiving the data from the control unit, the baseband chip modulates the received data by adopting an Offset Quadrature Phase Shift Keying (OQPSK) modulation mode or a Quadrature Phase Shift Keying (QPSK) modulation mode, and sends the modulated data to the power processing unit;
the power processing unit amplifies the received data, and sends the amplified data to the first antenna when the radio frequency switch is connected to the first antenna, and sends the amplified data to the second antenna when the radio frequency switch is connected to the second antenna;
when the data transceiving apparatus acts as a receiver, the method further comprises:
when the radio frequency switch is connected to a first antenna, the first antenna judges whether the received first data carries a specific identifier, if so, the received first data is sent to the power processing unit, and if not, the received first data is discarded; when the radio frequency switch is connected to a second antenna, the second antenna judges whether the received second data carries a specific identifier, if so, the received second data is sent to the power processing unit, and if not, the received second data is discarded;
the power processing unit amplifies the received first data or second data and sends the amplified first data or second data to the baseband chip;
after receiving the first data or the second data from the power processing unit, the baseband chip demodulates the received first data or the received second data in an OQPSK modulation mode or a QPSK modulation mode, and sends the demodulated first data or the demodulated second data to the control unit.
10. The method of claim 8, wherein the second type of antenna comprises at least one second antenna, and the second antenna and the first antenna are mutually orthogonal antennas;
the process of verifying the first data and the second data by the control unit to obtain correctly verified first data or second data specifically includes: determining a check identifier corresponding to first data, if the determined check identifier is the same as the check identifier carried in the first data, determining that the first data is verified correctly, and selecting the first data as target data; if the determined check identifier is different from the check identifier carried in the first data, determining that the first data is not checked correctly, and determining a check identifier corresponding to second data; and if the determined check identifier is the same as the check identifier carried in the second data, determining that the second data is checked correctly, and selecting the second data as target data.
CN201611041015.8A 2016-11-21 2016-11-21 Data transceiving method and device Active CN106656221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611041015.8A CN106656221B (en) 2016-11-21 2016-11-21 Data transceiving method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611041015.8A CN106656221B (en) 2016-11-21 2016-11-21 Data transceiving method and device

Publications (2)

Publication Number Publication Date
CN106656221A CN106656221A (en) 2017-05-10
CN106656221B true CN106656221B (en) 2023-01-03

Family

ID=58812754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611041015.8A Active CN106656221B (en) 2016-11-21 2016-11-21 Data transceiving method and device

Country Status (1)

Country Link
CN (1) CN106656221B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726221B (en) * 2020-01-06 2021-07-20 电子科技大学 Physical layer safety transmission method capable of resisting arbitrary eavesdropping antenna number

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499867A (en) * 2002-11-04 2004-05-26 深圳市中兴通讯股份有限公司 Method and device for realtime antenna to select emission diversity
CN101957908A (en) * 2010-07-26 2011-01-26 深圳市远望谷信息技术股份有限公司 Method and device for RFID (Radio Frequency Identification) reader-writer antenna receiving
CN102013910A (en) * 2010-11-17 2011-04-13 中国人民解放军理工大学 Short-wave multi-antenna signal enhancement receiving method
CN102474322A (en) * 2009-07-17 2012-05-23 飞思卡尔半导体公司 Diversity antenna system and transmission method
WO2014039144A1 (en) * 2012-09-10 2014-03-13 Intel Corporation Methods and arrangements for a check sequence

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499867A (en) * 2002-11-04 2004-05-26 深圳市中兴通讯股份有限公司 Method and device for realtime antenna to select emission diversity
CN102474322A (en) * 2009-07-17 2012-05-23 飞思卡尔半导体公司 Diversity antenna system and transmission method
CN101957908A (en) * 2010-07-26 2011-01-26 深圳市远望谷信息技术股份有限公司 Method and device for RFID (Radio Frequency Identification) reader-writer antenna receiving
CN102013910A (en) * 2010-11-17 2011-04-13 中国人民解放军理工大学 Short-wave multi-antenna signal enhancement receiving method
WO2014039144A1 (en) * 2012-09-10 2014-03-13 Intel Corporation Methods and arrangements for a check sequence

Also Published As

Publication number Publication date
CN106656221A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
US8204086B2 (en) Natural network coding for multi-hop wireless network
US20190132087A1 (en) Method and apparatus for data transmission
CN107710842B (en) Method and device for transmitting uplink data
KR20170115096A (en) And method for automatic detection of WLAN packet using header
CN110291814A (en) BWP switching method, device and storage medium
KR101832043B1 (en) Device-to-device〔d2d〕discovery
Wang et al. Rapidrider: Efficient wifi backscatter with uncontrolled ambient signals
KR20220066062A (en) Sequence-based physical uplink control channel transmission
WO2013106749A1 (en) Systems and methods for low density parity check tone mapping
JP2006109022A (en) Radio communication system, transmitter and receiver
Jiang et al. Bidirectional bluetooth backscatter with edges
CN102668663A (en) Resource allocation
CN106656221B (en) Data transceiving method and device
WO2016033679A1 (en) Methods and systems for spread spectrum communications
US8924807B2 (en) Method and apparatus for acknowledgement using a group identifier
CN110830159B (en) Wireless communication method, device and computer readable storage medium
EP3849115B1 (en) Method and device for transmitting data
CN114189318A (en) Data transmission method and device
Živic Improved Up-Link Repetition Procedure for Narrow Band Internet of Things
CN111865495A (en) Decoding method, decoding device and storage medium
WO2023133787A1 (en) Aggregation link establishment and communication between radio bearers and layer entities of user devices
EP4250840A1 (en) Downlink transmission method and apparatus
JP5121689B2 (en) Wireless communication system, relay station apparatus, and wireless communication method
CN206226410U (en) A kind of data source and sink, emitter and receiver
KR101907465B1 (en) Apparatus and method for retransmitting data in wireless communication system

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
GR01 Patent grant
GR01 Patent grant