Data transmission method and apparatus, electronic device, and storage medium

CN117320157BActive Publication Date: 2026-08-28HARBIN HYTERA TECH CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210681495.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2026-08-28
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

[0003]而在窄带系统中,特别对于窄带实时组呼语音业务,受限于占用带宽、传输速率和严格的低延时要求,传统的基于路由表的点对点路由方案无法满足要求

Benefits of technology

[0022]本发明提供的数据传输方法应用于无线自组网络,针对无线自组网络中多个终端设备通过多个中继设备进行组呼语音的半双工通信、且多个中继设备的数量小于等于3的场景,通过双频点和双时隙确定四个信道,进一步基于该四个信道配置多个终端设备、第一中继设备、以及与第一中继设备在不同连接状态下的第二中继设备各自对应的发射信道和接收信道,第一中继设备为未被指定的中继设备、第二中继设备为已被指定的中继设备,多个接收信道、第一中继设备和第二中继设备的接收信道包括四个信道,多个终端设备的发射信道为四个信道中的一个信道,第一中继设备和第二中继设备的发射信道均与多个终端设备的发射信道不同、且第一中继设备与第二中继设备的接收信道与其发射信道分属所述双时隙。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117320157B_ABST
    Figure CN117320157B_ABST
Patent Text Reader

Abstract

The data transmission method provided by the application is applied to a wireless self-organizing network, and is used for a scenario that a plurality of terminal devices perform half-duplex communication of group call voice through a plurality of relay devices, and the number of the plurality of relay devices is less than or equal to 3. Four channels are determined through double frequency points and double time slots. Transmitting channels and receiving channels corresponding to the plurality of terminal devices, a first relay device, and a second relay device in different connection states with the first relay device are further configured based on the four channels. The first relay device is an unassigned relay device, and the second relay device is an assigned relay device. The application can improve mobile networking of no more than 3 relay devices, the relay devices use corresponding channels to fully utilize time-frequency resources, effectively reduce the generation of same-frequency simulcast, improve communication coverage quality, and be compatible with conventional PDT intercoms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless communication network technology, and more specifically, to a data transmission method, apparatus, electronic device, and storage medium. Background Technology

[0002] A wireless ad hoc network (WANET) is a network formed by nodes interconnecting dynamically and self-organizing. In a WANET, relay devices need to perform channel locking based on received data and then perform next-hop forwarding communication according to forwarding rules. See also Figure 1 The diagram shown illustrates a forwarding communication process where the source data from the terminal device is forwarded sequentially by relay device 1 and relay device 2.

[0003] In narrowband systems, especially for narrowband real-time group call voice services, traditional point-to-point routing schemes based on routing tables cannot meet the requirements due to limitations in bandwidth, transmission rate, and strict low latency requirements. Summary of the Invention

[0004] In view of this, to solve the above problems, the present invention provides a data transmission method, apparatus, electronic device, and storage medium, the technical solution of which is as follows:

[0005] This invention provides a data transmission method applied to a wireless ad hoc network, wherein multiple terminal devices in the wireless ad hoc network perform half-duplex group call voice communication through multiple relay devices, the number of the multiple relay devices is less than or equal to 3, and includes an unspecified first relay device and a specified second relay device, the method comprising:

[0006] Determine the four channels corresponding to the dual frequency points and dual time slots;

[0007] Based on the four channels, the transmit and receive channels corresponding to the plurality of terminal devices, the first relay device, and the second relay device (which is in a different connection state from the first relay device) are configured; wherein...

[0008] The receiving channels of the plurality of terminal devices, the first relay device, and the second relay device include the four channels, and the transmitting channel of the plurality of terminal devices is one of the four channels. The transmitting channels of the first relay device and the second relay device are different from the transmitting channels of the plurality of terminal devices, and the receiving channels of the first relay device and the second relay device belong to the dual time slots respectively.

[0009] The configuration information of the transmission and reception channels of the plurality of terminal devices, the first relay device, and the second relay device are respectively sent out to achieve the following:

[0010] The target terminal device transmits data using the first channel as the transmitting channel, while other terminal devices receive data using the four channels as receiving channels. The first relay device receives data using the four channels as receiving channels, and when data is received on the second channel, it transmits data using the third channel, which belongs to a different time slot than the second channel and is different from the first channel. The second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel and the fifth channel as the transmitting channel based on the actual connection status.

[0011] The first channel, the second channel, the third channel, the fourth channel, and the fifth channel are all one of the four channels.

[0012] Another aspect of the present invention provides a data transmission apparatus, the apparatus comprising:

[0013] The channel determination module is used to determine the four channels corresponding to the dual frequency points and dual time slots;

[0014] The channel configuration module is used to configure the transmit and receive channels corresponding to multiple terminal devices, a first relay device, and a second relay device in different connection states with the first relay device based on the four channels; wherein,

[0015] The receiving channels of the plurality of terminal devices, the first relay device, and the second relay device include the four channels, and the transmitting channel of the plurality of terminal devices is one of the four channels. The transmitting channels of the first relay device and the second relay device are different from the transmitting channels of the plurality of terminal devices, and the receiving channels of the first relay device and the second relay device belong to the dual time slots respectively.

[0016] The channel distribution module is used to distribute the configuration information of the transmission and reception channels of the plurality of terminal devices, the first relay device, and the second relay device, respectively, to achieve the following:

[0017] The target terminal device transmits data using the first channel as the transmitting channel, while other terminal devices receive data using the four channels as receiving channels. The first relay device receives data using the four channels as receiving channels, and when data is received on the second channel, it transmits data using the third channel, which belongs to a different time slot than the second channel and is different from the first channel. The second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel and the fifth channel as the transmitting channel based on the actual connection status.

[0018] The first channel, the second channel, the third channel, the fourth channel, and the fifth channel are all one of the four channels.

[0019] In another aspect, the present invention provides an electronic device comprising: at least one memory and at least one processor; the memory stores a program, and the processor calls the program stored in the memory, the program being used to implement any one of the data transmission methods described above.

[0020] In another aspect, the present invention provides a storage medium storing computer-executable instructions for performing any of the data transmission methods described herein.

[0021] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:

[0022] The data transmission method provided by this invention is applied to wireless ad hoc networks. It addresses scenarios where multiple terminal devices in a wireless ad hoc network perform half-duplex group call voice communication through multiple relay devices, and the number of relay devices is less than or equal to three. Four channels are determined using dual frequency points and dual time slots. Further, based on these four channels, the transmit and receive channels corresponding to the multiple terminal devices, the first relay device, and the second relay device (which is in a different connection state from the first relay device) are configured. The first relay device is an unassigned relay device, and the second relay device is an assigned relay device. The multiple receive channels, the first relay device's receive channel, and the second relay device's receive channel comprise four channels. The transmit channel of the multiple terminal devices is one of these four channels. The transmit channels of the first and second relay devices are different from the transmit channels of the multiple terminal devices, and the receive channels of the first and second relay devices belong to the dual time slots, respectively.

[0023] Based on this, the target terminal device uses the first channel as the transmit channel to send data, and other terminal devices use the four channels as receive channels to receive data; the first relay device uses the four channels as receive channels to receive data, and when data is received on the second channel, it uses the third channel, which belongs to a different time slot than the second channel and is different from the first channel, as the transmit channel to send data; the second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receive channel to receive data and the fifth channel as the transmit channel to send data based on the actual connection status, and the first, second, third, fourth and fifth channels are all one of the four channels.

[0024] Therefore, this invention can improve mobile networking with no more than 3 relay devices. The relay devices can make full use of time and frequency resources by using the corresponding channels, effectively reduce the occurrence of co-broadcasting, improve communication coverage quality, and be compatible with conventional PDT walkie-talkies. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0026] Figure 1 This is a schematic diagram of forwarding communication in a wireless ad hoc network.

[0027] Figure 2 A flowchart illustrating the data transmission method provided in this embodiment of the invention;

[0028] Figure 3 This is a schematic diagram of the data transmission device provided in an embodiment of the present invention. Detailed Implementation

[0029] 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.

[0030] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0031] Limited by the technical constraints of narrowband systems discussed in the previous section, existing solutions can be broadly categorized into the following two types:

[0032] 1) Sort the available channels (one time slot per frequency point is one channel) in order, for example, 1, 2, 3...N. For each relay device in the wireless ad hoc network, a corresponding channel can be assigned. For example, relay device 1 will transmit data received from channel 1 through channel 2, relay device 2 will transmit data received from channel 2 through channel 3, and so on. Relay device N will transmit data received from channel N through channel 1. In this case, the relay devices do not need to calculate routes but simply forward data according to existing simple rules.

[0033] However, this inevitably causes radio signal interference. To reduce the impact of signal interference, simulcasting technology is needed, but due to the limitations of simulcasting technology, it is difficult to achieve perfect signal coverage.

[0034] 2) A multi-timeslot structure is adopted for a single frequency point. Each relay device is allocated one fixed time slot. The relay device can receive data in any time slot and can only forward data in its own time slot. Similarly, there is no need to calculate routing resources; forwarding is done according to simple rules. However, this inability to reuse data will result in a significant waste of air interface resources and is incompatible with the current mainstream PDT (Professional Digital Trunking) walkie-talkies in China (PDT walkie-talkies are the terminal devices in this invention).

[0035] The data transmission method provided in this embodiment of the invention is applied to a wireless ad hoc network. In this network, multiple terminal devices communicate via multiple relay devices for half-duplex group call voice communication. The number of relay devices is less than or equal to three, and includes an unspecified first relay device and a specified second relay device. The first relay device is the one not specified by the user, and the second relay device is the one specified by the user. In other words, the number of relay devices participating in the half-duplex group call voice communication is two or three, with one relay device specified as the second relay device, and the remaining one or two relay devices serving as the first relay device. It should be noted that in this embodiment of the invention, relay devices can be specified according to different scenario requirements, and the number of terminal devices participating in the half-duplex group call voice communication is not limited.

[0036] See Figure 2 , Figure 2 This is a flowchart of a data transmission method provided in an embodiment of the present invention. The data transmission method includes the following steps:

[0037] S10, determine the four channels corresponding to the dual frequency points and dual time slots.

[0038] In this embodiment of the invention, limited by the current technical environment, a dual-frequency point (i.e., two frequency points F1 and F2) and dual-time slot (i.e., two time slots S1 and S2) are used to design the channel. Therefore, the time and frequency resources are combined with each other, resulting in a total of four channels, namely channel F1S1, channel F1S2, channel F2S1, and channel F2S2. Taking channel F1S1 as an example, it represents the channel corresponding to time slot S1 under frequency point F1.

[0039] S20, based on four channels, configure the transmit and receive channels corresponding to multiple terminal devices, a first relay device, and a second relay device in different connection states with the first relay device; wherein...

[0040] The receiving channels of multiple terminal devices, the first relay device, and the second relay device include four channels. The transmitting channel of the multiple terminal devices is one of the four channels. The transmitting channels of the first relay device and the second relay device are different from the transmitting channels of the multiple terminal devices. Furthermore, the receiving channels of the first relay device and the second relay device belong to two time slots, respectively, as do their transmitting channels.

[0041] In this embodiment of the invention, several terminal devices in a wireless ad hoc network achieve real-time group call voice half-duplex communication through 2 to 3 relay devices. The terminal devices share one channel, while each relay device occupies a separate channel. To reduce the impact of simultaneous broadcasting on coverage while ensuring real-time performance, corresponding channels (including receive and transmit channels) can be allocated to the multiple terminal devices, the first relay device, and the second relay device.

[0042] The receiving channels for multiple terminal devices include channels F1S1, F1S2, F2S1, and F2S2, while the transmitting channel is one of four channels. We will use channel F1S2 as an example below. Therefore, the terminal device only transmits data at a fixed air interface resource (i.e., channel F1S2), but can receive data on all channels F1S1, F1S2, F2S1, and F2S2.

[0043] The receiving channels of the first relay device include channels F1S1, F1S2, F2S1, and F2S2. Its transmitting channels differ from those of the multiple terminal devices and must be selected from channels F1S1, F2S1, and F2S2. Furthermore, the transmitting and receiving channels of the first relay device must belong to two time slots. That is, if the receiving channel of the first relay device is in time slot 1, its transmitting channel is in time slot 2; conversely, if the receiving channel is in time slot 2, its transmitting channel is in time slot 1. Therefore, when the receiving channel of the first relay device is either channel F1S1 or F2S1, the corresponding transmitting channel is channel F2S2; and when the receiving channel is either channel F1S2 or F2S2, the corresponding transmitting channel is either channel F1S1 or channel F2S1. Therefore, if there is one first relay device, and its receiving channel is channel F1S2 / channel F2S2, the transmitting channel can be selected from channel F1S1 and channel F2S1. If there are two second relay devices, when one of the first relay devices (hereinafter referred to as relay device A) has its receiving channel F1S2 / channel F2S2, its corresponding transmitting channel is channel F1S1. When the other first relay device (hereinafter referred to as relay device B) has its receiving channel F1S2 / channel F2S2, its corresponding transmitting channel is channel F2S1. In addition, when the receiving channels of relay device A and relay device B are channel F1S1 / channel F2S1, they share a single transmitting channel (i.e., channel F2S2).

[0044] The receiving channels of the second relay device include channels F1S1, F1S2, F2S1, and F2S2. The selection of the transmitting channel needs to consider the connection status between the second relay device and at least one first relay device. This connection status includes communication status and interruption status. It is also required that the transmitting channel of the second relay device and its receiving channel belong to two time slots. That is, if the receiving channel of the second relay device is located in time slot 1, its transmitting channel is located in time slot 2, and if the receiving channel is located in time slot 2, its transmitting channel is located in time slot 1.

[0045] It should be noted that each first relay device can send its own identification information by automatically broadcasting at regular intervals, while the second relay device can use the received identification information to determine its neighboring devices, i.e., the first relay devices to establish communication.

[0046] S30, the configuration information of the transmission and reception channels of multiple terminal devices, the first relay device, and the second relay device are respectively sent out to achieve:

[0047] The target terminal device uses the first channel as the transmit channel to send data, while other terminal devices use four channels as receive channels to receive data. The first relay device uses four channels as receive channels to receive data, and if data is received on the second channel, it uses the third channel, which belongs to a different time slot than the second channel and is different from the first channel, as the transmit channel to send data. The second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receive channel to receive data and the fifth channel as the transmit channel to send data based on the actual connection status.

[0048] Channel 1, Channel 2, Channel 3, Channel 4, and Channel 5 are each one of four channels.

[0049] In this embodiment of the invention, the target terminal device is the terminal device currently inputting the group call voice among multiple terminal devices, while the other terminal devices are terminal devices other than the target terminal device among multiple terminal devices.

[0050] The target terminal device transmits data using channel F1S2 as the transmit channel, while other terminal devices receive data using channels F1S1, F1S2, F2S1, and F2S2 as receive channels. The first relay device receives data using channels F1S1, F1S2, F2S1, and F2S2 as receive channels. If data is received on channel F1S1 or F2S1, it transmits the data from channel F2S2; if data is received on channel F1S2 or F2S2, it transmits the data from either channel F1S1 or F2S1. The second relay device, based on its current connection with the first relay device, selects one of channels F1S1, F1S2, F2S1, and F2S2 as the receive channel and determines the corresponding channel as the transmit channel to transmit data.

[0051] In the specific implementation process, step S20, "configuring the transmission and reception channels corresponding to multiple terminal devices, the first relay device, and the second relay device in different connection states with the first relay device based on four channels," can be implemented using the following steps:

[0052] Channels F1S1, F1S2, F2S1, and F2S2 are used as receiving channels for multiple terminal devices; and channel F1S2 is used as transmitting channel for multiple terminal devices.

[0053] When the number of multiple relay devices is 2, channels F1S1, F1S2, F2S1, and F2S2 are used as the receiving channels of the first relay device; and if the receiving channel of the first relay device is channel F1S2 / channel F2S2, channel F1S1 / channel F2S1 is used as the transmitting channel of the first relay device; and if the receiving channel of the first relay device is channel F1S1 / channel F2S1, channel F2S2 is used as the transmitting channel of the first relay device.

[0054] When the connection between the first relay device and the second relay device is interrupted, channel F1S2 is used as the receiving channel of the second relay device, and channel F1S1 / channel F2S1 is used as the transmitting channel of the second relay device.

