CN112714505A - Wireless communication method for unmanned aerial vehicle and carrying box and related equipment - Google Patents

Wireless communication method for unmanned aerial vehicle and carrying box and related equipment Download PDF

Info

Publication number
CN112714505A
CN112714505A CN202011561084.8A CN202011561084A CN112714505A CN 112714505 A CN112714505 A CN 112714505A CN 202011561084 A CN202011561084 A CN 202011561084A CN 112714505 A CN112714505 A CN 112714505A
Authority
CN
China
Prior art keywords
connection
communication module
wireless communication
bluetooth
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011561084.8A
Other languages
Chinese (zh)
Inventor
乌忠寅
李培吉
邱培刚
张婷婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoyou Hengan Beijing Technology Co ltd
State Post Bureau Postal Industry Security Center
Dongpu Software Co Ltd
Original Assignee
Guoyou Hengan Beijing Technology Co ltd
State Post Bureau Postal Industry Security Center
Dongpu Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guoyou Hengan Beijing Technology Co ltd, State Post Bureau Postal Industry Security Center, Dongpu Software Co Ltd filed Critical Guoyou Hengan Beijing Technology Co ltd
Priority to CN202011561084.8A priority Critical patent/CN112714505A/en
Publication of CN112714505A publication Critical patent/CN112714505A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Landscapes

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

Abstract

The invention relates to the technical field of logistics, and discloses a wireless communication method for an unmanned aerial vehicle and a carrying box and related equipment, which are used for establishing wireless connection between the unmanned aerial vehicle and the carrying box and improving the carrying box replacement efficiency and express delivery efficiency. The wireless communication method of the unmanned aerial vehicle and the carrying box comprises the following steps: when the distance between the unmanned aerial vehicle and the carrying box meets a preset condition, establishing wireless connection with a second wireless communication module in the carrying box through the first wireless communication module to obtain a connection result; judging whether the connection result is connection failure; if the connection result is connection failure, reconnecting the first wireless communication module and the second wireless communication module according to the preset retry times, and stopping connection until the preset retry times are reached or the reconnection is successful; if the connection result is that the connection is successful, data exchange processing is carried out through the first wireless communication module and the second wireless communication module, and the carrying box is controlled to be opened and closed.

Description

