Search

CN-121982872-A - Radio frequency communication method of wireless remote control equipment and computer equipment

CN121982872ACN 121982872 ACN121982872 ACN 121982872ACN-121982872-A

Abstract

The application discloses a radio frequency communication method of a wireless remote control device and a computer device, relating to the field of wireless radio frequency communication, comprising the steps of executing an initialization flow and a safe starting flow of the wireless remote control device; the method comprises the steps of starting a main circulation operation interface, collecting operation part input data and operation part input states according to a preset period in the main circulation, constructing a radio frequency data packet according to the operation part input data, dynamically selecting and sending a sending rate of the radio frequency data packet based on the operation part input states, receiving a radio frequency response data packet, analyzing the validity of the radio frequency response data packet and updating the connection state of the wireless remote control equipment. The application has the effects of intelligent dynamic selection rate, safe zero check and multiple verification guarantee.

Inventors

  • QIN BO
  • Liu Tianguan
  • WU CHAO

Assignees

  • 上海高立高电子有限公司

Dates

Publication Date
20260505
Application Date
20260314

Claims (10)

  1. 1. A radio frequency communication method of a wireless remote control device is characterized by comprising the following steps of S1, executing an initialization flow and a safe starting flow of the wireless remote control device; S2, starting a main circulation operation interface; s3, collecting input data and input states of the operation part according to a preset period in the main cycle; S4, constructing a radio frequency data packet according to the input data of the operation component, dynamically selecting the transmission rate of the radio frequency data packet based on the input state of the operation component, and transmitting the radio frequency data packet; s5, receiving the radio frequency response data packet, analyzing the validity of the radio frequency response data packet and updating the connection state of the wireless remote control equipment.
  2. 2. The method for radio frequency communication of a wireless remote control device according to claim 1, wherein S1 comprises the steps of executing a power-on and self-checking process of the wireless remote control device, including an indicator lamp running light and screen display information, executing zero position checking of operation components, and guaranteeing that all the operation components are released and located at an initial position, wherein the operation components comprise a key, a dial knob and a rocker, initializing a radio frequency module and executing channel conflict detection.
  3. 3. The method for radio frequency communication of a wireless remote control device of claim 1, wherein S2 comprises drawing and displaying a main loop operation initiation interface, initializing a main loop timer to generate a periodic flag, and starting a main loop to enter the main loop operation initiation interface for execution.
  4. 4. The method for radio frequency communication of a wireless remote control device according to claim 1, wherein S3 comprises a preset first period and a second period, wherein the first period is used for collecting operation component input data, the second period is used for collecting operation component input state, the first period is shorter than the second period, the operation component input data comprise a key state, a dial position and rocker data, and the operation component input state indicates whether operation input exists or not.
  5. 5. A method for radio frequency communication of a wireless remote control device as set forth in claim 4 wherein S4 comprises constructing a radio frequency data packet comprising a machine code, a check code, and said operator input data, selecting a first transmission rate when said operator input status indicates no operation, selecting a second transmission rate when said operator input status indicates operation, said second transmission rate being higher than said first transmission rate, and transmitting said radio frequency data packet at said selected transmission rate.
  6. 6. The method for radio frequency communication of a wireless remote control device according to claim 1, wherein S5 comprises receiving a radio frequency response data packet, analyzing the radio frequency response data packet, verifying the validity of the radio frequency response data packet through machine code matching and check code checking to obtain a verification result, and updating the connection state of the wireless remote control device based on the verification result.
  7. 7. The method of claim 6, wherein verifying the validity of the radio frequency-responsive data packet comprises verifying that a machine code in the radio frequency-responsive data packet matches a machine code of the wireless remote control device and verifying that a check code in the radio frequency-responsive data packet is correct, and determining that the radio frequency-responsive data packet is valid only if the machine code matches and the check code is correct.
  8. 8. The method of radio frequency communication for a wireless remote control device according to claim 5, wherein dynamically selecting a transmission rate in S4 further comprises enabling the first transmission rate and transmitting the radio frequency data packet containing only a machine code and a heartbeat flag when the operation member input status indicates no operation, enabling the second transmission rate and transmitting the radio frequency data packet containing complete operation member input data when the operation member input status indicates operation, and automatically switching to the first transmission rate and attaching a device abnormality identification code if no valid radio frequency response data packet is received three times in succession at the second transmission rate.
  9. 9. The method for radio frequency communication of a wireless remote control device according to claim 8, wherein the step S5 of updating the connection state of the wireless remote control device comprises suspending a main cycle and entering a hardware checking sub-process if the radio frequency response data packet contains a diagnosis instruction code generated by a receiving end, sequentially checking rocker dead zone calibration data, key contact resistance values and radio frequency module voltage in the hardware checking sub-process to obtain a checking result, packaging the checking result into a response packet, and feeding back the response packet to the receiving end at the first sending rate.
  10. 10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 9 when the computer program is executed.