[0055] When the connection state between the first relay device and the second relay device is in a communication state, channels F1S2, F1S1, and F2S1 are used as the receiving channels of the second relay device; and if the receiving channel of the second relay device is channel F1S2, channel F1S1 / channel F2S1 are used as the transmitting channels of the second relay device; and if the receiving channels of the second relay device are channel F1S1 / channel F2S1 and channel F1S2, then channel F2S2 is used as the transmitting channel of the second relay device.

[0056] Accordingly, the target terminal device uses the first channel as the transmit channel to send data, and other terminal devices use four channels as receive channels to receive data, including:

[0057] The target terminal device uses channel F1S2 as the transmit channel to send data, while other terminal devices use channels F1S1, F1S2, F2S1, and F2S2 as receive channels to receive data.

[0058] Accordingly, the first relay device uses four channels as receiving channels to receive data, and when data is received on the second channel, it uses a third channel, which belongs to a different time slot than the second channel and is different from the first channel, as a transmitting channel to transmit data, including:

[0059] The first relay device receives data using channels F1S1, F1S2, F2S1, and F2S2 as receiving channels; and transmits data received from channels F1S2 / F2S2 using channels F1S1 / F2S1 as transmitting channels; and transmits data received from channels F1S1 / F2S1 using channels F2S2 as transmitting channels.

[0060] Accordingly, the second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel to receive data and the fifth channel as the transmitting channel to transmit data based on the actual connection status, including:

[0061] If the second relay device determines that the current actual connection status with the first relay device is interrupted, it will use channel F1S2 as the receiving channel to receive data, and for the data received from channel F1S2, it will use channel F1S1 / channel F2S1 as the transmitting channel to transmit the data.

[0062] If the second relay device determines that the current actual connection state with the first relay device is a communication state, it uses channels F1S2, F1S1, and F2S1 as receiving channels to receive data; and for data received from channel F1S2, it waits for N time slots. If the same data is received from channel F1S1 / channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data. If the same data is not received from channel F1S1 / channel F2S1, it uses F1S1 / channel F2S1 as a transmitting channel to transmit the data, where N is an odd number; and for data received from channel F1S1 / channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data.

[0063] In this embodiment of the invention, channel F1S2 is used as the transmission channel for multiple terminal devices. Since frequency point F1 and frequency point F2, and time slot S1 and time slot S2 are only different in their identifiers, in other scenarios, any one of channel F1S1, channel F2S1, and channel F2S2 can be selected as the transmission channel for multiple terminal devices. This is not fundamentally different from selecting channel F1S2 in this embodiment. For the first relay device and the second relay device, the identifiers of their transmission and reception channels can be replaced accordingly. For example, when channel F1S1 is selected as the transmission channel for multiple terminal devices, S2 in the identifiers of the transmission and reception channels of the first relay device can be replaced with S1, and S1 can be replaced with S2. Similarly, S2 in the identifiers of the transmission and reception channels of the second relay device can be replaced with S1, and S1 can be replaced with S2. Taking the first relay device as an example:

[0064] The receiving channel of the second relay device includes channel F1S2, channel F1S1, channel F2S2, and channel F2S1; the transmitting channel of the second relay device includes channel F1S2 / channel F2S2 and channel F2S1. When the receiving channel of the second relay device is channel F1S1 / channel F2S1, its transmitting channel is channel F1S2 / channel F2S2; when the receiving channel of the second relay device is channel F1S2 / channel F2S2, its transmitting channel is F2S1.

[0065] Continuing with the example of using channel F1S2 as the transmission channel for multiple terminal devices, the target terminal device transmits data using channel F1S2, while other terminal devices receive data using channels F1S1, F1S2, F2S1, and F2S2.

[0066] In this embodiment of the invention, the number of relay devices is two, namely, one first relay device and one second relay device. Channels F1S1, F1S2, F2S1, and F2S2 are used as the receiving channels of the first relay device. If the receiving channel of the first relay device is channel F1S2 / F2S2, then channel F1S1 / F2S1 is used as the transmitting channel of the first relay device; if the receiving channel of the first relay device is channel F1S1 / F2S1, then channel F2S2 is used as the transmitting channel of the first relay device. Therefore, for data received on either channel F1S2 or F2S2, the first relay device can choose either channel F1S1 or F2S1 as the transmitting channel to send the data; for data received on either channel F1S1 or F2S1, it chooses channel F2S2 as the transmitting channel to send the data.

[0067] If the second relay device determines that the current actual connection status with the first relay device is interrupted, the second relay device can only receive data from the target terminal device, that is, receive data using channel F1S2 as the receiving channel. Furthermore, for the data received from channel F1S2, the second relay device can choose channel F1S1 or channel F2S1 as the transmitting channel to transmit the data.

[0068] If the second relay device determines that the current actual connection state with the first relay device is a communication state, then the second relay device may receive data from both the target terminal device and the first relay device, that is, using channels F1S2, F1S1, and F2S1 as receiving channels to receive data. On the one hand, for data received from channel F1S2, after waiting for N time slots (N is an odd number), such as 1 time slot, if the same data is received from channel F1S1 / channel F2S1 (meaning that the data sent from the target terminal device was received by both the first and second relay devices, and the first relay device then sent the data again, which was received by the second relay device), then channel F2S2 is used as the transmitting channel to transmit the data. The same data is only forwarded once. Conversely, if the same data is not received from channel F1S1 / channel F2S1 (meaning that the data sent from the target terminal device was not received by the first relay device), then channel F1S1 / channel F2S1 is used as the transmitting channel to transmit the data. On the other hand, for data received from channel F1S1 / channel F2S1 (indicating that data sent from the target terminal device was received by the first relay device, and the first relay device then sent the data to the second relay device), channel F2S2 is used as the transmission channel to send the data.

[0069] Based on this, the number of relay devices is 3, which includes 2 first relay devices and 1 second relay device. Continuing with the explanation of the 2 first relay devices as relay device A and relay device B, specifically:

[0070] In the case where the number of multiple relay devices is 3, and the first relay device includes relay device A and relay device B, channels F1S1, F1S2, F2S1, and F2S2 are respectively used as the receiving channels of relay device A and relay device B; and, if the receiving channel of relay device A is channel F1S1 / channel F2S1, channel F2S2 is used as the transmitting channel of relay device A; and, if the receiving channel of relay device A is channel F1S2 / channel F2S2, channel F1S1 is used as the transmitting channel of relay device A; and, if the receiving channel of relay device B is channel F1S1 / channel F2S1, channel F2S2 is used as the transmitting channel of relay device B; and, if the receiving channel of relay device B is channel F1S2 / channel F2S2, channel F2S1 is used as the transmitting channel of relay device B.

[0071] When the connection between relay device A and relay device B and the second relay device is interrupted, channel F1S2 is used as the receiving channel of the second relay device, and channel F1S1 / channel F2S1 is used as the transmitting channel of the second relay device.

[0072] When the connection between relay device A and the second relay device is in a communication state, and the connection between relay device B and the second relay device is in an interrupted state, channels F1S1, F1S2, and F2S2 are used as the receiving channels of the second relay device; and if the receiving channel of the second relay device is channel F1S2 / channel F2S2, channel F1S1 is used as the transmitting channel of the second relay device; and if the receiving channels of the second relay device are both channel F1S1 and channel F1S2, channel F2S2 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is F1S1, channel F2S2 is used as the transmitting channel of the second relay device.

[0073] When the connection between relay device A and the second relay device is interrupted, and the connection between relay device B and the second relay device is in a communication state, channels F2S1, F1S2, and F2S2 are used as the receiving channels of the second relay device; and if the receiving channel of the second relay device is channel F1S2 / channel F2S2, channel F2S1 is used as the transmitting channel of the second relay device; and if the receiving channels of the second relay device are both channel F2S1 and channel F1S2, channel F2S2 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is channel F2S1, channel F2S2 is used as the transmitting channel of the second relay device.

[0074] When both relay device A and relay device B are in a communication state with the second relay device, channels F1S1, F1S2, and F2S1 are used as the receiving channels of the second relay device; and if the receiving channels of the second relay device are channels F1S1 and / or channels F2S1 and F1S2, then channel F2S2 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is channel F1S2, then channels F1S1 / F2S1 are used as the transmitting channels of the second relay device; and if the receiving channels of the second relay device are channels F1S1 / F2S1, then channel F2S2 is used as the transmitting channel of the second relay device.

[0075] Accordingly, the first relay device uses four channels as receiving channels to receive data, and when data is received on the second channel, it uses a third channel, which belongs to a different time slot than the second channel and is different from the first channel, as a transmitting channel to transmit data, including:

[0076] Relay device A receives data using channels F1S1, F1S2, F2S1, and F2S2 as receiving channels; and transmits data received from channels F1S1 and F2S1 using channel F2S2 as a transmitting channel; and transmits data received from channels F1S2 and F2S2 using channel F1S1 as a transmitting channel.

[0077] Relay device B uses channels F1S1, F1S2, F2S1, and F2S2 as receiving channels to receive data; and for data received from channels F1S1 / F2S1, it uses channel F2S2 as a transmitting channel to transmit the data; and for data received from channels F1S2 / F2S2, it uses channel F2S1 as a transmitting channel to transmit the data.

[0078] Accordingly, the second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel to receive data and the fifth channel as the transmitting channel to transmit data based on the actual connection status, including:

[0079] If the second relay device determines that the current actual connection status with both relay device A and relay device B is interrupted, it will use channel F1S2 as the receiving channel to receive data; and for the data received from channel F1S2, it will use channel F1S1 / channel F2S1 as the transmitting channel to transmit the data.

[0080] If the second relay device determines that its current actual connection state with relay device A is a communication state and its actual connection state with relay device B is an interrupted state, it uses channels F1S1, F1S2, and F2S2 as receiving channels to receive data; and, for data received from channel F1S2, it waits for M time slots. If the same data is received from channel F1S1, it uses channel F2S2 as a transmitting channel to transmit the data; if the same data is not received from channel F1S1, it uses channel F1S1 as a transmitting channel to transmit the data, where M is an odd number; and, for data received from channel F2S2, it uses channel F1S1 as a transmitting channel to transmit the data; and, for data received from channel F1S1, it uses channel F2S2 as a transmitting channel to transmit the data.

[0081] If the second relay device determines that its current actual connection with relay device A is interrupted and its actual connection with relay device B is in a communication state, it uses channels F2S1, F1S2, and F2S2 as receiving channels to receive data; and, for data received from channel F1S2, it waits for Q time slots. If the same data is received from channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data; if the same data is not received from channel F2S1, it uses channel F2S1 as a transmitting channel to transmit the data, where Q is an odd number; and, for data received from channel F2S2, it uses channel F2S1 as a transmitting channel to transmit the data; and, for data received from channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data.

[0082] If the second relay device determines that the current actual connection state with both relay device A and relay device B is a communication state, it uses channels F1S1, F1S2, and F2S1 as receiving channels to receive data; and, for data received from channel F1S2, it waits for P time slots. If the same data is received from channels F1S1 and / or F2S1, it uses channel F2S2 as a transmitting channel to transmit the data. If the same data is not received from either channel F1S1 or F2S1, it uses channel F1S1 / F2S1 as a transmitting channel to transmit the data, where P is an odd number; and, for data received from channels F1S1 / F2S1, it uses channel F2S2 as a transmitting channel to transmit the data.

[0083] In this embodiment of the invention, channels F1S1, F1S2, F2S1, and F2S2 are used as the receiving channels of relay device A. For data received from either channel F1S2 or F2S2, relay device A can transmit the data using channel F1S1 as the transmitting channel; for data received from either channel F1S1 or F2S1, it can transmit the data using channel F2S2 as the transmitting channel.

[0084] Channels F1S1, F1S2, F2S1, and F2S2 are used as the receiving channels for relay device B. For data received from either channel F1S1 or F2S1, relay device B transmits the data using channel F2S2 as the transmitting channel; for data received from either channel F1S2 or F2S2, it transmits the data using channel F2S1 as the transmitting channel.

[0085] If the actual link status between relay device A and relay device B and the second relay device is both interrupted, then the second relay device can only receive data from the target terminal device, using channel F1S2 as the receiving channel to receive data. Furthermore, for the data received from channel F1S2, it can choose to transmit the data from channel F1S1 or channel F2S1 as the transmitting channel.

[0086] If the actual link between relay device A and the second relay device is in a communication state, and the actual link between relay device B and the second relay device is in an interrupted state, then the second relay device may receive data from both the target terminal device and relay device A, using channels F1S1, F1S2, and F2S2 as receiving channels to receive the data. On one hand, for data received from channel F1S2, it needs to wait for M time slots (M being an odd number), for example, one time slot. If the same data is received from channel F1S1 (meaning the data sent from the target terminal device was received by both relay device A and the second relay device, and relay device A then sent the data again, which was received by the second relay device), then channel F2S2 is used as the transmitting channel to send the data. The same data is only forwarded once. Conversely, if the same data is not received from channel F1S1 (meaning the data sent from the target terminal device was not received by relay device A), then channel F1S1 is used as the transmitting channel to send the data. On the other hand, for data received from channel F2S2 (data sent by the target terminal device is received and sent by relay device B, then received and sent by relay device A, and then received by the second relay device, i.e., target terminal device → relay device B → relay device A → second relay device), channel F1S1 is used as the transmission channel to transmit the data. Furthermore, for data received from channel F1S1 (data sent by the target terminal device is received and sent by relay device A, then received by the second relay device, i.e., target terminal device → relay device A → second relay device), channel F2S2 is used as the transmission channel to transmit the data.

[0087] If the actual link between relay device A and the second relay device is interrupted, and the actual link between relay device B and the second relay device is in a communication state, then the second relay device may receive data from both the target terminal device and relay device B, using channels F2S1, F1S2, and F2S2 as receiving channels to receive the data. On one hand, for data received from channel F1S2, it needs to wait for Q time slots (Q being an odd number), for example, one time slot. If the same data is received from channel F2S1 (indicating that the data sent from the target terminal device was forwarded by relay device B to the second relay device), then channel F2S2 is used as the transmitting channel to transmit the data. The same data is only forwarded once. Conversely, if the same data is not received from channel F2S1 (indicating that the data sent from the target terminal device was received by both relay device B and the second relay device, and relay device B then forwarded the data to the second relay device for receipt), then channel F2S1 is used as the transmitting channel to transmit the data. On the other hand, for data received from channel F2S2 (data sent by the target terminal device is received and sent by relay device A, then received and sent by relay device B, and then received by a second relay device, i.e., target terminal device → relay device A → relay device B → second relay device), the data is transmitted using channel F2S1 as the transmission channel. Furthermore, for data received from channel F2S1 (data sent by the target terminal device is received and sent by relay device B, then received by a second relay device, i.e., target terminal device → relay device B → second relay device), the data is transmitted using channel F2S2 as the transmission channel.

[0088] If the actual link state between relay device A and the second relay device is communication, and the actual link state between relay device B and the second relay device is communication, then the second relay device may receive data from the target terminal device, relay device A, and relay device B, and will use channels F1S1, F1S2, and F2S1 as receiving channels to receive data. On the one hand, for data received from channel F1S2, it needs to wait for P time slots (P is an odd number), such as 1 time slot. If the same data is received from any one or more channels F1S1 and F2S1 (indicating that the data sent from the target terminal device was forwarded to the second relay device by relay device A and / or relay device B), then the data will be transmitted from channel F2S2 as the transmitting channel. The same data will only be forwarded once. Conversely, if the same data is not received from channel F1S1 or channel F2S1 (indicating that the data sent from the target terminal device was not received by relay device A and relay device B), then the data will be transmitted from channel F1S1 or channel F2S1 as the transmitting channel. On the other hand, for data received from channel F1S1 or channel F2S1 (indicating that the data sent from the target terminal device was not received by relay device A or relay device B), channel F2S2 is used as the transmission channel to transmit the data. Of course, if data is received from both channel F1S1 and channel F2S1 at the same time, they can be compared further. If they are the same, the data is transmitted once from channel F2S2; otherwise, if they are different, two data are transmitted separately from channel F2S2.

[0089] The data transmission method provided in this invention can support two to three relay devices. It allocates time slot resources to both terminal devices and relay devices based on dual-frequency, dual-time slots, and employs corresponding forwarding strategies to achieve wireless ad hoc networking. This method enables half-duplex voice group calls, resulting in rapid group calls with low voice latency. It also reduces the risk of signal quality degradation caused by simultaneous broadcasting. The solution is simple to implement and saves frequency resources. In practical applications, two 12.5kHz bandwidth frequency points can be used, employing dual-time slot TDD time-division duplex technology compatible with the PDT standard, which is compatible with PDT-compliant wireless ad hoc networking devices.

