CN112887372B - Communication system, method, device, equipment and storage medium compatible with data transmission image transmission - Google Patents

Communication system, method, device, equipment and storage medium compatible with data transmission image transmission Download PDF

Info

Publication number
CN112887372B
CN112887372B CN202110041602.1A CN202110041602A CN112887372B CN 112887372 B CN112887372 B CN 112887372B CN 202110041602 A CN202110041602 A CN 202110041602A CN 112887372 B CN112887372 B CN 112887372B
Authority
CN
China
Prior art keywords
data
transmitted
data transmission
channel
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110041602.1A
Other languages
Chinese (zh)
Other versions
CN112887372A (en
Inventor
王永刚
邓超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202110041602.1A priority Critical patent/CN112887372B/en
Publication of CN112887372A publication Critical patent/CN112887372A/en
Application granted granted Critical
Publication of CN112887372B publication Critical patent/CN112887372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The disclosure provides a communication system, a method, a device, equipment and a storage medium compatible with data transmission and image transmission, and relates to the technical field of block chains. The processing method comprises the following steps: the physical link layer comprises a data transmission channel and a graph transmission channel, and the graph transmission channel establishes a graph transmission link between a handheld end and a device end according to configuration information of the data transmission channel for establishing the data transmission link; the network layer is used for interacting configuration information and data to be transmitted with the physical link layer; the transmission layer is interacted with the network layer and is used for transmitting data to be transmitted through a graphic transmission link or a data transmission link according to preset transmission parameters; the application layer is interacted with the transmission layer, the application layer is packaged with a read interface and a write interface, the read interface is used for reading in data to be transmitted, and the write interface is used for writing out the data to be transmitted. By the technical scheme, two modes of image transmission and data transmission are fused, and the universality and expansibility of the transmission platform are improved.

Description

Communication system, method, device, equipment and storage medium compatible with data transmission image transmission
Technical Field
The present disclosure relates to the field of data transmission technologies, and in particular, to a communication system, a method, an apparatus, a device, and a storage medium compatible with data transmission and image transmission.
Background
Currently, a robot PCS (portable control system, a hand-held control system, hereinafter referred to as a hand-held end) on the market controls the motion of a robot based on an open source protocol such as mavlink (Micro Air Vehicle Link, micro aerial vehicle link communication protocol) or PX4 (native firmware), and collects related information, which is essentially a robot remote controller with feedback and display.
In the related art, the PCS is generally used for controlling the flight control equipment, and only the product characteristics of the flight control equipment are specially designed and optimized, namely, the PCS is a specific product and function, and the PCS is universal in a specific field.
However, with the expansion and increase of the demand of the flight control products, each function improvement needs to upgrade a specific open source protocol, resulting in poor scalability.
In addition, the data transmission (i.e., data transmission) technology is an indispensable part of the flight control type products, and with the development and functional diversification of the image transmission (image transmission) technology, the importance of the data transmission technology is higher than that of the data transmission technology. However, most of these specific protocols are designed and optimized based on digital transmission, and support for graphic transmission is relatively weak, which is not suitable for stable transmission of large data volume.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure aims to provide a communication system, a method, a device, equipment and a storage medium compatible with data transmission and image transmission, which at least overcome the problem of poor universality of a data transmission and image transmission architecture in the related art to a certain extent.
Other features and advantages of the present disclosure will be apparent from the detailed description that follows, or may be learned in part by the practice of the disclosure.
According to one aspect of the present disclosure, there is provided a data transfer map compatible communication system including: the system comprises a physical link layer, a data transmission channel and a graphic transmission channel, wherein the graphic transmission channel establishes a graphic transmission link between a handheld end and a device end according to configuration information of the data transmission channel; the network layer is used for interacting the configuration information and the data to be transmitted with the physical link layer; the transmission layer is interacted with the network layer and is used for transmitting the data to be transmitted through the image transmission link or the data transmission link according to preset transmission parameters; the application layer is interacted with the transmission layer, a read interface and a write interface are packaged on the application layer, the read interface is used for reading the data to be transmitted, and the write interface is used for writing the data to be transmitted.
In one embodiment of the disclosure, the data frame of the physical link layer includes master-slave mode information, channel selection mode information, message type information, data information and cyclic redundancy check code information, and the handheld terminal is determined to be a master device or a slave device according to the master-slave mode information, and the device terminal is determined to be a slave device or a master device; determining a working channel as the data transmission channel, the image transmission channel or the Wi-Fi (Wireless-Fidelity) channel according to the channel selection model information; and determining that the data to be transmitted is heartbeat signals, application data, discovery equipment data or the configuration information according to the information type information.
In one embodiment of the present disclosure, if the master-slave model information is a first identification string, the handheld terminal is a master device, and the device terminal is a slave device; and if the master-slave model information is the second identification character string, the handheld terminal is slave equipment, and the equipment terminal is master equipment.
In one embodiment of the disclosure, if the channel selection model is a third identification string, the working channel is the data transmission channel; if the channel selection model is a fourth identification character string, the working channel is the Wi-Fi channel; and if the channel selection model is a fifth identification character string, the working channel is the image transmission channel.
In one embodiment of the disclosure, if the message type information is a seventh identification string, the data to be transmitted is the heartbeat signal; if the message type information is an eighth identification character string, the data to be transmitted is the application data; if the message type information is a ninth identification character string, the data to be transmitted is the discovery equipment data; and if the message type information is a tenth identification character string, the data to be transmitted is the configuration information.
In one embodiment of the present disclosure, the discovery device data includes a unique identification of the handset.
In one embodiment of the present disclosure, the configuration information includes a unique identification of the device side, a password, an identification of the hand-held side, an identification of the working channel, a time stamp, and password information.
In one embodiment of the disclosure, the data frame of the network layer includes service quality information, an identity of the device side, a message number, a time stamp, and encrypted pending data; and determining a transmission confirmation model of the data to be transmitted according to the service quality information.
In one embodiment of the present disclosure, if the quality of service information is an eleventh identification character, the pending data is transmitted at most once, and successful transmission is confirmed; if the service quality information is the twelfth identification character, the data to be transmitted is transmitted at least once, and the successful transmission is confirmed when a confirmation instruction fed back by the receiving end is received; and if the service quality information is the thirteenth identification character, transmitting the data to be transmitted once, and confirming that the transmission is successful.
In one embodiment of the present disclosure, the data frame of the transmission layer includes whole packet indication information, packet number information, a length of the data to be transmitted and encrypted data to be transmitted; determining whether to carry out packet finishing processing on the data to be transmitted according to the packet finishing indication information; and determining whether to carry out sub-packaging processing on the data to be transmitted or not and the number of sub-packaging processing.
In one embodiment of the present disclosure, the graph pass-through is a pass-through based on TCP/IP protocol interactions.
According to another aspect of the present disclosure, there is provided a communication method compatible with data transfer mapping, including: under the communication system compatible with the data transmission image transmission according to any one of the technical schemes, determining whether the equipment ends to be paired exist or not through broadcast channel scanning; determining an interactive working channel with the equipment end according to the scanning result; switching to the working channel, and creating a data transmission link through the working channel; and transmitting the data content in the data to be transmitted to the equipment end through the data transmission link.
In one embodiment of the present disclosure, further comprising: determining a service set identifier and a password according to the data transmission link; creating a graph transmission link through the service set identifier and the password and the working channel; and sending the image content in the data to be transmitted to the equipment end through the image transmission link.
In one embodiment of the present disclosure, before determining whether there is a device side to be paired through broadcast channel scanning, further comprising: scanning to determine an idle working channel; recording the idle working channel; and switching to the broadcast channel to scan.
In one embodiment of the present disclosure, determining an operation channel for interacting with the device side according to the scan result includes: and if the equipment end to be paired is determined by scanning, switching to an interactive working channel with the equipment end to be paired.
In one embodiment of the present disclosure, determining an operation channel for interacting with the device side according to the scan result further includes: if the equipment ends which are not to be paired are determined by scanning, sending handshake signals through the broadcast channel; determining all equipment ends in a scanning range through feedback signals of the handshake signals; determining one equipment end in the scanning range as a target equipment end; and determining a working channel for interaction with the target equipment.
According to another aspect of the present disclosure, there is provided a communication method compatible with data transfer mapping, including: under the communication system compatible with the data transmission and image transmission according to any one of the technical schemes, switching to a broadcast channel and waiting for handshake information sent by the handheld terminal; switching to a working channel according to preset configuration information, and creating a data transmission link through the working channel; and receiving the data content in the data to be transmitted sent by the handheld terminal through the data transmission link.
In one embodiment of the present disclosure, further comprising: receiving a time stamp sent by the handheld terminal; and carrying out time synchronization according to the time stamp, and carrying out interaction of the data to be transmitted according to the synchronized time.
In one embodiment of the present disclosure, further comprising: detecting whether a heartbeat signal is received within a preset period of time; if the heartbeat signal is detected to be received, determining that the data transmission link is normal; if the heartbeat signal is not detected to be received, determining that the data transmission link is abnormal, and rescanning to determine an idle working channel.
In one embodiment of the present disclosure, further comprising: detecting whether to actively disconnect the data transmission link; if the data transmission link is not detected to be actively disconnected, determining that the data transmission link is normal; if the data transmission link is detected to be actively disconnected, determining that the data transmission link is abnormal, and rescanning to determine an idle working channel.
In one embodiment of the present disclosure, further comprising: determining the priority of the data to be transmitted; and sequentially sending the data to be transmitted to a message queue according to the priority, wherein the sending time of the data to be transmitted of the message queue with high priority is earlier than the sending time of the data to be transmitted with low priority.
According to another aspect of the present disclosure, there is provided a communication apparatus compatible with data transfer mapping, including: the scanning module is used for determining whether the equipment ends to be paired exist or not through broadcast channel scanning under the communication system compatible with the data transmission and image transmission according to any one of the technical schemes; the determining module is used for determining a working channel interacted with the equipment end according to the scanning result; the switching module is used for switching to the working channel and creating a data transmission link through the working channel; and the communication module is used for transmitting the data content in the data to be transmitted to the equipment end through the data transmission link.
According to another aspect of the present disclosure, there is provided a communication apparatus compatible with data transfer mapping, including: a switching module, configured to switch to a broadcast channel and wait for handshake information sent by a handheld end in a communication system compatible with data transmission and mapping according to any one of the above technical schemes; the switching module is also used for switching to a working channel according to preset configuration information and creating a data transmission link through the working channel; and the communication module is used for receiving the data content in the data to be transmitted, which is sent by the handheld terminal, through the data transmission link.
According to still another aspect of the present disclosure, there is provided an electronic apparatus including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the compatible data transfer mapping communication method of any of the above via execution of the executable instructions.
According to yet another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the communication method of compatible data transfer mapping of any one of the above.
According to the communication scheme compatible with the data transmission and image transmission, the physical link layer comprises the data transmission channel and the image transmission channel, the network layer, the transmission layer and the application layer are arranged to interact with the physical link layer, the communication protocols of the layers are adjusted, two modes of image transmission and data transmission are integrated, and the universality and expansibility of the transmission platform are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 is a schematic diagram of a communication system compatible with data transfer mapping in an embodiment of the disclosure;
FIG. 2 is a schematic diagram of a data frame of a physical link layer of another data transfer mapping compatible communication system in an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a data frame of a network layer of yet another data transfer mapping compatible communication system in an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a data frame of a transport layer of yet another data transfer compatible graphical communication system in an embodiment of the disclosure;
FIG. 5 is a schematic diagram of a data frame of an application layer of yet another data transfer mapping compatible communication system in an embodiment of the present disclosure;
FIG. 6 illustrates a flow chart of yet another data transfer graph compatible communication method in an embodiment of the present disclosure;
FIG. 7 illustrates a flow chart of yet another method of data transfer map compatible communication in an embodiment of the present disclosure;
FIG. 8 illustrates a flow chart of yet another method of data transfer map compatible communication in an embodiment of the present disclosure;
FIG. 9 illustrates a flow chart of yet another data transfer graph compatible communication method in an embodiment of the present disclosure;
FIG. 10 illustrates a flow chart of yet another method of data transfer map compatible communication in an embodiment of the present disclosure;
FIG. 11 is a flow chart illustrating yet another method of data transfer map compatible communication in an embodiment of the present disclosure;
FIG. 12 is a flow chart illustrating yet another method of data transfer map compatible communication in an embodiment of the present disclosure;
FIG. 13 illustrates a flow chart of yet another data transfer graph compatible communication method in an embodiment of the present disclosure;
FIG. 14 is a flow chart illustrating yet another method of data transfer map compatible communication in an embodiment of the present disclosure;
FIG. 15 illustrates a flow chart of yet another data transfer graph compatible communication method in an embodiment of the present disclosure;
FIG. 16 is a flow chart illustrating yet another method of data transfer map compatible communication in an embodiment of the present disclosure;
FIG. 17 is a flow chart illustrating yet another method of data transfer map compatible communication in an embodiment of the present disclosure;
FIG. 18 is a schematic diagram of a data transfer graph compatible communication device in an embodiment of the disclosure;
FIG. 19 is a schematic diagram of another data transfer map compatible communication device in an embodiment of the disclosure;
fig. 20 shows a schematic diagram of an electronic device in an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may 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.
According to the scheme provided by the disclosure, the physical link layer comprises the data transmission channel and the image transmission channel, the network layer, the transmission layer and the application layer are arranged to interact with the physical link layer, and the communication protocols of the layers are adjusted, so that two modes of image transmission and data transmission are fused, and the universality and expansibility of the transmission platform are improved.
The communication scheme compatible with the data transmission image transmission can be realized through interaction of a plurality of terminals and a server cluster.
The terminal may be a mobile terminal such as a mobile phone, a game console, a tablet computer, an electronic book reader, a smart glasses, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio plane 4) player, a smart home device, an AR (Augmented Reality ) device, a VR (Virtual Reality) device, or a personal computer (Personal Computer, PC) such as a laptop portable computer and a desktop computer, etc.
Wherein an application for providing a process of the electronic proof data may be installed in the terminal.
The terminal is connected with the server cluster through a communication network. Optionally, the communication network is a wired network or a wireless network.
The server cluster is a server, or consists of a plurality of servers, or is a virtualized platform, or is a cloud computing service center. The server cluster is used for providing background services for application programs for providing processing of electronic evidence data. Optionally, the server cluster takes over primary computing work and the terminal takes over secondary computing work; or the server cluster bears secondary computing work, and the terminal bears primary computing work; or, the terminal and the server cluster adopt a distributed computing architecture to perform cooperative computing.
Alternatively, the clients of the applications installed in different terminals are the same, or the clients of the applications installed on both terminals are clients of the same type of application of different control system platforms. The specific form of the client of the application program may also be different based on the different terminal platforms, for example, the application program client may be a mobile phone client, a PC client, a global wide area network client, or the like.
Those skilled in the art will recognize that the number of terminals may be greater or lesser. Such as the above-mentioned terminals may be only one, or the above-mentioned terminals may be several tens or hundreds, or more. The embodiment of the present disclosure does not limit the number of terminals and the type of devices.
Optionally, the system may further comprise a management device, where the management device is connected to the server cluster via a communication network. Optionally, the communication network is a wired network or a wireless network.
Alternatively, the wireless network or wired network described above uses standard communication techniques and/or protocols. The network is typically the Internet, but may be any network including, but not limited to, a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or any combination of virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including HyperText Mark-up Language (HTML), extensible markup Language (Extensible MarkupLanguage, XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as secure sockets layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Security, TLS), virtual private network (Virtual Private Network, VPN), internet protocol security (Internet ProtocolSecurity, IPsec), etc. In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
In all embodiments of the present disclosure, the flight control type devices may include, but are not limited to: the system comprises a small rotor unmanned aerial vehicle (SRUA), an airborne sensor, a data processing unit, a flight control system, an airborne camera, a landing pad, a wireless image transmission module, a wireless data transmission module and a ground monitoring station; the airborne sensor comprises an inertial measurement unit, a GPS receiver, a barometer, ultrasound and the like; the data processing unit is used for fusing the sensor data; the flight control system completes path planning and realizes high-precision control of SRUA; acquiring an image of a landing pad by an airborne camera; the landing pad is a specially designed unmanned aerial vehicle landing point; the wireless transmission realizes the transmission of the image to the ground station; the wireless data transmission realizes the communication of data and instructions between the unmanned aerial vehicle and the ground station; the ground station is composed of a vision processing unit and a display terminal.
The unmanned aerial vehicle comprises a camera, a control command, a cradle head rotation direction command and other data, wherein the unmanned aerial vehicle is transmitted through a data transmission link, the image acquired by the camera is required to be transmitted through an image transmission link, and the data transmission and the image transmission are carried out separately. The communication system compatible with the data transmission and the image transmission is just one scheme compatible with the data transmission and the image transmission.
The steps of the data transmission compatible map communication system in the present exemplary embodiment will be described in more detail with reference to the accompanying drawings and examples.
Fig. 1 illustrates a schematic diagram of a data transfer graph compatible communication system 100 in an embodiment of the present disclosure.
As shown in fig. 1, a communication system 100 compatible with data transmission and image transmission constructed by an electronic hardware device includes: the physical link layer 102, wherein the physical link layer 102 comprises a data transmission channel and a graph transmission channel, and the graph transmission channel establishes a graph transmission link between a handheld end and a device end according to configuration information of the data transmission channel for establishing the data transmission link; a network layer 104, where the network layer 104 interacts with the physical link layer 102 with the configuration information and the data to be transmitted; a transmission layer 106, where the transmission layer 106 interacts with the network layer 104, and the transmission layer 106 is configured to transmit the data to be transmitted through the graph transmission link or the data transmission link according to a preset transmission parameter; the network layer 102 interacts with the transport layer 106, and the network layer 102 encapsulates a read interface and a write interface, where the read interface is used for reading in the data to be transmitted, and the write interface is used for writing out the data to be transmitted.
In one embodiment of the present disclosure, by setting the above physical link layer to include a data transmission channel and a map transmission channel, and setting the network layer, the transmission layer, and the application layer to interact with the physical link layer, and adjusting the communication protocols of the layers, two modes of image transmission and data transmission are fused, thereby improving the versatility and expansibility of the transmission platform.
Specifically, the data transmission link and the image transmission link are respectively the connection of a data transmission module and an image transmission module which are realized by a physical link layer on hardware, namely, a data transmission channel and a TCP/IP channel, particularly, the pairing process of the data transmission module, are compatible with various standard open source protocols such as mavlink, PX4 and the like on the protocol, the data of different communication modules are encapsulated and reversely encapsulated for interaction with an upper layer and a lower layer, and the JNI (Java native interface, which can be interpreted as a Java native interface) written based on a C language is used for being called by a network layer.
Pairing of the data transfer modules is a complex process with respect to the graph transfer modules, and may, for example, select 31 channels for data communication over the 915MHz band. The 31 channels are divided into 1 broadcast channel and 30 working channels, unpaired equipment needs to jump to the broadcast channel firstly, at the moment, the PCS end is a master station, the remote robot end is a slave station, equipment searching and equipment configuration are carried out, and after configuration is finished, both ends jump to one working channel which is previously agreed and idle for data interaction.
Compared with the data transmission module, the pairing process of the graph transmission module based on the TCP/IP protocol is simple. After the data transmission module establishes the formal connection, the user layer APP of the PCS can set the SSID (Service Set Identifier ) and key of the image transmission module and synchronize through data transmission, so that the pairing and connection of image transmission are established. The SSID technology can divide a wireless local area network into a plurality of sub-networks requiring different identity verification, each sub-network requires independent identity verification, and only users passing the identity verification can enter the corresponding sub-network to prevent unauthorized users from entering the network.
As shown in fig. 2, the data frame of the physical link layer 102 includes master-slave mode information, channel selection mode information, message type information, data information and cyclic redundancy check code information, and determines that the handheld terminal is a master device or a slave device according to the master-slave mode information, and determines that the device terminal is a slave device or a master device; determining a working channel as the data transmission channel, the image transmission channel or the Wi-Fi (Wireless-Fidelity) channel according to the channel selection model information; and determining that the data to be transmitted is heartbeat signals, application data, discovery equipment data or the configuration information according to the information type information.
The start byte of the data frame of the physical link layer 102 may be, for example, a first identification bit 1021 indicating master-slave mode information.
The second byte and the third byte of the header of the data frame of the physical link layer 102 may be, for example, the second identification bit 1022 indicating channel selection mode information.
The fourth byte through the seventh byte of the header of the data frame of the physical link layer 102 may be, for example, the third identification bit 1023 indicating the message type information.
The data frame of the physical link layer 102 may, for example, further include a fourth identification bit 1024 that indicates data.
The data frame of the physical link layer 102 may, for example, further include a fifth identification bit 1025 indicating eight higher bits of a CRC (Cyclic Redundancy Check ).
The data frame of the physical link layer 102 may, for example, further include a sixth identification bit 1026 indicating the eight lower bits of the CRC.
In one embodiment of the present disclosure, if the master-slave model information is a first identification string, the handheld terminal is a master device, and the device terminal is a slave device; and if the master-slave model information is the second identification character string, the handheld terminal is slave equipment, and the equipment terminal is master equipment.
The first identification string may be, for example, a binary "0".
The second identification string may be, for example, a binary "1".
In one embodiment of the disclosure, if the channel selection model is a third identification string, the working channel is the data transmission channel; if the channel selection model is a fourth identification character string, the working channel is the Wi-Fi channel; and if the channel selection model is a fifth identification character string, the working channel is the image transmission channel.
The third identification string may be, for example, "00" in binary.
The fourth identification string may be, for example, "01" in binary.
The fifth identification string may be, for example, "10" in binary.
In one embodiment of the disclosure, if the message type information is a seventh identification string, the data to be transmitted is the heartbeat signal; if the message type information is an eighth identification character string, the data to be transmitted is the application data; if the message type information is a ninth identification character string, the data to be transmitted is the discovery equipment data; and if the message type information is a tenth identification character string, the data to be transmitted is the configuration information.
The seventh identification string may be, for example, "0000" in binary.
The eighth identification string may be, for example, "0100" in binary.
The ninth identification string may be, for example, "0001" of binary.
The tenth identification string may be, for example, "0010" in binary.
In one embodiment of the present disclosure, the discovery device data includes a unique identification of the handset.
In one embodiment of the present disclosure, the configuration information includes a unique identification of the device side, a password, an identification of the hand-held side, an identification of the working channel, a time stamp, and password information.
As shown in fig. 3, the data frame of the network layer 104 includes service quality information, an identity of the device side, a message number, a timestamp, and encrypted pending data; and determining a transmission confirmation model of the data to be transmitted according to the service quality information.
The first two bytes of the data frame of the network layer 104 may be, for example, a first identification bit 1041 indicating Qos mode information.
The data frame of the network layer 104 may, for example, further include a second identification bit 1042 indicating a device ID.
The data frame of the network layer 104 may, for example, further comprise a third identification bit 1043 indicating a message number.
The data frame of the network layer 104 may, for example, further include a fourth identification bit 1044 indicating the eight higher order bits of the timestamp.
The data frame of the network layer 104 may, for example, further include a fifth identification bit 1045 indicating the eight higher order bits of the timestamp.
The data frame of the network layer 104 may, for example, further include a sixth identification bit 1046 that indicates data (dark text).
In one embodiment of the present disclosure, if the quality of service information is an eleventh identification character, the pending data is transmitted at most once, and successful transmission is confirmed; if the service quality information is the twelfth identification character, the data to be transmitted is transmitted at least once, and the successful transmission is confirmed when a confirmation instruction fed back by the receiving end is received; and if the service quality information is the thirteenth identification character, transmitting the data to be transmitted once, and confirming that the transmission is successful.
The eleventh identification string may be, for example, "00" in binary.
The twelfth identification string may be, for example, "01" in binary.
The thirteenth identification string may be, for example, "10" in binary.
As shown in fig. 4, the data frame of the transmission layer 106 includes whole packet indication information, packet number information, the length of the data to be transmitted and encrypted data to be transmitted; determining whether to carry out packet finishing processing on the data to be transmitted according to the packet finishing indication information; and determining whether to carry out sub-packaging processing on the data to be transmitted or not and the number of sub-packaging processing.
In one embodiment of the present disclosure, the main function of the transport layer 106 is to ensure the security and stability of the data interaction between the handheld end and the device end after the normal connection relationship is established between the two ends and the device end is jumped to the working channel, so that this part is only performed in the working channel.
For the data transport channels, the primary functions of the transport layer 106 are managed by packetization and packetization, encryption and decryption, and three Qos mechanisms, among others.
For the graphics channel, because the hardware underlying layer (tcp protocol) has been packetized, the transport layer 106 has only two functions, encryption and decryption, three Qos mechanism managers.
The system limits the effective byte of a frame of data to 200 bytes at most, so when the user data is larger than 200 bytes, the protocol is required to be subjected to packetization and packetization processing, and the packetization processing is performed when the user data is transmitted, and the user layer is not required to care about the realization of a communication framework, so that the user layer can transmit data with any length byte.
The communication framework disclosed by the disclosure uses a segmented encryption mode to encrypt data to be transmitted, can use a fixed mode to encrypt and decrypt the data no matter the length of the data, and does not need to additionally increase redundant bytes.
Among these, qos is the quality of service, and messages that are different are classified into three ways of sending at most once, at least once, and only once.
Where at most one time means that this message may or may not be sent, no acknowledgement is required depending on whether there are other types of data interactions currently.
At least once means that the current message needs to be subjected to one confirmation interaction after receiving and transmitting one flow, and the message interaction is considered to be completed only after the confirmation interaction is established, otherwise, the interaction is continued.
Wherein, only one message is sent once, namely, one message is confirmed to be completed after one receiving and transmitting interaction is completed, and the interaction confirmation is not needed.
In the embodiment of the disclosure, qos is used as an effective supplement after the message classification, so that it is determined that different types of messages can be processed in different ways, and the flexibility of the system is improved.
The data frame of the transport layer 106 may, for example, further include a first identification bit 1061 indicating whether the packet is whole.
The data frame of the transport layer 106 may, for example, further include a second identification bit 1062 indicating a packetization number.
The data frame of the transport layer 106 may, for example, further include a third identification bit 1063 indicating a data length.
The data frame of the transport layer 106 may, for example, also include a fourth identification bit 1064 that indicates data (dark text).
As shown in fig. 5, the data frame of the application layer 108 further includes an identification bit 1081 indicating data (plaintext).
The application layer 108 is used for data interaction with the user APP, only encapsulates the two interfaces of write and read, and all processing is performed by the transport layer 106 and the layers below, so that the encapsulation is beneficial to the user APP to only need the function of the user APP, and specific implementation modes do not need to be distinguished.
In one embodiment of the present disclosure, the graph pass-through is a pass-through based on TCP (transport layer protocol)/IP (Internet protocol ) protocol interactions.
In summary, the application layer 108 is the plaintext data that needs to interact with the user APP, and is implemented through two APIs, namely, write and read, where the APIs set the message level. The transport layer 106 mainly performs packetization and packetization tasks, with user data exceeding 200 bytes, packetization at the time of transmission, and packetization at the time of reception. The protocol layer 104 adds information such as device ID, message number, and time stamp, and performs Qos management. The lowest physical link layer 102 contains all the information of the current data, encapsulates the entire data of the network layer as payload, and defines which channel to use for processing.
Based on the communication framework of the present disclosure, the SDK (Software Development Kit ) is essentially a SDK, which is downward compatible with different communication modules and standard open source protocols, and only provides a simple API interface for user APP to call, so that the SDK is suitable for android (android) platforms, and is realized by means of Java language and C language mixture, thereby achieving the purposes of basic function modularization and independent underlying hardware, greatly reducing development time, and improving development efficiency.
Fig. 6 shows a flowchart of a communication method compatible with data transfer mapping in an embodiment of the disclosure. The method provided by the embodiments of the present disclosure may be performed by any electronic device having computing processing capabilities.
As shown in fig. 6, the electronic device performs a communication method compatible with data transmission mapping, including the following steps:
step S602, in a communication system compatible with data transmission and mapping according to any one of the above technical solutions, determining whether there is a device to be paired through broadcast channel scanning.
Step S604, determining an operation channel for interacting with the device according to the scanning result.
Step S606, switching to the working channel, and creating a data transmission link through the working channel.
Step S608, transmitting the data content in the data to be transmitted to the device side through the data transmission link.
In one embodiment of the present disclosure, after the physical link layer establishes a connection, it needs to interact with the upper network layer, whose functions are mainly to interact configuration information, set up three message queues, synchronize time stamps, and frequency hopping. The frequency hopping is that the handheld terminal and the equipment terminal hop according to the working channel in the configuration information, so that only two points of the handheld terminal and the equipment terminal are ensured to interact in the channel, the same-frequency interference is greatly reduced, and the communication bandwidth is enlarged.
Configuration information may include, for example, device names, device identifications, device numbers, working channels to skip, codebooks, passwords, and time stamps of a hand-held terminal (PCS) and a device terminal (device).
The device name may be, for example, a character string generated by a user setting or by default when powered on for the first time, and is entered by the interface of the previous layer for front end display when looking up the device.
For example, the device identifier is generated according to the first six bytes of UUID (Universally Unique Identifier, universal unique identifier) of the CPU after the first system is powered on, and is used to ensure the correctness of the receiving end when configuring the device.
The device number may, for example, be the last byte taking the device identification and the information for the heartbeat and data interaction is sent to the correct receiving end.
The working channel to be hopped may be determined, for example, by the handset, i.e., the currently free channel scanned.
The password (codebook) can be determined by the handheld terminal, for example, that is, the last eight bytes of the UUID are acquired as the password, and synchronized with the device terminal as the validity check of the normal data.
The device side may be set, for example, to have a password and password data for configuring the permission conditions at the time of the device.
For example, the time stamp may be based on a hand-held (PCS) that may be synchronized to perform checksum filtering of normal data.
On the basis of the steps shown in fig. 6, as shown in fig. 7, the communication method compatible with data transmission and image transmission further includes:
step S702, determining service set identification and password according to the data transmission link.
And step S704, creating a graphical link through the service set identifier and the password through the working channel.
Step S706, transmitting the image content in the data to be transmitted to the device side through the image transmission link.
In one embodiment of the present disclosure, the pairing process of the graph transmission module based on the TCP/IP protocol is simple compared to the data transmission module. After the data transmission module establishes the formal connection, the user layer APP of the PCS can set the SSID (Service Set Identifier ) and key (key) of the image transmission module and synchronize through data transmission, so that the pairing and connection of image transmission are established. The SSID technology can divide a wireless local area network into a plurality of sub-networks requiring different identity verification, each sub-network requires independent identity verification, and only users passing the identity verification can enter the corresponding sub-network to prevent unauthorized users from entering the network.
On the basis of the steps shown in fig. 6, before determining whether there is a device end to be paired by broadcast channel scanning, as shown in fig. 8, the method further includes:
step S802, the scan determines an idle working channel.
Step S804, recording the idle working channel.
Step S806, switching to the broadcast channel to scan.
On the basis of the steps shown in fig. 6, as shown in fig. 9, determining an operation channel for interacting with the device side according to the scan result includes:
step S9042, if the device to be paired is determined by scanning, switching to the working channel for interaction with the device to be paired.
In one embodiment of the present disclosure, when the handheld terminal and the device terminal perform normal data interaction, the data are classified into three types of rights of high, medium and low, respectively corresponding to three types of queues, and before each data transmission, it is checked whether the queue with high priority is data or not, and the data is transmitted sequentially from high to low.
On the basis of the steps shown in fig. 6, as shown in fig. 10, determining, according to the scan result, an operation channel for interacting with the device side further includes:
In step S1042, if the scanning determines that there is no device to be paired, a handshake signal is sent through the broadcast channel.
Step S1044, determining all device ends in the scanning range according to the feedback signal of the handshake signal.
Step S1046, determining one device end in the scanning range as a target device end.
Step S1048, determining an interaction channel with the target device.
In one embodiment of the present disclosure, when the handheld terminal and the device terminal establish a link according to the configuration information, an important operation performs time synchronization according to the time stamp, that is, by modifying the own system time, it is ensured that the handheld terminal and the device terminal operate at the same time point.
Fig. 11 shows a flowchart of a communication method compatible with data transfer mapping in an embodiment of the disclosure. The method provided by the embodiments of the present disclosure may be performed by any electronic device having computing processing capabilities.
As shown in fig. 11, the electronic device performs a communication method compatible with data transfer mapping, including the following steps:
step S1102, in the communication system compatible with data transmission and mapping according to any one of the above technical schemes, switch to a broadcast channel and wait for handshake information sent by the handheld terminal.
Step S1104, switching to a working channel according to preset configuration information, and creating a data transmission link through the working channel.
Step S1106, receiving, by the data transmission link, data content in the to-be-transmitted data sent by the handheld terminal.
In one embodiment of the present disclosure, by setting the above physical link layer to include a data transmission channel and a map transmission channel, and setting the network layer, the transmission layer, and the application layer to interact with the physical link layer, and adjusting the communication protocols of the layers, two modes of image transmission and data transmission are fused, thereby improving the versatility and expansibility of the transmission platform.
On the basis of the steps shown in fig. 11, as shown in fig. 12, the communication method compatible with data transmission and image transmission further includes:
step S1202, receiving a timestamp sent by the handheld terminal.
Step S1204, performing time synchronization according to the time stamp, and performing interaction of the data to be transmitted according to the synchronized time.
For example, the time stamp may be based on a hand-held (PCS) that may be synchronized to perform checksum filtering of normal data.
On the basis of the steps shown in fig. 6 and 11, as shown in fig. 13, the communication method compatible with data transmission and image transmission further includes:
In step S1302, it is detected whether a heartbeat signal is received within a preset period.
Step S1204, if the heartbeat signal is not detected, determining that the data transmission link is abnormal, and rescanning to determine an idle working channel.
In step S1206, if the heartbeat signal is detected to be received, it is determined that the data transmission link is normal.
On the basis of the steps shown in fig. 6 and 11, as shown in fig. 14, the communication method compatible with data transmission and image transmission further includes:
step S1402, detecting whether to actively disconnect the data transmission link.
Step S1404, if the active disconnection of the data transmission link is not detected, determining that the data transmission link is normal.
Step S1406, if it is detected that the data transmission link is actively disconnected, determining that the data transmission link is abnormal, and rescanning to determine an idle working channel.
On the basis of the steps shown in fig. 6 and 11, as shown in fig. 15, the communication method compatible with data transmission and image transmission further includes:
step S1502 determines the priority of the data to be transmitted.
Step S1504, the data to be transmitted is sequentially transmitted to the message queues according to the priorities, where the transmission time of the data to be transmitted of the message queues with high priorities is earlier than the transmission time of the data to be transmitted with low priorities.
In one embodiment of the present disclosure, when the handheld terminal and the device terminal perform normal data interaction, the data are classified into three types of rights of high, medium and low, respectively corresponding to three types of queues, and before each data transmission, it is checked whether the queue with high priority is data or not, and the data is transmitted sequentially from high to low.
Fig. 16 shows a flowchart of a communication method compatible with data transfer mapping in an embodiment of the disclosure. The method provided by the embodiments of the present disclosure may be performed by any electronic device having computing processing capabilities.
As shown in fig. 16, the electronic device performs a communication method compatible with data transfer mapping, including the steps of:
step S1602 scans the free channel coexistence table and then switches to the broadcast channel.
Step S1604, find paired devices according to the configuration information.
Step S1606, it is determined whether there is a paired device and returns, if so, step S1614 is executed, and if not, step S1608 is executed.
In step S1608, the broadcast channel sends out handshake signals to scan the device.
Step S1610, obtain all device lists.
In step S1612, the target device is selected.
Step S1614, switching to the working channel.
Step S1616, data interaction is performed.
In step S1618, the heartbeat is determined according to the set timeout.
Step S1620, if yes, step S1626 is executed, and if no, step S1616 is executed.
Step S1622, if a heartbeat is received within a predetermined number of times, step S1616 is executed if yes, and step S1624 is executed if no.
Step S1624, the passive link abnormality is thrown out, and then, step S1602 is returned.
Step S1626, the active link exception is thrown, and then step S1602 is returned.
Fig. 17 shows a flowchart of a communication method compatible with data transfer mapping in an embodiment of the disclosure. The method provided by the embodiments of the present disclosure may be performed by any electronic device having computing processing capabilities.
As shown in fig. 17, the electronic device performs a communication method compatible with data transfer mapping, including the steps of:
step S1702, switch to the broadcast channel.
Step S1704, wait for PCS handshake information.
Step S1706, determine whether an instruction for switching the working channel is received, if yes, execute step S1708, and if no, execute step S1704.
Step S1708, switching to the working channel according to the configuration information.
Step S1710, data interaction is performed.
In step S1712, the heartbeat is determined according to the timeout.
Step S1714, if a heartbeat is received within a predetermined number of times, execution proceeds to step S1710, and if not, execution proceeds to step S1716.
Step S1716, the passive link exception is thrown, and then step S1702 is returned.
Step S1718, if the link is actively disconnected, execution proceeds to step S1720, if not, execution proceeds to step S1710.
Step S1720, the active link exception is thrown, and then step S1702 is returned.
Based on the steps shown in fig. 16 and 17, the PCS and the device first perform handshake interaction on the broadcast channel, establish a communication link based on the handshake interaction determination, switch to the same idle working channel, and perform data or image interaction on the working channel.
A compatible data transfer map communication apparatus 1800 according to this embodiment of the present disclosure is described below with reference to fig. 18. The data transfer diagram compatible communication device 1800 shown in fig. 18 is merely an example, and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 18, the data transfer compatible communication apparatus 1800 is embodied in the form of a hardware module. The components of the data transfer diagram compatible communication device 1800 may include, but are not limited to: a scanning module 1802, a determining module 1804, a switching module 1806, and a communication module 1808.
The scanning module 1802 is configured to determine whether there are any device ends to be paired through broadcast channel scanning in a communication system compatible with data transmission mapping according to any one of the foregoing embodiments.
A determining module 1804 is configured to determine an working channel for interacting with the device side according to the scan result.
And the switching module 1806 is configured to switch to the working channel, and create a data transmission link through the working channel.
And the communication module 1808 is configured to send data content in the data to be transmitted to the device side through the data transmission link.
A compatible data transfer map communication apparatus 1900 according to this embodiment of the present disclosure is described below with reference to fig. 19. The data transfer map compatible communication apparatus 1900 shown in fig. 19 is merely an example, and should not impose any limitation on the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 19, the data transfer-compatible communication apparatus 1900 is embodied in the form of a hardware module. The components of the data transfer mapping compatible communications device 1900 may include, but are not limited to: a switching module 1902 and a communication module 1904.
The switching module is configured to switch to a broadcast channel and wait for handshake information sent by the handheld terminal in the communication system compatible with data transmission and mapping according to any one of the above technical schemes.
The switching module is also used for switching to a working channel according to preset configuration information and creating a data transmission link through the working channel.
And the communication module is used for receiving the data content in the data to be transmitted, which is sent by the handheld terminal, through the data transmission link.
An electronic device 2000 according to such an embodiment of the present disclosure is described below with reference to fig. 20. The electronic device 2000 illustrated in fig. 20 is merely an example, and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 20, the electronic device 2000 is embodied in the form of a general purpose computing device. Components of the electronic device 2000 may include, but are not limited to: the at least one processing unit 2010, the at least one memory unit 2020, and a bus 2030 connecting the different system components (including the memory unit 2020 and the processing unit 2010).
Wherein the storage unit stores program code that is executable by the processing unit 2010 to cause the processing unit 2010 to perform steps according to various exemplary embodiments of the present disclosure described in the above "exemplary methods" section of the present specification. For example, processing unit 2010 may perform steps defined in a data transfer compatible communication system of the present disclosure.
The storage unit 2020 may include readable media in the form of volatile storage units such as random access memory unit (RAM) 20201 and/or cache memory unit 20202, and may further include read only memory unit (ROM) 20203.
The storage unit 2020 may also include a program/utility 20204 having a set (at least one) of program modules 20205, such program modules 20205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus 2030 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, a graphics accelerator port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 2000 may also be in communication with one or more external devices 2040 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device, and/or any device (e.g., router, modem, etc.) that enables the electronic device 2000 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 2050. Moreover, the electronic device 2000 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via a network adapter, which communicates with other modules of the electronic device 2000 via a bus 2030. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with an electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RA identification systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible implementations, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
A program product for implementing the above-described method according to an embodiment of the present disclosure may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (20)