Description

Radio frequency communication method of wireless remote control equipment and computer equipment Technical Field The present application relates to the field of wireless radio frequency communications, and in particular, to a method and a computer device for radio frequency communications of a wireless remote control device. Background The wireless remote control device is widely applied to the scenes of industrial remote control, unmanned aerial vehicle control and the like, and transmits user instructions through radio frequency communication. In the prior art, the equipment starting process has defects, such as error triggering operation when a rocker or a key is not reset due to zero position verification of an operating component being ignored in an initialization stage, potential safety hazard is increased, and communication interruption is easily caused due to failure in initialization of a radio frequency module or insufficient detection of channel conflict. In the main circulation operation interface, a fixed period strategy is adopted for collecting operation data such as key states and rocker positions, whether user input is needed or not cannot be distinguished, redundant data are sent at high frequency when the user is not in operation, energy consumption is increased, and real-time performance is affected by response delay when the user is in operation. The fixed rate is used when the radio frequency data packet is sent, so that the radio frequency data packet can not adapt to dynamic scenes and the efficiency is reduced. The receiving end responds to weak verification mechanism of the data packet, such as machine code matching and verification missing, so that invalid data is processed, connection state is misjudged, and the stability of the device is poor in a weak signal environment. These problems are highlighted by high power consumption, slow response, low reliability, and a solution integrating intelligent initialization, adaptive rate and tight verification is needed. Disclosure of Invention In order to solve the problems of unsafe starting, low efficiency, fixed speed and weak verification of the existing wireless remote control equipment, the application provides a method for radio frequency communication of the wireless remote control equipment and computer equipment. In a first aspect, the application provides a method for radio frequency communication of a wireless remote control device, which adopts the following technical scheme that S1, an initialization flow and a safe starting flow of the wireless remote control device are executed; S2, starting a main circulation operation interface; s3, collecting input data and input states of the operation part according to a preset period in the main cycle; S4, constructing a radio frequency data packet according to the input data of the operation component, dynamically selecting the transmission rate of the radio frequency data packet based on the input state of the operation component, and transmitting the radio frequency data packet; s5, receiving the radio frequency response data packet, analyzing the validity of the radio frequency response data packet and updating the connection state of the wireless remote control equipment. By adopting the technical scheme, the basic reliability of the wireless remote control equipment is ensured by integrating the initialization and safety starting processes, the input data and the state of the operation component are collected according to the preset period in the main circulation operation interface, and the real-time operation response is realized. By dynamically selecting the transmission rate of the radio frequency data packet, the input state change of the operation component is adaptively matched, the radio frequency transmission efficiency is optimized, and the energy consumption is reduced. The stability and fault tolerance of the communication link of the wireless remote control device are enhanced by combining the validity analysis of the radio frequency response data packet and the updating mechanism of the connection state. The whole flow effectively improves the man-machine interaction instantaneity, the energy efficiency ratio of data transmission and the robustness of the system, reduces the interaction link of the redundant protocol, and obviously reduces the response delay and the resource occupation of the system. Optionally, the step S1 includes executing a power-on and self-checking process of the wireless remote control device, including running of an indicator light and screen display information, executing zero check of an operation part, ensuring that all the operation parts are released and located at an initial position, wherein the operation part comprises a key, a dial button and a rocker, initializing a radio frequency module and executing channel conflict detection. By adopting the technical scheme, the running lamp and screen information of the power-on self-check