Method and apparatus for establishing data transmission channel, electronic device and storage medium
By establishing a Wi-Fi hotspot data transmission channel between the aircraft cockpit terminal and the vehicle cockpit terminal, the problem of high data transmission traffic consumption in existing technologies is solved, and efficient data synchronization and real-time transmission are achieved.
Patent Information
- Application Number
- CN202311868195.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2043-12-29
AI Technical Summary
In the data interaction process between the aircraft cockpit terminal and the vehicle cockpit terminal, existing technologies require a large amount of data traffic, resulting in low data transmission efficiency.
With the coordination of the server, a first data transmission channel is established. A Wi-Fi hotspot data transmission channel is established between the aircraft cockpit terminal and the vehicle cockpit terminal using Wi-Fi hotspot information, reducing data transmission traffic consumption. During the transmission process, Bluetooth or other wireless transmission methods are used for data synchronization.
It improves data transmission efficiency without consuming additional bandwidth, ensures real-time and efficient data synchronization, and reduces network bandwidth consumption for data transmission.
Smart Images

Figure CN117835454B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicles, and more particularly to a method and device for establishing a data transmission channel, an electronic device and a storage medium. BACKGROUND
[0002] With the development of the vehicle era, the automobile is not only a simple means of transportation, but more and more functions and scenes are given to the automobile. For example, aircrafts are gradually applied to the automobile industry, expanding the automobile aircraft combining flight and road travel to realize new scenes such as low-altitude manned and low-altitude cargo.
[0003] In this case, data interaction between the aircraft cabin terminal and the vehicle cabin terminal is usually required to synchronize the flight route from the vehicle cabin terminal to the aircraft cabin terminal or synchronize the data collected by the aircraft cabin terminal to the vehicle cabin terminal. However, in the related art, a large amount of traffic data is usually consumed during data interaction. Therefore, it is an urgent technical problem to provide a method capable of effectively reducing data transmission traffic. SUMMARY
[0004] Therefore, the embodiments of the present application provide a method and device for establishing a data transmission channel, an electronic device and a storage medium, which can effectively reduce data transmission traffic.
[0005] In a first aspect, the embodiments of the present application provide a method for establishing a data transmission channel. The method is applied to a target aerial vehicle cabin terminal of a target aerial vehicle in a plurality of aerial vehicles in a data transmission system. The aerial vehicle further comprises a vehicle cabin terminal. The data transmission system further comprises a server. The server is communicatively connected with the aerial vehicle cabin terminals and the vehicle cabin terminals of the plurality of aerial vehicles. The method comprises: sending, to the server, a data synchronization request carrying address information of the target aerial vehicle cabin terminal and an aerial vehicle cabin terminal identifier, so that the server sends a data synchronization instruction to a target vehicle cabin terminal to which a device identifier corresponding to the aerial vehicle cabin terminal identifier belongs when the device identifier is acquired. The data synchronization instruction comprises the address information. If it is confirmed that the target vehicle cabin terminal establishes a first data transmission channel between the target vehicle cabin terminal and the target aerial vehicle cabin terminal, the target vehicle cabin terminal is sent, by the first data transmission channel, with Wifi hotspot information corresponding to a Wifi hotspot of the target aerial vehicle cabin terminal. The first data transmission channel is a channel established by the target vehicle cabin terminal based on the address information in response to the data synchronization instruction. If a Wifi hotspot connection request sent by the target vehicle cabin terminal based on the Wifi hotspot information is received, a Wifi hotspot data transmission channel between the target aerial vehicle cabin terminal and the target vehicle cabin terminal is established based on the Wifi hotspot connection request, so that the target aerial vehicle cabin terminal and the target vehicle cabin terminal perform data transmission through the Wifi hotspot data transmission channel. The transmission efficiency of the first data transmission channel is less than the data transmission efficiency of the Wifi hotspot data transmission channel.
[0006] In a second aspect, the embodiments of the present application provide a method for establishing a data transmission channel, applied to a server, the server being in communication connection with aircraft cabin terminals of a plurality of flying cars and vehicle cabin terminals, the method comprising: receiving a data synchronization request sent by a target aircraft cabin terminal, the data synchronization request comprising address information and an aircraft cabin terminal identifier of the target aircraft cabin terminal; obtaining a device identifier corresponding to the aircraft cabin terminal identifier in response to the data synchronization request; sending a data synchronization instruction comprising the address information to a target vehicle cabin terminal to which the device identifier belongs, so that the target vehicle cabin terminal establishes a first data transmission channel with the target aircraft cabin terminal based on the address information; after the first data transmission channel is established, the target aircraft cabin terminal starts a Wifi hotspot of the target aircraft cabin terminal, sends Wifi hotspot information corresponding to the Wifi hotspot of the target aircraft cabin terminal to the target vehicle cabin terminal through the first data transmission channel, and establishes a Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal when receiving a Wifi hotspot connection request fed back by the target vehicle cabin terminal, wherein the transmission efficiency of the first data transmission channel is less than the data transmission efficiency of the Wifi hotspot data transmission channel.
[0007] In a third aspect, the embodiments of the present application provide a device for establishing a data transmission channel, which is applied to a target aircraft cabin terminal of a target air car in a plurality of air cars in a data transmission system, the air car further comprising a vehicle cabin terminal, and the data transmission system further comprising a server, which is in communication connection with the aircraft cabin terminals and the vehicle cabin terminals of the plurality of air cars, and the device comprising a synchronization request sending module, an information sending module and a channel establishing module. The synchronization request sending module is configured to send a data synchronization request carrying address information of the target aircraft cabin terminal and an aircraft cabin terminal identifier to the server, so that the server sends a data synchronization instruction to a target vehicle cabin terminal to which the device identifier corresponds when the device identifier corresponding to the aircraft cabin terminal identifier is acquired, and the data synchronization instruction comprises the address information. The information sending module is configured to send Wifi hotspot information corresponding to a Wifi hotspot of the target aircraft cabin terminal to the target vehicle cabin terminal through a first data transmission channel between the target vehicle cabin terminal and the target aircraft cabin terminal if it is confirmed that the target vehicle cabin terminal establishes the first data transmission channel, and the first data transmission channel is a channel established by the target vehicle cabin terminal based on the address information in response to the data synchronization instruction. The channel establishing module is configured to establish a Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal based on a Wifi hotspot connection request sent by the target vehicle cabin terminal based on the Wifi hotspot information if the Wifi hotspot connection request is received, so that the target aircraft cabin terminal and the target vehicle cabin terminal perform data transmission through the Wifi hotspot data transmission channel, and the transmission efficiency of the first data transmission channel is less than the data transmission efficiency of the Wifi hotspot data transmission channel.
[0008] In an implementation manner, the device further comprises an acquisition request sending module and a data receiving module. The acquisition request sending module is configured to send a data acquisition request to the target vehicle cabin terminal. The data receiving module is configured to receive target data acquired by the target vehicle cabin terminal from the first synchronization database in response to the data acquisition request, and store the target data into a second synchronization database of the target aircraft cabin terminal.
[0009] In an implementation manner, the device further comprises an acquisition request sending module and a data receiving module. The acquisition request sending module is configured to send a data acquisition request to the target vehicle cabin terminal. The data receiving module is configured to receive target data acquired by the target vehicle cabin terminal from the first synchronization database in response to the data acquisition request, and store the target data into a second synchronization database of the target aircraft cabin terminal.
[0010] In an implementation, the first data transmission channel is a Bluetooth data transmission channel.
[0011] In a fourth aspect, an embodiment of the present application provides a device for establishing a data transmission channel, applied to a server, the server being in communication connection with a plurality of aircraft cabin terminals of flying cars and vehicle cabin terminals, the device comprising: a request receiving module, an information obtaining module, and an instruction sending module, the request receiving module being configured to receive a data synchronization request sent by a target aircraft cabin terminal, the data synchronization request comprising address information of the target aircraft cabin terminal and an aircraft cabin terminal identifier; the information obtaining module being configured to obtain a device identifier corresponding to the aircraft cabin terminal identifier in response to the data synchronization request; and the instruction sending module being configured to send a data synchronization instruction comprising the address information to a target vehicle cabin terminal to which the device identifier belongs, so that the target vehicle cabin terminal establishes a first data transmission channel with the target aircraft cabin terminal based on the address information, the target aircraft cabin terminal starts a Wifi hotspot of the target aircraft cabin terminal after the first data transmission channel is established, sends Wifi hotspot information corresponding to the Wifi hotspot of the target aircraft cabin terminal to the target vehicle cabin terminal through the first data transmission channel, and establishes a Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal when receiving a Wifi hotspot connection request fed back by the target vehicle cabin terminal, wherein a transmission efficiency of the first data transmission channel is less than a data transmission efficiency of the Wifi hotspot data transmission channel.
[0012] In an implementation, the information obtaining module is further configured to obtain the device identifier corresponding to the aircraft cabin terminal identifier from a preset correspondence relationship in response to the data synchronization request, the preset correspondence relationship storing identifier information of a plurality of aircraft cabin terminals and identifier information of vehicle cabin terminals corresponding to the identifier information of each aircraft cabin terminal.
[0013] In an implementation, the server is an MQTT server, the vehicle cabin terminal is a vehicle terminal, and the first data transmission channel is a Bluetooth data transmission channel.
[0014] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, one or more programs being stored in the memory and configured to be executed by the processor to implement the method described above.
[0015] In a sixth aspect, an embodiment of the present application provides a computer readable storage medium, the computer readable storage medium storing program codes, wherein the program codes are run by a processor to execute the method described above.
[0016] In a seventh aspect, an embodiment of the present application provides a computer program product or computer program, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device acquires the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to perform the method described above.
[0017] The embodiment of the present application provides a method and device for establishing a data transmission channel, an electronic device and a storage medium. The method is applied to a target aircraft cabin terminal in a data transmission system. The target aircraft cabin terminal is associated with a server. The server is connected with a plurality of aircraft cabin terminals and a plurality of vehicle cabin terminals. The method comprises the following steps: sending, to the server, a data synchronization request carrying address information of the target aircraft cabin terminal and an aircraft cabin terminal identifier, so that the server sends a data synchronization instruction to a target vehicle cabin terminal to which the device identifier belongs when the device identifier corresponding to the aircraft cabin terminal identifier is acquired, and the data synchronization instruction comprises the address information; if it is confirmed that the target vehicle cabin terminal establishes a first data transmission channel between the target vehicle cabin terminal and the target aircraft cabin terminal, sending, to the target vehicle cabin terminal, Wifi hotspot information corresponding to a Wifi hotspot of the target aircraft cabin terminal through the first data transmission channel, the first data transmission channel being a channel established by the target vehicle cabin terminal based on the address information in response to the data synchronization instruction; and if a Wifi hotspot connection request sent by the target vehicle cabin terminal based on the Wifi hotspot information is received, establishing a Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal based on the Wifi hotspot connection request, so that the target aircraft cabin terminal and the target vehicle cabin terminal perform data transmission through the Wifi hotspot data transmission channel, and the transmission efficiency of the first data transmission channel is less than the data transmission efficiency of the Wifi hotspot data transmission channel. By using the above method of the present application, data synchronization can be performed through the Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal without consuming traffic, and the efficiency of data transmission can be ensured, thereby avoiding the problem that a large amount of traffic needs to be consumed when synchronizing data collected by the target aircraft cabin terminal in the related art. BRIEF DESCRIPTION OF DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.
[0019] Figure 1 A flowchart of a method for establishing a data transmission channel is shown;
[0020] Figure 2 An application scenario diagram of the method for establishing a data transmission channel is shown;
[0021] Figure 3 A flowchart of another method for establishing a data transmission channel is shown;
[0022] Figure 4 A flowchart of still another method for establishing a data transmission channel is shown;
[0023] Figure 5 A flowchart of still another method for establishing a data transmission channel is shown;
[0024] Figure 6 Another application scenario diagram of the method for establishing a data transmission channel is shown;
[0025] Figure 7 A module block diagram of a target aircraft cabin terminal is shown;
[0026] Figure 8 A module block diagram of a target vehicle cabin terminal is shown;
[0027] Figure 9 A module block diagram of an MQTT server is shown;
[0028] Figure 10 A timing flowchart of the method for establishing a data transmission channel is shown;
[0029] Figure 11 A timing flowchart of data synchronization using the data transmission channel established by the embodiments of the present application is shown;
[0030] Figure 12 Another timing flowchart of data synchronization using the data transmission channel established by the embodiments of the present application is shown;
[0031] Figure 13 A connection block diagram of a device for establishing a data transmission channel is shown;
[0032] Figure 14 A connection block diagram of another device for establishing a data transmission channel is shown;
[0033] Figure 15 A structural block diagram of an electronic device for performing the method of the embodiments of the present application is shown. DETAILED DESCRIPTION
[0034] Example implementations will now be described more fully with reference to the accompanying drawings. Example implementations may, however, be implemented in many different forms and should not be construed as limited to the examples set forth herein; rather, these example implementations are provided so that this disclosure will be thorough and complete, and will fully convey the scope of example implementations to those skilled in the art.
[0035] Moreover, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the
[0036] The block diagrams in the drawings show only the functional entities and not necessarily the physical separation of the functional entities. That is, the functional entities can be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0037] The flow diagrams shown in the drawings are merely examples and not necessarily to be construed as having all content and operations / steps, nor necessarily to be executed in the order described. For example, some operations / steps can be further divided, and some operations / steps can be combined or partially combined, so that the actual execution order can be changed according to actual conditions.
[0038] It should be noted that "a plurality of" as referred to herein means two or more. The conjunctive relationship between associated objects is described by "and / or", which means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. The character " / " generally means that the associated objects before and after are in an "or" relationship.
[0039] Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0040] Please see Figure 1 , Figure 1 As shown, the present application also provides a data transmission channel establishment method, which can be applied to, for example Figure 2The data transmission system shown includes a flight cabin terminal in a plurality of flying cars and a vehicle cabin terminal, and further includes a server in communication connection with the flight cabin terminal and the vehicle cabin terminal of the plurality of flying cars respectively, Figure 2 Only one flight cabin terminal and one vehicle cabin terminal are shown in the data transmission system, i.e., a schematic diagram including a target flight cabin terminal and a target vehicle cabin terminal) The method specifically includes the following steps:
[0041] Step S110: The target flight cabin terminal sends a data synchronization request carrying address information of the target flight cabin terminal and an identification of the flight cabin terminal to the server.
[0042] The target flight cabin terminal refers to any flight cabin terminal that needs to perform data backhaul. It can be any one of the plurality of flight cabin terminals connected to the server.
[0043] The server can be any server capable of forwarding data, usually having data storage and management functions, resource sharing and writing functions, and network service functions, etc., and its type can be any as long as it can perform data storage management and interact with the flight cabin terminal and the vehicle cabin terminal.
[0044] In an implementation manner of the present application, the server can be an MQTT server, also known as a message broker server, which is located between the target flight cabin terminal as a message publisher and the target vehicle cabin terminal as a message subscriber, and is used to perform the process of message subscription and publication. MQTT (Message Queuing Telemetry Transport) is a client-server-based message publishing / subscription transmission protocol, and the publishing / subscription message mode used by MQTT provides a one-to-many message distribution mechanism, thereby realizing decoupling with the application. That is, when the target flight cabin terminal and the target vehicle cabin terminal use the MQTT service to transmit data, the message is not transmitted point-to-point, i.e., not directly from the sender (target flight cabin terminal) to the receiver (target vehicle cabin terminal), but is distributed by the MQTT server.
[0045] The address information can be an IP address of the aircraft cabin terminal or Mac address information of the aircraft cabin terminal. The IP address (Internet Protocol Address) is an address used under the IP protocol. The IP address has three main functions: identifying devices or networks, positioning, and selecting routes. The Mac address (Media Access Control Address), also known as the LAN address, Ethernet address, or physical address, is a bit address used to identify the location of a network device. It is burned into the EPROM (a type of flash memory chip that can be programmed and erased) of the network interface card (NIC) when the network device is manufactured. It should be understood that the address information can also be a network interface address, etc.
[0046] The aircraft cabin terminal identifier can be information composed of one or more of letters, numbers, symbols, etc. that can uniquely identify the target aircraft cabin terminal. It can be set according to actual needs. It should be understood that the identifier information corresponding to different servers is different, and the identifier information corresponding to different servers is also different, and one identifier information can only correspond to a certain aircraft cabin terminal or a certain vehicle cabin terminal.
[0047] Step S120: The server acquires the device identifier corresponding to the aircraft cabin terminal identifier in response to the data synchronization request, and sends a data synchronization instruction to the target vehicle cabin terminal to which the device identifier belongs.
[0048] The data synchronization instruction includes address information.
[0049] The target vehicle cabin terminal refers to a vehicle cabin terminal having a binding relationship with the target aircraft cabin terminal. It can be a vehicle terminal, a mobile terminal, etc. In an exemplary application, the target aircraft cabin terminal can be a manned aircraft cabin terminal, and the target vehicle cabin terminal can be a vehicle terminal.
[0050] It should be understood that the server or the memory, database or platform associated with the server stores the identification information of the plurality of aircraft cabin terminals and the identification information of the vehicle cabin terminal bound with each aircraft cabin terminal, that is, the identification information of each aircraft cabin terminal and the identification information of the vehicle cabin terminal bound with the aircraft cabin terminal are stored in association. In an embodiment, the server or the memory, database or platform associated with the server stores a preset correspondence, which specifically includes the identification information of the plurality of aircraft cabin terminals and the identification information of the vehicle cabin terminal bound with each aircraft cabin terminal.
[0051] The step S120 can be that the server finds the device identification corresponding to the aircraft cabin terminal identification from the preset correspondence in response to the data synchronization request.
[0052] Step S130: When the target vehicle cabin terminal receives the data synchronization instruction, the target vehicle cabin terminal establishes a first data transmission channel between the target vehicle cabin terminal and the target aircraft cabin terminal based on the address information.
[0053] The first data transmission channel between the target vehicle cabin terminal and the target aircraft cabin terminal based on the address information can be any one of a Bluetooth data transmission channel, a mobile communication data transmission channel, a satellite communication data transmission channel, etc.
[0054] It should be understood that the channel establishment process corresponding to the first data transmission channel can be selected according to actual needs. For example, if the first data transmission channel is a Bluetooth data transmission channel, the address information is mac address information; if the first data transmission channel is a mobile communication data transmission channel, the address information is IP address information. The process of establishing the first data transmission channel based on the address information is not described in detail in the embodiments of the present application.
[0055] It should be understood that the type of the first data transmission channel can be any wireless transmission channel, as long as the target vehicle cabin terminal and the target aircraft cabin terminal can perform wireless data transmission.
[0056] In an embodiment of the present application, the first data transmission channel is a Bluetooth data transmission channel, and the address information is Bluetooth mac address information. In the process of establishing the Bluetooth data transmission channel, the Bluetooth devices and Bluetooth data services in the target aircraft cabin terminal and the target device terminal are in an open state. The target vehicle cabin terminal can pair with the target aircraft cabin terminal based on the Bluetooth mac address information to establish the Bluetooth data transmission channel when the target vehicle cabin terminal receives the data synchronization instruction.
[0057] Step S140: After determining that the first data transmission channel is established, the target aircraft cabin terminal starts the Wifi hotspot of the target aircraft cabin terminal, and sends the Wifi hotspot information corresponding to the Wifi hotspot of the target aircraft cabin terminal to the target vehicle cabin terminal through the first data transmission.
[0058] The starting of the Wifi hotspot of the target aircraft cabin terminal refers to controlling the Wifi hotspot function of the target aircraft cabin terminal to be in an open state. At this time, the Wifi hotspot and the Wifi data service are in an open state, so that other devices (such as the target vehicle cabin terminal) can connect to the Wifi hotspot and the Wifi data service of the target aircraft cabin terminal, thereby establishing a Wifi hotspot data transmission channel.
[0059] The Wifi hotspot information can include the Wifi hotspot name, and can also include the authentication password of the Wifi hotspot.
[0060] Step S150: The target vehicle cabin terminal generates a Wifi hotspot connection request based on the Wifi hotspot information and sends it to the target aircraft cabin terminal.
[0061] When the target vehicle cabin terminal receives the Wifi hotspot information, it can search for the Wifi hotspot, and when the searched Wifi hotspot includes the target Wifi hotspot corresponding to the Wifi hotspot name in the Wifi hotspot information, it generates a Wifi hotspot connection request including the Wifi password based on the Wifi hotspot information, and sends the Wifi hotspot connection request to the target aircraft cabin terminal.
[0062] Step S160: When the target aircraft cabin terminal receives the Wifi hotspot connection request, it establishes a Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal based on the Wifi hotspot connection request, so that the target aircraft cabin terminal and the target vehicle cabin terminal can transmit data through the Wifi hotspot data transmission channel.
[0063] The transmission efficiency of the first data transmission channel can be less than the data transmission efficiency of the Wifi hotspot data transmission channel.
[0064] It should be understood that, in order to ensure the security of data, the connection process of the wifi hotspot usually provides certain security protection measures such as password verification and encryption, and when it is necessary to connect the wifi hotspot, the wifi password needs to be verified, and only after the verification is passed, the Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal can be established. In addition, the encryption function can also be enabled when starting the Wifi hotspot of the target aircraft cabin terminal, and the wireless signal obtained by corresponding conversion of the wifi hotspot provided by the wireless router is broadcasted after being encrypted, thereby preventing unauthorized devices from illegal access.
[0065] In an implementable manner, the security protection measure provided by the connection process of the wifi hotspot is password verification, and the above step S160 can be: when the target aircraft cabin terminal receives the Wifi hotspot connection request, if the wifi hotspot connection request carries a wifi hotspot password, the target aircraft cabin terminal verifies the wifi hotspot password according to the wifi hotspot information in the target aircraft cabin terminal, and if the verification is passed, the Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal is established based on the Wifi hotspot connection request.
[0066] By using the above method of the present application, the entire process of establishing a data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal does not require manual operation of the user, and in addition, when transmitting the data synchronization instruction, since the data amount corresponding to the data synchronization instruction is small, the network flow does not need to be occupied or only a small amount of data flow needs to be occupied when transmitting the data synchronization instruction by using the first data transmission channel. In addition, after the target vehicle cabin terminal and the target aircraft cabin terminal establish the wifi hotspot data transmission channel, the target vehicle cabin terminal and the target aircraft cabin terminal can perform data transmission without consuming data amount, which can effectively avoid occupying mobile network flow. In addition, since the wifi hotspot data transmission channel has high data transmission efficiency when performing data transmission, by using the above method, the target aircraft cabin terminal and the target vehicle cabin terminal can perform real-time and efficient data synchronization without consuming data flow.
[0067] In addition, the server is an MQTT server, that is, the target aircraft cabin terminal and the target terminal use the MQTT server for data transmission. Since the MQTT server uses the MQTT protocol, the MQTT protocol is a lightweight protocol, simple to use, and the message header is only 2 bytes, and the protocol itself is very simple, so the protocol can be applied to small devices. That is, the aircraft cabin terminal and the vehicle cabin terminal run on. In addition, since the MOTT protocol uses binary data transmission, the message transmission overhead is very low, suitable for use in a network environment with limited bandwidth, thereby further reducing bandwidth consumption: the MOTT protocol supports an asynchronous communication mode, and the traditional request-response mode is not suitable for mobile devices. The MQTT protocol can perform asynchronous communication through subscription and publication, thereby improving the reliability of data transmission. The MQTT protocol uses a publish-subscribe mode to realize real-time information transmission between multiple clients, that is, to facilitate the server to match different vehicle cabin terminals to different aircraft cabin terminals, thereby establishing a data transmission channel between different aircraft cabin terminals and matched vehicle cabin terminals and performing data transmission.
[0068] As shown in Figure 3 Fig. 1 is a method for establishing a data transmission channel provided by an embodiment of the application. The target aircraft cabin terminal of the target flying car in the plurality of flying cars in the data transmission system. The flying car further comprises a vehicle cabin terminal. The data transmission system further comprises a server. The server is in communication connection with the aircraft cabin terminals and the vehicle cabin terminals of the plurality of flying cars. The method comprises the following steps:
[0069] Step S210: sending a data synchronization request carrying address information of the target aircraft cabin terminal and an aircraft cabin terminal identifier to the server, so that when the server obtains a device identifier corresponding to the aircraft cabin terminal identifier, the server sends a data synchronization instruction to the target vehicle cabin terminal to which the device identifier belongs.
[0070] The data synchronization instruction includes the address information.
[0071] Step S220: If it is confirmed that the target vehicle cabin terminal establishes a first data transmission channel between the target vehicle cabin terminal and the target aircraft cabin terminal, the Wifi hotspot information corresponding to the Wifi hotspot of the target aircraft cabin terminal is sent to the target vehicle cabin terminal through the first data transmission channel.
[0072] The first data transmission channel is a channel established by the target vehicle cabin terminal based on the address information in response to the data synchronization instruction.
[0073] Step S230: If the target vehicle cabin terminal sends a Wifi hotspot connection request based on the Wifi hotspot information, a Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal is established based on the Wifi hotspot connection request, so that the target aircraft cabin terminal and the target vehicle cabin terminal can transmit data through the Wifi hotspot data transmission channel.
[0074] The specific description of steps S210-S230 can refer to the specific description of steps S110-S160, which will not be repeated here.
[0075] Please refer to Figure 4 In an embodiment of the present application, after the Wifi hotspot data transmission channel between the target vehicle cabin terminal and the target aircraft cabin terminal is established, the method further comprises:
[0076] Step S240: Send a data acquisition request to the target vehicle cabin terminal.
[0077] The method of sending a data acquisition request to the target vehicle cabin terminal can be: determining whether the target vehicle cabin terminal is the first time to establish a Wifi hotspot data transmission channel with the target aircraft cabin terminal, if yes, establishing a synchronization database file and sending a data acquisition request to the target aircraft cabin terminal. If it is not the first time to establish a Wifi hotspot data transmission channel, determine the target timestamp based on the timestamp of each data stored in the second synchronization database of the target aircraft cabin terminal; send a data acquisition request including the target timestamp to the target vehicle cabin terminal. The target terminal feeds back data generated after the target timestamp and returns to the target aircraft cabin terminal.
[0078] The method of sending a data acquisition request to the target vehicle cabin terminal can also be: directly sending a data request to the target terminal, so that the target terminal acquires data generated after a specified time or data within a preset time period from the request sending time of the data acquisition request in response to the data acquisition request.
[0079] Step S250: Receive the target data acquired from the first synchronization database by the target vehicle cabin terminal in response to the data acquisition request, and store the target data to the second synchronization database of the target aircraft cabin terminal.
[0080] The names of the first synchronization database and the second synchronization database can be the same, and the data included in the first synchronization database and the second synchronization database can be the same after data synchronization.
[0081] The target data obtained above can be all data in the first synchronization database or part of the data in the first synchronization database, which can be set according to actual needs.
[0082] In an implementation of the present application, to improve the data acquisition efficiency and the consistency of the data in the first synchronization database and the second synchronization database after data synchronization, step S240 can be that a target timestamp is determined based on the timestamp of each data stored in the second synchronization database of the target aircraft cabin terminal; a data acquisition request including the target timestamp is sent to the target vehicle cabin terminal; and step S250 can be that target data whose timestamp is after the target timestamp is acquired from the first synchronization database by the target vehicle cabin terminal in response to the data acquisition request.
[0083] Please refer to Figure 5 The embodiment of the present application also provides a method for establishing a data transmission channel, which is applied to a server, the server is in communication connection with aircraft cabin terminals and vehicle cabin terminals of a plurality of air cars respectively, and the method comprises the following steps:
[0084] Step S310: receiving a data synchronization request sent by a target aircraft cabin terminal, the data synchronization request including address information of the target aircraft cabin terminal and an aircraft cabin terminal identifier.
[0085] Step S320: acquiring a device identifier corresponding to the aircraft cabin terminal identifier in response to the data synchronization request.
[0086] Step S330: sending a data synchronization instruction including the address information to a target vehicle cabin terminal to which the device identifier belongs, so that the target vehicle cabin terminal establishes a first data transmission channel with the target aircraft cabin terminal based on the address information; the target aircraft cabin terminal starts a Wifi hotspot of the target aircraft cabin terminal after the establishment of the first data transmission channel, sends Wifi hotspot information corresponding to the Wifi hotspot of the target aircraft cabin terminal to the target vehicle cabin terminal through the first data transmission channel, and establishes a Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle cabin terminal when receiving a Wifi hotspot connection request fed back by the target vehicle cabin terminal.
[0087] The specific description of steps S310-S330 above can be referred to the specific description of steps S110-S160 above, which will not be repeated here.
[0088] The transmission efficiency of the first data transmission channel can be less than the data transmission efficiency of the Wifi hotspot data transmission channel.
[0089] In an implementation, the step S320 can be: obtaining the device identifier corresponding to the aircraft cabin terminal identifier from a preset correspondence relationship in response to the data synchronization request, the preset correspondence relationship storing identifier information of a plurality of aircraft cabin terminals and identifier information of a vehicle cabin terminal corresponding to the identifier information of each aircraft cabin terminal.
[0090] In an implementation, the server is an MQTT server, the vehicle cabin terminal is a vehicle terminal, and the first data transmission channel is a Bluetooth data transmission channel.
[0091] As shown in Figure 6 , a schematic diagram of a data transmission system including a target aircraft cabin terminal, a target vehicle cabin terminal, an MQTT server, and a data management platform associated with the MQTT is shown.
[0092] The target aircraft cabin terminal is provided with an operating system, software and hardware of Bluetooth and WIFI, and a mobile network. The target vehicle cabin terminal is also provided with an operating system, software and hardware of Bluetooth and WIFI, and a mobile network. The target aircraft cabin terminal and the target vehicle cabin terminal are connected with the MQTT server respectively; the target vehicle cabin terminal has a device identifier which can be used as a unique identifier to subscribe to the messages of the MQTT server, and the target aircraft cabin terminal has an aircraft cabin terminal identifier which can also be used as a unique identifier to subscribe to the messages of the MQTT server.
[0093] As follows, each component included in the system will be explained:
[0094] As shown in Figure 7 , the target aircraft cabin terminal includes four modules (which can be software program modules or hardware modules), i.e. a first MQTT module, a first Bluetooth module, a first WIFI hotspot module, and a first data synchronization module: the first MQTT module is used to send a data synchronization request when the target aircraft cabin terminal has been connected with the MQTT server, and the MQTT message containing the MAC address of the target aircraft cabin terminal, the Topic of the MQTT message is “ / send / sync / aircraft cabin terminal identifier”; the first Bluetooth module is responsible for automatically opening Bluetooth and starting Bluetooth data service, and sending WIFI hotspot information. The first WIFI hotspot module is responsible for opening the WIFI hotspot and starting the WIFI hotspot data service, and accepting the WIFI hotspot connection and WIFI hotspot data service connection of the target vehicle cabin terminal. The first data synchronization module is responsible for driving the Bluetooth module, the WIFI hotspot module to open and close, etc. logical, and is responsible for data synchronization logic.
[0095] AsFigure 8 As shown, the target vehicle cabin terminal includes four modules (which can be software program modules or hardware modules), namely a second MQTT module, a second Bluetooth module, a second wifi hotspot module, and a second data synchronization module. The second MQTT module is responsible for receiving a data synchronization instruction when the target vehicle cabin terminal has connected to the MQTT server. The data synchronization instruction includes an MQTT message containing address information (such as a MAC address) of the target aircraft cabin terminal. The Topic of the MQTT message is “ / msg / sync / device identification”. The second Bluetooth module is responsible for automatically opening Bluetooth when listening to the data synchronization instruction, connecting the Bluetooth data service of the target aircraft cabin terminal through the address information of the target aircraft cabin terminal, thereby establishing a first data transmission channel (a Bluetooth data transmission channel) between the target vehicle cabin terminal and the target aircraft cabin terminal, and receiving the Wifi hotspot information of the target aircraft cabin terminal through the Bluetooth data transmission channel. The second Wifi hotspot module is responsible for opening the Wifi hotspot and connecting the Wifi hotspot data service of the target aircraft cabin terminal using the Wifi hotspot information of the target aircraft cabin terminal, thereby establishing a Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target aircraft cabin terminal. The second data synchronization module is responsible for driving the Bluetooth module, the Wifi hotspot module to open and close, and the like. The second data synchronization module listens to the Wifi hotspot information of the target aircraft cabin terminal obtained by the Bluetooth module, calls the Wifi hotspot module to complete the connection to the Wifi hotspot data service, and is responsible for the data synchronization logic.
[0096] As Figure 9As shown, the MQTT includes two modules (which can be software program modules or hardware modules), specifically, two modules are an MQTT service module and a synchronization service module. The MQTT service module is configured to provide standard MQTT services, and accept subscription messages and publishing messages of the target vehicle cabin terminal and the target aircraft cabin terminal. The synchronization service module is configured to subscribe to messages with a Topic of " / send / sync / #", i.e., messages starting with " / send / sync / ". After the target aircraft cabin terminal sends a synchronization data instruction message, the synchronization service module receives payload data with a Topic of " / msg / sync / aircraft cabin terminal identifier" and address information of the target aircraft cabin terminal. The synchronization service module obtains the aircraft cabin terminal identifier by intercepting the prefix " / msg / sync / " from the Topic, obtains the device identifier from the data management platform using the aircraft cabin terminal identifier, and sends data including the address information of the target aircraft cabin terminal and data with a Topic of " / msg / sync / device identifier" to the MQTT service module. Thus, the MQTT service module sends a data synchronization instruction to the target vehicle cabin terminal to which the device identifier belongs when the device identifier corresponding to the aircraft cabin terminal identifier is obtained, and the data synchronization instruction includes the address information of the target aircraft cabin terminal.
[0097] The data management platform is a complete Web service platform, which includes the binding relationship of the target vehicle cabin terminal and the target aircraft cabin terminal. Specifically, the aircraft cabin terminal identifier and the device identifier with the binding relationship are included in the present application. The data management platform can provide an interface for converting the aircraft cabin terminal identifier to the device identifier, and the interface name is / vin2ain, where vin represents the aircraft cabin terminal identifier, and ain represents the vehicle cabin terminal identifier.
[0098] Request parameters
[0099] Parameter Name Parameter Type vin String
[0100] Response parameters
[0101] Parameter Name Parameter Type ain String
[0102] As follows, the relationship between each two connected devices in the system is explained:
[0103] Between the target aircraft cabin terminal and the MQTT server: the target aircraft cabin terminal establishes a connection and subscribes to the messages of the MQTT server with the aircraft cabin terminal identifier as the unique identifier; the target aircraft cabin terminal sends a data synchronization request to the MQTT server, which includes the address information of the target aircraft cabin terminal, so that the MQTT server notifies the target vehicle cabin terminal to synchronize data; the address information of the target aircraft cabin terminal is used for the target vehicle cabin terminal to connect the Bluetooth device of the target aircraft cabin terminal.
[0104] Between the target vehicle cabin terminal and the MQTT server: the target vehicle cabin terminal establishes a connection and subscribes to the messages of the MQTT server with the device identifier as the unique identifier; the target vehicle cabin terminal receives a message from the MQTT server, wherein the message includes aircraft cabin terminal address information, so that the target vehicle cabin terminal is used to establish a Bluetooth data transmission channel with the target aircraft cabin terminal according to the address information of the aircraft cabin terminal.
[0105] Between the target vehicle cabin terminal and the target aircraft cabin terminal: the target vehicle cabin terminal and the target aircraft cabin terminal establish a Bluetooth connection and a Bluetooth data service connection to establish a Bluetooth data transmission channel, and the target aircraft cabin terminal sends the target vehicle cabin terminal the Wifi hotspot name + Wifi hotspot password + Wifi hotspot network IP, so that the target vehicle cabin terminal and the target aircraft cabin terminal establish a Wifi hotspot connection and a Wifi hotspot data service connection to establish a Wifi hotspot data transmission channel, and synchronize data through the Wifi hotspot data transmission channel.
[0106] Between the MQTT server and the data management platform: the MQTT server receives a synchronization data instruction and obtains the aircraft cabin terminal identifier, requests the data management platform to obtain the device identifier with the aircraft cabin terminal identifier, and publishes a synchronization data instruction according to the device identifier.
[0107] It should be noted that the target vehicle cabin terminal and the target aircraft cabin terminal have registered the device identifier and the aircraft cabin terminal identifier in the data management platform, respectively, and established a binding relationship.
[0108] The device identifier and the aircraft cabin terminal identifier are used in the Topic in the MQTT protocol, and the Topic is an identifier for subscribing and publishing messages in the MQTT protocol; the target vehicle cabin terminal and the target aircraft cabin terminal subscribe to the services of the MQTT server before establishing a connection between the two systems when the system starts.
[0109] The process of establishing a data transmission channel and specifically conducting data transmission at each device in the above-described data transmission system is as follows:
[0110] The target aircraft cabin terminal publishes a data synchronization request to the MQTT server, and the data synchronization request includes the aircraft cabin terminal Mac address and an MQTT message, and the Topic (message topic) of the MQTT message is " / send / sync / aircraft cabin terminal identifier". The Topic is an identification of a subscription message and a published message in the MQTT protocol.
[0111] It should be noted that the data synchronization request carries an SSID as an identification of a Bluetooth data service, and the target vehicle cabin terminal needs to transmit the same SSID when connecting the Bluetooth service. In this embodiment, the SSID is fixed. The Bluetooth data service is implemented based on a Socket interface, wherein SSID is the abbreviation of Service Set Identifier, which means service set identifier. The SSID technology can divide a wireless local area network into several sub-networks that need different identity authentication. Each sub-network needs independent identity authentication, and only users who pass the identity authentication can enter the corresponding sub-network, thereby preventing unauthorized users from entering the network.
[0112] The MQTT server business module subscribes to all messages with Topic starting with " / send / sync / ". After receiving the synchronization data instruction message, the MQTT server business module uses the aircraft cabin terminal identifier of the target aircraft cabin terminal to obtain the device identifier from the data management platform.
[0113] The data management platform aircraft cabin terminal identifier and the device identifier are bound, and the corresponding device identifier can be obtained based on the aircraft cabin terminal identifier, and returned to the MQTT server.
[0114] The MQTT server business module uses the device identifier to splice the Topic, and obtains a format of " / msg / sync / aircraft cabin terminal identifier". The synchronization data instruction message is distributed using the Topic, and the aircraft cabin terminal Mac address is also included.
[0115] After the target vehicle cabin terminal receives the synchronization data instruction message, the address information of the target aircraft cabin terminal is obtained, the target aircraft cabin terminal address information is used to match the Bluetooth device, and then the fixed SSID is used to connect the Bluetooth data service, so as to establish the first data transmission channel (Bluetooth data transmission channel) between the target vehicle cabin terminal and the target aircraft.
[0116] The target aircraft cabin terminal automatically opens a Wifi hotspot and starts a Wifi hotspot data service after determining to establish a first data transmission channel between the target vehicle cabin terminal and the target flight. The Wifi hotspot data service is implemented based on a Socket interface, and the network port of the data service is fixed. At the same time, the target aircraft cabin terminal obtains the Wifi hotspot information, which includes the Wifi hotspot name, the Wifi hotspot password, and the Wifi hotspot network IP. The target vehicle cabin terminal sends the Wifi hotspot information to the target aircraft cabin terminal through a Bluetooth data transmission channel.
[0117] After the target vehicle cabin terminal obtains the Wifi hotspot information, it connects to the Wifi hotspot of the target aircraft cabin terminal using the Wifi hotspot name and the Wifi hotspot password. The target aircraft cabin terminal connects to the Wifi hotspot network data service using the Wifi hotspot network IP and the fixed network port, thereby establishing a Wifi hotspot data transmission channel. This allows the target vehicle cabin terminal and the target aircraft cabin terminal to synchronize data through the Wifi hotspot data transmission channel.
[0118] Specifically, during data synchronization, the target aircraft cabin terminal and the target vehicle cabin terminal can each have a database with the same file name, where the database file is named car-sync-.db.
[0119] When reading and writing data from the database file, SQLite solution can be used for reading and writing. The database files of the target aircraft cabin terminal and the target vehicle cabin terminal are used to save data that can be synchronized, such as multimedia application playback status and progress, aircraft cabin terminal flight plan data, etc. SQLite is a lightweight database that complies with ACID relational database management system. It is included in a relatively small C library. It is a public domain project established by D. Richard Hipp. Its design goal is embedded, and it has been used in many embedded products. It occupies very low resources, and in embedded devices, it may only need a few hundred K of memory.
[0120] car-sync-.db database table structure
[0121] Name Type Constraint key TEXT Primary Key value BLOB timestamp INTEGER
[0122] Wherein: key: the key value of the synchronization attribute, as the unique identifier of the synchronization attribute; TEXT type can support saving text data; primary key, that is, the main keyword, is the candidate keyword selected as the unique identifier of the table row; value: the value of the synchronization attribute; BLOB type can support saving picture and byte array data; timestamp: the time stamp of saving or updating, unit millisecond, an important parameter for incremental data synchronization after the first synchronization; INTEGER type can support saving integer.
[0123] As shown in Figure 11 , the target aircraft cabin terminal does not create the car-sync.db file before the first synchronization; therefore, the target aircraft cabin terminal can start synchronization under the condition of meeting the synchronization condition during the first synchronization; specifically, the synchronization process is: creating the car-sync.db file in the target aircraft cabin terminal; requesting data from the target vehicle cabin terminal with timestamp as 0 (time stamp as 0); the target vehicle cabin terminal obtains all data from the car-sync.db file included in the target vehicle cabin terminal and sends it to the target aircraft cabin terminal; the target aircraft cabin terminal stores the received data into the car-sync.db file created by the target aircraft cabin terminal, thereby completing data synchronization.
[0124] As shown in Figure 12 , the target aircraft cabin terminal can start synchronization under the condition of meeting the synchronization condition during the first synchronization; specifically, the synchronization process is: querying the maximum timestamp from the car-sync.db file of the target aircraft cabin terminal, denoted as maxTimestamp; sending the requested data including maxTimestamp to the target vehicle cabin terminal; the target vehicle cabin terminal queries the incremental data meeting the condition of timestamp>maxTimestamp from the car-sync.db file included in the target vehicle cabin terminal and sends it to the target aircraft cabin terminal; the target aircraft cabin terminal inserts or updates the received incremental data into the car-sync.db file of the target aircraft cabin terminal, thereby completing the synchronization of this time data.
[0125] It should be understood that, unless explicitly stated herein, the execution of these steps does not have strict order restrictions, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowcharts involved in the above embodiments can include multiple steps or multiple stages, which do not necessarily be executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.
[0126] Referring to Figure 13 Another embodiment of the present application provides a data transmission channel establishment device 400 applied to a target aircraft cabin terminal of a target flying car in a plurality of flying cars in a data transmission system, the flying car further comprising a vehicle-mounted cabin terminal, and the data transmission system further comprising a server, the server being in communication connection with the aircraft cabin terminals and the vehicle-mounted cabin terminals of the plurality of flying cars, the device 400 comprising a synchronization request sending module 410, an information sending module 420, and a channel establishment module 430. The synchronization request sending module 410 is configured to send a data synchronization request carrying address information of the target aircraft cabin terminal and an aircraft cabin terminal identifier to the server, so that the server sends a data synchronization instruction to a target vehicle-mounted cabin terminal to which the device identifier corresponds when the device identifier corresponding to the aircraft cabin terminal identifier is acquired, the data synchronization instruction comprising the address information. The information sending module 420 is configured to send Wifi hotspot information corresponding to a Wifi hotspot of the target aircraft cabin terminal to the target vehicle-mounted cabin terminal through a first data transmission channel if it is confirmed that the target vehicle-mounted cabin terminal establishes the first data transmission channel between the target vehicle-mounted cabin terminal and the target aircraft cabin terminal, the first data transmission channel being a channel established by the target vehicle-mounted cabin terminal based on the address information in response to the data synchronization instruction. The channel establishment module 430 is configured to establish a Wifi hotspot data transmission channel between the target aircraft cabin terminal and the target vehicle-mounted cabin terminal based on a Wifi hotspot connection request sent by the target vehicle-mounted cabin terminal based on the Wifi hotspot information if the Wifi hotspot connection request is received, so that the target aircraft cabin terminal and the target vehicle-mounted cabin terminal perform data transmission through the Wifi hotspot data transmission channel, and the transmission efficiency of the first data transmission channel is less than the data transmission efficiency of the Wifi hotspot data transmission channel.
[0127] In an implementable manner, the device 400 further comprises an acquisition request sending module and a data receiving module. The acquisition request sending module is configured to send a data acquisition request to the target vehicle-mounted cabin terminal. The data receiving module is configured to receive target data acquired by the target vehicle-mounted cabin terminal from a first synchronization database in response to the data acquisition request and store the target data into a second synchronization database of the target aircraft cabin terminal.
[0128] In an implementation, the apparatus 400 further comprises: a request sending module, further configured to determine a target timestamp based on the timestamp of each data stored in the second synchronization database of the target aerial vehicle cabin terminal; send a data request including the target timestamp to the target vehicle cabin terminal; and a data receiving module, further configured to receive target data acquired by the target vehicle cabin terminal from the first synchronization database in response to the data request, wherein the timestamp of the target data is later than the target timestamp.
[0129] In an implementation, the first data transmission channel is a Bluetooth data transmission channel.
[0130] In an implementation, the first data transmission channel is a Bluetooth data transmission channel. Figure 14 In an implementation, the first data transmission channel is a Bluetooth data transmission channel.
[0131] In an implementation, the information acquisition module 520 is further configured to acquire the device identifier corresponding to the aerial vehicle cabin terminal identifier from a preset correspondence relationship in response to the data synchronization request, wherein the preset correspondence relationship stores identifier information of a plurality of aerial vehicle cabin terminals and identifier information of a vehicle cabin terminal corresponding to each aerial vehicle cabin terminal identifier.
[0132] In an implementation, the server is an MQTT server, the vehicle cabin terminal is a vehicle terminal, and the first data transmission channel is a Bluetooth data transmission channel.
[0133] Each of the above modules can be implemented by software, hardware and combinations thereof in whole or in part. The above modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to the above modules. It should be noted that the device embodiments in the present application correspond to the foregoing method embodiments, and the specific principles in the device embodiments can be referred to the foregoing method embodiments, which will not be described herein.
[0134] The above will be described in detail below with reference to the accompanying drawings. Figure 5 An electronic device provided by the present application is described.
[0135] Please refer to Figure 15 Based on the method for establishing the data transmission channel provided in the above embodiments, the present embodiment further provides another electronic device 100 including the processor 102 that can execute the foregoing method. The electronic device 100 can be a vehicle cabin terminal, and can also be the aircraft cabin terminal described above.
[0136] The electronic device 100 further includes a memory 104. The memory 104 stores programs that can execute the contents in the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104.
[0137] The processor 102 can include one or more cores for processing data and a message matrix unit. The processor 102 connects various parts within the entire electronic device 100 with various interfaces and lines, performs various functions of the electronic device 100 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and calling data stored in the memory 104. Alternatively, the processor 102 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), a programmable logic array (PLA). The processor 102 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes an operating system, a user interface, and an application program; the GPU is responsible for rendering and drawing display content; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 102, but can be implemented by a separate communication chip.
[0138] The memory 104 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 104 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 104 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing each of the following method embodiments, etc. The data storage area can also store data acquired by the electronic device 100 in use, etc.
[0139] The electronic device 100 can also include a network module and a screen. The network module is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices, for example, an audio playback device. The network module can include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like. The network module can communicate with various networks such as the Internet, an intranet, a wireless network, or other devices through the wireless network. The above-mentioned wireless network can include a cellular telephone network, a wireless local area network, or a metropolitan area network.
[0140] In some embodiments, the electronic device 100 can further include a peripheral interface 106 and at least one peripheral device. The processor 102, the memory 104 and the peripheral interface 106 can be connected through a bus or a signal line. Each peripheral device can be connected with the peripheral interface through a bus, a signal line or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency component 108, a positioning component 112, a camera 114, an audio component 116, a display screen 118, a power supply 122, and the like
[0141] The peripheral interface 106 can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 102 and the memory 104. In some embodiments, the processor 102, the memory 104 and the peripheral interface 106 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 102, the memory 104 and the peripheral interface 106 can be implemented on a separate chip or circuit board, and the embodiments of the present application do not limit this.
[0142] The radio frequency component 108 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency component 108 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency component 108 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency component 108 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency component 108 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency component 108 can also include NFC (Near Field Communication) related circuitry, and the present application does not limit this.
[0143] The positioning component 112 is used to locate the current geographical position of the electronic device to realize navigation or LBS (Location Based Service). The positioning component 112 can be a positioning component based on the GPS (Global Positioning System) of the United States, the Beidou system or the Galileo system.
[0144] The camera 114 is configured to capture images or videos. Optionally, the camera 114 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is disposed on the front panel of the electronic device 100, and the rear-facing camera is disposed on the back of the electronic device 100. In some embodiments, the rear-facing camera is at least two, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, to realize the background blurring function by fusing the main camera and the depth-of-field camera, the panoramic shooting and VR (Virtual Reality) shooting function by fusing the main camera and the wide-angle camera, or other fusion shooting functions. In some embodiments, the camera 114 can further include a flash. The flash can be a single-color-temperature flash or a dual-color-temperature flash. The dual-color-temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0145] The audio component 116 can include a microphone and a speaker. The microphone is configured to capture sound waves of a user and an environment, and convert the sound waves into an electrical signal input to the processor 102 for processing or to the radio frequency component 108 to realize voice communication. For the purpose of stereo sound capture or noise reduction, the microphone can be multiple, which are respectively disposed at different parts of the electronic device 100. The microphone can also be an array microphone or an omnidirectional capture microphone. The speaker is configured to convert an electrical signal from the processor 102 or the radio frequency component 108 into sound waves. The speaker can be a traditional thin-film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert an electrical signal into a sound wave audible to humans, but also convert an electrical signal into an inaudible sound wave to humans for ranging purposes. In some embodiments, the audio component 116 can further include a headphone jack.
[0146] The display screen 118 is configured to display a UI (User Interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 118 is a touch display screen, the display screen 118 is also capable of capturing touch signals on or above the surface of the display screen 118. The touch signals can be input to the processor 102 as control signals for processing. At this time, the display screen 118 can also be configured to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 118 can be one, configured on the front panel of the electronic device 100; in other embodiments, the display screen 118 can be at least two, respectively configured on different surfaces of the electronic device 100 or in a folding design; in yet other embodiments, the display screen 118 can be a flexible display screen, configured on a curved surface or a folding surface of the electronic device 100. Even, the display screen 118 can also be configured in an irregular shape other than a rectangle, i.e., a notched screen. The display screen 118 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.
[0147] The power supply 122 is configured to supply power to various components in the electronic device 100. The power supply 122 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 122 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery that is charged through a wired line, and the wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be configured to support fast charging technology.
[0148] The embodiments of the present application also provide a structural block diagram of a computer readable storage medium. The computer readable medium stores program codes, which can be invoked by a processor to execute the methods described in the above method embodiments.
[0149] The computer readable storage medium can be an electronic storage such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer readable storage medium includes a non-transitory computer readable medium. The computer readable storage medium has storage space for program codes to execute any of the above methods. The program codes can be read from or written to one or more computer program products. The program codes can be compressed in an appropriate form, for example.
[0150] The embodiment of the present application further provides a computer program product or computer program, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method described in the various optional implementation manners.
[0151] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for establishing a data transmission channel, characterized in that, The method involves a target aircraft cockpit terminal in a data transmission system for multiple flying cars, where each flying car also includes an onboard cockpit terminal. The data transmission system further includes a server, which is communicatively connected to both the target aircraft cockpit terminal and the onboard cockpit terminal of each flying car. A data synchronization request carrying the address information and the identifier of the target aircraft cockpit terminal is sent to the server, so that when the server obtains the device identifier corresponding to the aircraft cockpit terminal identifier, it sends a data synchronization instruction to the target vehicle cockpit terminal to which the device identifier belongs, and the data synchronization instruction includes the address information; If it is confirmed that the target vehicle-mounted cockpit terminal has established a first data transmission channel with the target aircraft cockpit terminal, the Wi-Fi hotspot information corresponding to the Wi-Fi hotspot of the target aircraft cockpit terminal is sent to the target vehicle-mounted cockpit terminal through the first data transmission channel. The first data transmission channel is a channel established by the target vehicle-mounted cockpit terminal based on the address information in response to the data synchronization command. If a Wi-Fi hotspot connection request is received from the target vehicle-mounted cockpit terminal based on the Wi-Fi hotspot information, a Wi-Fi hotspot data transmission channel is established between the target aircraft cockpit terminal and the target vehicle-mounted cockpit terminal based on the Wi-Fi hotspot connection request, so that the target aircraft cockpit terminal and the target vehicle-mounted cockpit terminal can transmit data through the Wi-Fi hotspot data transmission channel.
2. The method according to claim 1, characterized in that, After establishing the Wi-Fi hotspot data transmission channel between the target vehicle-mounted cockpit terminal and the target aircraft cockpit terminal, the method further includes: Send a data acquisition request to the target vehicle-mounted cockpit terminal; The system receives target data from the first synchronous database in response to the data acquisition request from the target vehicle-mounted cockpit terminal, and stores the target data in the second synchronous database of the target aircraft cockpit terminal.
3. The method according to claim 2, characterized in that, Sending a data acquisition request to the target vehicle cockpit terminal includes: The target timestamp is determined based on the timestamp of each data stored in the second synchronous database of the target aircraft cockpit terminal. Send a data acquisition request, including the target timestamp, to the target vehicle cockpit terminal; Receiving the target data obtained from the first synchronous database by the target vehicle cockpit terminal in response to the data acquisition request includes: The target data whose timestamp is after the target timestamp is obtained from the first synchronization database by the target vehicle cockpit terminal in response to the data acquisition request.
4. The method according to claim 1, characterized in that, The first data transmission channel is a Bluetooth data transmission channel.
5. A method for establishing a data transmission channel, characterized in that, The method is applied to a server, which is communicatively connected to the aircraft cockpit terminals and vehicle cockpit terminals of multiple flying cars, and includes: Receive a data synchronization request sent by the target aircraft cockpit terminal, the data synchronization request including the address information and the aircraft cockpit terminal identifier of the target aircraft cockpit terminal; In response to a data synchronization request, obtain the device identifier corresponding to the aircraft cockpit terminal identifier; A data synchronization command including address information is sent to the target vehicle-mounted cockpit terminal to which the device identifier belongs, so that the target vehicle-mounted cockpit terminal establishes a first data transmission channel with the target aircraft cockpit terminal based on the address information. After the first data transmission channel is established, the target aircraft cockpit terminal activates its Wi-Fi hotspot and sends the Wi-Fi hotspot information corresponding to the target aircraft cockpit terminal to the target vehicle-mounted cockpit terminal through the first data transmission channel. Upon receiving a Wi-Fi hotspot connection request from the target vehicle-mounted cockpit terminal, a Wi-Fi hotspot data transmission channel is established between the target aircraft cockpit terminal and the target vehicle-mounted cockpit terminal. The transmission efficiency of the first data transmission channel is lower than that of the Wi-Fi hotspot data transmission channel.
6. The method according to claim 5, characterized in that, The process of obtaining the device identifier corresponding to the aircraft cockpit terminal identifier in response to a data synchronization request includes: In response to a data synchronization request, the device identifier corresponding to the aircraft cockpit terminal identifier is obtained from a preset mapping relationship. The preset mapping relationship stores the identifier information of multiple aircraft cockpit terminals and the identifier information of the vehicle-mounted cockpit terminal corresponding to the identifier information of each aircraft cockpit terminal.
7. The method according to claim 5, characterized in that, The server is an MQTT server, the vehicle cockpit terminal is a vehicle terminal, and the first data transmission channel is a Bluetooth data transmission channel.
8. A device for establishing a data transmission channel, characterized in that, A target aircraft cockpit terminal for multiple flying cars in a data transmission system, wherein the flying car also includes an onboard cockpit terminal, and the data transmission system also includes a server, the server being communicatively connected to the aircraft cockpit terminals and onboard cockpit terminals of the multiple flying cars respectively, the device comprising: The synchronization request sending module is used to send a data synchronization request to the server, which carries the address information and the identification of the target aircraft cockpit terminal, so that when the server obtains the device identification corresponding to the aircraft cockpit terminal identification, it sends a data synchronization instruction to the target vehicle cockpit terminal to which the device identification belongs, and the data synchronization instruction includes the address information. The information sending module is used to send the Wi-Fi hotspot information corresponding to the Wi-Fi hotspot of the target vehicle cockpit terminal to the target vehicle cockpit terminal through the first data transmission channel if it is confirmed that the target vehicle cockpit terminal has established a first data transmission channel with the target aircraft cockpit terminal. The first data transmission channel is a channel established by the target vehicle cockpit terminal based on the address information in response to the data synchronization command. The channel establishment module is used to establish a Wi-Fi hotspot data transmission channel between the target aircraft cockpit terminal and the target vehicle cockpit terminal based on the Wi-Fi hotspot information if a Wi-Fi hotspot connection request is received from the target vehicle cockpit terminal. This allows the target aircraft cockpit terminal and the target vehicle cockpit terminal to transmit data through the Wi-Fi hotspot data transmission channel. The transmission efficiency of the first data transmission channel is lower than that of the Wi-Fi hotspot data transmission channel.
9. A device for establishing a data transmission channel, characterized in that, The device is applied to a server, which is communicatively connected to the aircraft cockpit terminals and vehicle cockpit terminals of multiple flying cars, and includes: The request receiving module is used to receive a data synchronization request sent by the target aircraft cockpit terminal. The data synchronization request includes the address information and the aircraft cockpit terminal identifier of the target aircraft cockpit terminal. The information acquisition module is used to obtain the device identifier corresponding to the aircraft cockpit terminal identifier in response to the data synchronization request; The instruction sending module is used to send a data synchronization instruction including address information to the target vehicle-mounted cockpit terminal to which the device identifier belongs, so that the target vehicle-mounted cockpit terminal establishes a first data transmission channel with the target aircraft cockpit terminal based on the address information. After the first data transmission channel is established, the target aircraft cockpit terminal starts its Wi-Fi hotspot and sends the Wi-Fi hotspot information corresponding to the target aircraft cockpit terminal to the target vehicle-mounted cockpit terminal through the first data transmission channel. When the module receives a Wi-Fi hotspot connection request from the target vehicle cockpit terminal, it establishes a Wi-Fi hotspot data transmission channel between the target aircraft cockpit terminal and the target vehicle-mounted cockpit terminal. The transmission efficiency of the first data transmission channel is lower than that of the Wi-Fi hotspot data transmission channel.
10. An electronic device, characterized in that, include: One or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the method as described in any one of claims 1-5 or 6-7.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code that can be invoked by a processor to perform the method as described in any one of claims 1-5 or 6-7.
Citation Information
Patent Citations
Unmanned plane smart data transmission means based on Bluetooth communication
CN106535103A
Method and apparatus for establishing short-distance wireless channel
WO2017097129A1