Wireless communication method for unmanned aerial vehicle and carrying box and related equipment
Technical Field
The invention relates to the technical field of logistics, in particular to a wireless communication method of an unmanned aerial vehicle and a carrying box and related equipment.
Background
Unmanned aerial vehicle express delivery, that is, the package is automatically delivered to the destination by carrying the package by an unmanned low-altitude aircraft operated by a radio remote control device and a self-contained program control device. Mainly lie in solving the delivery problem in remote area for improve delivery efficiency, reduce the human cost simultaneously.
Common unmanned aerial vehicle and year thing case are through wired connection, realize the on-off control to carrying the thing case, but, adopt the inconvenient change of wired connection's mode to carry the thing case, consequently, carry out the actual operation of commodity circulation transportation at unmanned aerial vehicle, have to change and carry the problem that thing case inefficiency and express delivery inefficiency.
Disclosure of Invention
The invention provides a wireless communication method of an unmanned aerial vehicle and a carrying box and related equipment, which are used for improving the carrying box replacing efficiency and the express delivery efficiency.
In order to achieve the above object, a first aspect of the present invention provides a method for wireless communication between an unmanned aerial vehicle and a carrier box, which is applied to the unmanned aerial vehicle, and includes: when the distance between the unmanned aerial vehicle and the carrying box meets a preset condition, establishing wireless connection with a second wireless communication module in the carrying box through a first wireless communication module to obtain a connection result; judging whether the connection result is connection failure or not; if the connection result is connection failure, reconnecting the first wireless communication module and the second wireless communication module according to a preset retry number, and stopping connection until the preset retry number is reached or the reconnection is successful; and if the connection result is that the connection is successful, performing data exchange processing through the first wireless communication module and the second wireless communication module, and performing on-off control on the carrying box.
In a possible embodiment, when the distance between the unmanned aerial vehicle and the carrier box meets a preset condition, a wireless connection is established between the first wireless communication module and a second wireless communication module in the carrier box, so as to obtain a connection result, including: setting a first wireless communication module as a master module and a second wireless communication module in the carrier box as a slave module, wherein the master module is a master near field communication module or a master Bluetooth module, and the slave module is a slave near field communication module or a slave Bluetooth module; when the distance between the unmanned aerial vehicle and the carrying box meets a preset condition and is in near field communication connection, performing point-to-point connection through the master near field communication module and the slave near field communication module within a preset time length to obtain a connection result; or when the distance between unmanned aerial vehicle and the year thing case satisfies the default condition, and when being bluetooth communication connection, pass through in predetermineeing for a long time main bluetooth module with carry out the accordant connection from bluetooth module, obtain the connection result.
In a possible implementation manner, the determining whether the connection result is a connection failure includes: the judging whether the connection result is a connection failure includes: judging whether wireless connection response information sent by the second wireless communication module is received within a preset time length; if the wireless connection response information sent by the second wireless communication module is not received within the preset time length, determining that the connection result is connection failure; and if the wireless connection response information sent by the second wireless communication module is received within a preset time length, determining that the connection result is successful.
In a feasible implementation manner, if the connection result is a connection failure, reconnecting the first wireless communication module and the second wireless communication module according to a preset retry number, and stopping the connection until the preset retry number is reached or the reconnection is successful, the method includes: if the connection result is connection failure, sending a wireless communication connection request to the second wireless communication module, wherein the wireless connection request comprises the unmanned aerial vehicle identification and the data authentication information which are matched with the second wireless communication module, so that the second wireless communication module verifies the data authentication information and performs matching connection based on the unmanned aerial vehicle identification to obtain a reconnection result; and adding 1 to the retried times for calculation, stopping connection when the reconnection result is that the connection is successful or the retried times are equal to the preset retried times, wherein the initial value of the retried times is 0.
In one possible embodiment, if the connection result is that the connection is successful, performing data exchange processing between the first wireless communication module and the second wireless communication module and performing on-off control on the carrier box by using the first wireless communication module includes: if the connection result is successful and the connection result is near field communication connection, starting a radio frequency field of the main near field communication module, sending data to the slave near field communication module through the main near field communication module according to a preset transmission rate, and receiving and processing the data sent by the main near field communication module by the slave near field communication module in an interception mode; and when the data transmission of the main near field communication module is finished, closing the radio frequency field of the main near field communication module, starting the monitoring mode of the main near field communication module, waiting for and processing the data transmitted by the slave near field communication module, and performing on-off control on the carrying box.
In one possible embodiment, if the connection result is that the connection is successful, performing data exchange processing between the first wireless communication module and the second wireless communication module and performing on-off control on the carrier box by using the first wireless communication module includes: if the connection result is that the connection is successful and the connection is a Bluetooth communication connection, acquiring Bluetooth data to be sent, wherein the Bluetooth data to be sent is data written in advance based on a Bluetooth communication protocol; configuring a zone bit according to a Bluetooth command in the Bluetooth data to be sent, and generating a Bluetooth data packet to be sent, wherein the zone bit is used for judging whether the command in the Bluetooth data packet to be sent belongs to an existing command in the Bluetooth communication protocol; and sending the Bluetooth data packet to be sent to the slave Bluetooth module through the master Bluetooth module, wherein the Bluetooth data packet to be sent is used for indicating the master Bluetooth module and the slave Bluetooth module to carry out data exchange and carrying out on-off control on the carrying box.
In a possible embodiment, after performing data exchange processing with the second wireless communication module through the first wireless communication module and performing on-off control on the carrier box if the connection result is that the connection is successful, the method for wirelessly communicating the drone with the carrier box further includes: acquiring the goods order information in the carrying box, and carrying out goods transportation according to the goods order information; when the goods are transported to the target goods receiving user, a carrying box opening instruction is sent to the second wireless communication module through the first wireless communication module, and the carrying box opening instruction is used for delivering the goods.
A second aspect of the present invention provides an unmanned aerial vehicle, comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the drone to perform the drone-to-carrier wireless communication method described above.
A third aspect of the invention provides a carrier case comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the carrier to perform the above-described drone to carrier wireless communication method.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-mentioned wireless communication method of a drone and a carrier box.
According to the technical scheme provided by the invention, when the distance between the unmanned aerial vehicle and the object carrying box meets a preset condition, wireless connection is established between the first wireless communication module and a second wireless communication module in the object carrying box to obtain a connection result; judging whether the connection result is connection failure or not; if the connection result is connection failure, reconnecting the first wireless communication module and the second wireless communication module according to a preset retry number, and stopping connection until the preset retry number is reached or the reconnection is successful; and if the connection result is that the connection is successful, performing data exchange processing through the first wireless communication module and the second wireless communication module, and performing on-off control on the carrying box. In the embodiment of the invention, the unmanned aerial vehicle is wirelessly connected with the second wireless communication module in the carrying box through the first wireless communication module, so that the carrying box can be more conveniently replaced and detached, the on-off control of the carrying box is realized, the carrying box replacing efficiency is improved, and the express delivery distribution efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a wireless communication method between a drone and a carrier box according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another embodiment of a wireless communication method between a drone and a carrier box according to an embodiment of the invention;
fig. 3 is a schematic diagram of one embodiment of a master near field communication module and a slave near field communication module in an embodiment of the present invention;
fig. 4 is a schematic diagram of an embodiment of the drone in an embodiment of the present invention;
figure 5 is a schematic view of an embodiment of a carrier case according to an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a wireless communication method of an unmanned aerial vehicle and a carrying box and related equipment, which are used for the wireless connection of the unmanned aerial vehicle and a second wireless communication module in the carrying box through a first wireless communication module, so that the carrying box can be more conveniently replaced and detached, the on-off control of the carrying box is realized, the carrying box replacing efficiency is improved, and the express delivery and distribution efficiency is improved.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of an embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a wireless communication method between an unmanned aerial vehicle and a carrier box according to an embodiment of the present invention includes:
101. when the distance between unmanned aerial vehicle and the thing case satisfies the preset condition, establish wireless connection through first wireless communication module and the second wireless communication module in the thing case, obtain the connection result.
The preset condition is used for indicating a maximum communication range between the unmanned aerial vehicle and the carrying box, for example, the preset condition is greater than or equal to 0 cm and less than or equal to 10 cm, and if the distance between the unmanned aerial vehicle and the carrying box is 30 cm, the unmanned aerial vehicle determines that the distance between the unmanned aerial vehicle and the carrying box does not meet the preset condition; if the distance between the unmanned aerial vehicle and the carrying box is 10 centimeters or 5 centimeters, the unmanned aerial vehicle determines that the distance between the unmanned aerial vehicle and the carrying box meets the preset condition, namely, the unmanned aerial vehicle determines that the position of the carrying box is in the maximum communication range.
Specifically, when the distance between the unmanned aerial vehicle and the carrier box meets the preset condition, that is, when the distance between the first wireless communication module and the second wireless communication module in the carrier box is within the effective communication distance range, the unmanned aerial vehicle transmits preset wireless connection information between the first wireless communication module and the second wireless communication module in the carrier box through a preset wireless communication protocol, and establishes wireless connection between the first wireless communication module and the second wireless communication module in the carrier box according to the preset wireless connection information, so as to obtain a connection result. Wherein, first wireless communication module sets up in unmanned aerial vehicle's the main control panel that predetermines, and second wireless communication module sets up in the control panel of predetermineeing of year thing case.
It should be noted that the preset wireless communication protocol may adopt a preset near field communication protocol or a bluetooth communication protocol, and may also adopt a WI-FI communication protocol, which is not limited herein. Unmanned aerial vehicle can set up the corresponding preset condition according to presetting wireless communication agreement, and the preset condition can set up according to the practical application scene, specifically does not do the restriction here. The near field communication protocol, the Bluetooth communication protocol and the WI-FI communication protocol are respectively provided with corresponding preset conditions, so that the unmanned aerial vehicle can select the preset conditions according to an actual application scene, wireless connection is established according to the preset conditions corresponding to each wireless communication protocol, the preset conditions corresponding to each preset wireless communication protocol can be overlapped, and overlapping can be avoided. For example, for the near field communication protocol, the drone sets the corresponding preset condition to be greater than or equal to 0 and less than or equal to 4 centimeters; for the bluetooth communication protocol, the unmanned aerial vehicle may set the preset condition to be greater than 4 centimeters and less than or equal to 150 centimeters, or the unmanned aerial vehicle may also set the preset condition to be greater than 4 centimeters and less than or equal to 200 centimeters, which is not limited herein.
It can be understood that the execution subject of the present invention may be a wireless communication device of the drone and the carrier box, and may also be the drone or the carrier box, which is not limited herein. The embodiment of the invention takes an unmanned aerial vehicle as an execution main body for explanation.
102. And judging whether the connection result is connection failure or not.
The connection result comprises connection success and connection failure, and specifically, the unmanned aerial vehicle judges whether the connection result is a preset value or not; when the connection result is not the preset value, the unmanned aerial vehicle determines that the connection result is a connection failure, and continues to execute step 103, for example, the second wireless communication module is powered off, the communication network is abnormal, or the current position information of the second wireless module is changed, and the unmanned aerial vehicle does not scan the second wireless communication module within the preset time; and when the connection result is the preset value, the unmanned aerial vehicle determines that the connection result is successful, and continues to execute the step 104. For example, the drone may use 1 (i.e., a preset value) to indicate that the connection is successful, and may use 0 to indicate that the connection is failed, which is not limited herein.
103. And if the connection result is connection failure, reconnecting the first wireless communication module and the second wireless communication module according to the preset retry number, and stopping connection until the preset retry number is reached or the reconnection is successful.
That is, if the connection result is that the connection fails, and the first wireless communication module and the second wireless communication module both adopt the near field communication protocol for wireless communication, the unmanned aerial vehicle reestablishes wireless connection between the first wireless communication module and the second wireless communication module in the carrier box according to the near field communication protocol to obtain a reconnection result; if the connection result is that the connection fails and the first wireless communication module and the second wireless communication module adopt a Bluetooth communication protocol for wireless communication, the unmanned aerial vehicle reestablishes wireless connection between the first wireless communication module and the second wireless communication module in the object box according to the Bluetooth communication protocol to obtain a reconnection result; when the reconnection result is that the connection fails, the unmanned aerial vehicle reconnects the first wireless communication module and the second wireless communication module within the preset retry number according to the mode; when the reconnection result is that the connection is successful or the preset retry number is reached, the unmanned aerial vehicle stops connecting.
Further, after the unmanned aerial vehicle detects that the connection between the first wireless communication module and the second wireless communication module fails for N times, the unmanned aerial vehicle controls to close the first wireless communication module. Wherein N is an integer greater than zero and less than or equal to the preset retry number.
It should be noted that Near Field Communication (NFC) is developed by combining a wireless interconnection technology on the basis of a non-contact radio frequency identification RFID technology, and an unmanned aerial vehicle and a carrier box using the NFC technology can exchange data when they are close to each other.
104. If the connection result is that the connection is successful, data exchange processing is carried out through the first wireless communication module and the second wireless communication module, and the carrying box is controlled to be opened and closed.
Specifically, if the connection result is that the connection is successful, the unmanned aerial vehicle acquires a target communication channel established by the connection between the first wireless communication module and the second wireless communication module (the target communication channel is pre-established by adopting near field communication connection or bluetooth communication connection), and the unmanned aerial vehicle sends a data exchange request to the second wireless communication module through the target communication channel, so that the second wireless communication module receives the data exchange request and performs data operation according to the data exchange request to obtain an exchange result; and the unmanned aerial vehicle receives the exchange result sent by the second wireless communication module through the target communication channel. Further, unmanned aerial vehicle can also send year thing case on-off control instruction to second wireless communication module through target communication channel to make second wireless communication module carry out the on-off processing to carrying the thing case according to carrying thing case on-off control instruction.
In the embodiment of the invention, the unmanned aerial vehicle is wirelessly connected with the second wireless communication module in the carrying box through the first wireless communication module, so that the carrying box can be more conveniently replaced and detached, the on-off control of the carrying box is realized, the carrying box replacing efficiency is improved, and the express delivery distribution efficiency is improved.
Referring to fig. 2, another embodiment of the wireless communication method between the unmanned aerial vehicle and the carrier box according to the embodiment of the present invention includes:
201. the first wireless communication module is set as a master module, the second wireless communication module in the carrier box is set as a slave module, the master module is a master near field communication module or a master Bluetooth module, and the slave module is a slave near field communication module or a slave Bluetooth module.
The master module and the slave modules are in wireless connection by adopting the same wireless communication protocol, the master module and the slave modules are in one-to-one correspondence, when the master module is a master near field communication module, the slave modules are slave near field communication modules, and when the master module is a master Bluetooth module, the slave modules are slave Bluetooth modules.
Further, when the carrier case is mounted on the carrier rack of the drone, the drone starts and initializes the master near field communication module or the master bluetooth module (i.e., the first wireless communication module); the carrier starts and initializes the slave near field communication module or the slave bluetooth module (i.e., the second wireless communication module). Unmanned aerial vehicle sets up first wireless communication module into the slave module, and unmanned aerial vehicle sets up the second wireless communication module in with the thing case into the master module, and the master module is main near field communication module or main bluetooth module, and the slave module is for following near field communication module or from bluetooth module. That is, any one of the first wireless communication module of the unmanned aerial vehicle and the second wireless communication module of the carrier box may be a master module, another wireless communication module may be a slave module, and the master-slave state between the first wireless communication module and the second wireless communication module may also be switched according to the actual application scenario.
It should be noted that, in order to reduce the wireless communication cost and reduce the wiring space, when the actual application scenario is near field communication connection, the first wireless communication module and the second wireless communication module are respectively a master near field communication module and a slave near field communication module, and the unmanned aerial vehicle executes step 202; when the actual application scene is bluetooth communication connection, the first wireless communication module and the second wireless communication module are respectively a master bluetooth module and a slave bluetooth module, and the unmanned aerial vehicle executes step 203.
202. When the distance between the unmanned aerial vehicle and the carrying box meets the preset condition and is in near field communication connection, point-to-point connection is carried out through the master near field communication module and the slave near field communication module within the preset time length, and a connection result is obtained.
It should be noted that, compared to bluetooth, nfc has high security, and both have different preset conditions. That is, the preset condition may be set according to the type of the transmission protocol, for example, the preset condition for the drone to perform near field communication may be set to be greater than or equal to 0 and less than or equal to 10 centimeters (0.1 meter), and may also be set to be greater than or equal to 0 and less than or equal to 4 centimeters, and preferably, the distance between the drone and the carrier box is 4 centimeters, which is not limited herein.
Specifically, when the distance between the unmanned aerial vehicle and the carrying box meets the preset condition and is in near field communication connection, the unmanned aerial vehicle preferentially adopts a near field communication protocol for wireless connection, namely, the unmanned aerial vehicle detects a communication mode of a slave near field communication module through a master near field communication module; when the communication mode of the slave near field communication module is the near field communication point-to-point mode, the unmanned aerial vehicle performs point-to-point connection through the master near field communication module and the slave near field communication module within a preset time period to establish bidirectional communication connection between the master near field communication module and the slave near field communication module, so as to obtain a connection result, and further, the unmanned aerial vehicle executes step 204.
It should be noted that, due to the NFC near field communication principle and the bidirectional peer-to-peer communication principle, when two NFC modules (the master near field communication module and the slave near field communication module) approach each other, the two NFC modules recognize each other to realize wireless communication connection.
203. When the distance between unmanned aerial vehicle and the year thing case satisfies the default condition, and when being bluetooth communication connection, carry out the accordant connection through main bluetooth module and follow bluetooth module in predetermineeing long time, obtain the connection result.
It should be noted that, in a bluetooth communication connection application scenario, for the master bluetooth module and the slave bluetooth module, the unmanned aerial vehicle may set the preset condition to be greater than 10 centimeters and less than or equal to 100 centimeters, or may also set to be greater than 10 centimeters and less than or equal to 300 centimeters, which is not limited herein.
Specifically, when unmanned aerial vehicle and carry the distance between the thing case and satisfy the default condition, and when being bluetooth communication connection, unmanned aerial vehicle preferentially adopts bluetooth communication protocol to carry out wireless connection, that is to say, unmanned aerial vehicle passes through main bluetooth module and searches for from bluetooth module, then main bluetooth module pairs with from the bluetooth, obtains the connection result. Specifically, the unmanned aerial vehicle establishes Bluetooth connection with the slave Bluetooth module through the master Bluetooth module, the unmanned aerial vehicle is provided with a Bluetooth communication channel between the master Bluetooth module and the slave Bluetooth module, and then the unmanned aerial vehicle establishes long connection with the slave Bluetooth module through the Bluetooth communication channel. So that when there are multiple bluetooth modules around the master bluetooth module, the master bluetooth module can also distinguish the slave bluetooth module from the multiple bluetooth modules according to whether an active command is received, and then the drone executes step 204.
It can be understood that, the master bluetooth module and the slave bluetooth module both carry out data transmission through the bluetooth communication protocol, and have the characteristics of long transmission distance and high transmission rate. Unmanned aerial vehicle establishes wireless connection through near field communication agreement or bluetooth communication agreement through the distance between automated inspection unmanned aerial vehicle and the year thing case to be applicable to different practical application scenes.
204. And judging whether the connection result is connection failure or not.
The connection failure is used for indicating that the first wireless connection module and the second wireless connection module are failed to pair. Optionally, the unmanned aerial vehicle determines whether to receive the wireless connection response message sent by the second wireless communication module within a preset time period; if the wireless connection response information sent by the second wireless communication module is not received within the preset time, the unmanned aerial vehicle determines that the connection result is a connection failure, and the unmanned aerial vehicle executes step 205; if the wireless connection response message sent by the second wireless communication module is received within the preset time, the unmanned aerial vehicle determines that the connection result is a successful connection, and the unmanned aerial vehicle executes step 206.
205. If the connection result is connection failure, the first wireless communication module and the second wireless communication module are reconnected according to the preset retry times, and the connection is stopped until the preset retry times are larger than the preset threshold or the wireless communication connection is successful.
Unmanned aerial vehicle has improved wireless connection's accuracy through predetermineeing wireless connection retry mechanism. Optionally, if the connection result is a connection failure, the unmanned aerial vehicle sends a wireless communication connection request to the second wireless communication module, where the wireless connection request includes an unmanned aerial vehicle identifier and data authentication information matched with the second wireless communication module, so that the second wireless communication module verifies the data authentication information, and performs matching connection based on the unmanned aerial vehicle identifier to obtain a reconnection result; and the unmanned aerial vehicle adds 1 to the retried times for calculation until the reconnection result is that the connection is successful, or the retried times are equal to the preset retried times, the connection is stopped, and the initial value of the retried times is 0. For example, the preset retry number is 10, the retry number is 9, and if the reconnection result is a connection failure, the drone continues to reconnect; if the reconnection results in successful connection, the drone determines that the reconnection is successful, and the drone executes step 206. If the retry number is 10 and the reconnection result is connection failure, the unmanned aerial vehicle stops connecting and displays early warning information, wherein the early warning information is used for indicating that the wireless connection is abnormal.
Further, if the connection result is connection failure and near field communication connection, the unmanned aerial vehicle switches the master-slave state of the master near field communication module, and reconnects the near field communication module of the unmanned aerial vehicle through the near field communication module of the carrying box within a preset time length to obtain a reconnection result; or if the connection result is connection failure, and is bluetooth communication connection, then unmanned aerial vehicle switches unmanned aerial vehicle's bluetooth module and carries the bluetooth module's of thing case principal and subordinate state to in predetermineeing long time through carrying the bluetooth module reconnection unmanned aerial vehicle's of thing case bluetooth module, obtain the reconnection result.
206. If the connection result is that the connection is successful, data exchange processing is carried out through the first wireless communication module and the second wireless communication module, and the carrying box is controlled to be opened and closed.
It can be understood that, when the connection result is that the connection is successful, the unmanned aerial vehicle determines whether to establish the wireless communication connection through the near field communication connection or the bluetooth communication connection based on the preset wireless communication protocol, and then the unmanned aerial vehicle can adopt the near field communication protocol or can adopt the bluetooth communication protocol to perform data exchange processing, so as to realize data transmission and logistics distribution control on the carrying box. Optionally, if the connection result is that the connection is successful and the connection is near field communication, the unmanned aerial vehicle starts a radio frequency field of the master near field communication module, the unmanned aerial vehicle sends data to the slave near field communication module through the master near field communication module according to a preset transmission rate, and the slave near field communication module receives and processes the data sent by the master near field communication module in an interception mode; when the main near field communication module sends data, the unmanned aerial vehicle closes the radio frequency field of the main near field communication module and starts the monitoring mode of the main near field communication module, and the unmanned aerial vehicle waits for and processes the data sent by the sub near field communication module and carries out on-off control on the carrying box. It should be noted that the same preset transmission rate is adopted for data transmission and reception between the master near field communication module and the slave near field communication module.
That is, as shown in fig. 3, when the master nfc module receives an operation command from the preset master control board of the drone and sends data as a sender, it will generate its own rf field, and the preset control board of the carrier box can control the target (slave nfc module) to turn off the rf field and receive data from the sender in the listening mode. The sending party sends an initial command to the target party so that the target party performs data operation according to the initial command; after the sender sends the data, the radio frequency field of the sender is closed and is in a monitoring mode, and the target party can respond to the initial command after waiting for sending the data by the target party; when the target transmits data, a corresponding radio frequency field needs to be generated to transmit the data. For example, unmanned aerial vehicle can read the data such as serial number of carrying the thing case, also can realize carrying thing case on-off operation through remote control simultaneously.
Optionally, if the connection result is that the connection is successful and the connection is a bluetooth communication connection, the unmanned aerial vehicle acquires bluetooth data to be sent, where the bluetooth data to be sent is data written in advance based on a bluetooth communication protocol; the unmanned aerial vehicle configures a zone bit according to a Bluetooth command in the Bluetooth data to be sent, and generates a Bluetooth data packet to be sent, wherein the zone bit is used for judging whether the command in the Bluetooth data packet to be sent belongs to an existing command in a Bluetooth communication protocol; the unmanned aerial vehicle sends a Bluetooth data packet to be sent to the slave Bluetooth module through the master Bluetooth module, and the Bluetooth data packet to be sent is used for indicating the master Bluetooth module to exchange data with the slave Bluetooth module and controlling the carrying box to be opened and closed. Furthermore, unmanned aerial vehicle can also obtain the unmanned aerial vehicle sign, and then will add the unmanned aerial vehicle sign in the preset position department in the bluetooth data of awaiting sending, obtain the bluetooth data package of awaiting sending after encrypting, then unmanned aerial vehicle sends the bluetooth data package of awaiting sending after encrypting to the slave bluetooth module through main bluetooth module, so that after receiving this bluetooth data package of awaiting sending after encrypting from bluetooth module, get rid of the unmanned aerial vehicle sign, obtain required bluetooth data of awaiting sending, and carry out data exchange with first wireless communication module according to the bluetooth data of awaiting sending, in order to realize carrying on-off control to the thing case.
Optionally, after step 206, the unmanned aerial vehicle acquires the cargo order information in the carrier box and transports the cargo according to the cargo order information, that is, the unmanned aerial vehicle can acquire the logistics distribution path information according to the acquired order information and acquire the transportation according to the logistics distribution path information; when the unmanned aerial vehicle transports the goods to the target goods receiving user, the unmanned aerial vehicle sends a cargo box opening instruction to the second wireless communication module through the first wireless communication module, and the cargo box opening instruction is used for delivering the goods. That is, unmanned aerial vehicle can realize the goods delivery through the on-off control who controls year thing case.
In the embodiment of the invention, the unmanned aerial vehicle is wirelessly connected with the second wireless communication module in the carrying box through the first wireless communication module, so that the carrying box can be more conveniently replaced and detached, the on-off control of the carrying box is realized, the carrying box replacing efficiency is improved, and the express delivery distribution efficiency is improved.
The above describes the wireless communication method between the unmanned aerial vehicle and the carrier box in the embodiment of the present invention, and the following describes the unmanned aerial vehicle in the embodiment of the present invention in detail from the perspective of hardware processing.
Fig. 4 is a schematic structural diagram of a drone 400 according to an embodiment of the present invention, where the drone 400 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 410 (e.g., one or more processors) and a memory 420, and one or more storage media 430 (e.g., one or more mass storage devices) for storing applications 433 or data 432. Memory 420 and storage medium 430 may be, among other things, transient or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), including a first wireless communication module, each of which may include a series of instructions operating on the drone 400. Still further, the processor 410 may be configured to communicate with the storage medium 430 to execute a series of instruction operations in the storage medium 430 on the drone 400.
The drone 400 may also include one or more power supplies 440, one or more wired or wireless network interfaces 450, one or more input-output interfaces 460, and/or one or more operating systems 431, such as Windows server, Mac OS X, Unix, Linux, FreeBSD, and so forth. Those skilled in the art will appreciate that the drone structure shown in fig. 4 is not intended to be limiting, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The above describes the unmanned aerial vehicle that executes the wireless communication method between the unmanned aerial vehicle and the carrier box in the embodiment of the present invention, and the carrier box in the embodiment of the present invention is described in detail in terms of hardware processing.
Fig. 5 is a schematic structural diagram of a carrier case 500 according to an embodiment of the present invention, where the carrier case 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored in the storage medium 4530 may include one or more modules (not shown), including a second wireless communication module, each of which may include a sequence of instructions for operating on the tote 500. Further, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the carrier case 500.
The tote 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 541, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that the carrier case structure shown in figure 5 does not constitute a limitation of the carrier case and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and which may also be a volatile computer readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the method for wireless communication of a drone with a carrier box.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a drone, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A wireless communication method for an unmanned aerial vehicle and a carrying case is characterized by comprising the following steps:
when the distance between the unmanned aerial vehicle and the carrying box meets a preset condition, establishing wireless connection with a second wireless communication module in the carrying box through a first wireless communication module to obtain a connection result;
judging whether the connection result is connection failure or not;
if the connection result is connection failure, reconnecting the first wireless communication module and the second wireless communication module according to a preset retry number, and stopping connection until the preset retry number is reached or the reconnection is successful;
and if the connection result is that the connection is successful, performing data exchange processing through the first wireless communication module and the second wireless communication module, and performing on-off control on the carrying box.
2. The method according to claim 1, wherein when the distance between the unmanned aerial vehicle and the carrier box meets a preset condition, establishing a wireless connection with a second wireless communication module in the carrier box through a first wireless communication module to obtain a connection result, and the method comprises:
setting a first wireless communication module as a master module and a second wireless communication module in the carrier box as a slave module, wherein the master module is a master near field communication module or a master Bluetooth module, and the slave module is a slave near field communication module or a slave Bluetooth module;
when the distance between the unmanned aerial vehicle and the carrying box meets a preset condition and is in near field communication connection, performing point-to-point connection through the master near field communication module and the slave near field communication module within a preset time length to obtain a connection result; or
When unmanned aerial vehicle and carry the distance between the thing case and satisfy the default condition, and when bluetooth communication connection, pass through in predetermineeing for a long time main bluetooth module with carry out the accordant connection from bluetooth module, obtain the connection result.
3. The method of claim 1, wherein the determining whether the connection result is a connection failure comprises:
judging whether wireless connection response information sent by the second wireless communication module is received within a preset time length;
if the wireless connection response information sent by the second wireless communication module is not received within the preset time length, determining that the connection result is connection failure;
and if the wireless connection response information sent by the second wireless communication module is received within a preset time length, determining that the connection result is successful.
4. The method of claim 1, wherein if the connection result is a connection failure, reconnecting the first wireless communication module and the second wireless communication module according to a preset retry number, and stopping the connection until the preset retry number is reached or the reconnection is successful, the method comprising:
if the connection result is connection failure, sending a wireless communication connection request to the second wireless communication module, wherein the wireless connection request comprises the unmanned aerial vehicle identification and the data authentication information which are matched with the second wireless communication module, so that the second wireless communication module verifies the data authentication information and performs matching connection based on the unmanned aerial vehicle identification to obtain a reconnection result;
and adding 1 to the retried times for calculation, stopping connection when the reconnection result is that the connection is successful or the retried times are equal to the preset retried times, wherein the initial value of the retried times is 0.
5. The method of claim 2, wherein if the connection result is a successful connection, performing data exchange processing through the first wireless communication module and the second wireless communication module, and performing on-off control on the carrier box comprises:
if the connection result is successful and the connection result is near field communication connection, starting a radio frequency field of the main near field communication module, sending data to the slave near field communication module through the main near field communication module according to a preset transmission rate, and receiving and processing the data sent by the main near field communication module by the slave near field communication module in an interception mode;
and when the data transmission of the main near field communication module is finished, closing the radio frequency field of the main near field communication module, starting the monitoring mode of the main near field communication module, waiting for and processing the data transmitted by the slave near field communication module, and performing on-off control on the carrying box.
6. The method of claim 2, wherein if the connection result is a successful connection, performing data exchange processing through the first wireless communication module and the second wireless communication module, and performing on-off control on the carrier box comprises:
if the connection result is that the connection is successful and the connection is a Bluetooth communication connection, acquiring Bluetooth data to be sent, wherein the Bluetooth data to be sent is data written in advance based on a Bluetooth communication protocol;
configuring a zone bit according to a Bluetooth command in the Bluetooth data to be sent, and generating a Bluetooth data packet to be sent, wherein the zone bit is used for judging whether the command in the Bluetooth data packet to be sent belongs to an existing command in the Bluetooth communication protocol;
and sending the Bluetooth data packet to be sent to the slave Bluetooth module through the master Bluetooth module, wherein the Bluetooth data packet to be sent is used for indicating the master Bluetooth module and the slave Bluetooth module to carry out data exchange and carrying out on-off control on the carrying box.
7. The method for wireless communication between a drone and a carrier box according to any one of claims 1 to 6, wherein after the data exchange processing is performed through the first wireless communication module and the second wireless communication module and the switching control is performed on the carrier box if the connection is successful as a result of the connection, the method for wireless communication between a drone and a carrier box further comprises:
acquiring the goods order information in the carrying box, and carrying out goods transportation according to the goods order information;
when the goods are transported to the target goods receiving user, a carrying box opening instruction is sent to the second wireless communication module through the first wireless communication module, and the carrying box opening instruction is used for delivering the goods.
8. A drone, characterized in that it comprises: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the drone to perform the drone to carrier case wireless communication method of any one of claims 1-7.
9. A carrier case, comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the carrier case to perform the drone with carrier case wireless communication method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of wireless communication between a drone and a carrier box according to any one of claims 1 to 7.
CN202011561084.8A 2020-12-25 2020-12-25 Wireless communication method for unmanned aerial vehicle and carrying box and related equipment Pending CN112714505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011561084.8A CN112714505A (en) 2020-12-25 2020-12-25 Wireless communication method for unmanned aerial vehicle and carrying box and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011561084.8A CN112714505A (en) 2020-12-25 2020-12-25 Wireless communication method for unmanned aerial vehicle and carrying box and related equipment

Publications (1)

Publication Number Publication Date
CN112714505A true CN112714505A (en) 2021-04-27

Family

ID=75546357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011561084.8A Pending CN112714505A (en) 2020-12-25 2020-12-25 Wireless communication method for unmanned aerial vehicle and carrying box and related equipment

Country Status (1)

Country Link
CN (1) CN112714505A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660733A (en) * 2021-09-26 2021-11-16 西安酷赛科技有限公司 Wireless communication method based on position information and wireless communication system thereof
WO2023206495A1 (en) * 2022-04-29 2023-11-02 时代电服科技有限公司 Wireless connection method and apparatus for battery management device, and battery management device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102412869A (en) * 2010-09-21 2012-04-11 国民技术股份有限公司 System and method for fast accessing near field communication with controllable communication range
CN103067050A (en) * 2011-10-24 2013-04-24 国民技术股份有限公司 Communication system and communication method
CN103987038A (en) * 2013-02-07 2014-08-13 深圳市快播科技有限公司 Radio communication method and system
US20170164190A1 (en) * 2015-12-04 2017-06-08 Lenovo (Singapore) Pte. Ltd. Initial access to network that is permitted from within a threshold distance
CN110505609A (en) * 2018-09-19 2019-11-26 深圳市文鼎创数据科技有限公司 A kind of bluetooth exchange method, bluetooth interactive device and terminal device
CN111586657A (en) * 2020-04-29 2020-08-25 Oppo(重庆)智能科技有限公司 Near field communication method, device, storage medium and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102412869A (en) * 2010-09-21 2012-04-11 国民技术股份有限公司 System and method for fast accessing near field communication with controllable communication range
CN103067050A (en) * 2011-10-24 2013-04-24 国民技术股份有限公司 Communication system and communication method
CN103987038A (en) * 2013-02-07 2014-08-13 深圳市快播科技有限公司 Radio communication method and system
US20170164190A1 (en) * 2015-12-04 2017-06-08 Lenovo (Singapore) Pte. Ltd. Initial access to network that is permitted from within a threshold distance
CN110505609A (en) * 2018-09-19 2019-11-26 深圳市文鼎创数据科技有限公司 A kind of bluetooth exchange method, bluetooth interactive device and terminal device
CN111586657A (en) * 2020-04-29 2020-08-25 Oppo(重庆)智能科技有限公司 Near field communication method, device, storage medium and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660733A (en) * 2021-09-26 2021-11-16 西安酷赛科技有限公司 Wireless communication method based on position information and wireless communication system thereof
WO2023206495A1 (en) * 2022-04-29 2023-11-02 时代电服科技有限公司 Wireless connection method and apparatus for battery management device, and battery management device