[0090] Based on the data transmission method provided in the above embodiments, this invention also provides an apparatus for executing the data transmission method, the structural schematic diagram of which is shown below. Figure 3 As shown, it includes:

[0091] The channel determination module 10 is used to determine the four channels corresponding to the dual frequency points and dual time slots;

[0092] The channel configuration module 20 is used to configure the transmit and receive channels for multiple terminal devices, a first relay device, and a second relay device in different connection states with the first relay device, based on four channels; wherein,

[0093] The receiving channels of multiple terminal devices, the first relay device, and the second relay device include four channels. The transmitting channel of the multiple terminal devices is one of the four channels. The transmitting channels of the first relay device and the second relay device are different from the transmitting channels of the multiple terminal devices. Furthermore, the receiving channels of the first relay device and the second relay device belong to two time slots, respectively, as do their transmitting channels.

[0094] The channel distribution module 30 is used to distribute the configuration information of the transmission and reception channels of multiple terminal devices, the first relay device, and the second relay device, respectively, to achieve the following:

[0095] The target terminal device uses the first channel as the transmit channel to send data, while other terminal devices use four channels as receive channels to receive data. The first relay device uses four channels as receive channels to receive data, and if data is received on the second channel, it uses the third channel, which belongs to a different time slot than the second channel and is different from the first channel, as the transmit channel to send data. The second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receive channel to receive data and the fifth channel as the transmit channel to send data based on the actual connection status.

[0096] Channel 1, Channel 2, Channel 3, Channel 4, and Channel 5 are each one of four channels.

[0097] Optionally, the dual frequency points include frequency point F1 and frequency point F2, and the dual time slots include time slot S1 and time slot S2;

[0098] Accordingly, the four channels corresponding to the dual frequency points and dual time slots are determined, including:

[0099] Based on frequency point F1, frequency point F2, time slot S1, and time slot S2, determine channels F1S1, F1S2, F2S1, and F2S2.

[0100] Optional, the channel configuration module 20 is specifically used for:

[0101] Channels F1S1, F1S2, F2S1, and F2S2 are used as receiving channels for multiple terminal devices; and channel F1S2 is used as a transmitting channel for multiple terminal devices; when the number of multiple relay devices is 2, channels F1S1, F1S2, F2S1, and F2S2 are used as receiving channels for a first relay device; and if the receiving channel of the first relay device is channel F1S2 / channel F2S2, channel F1S1 / channel F2S1 is used as the transmitting channel of the first relay device; and if the receiving channel of the first relay device is channel F1S1 / channel F2S1, channel F2S2 is used as the transmitting channel of the first relay device; in the case of the first relay device and the second... When the connection between the two relay devices is interrupted, channel F1S2 is used as the receiving channel of the second relay device, and channel F1S1 / channel F2S1 is used as the transmitting channel of the second relay device; when the connection between the first relay device and the second relay device is in a communication state, channel F1S2, channel F1S1, and channel F2S1 are used as the receiving channels of the second relay device; and if the receiving channel of the second relay device is channel F1S2, channel F1S1 / channel F2S1 is used as the transmitting channel of the second relay device; and if the receiving channels of the second relay device are channel F1S1 / channel F2S1 and channel F1S2, then channel F2S2 is used as the transmitting channel of the second relay device.

[0102] Accordingly, the target terminal device uses the first channel as the transmit channel to send data, and other terminal devices use four channels as receive channels to receive data, including:

[0103] The target terminal device uses channel F1S2 as the transmit channel to send data, while other terminal devices use channels F1S1, F1S2, F2S1, and F2S2 as receive channels to receive data.

[0104] Accordingly, the first relay device uses four channels as receiving channels to receive data, and when data is received on the second channel, it uses a third channel, which belongs to a different time slot than the second channel and is different from the first channel, as a transmitting channel to transmit data, including:

[0105] The first relay device receives data using channels F1S1, F1S2, F2S1, and F2S2 as receiving channels; and transmits data received from channels F1S2 / F2S2 using channels F1S1 / F2S1 as transmitting channels; and transmits data received from channels F1S1 / F2S1 using channels F2S2 as transmitting channels.

[0106] Accordingly, the second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel to receive data and the fifth channel as the transmitting channel to transmit data based on the actual connection status, including:

[0107] If the second relay device determines that the current actual connection status with the first relay device is interrupted, it will use channel F1S2 as the receiving channel to receive data, and for the data received from channel F1S2, it will use channel F1S1 / channel F2S1 as the transmitting channel to transmit the data.

[0108] If the second relay device determines that the current actual connection state with the first relay device is a communication state, it uses channels F1S2, F1S1, and F2S1 as receiving channels to receive data; and for data received from channel F1S2, it waits for N time slots. If the same data is received from channel F1S1 / channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data. If the same data is not received from channel F1S1 / channel F2S1, it uses F1S1 / channel F2S1 as a transmitting channel to transmit the data, where N is an odd number; and for data received from channel F1S1 / channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data.

[0109] Optionally, the channel configuration module 20 is also used for:

[0110] In a scenario where there are three relay devices, and the first relay device includes relay device A and relay device B, channels F1S1, F1S2, F2S1, and F2S2 are used as the receiving channels for relay device A and relay device B, respectively; and, if the receiving channel of relay device A is channel F1S1 / channel F2S1, channel F2S2 is used as the transmitting channel for relay device A; and, if the receiving channel of relay device A is channel F1S2 / channel F2S2, channel F1S1 is used as the transmitting channel for relay device A; and, if the receiving channel of relay device B is channel F1S1 / channel F2S1, channel F2S2 is used as the transmitting channel for relay device B; and, if the relay... Device B's receiving channel is channel F1S2 / channel F2S2, and channel F2S1 is used as the transmitting channel of relay device B. When the connection between relay devices A and B and the second relay device is interrupted, channel F1S2 is used as the receiving channel of the second relay device, and channel F1S1 / channel F2S1 is used as the transmitting channel of the second relay device. When the connection between relay device A and the second relay device is in a communication state, and the connection between relay device B and the second relay device is interrupted, channels F1S1, F1S2, and F2S2 are used as the receiving channels of the second relay device. Furthermore, if the receiving channel of the second relay device is channel F1S2 / channel F2S2... 2. Channel F1S1 is used as the transmission channel of the second relay device; and, if the receiving channels of the second relay device are channels F1S1 and F1S2, channel F2S2 is used as the transmission channel of the second relay device; and, if the receiving channel of the second relay device is F1S1, channel F2S2 is used as the transmission channel of the second relay device; when the connection state between relay device A and the second relay device is interrupted, and the connection state between relay device B and the second relay device is in a communication state, channels F2S1, F1S2, and F2S2 are used as the receiving channels of the second relay device; and, if the receiving channel of the second relay device is channel F1S2 / channel F2S2, channel F2S1 is used as... The transmission channel of the second relay device is defined as follows: If the receiving channel of the second relay device is channel F2S1 and channel F1S2, then channel F2S2 is used as the transmission channel of the second relay device; and if the receiving channel of the second relay device is channel F2S1, then channel F2S2 is used as the transmission channel of the second relay device; when the connection states of relay device A and relay device B with the second relay device are both in a communication state, then channels F1S1, F1S2, and F2S1 are used as the receiving channels of the second relay device; and if the receiving channel of the second relay device is channel F1S1 and / or channel F2S1 and channel F1S2, then channel F2S2 is used as the transmission channel of the second relay device.Furthermore, if the receiving channel of the second relay device is channel F1S2, then channel F1S1 / F2S1 shall be used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is channel F1S1 / channel F2S1, then channel F2S2 shall be used as the transmitting channel of the second relay device.

[0111] Accordingly, the first relay device uses four channels as receiving channels to receive data, and when data is received on the second channel, it uses a third channel, which belongs to a different time slot than the second channel and is different from the first channel, as a transmitting channel to transmit data, including:

[0112] Relay device A receives data using channels F1S1, F1S2, F2S1, and F2S2 as receiving channels; and transmits data received from channels F1S1 and F2S1 using channel F2S2 as a transmitting channel; and transmits data received from channels F1S2 and F2S2 using channel F1S1 as a transmitting channel.

[0113] Relay device B uses channels F1S1, F1S2, F2S1, and F2S2 as receiving channels to receive data; and for data received from channels F1S1 / F2S1, it uses channel F2S2 as a transmitting channel to transmit the data; and for data received from channels F1S2 / F2S2, it uses channel F2S1 as a transmitting channel to transmit the data.