1. A data transfer graph compatible communication system, comprising:
the system comprises a physical link layer, a data transmission layer and a data transmission layer, wherein the physical link layer comprises a data transmission channel and a picture transmission channel, the picture transmission channel establishes a picture transmission link between a handheld end and a device end according to configuration information of the data transmission channel, and a data frame of the physical link layer comprises master-slave mode information, channel selection mode information, message type information, data information and cyclic redundancy check code information;
the network layer is used for interacting the configuration information and the data to be transmitted with the physical link layer, and a data frame of the network layer comprises service quality information, an identity of the equipment end, a message number, a time stamp and the encrypted data to be transmitted;
the transmission layer is interacted with the network layer and is used for transmitting the data to be transmitted through the image transmission link or the data transmission link according to preset transmission parameters, and a data frame of the transmission layer comprises whole packet indication information, sub-packet number information, the length of the data to be transmitted and encrypted data to be transmitted;
the application layer is interacted with the transmission layer, the application layer is packaged with a read interface and a write interface, the read interface is used for reading in the data to be transmitted, the write interface is used for writing out the data to be transmitted, and a data frame of the application layer further comprises an identification bit for indicating the data.
2. The data transmission and mapping compatible communication system according to claim 1, wherein,
determining that the handheld terminal is a master device or a slave device according to the master-slave mode information, and determining that the equipment terminal is a slave device or a master device;
determining a working channel as the data transmission channel, the image transmission channel or the Wi-Fi channel according to the channel selection model information;
and determining that the data to be transmitted is heartbeat signals, application data, discovery equipment data or the configuration information according to the information type information.
3. The data transmission and mapping compatible communication system according to claim 2, wherein,
if the master-slave mode information is the first identification character string, the handheld terminal is the master equipment, and the equipment terminal is the slave equipment;
and if the master-slave mode information is the second identification character string, the handheld terminal is slave equipment, and the equipment terminal is master equipment.
4. The data transmission and mapping compatible communication system according to claim 2, wherein,
if the channel selection model is a third identification character string, the working channel is the data transmission channel;
if the channel selection model is a fourth identification character string, the working channel is the Wi-Fi channel;
And if the channel selection model is a fifth identification character string, the working channel is the image transmission channel.
5. The data transmission and mapping compatible communication system according to claim 2, wherein,
if the message type information is a seventh identification character string, the data to be transmitted is the heartbeat signal;
if the message type information is an eighth identification character string, the data to be transmitted is the application data;
if the message type information is a ninth identification character string, the data to be transmitted is the discovery equipment data;
and if the message type information is a tenth identification character string, the data to be transmitted is the configuration information.
6. The data transmission and mapping compatible communication system according to claim 1, wherein,
determining a transmission confirmation model of the to-be-transmitted data according to the service quality information, wherein the method comprises the following steps:
if the service quality information is the eleventh identification character, the data to be transmitted is transmitted at most once, and the successful transmission is confirmed;
if the service quality information is the twelfth identification character, the data to be transmitted is transmitted at least once, and the successful transmission is confirmed when a confirmation instruction fed back by the receiving end is received;
And if the service quality information is the thirteenth identification character, transmitting the data to be transmitted once, and confirming that the transmission is successful.
7. The data transmission and mapping compatible communication system according to claim 6, wherein,
determining whether to carry out packet finishing processing on the data to be transmitted according to the packet finishing indication information;
and determining whether to carry out sub-packaging processing on the data to be transmitted or not and the number of sub-packaging processing.
8. A data transfer graph-compatible communication method, comprising:
in a communication system compatible with data transmission mapping according to any one of claims 1-7, determining whether there are equipment ends to be paired by broadcast channel scanning;
determining an interactive working channel with the equipment end according to the scanning result;
switching to the working channel, and creating a data transmission link through the working channel;
and transmitting the data content in the data to be transmitted to the equipment end through the data transmission link.
9. The data transmission and mapping compatible communication method according to claim 8, further comprising:
determining a service set identifier and a password according to the data transmission link;
creating a graph transmission link through the service set identifier and the password and the working channel;
And sending the image content in the data to be transmitted to the equipment end through the image transmission link.
10. The communication method compatible with data transmission and mapping according to claim 9, further comprising, before determining whether there are any device ends to be paired by broadcast channel scanning:
scanning to determine an idle working channel;
recording the idle working channel;
and switching to the broadcast channel to scan.
11. The method for communicating with a compatible data transmission map according to claim 9, wherein determining an operation channel for interacting with the device side according to the scan result comprises:
if the equipment ends to be paired are determined by scanning, switching to an interactive working channel with the equipment ends to be paired;
if the equipment ends which are not to be paired are determined by scanning, sending handshake signals through the broadcast channel;
determining all equipment ends in a scanning range through feedback signals of the handshake signals;
determining one equipment end in the scanning range as a target equipment end;
and determining a working channel for interaction with the target equipment.
12. A data transfer graph-compatible communication method, comprising:
Switching to a broadcast channel and waiting for handshake information sent by a handheld in a communication system compatible with data transfer mapping according to any of claims 1-7;
switching to a working channel according to preset configuration information, and creating a data transmission link through the working channel;
and receiving the data content in the data to be transmitted sent by the handheld terminal through the data transmission link.
13. The data transmission and mapping compatible communication method according to claim 12, further comprising:
receiving a time stamp sent by the handheld terminal;
and carrying out time synchronization according to the time stamp, and carrying out interaction of the data to be transmitted according to the synchronized time.
14. The method for communicating compatible data transfer mapping according to any of claims 8-11, further comprising:
detecting whether a heartbeat signal is received within a preset period of time;
if the heartbeat signal is detected to be received, determining that the data transmission link is normal;
if the heartbeat signal is not detected to be received, determining that the data transmission link is abnormal, and rescanning to determine an idle working channel.
15. The method for communicating compatible data transfer mapping according to any of claims 8-11, further comprising:
Detecting whether to actively disconnect the data transmission link;
if the data transmission link is not detected to be actively disconnected, determining that the data transmission link is normal;
if the data transmission link is detected to be actively disconnected, determining that the data transmission link is abnormal, and rescanning to determine an idle working channel.
16. The method for communicating compatible data transfer mapping according to any of claims 8-11, further comprising:
determining the priority of the data to be transmitted;
and sequentially sending the data to be transmitted to a message queue according to the priority, wherein the sending time of the data to be transmitted of the message queue with high priority is earlier than the sending time of the data to be transmitted with low priority.
17. A data transfer graph compatible communication device, comprising:
a scanning module, configured to determine, by scanning a broadcast channel, whether there is a device end to be paired in a communication system compatible with data transmission mapping according to any one of claims 1 to 7;
the determining module is used for determining a working channel interacted with the equipment end according to the scanning result;
the switching module is used for switching to the working channel and creating a data transmission link through the working channel;
And the communication module is used for transmitting the data content in the data to be transmitted to the equipment end through the data transmission link.
18. A data transfer graph compatible communication device, comprising:
a switching module, configured to switch to a broadcast channel and wait for handshake information sent by a handheld terminal in a communication system compatible with data transmission mapping according to any one of claims 1 to 7;
the switching module is also used for switching to a working channel according to preset configuration information and creating a data transmission link through the working channel;
and the communication module is used for receiving the data content in the data to be transmitted, which is sent by the handheld terminal, through the data transmission link.
19. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the compatible data transfer mapping communication method of any of claims 12-16 via execution of the executable instructions.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that,
the computer program, when executed by a processor, implements the data transfer mapping compatible communication method of any of claims 12-16.
CN202110041602.1A 2021-01-13 2021-01-13 Communication system, method, device, equipment and storage medium compatible with data transmission image transmission Active CN112887372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110041602.1A CN112887372B (en) 2021-01-13 2021-01-13 Communication system, method, device, equipment and storage medium compatible with data transmission image transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110041602.1A CN112887372B (en) 2021-01-13 2021-01-13 Communication system, method, device, equipment and storage medium compatible with data transmission image transmission