Similar Documents

Publication Publication Date Title
US11750245B2 (en) Power transmission apparatus, power reception apparatus, method, and recording medium
AU2008217251B2 (en) Device and method for providing RFID identification data for an authentication server
CN103222291B (en) Electronic equipment, NFC controller and application method for configuring route
US20140250513A1 (en) Automatic transfer of credentials between wireless access points
CN112714505A (en) Wireless communication method for unmanned aerial vehicle and carrying box and related equipment
EP2861035A1 (en) Method and system for managing multiple applications in near field communication
US20150078753A1 (en) Remote control system and method
US9661477B1 (en) Collaborative robotic device work group
KR101844417B1 (en) Method of selecting air interface at an ambient connectivity and the hub thereof
EP2750025A1 (en) Electronic shelf labeling system
CN101647028A (en) Method for establishing a wireless communication connection between an automation component and a mobile operating terminal
US20100253520A1 (en) Device, method and system for forwarding data from rfid devices
CN111431765A (en) Driving control method and device
CN104683435A (en) Network System, Constant Connection Method, Electronic Device, Server, And Program
WO2023109354A1 (en) Information detection method, base station, storage medium, and computer program product
CN105550868A (en) Mobile payment method and apparatus
CN103326749A (en) NFC radio frequency communication control method, device and system
US20080136606A1 (en) Separable device for controlling node and sensor network node
US10790879B2 (en) Method for routing data frame, near field communication controller, and terminal
KR20200035006A (en) Control method, node and computer storage media
US9853832B2 (en) Wireless ethernet network controlling method and wireless ethernet network system
US10482760B2 (en) Method for linking a second remote control unit to a first remote control unit
CN102811153A (en) VLAN state negotiating method and edge device
JP2016181826A (en) Terminal, processing device, processing system and program
TWI730379B (en) Method for improving transmission rate in mesh network, wireless access device, and client terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210427