WO2019000822A1 - Communication method and apparatus for radio frequency device, remote controller and unmanned aerial vehicle - Google Patents

Communication method and apparatus for radio frequency device, remote controller and unmanned aerial vehicle Download PDF

Info

Publication number
WO2019000822A1
WO2019000822A1 PCT/CN2017/112802 CN2017112802W WO2019000822A1 WO 2019000822 A1 WO2019000822 A1 WO 2019000822A1 CN 2017112802 W CN2017112802 W CN 2017112802W WO 2019000822 A1 WO2019000822 A1 WO 2019000822A1
Authority
WO
WIPO (PCT)
Prior art keywords
frequency
hopping sequence
information
pseudo
frequency hopping
Prior art date
Application number
PCT/CN2017/112802
Other languages
French (fr)
Chinese (zh)
Inventor
程昌南
Original Assignee
深圳市道通智能航空技术有限公司
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 深圳市道通智能航空技术有限公司 filed Critical 深圳市道通智能航空技术有限公司
Publication of WO2019000822A1 publication Critical patent/WO2019000822A1/en

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/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • H04B1/7136Arrangements for generation of hop frequencies, e.g. using a bank of frequency sources, using continuous tuning or using a transform
    • 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/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • H04B1/7143Arrangements for generation of hop patterns
    • 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/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • H04B1/715Interference-related aspects
    • 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/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • H04B1/715Interference-related aspects
    • H04B2001/7154Interference-related aspects with means for preventing interference