Publications (2)

Publication Number Publication Date
CN112887372A CN112887372A (en) 2021-06-01
CN112887372B true CN112887372B (en) 2023-05-02

Family

ID=76045290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110041602.1A Active CN112887372B (en) 2021-01-13 2021-01-13 Communication system, method, device, equipment and storage medium compatible with data transmission image transmission

Country Status (1)

Country Link
CN (1) CN112887372B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685467A (en) * 2012-04-27 2012-09-19 中国科学院空间科学与应用研究中心 Wireless image transmission communication system for unmanned aerial vehicle and wireless image transmission communication method
CN103823451A (en) * 2014-03-07 2014-05-28 国家电网公司 System and method for centralized dispatching of electric line patrol by unmanned aerial vehicle based on GIS
CN106454209A (en) * 2015-08-06 2017-02-22 航天图景(北京)科技有限公司 Unmanned aerial vehicle emergency quick action data link system and unmanned aerial vehicle emergency quick action monitoring method based on spatial-temporal information fusion technology
CN107529033A (en) * 2016-06-22 2017-12-29 北京臻迪机器人有限公司 A kind of figure passes the communication system and method that number passes link altogether
WO2018127452A1 (en) * 2017-01-05 2018-07-12 Novelty Aps Surveillance method, drone, mobile device, surveillance system, data carrier
CN108513331A (en) * 2018-03-20 2018-09-07 北京大学 A kind of underwater network-building method towards Shui Zhong robots
CN109345804A (en) * 2018-10-11 2019-02-15 天津大学 A kind of unmanned aerial vehicle (UAV) control signaling and data transmission method based on mobile network
CN110007690A (en) * 2019-05-08 2019-07-12 北京天龙智控科技有限公司 A kind of unmanned plane cruising inspection system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10948304B2 (en) * 2018-08-30 2021-03-16 Here Global B.V. Method and apparatus for creating underground or interior drone routes

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685467A (en) * 2012-04-27 2012-09-19 中国科学院空间科学与应用研究中心 Wireless image transmission communication system for unmanned aerial vehicle and wireless image transmission communication method
CN103823451A (en) * 2014-03-07 2014-05-28 国家电网公司 System and method for centralized dispatching of electric line patrol by unmanned aerial vehicle based on GIS
CN106454209A (en) * 2015-08-06 2017-02-22 航天图景(北京)科技有限公司 Unmanned aerial vehicle emergency quick action data link system and unmanned aerial vehicle emergency quick action monitoring method based on spatial-temporal information fusion technology
CN107529033A (en) * 2016-06-22 2017-12-29 北京臻迪机器人有限公司 A kind of figure passes the communication system and method that number passes link altogether
WO2018127452A1 (en) * 2017-01-05 2018-07-12 Novelty Aps Surveillance method, drone, mobile device, surveillance system, data carrier
CN108513331A (en) * 2018-03-20 2018-09-07 北京大学 A kind of underwater network-building method towards Shui Zhong robots
CN109345804A (en) * 2018-10-11 2019-02-15 天津大学 A kind of unmanned aerial vehicle (UAV) control signaling and data transmission method based on mobile network
CN110007690A (en) * 2019-05-08 2019-07-12 北京天龙智控科技有限公司 A kind of unmanned plane cruising inspection system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种无人机网络跨层协议架构分析;张继永;《数字技术与应用》;20200925(第09期);第31-33页 *

