Symmetric link data transmission method and device, electronic equipment and readable storage medium
By matching target communication links with the same bandwidth in a wireless ad hoc network to transmit data, the problem of low data transmission accuracy in wireless ad hoc networks is solved, and higher data transmission accuracy is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2026-04-07
AI Technical Summary
In wireless ad hoc networks, there are multiple communication links between communication devices and upstream and downstream devices, resulting in low data transmission accuracy and easy loss of communication data.
By acquiring the data to be transmitted from the first communication link and matching it with a target communication link of the same bandwidth, the data is ensured to be transmitted to the second communication device through the target communication link.
It improves the accuracy of data transmission during link communication and avoids data loss due to link bandwidth mismatch.
Smart Images

Figure CN115942391B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication technology, and in particular to a symmetric link data transmission method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] With the continuous development of wireless communication technology, wireless ad hoc networks have been widely used in many fields due to their characteristics such as maintenance-free operation, strong self-healing, and decentralization. For any communication device in a wireless ad hoc network, it can act as both a data transmitter and a data receiver. Currently, when a communication device transmits communication data to an upstream or downstream device, it usually selects a single communication link for transmission. However, since there are multiple communication links between the communication device and its upstream or downstream devices, it is easy for the communication device to receive the communication data transmitted by its upstream device, but data loss can occur when the data is transmitted to the downstream device through a certain communication link between the two devices. Therefore, the data transmission accuracy in the current link communication process is low. Summary of the Invention
[0003] The main objective of this application is to provide a symmetrical link data transmission method, apparatus, electronic device, and readable storage medium, aiming to solve the technical problem of poor data transmission accuracy in the link communication process in the prior art.
[0004] To achieve the above objectives, this application provides a symmetric link data transmission method applied to a target communication device in a wireless ad hoc network. The symmetric link data transmission method includes:
[0005] Acquire the data to be transmitted by the first communication device through the first communication link, wherein the first communication link is the communication link between the target communication device and the first communication device;
[0006] The target communication link corresponding to the first communication link is matched to the data to be transmitted, wherein the link bandwidth between the target communication link and the first communication link is the same;
[0007] The data to be transmitted is transmitted to the second communication device through the target communication link.
[0008] Optionally, the step of matching the data to be transmitted with the target communication link corresponding to the first communication link includes:
[0009] Based on the networking information of the wireless ad hoc network, determine the second communication device corresponding to the target communication device;
[0010] Determine the second communication link between the target communication device and the second communication device;
[0011] The target communication link is obtained by matching the first link identifier of the first communication link with the second link identifier of the second communication link.
[0012] Optionally, the step of determining the second communication device corresponding to the target communication device based on the networking information of the wireless ad hoc network includes:
[0013] Based on the networking information of the wireless ad hoc network, a candidate communication device is queried to jointly transmit the data to be transmitted with the target communication device, wherein the candidate communication device includes a first candidate communication device and a second candidate communication device;
[0014] If the candidate communication device is the first candidate communication device, then the first candidate communication device shall be used as the second communication device;
[0015] If the candidate communication device is the second candidate communication device, then the second communication device is determined according to the correspondence between the data to be transmitted and the second candidate communication device.
[0016] Optionally, the step of determining the second communication link between the target communication device and the second communication device includes:
[0017] The initial communication link between the target communication device and the second communication device shall be used as the second communication link; or,
[0018] The initial communication link between the target communication device and the second communication device, and the backup communication link corresponding to the target communication device, are used together as the second communication link.
[0019] Optionally, before the step of acquiring the data to be transmitted by the first communication device through the first communication link, the symmetric link data transmission method further includes:
[0020] If a backup networking request for the wireless ad hoc network is received, at least one networking communication device of the target communication device is obtained.
[0021] A backup communication link is established between the target communication device and each of the network communication devices.
[0022] Optionally, the backup communication link includes a backup wireless link and a backup wired link, and the step of establishing backup communication links between the target communication device and each of the network communication devices includes:
[0023] Establish the backup wireless link for the target communication device and each of the network communication devices respectively; and / or
[0024] The backup wired links are established for the target communication device and each of the network communication devices.
[0025] Optionally, the target communication link includes a target wireless link and a target wired link, and the step of transmitting the data to be transmitted to the second communication device through the target communication link includes:
[0026] The data to be transmitted is transmitted to the second communication device via the target wireless link; or...
[0027] The data to be transmitted is transmitted to the second communication device via the target wired link.
[0028] To achieve the above objectives, this application also provides a symmetric link data transmission device, applied to a target communication device in a wireless ad hoc network, the symmetric link data transmission device comprising:
[0029] The acquisition module is used to acquire the data to be transmitted by the first communication device through the first communication link, wherein the first communication link is the communication link between the target communication device and the first communication device;
[0030] A matching module is used to match the data to be transmitted with a target communication link corresponding to the first communication link, wherein the target communication link and the first communication link have the same link bandwidth;
[0031] A transmission module is used to transmit the data to be transmitted to a second communication device through the target communication link.
[0032] Optionally, the matching module is further configured to:
[0033] Based on the networking information of the wireless ad hoc network, determine the second communication device corresponding to the target communication device;
[0034] Determine the second communication link between the target communication device and the second communication device;
[0035] The target communication link is obtained by matching the first link identifier of the first communication link with the second link identifier of the second communication link.
[0036] Optionally, the matching module is further configured to:
[0037] Based on the networking information of the wireless ad hoc network, a candidate communication device is queried to jointly transmit the data to be transmitted with the target communication device, wherein the candidate communication device includes a first candidate communication device and a second candidate communication device;
[0038] If the candidate communication device is the first candidate communication device, then the first candidate communication device shall be used as the second communication device;
[0039] If the candidate communication device is the second candidate communication device, then the second communication device is determined according to the correspondence between the data to be transmitted and the second candidate communication device.
[0040] Optionally, the matching module is further configured to:
[0041] The initial communication link between the target communication device and the second communication device shall be used as the second communication link; or,
[0042] The initial communication link between the target communication device and the second communication device, and the backup communication link corresponding to the target communication device, are used together as the second communication link.
[0043] Optionally, the symmetric link data transmission device is further configured to:
[0044] If a backup networking request for the wireless ad hoc network is received, at least one networking communication device of the target communication device is obtained.
[0045] A backup communication link is established between the target communication device and each of the network communication devices.
[0046] Optionally, the backup communication link includes a backup wireless link and a backup wired link, and the symmetrical link data transmission device is further used for:
[0047] Establish the backup wireless link for the target communication device and each of the network communication devices respectively; and / or
[0048] The backup wired links are established for the target communication device and each of the network communication devices.
[0049] Optionally, the target communication link includes a target wireless link and a target wired link, and the transmission module is further configured to:
[0050] The data to be transmitted is transmitted to the second communication device via the target wireless link; or...
[0051] The data to be transmitted is transmitted to the second communication device via the target wired link.
[0052] This application also provides an electronic device, the electronic device comprising: a memory, a processor, and a program of the symmetric link data transmission method stored in the memory and executable on the processor, wherein when the program of the symmetric link data transmission method is executed by the processor, it can implement the steps of the symmetric link data transmission method as described above.
[0053] This application also provides a computer-readable storage medium storing a program for implementing a symmetric link data transmission method, wherein when the program for the symmetric link data transmission method is executed by a processor, it implements the steps of the symmetric link data transmission method as described above.
[0054] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the symmetric link data transmission method described above.
[0055] This application provides a symmetric link data transmission method, apparatus, electronic device, and readable storage medium, applied to a target communication device in a wireless ad hoc network. Specifically, it acquires data to be transmitted from a first communication device via a first communication link, wherein the first communication link is a communication link between the target communication device and the first communication device; matches the data to be transmitted to a target communication link corresponding to the first communication link, wherein the target communication link and the first communication link have the same link bandwidth; and transmits the data to be transmitted to a second communication device through the target communication link. Because the target communication link and the first communication link have the same link bandwidth, once the target communication device acquires the data to be transmitted from the first communication device via the first communication link, it can achieve the purpose of transmitting the data to be transmitted to the second communication link via the target communication link. That is, it achieves the purpose of transmitting communication data from an upstream device to a downstream device of the communication device through communication links with the same link bandwidth, rather than arbitrarily selecting a communication link to transmit communication data from the upstream device to the downstream device of the communication device. Therefore, it overcomes the technical defect that, due to the existence of multiple communication links between communication devices and their upstream and downstream devices, data loss can easily occur when the communication device receives communication data from its upstream device but transmits it to the downstream device through a communication link. Thus, it improves the accuracy of data transmission during link communication. Attached Figure Description
[0056] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0057] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0058] Figure 1 This is a schematic diagram of multi-link communication for the symmetric link data transmission method provided in Embodiment 1 of this application;
[0059] Figure 2 This is a schematic diagram of communication data transmission in the symmetric link data transmission method provided in Embodiment 1 of this application.
[0060] Figure 3 A flowchart illustrating the symmetric link data transmission method provided in Embodiment 1 of this application;
[0061] Figure 4 A network diagram illustrating the wireless ad hoc network of the symmetric link data transmission method provided in Embodiment 1 of this application;
[0062] Figure 5 This is a schematic diagram of a symmetrical multi-link wireless ad hoc network for the symmetrical link data transmission method provided in Embodiment 1 of this application.
[0063] Figure 6 A schematic diagram of the symmetrical multi-link wireless ad hoc network topology before and after the change of the symmetrical link data transmission method provided in Embodiment 1 of this application;
[0064] Figure 7 A flowchart illustrating the symmetric link data transmission method provided in Embodiment 2 of this application;
[0065] Figure 8 This is a schematic diagram of the symmetric link data transmission device provided in Embodiment 3 of this application;
[0066] Figure 9 This is a schematic diagram of the structure of the electronic device provided in Embodiment 4 of this application.
[0067] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0068] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0069] Example 1
[0070] First, it should be understood that in current wireless ad hoc network solutions, communication links between different communication devices typically transmit data via wired connections or wirelessly via Wi-Fi 2.4G or Wi-Fi 5G / 6G. Simultaneous transmission of data via two communication links is not possible. Against this backdrop, other patent applications filed on the same day as this application have detailed multi-link communication networking methods, specifically utilizing technologies such as VLAN aggregation, Super-VLAN, and Sub-VLAN to avoid technical defects such as communication loops or communication disruptions in multi-link communication, thereby improving the flexibility between different communication devices in the wireless ad hoc network. For example, refer to... Figure 1 , Figure 1 To illustrate multi-link communication, a lower-level slave device is simultaneously connected to both the 2.4G and 5G networks of its upper-level device. If the lower-level slave device maintains a wired connection and its bandwidth meets requirements, it can either disconnect the WiFi connection or continue maintaining the wired connection. Currently, in multi-link communication, lower-level slave devices typically transmit communication data through one or more communication links with their directly connected upper-level devices and directly connected downstream devices. That is, during data transmission, there are usually multiple options for the data transmission links. For example, refer to... Figure 2 , Figure 2 To illustrate the transmission of communication data, communication device A is the upstream device of communication device B, and communication device C is the downstream device of communication device B. Communication devices A and B, as well as B and C, are connected via 2.4GHz and 5GHz communication links. Assuming communication device A needs to transmit communication data to communication device C via communication device B, and communication device B obtains the communication data through the 2.4GHz communication link, this data may be transmitted to communication device C via the 5GHz communication link. However, due to the different bandwidths of the 2.4GHz and 5GHz communication links, data loss is likely during transmission, resulting in incomplete received data. Therefore, a method to improve the accuracy of data transmission during link communication is urgently needed.
[0071] This application provides a symmetric link data transmission method applied to a target communication device in a wireless ad hoc network. In the first embodiment of the symmetric link data transmission method of this application, refer to... Figure 3 The symmetric link data transmission method includes:
[0072] Step S10: Obtain the data to be transmitted by the first communication device through the first communication link, wherein the first communication link is the communication link between the target communication device and the first communication device;
[0073] Step S20: Match the data to be transmitted with a target communication link corresponding to the first communication link, wherein the target communication link and the first communication link have the same bandwidth.
[0074] Step S30: Transmit the data to be transmitted to the second communication device through the target communication link.
[0075] In this embodiment, it should be noted that the communication link is used to characterize the physical channel between communication devices in a wireless ad hoc network. Specifically, it can be a one-way communication link or a two-way communication link. After the wireless ad hoc network is successfully established, there are communication links between the communication devices in the wireless ad hoc network to realize the transmission of communication data. The wireless ad hoc network manages all the communication devices in the entire network through a master communication device, which can be one device. All other communication devices in the wireless ad hoc network besides the master communication device are slave communication devices. That is, slave communication devices are used to characterize the communication devices managed by the master communication device, which can be one or more devices. In a specific implementation, the master communication device can manage multiple slave communication devices. Slave communication devices can be communication devices directly connected to the master communication device, or they can be communication devices indirectly connected to the master communication device through connecting slave communication devices, thereby forming a multi-level network. Therefore, the symmetrical link data transmission method can be applied to the target communication device of the wireless ad hoc network. That is, the target communication device is used to characterize the intermediate communication device of the wireless ad hoc network, which can be a communication device with an upper-level device and a lower-level device.
[0076] Additionally, it should be noted that after the wireless ad hoc network is successfully established, the communication device can act as a data transmitter to send communication data to other communication devices in the wireless ad hoc network, or as a data receiver to receive communication data sent by other communication devices in the wireless ad hoc network. It can also act as an intermediate transmission node to achieve communication data transmission. The first communication device represents the data transmitter of the data to be transmitted, specifically it can be the uplink or downlink communication device of the target communication device, etc. The second communication device represents the data receiver of the data to be transmitted, specifically it can be the downlink or uplink communication device of the target communication device, for example, referring to... Figure 4 , Figure 4 To illustrate the network topology of a wireless ad hoc network, where the wireless ad hoc network is a two-hop ad hoc network, assuming that communication device 1 transmits communication data to communication device 6, and communication device 3 is the target communication device, then the uplink communication device (communication device 1) of communication device 3 is the first communication device, and the downlink communication device (communication device 6) of communication device 3 is the second communication device.
[0077] Additionally, it should be noted that the first communication link is the communication link between the target communication device and the first communication device. Specifically, the first communication link includes wireless communication links and wired communication links at different communication frequency bands. The communication frequency bands can specifically be 2.4GHz, 5GHz, and 6GHz, etc. During the networking process of the wireless ad hoc network, one or more communication links will be established between the communication devices in the wireless ad hoc network. A configuration synchronization process and protocol specifications based on the wireless ad hoc network protocol ensure communication data synchronization. After the network is completed, the master communication device of the wireless ad hoc network synchronizes configuration information with the slave communication devices. The configuration information can include the username and password of the wireless ad hoc network, the selection of the communication channel, network stability maintenance parameters, and backhaul link information for different communication frequency bands. The backhaul link information specifically includes SSID (Service Set Identifier), the password for the backhaul link, and the encryption method, etc.
[0078] Additionally, it should be noted that after the wireless ad hoc network is successfully established, the target communication device can act as a communication medium for data transmission between the first and second communication devices, enabling data interaction between them. For example, after the first communication device transmits the required communication data back to the target communication device in one or more stages, the target communication device will then send the communication data to the second communication device through the target communication link. (Refer to...) Figure 5 , Figure 5To illustrate the symmetrical multi-link diagram of a wireless ad hoc network, communication device D is the first communication device, communication device E is the target communication device, and communication device F is the second communication device. Wireless communication link a, wireless communication link b, and wired communication link c exist between communication devices E and D, and between E and F. Wireless communication link a and wireless communication link b use different frequency bands. Wireless communication link a is configured as sub-VLAN 2.1 (Virtual Local Area Network 2.1) by the main communication device of the wireless ad hoc network. Wireless communication link b is configured as sub-VLAN 2.2 by the main communication device of the wireless ad hoc network. Wired communication link c is configured as sub-VLAN 2.3 by the main communication device of the wireless ad hoc network. Links within the same virtual local area network have the same bandwidth; that is, the sub-VLAN 2.1 bandwidth between communication devices D and E, and between communication devices E and F, are the same.
[0079] As an example, steps S10 to S30 include: periodically receiving data to be transmitted from a first communication device via a first communication link, wherein the data to be transmitted is communication data waiting to be transmitted to a second communication device; matching the data to be transmitted with a target communication link having the same link bandwidth as the first communication link; and transmitting the data to be transmitted to the second communication device via the target communication link.
[0080] The step of matching the data to be transmitted with the target communication link corresponding to the first communication link includes:
[0081] Step A10: Based on the networking information of the wireless ad hoc network, determine the second communication device corresponding to the target communication device;
[0082] Step A20: Determine the second communication link between the target communication device and the second communication device;
[0083] Step A30: Match the first link identifier of the first communication link with the second link identifier of the second communication link to obtain the target communication link.
[0084] In this embodiment, it should be noted that, due to the complex topology of the wireless ad hoc network and the existence of multiple communication links between communication devices, in order to ensure the accuracy and efficiency of data transmission, targeted matching of the target communication link can be achieved based on the existing information of the wireless ad hoc network.
[0085] Additionally, it should be noted that the network information is used to characterize the network configuration between the various communication devices in the wireless ad hoc network, specifically it can be a periodically broadcast network information message. The network information allows for the lookup of the second communication device corresponding to the target communication device, and thus the communication link (second communication link) between the second communication device and the target communication device can be obtained. Finally, by matching the consistency of the first and second communication links, the target communication link for transmitting the data to be transmitted can be obtained. The first link identifier and the second link identifier are used to characterize the link identifiers of different communication links. The link identifier is used to distinguish and identify the communication links between communication devices in the wireless ad hoc network, specifically it can be a local area network name or local area network address, etc.
[0086] As an example, steps A10 to A30 include: periodically receiving network information of the wireless ad hoc network, parsing the network information to obtain a second communication device corresponding to the target communication device, wherein the second communication device is specifically one or more; taking at least one initial communication link between the target communication device and the second communication device as each second communication link, wherein the initial communication link is used to characterize the communication link between the target communication device and the second communication device after the wireless ad hoc network is established and stabilized; comparing the first link identifier of the first communication link with the second link identifier of each second communication link one by one, and taking the second communication link corresponding to the second link identifier that is the same as the first link identifier as the target communication link.
[0087] The step of determining the second communication link between the target communication device and the second communication device includes:
[0088] Step B10: The initial communication link between the target communication device and the second communication device is used as the second communication link; or,
[0089] Step B20: The initial communication link between the target communication device and the second communication device and the backup communication link corresponding to the target communication device are used together as the second communication link.
[0090] In this embodiment, it should be noted that the topology of the wireless ad hoc network is dynamically changing during symmetrical multi-link communication. To ensure that each second communication link between the communication device and the second communication device can still match a target communication link with the same link bandwidth as the first communication link after the dynamic change, both the initial communication link and the candidate communication link can be used as second communication links to increase the matching quantity. The backup communication link is used to characterize the communication link for transmitting data after the topology of the wireless ad hoc network changes. For example, refer to... Figure 6 , Figure 6This diagram illustrates a symmetrical multi-link structure before and after a change in the topology of a wireless ad hoc network. In this diagram, the slave communication device 12 is the target communication device, the master communication device 11 is the superior device of the slave communication device 12, and the slave communication devices 13 and 14 are the subordinate devices of the slave communication device 12. Communication links d, e, f, g, h, and i are the initial communication links, and communication links j, k, and l are the backup communication links.
[0091] As an example, steps B10 to B20 include: using the initial communication link between the target communication device and the second communication device as the second communication link; or,
[0092] Obtain alternative communication links between the target communication device and the first communication device under different networking modes of the target communication device and the second communication device, and use the initial communication link between the target communication device and the second communication device and the alternative communication link together as the second communication link.
[0093] Prior to the step of acquiring the data to be transmitted transmitted by the first communication device through the first communication link, the symmetric link data transmission method further includes:
[0094] Step C10: If a backup networking request for the wireless ad hoc network is received, then at least one networking communication device of the target communication device is obtained.
[0095] Step C20: Establish backup communication links between the target communication device and each of the network communication devices.
[0096] In this embodiment, it should be noted that the primary communication device of the wireless ad hoc network initiates a backup network request, wherein the network communication device is used to characterize the communication device that forms a backup network with the target communication device. To address the same bandwidth data transmission requirements of the wireless ad hoc network under different topologies, backup communication links can be specifically established for the target communication device and the network communication device.
[0097] As an example, steps C10 to C20 include: after the wireless ad hoc network is established and stabilized, if a backup network request is received from the main communication device, then at least one network communication device of the target communication device is obtained; and backup communication links are established between the target communication device and each of the network communication devices.
[0098] The backup communication links include backup wireless links and backup wired links. The step of establishing backup communication links between the target communication device and each of the network communication devices includes:
[0099] Step D10: Establish the backup wireless link for the target communication device and each of the network communication devices; and / or
[0100] Step D20: Establish the backup wired links for the target communication device and each of the network communication devices.
[0101] In this embodiment, it should be noted that the backup communication link includes a backup wireless link and a backup wired link. In order to ensure normal transmission of multiple links after the topology of the wireless ad hoc network changes, a wired communication link and a wireless communication link of different communication frequency bands can be established when establishing the backup communication link.
[0102] As an example, steps D10 to D20 include: establishing 2.4GHz backup communication links for the target communication device and each of the network communication devices, and establishing 5GHz backup communication links for the target communication device and each of the network communication devices; and / or
[0103] The backup wired links are established for the target communication device and each of the network communication devices.
[0104] The target communication link includes a target wireless link and a target wired link, and the step of transmitting the data to be transmitted to the second communication device through the target communication link includes:
[0105] Step E10: Transmit the data to be transmitted to the second communication device through the target wireless link; or,
[0106] Step E20: Transmit the data to be transmitted to the second communication device through the target wired link.
[0107] In this embodiment, it should be noted that when the target communication device transmits data to the second communication device, a target wireless link (target wireless communication link) or a target wired link (target wired communication link) can be used for targeted transmission according to the actual data transmission requirements. The target wireless link can be a 2.4GHz band communication link or a 5GHz band communication link, etc.
[0108] As an example, steps E10 to E20 include: transmitting the data to be transmitted to the second communication device via a 2.4 GHz band communication link; or,
[0109] The data to be transmitted is transmitted to the second communication device via the target wired link.
[0110] This application provides a symmetric link data transmission method applied to a target communication device in a wireless ad hoc network. Specifically, it involves acquiring data to be transmitted from a first communication device via a first communication link, where the first communication link is the communication link between the target communication device and the first communication device; matching the data to be transmitted to a target communication link corresponding to the first communication link, where the target communication link and the first communication link have the same bandwidth; and transmitting the data to be transmitted to a second communication device via the target communication link. Because the target communication link and the first communication link have the same bandwidth, once the target communication device acquires the data to be transmitted from the first communication device via the first communication link, it can achieve the purpose of transmitting the data to be transmitted via the target communication link to the second communication link. In other words, it achieves the purpose of transmitting communication data from the upper-level device of the communication device to the lower-level device of the communication device via communication links with the same bandwidth, instead of arbitrarily selecting a communication link to transmit communication data from the upper-level device to the lower-level device of the communication device. Therefore, it overcomes the technical defect that, due to the existence of multiple communication links between communication devices and their upstream and downstream devices, data loss can easily occur when the communication device receives communication data from its upstream device but transmits it to the downstream device through a communication link. Thus, it improves the accuracy of data transmission during link communication.
[0111] Example 2
[0112] Furthermore, referring to Figure 7 In another embodiment of this application, content that is the same as or similar to that in Embodiment 1 described above can be referred to the above description and will not be repeated hereafter. Based on this, the step of determining the second communication device corresponding to the target communication device according to the networking information of the wireless ad hoc network includes:
[0113] Step F10: Based on the networking information of the wireless ad hoc network, query the candidate communication devices that jointly transmit the data to be transmitted with the target communication device, wherein the candidate communication devices include a first candidate communication device and a second candidate communication device;
[0114] Step F20: If the candidate communication device is the first candidate communication device, then the first candidate communication device is used as the second communication device;
[0115] Step F30: If the candidate communication device is the second candidate communication device, then the second communication device is determined according to the correspondence between the data to be transmitted and the second candidate communication device.
[0116] In this embodiment, it should be noted that the candidate communication device is used to characterize a communication device that has an initial communication link with the target communication device and is waiting to receive data to be transmitted. That is, a communication device that is directly connected to the target communication device under the current stable wireless ad hoc network and can transmit data through the communication link to receive data to be transmitted. Since there are one or more candidate communication devices, and the second communication device is a determined device for receiving data to be transmitted, when there are multiple candidate communication devices for the target communication device under the wireless ad hoc network, the second communication device is determined from the multiple candidate communication devices according to the data identifier carried by the data to be transmitted. The data identifier can specifically be the data receiving LAN address or the data receiving LAN name, etc.
[0117] As an example, steps F10 to F30 include: using the networking information of the wireless ad hoc network as an index, querying candidate communication devices that jointly transmit the data to be transmitted with the target communication device, wherein the candidate communication devices include a first candidate communication device and a second candidate communication device, the first candidate communication device is used to represent one candidate communication device, and the second candidate communication device is used to represent multiple candidate communication devices; if the candidate communication device is one candidate communication device, then the candidate communication device is used as the second communication device; if the candidate communication device is multiple candidate communication devices, then the candidate communication device that matches the data identifier carried by the data to be transmitted is used as the second communication device.
[0118] This application provides a method for determining a second communication device. Specifically, based on the networking information of the wireless ad hoc network, candidate communication devices that jointly transmit the data to be transmitted with the target communication device are queried. These candidate communication devices include a first candidate communication device and a second candidate communication device. If the candidate communication device is the first candidate communication device, it is used as the second communication device. If the candidate communication device is the second candidate communication device, it is determined based on the correspondence between the data to be transmitted and the second candidate communication device. Compared to directly using the downstream device of the target communication device as the second communication device and then transmitting the data to be transmitted to it, this application selectively filters out the second communication device from the candidate communication devices to receive the data to be transmitted. Then, the data to be transmitted is transmitted to the second communication device via the target communication link between the second communication device and the target communication device. This achieves the goal of accurately transmitting the data to the second communication device, thus avoiding data loss when transmitting the data to the downstream device of the communication device via the target communication link. Therefore, it lays the foundation for improving the accuracy of data transmission during the link communication process.
[0119] Example 3
[0120] This application also provides a symmetric link data transmission device, applied to a target communication device in a wireless ad hoc network, as shown in the following embodiments. Figure 8 The symmetric link data transmission device includes:
[0121] The acquisition module 101 is used to acquire the data to be transmitted by the first communication device through the first communication link, wherein the first communication link is the communication link between the target communication device and the first communication device;
[0122] The matching module 102 is used to match the data to be transmitted with a target communication link corresponding to the first communication link, wherein the target communication link and the first communication link have the same link bandwidth;
[0123] The transmission module 103 is used to transmit the data to be transmitted to the second communication device through the target communication link.
[0124] Optionally, the matching module 102 is further configured to:
[0125] Based on the networking information of the wireless ad hoc network, determine the second communication device corresponding to the target communication device;
[0126] Determine the second communication link between the target communication device and the second communication device;
[0127] The target communication link is obtained by matching the first link identifier of the first communication link with the second link identifier of the second communication link.
[0128] Optionally, the matching module 102 is further configured to:
[0129] Based on the networking information of the wireless ad hoc network, a candidate communication device is queried to jointly transmit the data to be transmitted with the target communication device, wherein the candidate communication device includes a first candidate communication device and a second candidate communication device;
[0130] If the candidate communication device is the first candidate communication device, then the first candidate communication device shall be used as the second communication device;
[0131] If the candidate communication device is the second candidate communication device, then the second communication device is determined according to the correspondence between the data to be transmitted and the second candidate communication device.
[0132] Optionally, the matching module 102 is further configured to:
[0133] The initial communication link between the target communication device and the second communication device shall be used as the second communication link; or,
[0134] The initial communication link between the target communication device and the second communication device, and the backup communication link corresponding to the target communication device, are used together as the second communication link.
[0135] Optionally, the symmetric link data transmission device is further configured to:
[0136] If a backup networking request for the wireless ad hoc network is received, at least one networking communication device of the target communication device is obtained.
[0137] A backup communication link is established between the target communication device and each of the network communication devices.
[0138] Optionally, the backup communication link includes a backup wireless link and a backup wired link, and the symmetrical link data transmission device is further used for:
[0139] Establish the backup wireless link for the target communication device and each of the network communication devices respectively; and / or
[0140] The backup wired links are established for the target communication device and each of the network communication devices.
[0141] Optionally, the target communication link includes a target wireless link and a target wired link, and the transmission module 103 is further configured to:
[0142] The data to be transmitted is transmitted to the second communication device via the target wireless link; or...
[0143] The data to be transmitted is transmitted to the second communication device via the target wired link.
[0144] The symmetrical link data transmission device provided by this invention, employing the symmetrical link data transmission method in the above embodiments, solves the technical problem of poor data transmission accuracy during link communication. Compared with the prior art, the beneficial effects of the symmetrical link data transmission device provided by this invention are the same as those of the symmetrical link data transmission method provided in the above embodiments, and other technical features in this symmetrical link data transmission device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0145] Example 4
[0146] This invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the symmetric link data transmission method in Embodiment 1 above.
[0147] The following is for reference. Figure 9 The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0148] like Figure 9 As shown, the electronic device may include a processing unit 1001 (e.g., a central processing unit, a graphics processor, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the electronic device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus.
[0149] Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. The communication devices allow electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although electronic devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.
[0150] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of embodiments of this disclosure.
[0151] The electronic device provided by this invention employs the symmetrical link data transmission method in the above embodiments, solving the technical problem of poor data transmission accuracy during link communication. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiments of this invention are the same as those of the symmetrical link data transmission method provided in the above embodiments, and other technical features of this electronic device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0152] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.
[0153] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
[0154] Example 5
[0155] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the symmetric link data transmission method in the above embodiment.
[0156] The computer-readable storage medium provided in the embodiments of the present invention may be, for example, a USB flash drive, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination thereof.
[0157] More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this embodiment, the computer-readable storage medium can be any package.
[0158] A tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. Program code contained on a computer-readable storage medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0159] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.
[0160] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by an electronic device, cause the electronic device to: acquire data to be transmitted by a first communication device through a first communication link, wherein the first communication link is a communication link between the target communication device and the first communication device; and match the data to be transmitted to the first communication link.
[0161] The corresponding target communication link, wherein the bandwidth of the target communication link and the first communication link is the same; the data to be transmitted is transmitted to the second communication device through the target communication link.
[0162] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language.
[0163] Or a similar programming language. The program code can execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0164] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0165] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0166] The computer-readable storage medium provided by this invention stores computer-readable program instructions for executing the above-described symmetric link data transmission method, thus solving the technical problem of poor data transmission accuracy during link communication. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiments of this invention are the same as those of the symmetric link data transmission method provided in the above embodiments, and will not be repeated here.
[0167] Example 6
[0168] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the symmetric link data transmission method described above.
[0169] The computer program product provided in this application solves the technical problem of poor data transmission accuracy during link communication. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiments of this invention are the same as the beneficial effects of the symmetric link data transmission method provided in the above embodiments, and will not be repeated here.
[0170] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.
Claims
1. A symmetric link data transmission method, characterized in that, The symmetric link data transmission method, applied to target communication devices in wireless ad hoc networks, includes: Acquire the data to be transmitted by the first communication device through the first communication link, wherein the first communication link is the communication link between the target communication device and the first communication device; The target communication link corresponding to the first communication link is matched to the data to be transmitted, wherein the link bandwidth between the target communication link and the first communication link is the same; The data to be transmitted is transmitted to the second communication device through the target communication link; The step of matching the data to be transmitted with the target communication link corresponding to the first communication link includes: Based on the networking information of the wireless ad hoc network, determine the second communication device corresponding to the target communication device; Determine the second communication link between the target communication device and the second communication device; The target communication link is obtained by matching the first link identifier of the first communication link with the second link identifier of the second communication link.
2. The symmetric link data transmission method as described in claim 1, characterized in that, The step of determining the second communication device corresponding to the target communication device based on the networking information of the wireless ad hoc network includes: Based on the networking information of the wireless ad hoc network, a candidate communication device is queried to jointly transmit the data to be transmitted with the target communication device, wherein the candidate communication device includes a first candidate communication device and a second candidate communication device; If the candidate communication device is the first candidate communication device, then the first candidate communication device shall be used as the second communication device; If the candidate communication device is the second candidate communication device, then the second communication device is determined according to the correspondence between the data to be transmitted and the second candidate communication device.
3. The symmetric link data transmission method as described in claim 1, characterized in that, The step of determining the second communication link between the target communication device and the second communication device includes: The initial communication link between the target communication device and the second communication device shall be used as the second communication link; or, The initial communication link between the target communication device and the second communication device, and the backup communication link corresponding to the target communication device, are used together as the second communication link.
4. The symmetric link data transmission method as described in claim 1 or 3, characterized in that, Before the step of acquiring the data to be transmitted by the first communication device through the first communication link, the symmetric link data transmission method further includes: If a backup networking request for the wireless ad hoc network is received, at least one networking communication device of the target communication device is obtained. A backup communication link is established between the target communication device and each of the network communication devices.
5. The symmetric link data transmission method as described in claim 4, characterized in that, The backup communication links include backup wireless links and backup wired links. The step of establishing backup communication links between the target communication device and each of the network communication devices includes: Establish the backup wireless link for the target communication device and each of the network communication devices respectively; and / or The backup wired links are established for the target communication device and each of the network communication devices.
6. The symmetric link data transmission method as described in claim 1, characterized in that, The target communication link includes a target wireless link and a target wired link. The step of transmitting the data to be transmitted to the second communication device through the target communication link includes: The data to be transmitted is transmitted to the second communication device via the target wireless link; or... The data to be transmitted is transmitted to the second communication device via the target wired link.
7. A symmetrical link data transmission device, characterized in that, The symmetric link data transmission device, used in target communication devices for wireless ad hoc networks, includes: The acquisition module is used to acquire the data to be transmitted by the first communication device through the first communication link, wherein the first communication link is the communication link between the target communication device and the first communication device; A matching module is used to match the data to be transmitted with a target communication link corresponding to the first communication link, wherein the target communication link and the first communication link have the same link bandwidth; The transmission module is used to transmit the data to be transmitted to the second communication device through the target communication link; The step of matching the data to be transmitted with the target communication link corresponding to the first communication link includes: Based on the networking information of the wireless ad hoc network, determine the second communication device corresponding to the target communication device; Determine the second communication link between the target communication device and the second communication device; The target communication link is obtained by matching the first link identifier of the first communication link with the second link identifier of the second communication link.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the steps of the symmetric link data transmission method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program for implementing a symmetric link data transmission method, which is executed by a processor to implement the steps of the symmetric link data transmission method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Multi-band management of wireless relaying networks
CN105393633A