Definitions

  • the present application relates to the field of communications, and in particular, to a communication method of a radio frequency device, a device remote controller, and an unmanned aerial vehicle.
  • radio frequency transceivers There are often many co-frequency and adjacent-frequency interferences, including not only multiple remote controls and/or multiple aircraft.
  • Mutual interference also includes interference from other electronic devices in the same frequency band to the remote control and the aircraft. Therefore, frequency hopping is often used in the RF communication process to avoid interference between different devices.
  • frequency hopping communication protocols such as WIFI, Bluetooth, etc. are often too complex, require RF transceiver chip hardware implementation, or need to expand the processor and require complex protocol stack support.
  • the embodiment of the present application provides a simple and effective communication method, device, remote controller and unmanned aerial vehicle of a radio frequency device, which aims to avoid interference between different devices.
  • the embodiment of the present application provides the following technical solutions:
  • a communication method for a radio frequency device comprising:
  • the first device identification code information of the radio device and the second device identification code information of the peer device Generate code information
  • Frequency hopping switching is performed based on the frequency hopping sequence.
  • the generating a hopping sequence according to the seed of the pseudo random hopping sequence includes:
  • a pseudo-random number is generated to generate a frequency hopping sequence.
  • the calling the preset function generates a preset number of pseudo-random numbers, including: calling a preset function to generate a pseudo-random number, and removing the repeated pseudo-random number until the pseudo-random number reaches a preset number.
  • the performing frequency hopping switching based on the frequency hopping sequence includes:
  • the frequency hopping information further includes backup frequency point information, and the communication frequency point is switched to the standby frequency point when the frequency hopping synchronization fails.
  • the embodiment of the present application further provides a computer storage medium, where the computer storage medium can store a program, and the program executes the steps including the method as above.
  • a communication device for a radio frequency device including:
  • the code module is configured to generate the code information according to the first device identification code information of the radio frequency device and the second device identification code information of the peer device;
  • a seed generation module configured to generate a seed of a pseudo-random hopping sequence according to the pair of code information
  • a frequency hopping sequence generating module configured to generate a hopping sequence according to the seed of the pseudo random hopping sequence
  • a switching module configured to perform frequency hopping based on the frequency hopping sequence.
  • the frequency hopping sequence generating module includes:
  • a preset number obtaining unit configured to acquire a preset number of pseudo random numbers for generating a hopping sequence
  • a pseudo random number generating unit configured to call a preset function to generate a preset number of pseudo random numbers
  • a sequence generating unit configured to generate a hopping sequence by using a pseudo random number.
  • the pseudo random number generating unit calls the preset function to generate a preset number of pseudo random numbers, including: calling a preset function to generate a pseudo random number, and removing the repeated pseudo random number until the pseudo random number reaches a preset number number.
  • the switching module includes:
  • a sending subunit configured to send information including frequency hopping information, where the frequency hopping information includes a next frequency point information and a frequency hopping sequence;
  • the frequency hopping information further includes the backup frequency point information
  • the switching module further includes a standby subunit, configured to switch the communication frequency point to the standby frequency point after the frequency hopping synchronization fails.
  • the embodiment of the present application further provides the following technical solutions:
  • a remote controller includes: a first radio frequency device, wherein the first radio frequency device of the remote controller is configured to be connected to a second radio frequency device of a mobile object by wireless communication;
  • the first radio frequency device is used to:
  • Frequency hopping switching is performed based on the frequency hopping sequence.
  • the moving object is an unmanned aerial vehicle (UAV), a remotely piloted vehicle, a ship, or a robot.
  • UAV unmanned aerial vehicle
  • remotely piloted vehicle a ship, or a robot.
  • the embodiment of the present application further provides the following technical solutions:
  • An unmanned aerial vehicle flying through a remote controller comprising:
  • a body including a second RF device, a center housing, and a arm coupled to the center housing;
  • the second radio frequency device of the airframe is configured to be connected to the first radio frequency device of the remote controller by wireless communication;
  • the second radio frequency device is used to:
  • Frequency hopping switching is performed based on the frequency hopping sequence.
  • the communication method, the device, the remote controller and the unmanned aerial vehicle of the radio frequency device first generate the code information by using the first device identification code information of the radio frequency device and the second device identification code of the peer device, and generate the pseudo code by using the pair of code information.
  • the seed of the random hopping sequence is then generated corresponding to the hopping sequence, and finally the frequency hopping switching is performed according to the hopping sequence.
  • Performing frequency hopping switching according to the hopping sequence can effectively avoid the problem of co-frequency and adjacent frequency interference, and greatly reduce hardware overhead and cost.
  • FIG. 1 is a hardware block diagram of an application scenario of a communication method and apparatus for a radio frequency device according to an embodiment of the present application
  • FIG. 2 is a flowchart of a communication method of a radio frequency device according to an embodiment of the present application
  • FIG. 3 shows the steps further included in step S110 in the embodiment of Figure 2;
  • FIG. 4 is a flowchart of a step of generating a frequency hopping sequence according to a seed of a pseudo random frequency hopping sequence according to an embodiment of the present application
  • FIG. 5 is a flowchart of a frequency hopping communication handshake procedure performed by a radio frequency device according to an embodiment of the present application
  • FIG. 6 is a block diagram of a communication device of a radio frequency device according to an embodiment of the present application.
  • FIG. 7 is a block diagram of a frequency hopping sequence generating module according to an embodiment of the present application.
  • FIG. 8 is a block diagram of a switching module according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of hardware of an electronic device according to a method for communicating a radio frequency device according to an embodiment of the present application.
  • the radio frequency device can be a radio frequency transmitting device and/or a radio frequency receiving device.
  • the solution in the embodiment of the present application can implement communication between the radio frequency transmitting device and the radio frequency receiving device.
  • the unmanned aerial vehicle may include a radio frequency transmitting device and/or a radio frequency receiving device
  • the remote controller may include a radio frequency receiving device and/or a radio frequency transmitting device. device.
  • an unmanned aerial vehicle transmits an image to a remote controller
  • the unmanned aerial vehicle acts as a radio frequency transmitting end
  • the remote controller acts as a radio frequency receiving end
  • the remote controller controls the flying motion of the unmanned aerial vehicle
  • the remote controller acts as a radio frequency transmitting end
  • the unmanned aerial vehicle at the receiving end transmits a flight control command.
  • the radio frequency device as the radio frequency transmitting device includes a transmitting end main chip 610 and a radio frequency transmitting chip 620 connected to the transmitting end main chip 610; the opposite end device as the radio frequency receiving device includes the receiving end main chip 640 and the receiving end main chip 640 Connected RF receiving chip 630.
  • the radio frequency transmitting chip 620 communicates with the radio frequency receiving chip 630 through the antenna 650 to complete frequency hopping communication and data communication.
  • the transmitting end main chip 610 and the receiving end main chip 640 can adopt an ordinary single chip microcomputer, so that both the RF transmitting device and the RF receiving device can realize frequency hopping communication by an ordinary single chip driving RF transceiver.
  • the radio frequency device is a transmitting end, that is, a radio frequency transmitting device; and the opposite end device is a receiving end, that is, a radio frequency receiving device.
  • the radio frequency device and the peer device may be any one of a radio frequency transmitting device and a radio frequency receiving device, respectively. Therefore, in other embodiments of the present application, the radio frequency device may be a receiving end, that is, a radio frequency receiving device, and the opposite end device is a transmitting end, that is, a radio frequency transmitting device.
  • radio frequency device and the “peer device” in the embodiments of the present application are relative concepts for the purpose of description, and are not to be construed as indicating or implying relative importance. To avoid redundancy, the following embodiments describe only the case where the radio frequency device is a radio frequency transmitting device and the peer device is a radio frequency receiving device. A person skilled in the art can understand that when the radio frequency device is a radio frequency receiving device and the opposite device is a radio frequency transmitting device, the type of the above situation is not described herein.
  • FIG. 2 is a flowchart of a method for communicating a radio frequency device according to an embodiment of the present disclosure, where the method includes steps S110-S140. among them:
  • S110 Generate code information according to the first device identifier code information of the radio device and the second device identifier information of the peer device.
  • S120 Generate a seed of a pseudo-random hopping sequence according to the code information.
  • S130 Generate a hopping sequence according to a seed of the pseudo-random hopping sequence.
  • S140 Perform frequency hopping switching based on a frequency hopping sequence.
  • Performing frequency hopping switching according to the hopping sequence can effectively avoid the problem of co-frequency and adjacent frequency interference, and greatly reduce hardware overhead and cost.
  • step S110 further includes steps S101-S103. among them:
  • S101 Send the first device identifier information of the radio device to the peer device.
  • S102 Receive second device identification code information of the peer device.
  • S103 Generate code information according to the first device identification code information of the radio device and the second device identification code information of the peer device.
  • the radio frequency device may generate the pair of code information and then send the pair of code information to the peer device, or the radio device and the peer device respectively generate the same final code information.
  • the code information may be a combination of the first device identification code information of the radio device and the second device identification code information of the peer device, and may be part of the first device identification code information of the radio device and the second device of the peer device.
  • the identifier code information is generated in combination, and may be generated by combining the first device identification code information of the radio device and the second device identification code information of the peer device, or may be part of the first device identification code information of the radio device. And generating a partial data combination in the second device identifier information of the peer device.
  • the data length of the code information may be the same as the first device identifier information of the radio device and/or the second device identifier information of the peer device, or may be greater than or less than the first device identifier information of the radio device. And/or the data length of the second device identification code information of the peer device.
  • the first device identification code information of the radio frequency device and the second device identification code information of the peer device are both 5 bytes, and the code information is extracted from the first device identification code information of the radio frequency device by 2 bytes. And extracting 3 bytes from the second device identification code information of the peer device.
  • the data length of the first device identification code information of the radio device and the second device identification code information of the peer device may be the same or different.
  • the code information may be the first device identification code information of the radio device and the peer device.
  • Data of the second device identification code information can be extracted differently by extracting data of the same length Length data.
  • the first device identifier information of the radio device may be unique, and the second device identifier information of the peer device may also be unique, and the code information may also be unique.
  • the first device identification code information of the radio frequency device and the second device identification code information of the peer device may be programmed into the radio device and the peer device by using a programming device or the like to write a predetermined number of fixed device number identification codes into the radio device and the peer device. . Specifically, it can be programmed into the flash memory of the microcontroller (MCU), or it can be written into a special flash memory, and can also be stored elsewhere.
  • the programming device needs to be able to specify specific numbers and/or letters, and will automatically change after each programming operation, and the change manner may be incremental, etc., to facilitate the operator of the factory to ensure the first end and the opposite end of each block. The uniqueness of the device identification code.
  • the method further includes the step of: sending the code confirmation information. This step is used to make the RF device and the peer device have the same final code information.
  • TX radio device acting as a transmitter
  • RX peer device acting as a receiver
  • RX enters the monitor
  • the TX sends a code broadcast to the RX, and the code broadcast includes a device identification code in which the TX exists in the code, and then enters the monitoring;
  • the RX After receiving the code broadcast sent by the TX, the RX responds to the TX, and the response information includes the device identification code information of the TX and the device identification code information of the RX, and enters the code confirmation of waiting for the TX;
  • the TX After receiving the response information of the RX reply, the TX sends a pair of code confirmation information to the RX, where the code confirmation information includes the final pair code information generated by combining the TX device identification code information and the RX device identification code information;
  • S120 Generate a seed of a pseudo-random hopping sequence according to the code information.
  • step S120 generating a seed of the pseudo-random hopping sequence according to the code information, further comprising:
  • a hopping sequence is generated based on the pseudo random number.
  • the step of calling the preset function to generate a preset number of pseudo random numbers further includes: calling a preset function to generate a pseudo random number, filtering the pseudo random number, and removing the repeated pseudo random number until the pseudo random number reaches the pre Set a number.
  • the unique final code information shared by the two is generated, and the data of the final code information or the final code information is used as a seed for generating a pseudo random hopping sequence.
  • Both use the same preset function to generate a pseudo-random number, and then generate a hopping sequence from the pseudo-random number, which is unique.
  • the preset function can select an existing function or write a function for obtaining a random number according to its needs, which can be a C language function, a java function, or the like.
  • FIG. 4 is a flowchart of a step of generating a frequency hopping sequence according to a seed of a pseudo-random hopping sequence, specifically including the following steps S210-260:
  • S240 Filter pseudo-random numbers to avoid duplicate data in the sequence.
  • step S250 Determine whether the pseudo random number has reached a preset number. If the pseudo random number does not reach the preset number, the process returns to the above step S230; until the pseudo random number reaches the preset number, and the pseudo random sequence is completed, and step S260 is performed.
  • performing frequency hopping switching based on the frequency hopping sequence includes: transmitting information including frequency hopping information, where the frequency hopping information includes but is not limited to the next frequency point information, a frequency hopping sequence, and the communication frequency point switching of the radio frequency device To the next frequency point; after the communication of one frequency point is completed, the RF device resends the information including the frequency hopping information.
  • the frequency information in the above reflects the number of the fixed frequency; the frequency hopping sequence refers to the address code sequence used to control the carrier frequency hopping. When many devices are simultaneously hopping in the same frequency band, the hopping sequence is Distinguish the unique flag of each device.
  • the frequency hopping information further includes alternate frequency point information, when the frequency hopping synchronization fails.
  • the communication frequency is switched to the alternate frequency point.
  • the step of waiting for the transmission to be completed is further included, and if the transmission is completed, the step of entering the reception state is performed, and if the transmission is not completed, the retransmission is delayed.
  • FIG. 5 a flow chart of a frequency hopping communication handshake procedure for a radio frequency device is shown.
  • the radio frequency device in the embodiment of the present application is used as a radio frequency transmitting device for hopping, and the person skilled in the art should understand that the radio frequency device in the embodiment of the present application is used as a radio frequency receiving device for frequency hopping.
  • the communication handshake program is used, the program is similar, but it is the reverse process. Therefore, in order to avoid redundancy, the latter case will not be exemplified here.
  • performing the frequency hopping communication handshake procedure by the radio frequency device of the embodiment of the radio frequency transmitting device includes the following steps S310-S380:
  • the sent information includes frequency hopping information
  • the frequency hopping information includes a next frequency point information, a frequency hopping sequence, and an alternate frequency point information.
  • step S330 Waiting for the transmission completion phase, if the transmission is completed, executing step S350; if the transmission is not completed, executing step S340:
  • step S340 The delayed transmission phase returns to step S320 if the delayed transmission is completed, and proceeds to step S340 if the delayed transmission is not completed.
  • step S350 After the step S350 is performed, the following steps are continued:
  • S360 Receive phase, receiving data.
  • step S380 Receiving the switching phase of the transmission, ending or returning to step S320.
  • hop_map[HOP_MAX_INDEX] ⁇ 3,6,9,12,15,18,21,24,27,30,35,40,43,4,60 , 10 ⁇ ;
  • the program will generate a random number cur_head, cur_head for the next frequency information, the value range is 0 ⁇ HOP_MAX_INDEX.
  • Next_index is initially equal to cur_head, the first hop is from the first Hop[next_index] starts to jump, the next frequency point is hop[++next_index], and the loop jumps one week, that is, the number of HOP_MAX_INDEX.
  • next_head is also generated in the program, and next_head is the alternate frequency information, which ranges from 0 to HOP_MAX_INDEX.
  • the communication method of the radio frequency device in the above embodiment uses a unique device identification code that is calibrated for each device including the radio frequency transmitting device and the radio frequency receiving device at the time of shipment, and realizes the uniqueness of the code information, and then uses the unique The pair of code information generates a set of random frequency hopping sequences. After successful pairing, the RF transmitting device and the RF receiving device implement synchronization, handshake, and response communication based on the set of hopping sequences. Effectively avoid the problems of co-frequency and adjacent-frequency interference, greatly reducing hardware overhead and cost.
  • FIG. 6 is a block diagram of a communication device for radio frequency hopping according to an embodiment of the present application.
  • the radio frequency hopping communication device When the radio frequency hopping communication device of the embodiment of the present application is used as a transmitting end, the radio frequency hopping communication device includes the transmitting end main chip 610 shown in FIG. 1 and the radio frequency transmitting chip 620 connected to the transmitting end main chip 610. .
  • the radio frequency transmitting chip 620 communicates with the receiving end as the opposite end through the antenna 650, that is, communicates with the radio receiving chip 630 of the opposite end to complete frequency hopping communication and data communication.
  • the transmitting end main chip 610 and the receiving end main chip 640 can adopt an ordinary single chip microcomputer, so that both the RF transmitting device and the RF receiving device can realize frequency hopping communication by an ordinary single chip driving RF transceiver.
  • the radio frequency hopping communication device When the radio frequency hopping communication device of the embodiment of the present application is used as the receiving end, the radio frequency hopping communication device includes the receiving end main chip 640 shown in FIG. 1 and the radio frequency receiving chip 630 connected to the receiving end main chip 640. .
  • the transmitting end as the opposite end communicates with the radio frequency receiving chip 630 through the antenna 650, that is, the radio frequency transmitting chip 620 of the transmitting end communicates with the radio frequency receiving chip 630 through the antenna 650 to complete frequency hopping communication and data communication.
  • the transmitting end main chip 610 and the receiving end main chip 640 can adopt an ordinary single chip microcomputer, so that both the RF transmitting device and the RF receiving device can realize frequency hopping communication by an ordinary single chip driving RF transceiver.
  • the radio frequency device is a transmitting end, that is, a radio frequency transmitting device; and the opposite end device is a receiving end, that is, a radio frequency receiving device.
  • a radio frequency device The peer device and the peer device may be any one of a radio frequency transmitting device and a radio frequency receiving device, respectively. Therefore, in other embodiments of the present application, the radio frequency device may be a receiving end, that is, a radio frequency receiving device, and the opposite end device is a transmitting end, that is, a radio frequency transmitting device.
  • the radio frequency device of the embodiment of the present application communicates as the radio frequency transmitting device
  • the radio device of the embodiment of the present application communicates as the peer device, that is, the radio frequency receiving device.
  • the unmanned aerial vehicle may include a radio frequency transmitting device and/or a radio frequency receiving device
  • the remote controller may include a radio frequency receiving device and/or a radio frequency transmitting device.
  • the unmanned aerial vehicle transmits an image to a remote controller
  • the unmanned aerial vehicle acts as a radio frequency transmitting end
  • the remote controller acts as a radio frequency receiving end
  • the remote controller controls the flying motion of the unmanned aerial vehicle
  • the remote controller acts as a radio frequency transmitting end, and acts as a radio frequency
  • the unmanned aerial vehicle at the receiving end transmits a flight control command.
  • the radio frequency hopping communication device includes a pair code module 510, a seed generation module 520, a frequency hopping sequence generation module 530, and a switching module 540.
  • the pair code module 510 is configured to generate the code information according to the first device identification code information of the radio frequency device and the second device identification code information of the peer device.
  • the seed generation module 520 is configured to generate a seed of the pseudo-random hopping sequence according to the pair of code information.
  • the hopping sequence generation module 530 is configured to generate a hopping sequence according to the seed of the pseudorandom hopping sequence.
  • the switching module 540 is configured to perform frequency hopping switching based on a frequency hopping sequence.
  • the code module 510, the seed generation module 520, the frequency hopping sequence generation module 530, and the switching module 540 may be any one of a flight control module, a picture transmission module, a microcontroller unit, and a microprocessor unit. .
  • the hopping sequence generation module 530 generates a hopping sequence based on the pair of code information. Performing frequency hopping switching according to the hopping sequence can effectively avoid the problem of co-frequency and adjacent frequency interference, and greatly reduce hardware overhead and cost.
  • FIG. 7 is a block diagram of a hopping sequence generation module in an embodiment, wherein the hopping sequence generation module 530 includes a preset number acquisition unit 531, a pseudo random number generation unit 532, and a sequence generation unit 533.
  • the preset number obtaining unit 531 is configured to acquire a preset number of pseudo random numbers for generating a hopping sequence.
  • the pseudo random number generating unit 532 is configured to call a preset function to generate a preset number of pseudo random numbers; the sequence generating unit 533 is configured to generate a hopping sequence by the pseudo random number.
  • the pseudo random number generating unit 532 calls the preset function to generate a preset number of pseudo random numbers, including: calling a preset function to generate a pseudo random number, and removing the repeated pseudo random numbers until the pseudo random number reaches a preset number.
  • the radio frequency device generates the pair of code information, and then sends the pair of code information to the peer device.
  • the radio frequency device and the peer device respectively generate the code information.
  • the code information may be a combination of the first device identification code information of the radio frequency device and the second device identification code information of the opposite end, or may be part of the first device identification code information of the radio frequency device and the peer device
  • the device identification code information may be generated by combining the first device identification code information of the radio device with the second device identification code information of the peer device, or may be the first device identification code of the radio device. A part of the data in the information is combined with a part of the data in the second device identification code information of the peer device.
  • the data length of the code information may be the same as the first device identifier information of the radio device or the second device identifier information of the peer device, or may be greater than or less than the first device identifier information and the pair of the radio device.
  • the data length of the second device identification code information of the end device For example, the first device identification code information of the radio frequency device and the second device identification code information of the peer device are both 5 bytes, and the code information is extracted from the first device identification code information by 2 bytes, and the second device The identification code information is extracted by 3 bytes.
  • the data length of the first device identification code information of the radio device and the second device identification code information of the peer device may be the same or different.
  • the code information may be from the first device identification code information and the second device identification code information. Data extraction of the same length of data can also extract data of different lengths.
  • the first device identification code information of the radio frequency device and the second device identification code information of the peer device may be programmed into the radio frequency device by using a programming device or the like to write a predetermined fixed number of device identification codes into the radio device. And in the peer device. Specifically, it can be written into the flash memory of the microcontroller (MCU), or it can be written into a special flash memory, and can also be stored elsewhere.
  • the programming device needs to be able to specify specific numbers and/or letters, and will automatically change after each programming operation.
  • the change mode can be incremental, etc., to facilitate the operator of the factory to ensure each RF device. And/or the uniqueness of the device identification code information of the peer device.
  • the frequency hopping sequence generating module is configured to send the code confirmation information.
  • Both the RF device and the peer device have the same final code information.
  • the radio device is a radio frequency transmitting device
  • the peer device is a radio frequency receiving device
  • the radio device is a radio frequency receiving device
  • the peer device is a radio frequency transmitting device.
  • the following example illustrates the code handshake process between the RF device acting as the transmitting end (TX) and the peer device acting as the receiving end (RX):
  • RX enters the monitor
  • the TX sends a code broadcast to the RX, and the code broadcast includes a device identification code in which the TX exists in the code, and then enters the monitoring;
  • the RX After receiving the code broadcast sent by the TX, the RX responds to the TX, and the response information includes the device identification code information of the TX and the device identification code information of the RX, and enters the code confirmation of waiting for the TX;
  • the TX After receiving the response information of the RX reply, the TX sends a pair of code confirmation information to the RX, where the code confirmation information includes the final pair code information generated by combining the TX device identification code information and the RX device identification code information;
  • the pair of the RF device and the peer device After the pair of the RF device and the peer device succeeds, the pair of code information shared by the two devices is generated, and a certain data in the code information or the code information is used as a seed for generating a pseudo-random hopping sequence.
  • the function generates a pseudo-random number and then generates a hopping sequence from the pseudo-random number. Generate the same set of hopping sequences, and unique.
  • the preset function can select an existing function or write a function for obtaining a random number according to its needs, which can be a C language function, a java function, or the like.
  • FIG. 8 is a block diagram of a handover module in an embodiment.
  • the handover module 540 includes a transmission subunit 541, a handover execution subunit 542, and a return subunit 543.
  • the transmitting subunit 541 is configured to send information including frequency hopping information, where the frequency hopping information includes a next frequency point information and a frequency hopping sequence.
  • the handover execution sub-unit 542 is configured to switch the communication frequency point to the next frequency point; the return sub-unit 543 is configured to return to the step of transmitting information including the frequency hopping information.
  • the frequency hopping information further includes the alternate frequency point information
  • the switching module further includes a standby subunit, configured to switch the communication frequency point to the standby frequency point after the frequency hopping synchronization fails.
  • the switching module further includes a delay unit, configured to send the information including the frequency hopping information and enter the timer to wait for the transmission to complete, if the sending is completed, the step of entering the receiving state is performed, and if the sending is not completed, the delay is performed. Resend.
  • Next_index is initially equal to cur_head. The first frequency hopping starts with hop[next_index], the next frequency point is hop[++next_index], and the loop jumps for one week, that is, the number of HOP_MAX_INDEX.
  • next_head is also generated in the program, and next_head is the alternate frequency information, which ranges from 0 to HOP_MAX_INDEX.
  • the code module 510, the seed generation module 520, the frequency hopping sequence generation module 530, and the switching module 540 of the present application may be in a flight control module, a picture transmission module, a microcontroller unit, and a microprocessor unit. Any one.
  • FIG. 9 is a schematic diagram of a hardware structure of the electronic device 600 according to the communication method of the radio frequency device provided by the embodiment of the present application.
  • the electronic device 600 includes one or more processors 610 and a memory 620.
  • One processor 610 is exemplified in FIG.
  • the processor 610 and the memory 620 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 620 is a non-volatile computer readable storage medium, and is applicable to a non-volatile software program, a non-volatile computer-executable program, and a module, such as a communication method of a radio frequency device in the embodiment of the present application.
  • Program instructions/modules eg, the code module 510 shown in FIG. 6, Switching module 540, etc.
  • the processor 610 executes various functional applications and data processing of the electronic device by executing non-volatile software programs, instructions, and modules stored in the memory 620, that is, as described in the method embodiments illustrated in FIGS. 2-5.
  • the communication method of the RF device is a non-volatile computer readable storage medium, and is applicable to a non-volatile software program, a non-volatile computer-executable program, and a module, such as a communication method of a radio frequency device in the embodiment of the present application.
  • Program instructions/modules eg, the code module 510 shown
  • the present application also provides a remote controller including a first radio frequency device for communicating with a second radio frequency device of a moving object to control the moving object.
  • the first radio device of the remote controller performs all or part of the steps of the communication method of the radio device shown in FIGS. 1-5.
  • the first radio frequency device includes:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as illustrated in any of the above-described exemplary embodiments
  • the communication method of the RF device stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as illustrated in any of the above-described exemplary embodiments
  • the communication method of the RF device stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as illustrated in any of the above-described exemplary embodiments The communication method of the RF device.
  • the moving object is an unmanned aerial vehicle (UAV), a remotely piloted vehicle, a ship, or a robot.
  • UAV unmanned aerial vehicle
  • remotely piloted vehicle a ship, or a robot.
  • An embodiment of the present application further provides an unmanned aerial vehicle that is operated by a remote controller including a fuselage, the airframe including a second radio frequency device, a center housing, and a connection with the center housing.
  • the second radio device of the airframe is configured to be connected to the first radio frequency device of the remote controller by wireless communication.
  • the second radio frequency device of the UAV performs all or part of the steps of the communication method of the radio frequency device shown in FIG. 1-5.
  • the second radio frequency device includes:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as illustrated in any of the above-described exemplary embodiments
  • the communication method of the RF device stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as illustrated in any of the above-described exemplary embodiments
  • the communication method of the RF device stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as illustrated in any of the above-described exemplary embodiments The communication method of the RF device.
  • the unique pairing code information is used to generate one.
  • a random hopping sequence is set. After the pairing is successful, the RF transmitting device and the RF receiving device perform synchronization, handshake, and response communication based on the set of hopping sequences. Effectively avoid the problems of co-frequency and adjacent-frequency interference, greatly reducing hardware overhead and cost.