Also Published As

Publication number Publication date
CN112887372A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
Khan et al. Emerging use of UAV’s: secure communication protocol issues and challenges
EP1500244B1 (en) Wireless network computing
US9503957B2 (en) Low cost mesh network capability
US7433913B2 (en) Point-to-point data communication implemented with multipoint network data communication components
CN111818669B (en) Mobile terminal and data transmission method thereof
EP2941712B1 (en) Virtual desktop access using wireless devices
KR20170124187A (en) Iot platform having a funtion automatically compatible with the communication protocol
CN112887372B (en) Communication system, method, device, equipment and storage medium compatible with data transmission image transmission
RU2297101C2 (en) Data processing in wireless network
US10666492B1 (en) Method and apparatus of providing emergency communication services
CN115543351B (en) Application program installation method and electronic equipment
CN111131425B (en) Distributed system and communication method for distributed system
CN117176633A (en) Bus cross-device communication method, device, equipment and storage medium
KR20230003121A (en) Data communication method and related device
CN116582888A (en) Distributed communication method, system, device, equipment and storage medium
CN116939012A (en) Data processing method and device and related equipment
US20180239575A1 (en) Mobile application function sharing through near field communication
CN117938933A (en) Instant messaging method and communication terminal in mixed environment
CN116634033A (en) Data transmission method, data transmission device, equipment and storage medium
CN117376853A (en) Interaction method and interaction system based on short message
CN117615042A (en) Data communication method, device, computer equipment and storage medium
CN113891310A (en) Cooperative communication method, user equipment and system
JP2009089398A (en) Wireless network computing
JP2018029226A (en) Communication system and communication method
AU2002308326A1 (en) Wireless network computing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Information Technology Co.,Ltd.

Address before: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Shuke Haiyi Information Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant