Vehicle data transmission method, system and device, vehicle, storage medium and program product
By obtaining the signal strength of the AP device and determining the operating status of the flying vehicle, controlling the connection between the flying vehicle and the destination AP device, the problem of missing data during the roaming of the flying vehicle is solved, and the continuous transmission and storage of data is realized.
Patent Information
- Application Number
- CN202411909039.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-23
AI Technical Summary
During the movement of flying vehicles, the traditional ZigBee networking process cannot ensure communication continuity, resulting in the lack of roaming data.
By obtaining the signal strength of the source AP device and the destination AP device, the operating status of the flying vehicle is determined, and the flight vehicle is controlled to communicate and connect with the destination AP device in the roaming state, and roaming data is obtained and transmitted.
The continuous transmission and storage of data during the roaming of the flying vehicle is realized, avoiding the problem of data loss and ensuring smooth roaming of the flying vehicle between different ZigBee networks.
Smart Images

Figure CN119729907A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of flying vehicles, and in particular to a method, system, device, vehicle, storage medium and program product for vehicle data transmission. Background Art
[0002] With the continuous advancement and deepening application of Internet of Things technology, flying cars, as an emerging means of transportation, not only show great potential in the field of personal travel, but also show their unique application value in many fields such as agriculture, industry, emergency response, etc. Compared with traditional ground transportation tools, flying cars can cross terrain obstacles and achieve fast and flexible movement. This feature requires its communication system to have the ability to support large-scale movement to ensure continuous communication and data transmission during flight.
[0003] In related technologies, IoT (e.g., ZigBee network) communication technology is mainly designed for short-distance, low-power device-to-device communication. Although it performs well in scenarios such as home automation and industrial control, its communication range is limited, usually between a few hundred meters and one kilometer. When a flying car moves from the coverage of one ZigBee network to the coverage of another network, the traditional ZigBee network networking process cannot guarantee the communication continuity of the flying car, resulting in a technical problem of missing roaming data of the flying vehicle.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] Embodiments of the present invention provide a method, system, device, vehicle, storage medium and program product for vehicle data transmission, so as to at least solve or partially solve the technical problem of missing roaming data of a flying vehicle.
[0006] According to one aspect of an embodiment of the present invention, a method for vehicle data transmission is provided, which may include: obtaining a first signal strength of a source AP device, and a second signal strength of a destination AP device, wherein the source AP device is an edge AP device of a network to which the flying vehicle has been connected, and the destination AP device is an edge AP device of a network to which the flying vehicle is to be connected; determining the operating state of the flying vehicle based on the first signal strength and the second signal strength; in response to the operating state being a roaming state, controlling the flying vehicle to communicate with the destination AP device, and obtaining roaming data generated by the flying vehicle in the roaming state; and transmitting the roaming data to the destination AP device that has been successfully connected to the flying vehicle.
[0007] Optionally, based on the first signal strength and the second signal strength, the operating status of the flying vehicle is determined, including: in response to the first signal strength being less than the second signal strength, calling a roaming strategy, wherein the roaming strategy is at least used to characterize a signal strength threshold of a source AP device; in response to the first signal strength satisfying the roaming policy, determining that the operating status is a roaming state.
[0008] Optionally, in response to the running state being a roaming state, controlling the flying vehicle to establish a communication connection with a destination AP device, including: in response to the running state being a roaming state, sending an authentication request to the destination AP device, wherein the authentication request is used to request the destination AP device to authenticate the flying vehicle; in response to the destination AP device successfully authenticating the flying vehicle, controlling the flying vehicle to establish a communication connection with the destination AP device.
[0009] Optionally, the method may also include: in response to the flying vehicle and the destination AP device being successfully connected, obtaining network information of the network to be connected transmitted by the destination AP device, wherein the network information is used to identify the network to be connected; and controlling the flying vehicle to access the network to be connected according to the network information.
[0010] Optionally, controlling the flying vehicle to access the network to be connected according to the network information includes: comparing the network information with the historical network information stored in the flying vehicle to obtain a comparison result; in response to the comparison result indicating that the network information is different from the historical network information, controlling the flying vehicle to send a disconnection instruction to the connected network, and controlling the flying vehicle to access the network to be connected according to the network information, wherein the disconnection instruction is used to indicate the communication connection between the flying vehicle and the connected network.
[0011] Optionally, the method may further include: in response to a successful connection between the flying vehicle and the destination AP device, transmitting the roaming data to a controller associated with the destination AP device, wherein the roaming data is transmitted to the cloud by the controller.
[0012] According to another aspect of an embodiment of the present invention, a system for transmitting roaming data of a vehicle is also provided, which system may include: a flying vehicle, used to obtain a first signal strength of a source AP device, and a second signal strength of a destination AP device, wherein the source AP device is an edge AP device of a network to which the flying vehicle has been connected, and the destination AP device is an edge AP device of a network to which the flying vehicle is to be connected; based on the first signal strength and the second signal strength, determining the operating state of the flying vehicle; in response to the operating state being a roaming state, controlling the flying vehicle to communicate with the destination AP device, and obtaining roaming data generated by the flying vehicle in the roaming state; transmitting the roaming data to the destination AP device that is successfully connected to the flying vehicle; the destination AP device, used to communicate with the flying vehicle, and transmit the roaming data to the cloud.
[0013] Optionally, the destination AP device is also used to transmit network information of the network to be connected to the flying vehicle in response to the destination AP device being successfully connected to the flying vehicle; the flying vehicle is also used to communicate with the network to be connected according to the network information.
[0014] Optionally, the system may further include: a network to be connected, used to obtain roaming data stored in the cloud using the coordinator in response to a successful connection with the flying vehicle.
[0015] Optionally, the system may further include: a controller associated with the destination AP device, configured to obtain roaming data in the destination AP device in response to a successful connection between the flying vehicle and the destination AP device, and transmit the roaming data to the cloud.
[0016] Optionally, the destination AP device transmits the roaming data to the controller through a data transmission tunnel.
[0017] According to another aspect of an embodiment of the present invention, a device for vehicle data transmission is also provided, which may include: an acquisition unit, used to acquire a first signal strength of a source AP device, and a second signal strength of a destination AP device, wherein the source AP device is an edge AP device of a network to which the flying vehicle is already connected, and the destination AP device is an edge AP device of a network to which the flying vehicle is to be connected; a determination unit, used to determine the operating state of the flying vehicle based on the first signal strength and the second signal strength; a processing unit, used to control the flying vehicle to communicate with the destination AP device in response to the operating state being a roaming state, and to acquire roaming data generated by the flying vehicle in the roaming state; and a transmission unit, used to transmit the roaming data to the destination AP device that is successfully connected to the flying vehicle.
[0018] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the method in each embodiment of the present invention is executed when the program is running.
[0019] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.
[0020] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.
[0021] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.
[0022] According to another aspect of the embodiments of the present invention, a computer program is further provided. When the computer program is executed by a processor, the methods in the embodiments of the present invention are implemented.
[0023] According to another aspect of an embodiment of the present invention, a vehicle is provided, including a memory and a processor, wherein the memory stores an executable program, and the processor is used to run the program, wherein the method in each embodiment of the present invention is executed when the program is run.
[0024] In an embodiment of the present invention, based on the first signal strength of the source AP device and the second signal strength of the destination AP device acquired by the flying vehicle, it is determined whether the vehicle is in a roaming state. If the flying vehicle is in a roaming state, the flying vehicle and the destination AP device can be controlled to communicate and connect, so that the roaming data generated by the flying vehicle in the roaming state can be transmitted to the cloud through the destination AP device for storage. That is, in an embodiment of the present invention, a storage method for roaming data generated in a roaming scenario is proposed for the roaming scenario of the flying vehicle, so that the vehicle can enter another controlled network to be connected in a manner similar to wireless roaming, thereby avoiding the defects of short-range wireless communication of the flying vehicle, thereby achieving the technical effect of avoiding the lack of roaming data of the flying vehicle, and solving the technical problem of the lack of roaming data of the flying vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0026] Figure 1 is a flow chart of a method for vehicle data transmission according to an embodiment of the present invention;
[0027] Figure 2 is a block diagram of a vehicle data transmission system according to an embodiment of the present invention;
[0028] Figure 3 is a flow chart of a network initialization method according to an embodiment of the present invention;
[0029] Figure 4 is a flow chart showing a network access process according to an embodiment of the present invention;
[0030] Figure 5is a schematic diagram showing a flying vehicle roaming between networks according to an embodiment of the present invention;
[0031] Figure 6 is a schematic diagram showing a data transmission process according to an embodiment of the present invention;
[0032] Figure 7 is a schematic diagram of a message format according to an embodiment of the present invention;
[0033] Figure 8 The present invention is a structural block diagram of a device for transmitting vehicle data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] According to an embodiment of the present invention, a method embodiment of vehicle data transmission is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0037] The embodiment of the present application provides a method for vehicle data transmission. The method can be used to provide a roaming function for a flying vehicle in a preset application scenario to store the roaming data generated by the flying vehicle in the roaming scenario. The above-mentioned preset application scenarios may include the following scenarios in the vehicle field: commuting automatic driving scenarios, artificial intelligence (AI) driving scenarios for family cars, automatic parking assistance (APA) scenarios (such as memory parking for self-owned parking spaces in garages, smart parking for designated parking spaces in parking lots, etc.), and intelligent navigation assistance (Navigation Guided Pilot, NGP) scenarios in urban areas or high-speed areas. In addition, the above-mentioned preset application scenarios may also include but are not limited to: automatic driving scenarios of smart driving trucks or unmanned trucks in the field of logistics and transportation, automatic driving scenarios of automatic driving agricultural vehicles in the field of agricultural machinery, automatic driving scenarios of drones, and automatic driving scenarios of intelligent robots (such as cleaning robots, service robots, delivery robots, etc.).
[0038] Figure 1 is a flow chart of a method for transmitting vehicle data according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:
[0039] Step S102, obtaining a first signal strength of a source AP device and a second signal strength of a destination AP device, wherein the source AP device is an edge AP device of a network to which the flying vehicle has been connected, and the destination AP device is an edge AP device of a network to which the flying vehicle is to be connected.
[0040] In the technical solution provided in the above step S102 of the present invention, the above-mentioned source AP device can be an edge AP device of the network to which the flying vehicle is connected, can be a connected AP device, can serve as a router or gateway in the connected network, and can be responsible for receiving and sending data. The above-mentioned destination AP device can be an AP device to be connected, can be deployed at the edge of the network to be connected, or can be an edge AP device of the network to be connected. The above-mentioned flying vehicle (Stat ion, abbreviated as STA) can refer to a client device in a wireless local area network, and can be a device trying to connect or connecting to an AP (access point). The above-mentioned connected network and the network to be connected can be wireless communication networks, for example, they can be Internet of Things networks (ZigBee networks). It should be noted that this is only an example, and there is no specific limitation on the type of the above-mentioned network.
[0041] Optionally, the flying vehicle may continuously monitor the signal strength of surrounding AP devices during movement to obtain a first signal strength of a source AP device and a second signal strength of a destination AP device.
[0042] Optionally, when the flying vehicle moves from the coverage area of the connected network to the coverage area of the network to be connected, the flying vehicle can monitor and obtain the first signal strength of the edge AP device currently connected (i.e., the source AP device) and the second signal strength of the edge AP device to be connected (i.e., the destination AP device). The flying vehicle can be continuously detected during the movement to ensure that the flying vehicle can identify signal changes in a timely manner, thereby providing a basis for the subsequent roaming decision of the flying vehicle.
[0043] For example, a destination AP device and a source AP device are deployed in the network to be connected and the connected network, respectively. At the beginning, the flying vehicle and the source AP device are in a connected state, but as the flying vehicle moves, the first signal strength of the source AP device begins to weaken, and at the same time, the second signal strength of the destination AP device begins to increase. The first signal strength and the second signal strength can be detected.
[0044] Step S104: determining the operating state of the flying vehicle based on the first signal strength and the second signal strength.
[0045] In the technical solution provided in the above step S104 of the present invention, the above operating state may include a roaming state and a non-roaming state. The above roaming state may be a wireless network roaming state.
[0046] Optionally, the flying vehicle can continuously detect the signal strength of surrounding AP devices during movement. When it moves to a critical area between the coverage areas of two AP devices, it can evaluate which AP device has a stronger and more stable signal based on the acquired first signal strength and second signal strength, and make a decision on whether to roam based on the monitoring result of the signal strength to determine the operating status of the flying vehicle.
[0047] For example, if the flying vehicle detects that the second signal strength is 15 decibel-milliwatt (dBm) stronger than the first signal strength, and the flight path indicates that the flying vehicle will enter the coverage range of the network to be connected, it can be determined that the operating state of the flying vehicle is a state requiring roaming (i.e., roaming state).
[0048] Step S106, in response to the operating state being the roaming state, controlling the flying vehicle to establish a communication connection with the destination AP device, and acquiring roaming data generated by the flying vehicle in the roaming state.
[0049] In the technical solution provided in the above step S106 of the present invention, when the flying vehicle is confirmed to be in a roaming state, the flying vehicle can be controlled to establish a communication connection with the destination AP device. At the same time, the roaming data of the flying vehicle in the roaming state can be obtained, and the roaming data can be used to characterize the movement of the flying vehicle in the roaming state, which may include but is not limited to the flight path, location information, speed, network switching time, and other information related to the network connection state. It should be noted that there is no specific restriction on the type of roaming data here.
[0050] Optionally, it can be determined whether the flying vehicle needs to start the roaming process based on the change in signal strength. If it is determined that the flying vehicle is in the roaming state, the flying vehicle can be controlled to communicate with the destination device when the vehicle is in the roaming state, thereby avoiding unnecessary network switching and improving efficiency. At the same time, the roaming data generated by the flying vehicle in the roaming state can be obtained to ensure that the key data generated by the flying vehicle in the roaming process can be fully recorded to provide a basis for subsequent analysis and operation.
[0051] Step S108, transmitting the roaming data to the destination AP device that is successfully connected to the flying vehicle.
[0052] In the technical solution provided in the above step S108 of the present invention, after obtaining the roaming data, the roaming data can be transmitted to the destination AP device that is successfully connected to the flying vehicle. The destination AP device can be used to transmit the roaming data to the cloud for storage. Therefore, when the flying vehicle is not yet connected to the network to be connected, the roaming data can be transmitted and stored through the AP device, thereby avoiding the loss of roaming data.
[0053] Optionally, the first signal strength of the source AP device and the second signal strength of the destination AP device are obtained. Based on the first signal strength and the second signal strength, the operating state of the flying vehicle can be determined. If the operating state of the flying vehicle is a roaming state, the flying vehicle and the destination AP device can be controlled to establish a communication connection. Before the flying vehicle establishes a communication connection with the destination AP device, the roaming data of the flying vehicle can be obtained, and the roaming data can be transmitted to the cloud through the source AP device to complete the storage of the roaming data. When the flying vehicle is successfully connected to the destination AP device, the roaming device can be transmitted to the destination AP device that is successfully connected to the flying vehicle, and the roaming data can be uploaded to the cloud through the destination AP device to complete the storage of the roaming data.
[0054] Optionally, during the roaming process of the flying vehicle, the data transmission process of the flying vehicle will not be interrupted. Before connecting with the destination AP device, the roaming data can be transmitted through the source AP device. After connecting with the destination AP device, the roaming data can be transmitted using the destination AP device, thereby avoiding the problem of roaming data loss due to network switching during the roaming process of the flying vehicle, and achieving the technical effect of avoiding roaming data loss.
[0055] Since the existing ZigBee network networking in the related art does not have a roaming scenario for sub-nodes (i.e., flying vehicles), the short-range characteristics of the Internet of Things will cause the sub-nodes that move quickly over a large range to be unable to maintain effective status in the current Internet of Things network. Therefore, in this embodiment, a roaming scenario is proposed for the Internet of Things sub-nodes that move quickly over a large range. That is, according to the change in signal strength, the operating status of the flying vehicle is determined to determine whether it is necessary to start the roaming process of the flying vehicle. If it is determined that the flying vehicle needs to start the roaming state, the flying vehicle can be controlled to communicate with the destination AP device. When the flying vehicle and the destination AP device are successfully connected, the roaming data can be transmitted to the destination AP device that is successfully connected to the flying vehicle, thereby avoiding the problem of missing roaming data during the network switching process. This method can ensure that the flying vehicle switches the network when the signal conditions permit, thereby reducing communication interruptions caused by signal weakening.
[0056] In the above steps S102 to S108 of the present invention, based on the first signal strength of the source AP device and the second signal strength of the destination AP device acquired by the flying vehicle, it is determined whether the vehicle is in a roaming state. If the flying vehicle is in a roaming state, the flying vehicle and the destination AP device can be controlled to communicate and connect, so that the roaming data generated by the flying vehicle in the roaming state can be transmitted to the cloud through the destination AP device for storage. That is, in this embodiment, for the roaming scenario of the flying vehicle, a storage method for roaming data generated in the roaming scenario is proposed, so that the vehicle can enter another controlled network to be connected in a manner similar to wireless roaming, thereby avoiding the defects of short-range wireless communication of the flying vehicle, thereby achieving the technical effect of avoiding the lack of roaming data of the flying vehicle, and solving the technical problem of the lack of roaming data of the flying vehicle.
[0057] The following further describes the process of how to determine the operating state of the flying vehicle based on the first signal strength and the second signal strength in this embodiment.
[0058] As an optional implementation, step S104, based on the first signal strength and the second signal strength, determines the operating status of the flying vehicle, including: in response to the first signal strength being less than the second signal strength, calling up a roaming strategy, wherein the roaming strategy is at least used to characterize a signal strength threshold of a source AP device; in response to the first signal strength satisfying the roaming strategy, determining that the operating status is a roaming state.
[0059] In this embodiment, the first signal strength and the second signal strength are obtained, and the magnitude of the first signal strength and the second signal strength can be judged to determine whether the operating state is a roaming state. If the first signal strength is less than the second signal strength, a roaming strategy can be called up, and the roaming strategy can be used to further judge the operating state of the flying vehicle, thereby improving the accuracy of the judgment of the operating state of the flying vehicle. The above-mentioned roaming strategy can be a pre-set strategy, or a condition for the flying vehicle to roam, for example, it can be a signal strength threshold that the first signal strength needs to meet when the flying vehicle roams, or it can be information such as a roaming delay time. It should be noted that this is only an example, and there is no specific limitation on the content of the roaming strategy.
[0060] Optionally, if the first signal strength is less than the second signal strength, the roaming strategy can be called up to further judge the operating status of the flying vehicle based on the roaming strategy. The roaming strategy can at least be used to characterize the signal strength threshold that the source AP device needs to meet. For example, it can be the minimum value of the first signal strength operation. If the first signal strength meets the signal strength threshold, it can be determined that the operating status is a roaming state.
[0061] For example, if the first signal strength is less than the second signal strength, it can be determined that the second signal strength of the destination AP device to be connected is significantly higher than the first signal strength of the connected source AP device, and the pre-set roaming strategy can be called up, such as the signal strength threshold that needs to be met, roaming delay and other strategies, and the roaming strategy is used to further judge the operating status of the flying vehicle. In response to the first signal strength threshold meeting the roaming strategy, it can be determined that the operating status is a roaming state. Through the above method, the purpose of accurately judging the operating status of the flying vehicle can be achieved.
[0062] In the embodiment of the present invention, through the above method, the "roaming strategy" can be applied to the ZigBee network switching scenario of the flying vehicle, which can significantly improve the intelligence and service efficiency of the vehicle-mounted communication system, ensure that the flying vehicle can maintain the best network connection state during the roaming process, and thus provide more stable, safe and efficient communication services. This not only enhances the scene adaptability of the flying vehicle, but also optimizes resource management and user experience, and demonstrates the innovative value and application potential of vehicle-mounted Internet of Things communication technology in the field of smart cars. At the same time, through the above method, the operating state of the flying vehicle is first preliminarily judged based on the acquired first signal strength and second signal strength, and then the operating state of the flying vehicle is judged again based on the roaming strategy, thereby achieving the purpose of accurately determining the operating state of the flying vehicle.
[0063] The following further describes how to control the flying vehicle to establish a communication connection with the destination AP device in this embodiment.
[0064] As an optional implementation, step S106, in response to the operating state being a roaming state, controlling the flying vehicle to establish a communication connection with the destination AP device, includes: in response to the operating state being a roaming state, sending an authentication request to the destination AP device, wherein the authentication request is used to request the destination AP device to authenticate the flying vehicle; in response to the destination AP device successfully authenticating the flying vehicle, controlling the flying vehicle to establish a communication connection with the destination AP device.
[0065] In this embodiment, if the operation state of the flying vehicle is roaming, an authentication request may be sent to the destination AP device, and the authentication request may be used to request the destination AP device to authenticate the flying vehicle. In response to the destination AP device successfully authenticating the flying vehicle, it may be determined that the flying vehicle can be connected to the destination AP device for communication, so that the flying vehicle and the destination AP device can be connected for communication.
[0066] Optionally, the above steps describe the process of how to establish a secure and reliable communication connection with the destination AP device when the flying vehicle enters a roaming state. The above process may include the following: in response to the flying vehicle's operating state being a roaming state, it can be determined that a communication connection is required between the flying vehicle and the destination AP device at this time. During the communication connection, an authentication request can be sent to the destination AP device. Only when the target device authenticates the flying vehicle can the communication connection between the flying vehicle and the destination AP device be controlled.
[0067] For example, when it is determined that the operating state of the flying vehicle is a roaming state, that is, the first signal strength of the currently connected source AP device has dropped below the threshold preset by the roaming policy, and the second signal strength of the destination AP device deployed in the new ZigBee network is strong enough, the flying vehicle can automatically send an authentication request to the destination AP device. The authentication request can be a prerequisite for the connection between the flying vehicle and the destination AP device, and can be used to request the destination AP device to authenticate the identity of the flying vehicle to ensure that only legitimate flying vehicles can access the destination AP device, thereby ensuring that only safe flying devices can access the network to be connected through the destination AP device, thereby enhancing network security. Among them, the above-mentioned authentication request may include information such as the identity information and security credentials of the flying vehicle, which can be used for verification by the destination AP device. It should be noted that this is only an example, and there is no specific restriction on the content of the authentication request and the process of the authentication request.
[0068] Optionally, after receiving the authentication request from the flying vehicle, the destination AP device can start the authentication process. The process may include but is not limited to various authentication mechanisms (e.g., PSK and EAP of WPA / WPA2) authentication, etc. Through the above authentication mechanism, the destination AP device can verify the identity and access authority of the flying vehicle to ensure the information security of the flying vehicle and the rational use of network resources.
[0069] Optionally, in response to the destination AP device successfully authenticating the flying vehicle, the flying vehicle can be controlled to establish a communication connection with the destination AP device. That is, once the destination AP device completes the authentication of the flying vehicle and confirms that it is a legitimate user, the flying vehicle can establish a communication connection with the destination AP device.
[0070] For example, the flying vehicle sends an authentication request to the destination AP device, and the authentication request can be a connection request command. The destination AP device responds to the authentication request and authenticates the flying vehicle. After the authentication is passed, the destination AP device can send an acknowledgment (ACK) signal through a data transmission tunnel (for example, a CAPWAP tunnel) or a direct response to confirm that the flying vehicle can join the network, so that the flying vehicle can establish a communication connection with the destination AP device. In this way, the flying vehicle completes the roaming process from the source AP device to the destination AP device, and regains stable data transmission and network services.
[0071] In the embodiment of the present invention, by implementing the authentication request and authentication process, the identity authentication of the flying vehicle before joining the new network is ensured, the access of illegal devices is effectively prevented, and the security of the ZigBee network is enhanced. Only the flying vehicle that has been successfully authenticated can access the destination AP device, avoiding the waste of network resources and ensuring the quality and efficiency of network services, especially when network resources are limited. The above process ensures the smooth connection of the flying vehicle during roaming, avoids connection interruption and data loss, and improves the continuity and stability of data transmission of the flying vehicle during roaming. And the stable connection and data transmission of the flying vehicle during roaming provides users with a seamless network experience, especially in scenarios where critical tasks are performed or continuous communication is required, which enhances the user's confidence in the control of the flying vehicle and the comfort of use.
[0072] In summary, the above steps ensure the safety and connection stability of flying vehicles during roaming through the authentication mechanism, optimize the use of network resources, and improve the user experience. They are the key processes for achieving safe and efficient data transmission when flying vehicles roam between ZigBee networks.
[0073] The following is a detailed description of the process of the flying vehicle in this embodiment accessing the network to be connected.
[0074] As an optional implementation, the method may also include: in response to the successful connection between the flying vehicle and the destination AP device, obtaining network information of the network to be connected transmitted by the destination AP device, wherein the network information is used to identify the network to be connected; and controlling the flying vehicle to access the network to be connected according to the network information.
[0075] In this embodiment, the network information may be a data message sent by the destination AP device (i.e., AP2 data message), which may include network information of the network to be connected, may be used to identify the identity of the network to be connected, and may include identity information of the network to be connected where the destination AP device is located, for example, may include an Internet Protocol (IP) address or a network identifier (ID) of the network to be connected. It should be noted that this is only an example, and there is no specific limitation on the content included in the network information.
[0076] Optionally, in response to the successful connection between the flying vehicle and the destination AP device, the destination AP device may send network information of the network to be connected to the flying vehicle. The flying vehicle may access the corresponding network to be connected according to the network information.
[0077] For example, in response to the successful connection between the flying vehicle and the destination AP device, the destination AP device can transmit the network information of the network to be connected to the flying vehicle. The flying vehicle obtains the network information of the network to be connected and re-triggers the ZigBee network access process, so that the flying vehicle can access the network to be connected.
[0078] Optionally, when the flying vehicle detects that the signal strength of the destination AP device (second signal strength) is higher than the signal strength of the currently connected source AP device (first signal strength) during movement, and meets the threshold conditions set in the roaming policy, the roaming process can be triggered. In response to the vehicle's operating state being a roaming state, the flying vehicle can be controlled to send an authentication request to the destination AP device, and after the authentication process is successfully completed, a communication connection is established with the destination AP device. The establishment of this connection is a prerequisite for the flying vehicle to roam to the network to be connected.
[0079] Furthermore, once the flying vehicle is successfully connected to the destination AP device, the destination AP device can send the network information of the network to be connected to the flying vehicle. The network information may include but is not limited to key parameters such as network ID, channel information, encryption method, etc., which can be used to identify the network to be connected and inform the flying vehicle how to correctly access the network. In the network to be connected (for example, ZigBee network), the network ID is an important identifier to distinguish different networks, the channel information can be used to determine the communication frequency, and the encryption method can ensure the security of data transmission between the flying vehicle and the network.
[0080] Optionally, after the flying vehicle receives the network information transmitted by the destination AP device, the network controller of the flying vehicle can start to execute the process of accessing the network to be connected according to the network information, so as to achieve the purpose of connecting the flying vehicle to the network to be connected. For example, the flying vehicle can use the received network ID to identify the correct network to be connected, adjust its channel settings to match the communication frequency of the network to be connected, and re-establish a secure connection according to the encryption method, so as to ensure that the flying vehicle can quickly and accurately access the network to be connected, avoid connection problems and data loss that may occur during network switching, and thus maintain continuous communication between the flying vehicle and the upper network.
[0081] In the embodiment of the present invention, the above steps describe how to obtain and use the network information transmitted by the target AP device to access the network to be connected after the flying vehicle successfully connects to the target AP device. Through the above process, it can be ensured that the network switching of the flying vehicle during the roaming process is smooth, the risk of connection interruption is reduced, and continuous network services are provided. By obtaining the correct network information and immediately accessing the network to be connected according to the network information, the flying vehicle can ensure the continuity of data transmission and avoid data loss or delay during roaming. The flying vehicle can also quickly find the best network access point based on the network information, reducing the search time during roaming, improving the utilization efficiency of network resources, and also reducing unnecessary energy consumption of the flying vehicle during roaming.
[0082] Optionally, after successfully connecting to the destination AP device, the flying vehicle can obtain network information and access the network to be connected according to the network information. This is a key step to achieve smooth network switching, continuous data transmission, communication security, and efficient resource utilization during roaming. The above steps ensure the communication quality and user experience of the flying vehicle when roaming between different ZigBee networks.
[0083] The following further explains the manner in which the flying vehicle in this embodiment accesses the network to be connected according to the network information.
[0084] As an optional implementation, controlling the flying vehicle to access the network to be connected according to the network information includes: comparing the network information with the historical network information stored in the flying vehicle to obtain a comparison result; in response to the comparison result indicating that the network information is different from the historical network information, controlling the flying vehicle to send a disconnection instruction to the connected network, and controlling the flying vehicle to access the network to be connected according to the network information, wherein the disconnection instruction is used to indicate the communication connection between the flying vehicle and the connected network.
[0085] In this embodiment, when the flying vehicle accesses the source AP device, it will obtain and store the historical network information sent by the source AP device, and use the historical network information to connect to the connected network. After the flying vehicle obtains the new network information, the network information and the historical network information can be compared to obtain a comparison result, which may include: the network information is the same as the historical network information, or the network information is different from the historical network information. In response to the comparison result used to characterize that the network information and the historical network information are different, it can be determined that the flying vehicle needs to access a new network to be connected. At this time, the flying vehicle can be controlled to send a disconnection instruction to the connected network, and the flying vehicle can be controlled to access the network to be connected according to the network information. Among them, the above-mentioned disconnection instruction can be used to indicate the communication connection between the contact flying vehicle and the connected network.
[0086] Optionally, if the comparison result is used to characterize that the network information is identical to the historical network information, it can be determined that the flying vehicle does not need to switch networks, and the connection state between the flying vehicle and the connected network can be maintained.
[0087] Optionally, for the first ZigBee network, the flying vehicle roams from the source AP device to the destination AP device, and the flying vehicle is still in a route-reachable state. At this time, the flying vehicle receives the network information of the second ZigBee network in the destination AP data message, and the flying vehicle can actively start the ZigBee device separation process. The ZigBee device separation process may include: the flying vehicle actively sends a disconnection command to the connected network, and regardless of whether the flying device receives a response from the coordinator in the connected network, it is considered that the flying vehicle has completed the separation process from the connected network.
[0088] Optionally, after receiving the network information of the network to be connected sent by the destination AP device, the flying vehicle can automatically compare the network information with the historical network information stored inside the flying vehicle. The historical network information may include but is not limited to the network parameters of the current connection of the flying vehicle, such as network ID, channel frequency, encryption method and other information. Through comparison, the flying vehicle can determine whether the network to be connected to which the current signal source (destination AP device) belongs is different from the connected network, and whether it has better connection conditions or better network resources. If the comparison results show that the network information transmitted by the destination AP device is significantly different from the historical network information stored in the flying vehicle, it can be determined that the flying vehicle is approaching or has entered a new network coverage area. At this time, the flying vehicle can make intelligent decisions and prepare to disconnect from the currently connected network in order to join the network to be connected with a stronger signal or a more suitable signal.
[0089] Optionally, after determining that it is necessary to disconnect from the current network, the flying vehicle can automatically send a disconnection instruction to the AP device or coordinator of the connected network. The purpose of this instruction is to formally terminate the communication connection with the current network, ensure the reasonable allocation of network resources and avoid unnecessary data conflicts. According to the ZigBee protocol standard (IEEE802.15.4), after sending the disconnection instruction, the flying vehicle will consider itself disconnected from the current network regardless of whether it receives a confirmation response from the AP device or coordinator. Further, after completing the disconnection from the connected network, the flying vehicle can use the network information received from the destination AP device to start the ZigBee networking process to access the network to be connected according to the network access process. The process of accessing the network to be connected can include steps such as setting a new network ID, adjusting the communication channel, and establishing an encrypted connection, which can ensure that the flying vehicle can seamlessly switch to the new network environment and maintain the continuity of its remote control and data transmission.
[0090] In the embodiment of the present invention, the above steps describe how the flying vehicle intelligently determines whether it needs to disconnect from the current network (connected network) and how to smoothly access the network to be connected after obtaining the new network information transmitted by the destination AP device. The above process ensures that the flying vehicle can switch networks efficiently and safely while moving, and maintain the continuity of its data transmission and communication. By intelligently judging and selecting the best network, the flying vehicle can efficiently utilize network resources and avoid consuming unnecessary energy and bandwidth in a network with weak signals. When the flying vehicle switches networks, the above method can smoothly transition from the connected network to the network to be connected, avoiding connection interruption, and ensuring the continuity of communication and data integrity. In the above process, when the flying vehicle accesses a new network, it will follow the corresponding security policy and authentication process, which not only enhances the security of the network, but also protects the privacy and data security of the flying vehicle. The intelligent network switching function of the flying vehicle reduces the delay and instability caused by network switching, provides a smoother remote control experience, and enhances the user's confidence in the control of the flying vehicle while moving.
[0091] Optionally, the flying vehicle can intelligently identify and quickly switch networks during roaming, which is the key to achieving seamless roaming between different ZigBee networks. The above process ensures that the flying vehicle always maintains the best network connection while moving, enhancing the availability and safety of the flying vehicle in the Internet of Things environment.
[0092] In the following, the transmission method of roaming data in this embodiment is further described.
[0093] As an optional implementation, the method may further include: in response to a successful connection between the flying vehicle and the destination AP device, transmitting the roaming data to a controller associated with the destination AP device, wherein the roaming data is transmitted by the controller to the cloud.
[0094] In this embodiment, the controller (Access Controller, referred to as AC) can be used to control AP devices, can be used to manage at least one AP device, can be used to control data flow, and can be used to transmit roaming data to the cloud to avoid loss of roaming data.
[0095] Optionally, in response to the successful connection between the flying vehicle and the destination AP device, the roaming data can be transmitted to a controller associated with the destination AP device. By utilizing the controller, the roaming device can be transmitted to the cloud to achieve the purpose of storing the roaming data in the cloud.
[0096] Optionally, the roaming data generated by the flying vehicle during the roaming process can be temporarily reported to the cloud by the AC and cached in the cloud. After the vehicle completely leaves the first ZigBee network and registers in the second ZigBee network, the coordinator can actively request the roaming data from the cloud. The roaming data can be the vehicle driving data, thereby ensuring that the vehicle data will not be interrupted during the switching of ZigBee networks.
[0097] Optionally, during the movement of the flying vehicle, when it detects that the signal strength of the new AP device (destination AP) is higher than the signal strength of the currently connected AP and meets the conditions set by the roaming policy, the flying vehicle will start the roaming process and try to establish a connection with the AP device with a stronger signal. Once the authentication and association process is successfully completed, the flying vehicle has successfully established a new communication connection with the destination AP device. This indicates that the flying vehicle has roamed from the current network (source network) to the new network (destination network). After the connection is established, the flying vehicle can generate roaming data, which may include the location information, speed information, roaming trigger reason, timestamp of switching networks, etc. of the flying vehicle. The flying vehicle can transmit the above roaming data to a controller (e.g., AC device) associated with the destination AP device. As a centralized management point in the network, the AC device can be responsible for the control and management of multiple AP devices, and also has the ability to process roaming data.
[0098] Furthermore, after receiving the roaming data of the flying vehicle, the AC device can upload the roaming data to the cloud server. The cloud server can serve as a centralized storage and processing center for roaming data, and can perform in-depth analysis of the roaming data, for example, evaluating the roaming efficiency of the flying vehicle between different networks, monitoring the real-time status of the flying vehicle, and providing remote control and optimization suggestions when necessary. In addition, the cloud server can also ensure that the data of the flying vehicle will not be lost during the network switching process, ensuring the continuity and integrity of the data.
[0099] In an embodiment of the present invention, the above steps describe how the flying vehicle transmits the data generated during the roaming process to the controller associated with the destination AP device after successfully connecting to the new destination AP device, and further uploads the data to the cloud. Through the above steps, the roaming data can be uploaded to the cloud in real time, so that the system can monitor and analyze the mobile state and network switching performance of the flying vehicle in real time, thereby improving the response speed and data processing capability of the system. Based on the roaming data collected in the cloud, the mobile mode and network environment changes of the flying vehicle can be learned, so as to continuously optimize the roaming strategy and improve the network connection quality and stability of the flying vehicle during the roaming process. Uploading the roaming data to the cloud through the AC device ensures the integrity and continuity of the flying vehicle data when switching networks, and even when the flying vehicle enters another network from one ZigBee network, its roaming data will not be disconnected or lost. The roaming data stored in the cloud can be used as a basis for remotely controlling the flying vehicle and optimizing the network configuration, providing more intelligent decision support for the operation of the flying vehicle.
[0100] In summary, after successfully connecting to the destination AP device, the flying vehicle transmits the roaming data to the AC device, which then uploads it to the cloud. This process realizes real-time monitoring, analysis, and optimization of roaming data, ensuring the data continuity and security of the flying vehicle when roaming between different ZigBee networks, thereby improving the overall system performance and user experience.
[0101] In an embodiment of the present invention, based on the first signal strength of the source AP device and the second signal strength of the destination AP device acquired by the flying vehicle, it is determined whether the vehicle is in a roaming state. If the flying vehicle is in a roaming state, the flying vehicle and the destination AP device can be controlled to communicate and connect, so that the roaming data generated by the flying vehicle in the roaming state can be transmitted to the cloud through the destination AP device for storage. That is, in this embodiment, a storage method for roaming data generated in a roaming scenario is proposed for the roaming scenario of the flying vehicle, so that the vehicle can enter another controlled network to be connected in a manner similar to wireless roaming, thereby avoiding the defects of short-range wireless communication of the flying vehicle, thereby achieving the technical effect of avoiding the lack of roaming data of the flying vehicle, and solving the technical problem of the lack of roaming data of the flying vehicle.
[0102] According to another aspect of an embodiment of the present invention, corresponding to the embodiment of the above-mentioned vehicle data transmission method, this specification also provides a vehicle data transmission system, Figure 2 is a block diagram of a vehicle data transmission system according to an embodiment of the present invention. Figure 2 As shown, the vehicle data transmission system 200 may include: a flying vehicle 202 and a destination AP device 204 .
[0103] Flying vehicle 202 is used to obtain a first signal strength of a source AP device and a second signal strength of a destination AP device, wherein the source AP device is an edge AP device of a network to which the flying vehicle has been connected, and the destination AP device is an edge AP device of a network to which the flying vehicle is to be connected; based on the first signal strength and the second signal strength, the operating state of the flying vehicle is determined; in response to the operating state being a roaming state, the flying vehicle is controlled to communicate with the destination AP device and roaming data generated by the flying vehicle in the roaming state is obtained; and the roaming data is transmitted to the destination AP device that is successfully connected to the flying vehicle.
[0104] In this embodiment, the flying vehicle 202 can obtain the first signal strength of the source AP device and the second signal strength of the destination AP device, and judge the first signal strength and the second signal strength. If the first signal strength is less than the second signal strength, it can be determined that the operating state of the flying vehicle is a roaming state, so that the flying vehicle and the destination AP device can be controlled to communicate and connect, the roaming data generated by the flying vehicle in the roaming state can be obtained, and the roaming data can be transmitted to the destination AP device that is successfully connected to the flying vehicle.
[0105] The destination AP device 204 is used to communicate with the flying vehicle and transmit the roaming data to the cloud.
[0106] In this embodiment, the destination AP device can establish a communication connection with the flying vehicle. In response to a successful communication connection with the flying vehicle, the destination AP device can obtain roaming data generated by the vehicle in a roaming state and transmit the roaming data to the cloud.
[0107] As an optional implementation, the destination AP device is also used to transmit network information of the network to be connected to the flying vehicle in response to the destination AP device being successfully connected to the flying vehicle; the flying vehicle is also used to communicate with the network to be connected according to the network information.
[0108] In this embodiment, in response to the destination AP device being successfully connected to the flying vehicle, network information of the network to be connected can be transmitted to the flying vehicle. The flying vehicle obtains the network information and communicates with the network to be connected according to the network information.
[0109] Optionally, for the first ZigBee network (i.e., the connected network), the flying vehicle roams from the source AP device to the destination AP device, and the flying vehicle is still in a route-reachable state. At this time, the flying vehicle can receive the second ZigBee network information in the data message output by the destination AP device, and the flying vehicle actively starts the separation process from the connected network. At the same time, it can communicate and connect with the network to be connected according to the network information.
[0110] As an optional implementation, the system may further include: a network to be connected, used to obtain roaming data stored in the cloud using a coordinator in response to a successful connection with the flying vehicle.
[0111] In this embodiment, when the flying vehicle and the network to be connected are successfully connected, the network to be connected can respond to the successful connection with the flying vehicle and can use the coordinator to obtain the roaming data stored in the cloud. The coordinator can be the initiator and manager of the network to be connected, and can participate in data forwarding and network maintenance as a core node in the mesh network.
[0112] As an optional implementation, the system may further include: a controller associated with the destination AP device, configured to obtain roaming data in the destination AP device in response to a successful connection between the flying vehicle and the destination AP device, and transmit the roaming data to the cloud.
[0113] In this embodiment, each AP device may have a corresponding controller, and a controller may control at least one AP device. When the flying vehicle is successfully connected to the target AP device, the roaming data in the target AP device may be obtained, and the roaming data may be transmitted to the cloud through the controller.
[0114] In this embodiment, the data transmission of the flying vehicle will not be interrupted during the roaming process. For devices roaming within an AC, the roaming data can be directly forwarded locally using the AC device without going through additional tunnels or routes. For data roaming between ACs, data forwarding can be performed using tunnel technology (such as CAPWAP tunnel).
[0115] As an optional implementation manner, the destination AP device transmits the roaming data to the controller through a data transmission tunnel.
[0116] In this embodiment, a data transmission tunnel (eg, a CAPWAP tunnel) may be established in advance between the destination AP device and the corresponding AC device. When roaming data is acquired, the roaming data may be transmitted from the destination AP device to the controller through the data transmission tunnel.
[0117] Optionally, the destination AP device may be added to the network to be connected as a node in advance, and the source AP device may be added to the connected network as a node.
[0118] In this embodiment, edge AP devices and corresponding AC devices for wireless roaming can be added at the edge of the ZigBee network. By using the edge AP devices and AC devices, intra-AC, inter-AC, and cross-AC roaming of the wireless network can be achieved.
[0119] In the vehicle data transmission system of this embodiment, based on the first signal strength of the source AP device and the second signal strength of the destination AP device acquired by the flying vehicle, it is determined whether the vehicle is in a roaming state. If the flying vehicle is in a roaming state, the flying vehicle and the destination AP device can be controlled to communicate and connect, so that the roaming data generated by the flying vehicle in the roaming state can be transmitted to the cloud through the destination AP device for storage. That is, in this embodiment, for the roaming scenario of the flying vehicle, a storage method for roaming data generated in the roaming scenario is proposed, so that the vehicle can enter another controlled network to be connected in a manner similar to wireless roaming, thereby avoiding the defects of short-range wireless communication of the flying vehicle, thereby achieving the technical effect of avoiding the loss of roaming data of the flying vehicle and solving the technical problem of the loss of roaming data of the flying vehicle.
[0120] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.
[0121] At present, with the in-depth application of the Internet of Things in various fields, flying vehicles will not only become one of people’s travel options, but will also play an important role in agriculture and industry.
[0122] Figure 3 is a flow chart of a network initialization method according to an embodiment of the present invention. Figure 3 As shown, the method includes the following processes:
[0123] Step S302, determining whether the node is in other networks.
[0124] In this embodiment, it can be determined whether the node is in other networks, or whether there is a ZigBee network near the node. The above node can be a flying vehicle to be connected. If yes, step S304 can be executed. If not, step S306 can be executed.
[0125] Step S304, performing network access process as a router.
[0126] In this embodiment, if the node is already connected, it will not be initialized again, but will remain in the connected state, and the node can be used as a router to perform the network access process.
[0127] Step S306: channel scanning, selecting a channel number.
[0128] In this embodiment, if the node has not yet connected to any network, it enters the network initialization process, and the node performs channel scanning to find an available wireless channel. This process may include passive scanning and / or active scanning to determine the best communication frequency.
[0129] Step S308, setting the network ID.
[0130] In this embodiment, the node selects one from the available network IDs to join. The network ID can be used to distinguish different networks.
[0131] Step S310, waiting for other nodes to join.
[0132] Figure 4 FIG. 1 is a flow chart showing a network access process according to an embodiment of the present invention. Figure 4 As shown, the process may include the following steps:
[0133] Step S402, completing the scan.
[0134] In this embodiment, the flying vehicle can perform channel scanning to detect whether there is an effective ZigBee network in the surrounding environment. This stage can include passive scanning and active scanning, which can collect network information by listening to or asking nearby ZigBee devices.
[0135] Step S404, selecting a suitable network ID.
[0136] In this embodiment, after detecting multiple available channels, the flying vehicle can select an optimal channel for subsequent communication based on factors such as signal quality and channel congestion.
[0137] Alternatively, the flying vehicle can obtain a network ID from an available ZigBee network beacon, which is a unique identifier for each ZigBee network.
[0138] Optionally, the flying vehicle can select an appropriate network ID from the returned beacon information.
[0139] Step S406: The flying vehicle sends a connection request command to the coordinator.
[0140] In this embodiment, the flying vehicle can send a joining request to the network coordinator (or router if the coordinator is not in range). The request can include the flying vehicle's device information and the network ID requested to join.
[0141] Step S408: Determine whether the channel access is successful.
[0142] In this embodiment, it is determined whether the channel access is successful. If successful, step S410 may be executed, and if unsuccessful, step S412 may be executed.
[0143] Step S410, waiting for the coordinator to send an ACK response to the flying vehicle.
[0144] In this embodiment, the coordinator in the network can authenticate the received joining request, which may include steps such as device identity authentication and secure key exchange to ensure the security of the network. The network coordinator confirms the joining request of the flying vehicle and sends it an ACK response confirming the joining, which may include network parameters and any required configuration update information.
[0145] Step S412, transmitting the failure information to the notification upper layer of the flying vehicle.
[0146] In this embodiment, if the channel access is unsuccessful, the failure information may be transmitted to the notification upper layer of the medium access control (MAC) of the flying vehicle.
[0147] Step S414, determining whether the resources in the network are sufficient.
[0148] In this embodiment, the coordinator may send a link indication primitive to the upper layer and determine whether the resources in the network are sufficient. If the resources are insufficient, step S416 may be executed, and if the resources are sufficient, step S418 may be executed.
[0149] Step S416: The coordinator sends a connection failure response to the flying vehicle.
[0150] In this embodiment, if the network resources are insufficient, the flying vehicle cannot connect to the network, and the coordinator may send a connection failure response to the flying vehicle.
[0151] Step S418: The coordinator sends a connection request response to the device.
[0152] In this embodiment, if the network resources are sufficient, the coordinator may send a connection request to the flying vehicle.
[0153] Step S420: The flying vehicle sends a response frame to the coordinator.
[0154] In this embodiment, the flying vehicle obtains the connection request sent by the coordinator and sends a response frame to the coordinator.
[0155] From the above content, it can be known that in the relevant technology, the initialization of the ZigBee network can only be initiated by the network coordinator. Before the network is established, it is necessary to determine whether the node has not been connected to other networks. If the node is already connected to other networks, this node can only be used as a child node of the network. There is only one ZigBee coordinator in a ZigBee network. Once the network is established, the coordinator degenerates into the role of a router, and even the coordinator can be removed. The above characteristics will result in that once the ZigBee network is established, the nodes in it can only join a new ZigBee network after leaving the network. After the child node (flying vehicle) moves out of the coverage of the original ZigBee network, it will automatically leave the network and delay a scanning time before joining the new ZigBee network. This will cause the child node to be disconnected from the upper network for a period of time. When the flying speed of the flying vehicle is fast enough, there is a probability that the flying vehicle will continue to be disconnected from the upper network. There are certain loopholes and defects in security, and there is a technical problem of missing roaming data of flying vehicles.
[0156] In the embodiment of the present invention, in order to solve the above problems, a method for roaming between sub-node coordinators based on ZigBee mesh network networking is proposed. This method can meet the characteristics of large-scale movement of flying vehicles in ZigBee networks, and ensure that before the flying vehicle moves out of a coordinator-based ZigBee mesh network, it can enter another controlled coordinator-based ZigBee network in a similar way to wireless roaming. The defects of short-range wireless communication of ZigBee networks are solved, thereby achieving the technical effect of avoiding the loss of roaming data of flying vehicles and solving the technical problem of the loss of roaming data of flying vehicles.
[0157] The method of the embodiment of the present invention is further illustrated below.
[0158] Figure 5 FIG. 1 is a schematic diagram showing a flying vehicle roaming between networks according to an embodiment of the present invention. Figure 5 As shown, the connected network 501 may include an edge AP device 5011, an edge AP device 5012, a coordinator 5013, and a controller AC 5014 corresponding to the edge AP device 5012. The network to be connected 502 may include an edge AP device 5021, a controller 5022 corresponding to the edge AP device, and a coordinator 5023.
[0159] In this embodiment, the edge AP device may establish a CAPWAP tunnel with the AC device to transmit data using the CAPWAP tunnel. Figure 6 is a schematic diagram showing a data transmission process according to an embodiment of the present invention. Figure 6As shown, the wireless AP device can send messages to the AC device, which may include: a discovery request message (Discovery Request Message) in the idle state (Id le State), a join request message (JoinRequest Message) in the join state (Join State), an image data request message (ImageData Request Message) in the image data state (Image Data State), a configuration status request message (Configuration Status Request Message) in the configuration state (Configuration State), and a status change event request message (Change Status Event Request Message) in the data check state (Data Check State).
[0160] Alternatively, if Figure 6 As shown, the AC device can send the following messages to the wireless AP device: a discovery response message (Discovery Response Message) in the discovery state (Discovery State), a join response message (Join Response Message) in the join state, an image data response message (Image DataResponse Message) in the image data state, a configuration status response message (Configuration Status Response Message) in the configuration state, and a status change event response message (Change Status EventResponse Message) in the data check state.
[0161] In this embodiment, the AP device can join the existing ZigBee network as a node according to the ZigBee networking process. The flying vehicle enters the first ZigBee network (i.e., the connected network) and connects to the AP device (i.e., the source AP device) within the coverage of the wireless signal.
[0162] In this embodiment, when the flying vehicle is about to enter the second ZigBee network from the first ZigBee network, wireless network roaming can be triggered first, and the roaming process can include: signal detection, roaming decision, authentication and association, and data forwarding process.
[0163] Optionally, the flying vehicle continuously detects the signal strength of surrounding AP devices during movement. When it moves to a critical area between the coverage areas of two AP devices, it can evaluate which AP has a stronger and more stable signal.
[0164] Optionally, a roaming decision can be made based on the signal detection result. If the new AP signal strength is significantly higher than the currently connected AP and meets the roaming conditions (eg, signal strength threshold, roaming delay, etc.), the flying vehicle can start the roaming process.
[0165] Optionally, in response to the flying vehicle starting the roaming process, the flying vehicle can be authenticated and associated: the flying vehicle can send an authentication request to the destination AP device and perform necessary authentication processes (e.g., PSK and EAP authentication of WPA / WPA2). After successful authentication, an association can be established with the destination AP device and the connection with the source AP device can be disconnected.
[0166] Optionally, during the roaming process of the flying vehicle, the transmission of the roaming data generated will not be interrupted.
[0167] Optionally, for flying vehicles roaming within an AC, roaming data can be directly forwarded locally without going through additional tunnels or routes. For roaming between ACs, data forwarding can be performed through tunnel technology (eg, CAPWAP tunnel).
[0168] Figure 7 is a schematic diagram of a message format according to an embodiment of the present invention, such as Figure 7 As shown, in this embodiment, the data message may include: an IP layer, a User Datagram Protocol (UDP) port, a CAPWAP header (Header) and a CAPWAP message area (Message).
[0169] Optionally, a new message type value of 15 can be added to the CAPWAP Header. This change will not change the original frame length, and 15 is not occupied by other message types. When the Message Type is 15, it means that the content in the CAPWAPMessage (Pay load) is the information of the ZigBee network where the current AP is located, and the Pay load format can be the general frame format of the Network Layer (NWK). The above CAPWAP Header can also include a Datagram Transport Layer Security (DTLS) Header.
[0170] In this embodiment, for the first ZigBee network, the flying vehicle roams from the source AP device to the destination AP device, and the flying vehicle is still in a route-reachable state. At this time, the flying vehicle receives the network information of the second ZigBee network in the destination AP data message, and the flying vehicle can actively start the ZigBee device separation process. The ZigBee device separation process may include: the flying vehicle actively sends a disconnection command to the connected network, and regardless of whether the flying device receives a response from the coordinator in the connected network, it is considered that the flying vehicle has completed the separation process from the connected network.
[0171] In this embodiment, the flying vehicle receives the second ZigBee network information, obtains the network ID, and re-triggers the ZigBee network access process.
[0172] Optionally, an edge AP device for wireless roaming and a corresponding AC device may be added at the edge of the ZigBee network to implement intra-AC, inter-AC, and cross-AC roaming in the wireless network.
[0173] In this embodiment, the roaming data generated by the flying vehicle during the roaming process can be temporarily reported to the cloud by the AC and cached in the cloud. After the vehicle completely leaves the first ZigBee network and registers in the second ZigBee network, the coordinator can actively request the roaming data from the cloud. The roaming data can be the vehicle driving data, thereby ensuring that the vehicle data will not be interrupted during the switching of the ZigBee network.
[0174] It should be noted that the above method is not only applicable to ZigBee network networking, but also to protocols based on Internet of Things networking such as Wireless Fidelity (WiFi), Bluetooth, and Long Range Wide Area Network (LoRaWan).
[0175] In an embodiment of the present invention, based on the first signal strength of the source AP device and the second signal strength of the destination AP device acquired by the flying vehicle, it is determined whether the vehicle is in a roaming state. If the flying vehicle is in a roaming state, the flying vehicle and the destination AP device can be controlled to communicate and connect, so that the roaming data generated by the flying vehicle in the roaming state can be transmitted to the cloud through the destination AP device for storage. That is, in this embodiment, a storage method for roaming data generated in a roaming scenario is proposed for the roaming scenario of the flying vehicle, so that the vehicle can enter another controlled network to be connected in a manner similar to wireless roaming, thereby avoiding the defects of short-range wireless communication of the flying vehicle, thereby achieving the technical effect of avoiding the lack of roaming data of the flying vehicle, and solving the technical problem of the lack of roaming data of the flying vehicle.
[0176] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0177] According to another aspect of the embodiment of the present invention, corresponding to the embodiment of the above-mentioned vehicle data transmission method, this specification also provides a vehicle data transmission device, Figure 8 is a structural block diagram of a vehicle data transmission device according to an embodiment of the present invention. Figure 8 As shown, the vehicle data transmission device 800 may include: an acquisition unit 802 , a determination unit 804 , a processing unit 806 and a transmission unit 808 .
[0178] The acquisition unit 802 is used to obtain the first signal strength of the source AP device and the second signal strength of the destination AP device, wherein the source AP device is an edge AP device of the network to which the flying vehicle is connected, and the destination AP device is an edge AP device of the network to which the flying vehicle is to be connected.
[0179] The determination unit 804 is used to determine the operating state of the flying vehicle based on the first signal strength and the second signal strength.
[0180] The processing unit 806 is used for controlling the flying vehicle to establish a communication connection with the destination AP device in response to the running state being the roaming state, and obtaining the roaming data generated by the flying vehicle in the roaming state.
[0181] The transmission unit 808 is used to transmit the roaming data to the destination AP device that is successfully connected to the flying vehicle.
[0182] In this embodiment, the first signal strength of the source AP device and the second signal strength of the destination AP device are obtained by the acquisition unit 802, wherein the source AP device is an edge AP device of the network to which the flying vehicle has been connected, and the destination AP device is an edge AP device of the network to which the flying vehicle is to be connected; the operating state of the flying vehicle is determined based on the first signal strength and the second signal strength by the determination unit 804; the flying vehicle is controlled to communicate with the destination AP device in response to the operating state being a roaming state by the processing unit 806, and roaming data generated by the flying vehicle in the roaming state is obtained; the roaming data is transmitted to the destination AP device that is successfully connected to the flying vehicle by the transmission unit 808, thereby achieving the technical effect of improving the efficiency of vehicle data transmission and solving the technical problem of low efficiency of vehicle data transmission.
[0183] An embodiment of the present application further provides a vehicle, comprising: a memory storing an executable program; and a processor for running the program, wherein the method in each embodiment of the present invention is executed when the program is running.
[0184] An embodiment of the present application further provides a computer-readable storage medium, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.
[0185] An embodiment of the present application further provides a computer program product, including a computer program, which implements the methods in various embodiments of the present invention when executed by a processor.
[0186] An embodiment of the present application further provides a computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.
[0187] The embodiments of the present application further provide a computer program, which implements the methods in the above-mentioned embodiments of the present invention when executed by a processor.
[0188] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0189] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0190] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0191] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0192] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0193] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for transmitting vehicle data, characterized in that: include: Acquire a first signal strength of a source AP device and a second signal strength of a destination AP device, wherein the source AP device is an edge AP device of a network to which the flying vehicle has been connected, and the destination AP device is an edge AP device of a network to which the flying vehicle is to be connected; Determining an operating state of the flying vehicle based on the first signal strength and the second signal strength; In response to the operating state being a roaming state, controlling the flying vehicle to establish a communication connection with the destination AP device, and acquiring roaming data generated by the flying vehicle in the roaming state; The roaming data is transmitted to the destination AP device that is successfully connected to the flying vehicle.
2. The method according to claim 1, characterized in that The step of determining the operating state of the flying vehicle based on the first signal strength and the second signal strength includes: In response to the first signal strength being less than the second signal strength, calling a roaming policy, wherein the roaming policy is at least used to characterize a signal strength threshold of the source AP device; In response to the first signal strength satisfying the roaming policy, determining the operating state as the roaming state.
3. The method according to claim 1, characterized in that In response to the running state being a roaming state, controlling the flying vehicle to communicate with the destination AP device includes: In response to the running state being the roaming state, sending an authentication request to the destination AP device, wherein the authentication request is used to request the destination AP device to authenticate the flying vehicle; In response to the destination AP device successfully authenticating the flying vehicle, the flying vehicle is controlled to establish a communication connection with the destination AP device.
4. The method according to claim 3, characterized in that The method further comprises: In response to the flying vehicle and the destination AP device being successfully connected, obtaining network information of the network to be connected transmitted by the destination AP device, wherein the network information is used to identify the network to be connected; The flying vehicle is controlled to access the network to be connected according to the network information.
5. The method according to claim 4, characterized in that The controlling the flying vehicle to access the network to be connected according to the network information includes: Comparing the network information with historical network information stored in the flying vehicle to obtain a comparison result; In response to the comparison result indicating that the network information is different from the historical network information, the flying vehicle is controlled to send a disconnection instruction to the connected network, and the flying vehicle is controlled to access the network to be connected according to the network information, wherein the disconnection instruction is used to instruct the communication connection between the flying vehicle and the connected network.
6. The method according to claim 3, characterized in that The method further comprises: In response to the flying vehicle and the destination AP device being successfully connected, the roaming data is transmitted to a controller associated with the destination AP device, wherein the roaming data is transmitted to the cloud by the controller.
7. A vehicle roaming data transmission system, characterized in that: include: A flying vehicle, used to obtain a first signal strength of a source AP device and a second signal strength of a destination AP device, wherein the source AP device is an edge AP device of a network to which the flying vehicle has been connected, and the destination AP device is an edge AP device of a network to which the flying vehicle is to be connected; based on the first signal strength and the second signal strength, determine the operating state of the flying vehicle; in response to the operating state being a roaming state, control the flying vehicle to communicate with the destination AP device and obtain roaming data generated by the flying vehicle in the roaming state; transmit the roaming data to the destination AP device that is successfully connected to the flying vehicle; The destination AP device is used to establish a communication connection with the flying vehicle and transmit the roaming data to the cloud.
8. The system according to claim 7, characterized in that The destination AP device is further configured to transmit network information of the network to be connected to the flying vehicle in response to the destination AP device being successfully connected to the flying vehicle; The flying vehicle is also used to establish a communication connection with the network to be connected according to the network information.
9. The system according to claim 8, characterized in that The system further comprises: The network to be connected is used to obtain the roaming data stored in the cloud using a coordinator in response to a successful connection with the flying vehicle.
10. The system according to claim 7, characterized in that The system further comprises: The controller is associated with the destination AP device and is used to obtain the roaming data in the destination AP device in response to the flying vehicle being successfully connected to the destination AP device, and transmit the roaming data to the cloud.
11. The system according to claim 10, characterized in that The destination AP device transmits the roaming data to the controller through a data transmission tunnel.
12. A vehicle, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 6 when running.
Citation Information
Patent Citations
Context-aware wireless roaming
CA2889813A1
Network roaming method and device, router, electronic equipment and readable storage medium
CN112333783A
Method and device for performing registration in network in wireless communication system
CN113545113A
Control of roaming in wireless networks using variable mobility thresholds
CN116113000A
Method for supporting service continuity at end of disaster situation and apparatus for supporting same
CN116134895A