A communication method, unmanned aerial vehicle and storage medium
By deploying modules of standard and private communication protocols on the drone and switching the working status of the modules according to the drone status, the problem of slow image download speed is solved, and more efficient and reliable communication is achieved.
Patent Information
- Application Number
- CN202080081360.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-05
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2040-11-05
AI Technical Summary
When using a communication link based on a private communication protocol for image download, the speed is slow and the efficiency is low.
The first communication module and the second communication module are deployed in the drone, the first module communicates based on a standard communication protocol, and the second module communicates based on a private communication protocol. Switch the operating state of both modules according to the status of the drone (not taken off or flying) to make full use of their respective transmission advantages.
When the drone has not taken off, image data is quickly downloaded through standard communication protocols; when in flight state, the anti-interference ability of the private communication protocol is used to ensure real-time data transmission, improving overall communication efficiency and reliability.
Smart Images

Figure CN114731578B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a communication method, a drone and a storage medium. Background Art
[0002] At present, with the development of electronic technology and communication technology, drones equipped with camera devices can provide people with tasks such as photography, inspection, and surveillance. Drones can carry camera devices to take some images, such as images of mountains and rivers that are rarely visited, images of disaster-stricken areas, and so on.
[0003] A communication link based on a private communication protocol is usually deployed between the drone and the control device. The communication link based on the private communication protocol is safe, reliable, and has strong anti-interference capabilities. It can well support the transmission of real-time downlink image transmission signals and uplink control signals. However, when using the communication link based on the private communication protocol for image downloading, the speed is often slow and inefficient. Summary of the invention
[0004] The embodiments of the present invention provide a communication method, a drone, and a storage medium, which can flexibly utilize two communication modules with different transmission performances.
[0005] A first aspect of an embodiment of the present invention provides a communication method, which is applied to a drone, wherein the drone includes a first communication module and a second communication module, wherein the first communication module communicates based on a standard communication protocol, and the second communication module communicates based on a private communication protocol, and the method includes:
[0006] When the drone is in a non-take-off state, if an image download instruction is obtained, the first communication module is controlled to send the image data indicated by the image download instruction based on the standard communication protocol;
[0007] When the drone is in flight, the second communication module is controlled to send or receive data based on the private communication protocol.
[0008] A second aspect of an embodiment of the present invention provides a communication method, which is applied to a drone, wherein the drone includes a first communication module and a second communication module, wherein the first communication module communicates based on a standard communication protocol, and the second communication module communicates based on a private communication protocol, and the method includes:
[0009] When the drone is in a non-take-off state, controlling the first communication module and the second communication module to be in a working state;
[0010] When the drone is in a flying state, the first communication module is controlled to be in a non-working state and the second communication module is controlled to be in a working state.
[0011] A third aspect of an embodiment of the present invention provides a drone, the drone comprising a storage device, a switching controller, a first communication module and a second communication module;
[0012] The storage device is used to store computer programs;
[0013] The switching controller calls the computer program to control the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol if an image download instruction is obtained when the UAV is in a non-take-off state; and to control the second communication module to send or receive data based on the private communication protocol when the UAV is in a flying state.
[0014] A fourth aspect of an embodiment of the present invention provides a drone, the drone comprising a storage device, a switching controller, a first communication module and a second communication module;
[0015] The storage device is used to store computer programs;
[0016] The switching controller calls the computer program to control the first communication module and the second communication module to be in a working state when the drone is in a non-take-off state; and to control the first communication module to be in a non-working state and the second communication module to be in a working state when the drone is in a flying state.
[0017] A fifth aspect of an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for being loaded by a processor and executing the communication method described in the first aspect or the communication method described in the second aspect.
[0018] In an embodiment of the present invention, two communication modules with different transmission performances are provided on the drone, and the two communication modules with different transmission performances are coordinated based on the state of the drone, so that the transmission advantages of the two communication modules can be fully utilized. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A schematic diagram of the architecture of a communication system provided by an embodiment of the present invention;
[0021] Figure 2 A flow chart of a communication method provided by an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of a flow chart of another communication method provided by an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of the structure of a drone provided by an embodiment of the present invention;
[0024] Figure 5 A schematic structural diagram of another drone provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] In order to more conveniently download image data while ensuring the safety of drone flight control, the embodiment of the present application deploys a first communication module and a second communication module in the drone. The first communication module communicates based on a standard communication protocol, and the second communication module communicates based on a private communication protocol. When the drone is not in a take-off state, it can detect whether the drone has obtained an image download instruction. If the drone has obtained an image download instruction, the first communication module is controlled to send the image data indicated by the image download instruction based on the standard communication protocol. In this way, the transmission speed and transmission bandwidth of the image download process can be guaranteed, and image data can be transmitted quickly. When the drone is in a flight state, the second communication module is controlled to send or receive data based on a private communication protocol. The communication link established based on the private communication protocol has strong anti-interference ability, and can well support the transmission of real-time downlink image transmission signals and uplink control signals, thereby ensuring the safety of the drone during flight.
[0027] For example, the first communication module may be a WiFi wireless communication module, and the second communication image transmission module may be an Ocusync wireless communication module. The first communication module and the second communication module may be two completely independent modules, or the first communication module and the second communication module may share some components, such as an antenna, a front-end RF circuit, etc., which is not limited in the embodiment of the present invention.
[0028] See also Figure 1 , Figure 1 An architecture diagram of a communication system provided by an embodiment of the present invention, such as Figure 1As shown, the communication system 10 may include at least a drone 100, a control device 110 and a terminal device 120. The drone 100 may be a fixed-wing drone, or a rotary-wing drone such as a quad-rotor, a hexacopter, or an octo-rotor, and the control device 110 may be a dedicated remote controller, or a smart device with a corresponding application installed that can control the drone, such as a smart phone, a tablet computer, etc. Figure 1 The terminal device 120 may be a smart phone, a personal computer, a smart wearable device, etc., which is not limited in the embodiment of the present invention.
[0029] In one embodiment, the drone 100 can establish a communication link 121 with the terminal device 120 through a first communication module, and the first communication module communicates based on a standard communication protocol. The drone 100 can establish a communication link 111 with the control device 110 through a second communication module, and the second communication module communicates based on a private communication protocol.
[0030] In one embodiment, the control device 100 can communicate with the terminal device 120 through a wired connection 131. The wired connection 131 can be connected through a universal serial bus USB. In this way, before the terminal device 120 directly establishes a communication connection with the drone 100, the terminal device 120 can transmit data with the drone 100 through the control device 110. For example, the user can operate the terminal device 120 so that the terminal device generates a switching control instruction, and the terminal device transmits the switching control instruction to the drone 100 through the wired connection 131 and the communication link 111. If the switching control instruction is used to instruct the first communication module to switch to a working state, the drone can control the first communication module to enter a working state, so that the terminal device 120 can establish a communication link 121 with the first communication module.
[0031] In one embodiment, the user can operate a physical button on the drone 100 to generate a switching control instruction. If the switching control instruction is used to instruct to switch the first communication module to a working state, the drone can control the first communication module to enter a working state, so that the terminal device 120 can establish a communication link 121 with the first communication module.
[0032] Based on the above communication system, see Figure 2 , Figure 2 A flow chart of a communication method provided in an embodiment of the present invention is provided, and the communication method is applied to a drone, and the drone includes a first communication module and a second communication module, the first communication module communicates based on a standard communication protocol, and the second communication module communicates based on a private communication protocol. The communication method includes but is not limited to the steps described in the following S200 to S202.
[0033] S200, determining the state of the drone. In the embodiment of the present invention, the state of the drone includes a non-flying state and a flying state, and different operations are performed in different states.
[0034] S201, when the drone is in a non-takeoff state, if an image download instruction is obtained, the first communication module is controlled to send the image data indicated by the image download instruction based on the standard communication protocol. The image download instruction can be obtained by the first communication module based on the standard communication protocol, or by the second communication module based on the private communication protocol. For examples, please refer to Figure 1 When the drone 100 is in a non-take-off state, if an image download instruction is obtained, the image data indicated by the image download instruction can be sent to the terminal device 120 through the communication link 121.
[0035] S202: When the drone is in flight, control the second communication module to send or receive data based on a private communication protocol. Figure 1 After the drone 100 takes off, the drone 100 can communicate with the control device 110 through the communication link 111. Further, the control device 100 can also communicate with the terminal device 120 through the wired connection 131, so that the terminal device 120 can perform data transmission with the drone 100 through the control device 110.
[0036] In one embodiment, before determining whether the drone is in a state of not taking off, the drone can also detect whether the current drone is in an upgrade state or a frequency matching state. If the drone is in an upgrade state or a frequency matching state, then the first communication module is prohibited from establishing a communication connection with the terminal device based on the standard communication protocol. When the drone is in an upgrade state or a frequency matching state, it is necessary to use a second communication module based on a private communication protocol. Prohibiting the first communication module from establishing a communication connection with the terminal device based on a standard communication protocol can ensure that the drone is upgraded or frequency matched normally. In another embodiment, if the drone is connected to a laptop computer through a communication interface and performs operations such as data reading, the first communication module is prohibited from establishing a communication connection with the terminal device based on a standard communication protocol. It can be understood that those skilled in the art can set prohibition conditions that do not allow the first communication module to establish a communication connection with the terminal device based on a standard communication protocol according to actual applications, which are not limited to the above-mentioned ones.
[0037] In one embodiment, in order to detect whether the drone is in a non-take-off state or in a flying state, the drone can obtain the motor rotation information of the drone, which is used to indicate whether the motor is rotating, and then determine the state of the drone, that is, the non-take-off state or the flying state, according to the motor rotation information. If the drone is determined to be in a non-take-off state according to the motor rotation information, step S201 can be executed; if the drone is determined to be in a flying state according to the motor rotation information, step S202 is executed.
[0038] In one embodiment, the drone determines the state of the drone based on the motor rotation information, which may include: if the drone determines that the motor is not rotating based on the motor rotation information, it can be determined that the drone is in a non-take-off state; if the drone determines that the motor is rotating based on the motor rotation information, it is determined that the drone is in a flying state.
[0039] In one embodiment, the motor rotation information may include the motor rotation speed, and the drone may determine the state of the drone based on the motor rotation information: the drone may determine whether the motor rotation speed included in the motor rotation information is less than a speed threshold, and if the motor rotation speed included in the motor rotation information is less than the speed threshold, the drone is determined to be in a non-takeoff state; if the motor rotation speed included in the motor rotation information is greater than or equal to the speed threshold, the drone is determined to be in a flying state. It should be noted that the speed threshold may be set according to the rotation speed of the drone when it takes off from the ground during actual operation.
[0040] In one embodiment, before the drone controls the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol, the first communication module has not yet established a connection with the terminal device based on the standard communication protocol. Therefore, the drone can output a first prompt message to the terminal device through the second communication module, and the first prompt message is used to indicate whether to control the first communication module to send the image data indicated by the image download instruction; if the drone detects a confirmation operation for the first prompt message, it controls the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
[0041] Specifically, the drone can send the first prompt information to the control device through the second communication module, and then the control device sends the first prompt information to the terminal device. The terminal device presents the first prompt information on its user interaction interface. If the user's confirmation operation on the user interaction interface is obtained for the first prompt information, the terminal device generates confirmation information and sends it to the control device. The control device sends the confirmation information through the communication link between it and the second communication module. After obtaining the confirmation information, the drone can control the first communication module to establish a communication connection with the terminal device based on a standard communication protocol. The standard communication protocol may be, for example, a WiFi protocol.
[0042] In one embodiment, if the first communication module establishes a communication connection with the terminal device based on the standard communication protocol, the second communication module is controlled to enter a non-working state.
[0043] In one embodiment, during the process of sending the image data indicated by the image download instruction via the communication connection established based on the standard communication protocol, the drone can obtain the wireless channel interference status of the environment in which the drone is located, and determine whether the wireless channel interference status meets the preset conditions. If the wireless channel interference status meets the preset conditions, the second communication module is controlled to send the image data indicated by the image download instruction based on the private communication protocol. In another embodiment, if the wireless channel interference status meets the preset conditions, the first communication module outputs the second prompt information to the terminal device, and the second prompt information is used to indicate whether to switch to the second communication module to send the image data indicated by the image download instruction.
[0044] In the process of sending the image data indicated by the image download instruction through the communication connection established based on the standard communication protocol, the drone may obtain the wireless channel interference state of the environment where the mobile platform is located within a preset period, or the drone may continuously obtain the wireless channel interference state of the environment where the drone is located. In one embodiment, the drone may also determine the wireless channel interference state according to the data transmission rate during the data transmission process. The drone may obtain the data transmission rate during the data transmission process, and determine whether the data transmission rate is lower than the transmission rate threshold. If the data transmission rate is lower than the transmission rate threshold, it means that the current data transmission is subject to relatively large channel interference, and it can be determined that the wireless channel interference state meets the preset conditions. If the data transmission rate is not lower than the transmission rate threshold, it means that the current data transmission is subject to relatively small channel interference, and it can be determined that the wireless channel interference state does not meet the preset conditions. At this time, the drone sends the image data indicated by the image download instruction through the communication connection established based on the standard communication protocol. After determining that the wireless channel interference state meets the preset conditions, the drone may directly control the second communication module to send the image data indicated by the image download instruction based on the private communication protocol, or output the second prompt information to prompt the user whether to choose to send the image data indicated by the image download instruction based on the private communication protocol.
[0045] In one embodiment, when the drone is in an upgrade state or a frequency binding state, if the drone obtains a switching control instruction, it does not respond to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
[0046] Specifically, a switching control virtual button may be provided in the user interaction interface of the terminal device, and the switching control virtual button corresponds to selecting the first communication module when it is in the first position, and the switching control virtual button corresponds to selecting the second communication module when it is in the second position. Alternatively, a physical button is provided on the drone, and the physical button corresponds to selecting the first communication module when it is in the first position, and the physical button corresponds to selecting the second communication module when it is in the second position. When the terminal device detects that the switching control virtual button is operated to the first position, a switching control instruction is generated, and the drone can obtain the switching control instruction through the communication link between the second communication module and the control device and the communication link between the control device and the terminal device. Or when the drone detects that the physical button is operated to the first position, a switching control instruction is generated, and the drone directly obtains the switching operation instruction. If the switching operation instruction is obtained, the drone is in an upgrade state or a frequency binding state, and the first communication module has been prohibited from establishing a communication connection with the terminal device based on the standard communication protocol. Therefore, the drone does not respond to the switching control instruction.
[0047] It should be noted that the interactive mode for the user to select the communication module is not limited to the above-mentioned modes. In other embodiments, a physical button is provided on the drone. When the user's first operation on the physical button is obtained, the first communication module is selected accordingly. When the user's second operation on the physical button is obtained, the second communication module is selected accordingly. For example, the first operation may be a long press, and the second operation may be a short press. Alternatively, when the current communication module is the first communication module, if the user's operation on the physical button is obtained, the communication module is switched to the second communication module. When the current communication module is the second communication module, if the user's operation on the physical button is obtained, the communication module is switched to the first communication module. For example, the operation may be a long press.
[0048] In another embodiment, when the drone is in flight, since the first communication module is prohibited from establishing a communication connection with the terminal device based on the standard communication protocol during the flight, if the drone obtains a switching control instruction, it will not respond to the switching control instruction, wherein the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
[0049] It should be noted that when the drone is in a flying state, the process of the drone obtaining a switching control command can refer to the process of obtaining a switching control command when the drone is in an upgrading state or a frequency binding state, which will not be repeated here.
[0050] In one embodiment, the drone may be provided with a status indicator light. When the drone controls the first communication module to establish a communication connection with the terminal device based on a standard communication protocol, the connection status may be indicated by the light color of the status indicator light or the light color display frequency. For example, the status of establishing a communication connection may be indicated by the red light of the status indicator light, and the status of successfully establishing a communication connection may be indicated by the blue light of the status indicator light, and so on.
[0051] In another embodiment, the drone may be provided with a status indicator light, which may have different lighting states, so that different lighting states may indicate the current connection state between the drone and the terminal device. When switching from the second communication module to the first communication module, the status indicator light of the drone is displayed as a slow flashing blue light; when switching to the first communication module but the communication connection between the first communication module and the terminal device has not been established, the status indicator light of the drone is displayed as a breathing blue light; when the first communication module successfully establishes a communication connection with the terminal device, the status indicator light of the drone is displayed as a constant blue light; when the first communication module sends the image data indicated by the image download instruction, the status indicator light of the drone is displayed as a fast flashing blue light.
[0052] In the embodiment of the present invention, when the drone is not in a take-off state, if an image download instruction is obtained, the first communication module is controlled to send the image data indicated by the image download instruction based on the standard communication protocol, and when the drone is in a flying state, the second communication module is controlled to send or receive data based on a private communication protocol. This can ensure that the drone communicates in a reliable manner when flying, and can also ensure faster image data download when the drone is not in take-off.
[0053] Based on the above communication system, see Figure 3 , Figure 3 A flow chart of a communication method provided in an embodiment of the present invention is provided. The communication method is applied to a drone, and the drone includes a first communication module and a second communication module. The first communication module communicates based on a standard communication protocol, and the second communication module communicates based on a private communication protocol. For example, the private communication protocol may be a private image transmission protocol, etc. The communication method includes the following steps S300-S302:
[0054] S300, determining the state of the drone. In the embodiment of the present invention, the state of the drone includes a non-flying state and a flying state, and different operations are performed in different states.
[0055] S301. When the drone is in a non-takeoff state, control the first communication module and the second communication module to be in a working state. When the first communication module is in a working state, there are two possible situations: (1) the first communication module establishes a communication connection with the terminal device based on the standard communication protocol, but does not temporarily transmit data based on the communication connection; (2) the first communication module establishes a communication connection with the terminal device based on the standard communication protocol, and transmits data based on the communication connection.
[0056] S302: When the drone is in flight, control the first communication module to be in a non-working state and the second communication module to be in a working state.
[0057] In one embodiment, the non-working state includes the following two situations: the drone can detect whether the distance between the drone and the control device is greater than a distance threshold; (1) if the distance between the drone and the control device is greater than the distance threshold, the first communication module is turned off, and the first communication module is completely in a power-off state; (2) if the distance between the drone and the control device is less than or equal to the distance threshold, the first communication module is controlled to be in a low power consumption state, so that after the drone returns and stops propellers, the drone can quickly control the first communication module to be in a working state, that is, the drone controls the first communication module to quickly establish a communication connection with the terminal device, thereby reducing the time of the communication connection.
[0058] In one embodiment, the drone can obtain the motor rotation information of the drone, and the motor rotation information is used to indicate whether the motor is rotating, and then determine the state of the drone according to the motor rotation information, wherein the state of the drone can be a non-take-off state or a flying state. If the drone is determined to be in the non-take-off state according to the motor rotation information, step S301 can be executed; if the drone is determined to be in the flying state according to the motor rotation information, step S302 is executed.
[0059] In one embodiment, the drone determines the operating state of the drone based on the motor rotation information, which may include: if the drone determines that the motor is not rotating based on the motor rotation information, it can be determined that the drone is in a non-take-off state; if the drone determines that the motor is rotating based on the motor rotation information, it is determined that the drone is in a flying state.
[0060] In one embodiment, the motor rotation information may include the motor rotation speed, and the drone may determine the operating state of the drone based on the motor rotation information: the drone may determine whether the motor rotation speed included in the motor rotation information is less than a speed threshold, and if the motor rotation speed included in the motor rotation information is less than the speed threshold, the drone is determined to be in a non-takeoff state; if the motor rotation speed included in the motor rotation information is greater than or equal to the speed threshold, the drone is determined to be in a flying state. It should be noted that the speed threshold is set here according to the rotation speed of the drone when it takes off from the ground during actual operation.
[0061] In one embodiment, when the drone is in a non-takeoff state, if the drone obtains an image download instruction, it can output a first prompt message to the terminal device, and the first prompt message is used to indicate whether to control the first communication module to send the image data indicated by the image download instruction. If the drone detects a confirmation operation for the first prompt message, the drone controls the first communication module to send the image data indicated by the image download instruction based on a standard communication protocol. In one embodiment, the drone outputs the first prompt message to the terminal device by sending the first prompt message to the control device through the second communication module, and then the control device sends the first prompt message to the terminal device. Or the drone can directly transmit the first prompt message to the terminal device.
[0062] Specifically, the terminal device presents the first prompt information on its user interaction interface, and if a confirmation operation of the user on the user interaction interface for the first prompt information is obtained, the terminal device generates confirmation information. Further, the terminal device can send the confirmation information to the control device, and the control device sends the confirmation information to the drone through the communication link between the control device and the second communication module, or the terminal device directly sends the confirmation information to the drone through the communication link between the control device and the first communication module.
[0063] In one embodiment, during the process of sending the image data indicated by the image download instruction through the communication connection established based on the standard communication protocol, the drone can obtain the wireless channel interference status of the environment in which the drone is located, and determine whether the wireless channel interference status meets the preset conditions. If the wireless channel interference status meets the preset conditions, the second communication module is controlled to send the image data indicated by the image download instruction based on the private communication protocol. In another embodiment, if the wireless channel interference status meets the preset conditions, a second prompt information is output to the terminal device, and the second prompt information is used to indicate switching to the second communication module to send the image data indicated by the image download instruction.
[0064] In one embodiment, the drone may send the second prompt information to the terminal device through the first communication module based on a standard communication protocol, or the drone may output the second prompt information to the terminal device through the second communication module based on a private communication protocol.
[0065] The UAV obtains the wireless channel interference state of the UAV environment, and how to determine whether the wireless channel interference state meets the preset conditions can be seen in the above embodiment. Figure 2 The corresponding description in will not be repeated here.
[0066] In one embodiment, when the drone is in an upgrade state or a frequency-binding state, if the drone obtains a switching control instruction, it does not respond to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on a standard communication protocol. The specific implementation method of the drone obtaining the switching control instruction and the drone not responding to the switching control instruction if the drone obtains the switching control instruction can be referred to in the above embodiment. Figure 2 The corresponding description in will not be repeated here.
[0067] In another embodiment, when the drone is in flight, since the first communication module is prohibited from establishing a communication connection with the terminal device based on the standard communication protocol during the flight, if the drone obtains a switching control instruction, it will not respond to the switching control instruction, wherein the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
[0068] It should be noted that when the drone is in a flying state, the process of the drone obtaining a switching control command can refer to the process of obtaining a switching control command when the drone is in an upgrading state or a frequency binding state, which will not be repeated here.
[0069] In one embodiment, the drone may be provided with a status indicator light. When the drone controls the first communication module to establish a communication connection with the terminal device based on a standard communication protocol, the connection status may be indicated by the light color of the status indicator light or the light color display frequency. For example, the status of establishing a communication connection may be indicated by the red light of the status indicator light, and the status of successfully establishing a communication connection may be indicated by the blue light of the status indicator light, and so on.
[0070] In another embodiment, the drone may be provided with a status indicator light, which may have different lighting states, so that different lighting states may indicate the current connection state between the drone and the terminal device. When switching from the second communication module to the first communication module, the status indicator light of the drone is displayed as a slow flashing blue light; when switching to the first communication module but the communication connection between the first communication module and the terminal device has not been established, the status indicator light of the drone is displayed as a breathing blue light; when the first communication module successfully establishes a communication connection with the terminal device, the status indicator light of the drone is displayed as a constant blue light; when the first communication module sends the image data indicated by the image download instruction, the status indicator light of the drone is displayed as a fast flashing blue light.
[0071] In an embodiment of the present invention, when the drone is in a non-takeoff state, the drone controls the first communication module and the second communication module to be in a working state. When the drone is in a flying state, the drone controls the first communication module to be in a non-working state and the second communication module to be in a working state. In this way, when the drone is in a non-takeoff state, the two communication modules with different transmission performances are both in a working state, and the transmission advantages of the two communication modules can be fully utilized. When the drone is in a flying state, the first communication module is controlled to be in a non-working state to avoid interfering with the data transmission of the second communication module, so as to better ensure the reliability of the drone flight.
[0072] Based on the communication methods provided above, see Figure 4 , Figure 4 A schematic diagram of the structure of a drone is provided in an embodiment of the present invention. Figure 4 As shown, the drone 400 may include at least a switching controller 410, a first communication module 430, a second communication module 440, and a storage device 450. The first communication module 430 communicates based on a standard communication protocol, and the second communication module 440 communicates based on a private communication protocol. The drone 400 may also include a power assembly and a shooting device (not shown).
[0073] The switching controller 410 may be a central processing unit (CPU). The control device 410 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), etc. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), etc.
[0074] The storage device 450 may include a volatile memory, such as a random-access memory (RAM); the storage device may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the storage device may also include a combination of the above types of memory.
[0075] Optionally, the storage device 450 is also used to store program instructions. The switching controller 410 can call the program instructions to implement the present application Figure 2 The communication method shown in the embodiment.
[0076] In one embodiment, the switching controller 410 is used to control the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol if an image download instruction is obtained when the drone is in a non-take-off state; and to control the second communication module to send or receive data based on the private communication protocol when the drone is in a flying state.
[0077] In one embodiment, the switching controller 410 is also used to: obtain the motor rotation information of the drone, the motor rotation information is used to indicate whether the motor is rotating; determine the state of the drone based on the motor rotation information, the state of the drone is a non-take-off state or a flying state.
[0078] In one embodiment, the motor rotation information includes a motor rotation speed, and the switching controller 410 is specifically used to: if the motor rotation speed included in the motor rotation information is less than a speed threshold, determine that the UAV is in a non-take-off state; if the motor rotation speed included in the motor rotation information is greater than or equal to the speed threshold, determine that the UAV is in a flight state.
[0079] In one embodiment, the switching controller 410 is specifically used to: if it is determined according to the motor rotation information that the motor is not rotating, then determine that the drone is in a non-take-off state; if it is determined according to the motor rotation information that the motor is rotating, then determine that the drone is in a flying state.
[0080] In one embodiment, before controlling the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol, the switching controller 410 is further configured to:
[0081] The first prompt information is output to the terminal device through the second communication module, and the first prompt information is used to indicate whether to control the first communication module to send the image data indicated by the image download instruction; if a confirmation operation for the first prompt information is detected, the first communication module is controlled to establish a communication connection with the terminal device based on the standard communication protocol.
[0082] In one embodiment, the switching controller 410 is also used to: obtain the wireless channel interference status of the environment in which the drone is located during the process of sending the image data indicated by the image download instruction through the communication connection established based on the standard communication protocol; if the wireless channel interference status meets the preset conditions, control the second communication module to send the image data indicated by the image download instruction based on the private communication protocol; or if the wireless channel interference status meets the preset conditions, output a second prompt message to the terminal device through the first communication module, and the second prompt message is used to indicate whether to switch to the second communication module to send the image data indicated by the image download instruction.
[0083] In one embodiment, the wireless channel interference state is determined based on the data transmission rate during data transmission, and the switching controller 410 is further used to: if the data transmission rate is lower than the transmission rate threshold, determine that the wireless channel interference state meets a preset condition.
[0084] In one embodiment, the switching controller 410 is also used for: when the UAV is in an upgrade state or a frequency binding state, if a switching control instruction is obtained, then the switching control instruction is not responded to, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
[0085] In one embodiment, the switching controller 410 is also used for: when the UAV is in flight, if a switching control instruction is obtained, not responding to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
[0086] The specific implementation of the drone in the embodiment of the present invention can refer to the above embodiment. Figure 2 The description of the relevant contents will not be repeated here.
[0087] For further information, see Figure 5 , Figure 5 The schematic diagram of another architecture of a drone provided by an embodiment of the present invention, the drone may at least include a switching controller 510, a first communication module 530, a second communication module 540, and a storage device 550. The first communication module 530 communicates based on a standard communication protocol, and the second communication module 540 communicates based on a private communication protocol. The drone also includes a power assembly 520 and a camera 560.
[0088] The switching controller 510 may be a central processing unit (CPU). The control device 510 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), etc. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), etc.
[0089] The storage device 550 may include a volatile memory, such as a random-access memory (RAM); the storage device may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the storage device may also include a combination of the above-mentioned types of memory.
[0090] Optionally, the storage device 550 is also used to store program instructions. The switching controller 510 can call the program instructions to implement the present application Figure 3 The communication method shown in the embodiment.
[0091] In one embodiment, the switching controller 510 is specifically used to: when the UAV is in a non-take-off state, control the first communication module and the second communication module to be in a working state; when the UAV is in a flying state, control the first communication module to be in a non-working state and the second communication module to be in a working state.
[0092] In one embodiment, the switching controller 510 is specifically used for: when the first communication module is in a working state, the first communication module establishes a communication connection with the terminal device based on the standard communication protocol; or, the first communication module establishes a communication connection with the terminal device based on the standard communication protocol, and transmits data based on the communication connection.
[0093] In one embodiment, the switching controller 510 is further used to: when the drone is in a non-take-off state, if an image download instruction is obtained, control the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol.
[0094] In one embodiment, before controlling the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol, the switching controller 510 is also used to: output a first prompt message to the terminal device, the first prompt message being used to indicate whether to control the first communication module to send the image data indicated by the image download instruction; the switching controller 510, when controlling the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol, is specifically used to: if a confirmation operation is detected for the first prompt message, control the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol.
[0095] In one embodiment, the switching controller 510 is also used to: obtain the wireless channel interference status of the environment in which the drone is located during the process of sending the image data indicated by the image download instruction through the communication connection established based on the standard communication protocol; if the wireless channel interference status meets the preset conditions, control the second communication module to send the image data indicated by the image download instruction based on the private communication protocol; or if the wireless channel interference status meets the preset conditions, output a second prompt message to the terminal device, and the second prompt message is used to indicate whether to switch to the second communication module to send the image data indicated by the image download instruction.
[0096] In one embodiment, the switching controller 510 is specifically used to: if the distance between the drone and the control device is greater than a distance threshold, turn off the first communication module; if the distance between the drone and the control device is less than or equal to the distance threshold, control the first communication module to be in a low power consumption state.
[0097] In one embodiment, the switching controller 510 is also used to: obtain the motor rotation information of the drone, the motor rotation information is used to indicate whether the motor is rotating; determine the state of the drone based on the motor rotation information, the state of the drone is a non-take-off state or a flying state.
[0098] In one embodiment, the switching controller 510 is specifically used to: if the motor rotation speed included in the motor rotation information is less than a speed threshold, determine that the drone is in a non-take-off state; if the motor rotation speed included in the motor rotation information is greater than or equal to the speed threshold, determine that the drone is in a flight state.
[0099] In one embodiment, the switching controller 510 is specifically used to: if it is determined according to the motor rotation information that the motor is not rotating, then determine that the drone is in a non-take-off state; if it is determined according to the motor rotation information that the motor is rotating, then determine that the drone is in a flying state.
[0100] In one embodiment, the switching controller 510 is also used for: when the UAV is in an upgrade state or a frequency binding state, if a switching control instruction is obtained, then the switching control instruction is not responded to, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
[0101] In one embodiment, the switching controller 510 is also used for: when the UAV is in flight, if a switching control instruction is obtained, not responding to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
[0102] The specific implementation of the drone in the embodiment of the present invention can refer to the above embodiment. Figure 3 The description of the relevant contents will not be repeated here.
[0103] The present application also provides a readable storage medium, wherein the readable storage medium stores a computer program. When the computer program is executed by a processor, it can be used to implement the present application. Figure 2 or Figure 3 The communication method described in the corresponding embodiment will not be repeated here.
[0104] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0105] The above disclosure is only part of the embodiments of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A communication method, characterized in that: The method comprises: When the drone is in a non-take-off state, in response to obtaining an image download instruction, the first communication module of the drone is controlled to send the image data indicated by the image download instruction based on a standard communication protocol; When the drone is in flight, the second communication module controlling the drone sends or receives data based on a private communication protocol; wherein the private communication protocol is different from the standard communication protocol.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining motor rotation information of the drone, where the motor rotation information is used to indicate whether the motor is rotating; The state of the drone is determined according to the motor rotation information, and the state of the drone is a non-take-off state or a flying state.
3. The method according to claim 2, characterized in that The motor rotation information includes a motor rotation speed, and determining the state of the drone according to the motor rotation information includes: If the motor rotation speed included in the motor rotation information is less than the speed threshold, it is determined that the drone is in a non-take-off state; If the motor rotation speed included in the motor rotation information is greater than or equal to the speed threshold, it is determined that the drone is in a flight state.
4. The method according to claim 2, characterized in that The determining the state of the drone according to the motor rotation information includes: If it is determined according to the motor rotation information that the motor is not rotating, it is determined that the drone is in a non-take-off state; If it is determined according to the motor rotation information that the motor has rotated, then it is determined that the drone is in a flying state.
5. The method according to claim 1, characterized in that Before the first communication module controlling the drone sends the image data indicated by the image download instruction based on the standard communication protocol, the method further includes: Outputting first prompt information to the terminal device through the second communication module, where the first prompt information is used to indicate whether to control the first communication module to send the image data indicated by the image download instruction; If a confirmation operation for the first prompt information is detected, the first communication module is controlled to establish a communication connection with the terminal device based on the standard communication protocol.
6. The method according to claim 1, characterized in that The method further comprises: In the process of sending the image data indicated by the image download instruction via the communication connection established based on the standard communication protocol, obtaining the interference status of the wireless channel of the environment in which the UAV is located; If the wireless channel interference state satisfies a preset condition, controlling the second communication module to send the image data indicated by the image download instruction based on the private communication protocol; or If the wireless channel interference state meets a preset condition, a second prompt message is output to the terminal device through the first communication module, and the second prompt message is used to indicate whether to switch to the second communication module to send the image data indicated by the image download instruction.
7. The method according to claim 6, characterized in that The wireless channel interference state is determined according to a data transmission rate during data transmission, and the method further includes: If the data transmission rate is lower than the transmission rate threshold, it is determined that the wireless channel interference state meets a preset condition.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When the drone is in an upgrade state or a frequency binding state, if a switching control instruction is obtained, the drone does not respond to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When the drone is in flight, if a switching control instruction is obtained, the drone does not respond to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
10. A communication method, characterized in that: Applied to a drone, the method comprises: When the drone is in a non-take-off state, the first communication module of the drone and the second communication module of the drone are controlled to be in a working state; when the drone is in a flying state, the first communication module is controlled to be in a non-working state and the second communication module is controlled to be in a working state; The first communication module communicates based on a standard communication protocol, and the second communication module communicates based on a private communication protocol, and the private communication protocol is different from the standard communication protocol.
11. The method according to claim 10, characterized in that When the first communication module is in working state, the first communication module establishes a communication connection with the terminal device based on the standard communication protocol; or, the first communication module establishes a communication connection with the terminal device based on the standard communication protocol and transmits data based on the communication connection.
12. The method according to claim 10, characterized in that The method further comprises: When the drone is in a non-take-off state, if an image download instruction is obtained, the first communication module is controlled to send the image data indicated by the image download instruction based on the standard communication protocol.
13. The method according to claim 12, characterized in that Before controlling the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol, the method further includes: Outputting first prompt information to the terminal device, where the first prompt information is used to indicate whether to control the first communication module to send the image data indicated by the image download instruction; The controlling the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol includes: If a confirmation operation for the first prompt information is detected, the first communication module is controlled to send the image data indicated by the image download instruction based on the standard communication protocol.
14. The method according to claim 12, characterized in that The method further comprises: In the process of sending the image data indicated by the image download instruction via the communication connection established based on the standard communication protocol, obtaining the interference status of the wireless channel of the environment in which the UAV is located; If the wireless channel interference state satisfies a preset condition, controlling the second communication module to send the image data indicated by the image download instruction based on the private communication protocol; or If the wireless channel interference state meets the preset condition, a second prompt information is output to the terminal device, where the second prompt information is used to indicate whether to switch to the second communication module to send the image data indicated by the image download instruction.
15. The method according to claim 10, characterized in that The controlling the first communication module to be in a non-working state includes: If the distance between the drone and the control device is greater than a distance threshold, shutting down the first communication module; If the distance between the drone and the control device is less than or equal to the distance threshold, the first communication module is controlled to be in a low power consumption state.
16. The method according to claim 10, characterized in that The method further comprises: Obtaining motor rotation information of the drone, where the motor rotation information is used to indicate whether the motor is rotating; The state of the drone is determined according to the motor rotation information, and the state of the drone is a non-take-off state or a flying state.
17. The method according to claim 16, characterized in that The motor rotation information includes a motor rotation speed, and determining the state of the drone according to the motor rotation information includes: If the motor rotation speed included in the motor rotation information is less than the speed threshold, it is determined that the drone is in a non-take-off state; If the motor rotation speed included in the motor rotation information is greater than or equal to a speed threshold, it is determined that the drone is in a flight state.
18. The method according to claim 16, characterized in that The determining the state of the drone according to the motor rotation information includes: If it is determined according to the motor rotation information that the motor is not rotating, it is determined that the drone is in a non-take-off state; If it is determined according to the motor rotation information that the motor has rotated, then it is determined that the drone is in a flying state.
19. The method according to claim 10, characterized in that The method further comprises: When the drone is in an upgrade state or a frequency binding state, if a switching control instruction is obtained, the drone does not respond to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
20. The method according to any one of claims 10 to 19, characterized in that: The method further comprises: When the drone is in flight, if a switching control instruction is obtained, the drone does not respond to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
21. A drone, characterized in that: The drone comprises: a storage device, a switching controller, a first communication module and a second communication module; The storage device is used to store computer programs; The switching controller calls the computer program to control the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol in response to obtaining the image download instruction when the UAV is in a non-take-off state; and to control the second communication module to send or receive data based on a private communication protocol when the UAV is in a flying state; wherein the private communication protocol is different from the standard communication protocol.
22. The drone according to claim 21, characterized in that: The switching controller is also used to: obtain motor rotation information of the drone, the motor rotation information is used to indicate whether the motor is rotating; determine the state of the drone according to the motor rotation information, the state of the drone is a non-take-off state or a flying state.
23. The drone according to claim 22, characterized in that: The motor rotation information includes a motor rotation speed, and the switching controller is specifically used to: if the motor rotation speed included in the motor rotation information is less than a speed threshold, determine that the drone is in a non-take-off state; if the motor rotation speed included in the motor rotation information is greater than or equal to the speed threshold, determine that the drone is in a flight state.
24. The drone of claim 22, wherein: The switching controller is specifically used to: if it is determined according to the motor rotation information that the motor is not rotating, then determine that the drone is in a non-take-off state; if it is determined according to the motor rotation information that the motor is rotating, then determine that the drone is in a flying state.
25. The drone of claim 21, wherein: The switching controller is further used to: output first prompt information to the terminal device through the second communication module, wherein the first prompt information is used to indicate whether to control the first communication module to send the image data indicated by the image download instruction; If a confirmation operation for the first prompt information is detected, the first communication module is controlled to establish a communication connection with the terminal device based on the standard communication protocol.
26. The drone of claim 21, wherein: The switching controller is also used to: obtain the wireless channel interference status of the environment in which the drone is located during the process of sending the image data indicated by the image download instruction through the communication connection established based on the standard communication protocol; if the wireless channel interference status meets the preset conditions, control the second communication module to send the image data indicated by the image download instruction based on the private communication protocol; or if the wireless channel interference status meets the preset conditions, output a second prompt information to the terminal device through the first communication module, and the second prompt information is used to indicate whether to switch to the second communication module to send the image data indicated by the image download instruction.
27. The drone of claim 26, wherein: The wireless channel interference state is determined according to the data transmission rate during data transmission. The switching controller is further used to: if the data transmission rate is lower than the transmission rate threshold, determine that the wireless channel interference state meets a preset condition.
28. The drone according to any one of claims 21 to 27, characterized in that: The switching controller is also used for: when the UAV is in an upgrade state or a frequency binding state, if a switching control instruction is obtained, not responding to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
29. The drone according to any one of claims 21 to 27, characterized in that: The switching controller is also used for: when the UAV is in flight, if a switching control instruction is obtained, not responding to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
30. A drone, characterized in that: The drone comprises: a storage device, a switching controller, a first communication module and a second communication module; The storage device is used to store computer programs; The switching controller calls the computer program to control the first communication module and the second communication module to be in a working state when the drone is in a non-take-off state; and to control the first communication module to be in a non-working state and the second communication module to be in a working state when the drone is in a flying state; wherein the first communication module communicates based on a standard communication protocol, and the second communication module communicates based on a private communication protocol, and the private communication protocol is different from the standard communication protocol.
31. The drone of claim 30, wherein: When the first communication module is in working state, the first communication module establishes a communication connection with the terminal device based on the standard communication protocol; or, the first communication module establishes a communication connection with the terminal device based on the standard communication protocol and transmits data based on the communication connection.
32. The drone of claim 30, wherein: The switching controller is further used to: when the UAV is in a non-take-off state, if an image download instruction is obtained, control the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol.
33. The drone of claim 32, wherein: The switching controller is also used to: output a first prompt message to the terminal device before controlling the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol, and the first prompt message is used to indicate whether to control the first communication module to send the image data indicated by the image download instruction; when the switching controller controls the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol, it is specifically used to: if a confirmation operation for the first prompt message is detected, control the first communication module to send the image data indicated by the image download instruction based on the standard communication protocol.
34. The drone of claim 32, wherein: The switching controller is also used to: obtain the wireless channel interference status of the environment in which the drone is located during the process of sending the image data indicated by the image download instruction through the communication connection established based on the standard communication protocol; if the wireless channel interference status meets the preset conditions, control the second communication module to send the image data indicated by the image download instruction based on the private communication protocol; or if the wireless channel interference status meets the preset conditions, output a second prompt information to the terminal device, and the second prompt information is used to indicate whether to switch to the second communication module to send the image data indicated by the image download instruction.
35. The drone of claim 30, wherein: The switching controller is specifically used to: if the distance between the drone and the control device is greater than a distance threshold, turn off the first communication module; if the distance between the drone and the control device is less than or equal to the distance threshold, control the first communication module to be in a low power consumption state.
36. The drone of claim 30, wherein: The switching controller is further used to: obtain motor rotation information of the drone, where the motor rotation information is used to indicate whether the motor is rotating; The state of the drone is determined according to the motor rotation information, and the state of the drone is a non-take-off state or a flying state.
37. The drone of claim 36, wherein: The motor rotation information includes a motor rotation speed, and the state of the drone is determined based on the motor rotation information. The switching controller is specifically used to: if the motor rotation speed included in the motor rotation information is less than a speed threshold, determine that the drone is in a non-take-off state; if the motor rotation speed included in the motor rotation information is greater than or equal to the speed threshold, determine that the drone is in a flight state.
38. The drone of claim 36, wherein: The switching controller is specifically used to: if it is determined according to the motor rotation information that the motor is not rotating, then determine that the drone is in a non-take-off state; if it is determined according to the motor rotation information that the motor is rotating, then determine that the drone is in a flying state.
39. The drone of claim 30, wherein: The switching controller is also used for: when the UAV is in an upgrade state or a frequency binding state, if a switching control instruction is obtained, not responding to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
40. The drone according to any one of claims 30 to 39, characterized in that: The switching controller is also used for: when the UAV is in flight, if a switching control instruction is obtained, not responding to the switching control instruction, and the switching control instruction is used to instruct the first communication module to establish a communication connection with the terminal device based on the standard communication protocol.
41. A computer-readable storage medium, characterized in that A computer program is stored thereon, and the computer program is suitable for being loaded by a processor and executing the method according to any one of claims 1 to 20.
Citation Information
Patent Citations
Onboard terminal applied to unmanned aerial vehicle, and corresponding data transmission system and transmission method applied to unmanned aerial vehicle
CN107396426A
Data transmission method and device, and image transmission method by movable object
CN108933622A