[0114] Accordingly, the second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel to receive data and the fifth channel as the transmitting channel to transmit data based on the actual connection status, including:

[0115] If the second relay device determines that the current actual connection status with both relay device A and relay device B is interrupted, it will use channel F1S2 as the receiving channel to receive data; and for the data received from channel F1S2, it will use channel F1S1 / channel F2S1 as the transmitting channel to transmit the data.

[0116] If the second relay device determines that its current actual connection state with relay device A is a communication state and its actual connection state with relay device B is an interrupted state, it uses channels F1S1, F1S2, and F2S2 as receiving channels to receive data; and, for data received from channel F1S2, it waits for M time slots. If the same data is received from channel F1S1, it uses channel F2S2 as a transmitting channel to transmit the data; if the same data is not received from channel F1S1, it uses channel F1S1 as a transmitting channel to transmit the data, where M is an odd number; and, for data received from channel F2S2, it uses channel F1S1 as a transmitting channel to transmit the data; and, for data received from channel F1S1, it uses channel F2S2 as a transmitting channel to transmit the data.

[0117] If the second relay device determines that its current actual connection with relay device A is interrupted and its actual connection with relay device B is in a communication state, it uses channels F2S1, F1S2, and F2S2 as receiving channels to receive data; and, for data received from channel F1S2, it waits for Q time slots. If the same data is received from channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data; if the same data is not received from channel F2S1, it uses channel F2S1 as a transmitting channel to transmit the data, where Q is an odd number; and, for data received from channel F2S2, it uses channel F2S1 as a transmitting channel to transmit the data; and, for data received from channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data.

[0118] If the second relay device determines that the current actual connection state with both relay device A and relay device B is a communication state, it uses channels F1S1, F1S2, and F2S1 as receiving channels to receive data; and, for data received from channel F1S2, it waits for P time slots. If the same data is received from channels F1S1 and / or F2S1, it uses channel F2S2 as a transmitting channel to transmit the data. If the same data is not received from either channel F1S1 or F2S1, it uses channel F1S1 / F2S1 as a transmitting channel to transmit the data, where P is an odd number; and, for data received from channels F1S1 / F2S1, it uses channel F2S2 as a transmitting channel to transmit the data.

[0119] It should be noted that the detailed functions of each functional module in the embodiments of the present invention can be found in the corresponding disclosures of the above-mentioned data transmission method embodiments, and will not be repeated here.

[0120] Based on the data transmission method provided in the above embodiments, this invention also provides an electronic device, which includes: at least one memory and at least one processor; the memory stores a program, and the processor calls the program stored in the memory, the program being used to implement the data transmission method.

[0121] Based on the data transmission method provided in the above embodiments, this embodiment of the invention also provides a storage medium storing computer-executable instructions for executing the data transmission method.

[0122] The present invention has provided a detailed description of a data transmission method, apparatus, electronic device, and storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

[0123] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0124] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that elements inherent to a process, method, article, or apparatus that comprises a list of elements, or elements inherent to such processes, methods, articles, or apparatus, are also included. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0125] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data transmission method, characterized in that, The method is applied to a wireless ad hoc network, in which multiple terminal devices communicate in half-duplex group call voice communication through multiple relay devices. The number of relay devices is less than or equal to 3, and includes an unspecified first relay device and a specified second relay device. The method includes: Determine the four channels corresponding to the dual frequency points and dual time slots; Based on the four channels, the transmit and receive channels corresponding to the plurality of terminal devices, the first relay device, and the second relay device (which is in a different connection state from the first relay device) are configured; wherein... The receiving channels of the plurality of terminal devices, the first relay device, and the second relay device include the four channels, and the transmitting channel of the plurality of terminal devices is one of the four channels. The transmitting channels of the first relay device and the second relay device are different from the transmitting channels of the plurality of terminal devices, and the receiving channels of the first relay device and the second relay device belong to the dual time slots respectively. The configuration information of the transmission and reception channels of the plurality of terminal devices, the first relay device, and the second relay device are respectively sent out to achieve the following: The target terminal device transmits data using the first channel as the transmitting channel, while other terminal devices receive data using at least one of the four channels as the receiving channel. The first relay device receives data using at least one of the four channels as the receiving channel, and if data is received on the second channel, it transmits data using the third channel, which belongs to a different time slot than the second channel and is different from the first channel. The second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel and the fifth channel as the transmitting channel based on the actual connection status. The first channel, the second channel, the third channel, the fourth channel, and the fifth channel are all one of the four channels.

2. The method according to claim 1, characterized in that, The dual frequency points include frequency point F1 and frequency point F2, and the dual time slots include time slot S1 and time slot S2; Accordingly, determining the four channels corresponding to the dual frequency points and dual time slots includes: Based on the frequency point F1, the frequency point F2, the time slot S1, and the time slot S2, channels F1S1, F1S2, F2S1, and F2S2 are determined.

3. The method according to claim 2, characterized in that, The configuration of the transmit and receive channels corresponding to the plurality of terminal devices, the first relay device, and the second relay device in different connection states with the first relay device based on the four channels includes: At least one of the channels F1S1, F1S2, F2S1, and F2S2 is used as the receiving channel of the plurality of terminal devices; and the channel F1S2 is used as the transmitting channel of the plurality of terminal devices. When the number of the plurality of relay devices is 2, at least one of the channels F1S1, F1S2, F2S1, and F2S2 is used as the receiving channel of the first relay device; and if the receiving channel of the first relay device is channel F1S2 / channel F2S2, channel F1S1 / channel F2S1 is used as the transmitting channel of the first relay device; and if the receiving channel of the first relay device is channel F1S1 / channel F2S1, channel F2S2 is used as the transmitting channel of the first relay device. When the connection between the first relay device and the second relay device is interrupted, channel F1S2 is used as the receiving channel of the second relay device, and channel F1S1 / channel F2S1 is used as the transmitting channel of the second relay device. When the connection between the first relay device and the second relay device is in a communication state, at least one of the channels F1S2, F1S1, and F2S1 is used as the receiving channel of the second relay device; and if the receiving channel of the second relay device is the channel F1S2, the channel F1S1 / the channel F2S1 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is the channel F1S1 and the channel F1S2, or the channel F2S1 and the channel F1S2, then the channel F2S2 is used as the transmitting channel of the second relay device. Accordingly, the target terminal device uses the first channel as the transmit channel to send data, and other terminal devices use the four channels as receive channels to receive data, including: The target terminal device transmits data using channel F1S2 as the transmission channel, while other terminal devices receive data using at least one of the channels F1S1, F1S2, F2S1, and F2S2 as the reception channel. Accordingly, the first relay device uses at least one of the four channels as a receiving channel to receive data, and when data is received on the second channel, it uses a third channel, which belongs to a different time slot than the second channel and is different from the first channel, as a transmitting channel to transmit data, including: The first relay device receives data using at least one of channel F1S1, channel F1S2, channel F2S1, and channel F2S2 as a receiving channel; and transmits the data using channel F1S1 / channel F2S1 as a transmitting channel for data received from channel F1S2 / channel F2S2; and transmits the data using channel F2S2 as a transmitting channel for data received from channel F1S1 / channel F2S1. Accordingly, the second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel to receive data and the fifth channel as the transmitting channel to transmit data based on the actual connection status, including: If the second relay device determines that the current actual connection status with the first relay device is interrupted, it uses channel F1S2 as the receiving channel to receive data, and for the data received from channel F1S2, it uses channel F1S1 / channel F2S1 as the transmitting channel to transmit the data. If the second relay device determines that the current actual connection state with the first relay device is a communication state, it uses at least one of the channels F1S2, F1S1, and F2S1 as a receiving channel to receive data; and for data received from the channel F1S2, it waits for N time slots. If the same data is received from the channels F1S1 and F2S1, it uses the channel F2S2 as a transmitting channel to transmit the data. If the same data is not received from the channels F1S1 and F2S1, it uses the channels F1S1 and F2S1 as transmitting channels to transmit the data, where N is an odd number; and for data received from the channels F1S1 and F2S1, it uses the channel F2S2 as a transmitting channel to transmit the data.