Landscapes

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

Abstract

The present application relates to a communication method and apparatus for a radio frequency device, an unmanned aerial vehicle and a remote controller, the method comprising: generating match code information according to first device identification code information of a radio frequency device and second device identification code information of an opposite device; generating a seed of a pseudo-random frequency hopping sequence according to the match code information; generating a frequency hopping sequence according to the seed of the pseudo-random frequency hopping sequence; and performing frequency hop switching on the basis of the frequency hopping sequence. According to the present application, match code information is generated according to first device identification code information of a radio frequency device and second device identification code information of an opposite device, a seed of a pseudo-random frequency hopping sequence is generated by using the match code information so as to correspondingly generate a frequency hopping sequence, and finally frequency hop switching is performed according to the frequency hopping sequence. Performing frequency hop switching according to the frequency hopping sequence may effectively avoid the problem of same-frequency and adjacent-frequency interference, thereby greatly reducing the hardware overhead and cost.

Description

射频设备的通信方法、装置、遥控器及无人飞行器Communication method, device, remote controller and unmanned aerial vehicle of radio frequency device
本申请要求于2017年6月27日提交中国专利局、申请号为201710503069.X、申请名称为“射频设备的通信方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on June 27, 2017, the Chinese Patent Office, the application No. 201710503069.X, the application of the name of the "Communication Method and Apparatus for Radio Frequency Equipment", the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本申请涉及通信领域,特别是涉及一种射频设备的通信方法、装置遥控器及无人飞行器。The present application relates to the field of communications, and in particular, to a communication method of a radio frequency device, a device remote controller, and an unmanned aerial vehicle.
背景技术Background technique
无人机等设备的地面遥控器和空中的飞机通过射频收发装置进行数据通信,往往会存在很多的同频、邻频干扰,这其中不仅包括多台遥控器和/或多架飞机之间的相互干扰,也包括同频段的其它电子设备对遥控器和飞机的干扰,因此,在射频通信过程中往往采用跳频的方式来避免不同设备间的干扰现象。The ground remote control of equipment such as drones and the aircraft in the air communicate with each other through radio frequency transceivers. There are often many co-frequency and adjacent-frequency interferences, including not only multiple remote controls and/or multiple aircraft. Mutual interference also includes interference from other electronic devices in the same frequency band to the remote control and the aircraft. Therefore, frequency hopping is often used in the RF communication process to avoid interference between different devices.
目前,诸如WIFI、蓝牙等通信方式的跳频通信协议往往过于复杂,需要射频收发芯片硬件实现,或需要外扩处理器且需要复杂的协议栈支持。At present, frequency hopping communication protocols such as WIFI, Bluetooth, etc. are often too complex, require RF transceiver chip hardware implementation, or need to expand the processor and require complex protocol stack support.
发明内容Summary of the invention
为解决上述技术问题,本申请实施例提供一种简单有效的射频设备的通信方法、装置、遥控器及无人飞行器,旨在避免不同设备间的干扰现象。To solve the above technical problem, the embodiment of the present application provides a simple and effective communication method, device, remote controller and unmanned aerial vehicle of a radio frequency device, which aims to avoid interference between different devices.
为解决上述技术问题,本申请实施例提供以下技术方案:To solve the above technical problem, the embodiment of the present application provides the following technical solutions:
一种射频设备的通信方法,包括:A communication method for a radio frequency device, comprising:
根据射频设备的第一设备标识码信息和对端设备的第二设备标识码信息 生成对码信息;According to the first device identification code information of the radio device and the second device identification code information of the peer device Generate code information;
根据所述对码信息生成伪随机跳频序列的种子;Generating a seed of a pseudo-random hopping sequence according to the pair of code information;
根据所述伪随机跳频序列的种子生成跳频序列;Generating a frequency hopping sequence according to the seed of the pseudo random frequency hopping sequence;
基于所述跳频序列进行跳频切换。Frequency hopping switching is performed based on the frequency hopping sequence.
进一步地,所述根据所述伪随机跳频序列的种子生成跳频序列,包括:Further, the generating a hopping sequence according to the seed of the pseudo random hopping sequence includes:
获取生成跳频序列的伪随机数的预设个数;Obtaining a preset number of pseudo-random numbers that generate a hopping sequence;
调用预设函数生成预设个数的伪随机数;Calling a preset function to generate a preset number of pseudo-random numbers;
将伪随机数生成跳频序列。A pseudo-random number is generated to generate a frequency hopping sequence.
进一步地,所述调用预设函数生成预设个数的伪随机数,包括:调用预设函数生成伪随机数,去除重复伪随机数,直至伪随机数达到预设个数。Further, the calling the preset function generates a preset number of pseudo-random numbers, including: calling a preset function to generate a pseudo-random number, and removing the repeated pseudo-random number until the pseudo-random number reaches a preset number.
进一步地,所述基于所述跳频序列进行跳频切换,包括:Further, the performing frequency hopping switching based on the frequency hopping sequence includes:
发送包含跳频信息的信息,其中,所述跳频信息包括下一个频点信息、跳频序列;Transmitting information including frequency hopping information, where the frequency hopping information includes a next frequency point information and a frequency hopping sequence;
通讯频点切换到所述下一个频点;Switching the communication frequency to the next frequency point;
返回至所述发送包含跳频信息的信息的步骤。Returning to the step of transmitting information including frequency hopping information.
进一步地,所述跳频信息还包括备用频点信息,当跳频同步失败后通讯频点切换到所述备用频点。Further, the frequency hopping information further includes backup frequency point information, and the communication frequency point is switched to the standby frequency point when the frequency hopping synchronization fails.
为解决上述技术问题,本申请实施例还提供一种计算机存储介质,该计算机存储介质可存储有程序,所述程序执行包括如上所方法的步骤。In order to solve the above technical problem, the embodiment of the present application further provides a computer storage medium, where the computer storage medium can store a program, and the program executes the steps including the method as above.
为解决上述技术问题,本申请实施例还提供以下技术方案:一种射频设备的通信装置,包括:To solve the above technical problem, the embodiment of the present application further provides the following technical solution: a communication device for a radio frequency device, including:
对码模块,用于根据所述射频设备的第一设备标识码信息和对端设备的第二设备标识码信息生成对码信息;The code module is configured to generate the code information according to the first device identification code information of the radio frequency device and the second device identification code information of the peer device;
种子生成模块,用于根据所述对码信息生成伪随机跳频序列的种子;a seed generation module, configured to generate a seed of a pseudo-random hopping sequence according to the pair of code information;
跳频序列生成模块,用于根据所述伪随机跳频序列的种子生成跳频序列;a frequency hopping sequence generating module, configured to generate a hopping sequence according to the seed of the pseudo random hopping sequence;
切换模块,用于基于所述跳频序列进行跳频切。 And a switching module, configured to perform frequency hopping based on the frequency hopping sequence.
进一步地,所述跳频序列生成模块,包括:Further, the frequency hopping sequence generating module includes:
预设个数获取单元,用于获取生成跳频序列的伪随机数的预设个数;a preset number obtaining unit, configured to acquire a preset number of pseudo random numbers for generating a hopping sequence;
伪随机数生成单元,用于调用预设函数生成预设个数的伪随机数;a pseudo random number generating unit, configured to call a preset function to generate a preset number of pseudo random numbers;
序列生成单元,用于将伪随机数生成跳频序列。a sequence generating unit, configured to generate a hopping sequence by using a pseudo random number.
进一步地,所述伪随机数生成单元调用预设函数生成预设个数的伪随机数,包括:调用预设函数生成伪随机数,去除重复的伪随机数,直至伪随机数达到预设个数。Further, the pseudo random number generating unit calls the preset function to generate a preset number of pseudo random numbers, including: calling a preset function to generate a pseudo random number, and removing the repeated pseudo random number until the pseudo random number reaches a preset number number.
进一步地,所述切换模块包括:Further, the switching module includes:
发送子单元,用于发送包含跳频信息的信息,其中,所述跳频信息包括下一个频点信息、跳频序列;a sending subunit, configured to send information including frequency hopping information, where the frequency hopping information includes a next frequency point information and a frequency hopping sequence;
切换执行子单元,用于将通讯频点切换到下一个频点;Switching the execution subunit for switching the communication frequency point to the next frequency point;
返回子单元,用于返回至所述发送包含跳频信息的信息的步骤。Returning to the subunit for returning to the step of transmitting the information including the frequency hopping information.
进一步地,所述跳频信息还包括备用频点信息,所述切换模块还包括备用子单元,用于当跳频同步失败后通讯频点切换到所述备用频点。Further, the frequency hopping information further includes the backup frequency point information, and the switching module further includes a standby subunit, configured to switch the communication frequency point to the standby frequency point after the frequency hopping synchronization fails.
为解决上述技术问题,本申请实施例还提供以下技术方案:To solve the above technical problem, the embodiment of the present application further provides the following technical solutions:
一种遥控器,包括:第一射频设备,所述遥控器的所述第一射频设备用于与移动物体的第二射频设备通过无线通讯进行连接;A remote controller includes: a first radio frequency device, wherein the first radio frequency device of the remote controller is configured to be connected to a second radio frequency device of a mobile object by wireless communication;
其中,所述第一射频设备用于:The first radio frequency device is used to:
根据所述第一射频设备的第一设备标识码信息和所述第二射频设备的第二设备标识码信息生成对码信息;Generating code information according to the first device identification code information of the first radio frequency device and the second device identification code information of the second radio frequency device;
根据所述对码信息生成伪随机跳频序列的种子;Generating a seed of a pseudo-random hopping sequence according to the pair of code information;
根据所述伪随机跳频序列的种子生成跳频序列;Generating a frequency hopping sequence according to the seed of the pseudo random frequency hopping sequence;
基于所述跳频序列进行跳频切换。Frequency hopping switching is performed based on the frequency hopping sequence.
在一些实施例中,所述移动物体为无人飞行器(unmanned aerial vehicle,UAV)、遥控战车、轮船或机器人。 In some embodiments, the moving object is an unmanned aerial vehicle (UAV), a remotely piloted vehicle, a ship, or a robot.
为解决上述技术问题,本申请实施例还提供以下技术方案:To solve the above technical problem, the embodiment of the present application further provides the following technical solutions:
一种无人飞行器,通过遥控器控制器飞行,所述无人飞行器包括:An unmanned aerial vehicle flying through a remote controller comprising:
机身,所述机身包括第二射频设备、中心壳体和与所述中心壳体连接的机臂;a body including a second RF device, a center housing, and a arm coupled to the center housing;
所述机身的所述第二射频设备用于与遥控器的第一射频设备通过无线通讯进行连接;The second radio frequency device of the airframe is configured to be connected to the first radio frequency device of the remote controller by wireless communication;
其中,所述第二射频设备用于:The second radio frequency device is used to:
根据所述第一射频设备的第一设备标识码信息和所述第二射频设备的第二设备标识码信息生成对码信息;Generating code information according to the first device identification code information of the first radio frequency device and the second device identification code information of the second radio frequency device;
根据所述对码信息生成伪随机跳频序列的种子;Generating a seed of a pseudo-random hopping sequence according to the pair of code information;
根据所述伪随机跳频序列的种子生成跳频序列;Generating a frequency hopping sequence according to the seed of the pseudo random frequency hopping sequence;
基于所述跳频序列进行跳频切换。上述射频设备的通信方法、装置、遥控器及无人飞行器,先通过射频设备的第一设备标识码信息和对端设备的第二设备标识码来生成对码信息,利用该对码信息生成伪随机跳频序列的种子,然后对应生成跳频序列,最后根据跳频序列进行跳频切换。根据该跳频序列进行跳频切换,可以有效避免同频、邻频干扰的问题,极大地降低硬件开销和成本。Frequency hopping switching is performed based on the frequency hopping sequence. The communication method, the device, the remote controller and the unmanned aerial vehicle of the radio frequency device first generate the code information by using the first device identification code information of the radio frequency device and the second device identification code of the peer device, and generate the pseudo code by using the pair of code information. The seed of the random hopping sequence is then generated corresponding to the hopping sequence, and finally the frequency hopping switching is performed according to the hopping sequence. Performing frequency hopping switching according to the hopping sequence can effectively avoid the problem of co-frequency and adjacent frequency interference, and greatly reduce hardware overhead and cost.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他实施例的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and those skilled in the art can obtain drawings of other embodiments according to the drawings without any creative work.
图1为本申请实施例的射频设备的通信方法和装置的应用场景的硬件框图;1 is a hardware block diagram of an application scenario of a communication method and apparatus for a radio frequency device according to an embodiment of the present application;
图2为本申请一实施例中射频设备的通信方法的流程图;2 is a flowchart of a communication method of a radio frequency device according to an embodiment of the present application;
图3示出图2的实施例中步骤S110进一步包括的步骤; Figure 3 shows the steps further included in step S110 in the embodiment of Figure 2;
图4为本申请一实施例中根据伪随机跳频序列的种子,生成跳频序列的步骤的流程图;4 is a flowchart of a step of generating a frequency hopping sequence according to a seed of a pseudo random frequency hopping sequence according to an embodiment of the present application;
图5为本申请一实施例中射频设备进行跳频通信握手程序流程图;FIG. 5 is a flowchart of a frequency hopping communication handshake procedure performed by a radio frequency device according to an embodiment of the present application;
图6为本申请一实施例中射频设备的通信装置的框图;6 is a block diagram of a communication device of a radio frequency device according to an embodiment of the present application;
图7为本申请一实施例中跳频序列生成模块的框图;FIG. 7 is a block diagram of a frequency hopping sequence generating module according to an embodiment of the present application;
图8为本申请一实施例中切换模块的框图;FIG. 8 is a block diagram of a switching module according to an embodiment of the present application; FIG.
图9是本申请一实施例提供的射频设备的通信方法的电子设备的硬件结构示意图。FIG. 9 is a schematic structural diagram of hardware of an electronic device according to a method for communicating a radio frequency device according to an embodiment of the present application.
具体实施方式Detailed ways
为了便于理解本申请,下面将参照相关附图对本申请进行更全面的描述。附图中给出了本申请的较佳的实施例。但是,本申请可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。In order to facilitate the understanding of the present application, the present application will be described more fully hereinafter with reference to the accompanying drawings. Preferred embodiments of the present application are given in the drawings. However, the application can be embodied in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the understanding of the disclosure of the present application will be more thorough.
需要说明的是,当一个元件被认为是“连接”另一个元件,它可以是直接连接到另一个元件或者可能同时存在居中元件。本文所使用的术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。It should be noted that when an element is referred to as "connected" to another element, it can be directly connected to the other element or the central element. The terms "first", "second" and the like, as used herein, are used for the purpose of description only and are not to be construed as indicating or implying relative importance.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。All technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention applies, unless otherwise defined. The terminology used herein is for the purpose of describing particular embodiments, and is not intended to be limiting. The term "and/or" used herein includes any and all combinations of one or more of the associated listed items.
参见图1,示出本申请实施例的射频设备的通信方法和装置的应用场景。射频设备可以为射频发射设备和/或射频接收设备,本申请实施例方案可实现射频发射设备与射频接收设备之间的通信。具体地,无人飞行器可以包括射频发射设备和/或射频接收设备,遥控器可以包括射频接收设备和/或射频发射 设备。例如,在无人飞行器向遥控器传输图像时,无人飞行器作为射频发射端,遥控器作为射频接收端;在遥控器控制无人飞行器的飞行动作时,遥控器作为射频发射端,向作为射频接收端的无人飞行器传输飞行控制指令。Referring to FIG. 1 , an application scenario of a communication method and apparatus of a radio frequency device according to an embodiment of the present application is shown. The radio frequency device can be a radio frequency transmitting device and/or a radio frequency receiving device. The solution in the embodiment of the present application can implement communication between the radio frequency transmitting device and the radio frequency receiving device. Specifically, the unmanned aerial vehicle may include a radio frequency transmitting device and/or a radio frequency receiving device, and the remote controller may include a radio frequency receiving device and/or a radio frequency transmitting device. device. For example, when an unmanned aerial vehicle transmits an image to a remote controller, the unmanned aerial vehicle acts as a radio frequency transmitting end, and the remote controller acts as a radio frequency receiving end; when the remote controller controls the flying motion of the unmanned aerial vehicle, the remote controller acts as a radio frequency transmitting end, and acts as a radio frequency The unmanned aerial vehicle at the receiving end transmits a flight control command.
作为射频发射设备的射频设备包括发射端主芯片610以及与发射端主芯片610相连接的射频发射芯片620;作为射频接收设备的对端设备包括接收端主芯片640以及与接收端主芯片640相连接的射频接收芯片630。射频发射芯片620通过天线650与射频接收芯片630通信,完成跳频通信和数据通信。发射端主芯片610和接收端主芯片640可以采用普通的单片机,这样射频发射设备、射频接收设备两部分都由一片普通的单片机驱动射频收发器就能实现跳频通信。The radio frequency device as the radio frequency transmitting device includes a transmitting end main chip 610 and a radio frequency transmitting chip 620 connected to the transmitting end main chip 610; the opposite end device as the radio frequency receiving device includes the receiving end main chip 640 and the receiving end main chip 640 Connected RF receiving chip 630. The radio frequency transmitting chip 620 communicates with the radio frequency receiving chip 630 through the antenna 650 to complete frequency hopping communication and data communication. The transmitting end main chip 610 and the receiving end main chip 640 can adopt an ordinary single chip microcomputer, so that both the RF transmitting device and the RF receiving device can realize frequency hopping communication by an ordinary single chip driving RF transceiver.
需要说明的是,在本实施例中,射频设备为发射端,即射频发射设备;对端设备为接收端,即射频接收设备。在本申请的不同实施例中,射频设备和对端设备可以分别为射频发射设备和射频接收设备中的任一者。因此,在本申请的其他实施例中,也可以射频设备为接收端,即射频接收设备,对端设备为发射端,即射频发射设备。It should be noted that, in this embodiment, the radio frequency device is a transmitting end, that is, a radio frequency transmitting device; and the opposite end device is a receiving end, that is, a radio frequency receiving device. In various embodiments of the present application, the radio frequency device and the peer device may be any one of a radio frequency transmitting device and a radio frequency receiving device, respectively. Therefore, in other embodiments of the present application, the radio frequency device may be a receiving end, that is, a radio frequency receiving device, and the opposite end device is a transmitting end, that is, a radio frequency transmitting device.
因此,应理解的是,本申请实施例中的“射频设备”和“对端设备”为相对概念,仅用于描述目的,而不能理解为指示或暗示相对重要性。为避免赘述,以下各实施例仅描述射频设备是射频发射设备、对端设备是射频接收设备的情形。本技术领域的普通技术人员可以理解,当射频设备是射频接收设备、而对端设备是射频发射设备的情形与上述情形类型,在此不再赘述。Therefore, it should be understood that the “radio frequency device” and the “peer device” in the embodiments of the present application are relative concepts for the purpose of description, and are not to be construed as indicating or implying relative importance. To avoid redundancy, the following embodiments describe only the case where the radio frequency device is a radio frequency transmitting device and the peer device is a radio frequency receiving device. A person skilled in the art can understand that when the radio frequency device is a radio frequency receiving device and the opposite device is a radio frequency transmitting device, the type of the above situation is not described herein.
图2为本申请一实施例提供的射频设备的通信方法的流程图,该方法包括步骤S110-S140。其中:FIG. 2 is a flowchart of a method for communicating a radio frequency device according to an embodiment of the present disclosure, where the method includes steps S110-S140. among them:
S110:根据射频设备的第一设备标识码信息和对端设备的第二设备标识码信息生成对码信息;S110: Generate code information according to the first device identifier code information of the radio device and the second device identifier information of the peer device.
S120:根据对码信息生成伪随机跳频序列的种子;S120: Generate a seed of a pseudo-random hopping sequence according to the code information.
S130:根据伪随机跳频序列的种子生成跳频序列;S130: Generate a hopping sequence according to a seed of the pseudo-random hopping sequence.
S140:基于跳频序列进行跳频切换。 S140: Perform frequency hopping switching based on a frequency hopping sequence.
通过射频设备的第一设备标识码信息和对端设备的第二设备标识码信息来生成对码信息,利用该对码信息生成伪随机跳频序列种子,进而对应生成跳频序列,最后根据该跳频序列进行跳频切换。根据该跳频序列进行跳频切换,可以有效避免同频、邻频干扰的问题,极大地降低硬件开销和成本。Generating the code information by using the first device identification code information of the radio device and the second device identification code information of the peer device, using the pair of code information to generate a pseudo-random hopping sequence seed, and correspondingly generating a hopping sequence, and finally according to the The frequency hopping sequence performs frequency hopping switching. Performing frequency hopping switching according to the hopping sequence can effectively avoid the problem of co-frequency and adjacent frequency interference, and greatly reduce hardware overhead and cost.
如图3所示,步骤S110进一步包括步骤S101-S103。其中:As shown in FIG. 3, step S110 further includes steps S101-S103. among them:
S101:将射频设备的第一设备标识码信息发送给对端设备;S101: Send the first device identifier information of the radio device to the peer device.
S102:接收对端设备的第二设备标识码信息;S102: Receive second device identification code information of the peer device.
S103:根据射频设备的第一设备标识码信息和对端设备的第二设备标识码信息生成对码信息。S103: Generate code information according to the first device identification code information of the radio device and the second device identification code information of the peer device.
在其中一种实现方式中,可以是射频设备生成对码信息后将该对码信息发送给对端设备,也可以射频设备和对端设备分别生成相同的最终对码信息。对码信息可以是射频设备的第一设备标识码信息和对端设备的第二设备标识码信息的组合,可以是射频设备的第一设备标识码信息中部分数据和对端设备的第二设备标识码信息组合生成,也可以是射频设备的第一设备标识码信息和对端设备的第二设备标识码信息中部分数据组合生成,还可以是射频设备的第一设备标识码信息中部分数据和对端设备的第二设备标识码信息中部分数据组合生成。对码信息的数据长度可以和该射频设备的第一设备标识码信息和/或对端设备的第二设备标识码信息数据长度一样,也可以大于或小于该射频设备的第一设备标识码信息和/或对端设备的第二设备标识码信息的数据长度。In one implementation manner, the radio frequency device may generate the pair of code information and then send the pair of code information to the peer device, or the radio device and the peer device respectively generate the same final code information. The code information may be a combination of the first device identification code information of the radio device and the second device identification code information of the peer device, and may be part of the first device identification code information of the radio device and the second device of the peer device. The identifier code information is generated in combination, and may be generated by combining the first device identification code information of the radio device and the second device identification code information of the peer device, or may be part of the first device identification code information of the radio device. And generating a partial data combination in the second device identifier information of the peer device. The data length of the code information may be the same as the first device identifier information of the radio device and/or the second device identifier information of the peer device, or may be greater than or less than the first device identifier information of the radio device. And/or the data length of the second device identification code information of the peer device.
例如,射频设备的第一设备标识码信息和对端设备的第二设备标识码信息都为5个字节,对码信息是从该射频设备的第一设备标识码信息中提取2个字节、从对端设备的第二设备标识码信息中提取3个字节组成。当然,射频设备的第一设备标识码信息和对端设备的第二设备标识码信息的数据长度可以一样也可以不一样,对码信息可以从射频设备的第一设备标识码信息和对端设备的第二设备标识码信息的数据提取相同长度的数据也可以提取不同 长度的数据。其中该射频设备的第一设备识别码信息可以是唯一的,对端设备的第二设备识别码信息也可以是唯一的,对码信息也可以是唯一的。For example, the first device identification code information of the radio frequency device and the second device identification code information of the peer device are both 5 bytes, and the code information is extracted from the first device identification code information of the radio frequency device by 2 bytes. And extracting 3 bytes from the second device identification code information of the peer device. The data length of the first device identification code information of the radio device and the second device identification code information of the peer device may be the same or different. The code information may be the first device identification code information of the radio device and the peer device. Data of the second device identification code information can be extracted differently by extracting data of the same length Length data. The first device identifier information of the radio device may be unique, and the second device identifier information of the peer device may also be unique, and the code information may also be unique.
射频设备的第一设备标识码信息和对端设备的第二设备标识码信息可以通过编程器等烧写设备将事先规定的固定字节数的设备标识码烧写进射频设备和对端设备中。具体地,可以烧写进单片机(MCU)的Flash存储器中,也可以烧写进专门的Flash存储器中,还可以存储在其他地方。该烧写设备需要能指定具体数字和/或字母,且每次烧写操作后都会自动变化,变化方式可以为递增等方式,以方便工厂的操作人员,以保证每块第一端和对端的设备标识码的唯一性。The first device identification code information of the radio frequency device and the second device identification code information of the peer device may be programmed into the radio device and the peer device by using a programming device or the like to write a predetermined number of fixed device number identification codes into the radio device and the peer device. . Specifically, it can be programmed into the flash memory of the microcontroller (MCU), or it can be written into a special flash memory, and can also be stored elsewhere. The programming device needs to be able to specify specific numbers and/or letters, and will automatically change after each programming operation, and the change manner may be incremental, etc., to facilitate the operator of the factory to ensure the first end and the opposite end of each block. The uniqueness of the device identification code.
进一步地,步骤S103后还包括步骤:发送对码确认信息。该步骤用于使射频设备和对端设备都有相同的最终对码信息。Further, after step S103, the method further includes the step of: sending the code confirmation information. This step is used to make the RF device and the peer device have the same final code information.
下面举例说明,作为发射端(TX)的射频设备与作为接收端(RX)的对端设备之间的对码握手过程:The following is an example of a code handshake process between a radio device acting as a transmitter (TX) and a peer device acting as a receiver (RX):
RX进入监听;RX enters the monitor;
TX向RX发送对码广播,对码广播中包括TX存在Flash的设备标识码,然后进入监听;The TX sends a code broadcast to the RX, and the code broadcast includes a device identification code in which the TX exists in the code, and then enters the monitoring;
RX收到TX发送的对码广播后向TX应答,应答信息中包括TX的设备标识码信息和RX的设备标识码信息,并进入等待TX的对码确认;After receiving the code broadcast sent by the TX, the RX responds to the TX, and the response information includes the device identification code information of the TX and the device identification code information of the RX, and enters the code confirmation of waiting for the TX;
TX收到RX回复的应答信息后再向RX发送对码确认信息,对码确认信息包括TX设备标识码信息和RX设备标识码信息的组合后生成的最终的对码信息;After receiving the response information of the RX reply, the TX sends a pair of code confirmation information to the RX, where the code confirmation information includes the final pair code information generated by combining the TX device identification code information and the RX device identification code information;
待RX收到TX的确认信息后,整个对码过程结束。After the RX receives the TX confirmation message, the entire code matching process ends.
S120:根据对码信息生成伪随机跳频序列的种子;S120: Generate a seed of a pseudo-random hopping sequence according to the code information.
对于步骤S120:根据对码信息生成伪随机跳频序列的种子,进一步包括:For step S120: generating a seed of the pseudo-random hopping sequence according to the code information, further comprising:
获取生成跳频序列的伪随机数的预设个数;调用预设函数生成预设个数的伪随机数; Obtaining a preset number of pseudo-random numbers that generate a hopping sequence; calling a preset function to generate a preset number of pseudo-random numbers;
根据伪随机数生成跳频序列。A hopping sequence is generated based on the pseudo random number.
其中,调用预设函数生成预设个数的伪随机数的步骤,进一步包括:调用预设函数生成伪随机数,将伪随机数进行过滤,去除重复的伪随机数,直至伪随机数达到预设个数。The step of calling the preset function to generate a preset number of pseudo random numbers further includes: calling a preset function to generate a pseudo random number, filtering the pseudo random number, and removing the repeated pseudo random number until the pseudo random number reaches the pre Set a number.
射频设备和对端设备对码成功后会生成两者共有的、唯一的最终对码信息,将最终对码信息或该最终对码信息中的某个数据作为生成伪随机跳频序列的种子,两者采用同样预设函数,生成伪随机数,然后将伪随机数生成跳频序列,该跳频序列唯一。预设函数可以根据需要自行选择现有的函数或自行编写一个获取随机数的函数,可以是C语言函数、java函数等。After the pair of the RF device and the peer device succeeds, the unique final code information shared by the two is generated, and the data of the final code information or the final code information is used as a seed for generating a pseudo random hopping sequence. Both use the same preset function to generate a pseudo-random number, and then generate a hopping sequence from the pseudo-random number, which is unique. The preset function can select an existing function or write a function for obtaining a random number according to its needs, which can be a C language function, a java function, or the like.
在一个实施例中,如图4所示,为根据伪随机跳频序列的种子,生成跳频序列的步骤的流程图,具体包括以下步骤S210-260:In an embodiment, as shown in FIG. 4, which is a flowchart of a step of generating a frequency hopping sequence according to a seed of a pseudo-random hopping sequence, specifically including the following steps S210-260:
S210:读取对码信息转成伪随机函数的种子。S210: Read the seed of the code information into a pseudo random function.
S220:设置伪随机数的预设个数。S220: Set a preset number of pseudo random numbers.
S230:调用函数生成一个伪随机数。S230: The calling function generates a pseudo random number.
S240:过滤伪随机数,避免序列中有重复数据。S240: Filter pseudo-random numbers to avoid duplicate data in the sequence.
S250:判断伪随机数是否已经达到预设个数。如果伪随机数未达到预设个数,返回上述步骤S230;直至伪随机数达到预设个数,此时伪随机序列完成,执行步骤S260。S250: Determine whether the pseudo random number has reached a preset number. If the pseudo random number does not reach the preset number, the process returns to the above step S230; until the pseudo random number reaches the preset number, and the pseudo random sequence is completed, and step S260 is performed.
S260:保存伪随机数序列用于跳频通信。S260: Save the pseudo random number sequence for frequency hopping communication.
在一个实施例中,基于跳频序列进行跳频切换包括:发送包含跳频信息的信息,其中,跳频信息包括但不限于下一个频点信息、跳频序列;射频设备的通讯频点切换到下一个频点;在一个频点的通信完成后,射频设备再发送包含跳频信息的信息的步骤。其中,上述的频点信息中反应了对固定频率的编号;跳频序列指的是用于控制载波频率跳变的地址码序列,当许多设备在同一频段同时跳频工作时,跳频序列是区分每个设备的唯一标志。In an embodiment, performing frequency hopping switching based on the frequency hopping sequence includes: transmitting information including frequency hopping information, where the frequency hopping information includes but is not limited to the next frequency point information, a frequency hopping sequence, and the communication frequency point switching of the radio frequency device To the next frequency point; after the communication of one frequency point is completed, the RF device resends the information including the frequency hopping information. Wherein, the frequency information in the above reflects the number of the fixed frequency; the frequency hopping sequence refers to the address code sequence used to control the carrier frequency hopping. When many devices are simultaneously hopping in the same frequency band, the hopping sequence is Distinguish the unique flag of each device.
在一个实施例中,跳频信息中还包括备用频点信息,当跳频同步失败后 通讯频点切换到备用频点。In an embodiment, the frequency hopping information further includes alternate frequency point information, when the frequency hopping synchronization fails. The communication frequency is switched to the alternate frequency point.
在一个实施例中,发送包含跳频信息的信息后还包括等待发送完成的步骤,如果发送完成则执行进入接收状态步骤,如果发送未完成则延迟重新发送。In one embodiment, after transmitting the information including the frequency hopping information, the step of waiting for the transmission to be completed is further included, and if the transmission is completed, the step of entering the reception state is performed, and if the transmission is not completed, the retransmission is delayed.
在一个实施例中,如图5所示,为射频设备进行跳频通信握手程序的流程图。在图5中,以本申请实施例中的该射频设备作为射频发射设备进行举例说明,本领域技术人员应理解的是,当以本申请实施例中的该射频设备作为射频接收设备进行跳频通信握手程序时,程序类似,但为逆过程。因此,为避免赘述,在此不再举例说明后一种情况。具体地,作为射频发射设备的本实施例的射频设备进行跳频通信握手程序包括以下步骤S310-S380:In one embodiment, as shown in FIG. 5, a flow chart of a frequency hopping communication handshake procedure for a radio frequency device is shown. In FIG. 5, the radio frequency device in the embodiment of the present application is used as a radio frequency transmitting device for hopping, and the person skilled in the art should understand that the radio frequency device in the embodiment of the present application is used as a radio frequency receiving device for frequency hopping. When the communication handshake program is used, the program is similar, but it is the reverse process. Therefore, in order to avoid redundancy, the latter case will not be exemplified here. Specifically, performing the frequency hopping communication handshake procedure by the radio frequency device of the embodiment of the radio frequency transmitting device includes the following steps S310-S380:
S310:频点切换阶段。S310: Frequency switching phase.
S320:发送阶段,发送的信息中包括跳频信息,跳频信息包括下一个频点信息、跳频序列和备用频点信息。S320: In the sending phase, the sent information includes frequency hopping information, and the frequency hopping information includes a next frequency point information, a frequency hopping sequence, and an alternate frequency point information.
S330:等待发送完成阶段,如果发送完成,则执行步骤S350;如果发送未完成,则执行步骤S340:S330: Waiting for the transmission completion phase, if the transmission is completed, executing step S350; if the transmission is not completed, executing step S340:
S340:延迟发送阶段,如果延时发送完成则返回步骤S320,如果延时发送未完成则继续执行步骤S340。S340: The delayed transmission phase returns to step S320 if the delayed transmission is completed, and proceeds to step S340 if the delayed transmission is not completed.
S350:发送转接收阶段。S350: Send and receive phase.
当步骤S350执行后,继续执行以下步骤:After the step S350 is performed, the following steps are continued:
S360:接收阶段,接收数据。S360: Receive phase, receiving data.
S370:跳频阶段。S370: Frequency hopping phase.
S380:接收到发送的切换阶段,结束或返回步骤S320。S380: Receiving the switching phase of the transmission, ending or returning to step S320.
具体地,首先生成一个跳频序列,如跳频序列为hop_map[HOP_MAX_INDEX]={3,6,9,12,15,18,21,24,27,30,35,40,43,4,60,10};程序中会生成一个随机数cur_head,cur_head为下一个频点信息,取值范围在0~HOP_MAX_INDEX。next_index初始等于cur_head,第一个跳频是时先从 hop[next_index]开始跳,下一个频点就是hop[++next_index],循环跳一周,即HOP_MAX_INDEX个数。程序中还会生成一个随机数next_head,next_head为备用频点信息,取值范围在0~HOP_MAX_INDEX。next_head用于在跳频同步失败后,预测新的频点的,此时会把cur_head=next_head。再进行循环扫频。Specifically, first generate a hopping sequence, such as hop_map[HOP_MAX_INDEX]={3,6,9,12,15,18,21,24,27,30,35,40,43,4,60 , 10}; The program will generate a random number cur_head, cur_head for the next frequency information, the value range is 0 ~ HOP_MAX_INDEX. Next_index is initially equal to cur_head, the first hop is from the first Hop[next_index] starts to jump, the next frequency point is hop[++next_index], and the loop jumps one week, that is, the number of HOP_MAX_INDEX. A random number next_head is also generated in the program, and next_head is the alternate frequency information, which ranges from 0 to HOP_MAX_INDEX. Next_head is used to predict the new frequency point after the frequency hopping synchronization fails. At this time, cur_head=next_head will be used. Then perform a cyclic sweep.
上述实施方式中的射频设备的通信方法,利用出厂时给包括射频发射设备和射频接收设备在内的每块设备标定的唯一的设备标识码,通过实现对码信息的唯一性,再利用该唯一的对码信息产生一组随机的跳频序列,配对成功后的射频发射设备和射频接收设备都基于该组跳频序列实现同步、握手、应答等通信。有效避免同频、邻频干扰的问题,极大地降低硬件开销和成本。The communication method of the radio frequency device in the above embodiment uses a unique device identification code that is calibrated for each device including the radio frequency transmitting device and the radio frequency receiving device at the time of shipment, and realizes the uniqueness of the code information, and then uses the unique The pair of code information generates a set of random frequency hopping sequences. After successful pairing, the RF transmitting device and the RF receiving device implement synchronization, handshake, and response communication based on the set of hopping sequences. Effectively avoid the problems of co-frequency and adjacent-frequency interference, greatly reducing hardware overhead and cost.
图6是本申请一实施例提供的射频跳频的通信装置的框图。当本申请实施例的射频跳频的通信装置作为发射端时,该射频跳频的通信装置包括图1中所示的发射端主芯片610以及与发射端主芯片610相连接的射频发射芯片620。射频发射芯片620通过天线650与作为对端的接收端通信,即,与对端的射频接收芯片630通信,完成跳频通信和数据通信。发射端主芯片610和接收端主芯片640可以采用普通的单片机,这样射频发射设备、射频接收设备两部分都由一片普通的单片机驱动射频收发器就能实现跳频通信。FIG. 6 is a block diagram of a communication device for radio frequency hopping according to an embodiment of the present application. When the radio frequency hopping communication device of the embodiment of the present application is used as a transmitting end, the radio frequency hopping communication device includes the transmitting end main chip 610 shown in FIG. 1 and the radio frequency transmitting chip 620 connected to the transmitting end main chip 610. . The radio frequency transmitting chip 620 communicates with the receiving end as the opposite end through the antenna 650, that is, communicates with the radio receiving chip 630 of the opposite end to complete frequency hopping communication and data communication. The transmitting end main chip 610 and the receiving end main chip 640 can adopt an ordinary single chip microcomputer, so that both the RF transmitting device and the RF receiving device can realize frequency hopping communication by an ordinary single chip driving RF transceiver.
当本申请实施例的射频跳频的通信装置作为接收端时,该射频跳频的通信装置包括图1中所示的接收端主芯片640以及与接收端主芯片640相连接的射频接收芯片630。作为对端的发射端通过天线650与射频接收芯片630通信,即,发射端的射频发射芯片620通过天线650与射频接收芯片630通信,完成跳频通信和数据通信。发射端主芯片610和接收端主芯片640可以采用普通的单片机,这样射频发射设备、射频接收设备两部分都由一片普通的单片机驱动射频收发器就能实现跳频通信。When the radio frequency hopping communication device of the embodiment of the present application is used as the receiving end, the radio frequency hopping communication device includes the receiving end main chip 640 shown in FIG. 1 and the radio frequency receiving chip 630 connected to the receiving end main chip 640. . The transmitting end as the opposite end communicates with the radio frequency receiving chip 630 through the antenna 650, that is, the radio frequency transmitting chip 620 of the transmitting end communicates with the radio frequency receiving chip 630 through the antenna 650 to complete frequency hopping communication and data communication. The transmitting end main chip 610 and the receiving end main chip 640 can adopt an ordinary single chip microcomputer, so that both the RF transmitting device and the RF receiving device can realize frequency hopping communication by an ordinary single chip driving RF transceiver.
需要说明的是,在本实施例中,射频设备为发射端,即射频发射设备;对端设备为接收端,即射频接收设备。在本申请的不同实施例中,射频设备 和对端设备可以分别为射频发射设备和射频接收设备中的任一者。因此,在本申请的其他实施例中,也可以射频设备为接收端,即射频接收设备,对端设备为发射端,即射频发射设备。It should be noted that, in this embodiment, the radio frequency device is a transmitting end, that is, a radio frequency transmitting device; and the opposite end device is a receiving end, that is, a radio frequency receiving device. In various embodiments of the present application, a radio frequency device The peer device and the peer device may be any one of a radio frequency transmitting device and a radio frequency receiving device, respectively. Therefore, in other embodiments of the present application, the radio frequency device may be a receiving end, that is, a radio frequency receiving device, and the opposite end device is a transmitting end, that is, a radio frequency transmitting device.
因此,在本实施例中,仅对本申请的实施例的射频设备作为射频发射设备进行通信的情况进行描述,而本申请的实施例的射频设备作为对端设备,即射频接收设备进行通信的情况与此对应,为避免赘述,不再举例说明。Therefore, in this embodiment, only the case where the radio frequency device of the embodiment of the present application communicates as the radio frequency transmitting device is described, and the radio device of the embodiment of the present application communicates as the peer device, that is, the radio frequency receiving device. Corresponding to this, in order to avoid redundancy, it will not be exemplified.
具体地,无人飞行器可以包括射频发射设备和/或射频接收设备,遥控器可以包括射频接收设备和/或射频发射设备。例如,在无人飞行器向遥控器传输图像时,无人飞行器作为射频发射端,遥控器作为射频接收端;在遥控器控制无人飞行器的飞行动作时,遥控器作为射频发射端,向作为射频接收端的无人飞行器传输飞行控制指令。Specifically, the unmanned aerial vehicle may include a radio frequency transmitting device and/or a radio frequency receiving device, and the remote controller may include a radio frequency receiving device and/or a radio frequency transmitting device. For example, when an unmanned aerial vehicle transmits an image to a remote controller, the unmanned aerial vehicle acts as a radio frequency transmitting end, and the remote controller acts as a radio frequency receiving end; when the remote controller controls the flying motion of the unmanned aerial vehicle, the remote controller acts as a radio frequency transmitting end, and acts as a radio frequency The unmanned aerial vehicle at the receiving end transmits a flight control command.
如图6所示,该射频跳频的通信装置包括对码模块510、种子生成模块520、跳频序列生成模块530和切换模块540。其中对码模块510用于根据所述射频设备的第一设备标识码信息和对端设备的第二设备标识码信息生成对码信息。种子生成模块520用于根据对码信息生成伪随机跳频序列的种子。跳频序列生成模块530用于根据伪随机跳频序列的种子生成跳频序列。切换模块540用于基于跳频序列进行跳频切换。在不同实现方式中,对码模块510、种子生成模块520、跳频序列生成模块530和切换模块540可以为飞控模块、图传模块、微控制器单元、微处理器单元中的任意一种。As shown in FIG. 6, the radio frequency hopping communication device includes a pair code module 510, a seed generation module 520, a frequency hopping sequence generation module 530, and a switching module 540. The pair code module 510 is configured to generate the code information according to the first device identification code information of the radio frequency device and the second device identification code information of the peer device. The seed generation module 520 is configured to generate a seed of the pseudo-random hopping sequence according to the pair of code information. The hopping sequence generation module 530 is configured to generate a hopping sequence according to the seed of the pseudorandom hopping sequence. The switching module 540 is configured to perform frequency hopping switching based on a frequency hopping sequence. In different implementations, the code module 510, the seed generation module 520, the frequency hopping sequence generation module 530, and the switching module 540 may be any one of a flight control module, a picture transmission module, a microcontroller unit, and a microprocessor unit. .
对码模块510通过射频设备的第一设备识别码信息和对端设备的第二设备标识码信息来生成的对码信息。跳频序列生成模块530根据对码信息生成跳频序列。根据该跳频序列进行跳频切换,可以有效避免同频、邻频干扰的问题,极大地降低硬件开销和成本。The pairing code information generated by the code module 510 through the first device identification code information of the radio frequency device and the second device identification code information of the peer device. The hopping sequence generation module 530 generates a hopping sequence based on the pair of code information. Performing frequency hopping switching according to the hopping sequence can effectively avoid the problem of co-frequency and adjacent frequency interference, and greatly reduce hardware overhead and cost.
图7是一实施例中跳频序列生成模块的框图,其中,该跳频序列生成模块530包括预设个数获取单元531、伪随机数生成单元532和序列生成单元533。其中预设个数获取单元531用于获取生成跳频序列的伪随机数的预设个 数;伪随机数生成单元532用于调用预设函数生成预设个数的伪随机数;序列生成单元533用于将伪随机数生成跳频序列。其中,伪随机数生成单元532调用预设函数生成预设个数的伪随机数,包括:调用预设函数生成伪随机数,去除重复的伪随机数,直至伪随机数达到预设个数。FIG. 7 is a block diagram of a hopping sequence generation module in an embodiment, wherein the hopping sequence generation module 530 includes a preset number acquisition unit 531, a pseudo random number generation unit 532, and a sequence generation unit 533. The preset number obtaining unit 531 is configured to acquire a preset number of pseudo random numbers for generating a hopping sequence. The pseudo random number generating unit 532 is configured to call a preset function to generate a preset number of pseudo random numbers; the sequence generating unit 533 is configured to generate a hopping sequence by the pseudo random number. The pseudo random number generating unit 532 calls the preset function to generate a preset number of pseudo random numbers, including: calling a preset function to generate a pseudo random number, and removing the repeated pseudo random numbers until the pseudo random number reaches a preset number.
在其中一种实现方式中,射频设备生成对码信息,然后将该对码信息发送给对端设备;在另一种实现方式中,射频设备和对端设备分别生成对码信息。对码信息可以是该射频设备的第一设备标识码信息和对端的第二设备标识码信息的组合,也可以是该射频设备的的第一设备标识码信息中部分数据和对端设备的第二设备标识码信息组合生成,也可以是该射频设备的第一设备标识码信息和对端设备的第二设备标识码信息中部分数据组合生成,也可以是该射频设备的第一设备标识码信息中部分数据和对端设备的第二设备标识码信息中部分数据组合生成。对码信息的数据长度可以和该射频设备的第一设备标识码信息或对端设备的第二设备标识码信息数据长度一样,也可以大于或小于该射频设备的第一设备标识码信息和对端设备的第二设备标识码信息的数据长度。如该射频设备的第一设备标识码信息和对端设备的第二设备标识码信息都为5个字节,对码信息是从第一设备标识码信息中提取2个字节、第二设备标识码信息中提取3个字节组成。当然该射频设备的第一设备标识码信息和对端设备的第二设备标识码信息的数据长度可以一样也可以不一样,对码信息可以从第一设备标识码信息和第二设备标识码信息的数据提取相同长度的数据也可以提取不同长度的数据。In one implementation, the radio frequency device generates the pair of code information, and then sends the pair of code information to the peer device. In another implementation manner, the radio frequency device and the peer device respectively generate the code information. The code information may be a combination of the first device identification code information of the radio frequency device and the second device identification code information of the opposite end, or may be part of the first device identification code information of the radio frequency device and the peer device The device identification code information may be generated by combining the first device identification code information of the radio device with the second device identification code information of the peer device, or may be the first device identification code of the radio device. A part of the data in the information is combined with a part of the data in the second device identification code information of the peer device. The data length of the code information may be the same as the first device identifier information of the radio device or the second device identifier information of the peer device, or may be greater than or less than the first device identifier information and the pair of the radio device. The data length of the second device identification code information of the end device. For example, the first device identification code information of the radio frequency device and the second device identification code information of the peer device are both 5 bytes, and the code information is extracted from the first device identification code information by 2 bytes, and the second device The identification code information is extracted by 3 bytes. The data length of the first device identification code information of the radio device and the second device identification code information of the peer device may be the same or different. The code information may be from the first device identification code information and the second device identification code information. Data extraction of the same length of data can also extract data of different lengths.
具体的,该射频设备的第一设备标识码信息和对端设备的第二设备标识码信息可以通过编程器等烧写设备将事先规定的固定字节数的设备标识码烧写进该射频设备和对端设备中。具体的,可以烧写进单片机(MCU)的Flash存储器中,也可以烧写进专门的Flash存储器中,还可以存储在其他地方。该烧写设备需要能指定具体数字和/或字母,且每次烧写操作后都会自动变化,变化方式可以为递增等方式,以方便工厂的操作人员,以保证每块射频设备 和/或对端设备的设备标识码信息的唯一性。Specifically, the first device identification code information of the radio frequency device and the second device identification code information of the peer device may be programmed into the radio frequency device by using a programming device or the like to write a predetermined fixed number of device identification codes into the radio device. And in the peer device. Specifically, it can be written into the flash memory of the microcontroller (MCU), or it can be written into a special flash memory, and can also be stored elsewhere. The programming device needs to be able to specify specific numbers and/or letters, and will automatically change after each programming operation. The change mode can be incremental, etc., to facilitate the operator of the factory to ensure each RF device. And/or the uniqueness of the device identification code information of the peer device.
进一步地,跳频序列生成模块用于发送对码确认信息。用于该射频设备和对端设备都有相同的最终对码信息。其中该射频设备为射频发射设备,对端设备为射频接收设备,也可以该射频设备为射频接收设备,对端设备为射频发射设备。Further, the frequency hopping sequence generating module is configured to send the code confirmation information. Both the RF device and the peer device have the same final code information. The radio device is a radio frequency transmitting device, the peer device is a radio frequency receiving device, and the radio device is a radio frequency receiving device, and the peer device is a radio frequency transmitting device.
下面举例说明,作为发射端(TX)的射频设备和作为接收端(RX)的对端设备之间的对码握手过程:The following example illustrates the code handshake process between the RF device acting as the transmitting end (TX) and the peer device acting as the receiving end (RX):
RX进入监听;RX enters the monitor;
TX向RX发送对码广播,对码广播中包括TX存在Flash的设备标识码,然后进入监听;The TX sends a code broadcast to the RX, and the code broadcast includes a device identification code in which the TX exists in the code, and then enters the monitoring;
RX收到TX发送的对码广播后向TX应答,应答信息中包括TX的设备标识码信息和RX的设备标识码信息,并进入等待TX的对码确认;After receiving the code broadcast sent by the TX, the RX responds to the TX, and the response information includes the device identification code information of the TX and the device identification code information of the RX, and enters the code confirmation of waiting for the TX;
TX收到RX回复的应答信息后再向RX发送对码确认信息,对码确认信息包括TX设备标识码信息和RX设备标识码信息的组合后生成的最终的对码信息;After receiving the response information of the RX reply, the TX sends a pair of code confirmation information to the RX, where the code confirmation information includes the final pair code information generated by combining the TX device identification code information and the RX device identification code information;
待RX收到TX的确认信息后,整个对码过程结束。After the RX receives the TX confirmation message, the entire code matching process ends.
射频设备和对端设备对码成功后会生成两者共有的的对码信息,将对码信息或对码信息中的某个数据作为生成伪随机跳频序列的种子,两者采用同样预设函数,生成伪随机数,然后将伪随机数生成跳频序列。生成同样的一组跳频序列,且唯一。预设函数可以根据需要自行选择现有的函数或自行编写一个获取随机数的函数,可以是C语言函数、java函数等。After the pair of the RF device and the peer device succeeds, the pair of code information shared by the two devices is generated, and a certain data in the code information or the code information is used as a seed for generating a pseudo-random hopping sequence. The function generates a pseudo-random number and then generates a hopping sequence from the pseudo-random number. Generate the same set of hopping sequences, and unique. The preset function can select an existing function or write a function for obtaining a random number according to its needs, which can be a C language function, a java function, or the like.
图8是一实施例中切换模块的框图,具体的,该切换模块540包括发送子单元541、切换执行子单元542和返回子单元543。该发送子单元541用于发送包含跳频信息的信息,其中,跳频信息包括下一个频点信息、跳频序列。切换执行子单元542用于通讯频点切换到下一个频点;返回子单元543用于返回至发送包含跳频信息的信息的步骤。 FIG. 8 is a block diagram of a handover module in an embodiment. Specifically, the handover module 540 includes a transmission subunit 541, a handover execution subunit 542, and a return subunit 543. The transmitting subunit 541 is configured to send information including frequency hopping information, where the frequency hopping information includes a next frequency point information and a frequency hopping sequence. The handover execution sub-unit 542 is configured to switch the communication frequency point to the next frequency point; the return sub-unit 543 is configured to return to the step of transmitting information including the frequency hopping information.
进一步地,其中跳频信息中还包括备用频点信息,切换模块还包括备用子单元,用于当跳频同步失败后通讯频点切换到备用频点。Further, the frequency hopping information further includes the alternate frequency point information, and the switching module further includes a standby subunit, configured to switch the communication frequency point to the standby frequency point after the frequency hopping synchronization fails.
进一步地,切换模块还包括延时单元,该延时单元用于发送包含跳频信息的信息后进入计时器等待发送完成的步骤,如果发送完成则执行进入接收状态步骤,如果发送未完成则延迟重新发送。Further, the switching module further includes a delay unit, configured to send the information including the frequency hopping information and enter the timer to wait for the transmission to complete, if the sending is completed, the step of entering the receiving state is performed, and if the sending is not completed, the delay is performed. Resend.
下面举例说明,先生成一个跳频序列,如跳频序列为hop_map[HOP_MAX_INDEX]={3,6,9,12,15,18,21,24,27,30,35,40,43,4,60,10};程序中会生成一个随机数cur_head,cur_head为下一个频点信息,取值范围在0~HOP_MAX_INDEX。next_index初始等于cur_head,第一个跳频是时先从hop[next_index]开始跳,下一个频点就是hop[++next_index],循环跳一周,即HOP_MAX_INDEX个数。程序中还会生成一个随机数next_head,next_head为备用频点信息,取值范围在0~HOP_MAX_INDEX。next_head用于在跳频同步失败后,预测新的频点的,此时会把cur_head=next_head。再进行循环扫频。The following example shows that Mr. becomes a hopping sequence, such as hop_map[HOP_MAX_INDEX]={3,6,9,12,15,18,21,24,27,30,35,40,43,4, 60, 10}; a random number cur_head is generated in the program, and cur_head is the next frequency information, which ranges from 0 to HOP_MAX_INDEX. Next_index is initially equal to cur_head. The first frequency hopping starts with hop[next_index], the next frequency point is hop[++next_index], and the loop jumps for one week, that is, the number of HOP_MAX_INDEX. A random number next_head is also generated in the program, and next_head is the alternate frequency information, which ranges from 0 to HOP_MAX_INDEX. Next_head is used to predict the new frequency point after the frequency hopping synchronization fails. At this time, cur_head=next_head will be used. Then perform a cyclic sweep.
在一个实施例中,本申请的对码模块510、种子生成模块520、跳频序列生成模块530和切换模块540可以为飞控模块、图传模块、微控制器单元、微处理器单元中的任意一种。In an embodiment, the code module 510, the seed generation module 520, the frequency hopping sequence generation module 530, and the switching module 540 of the present application may be in a flight control module, a picture transmission module, a microcontroller unit, and a microprocessor unit. Any one.
本申请实施例还涉及一种电子设备,图9是本申请实施例提供的射频设备的通信方法的电子设备600的硬件结构示意图。如图9所示,该电子设备600包括:一个或多个处理器610以及存储器620,图9中以一个处理器610为例。The embodiment of the present application further relates to an electronic device, and FIG. 9 is a schematic diagram of a hardware structure of the electronic device 600 according to the communication method of the radio frequency device provided by the embodiment of the present application. As shown in FIG. 9, the electronic device 600 includes one or more processors 610 and a memory 620. One processor 610 is exemplified in FIG.
处理器610和存储器620可以通过总线或者其他方式连接,图9中以通过总线连接为例。The processor 610 and the memory 620 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器620作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的射频设备的通信方法对应的程序指令/模块(例如,附图6所示的对码模块510、 切换模块540等)。处理器610通过运行存储在存储器620中的非易失性软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现图2-5所示的方法实施例中所述的射频设备的通信方法。The memory 620 is a non-volatile computer readable storage medium, and is applicable to a non-volatile software program, a non-volatile computer-executable program, and a module, such as a communication method of a radio frequency device in the embodiment of the present application. Program instructions/modules (eg, the code module 510 shown in FIG. 6, Switching module 540, etc.). The processor 610 executes various functional applications and data processing of the electronic device by executing non-volatile software programs, instructions, and modules stored in the memory 620, that is, as described in the method embodiments illustrated in FIGS. 2-5. The communication method of the RF device.
本申请还提供一种遥控器,其包括第一射频设备,该遥控器用于与移动物体的第二射频设备通过进行通信,以对该移动物体进行控制。该遥控器的第一射频设备执行图1-5所示的射频设备的通信方法的全部或者部分步骤。该第一射频设备包括:The present application also provides a remote controller including a first radio frequency device for communicating with a second radio frequency device of a moving object to control the moving object. The first radio device of the remote controller performs all or part of the steps of the communication method of the radio device shown in FIGS. 1-5. The first radio frequency device includes:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上述任一个示例性实施例所示出的射频设备的通信方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as illustrated in any of the above-described exemplary embodiments The communication method of the RF device.
在一些实施例中,所述移动物体为无人飞行器(unmanned aerial vehicle,UAV)、遥控战车、轮船或机器人。In some embodiments, the moving object is an unmanned aerial vehicle (UAV), a remotely piloted vehicle, a ship, or a robot.
本申请实施例还提供一种无人飞行器,通过遥控器控制器飞行,所述无人飞行器包括机身,所述机身包括第二射频设备、中心壳体和与所述中心壳体连接的机臂;所述机身的所述第二射频设备用于与遥控器的第一射频设备通过无线通信进行连接。其中,所述无人飞行器的第二射频设备执行图1-5所示的射频设备的通信方法的全部或者部分步骤。该第二射频设备包括:An embodiment of the present application further provides an unmanned aerial vehicle that is operated by a remote controller including a fuselage, the airframe including a second radio frequency device, a center housing, and a connection with the center housing. The second radio device of the airframe is configured to be connected to the first radio frequency device of the remote controller by wireless communication. Wherein, the second radio frequency device of the UAV performs all or part of the steps of the communication method of the radio frequency device shown in FIG. 1-5. The second radio frequency device includes:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上述任一个示例性实施例所示出的射频设备的通信方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as illustrated in any of the above-described exemplary embodiments The communication method of the RF device.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。基 于这样的理解,上述技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware. Base In such an understanding, the above technical solution may be embodied in the form of a software product in essence or in a contribution to the related art, and the computer software product may be stored in a computer readable storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
上述实施方式中,利用出厂时给包括射频发射设备和射频接收设备在内的每块设备标定的唯一的设备标识码,通过实现对码信息的唯一性,再利用该唯一的对码信息产生一组随机的跳频序列,配对成功后的射频发射设备和射频接收设备都基于该组跳频序列实现同步、握手、应答等通信。有效避免同频、邻频干扰的问题,极大地降低硬件开销和成本。In the foregoing implementation manner, by using a unique device identification code that is calibrated for each device including the radio frequency transmitting device and the radio frequency receiving device at the time of shipment, by implementing the uniqueness of the code information, the unique pairing code information is used to generate one. A random hopping sequence is set. After the pairing is successful, the RF transmitting device and the RF receiving device perform synchronization, handshake, and response communication based on the set of hopping sequences. Effectively avoid the problems of co-frequency and adjacent-frequency interference, greatly reducing hardware overhead and cost.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利保护范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; in the idea of the present application, the technical features in the above embodiments or different embodiments may also be combined. The steps may be carried out in any order, and there are many other variations of the various aspects of the present application as described above, which are not provided in the details for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, The skilled person should understand that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the embodiments of the present application. The scope of the technical solution.

Claims (22)

  1. 一种射频设备的通信方法,其特征在于,包括:A communication method for a radio frequency device, comprising:
    根据所述射频设备的第一设备标识码信息和对端设备的第二设备标识码信息生成对码信息;Generating the code information according to the first device identification code information of the radio frequency device and the second device identification code information of the peer device;
    根据所述对码信息生成伪随机跳频序列的种子;Generating a seed of a pseudo-random hopping sequence according to the pair of code information;
    根据所述伪随机跳频序列的种子生成跳频序列;Generating a frequency hopping sequence according to the seed of the pseudo random frequency hopping sequence;
    基于所述跳频序列进行跳频切换。Frequency hopping switching is performed based on the frequency hopping sequence.
  2. 根据权利要求1所述的射频设备的通信方法,其特征在于,所述根据所述伪随机跳频序列的种子生成跳频序列,包括:The communication method of the radio frequency device according to claim 1, wherein the generating a hopping sequence according to the seed of the pseudo random hopping sequence comprises:
    获取生成跳频序列的伪随机数的预设个数;Obtaining a preset number of pseudo-random numbers that generate a hopping sequence;
    调用预设函数生成预设个数的伪随机数;Calling a preset function to generate a preset number of pseudo-random numbers;
    根据伪随机数生成跳频序列。A hopping sequence is generated based on the pseudo random number.
  3. 根据权利要求2所述的射频设备的通信方法,其特征在于,The communication method of a radio frequency device according to claim 2, characterized in that
    所述调用预设函数生成预设个数的伪随机数,包括:The calling preset function generates a preset number of pseudo random numbers, including:
    调用预设函数生成伪随机数,去除重复伪随机数,直至伪随机数达到预设个数。The preset function is called to generate a pseudo random number, and the repeated pseudo random number is removed until the pseudo random number reaches a preset number.
  4. 根据权利要求1至3中任一所述的射频设备的通信方法,其特征在于,所述基于所述跳频序列进行跳频切换,包括:The communication method of the radio frequency device according to any one of claims 1 to 3, wherein the performing frequency hopping switching based on the frequency hopping sequence comprises:
    发送包含跳频信息的信息,其中,所述跳频信息包括下一个频点信息、跳频序列;Transmitting information including frequency hopping information, where the frequency hopping information includes a next frequency point information and a frequency hopping sequence;
    将通讯频点切换到所述下一个频点;Switching the communication frequency point to the next frequency point;
    返回至所述发送包含跳频信息的信息的步骤。 Returning to the step of transmitting information including frequency hopping information.
  5. 根据权利要求4所述的射频设备的通信方法,其特征在于,所述跳频信息还包括备用频点信息,当跳频同步失败后通讯频点切换到所述备用频点。The communication method of the radio frequency device according to claim 4, wherein the frequency hopping information further comprises alternate frequency point information, and the communication frequency point is switched to the standby frequency point when the frequency hopping synchronization fails.
  6. 一种计算机存储介质,其特征在于,所述计算机存储介质可存储有程序,所述程序执行包括如权利要求1-5中任一项方法所述的步骤。A computer storage medium, characterized in that the computer storage medium can store a program, the program executing the steps comprising the method of any of claims 1-5.
  7. 一种射频设备的通信装置,其特征在于,包括:A communication device for a radio frequency device, comprising:
    对码模块,用于根据所述射频设备的第一设备标识码信息和对端设备的第二设备标识码信息生成对码信息;The code module is configured to generate the code information according to the first device identification code information of the radio frequency device and the second device identification code information of the peer device;
    种子生成模块,用于根据所述对码信息生成伪随机跳频序列的种子;a seed generation module, configured to generate a seed of a pseudo-random hopping sequence according to the pair of code information;
    跳频序列生成模块,用于根据所述伪随机跳频序列的种子生成跳频序列;a frequency hopping sequence generating module, configured to generate a hopping sequence according to the seed of the pseudo random hopping sequence;
    切换模块,用于基于所述跳频序列进行跳频切换。And a switching module, configured to perform frequency hopping switching based on the frequency hopping sequence.
  8. 根据权利要求7所述的射频设备的通信装置,其特征在于,所述跳频序列生成模块,包括:The communication device of the radio frequency device according to claim 7, wherein the frequency hopping sequence generating module comprises:
    预设个数获取单元,用于获取生成跳频序列的伪随机数的预设个数;a preset number obtaining unit, configured to acquire a preset number of pseudo random numbers for generating a hopping sequence;
    伪随机数生成单元,用于调用预设函数生成预设个数的伪随机数;a pseudo random number generating unit, configured to call a preset function to generate a preset number of pseudo random numbers;
    序列生成单元,用于将伪随机数生成跳频序列。a sequence generating unit, configured to generate a hopping sequence by using a pseudo random number.
  9. 根据权利要求8所述的射频设备的通信装置,其特征在于,所述伪随机数生成单元调用预设函数生成预设个数的伪随机数,包括:The communication device of the radio frequency device according to claim 8, wherein the pseudo random number generating unit calls a preset function to generate a preset number of pseudo random numbers, including:
    调用预设函数生成伪随机数,去除重复的伪随机数,直至伪随机数达到预设个数。The preset function is called to generate a pseudo-random number, and the repeated pseudo-random number is removed until the pseudo-random number reaches a preset number.
  10. 根据权利要求7至9中任一所述的射频设备的通信装置,其特征在于,所述切换模块包括: The communication device of the radio frequency device according to any one of claims 7 to 9, wherein the switching module comprises:
    发送子单元,用于发送包含跳频信息的信息,其中,所述跳频信息包括下一个频点信息、跳频序列;a sending subunit, configured to send information including frequency hopping information, where the frequency hopping information includes a next frequency point information and a frequency hopping sequence;
    切换执行子单元,用于将通讯频点切换到下一个频点;Switching the execution subunit for switching the communication frequency point to the next frequency point;
    返回子单元,用于返回至所述发送包含跳频信息的信息的步骤。Returning to the subunit for returning to the step of transmitting the information including the frequency hopping information.
  11. 根据权利要求10所述的射频设备的通信装置,其特征在于,所述跳频信息还包括备用频点信息,所述切换模块还包括备用子单元,用于当跳频同步失败后通讯频点切换到所述备用频点。The communication device of the radio frequency device according to claim 10, wherein the frequency hopping information further comprises alternate frequency point information, and the switching module further comprises a spare subunit, configured to: when the frequency hopping synchronization fails, the communication frequency point Switch to the alternate frequency point.
  12. 一种遥控器,其特征在于,包括:第一射频设备,所述遥控器的所述第一射频设备用于与移动物体的第二射频设备通过无线通信进行连接;A remote controller, comprising: a first radio frequency device, wherein the first radio frequency device of the remote controller is configured to be connected to a second radio frequency device of a mobile object by wireless communication;
    其中,所述第一射频设备用于:The first radio frequency device is used to:
    根据所述第一射频设备的第一设备标识码信息和所述第二射频设备的第二设备标识码信息生成对码信息;Generating code information according to the first device identification code information of the first radio frequency device and the second device identification code information of the second radio frequency device;
    根据所述对码信息生成伪随机跳频序列的种子;Generating a seed of a pseudo-random hopping sequence according to the pair of code information;
    根据所述伪随机跳频序列的种子生成跳频序列;Generating a frequency hopping sequence according to the seed of the pseudo random frequency hopping sequence;
    基于所述跳频序列进行跳频切换。Frequency hopping switching is performed based on the frequency hopping sequence.
  13. 根据权利要求12所述的遥控器,其特征在于,所述根据所述伪随机跳频序列的种子生成跳频序列,包括:The remote controller according to claim 12, wherein the generating a hopping sequence according to the seed of the pseudo-random hopping sequence comprises:
    获取生成跳频序列的伪随机数的预设个数;Obtaining a preset number of pseudo-random numbers that generate a hopping sequence;
    调用预设函数生成预设个数的伪随机数;Calling a preset function to generate a preset number of pseudo-random numbers;
    根据伪随机数生成跳频序列。A hopping sequence is generated based on the pseudo random number.
  14. 根据权利要求13所述的遥控器,其特征在于,The remote controller according to claim 13, wherein
    所述调用预设函数生成预设个数的伪随机数,包括:The calling preset function generates a preset number of pseudo random numbers, including:
    调用预设函数生成伪随机数,去除重复伪随机数,直至伪随机数达到预 设个数。Calling the preset function to generate a pseudo-random number, removing the repeated pseudo-random number until the pseudo-random number reaches the pre- Set a number.
  15. 根据权利要求12至14中任一所述的遥控器,其特征在于,所述基于所述跳频序列进行跳频切换,包括:The remote controller according to any one of claims 12 to 14, wherein the performing frequency hopping switching based on the frequency hopping sequence comprises:
    发送包含跳频信息的信息,其中,所述跳频信息包括下一个频点信息、跳频序列;Transmitting information including frequency hopping information, where the frequency hopping information includes a next frequency point information and a frequency hopping sequence;
    将通讯频点切换到所述下一个频点;Switching the communication frequency point to the next frequency point;
    返回至所述发送包含跳频信息的信息的步骤。Returning to the step of transmitting information including frequency hopping information.
  16. 根据权利要求15所述的遥控器,其特征在于,所述跳频信息还包括备用频点信息,当跳频同步失败后通讯频点切换到所述备用频点。The remote controller according to claim 15, wherein the frequency hopping information further comprises backup frequency point information, and the communication frequency point is switched to the standby frequency point when the frequency hopping synchronization fails.
  17. 根据权利要求12至16中任一所述的遥控器,其特征在于,所述移动物体为无人飞行器(unmanned aerial vehicle,UAV)、遥控战车、轮船或机器人。The remote controller according to any one of claims 12 to 16, wherein the moving object is an unmanned aerial vehicle (UAV), a remote control vehicle, a ship or a robot.
  18. 一种无人飞行器,通过遥控器控制器飞行,其特征在于,包括:An unmanned aerial vehicle flying through a remote controller, characterized by comprising:
    机身,所述机身包括第二射频设备、中心壳体和与所述中心壳体连接的机臂;a body including a second RF device, a center housing, and a arm coupled to the center housing;
    所述机身的所述第二射频设备用于与所述遥控器的第一射频设备通过无线通讯进行连接;The second radio frequency device of the airframe is configured to be connected to the first radio frequency device of the remote controller by wireless communication;
    其中,所述第二射频设备用于:The second radio frequency device is used to:
    根据所述第一射频设备的第一设备标识码信息和所述第二射频设备的第二设备标识码信息生成对码信息;Generating code information according to the first device identification code information of the first radio frequency device and the second device identification code information of the second radio frequency device;
    根据所述对码信息生成伪随机跳频序列的种子;Generating a seed of a pseudo-random hopping sequence according to the pair of code information;
    根据所述伪随机跳频序列的种子生成跳频序列;Generating a frequency hopping sequence according to the seed of the pseudo random frequency hopping sequence;
    基于所述跳频序列进行跳频切换。 Frequency hopping switching is performed based on the frequency hopping sequence.
  19. 根据权利要求18所述的无人飞行器,其特征在于,所述根据所述伪随机跳频序列的种子生成跳频序列,包括:The UAV according to claim 18, wherein the generating a hopping sequence according to the seed of the pseudo-random hopping sequence comprises:
    获取生成跳频序列的伪随机数的预设个数;Obtaining a preset number of pseudo-random numbers that generate a hopping sequence;
    调用预设函数生成预设个数的伪随机数;Calling a preset function to generate a preset number of pseudo-random numbers;
    根据伪随机数生成跳频序列。A hopping sequence is generated based on the pseudo random number.
  20. 根据权利要求19所述的无人飞行器,其特征在于,The UAV according to claim 19, wherein
    所述调用预设函数生成预设个数的伪随机数,包括:The calling preset function generates a preset number of pseudo random numbers, including:
    调用预设函数生成伪随机数,去除重复伪随机数,直至伪随机数达到预设个数。The preset function is called to generate a pseudo random number, and the repeated pseudo random number is removed until the pseudo random number reaches a preset number.
  21. 根据权利要求18至20中任一所述的无人飞行器,其特征在于,所述基于所述跳频序列进行跳频切换,包括:The unmanned aerial vehicle according to any one of claims 18 to 20, wherein said performing frequency hopping switching based on said frequency hopping sequence comprises:
    发送包含跳频信息的信息,其中,所述跳频信息包括下一个频点信息、跳频序列;Transmitting information including frequency hopping information, where the frequency hopping information includes a next frequency point information and a frequency hopping sequence;
    将通讯频点切换到所述下一个频点;Switching the communication frequency point to the next frequency point;
    返回至所述发送包含跳频信息的信息的步骤。Returning to the step of transmitting information including frequency hopping information.
  22. 根据权利要求21所述的无人飞行器,其特征在于,所述跳频信息还包括备用频点信息,当跳频同步失败后通讯频点切换到所述备用频点。 The unmanned aerial vehicle according to claim 21, wherein the frequency hopping information further comprises backup frequency point information, and the communication frequency point is switched to the standby frequency point when the frequency hopping synchronization fails.