4. The method according to claim 3, characterized in that, The configuration of the transmit and receive channels corresponding to the plurality of terminal devices, the first relay device, and the second relay device in different connection states with the first relay device based on the four channels further includes: When the number of relay devices is 3, and the first relay device includes relay device A and relay device B, the channels F1S1, F1S2, F2S1, and F2S2 are respectively used as the receiving channels of relay device A and relay device B; and if the receiving channel of relay device A is channel F1S1 / channel F2S1, then channel F2S2 is used as the transmitting channel of relay device A; and if the receiving channel of relay device A is channel F1S2 / channel F2S2, then channel F1S1 is used as the transmitting channel of relay device A; and if the receiving channel of relay device B is channel F1S1 / channel F2S1, then channel F2S2 is used as the transmitting channel of relay device B; and if the receiving channel of relay device B is channel F1S2 / channel F2S2, then channel F2S1 is used as the transmitting channel of relay device B. When the connection between relay device A and relay device B and the second relay device is interrupted, channel F1S2 is used as the receiving channel of the second relay device, and channel F1S1 / channel F2S1 is used as the transmitting channel of the second relay device. When the connection between relay device A and the second relay device is in a communication state, and the connection between relay device B and the second relay device is in an interrupted state, at least one of channel F1S1, channel F1S2, and channel F2S2 is used as the receiving channel of the second relay device; and if the receiving channel of the second relay device is channel F1S2 / channel F2S2, channel F1S1 is used as the transmitting channel of the second relay device; and if the receiving channels of the second relay device are both channel F1S1 and channel F1S2, channel F2S2 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is F1S1, channel F2S2 is used as the transmitting channel of the second relay device. When the connection between relay device A and the second relay device is interrupted, and the connection between relay device B and the second relay device is in a communication state, at least one of channel F2S1, channel F1S2, and channel F2S2 is used as the receiving channel of the second relay device; and if the receiving channel of the second relay device is channel F1S2 / channel F2S2, channel F2S1 is used as the transmitting channel of the second relay device; and if the receiving channels of the second relay device are both channel F2S1 and channel F1S2, channel F2S2 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is channel F2S1, channel F2S2 is used as the transmitting channel of the second relay device. When both relay device A and relay device B are in a communication state with the second relay device, at least one of channel F1S1, channel F1S2, and channel F2S1 is used as the receiving channel of the second relay device; and if the receiving channel of the second relay device is channel F1S1 and / or channel F2S1 and channel F1S2, then channel F2S2 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is channel F1S2, then channel F1S1 / F2S1 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is channel F1S1 / channel F2S1, then channel F2S2 is used as the transmitting channel of the second relay device. Accordingly, the first relay device uses the four channels as receiving channels to receive data, and when data is received on the second channel, it uses the third channel, which belongs to a different time slot than the second channel and is different from the first channel, as the transmitting channel to transmit data, including: The relay device A receives data using at least one of the channels F1S1, F1S2, F2S1, and F2S2 as a receiving channel; and transmits the data received from channel F1S1 / F2S1 using channel F2S2 as a transmitting channel; and transmits the data received from channel F1S2 / F2S2 using channel F1S1 as a transmitting channel. The relay device B uses at least one of the channels F1S1, F1S2, F2S1, and F2S2 as a receiving channel to receive data; and for data received from the channel F1S1 / the channel F2S1, it uses the channel F2S2 as a transmitting channel to transmit the data; and for data received from the channel F1S2 / the channel F2S2, it uses the channel F2S1 as a transmitting channel to transmit the data. Accordingly, the second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel to receive data and the fifth channel as the transmitting channel to transmit data based on the actual connection status, including: If the second relay device determines that the current actual connection status with both relay device A and relay device B is interrupted, it uses channel F1S2 as the receiving channel to receive data; and for the data received from channel F1S2, it uses channel F1S1 / channel F2S1 as the transmitting channel to transmit the data. If the second relay device determines that its current actual connection state with relay device A is a communication state and its actual connection state with relay device B is an interrupted state, it uses at least one of channel F1S1, channel F1S2, and channel F2S2 as a receiving channel to receive data; and, for data received from channel F1S2, it waits for M time slots. If the same data is received from channel F1S1, it uses channel F2S2 as a transmitting channel to transmit the data; if the same data is not received from channel F1S1, it uses channel F1S1 as a transmitting channel to transmit the data, where M is an odd number; and, for data received from channel F2S2, it uses channel F1S1 as a transmitting channel to transmit the data; and, for data received from channel F1S1, it uses channel F2S2 as a transmitting channel to transmit the data. If the second relay device determines that its current actual connection with relay device A is interrupted and its actual connection with relay device B is in a communication state, it uses at least one of channel F2S1, channel F1S2, and channel F2S2 as a receiving channel to receive data; and, for data received from channel F1S2, it waits for Q time slots. If the same data is received from channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data; if the same data is not received from channel F2S1, it uses channel F2S1 as a transmitting channel to transmit the data, where Q is an odd number; and, for data received from channel F2S2, it uses channel F2S1 as a transmitting channel to transmit the data; and, for data received from channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data. If the second relay device determines that the current actual connection state with both relay device A and relay device B is a communication state, it uses at least one of the channels F1S1, F1S2, and F2S1 as a receiving channel to receive data; and, for data received from channel F1S2, it waits for P time slots. If the same data is received from channel F1S1 and / or channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data. If the same data is not received from either channel F1S1 or channel F2S1, it uses channel F1S1 / channel F2S1 as a transmitting channel to transmit the data, where P is an odd number; and, for data received from channel F1S1 / channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data.

5. A data transmission device, characterized in that, The device is applied to a wireless ad hoc network, in which multiple terminal devices communicate in half-duplex group call voice communication through multiple relay devices. The number of the multiple relay devices is less than or equal to 3, and includes an undesignated first relay device and a designated second relay device. The device comprises: The channel determination module is used to determine the four channels corresponding to the dual frequency points and dual time slots; The channel configuration module is used to configure the transmit and receive channels corresponding to multiple terminal devices, a first relay device, and a second relay device in different connection states with the first relay device based on the four channels; wherein, The receiving channels of the plurality of terminal devices, the first relay device, and the second relay device include the four channels, and the transmitting channel of the plurality of terminal devices is one of the four channels. The transmitting channels of the first relay device and the second relay device are different from the transmitting channels of the plurality of terminal devices, and the receiving channels of the first relay device and the second relay device belong to the dual time slots respectively. The channel distribution module is used to distribute the configuration information of the transmission and reception channels of the plurality of terminal devices, the first relay device, and the second relay device, respectively, to achieve the following: The target terminal device transmits data using the first channel as the transmitting channel, while other terminal devices receive data using at least one of the four channels as the receiving channel. The first relay device receives data using at least one of the four channels as the receiving channel, and if data is received on the second channel, it transmits data using the third channel, which belongs to a different time slot than the second channel and is different from the first channel. The second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel and the fifth channel as the transmitting channel based on the actual connection status. The first channel, the second channel, the third channel, the fourth channel, and the fifth channel are all one of the four channels.

6. The apparatus according to claim 5, characterized in that, The dual frequency points include frequency point F1 and frequency point F2, and the dual time slots include time slot S1 and time slot S2; Accordingly, determining the four channels corresponding to the dual frequency points and dual time slots includes: Based on the frequency point F1, the frequency point F2, the time slot S1, and the time slot S2, channels F1S1, F1S2, F2S1, and F2S2 are determined.