PCT/CN2017/112802 2017-06-27 2017-11-24 Communication method and apparatus for radio frequency device, remote controller and unmanned aerial vehicle WO2019000822A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710503069.XA CN109150239B (en) 2017-06-27 2017-06-27 Communication method and device of radio frequency equipment and computer storage medium
CN201710503069.X 2017-06-27

Publications (1)

Publication Number Publication Date
WO2019000822A1 true WO2019000822A1 (en) 2019-01-03

Family

ID=64740710

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/112802 WO2019000822A1 (en) 2017-06-27 2017-11-24 Communication method and apparatus for radio frequency device, remote controller and unmanned aerial vehicle

Country Status (2)

Country Link
CN (1) CN109150239B (en)
WO (1) WO2019000822A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113773A (en) * 2019-05-29 2019-08-09 上海应用技术大学 A kind of subway frequency hopping communications audiomonitor
CN110971268B (en) * 2019-12-09 2021-10-12 深圳中科讯联科技股份有限公司 Frequency hopping communication method, device, master device and frequency hopping communication system
CN111708513B (en) * 2020-05-15 2023-12-08 深圳和而泰智能家电控制器有限公司 Pseudo-random number seed generation method and related product
CN114362789B (en) * 2022-03-21 2022-08-23 北京理工大学 Frequency hopping communication method, device, system, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201019722A (en) * 2008-11-06 2010-05-16 Ind Tech Res Inst Method for determining and changing radio frequency channel and radio frequency transmitting/receiving system using the same
CN103856241A (en) * 2014-02-06 2014-06-11 徐州飞梦电子科技有限公司 Frequency hopping communication method for model airplane
US8891586B1 (en) * 2008-10-17 2014-11-18 Honeywell International Inc. System, apparatus and method for identifying transmission frequencies for communicating data
CN105182993A (en) * 2015-07-29 2015-12-23 深圳一电科技有限公司 Flight control method and device
CN106059620A (en) * 2016-05-30 2016-10-26 广东工业大学 Frequency hopping system and frequency hopping frequency point compression method based on Bluetooth kernel

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731713A (en) * 2005-06-29 2006-02-08 东莞市翔晖电子有限公司 Code-matching type frequency hopping anti-interference method for wireless earphone and adapter
CN201156295Y (en) * 2008-01-25 2008-11-26 张高 Bidirectional wireless response remote controller adopting frequency-hopping mode communication
US8553743B1 (en) * 2008-10-17 2013-10-08 Honeywell International Inc. System, apparatus and method for communicating messages using multiple frequency hopping sequences
CN104639209A (en) * 2015-02-13 2015-05-20 深圳市睿祺智尚科技有限公司 Self-adaptive frequency-hopping method of 2.4G transmission network
CN105933988B (en) * 2016-06-15 2017-05-31 广州小鸡快跑网络科技有限公司 Bluetooth is connected control method and device automatically with 2.4G Dual modules
CN106454981B (en) * 2016-08-31 2019-10-11 天津远翥科技有限公司 A kind of random frequency hopping method, communication apparatus and random frequency hopping system
CN106332267B (en) * 2016-08-31 2020-03-20 天津远翥科技有限公司 Synchronous access method, device and system based on frequency hopping wireless communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8891586B1 (en) * 2008-10-17 2014-11-18 Honeywell International Inc. System, apparatus and method for identifying transmission frequencies for communicating data
TW201019722A (en) * 2008-11-06 2010-05-16 Ind Tech Res Inst Method for determining and changing radio frequency channel and radio frequency transmitting/receiving system using the same
CN103856241A (en) * 2014-02-06 2014-06-11 徐州飞梦电子科技有限公司 Frequency hopping communication method for model airplane
CN105182993A (en) * 2015-07-29 2015-12-23 深圳一电科技有限公司 Flight control method and device
CN106059620A (en) * 2016-05-30 2016-10-26 广东工业大学 Frequency hopping system and frequency hopping frequency point compression method based on Bluetooth kernel

Also Published As

Publication number Publication date
CN109150239A (en) 2019-01-04
CN109150239B (en) 2020-07-24

Similar Documents

Publication Publication Date Title
WO2019000822A1 (en) Communication method and apparatus for radio frequency device, remote controller and unmanned aerial vehicle
KR102156288B1 (en) Technologies for wireless communication channel management in shared frequency bands
JP7405867B2 (en) Random access method and device
CN108923819B (en) Communication connection method, equipment and system
JP2018506885A (en) Method, apparatus and system for supporting wireless communication
US9094357B2 (en) Communication system, master device, and communication method
JPWO2012035764A1 (en) Wireless communication apparatus, wireless communication system, and channel switching method
WO2019095738A1 (en) Communication method and communication device for unmanned aerial vehicle, and unmanned aerial vehicle
JP2013201516A (en) Radio communication device
EP3113374B1 (en) Reduction of the time to start up a second communication unit
JP2018510594A5 (en)
US11290971B2 (en) Signal detection method and apparatus, signal sending method and apparatus, remote user device, and storage medium
KR102282473B1 (en) Camera system and method for controlling thereof
US9832635B2 (en) Communication apparatus, control method thereof, and storage medium
CN111107527B (en) Bluetooth master device, control method and device of slave device and Bluetooth device
US10813047B2 (en) First wireless communication terminal, second wireless communication terminal, wireless communication system, wireless communication method, and recording medium
WO2013128943A1 (en) Wireless transmission device, wireless system, transfer device, and program
CN103973502A (en) Wireless program updating method for devices of intelligent housing system
US10356666B2 (en) Communication device and communication control method
US9980286B2 (en) Wireless communication method, apparatus and program to manage channel usage
JP2019033321A (en) Communication device, control method of communication device, and program
CN107925527B (en) Method, apparatus, device and storage medium for controlling retry of data packet transfer
US11109216B2 (en) Operation optimization for trigger-based instant communication
JP6150615B2 (en) Communication device
US20150256229A1 (en) Systems and methods for improving the robustness of an nfc forum peer-to-peer link

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17915795

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17915795

Country of ref document: EP

Kind code of ref document: A1