7. The apparatus according to claim 6, characterized in that, The channel configuration module is specifically used for: At least one of the channels F1S1, F1S2, F2S1, and F2S2 is used as the receiving channel of the plurality of terminal devices; and the channel F1S2 is used as the transmitting channel of the plurality of terminal devices. When the number of the plurality of relay devices is 2, at least one of the channels F1S1, F1S2, F2S1, and F2S2 is used as the receiving channel of the first relay device; and if the receiving channel of the first relay device is channel F1S2 / channel F2S2, channel F1S1 / channel F2S1 is used as the transmitting channel of the first relay device; and if the receiving channel of the first relay device is channel F1S1 / channel F2S1, channel F2S2 is used as the transmitting channel of the first relay device. When the connection between the first relay device and the second relay device is interrupted, channel F1S2 is used as the receiving channel of the second relay device, and channel F1S1 / channel F2S1 is used as the transmitting channel of the second relay device. When the connection between the first relay device and the second relay device is in a communication state, at least one of the channels F1S2, F1S1, and F2S1 is used as the receiving channel of the second relay device; and if the receiving channel of the second relay device is the channel F1S2, the channel F1S1 / the channel F2S1 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is the channel F1S1 and the channel F1S2, or the channel F2S1 and the channel F1S2, then the channel F2S2 is used as the transmitting channel of the second relay device. Accordingly, the target terminal device uses the first channel as the transmit channel to send data, and other terminal devices use the four channels as receive channels to receive data, including: The target terminal device transmits data using channel F1S2 as the transmission channel, while other terminal devices receive data using at least one of the channels F1S1, F1S2, F2S1, and F2S2 as the reception channel. Accordingly, the first relay device uses at least one of the four channels as a receiving channel to receive data, and when data is received on the second channel, it uses a third channel, which belongs to a different time slot than the second channel and is different from the first channel, as a transmitting channel to transmit data, including: The first relay device receives data using at least one of channel F1S1, channel F1S2, channel F2S1, and channel F2S2 as a receiving channel; and transmits the data using channel F1S1 / channel F2S1 as a transmitting channel for data received from channel F1S2 / channel F2S2; and transmits the data using channel F2S2 as a transmitting channel for data received from channel F1S1 / channel F2S1. Accordingly, the second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel to receive data and the fifth channel as the transmitting channel to transmit data based on the actual connection status, including: If the second relay device determines that the current actual connection status with the first relay device is interrupted, it uses channel F1S2 as the receiving channel to receive data, and for the data received from channel F1S2, it uses channel F1S1 / channel F2S1 as the transmitting channel to transmit the data. If the second relay device determines that the current actual connection state with the first relay device is a communication state, it uses at least one of the channels F1S2, F1S1, and F2S1 as a receiving channel to receive data; and for data received from the channel F1S2, it waits for N time slots. If the same data is received from the channels F1S1 and F2S1, it uses the channel F2S2 as a transmitting channel to transmit the data. If the same data is not received from the channels F1S1 and F2S1, it uses the channels F1S1 and F2S1 as transmitting channels to transmit the data, where N is an odd number; and for data received from the channels F1S1 and F2S1, it uses the channel F2S2 as a transmitting channel to transmit the data.

8. The apparatus according to claim 7, characterized in that, The channel configuration module is also used for: When the number of relay devices is 3, and the first relay device includes relay device A and relay device B, the channels F1S1, F1S2, F2S1, and F2S2 are respectively used as the receiving channels of relay device A and relay device B; and, if the receiving channel of relay device A is channel F1S1 / channel F2S1, channel F2S2 is used as the transmitting channel of relay device A; and, if the receiving channel of relay device A is channel F1S2 / channel F2S2, channel F1S1 is used as the transmitting channel of relay device A; and, if the receiving channel of relay device B is... Channel F1S1 / channel F2S1, and channel F2S2 is used as the transmission channel of relay device B; and, if the receiving channel of relay device B is channel F1S2 / channel F2S2, channel F2S1 is used as the transmission channel of relay device B; when the connection status between relay device A and relay device B and the second relay device is both interrupted, channel F1S2 is used as the receiving channel of the second relay device and channel F1S1 / channel F2S1 is used as the transmission channel of the second relay device; when the connection status between relay device A and the second relay device is in a communication state, and the connection status between relay device B and the second relay device is interrupted, channel F1S2 is used as the receiving channel of the second relay device and channel F1S1 / channel F2S1 is used as the transmission channel of the second relay device; When the connection status of the second relay device is interrupted, at least one of the channels F1S1, F1S2, and F2S2 is used as the receiving channel of the second relay device; and if the receiving channel of the second relay device is either channel F1S2 or channel F2S2, channel F1S1 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is both channel F1S1 and channel F1S2, channel F2S2 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is F1S1, channel F2S2 is used as the transmitting channel of the second relay device. The transmission channel; when the connection between relay device A and the second relay device is interrupted and the connection between relay device B and the second relay device is in a communication state, at least one of the channels F2S1, F1S2, and F2S2 is used as the receiving channel of the second relay device; and if the receiving channel of the second relay device is channel F1S2 / F2S2, channel F2S1 is used as the transmission channel of the second relay device; and if the receiving channels of the second relay device are both channel F2S1 and F1S2, channel F2S2 is used as the transmission channel of the second relay device.Furthermore, if the receiving channel of the second relay device is channel F2S1, then channel F2S2 is used as the transmitting channel of the second relay device; when the connection states of relay device A and relay device B with the second relay device are both in a communication state, at least one of channel F1S1, channel F1S2, and channel F2S1 is used as the receiving channel of the second relay device; and if the receiving channel of the second relay device is channel F1S1 and / or channel F2S1 and channel F1S2, then channel F2S2 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is channel F1S2, then channel F1S1 / F2S1 is used as the transmitting channel of the second relay device; and if the receiving channel of the second relay device is channel F1S1 / channel F2S1, then channel F2S2 is used as the transmitting channel of the second relay device. Accordingly, the first relay device uses the four channels as receiving channels to receive data, and when data is received on the second channel, it uses the third channel, which belongs to a different time slot than the second channel and is different from the first channel, as the transmitting channel to transmit data, including: The relay device A receives data using at least one of the channels F1S1, F1S2, F2S1, and F2S2 as a receiving channel; and transmits the data received from channel F1S1 / F2S1 using channel F2S2 as a transmitting channel; and transmits the data received from channel F1S2 / F2S2 using channel F1S1 as a transmitting channel. The relay device B uses at least one of the channels F1S1, F1S2, F2S1, and F2S2 as a receiving channel to receive data; and for data received from the channel F1S1 / the channel F2S1, it uses the channel F2S2 as a transmitting channel to transmit the data; and for data received from the channel F1S2 / the channel F2S2, it uses the channel F2S1 as a transmitting channel to transmit the data. Accordingly, the second relay device determines the current actual connection status with the first relay device, and determines the fourth channel as the receiving channel to receive data and the fifth channel as the transmitting channel to transmit data based on the actual connection status, including: If the second relay device determines that the current actual connection status with both relay device A and relay device B is interrupted, it uses channel F1S2 as the receiving channel to receive data; and for the data received from channel F1S2, it uses channel F1S1 / channel F2S1 as the transmitting channel to transmit the data. If the second relay device determines that its current actual connection state with relay device A is a communication state and its actual connection state with relay device B is an interrupted state, it uses at least one of channel F1S1, channel F1S2, and channel F2S2 as a receiving channel to receive data; and, for data received from channel F1S2, it waits for M time slots. If the same data is received from channel F1S1, it uses channel F2S2 as a transmitting channel to transmit the data; if the same data is not received from channel F1S1, it uses channel F1S1 as a transmitting channel to transmit the data, where M is an odd number; and, for data received from channel F2S2, it uses channel F1S1 as a transmitting channel to transmit the data; and, for data received from channel F1S1, it uses channel F2S2 as a transmitting channel to transmit the data. If the second relay device determines that its current actual connection with relay device A is interrupted and its actual connection with relay device B is in a communication state, it uses at least one of channel F2S1, channel F1S2, and channel F2S2 as a receiving channel to receive data; and, for data received from channel F1S2, it waits for Q time slots. If the same data is received from channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data; if the same data is not received from channel F2S1, it uses channel F2S1 as a transmitting channel to transmit the data, where Q is an odd number; and, for data received from channel F2S2, it uses channel F2S1 as a transmitting channel to transmit the data; and, for data received from channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data. If the second relay device determines that the current actual connection state with both relay device A and relay device B is a communication state, it uses at least one of the channels F1S1, F1S2, and F2S1 as a receiving channel to receive data; and, for data received from channel F1S2, it waits for P time slots. If the same data is received from channel F1S1 and / or channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data. If the same data is not received from either channel F1S1 or channel F2S1, it uses channel F1S1 / channel F2S1 as a transmitting channel to transmit the data, where P is an odd number; and, for data received from channel F1S1 / channel F2S1, it uses channel F2S2 as a transmitting channel to transmit the data.

9. An electronic device, characterized in that, The electronic device includes: at least one memory and at least one processor; the memory stores a program, and the processor calls the program stored in the memory, the program being used to implement the data transmission method according to any one of claims 1-4.

10. A storage medium, characterized in that, The storage medium stores computer-executable instructions for performing the data transmission method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Wireless ad hoc network intercom system and communication method thereof

    CN113490163A

  • Method, system and equipment for wireless ad hoc network of sensor

    CN114340006A