Wireless communication method, device and system
Through the link timing design and retransmission mechanism, the packet loss problem in the multi-person network intercom system is solved, and the communication fluency and reliability of the intercom system is realized, and the intercom needs are adapted to the intercom needs of complex scenarios.
Patent Information
- Application Number
- CN202411390411.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-10
AI Technical Summary
The existing multi-person network intercom system mainly adopts broadcasting methods, which cannot effectively deal with packet loss, resulting in poor communication, especially in complex scenarios that cannot meet intercom needs.
Through the link timing design and its retransmission mechanism, when the master walkie-talkie determines that the slave walkie-talkie has not received the data packet, the data packet retransmission is performed based on the communication sub-cycle reserved by the retransmission until the retransmission deadline condition is met, ensuring that the slave The intercom receives data packets, forming a more reliable communication link.
The communication fluency and reliability of the walkie-talkie system are realized, and data can be effectively transmitted in complex scenarios, ensuring the integrity of the communication link between the master and slave walkie-talkie.
Smart Images

Figure CN119299968A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a wireless communication method, device and system. Background Art
[0002] In the process of indoor live broadcast, outdoor shooting, outdoor search and rescue, etc., command and dispatch are generally carried out in groups. Each walkie-talkie in the group can form a complete multi-person network walkie-talkie system, in which the commander and each team member can achieve real-time communication through the walkie-talkie.
[0003] The existing multi-person network walkie-talkie system is mainly implemented in a broadcasting mode, that is, the walkie-talkie is only responsible for broadcasting digital sound data at a fixed period and frequency, and the other end walkie-talkie plays the digital signal after receiving it. Its working principle is that the master walkie-talkie (such as the walkie-talkie held by the commander) is responsible for sending the data packet first at the beginning of each cycle, and the slave walkie-talkies in the network (such as the walkie-talkies held by other team members) receive and send data signals in a defined order in turn, forming the walkie-talkie function.
[0004] However, walkie-talkies in broadcast mode can only send broadcast packets mechanically and regularly, and cannot deal with the packet loss problem well, resulting in the possibility of poor communication in the entire walkie-talkie system and being unable to adapt well to the intercom needs, especially in complex scenarios. Summary of the invention
[0005] The embodiments of the present disclosure at least provide a wireless communication method, device and system, which achieve more reliable data transmission through link timing design and its retransmission mechanism, and ensure the smoothness of communication of the walkie-talkie system.
[0006] In a first aspect, an embodiment of the present disclosure provides a wireless communication method, which is applied to a master intercom, and the method includes:
[0007] Sending a first audio data packet to each slave intercom in a first communication sub-cycle;
[0008] When it is determined that any slave intercom has not received the first audio data packet, retransmit the first audio data packet based on at least one second communication sub-period reserved for retransmission until a retransmission cutoff condition is met;
[0009] The first communication sub-cycle and the at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each of the slave intercoms belong.
[0010] In a possible implementation manner, the number of slave intercoms is related to the number of sub-cycles allocated in a single communication cycle time slot.
[0011] In a possible implementation manner, when each slave intercom corresponds to a communication time slot in the first communication sub-cycle, determining that any slave intercom has not received the first audio data packet is performed according to the following steps:
[0012] For any slave intercom, receiving a second audio data packet returned by the slave intercom in a communication time slot corresponding to the slave intercom;
[0013] In the case that the second audio data packet carries a cancel character NAK, it is determined that the slave intercom has not received the first audio data packet.
[0014] In a possible implementation manner, after retransmitting the first audio data packet based on at least one second communication sub-period reserved for retransmission, the method further includes:
[0015] After retransmission within a communication cycle, determining whether there is still a slave intercom that has not received the first audio data packet;
[0016] If there is still a slave intercom that has not received the first audio data packet, retransmission continues in the next communication cycle until the retransmission deadline condition is met.
[0017] In a possible implementation, the method further includes:
[0018] Sending a control data packet to each slave intercom in a first communication sub-cycle;
[0019] When it is determined that any slave intercom has not received the control data packet, the control data packet is retransmitted based on at least one second communication sub-cycle reserved for retransmission until all slave intercoms have received the control data packet.
[0020] In a possible implementation, the method further includes:
[0021] When it is determined that the second audio data packets returned from the intercom are received in sequence in the current communication cycle, each of the second audio data packets is decompressed into original audio data and then audio mixing is performed to obtain mixed audio data and then compressed to obtain a mixed audio data packet;
[0022] The mixed audio data packet is sent to each slave intercom in the next communication cycle.
[0023] In a second aspect, the present disclosure further provides a wireless communication method, applied to a first slave intercom, the method comprising:
[0024] Prepare to receive a first audio data packet sent by the master intercom within a first communication sub-cycle;
[0025] If it is determined that the first audio data packet is not received, returning a second audio data packet carrying a cancellation character NAK to the master intercom, so that the master intercom retransmits the first audio data packet based on at least one second communication sub-cycle reserved for retransmission until a retransmission cutoff condition is met;
[0026] The first communication sub-cycle and the at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each of the slave intercoms belong.
[0027] In a possible implementation, the method further includes:
[0028] A mixed audio data packet sent by the master intercom is received, wherein the mixed audio data packet is a data packet obtained by mixing the second audio data packets returned from the intercoms.
[0029] In a possible implementation, the method further includes:
[0030] Performing echo cancellation processing based on the currently received mixed audio data packet and the second audio data packet correspondingly returned by the first slave intercom to obtain an eliminated audio data packet;
[0031] The eliminated audio data packet is played.
[0032] In a third aspect, the present disclosure further provides a wireless communication device, applied to a master intercom, the device comprising:
[0033] A sending module, used for sending a first audio data packet to each slave intercom in a first communication sub-cycle;
[0034] A retransmission module is used to retransmit the first audio data packet based on at least one second communication sub-cycle reserved for retransmission when it is determined that any slave intercom has not received the first audio data packet, until a retransmission cutoff condition is met; the first communication sub-cycle and the at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong.
[0035] In a fourth aspect, the present disclosure further provides a wireless communication device, applied to a first slave intercom, the device comprising:
[0036] A receiving module, used for preparing to receive a first audio data packet sent by a master intercom within a first communication sub-cycle;
[0037] A return module is used to return a second audio data packet carrying a cancellation character NAK to the master intercom when it is determined that the first audio data packet has not been received, so that the master intercom retransmits the first audio data packet based on at least one second communication sub-cycle reserved for retransmission until the retransmission deadline condition is met; the first communication sub-cycle and the at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each of the slave intercoms belong.
[0038] In a fifth aspect, the present disclosure further provides a wireless communication system, the system comprising: a master intercom and a plurality of paired slave intercoms;
[0039] The master intercom is used to send a first audio data packet to each slave intercom within a first communication sub-cycle; when it is determined that any slave intercom has not received the first audio data packet, the first audio data packet is retransmitted based on at least one second communication sub-cycle reserved for retransmission until a retransmission cutoff condition is met; the first communication sub-cycle and the at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong;
[0040] Each of the slave intercoms is used to prepare to receive a first audio data packet sent by the master intercom within a first communication sub-cycle; if it is determined that the first audio data packet has not been received, return a second audio data packet carrying a cancellation character NAK to the master intercom.
[0041] In a possible implementation, the master intercom is used as a relay intercom to implement data transmission between any two slave intercoms when it is determined that the communication distance between the two slave intercoms is greater than a preset distance.
[0042] Using the above wireless communication method, device and system, the master intercom sends a first audio data packet to each slave intercom within the first communication sub-cycle, and when it is determined that any slave intercom has not received the first audio data packet, the first audio data packet is retransmitted based on at least one second communication sub-cycle reserved for retransmission until the retransmission cutoff condition is met; wherein the first communication sub-cycle and at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong. The communication cycle of the intercom system in the present disclosure is a targeted design based on the premise that the slave intercom can receive the data packet of the master intercom as much as possible, and the retransmission mechanism under the retransmission cutoff condition can ensure that the slave intercom receives the data packet of the master intercom in the current communication cycle or even the subsequent communication cycle. The retransmission cutoff condition here can be, for example, that all slave intercoms receive the data packet sent by the master intercom, or that the number of retransmissions is reached, etc., to ensure the integrity and reliability of the communication link between the master and slave intercoms, so that the intercom needs of complex scenes can be well met.
[0043] Other advantages of the present disclosure will be explained in more detail in conjunction with the following description and drawings.
[0044] It should be understood that the above description is only an overview of the technical solution of the present disclosure, so that the technical means of the present disclosure can be generally understood and then implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are specifically described below with examples. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the drawings only illustrate certain embodiments of the present disclosure and therefore should not be regarded as limiting the scope of protection. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work. Moreover, the same reference numerals are used to represent the same components throughout the drawings. In the drawings:
[0046] Figure 1 A schematic diagram of the architecture of a wireless communication system provided by an embodiment of the present disclosure is shown;
[0047] Figure 2 A link timing diagram of a wireless communication system provided by an embodiment of the present disclosure is shown;
[0048] Figure 3 A flow chart of a wireless communication method provided by an embodiment of the present disclosure is shown;
[0049] Figure 4 A flowchart of another wireless communication method provided by an embodiment of the present disclosure is shown;
[0050] Figure 5 A working principle diagram of a wireless communication method provided by an embodiment of the present disclosure is shown;
[0051] Figure 6 A schematic diagram of a wireless communication device provided by an embodiment of the present disclosure is shown;
[0052] Figure 7 A schematic diagram of another wireless communication device provided by an embodiment of the present disclosure is shown;
[0053] Figure 8 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0054] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0055] In the description of the embodiments of the present disclosure, it should be understood that terms such as "including" or "having" are intended to indicate the presence of the disclosed features, numbers, steps, behaviors, components, parts, or a combination thereof in the specification, and do not exclude the possibility of the presence of one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof.
[0056] Unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. The “and / or” in this article is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0057] The terms "first", "second", etc. are used only to distinguish the same or similar technical features for the convenience of description, and should not be understood as indicating or implying the relative importance or quantity of these technical features. Thus, the features defined by "first", "second", etc. may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present disclosure, unless otherwise specified, the term "plurality" means two or more than two.
[0058] After research, it was found that the existing multi-person network walkie-talkie system is mainly implemented in a broadcasting mode, that is, the walkie-talkie is only responsible for broadcasting digital or analog sound data at a fixed period and frequency, and the other end walkie-talkie plays the digital or analog signal after receiving it. Its working principle is that the master walkie-talkie (such as the walkie-talkie held by the commander) is responsible for sending the data packet first at the beginning of each cycle, and the slave walkie-talkies in the network (such as the walkie-talkies held by other team members) receive and send data signals in a defined order in turn to form the walkie-talkie function.
[0059] However, walkie-talkies in broadcast mode can only mechanically send broadcast packets regularly, without caring whether the remote walkie-talkies receive the broadcast packets. As a result, they cannot deal with the packet loss problem well, resulting in the possibility of poor communication in the entire walkie-talkie system and the inability to adapt well to the intercom needs, especially in complex scenarios.
[0060] In order to at least partially solve the above-mentioned problems and one or more of other potential problems, the present disclosure provides a wireless communication method, device and system, which can be implemented by adopting a network connection solution, and the walkie-talkie in the network can know whether the walkie-talkie at the other end has received the data packet, so as to judge whether retransmission is needed, and more reliable data transmission is achieved through the retransmission mechanism, thereby ensuring the smoothness of communication of the walkie-talkie system.
[0061] In order to facilitate understanding of the embodiments of the present disclosure, the wireless communication system provided by the embodiments of the present disclosure is first described in detail. Figure 1 As shown, the wireless communication system here mainly includes: a master intercom 11 and a plurality of paired slave intercoms 22;
[0062] The master intercom 11 is used to send a first audio data packet to each slave intercom 22 within a first communication sub-cycle; when it is determined that any slave intercom 22 has not received the first audio data packet, the first audio data packet is retransmitted based on at least one second communication sub-cycle reserved for retransmission until a retransmission cutoff condition is met; the first communication sub-cycle and at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom 11 and each slave intercom 22 belong;
[0063] Each slave intercom 22 is used to prepare to receive the first audio data packet sent by the master intercom 11 within the first communication sub-cycle; if it is determined that the first audio data packet is not received, return a second audio data packet carrying a cancel character to the master intercom 11.
[0064] In order to facilitate understanding of the wireless communication system provided by the embodiment of the present disclosure, the application scenario of the system is first briefly described. The wireless communication system here can be mainly applied to various application scenarios related to command and dispatch in groups, such as indoor live broadcast scenes, outdoor shooting scenes, outdoor search and rescue scenes, etc., and can also be other various scenes that require command and dispatch, and no specific restrictions are made here. Taking the outdoor search and rescue scene as an example, the commander can issue relevant dispatch tasks to each team member through his main intercom 11, and each team member can feedback the task completion status based on their respective slave intercoms 22.
[0065] Considering that the broadcasting scheme provided in the related art cannot clearly know the data reception status of the slave intercom 22 because the master intercom 11 cannot clearly know the data reception status of the intercom 22, this may lead to poor communication of the intercom system, especially in application scenarios such as outdoor search and rescue, which may bring great safety hazards. Based on this, the embodiment of the present disclosure provides a digital audio transmission system based on the retransmission mechanism, which realizes more reliable data and ensures the smooth communication of the intercom system.
[0066] Here, the entire communication cycle can be divided into multiple communication sub-cycles in advance, for example, it can be divided into a first communication sub-cycle for the first data transmission and reception, and a second communication sub-cycle for the second data transmission and reception, that is, the second communication sub-cycle can be a communication sub-cycle reserved for retransmission, mainly to ensure that the opposite end intercom, especially the slave intercom 22, can receive the first audio data packet sent by the master intercom 11. For an intercom system that conducts command and dispatch in groups, the instructions issued by the master intercom 11 are usually more meaningful for reference. Taking outdoor search and rescue as an example, the commander's task dispatching instructions are related to the timeliness and safety of the entire search and rescue process.
[0067] The first communication sub-cycle is mainly used to support the master intercom 11 to send data packets to the slave intercom 22, and it is also necessary to ensure that the data packets returned from the slave intercom 22 are received in the corresponding time slot; the second communication sub-cycle is used to support the master intercom 11 to resend data packets to the slave intercom 22 that has not received the data packets, that is, to retransmit data, thereby ensuring that each slave intercom 22 can receive the data packets sent by the master intercom 11.
[0068] For different business scenarios, the first audio data packet sent by the master intercom 11 is also different. Here, taking the outdoor search and rescue scenario as an example, the first audio data packet can be the search and rescue location information sent by the commander, so that each team member can go to and start the search and rescue work after knowing the search and rescue location; taking outdoor shooting as an example, the first audio data packet can be the photo posture information sent by the commander, so that the follow-up personnel can adjust the shooting posture of the shooter in real time.
[0069] Regardless of the application scenario, the wireless communication system in the embodiment of the present disclosure is an intercom system including a master intercom 11 and multiple paired slave intercoms 22. Each slave intercom 22 in the system can receive a first audio data packet sent by the master intercom 11 within a first communication sub-cycle. If it is determined that the first audio data packet is received, a second audio data packet carrying an acknowledgment character (ACK) is sent. If it is determined that the first audio data packet is not received, a second audio data packet carrying NAK (Negative Acknowledge) is returned.
[0070] When the master intercom 11 determines that the second audio data packet carrying NAK is received, it can determine to start the retransmission mechanism and then retransmit the first audio data packet based on at least one second communication sub-cycle reserved for retransmission until the retransmission cutoff condition is met.
[0071] The retransmission cutoff condition here may be, for example, that all slave intercoms 22 have received the first audio data packet sent by the master intercom 11, or that the number of retransmissions has been reached, or that the retransmission time has been met, etc. The embodiment of the present disclosure does not impose specific restrictions on this, and it can be determined based on actual transmission needs.
[0072] It should be noted that if there are still slave intercoms 22 that have not received the first audio data packet in the current communication cycle, the process can be repeated in the next communication cycle. In practical applications, the process can be designed to allow repetition up to 14 times.
[0073] The master intercom 11 in the embodiment of the present disclosure can also be used as a relay intercom, and when it is determined that the communication distance between any two slave intercoms 22 is greater than a preset distance, data transmission between the two slave intercoms 22 is realized. That is, the connection scheme provided in the embodiment of the present disclosure can also achieve the function of relaying data packets of other intercoms. In an intercom system composed of more than three devices, when the master intercom 11 stands at the center point and the slave intercoms 22 are at both ends of the master intercom 11, the relay function of the master intercom 11 can enable the intercoms at both ends to communicate, and truly double the distance.
[0074] In order to further understand the wireless communication system provided by the embodiment of the present disclosure, Figure 2 The timing diagram shown is expanded to illustrate how the entire system works.
[0075] like Figure 2As shown, the wireless communication system provided here adopts a 1-to-4 mode, that is, 1 master intercom is connected to 4 slave intercoms (i.e., slave intercom 1, slave intercom 2, slave intercom 3, slave intercom 4). The link timing is designed as a large cycle represented by Time1 (corresponding to a communication cycle), and the large cycle can be divided into 4 small cycles Time2 (corresponding to a first communication sub-cycle and three second communication sub-cycles).
[0076] In the first small cycle, the master intercom sends once, and all slave intercoms turn on the radio frequency (RF) transceiver to receive. Then the master intercom turns on RF and receives the data packets sent by each slave intercom in the corresponding time slot in turn. The slave intercom only needs to send its own voice data packet each time (which can carry characters such as ACK or NAK). When the master intercom receives the data packet from the slave intercom, it can know whether the slave intercom has received the packet from the master intercom. After that, the master intercom can send a mixed audio data packet of the master intercom itself plus the voice of all slave intercoms. When the master intercom confirms that the slave intercom has not received the data packet from the master intercom, the master intercom can retransmit the same data packet in the next / next few small cycles.
[0077] In the embodiment of the present disclosure, when the intercom is successfully connected and link communication is achieved, the transmitting end can know whether the receiving end has received the data packet. When the communication is attempted a certain number of times in the same cycle and the receiving end still does not receive the data packet, the connection solution can be delayed, that is, continue to send the same data packet in the next large cycle, repeat several cycles (the more repetitions, the greater the sound delay) until the receiving end receives the data packet, or discard the data packet after several repetitions.
[0078] To facilitate further understanding of the embodiments of the present disclosure, a wireless communication method disclosed in an embodiment of the present disclosure will be described in detail below. The execution subject of the wireless communication method provided in the embodiment of the present disclosure is generally an electronic device with certain computing capabilities, and the electronic device includes, for example: a terminal device or other processing device, and the terminal device may be a user equipment (User Equipment, UE), a mobile device, a wearable device, etc.
[0079] The wearable device here is, for example, a wireless Bluetooth headset device with an intercom function. In actual applications, the master Bluetooth headset can correspond to the master intercom, and the slave Bluetooth headset can correspond to the slave intercom. In some possible implementations, the wireless communication method can be implemented by a processor calling a computer-readable instruction stored in a memory.
[0080] See also Figure 3, which shows a flow chart of a wireless communication method provided by an embodiment of the present disclosure. The execution subject of the method is a master intercom, and the method includes the following steps S301-S302:
[0081] S301: Sending a first audio data packet to each slave intercom within a first communication sub-cycle;
[0082] S302: When it is determined that any slave intercom has not received the first audio data packet, the first audio data packet is retransmitted based on at least one second communication sub-cycle reserved for retransmission until a retransmission deadline condition is met; the first communication sub-cycle and at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong.
[0083] For the relevant description of the communication cycle, please refer to the above content and will not be repeated here.
[0084] Combination Figure 2 As shown in the link timing diagram, in the first small cycle, the master intercom can send the first audio data packet to each slave intercom in the corresponding sending time slot, and prepare to receive the data packets sent by each slave intercom in the corresponding receiving time slot, such as receiving the data packet sent from intercom 1 in the first receiving time slot, receiving the data packet sent from intercom 2 in the second receiving time slot, and so on.
[0085] Here, when the master intercom determines that any slave intercom has not received the first audio data packet, at least one second communication sub-cycle (such as Figure 2 The first audio data packet is retransmitted in the second small period, the third small period and the fourth small period shown in the figure until the retransmission deadline condition is met.
[0086] For the retransmission cut-off conditions, please refer to the above description and will not be elaborated here.
[0087] It should be noted that if it is determined that slave intercom 1 has not received the first audio data packet sent by the master intercom, at this time, the first audio data packet will be resent to all slave intercoms including slave intercom 1 in the next second communication sub-cycle, but only slave intercom 1 will process the first audio data packet. Since other slave intercoms have completed the reception of the first audio data packet in the first small cycle, they will not be processed separately.
[0088] The retransmission reserved time length for data retransmission in the disclosed embodiment can be predetermined, that is, each data transmission requires a specific time length and a specific number of retransmission reserved bits; in addition, the retransmission reserved bits can be adaptively adjusted according to the data transmission situation. For example, in the current communication mini-cycle, if all slave intercoms have received the data packets from the master intercom, the subsequent retransmission reserved bits can be cancelled. On the contrary, if there are slave intercoms that have not received the data packets from the master intercom, additional retransmission reserved bits can be set. Here, considering the stability of the data link, it can be as follows Figure 2 As shown, a specific duration and a specific number of retransmission reserved bits are used.
[0089] The number of retransmission reserved bits can be set in combination with the number of slave intercoms. Taking a 1-to-4 intercom system as an example, 4 slave intercoms can be set with 3 second communication sub-cycles to support the setting of retransmission reserved bits.
[0090] In practical applications, the number of slave intercoms is related to the number of sub-cycles allocated in a single communication cycle time slot, that is, more slave intercoms can be set with a greater number of sub-cycles.
[0091] In the embodiment of the present disclosure, the following steps may be used to determine whether any slave intercom has received the first audio data packet:
[0092] Step 1: for any slave intercom, receiving a second audio data packet returned from the intercom in a communication time slot corresponding to the slave intercom;
[0093] Step 2: When the second audio data packet carries a cancel character NAK, it is determined that the first audio data packet is not received from the intercom.
[0094] Here, the master intercom can receive the second audio data packet returned by the corresponding slave intercom in the corresponding receiving time slot. If the second audio data packet carries NAK, it can be determined that the slave intercom has not received the first audio data packet sent by the master intercom. Then, the data packet can be retransmitted through the retransmission mechanism.
[0095] The wireless communication method provided in the embodiment of the present disclosure not only supports retransmission in the current communication cycle, but also supports retransmission in more communication cycles, which can be implemented according to the following steps:
[0096] Step 1: after retransmission within a communication cycle, determine whether there is still a slave intercom that has not received the first audio data packet;
[0097] Step 2: If there are still slave intercoms that have not received the first audio data packet, retransmission continues in the next communication cycle until a retransmission cutoff condition is met.
[0098] That is, after determining to retransmit in the current communication cycle, if it is determined that there are still slave intercoms that have not received the first audio data packet, the embodiment of the present disclosure will continue to retransmit in the next communication cycle. The embodiment of the present disclosure can support multiple retransmissions, for example, 14 times, thereby further ensuring the reliability and integrity of data transmission.
[0099] In addition, if the current master intercom transmits a control data packet instead of an audio data packet, the number of retransmissions can be uncontrolled and continuous transmission can be maintained until all slave intercoms receive the control data packet. This is mainly to ensure the control function of the master control position where the master intercom is located to avoid uncontrollable situations in actual application scenarios.
[0100] The wireless communication method provided by the embodiment of the present disclosure, when determining that the second audio data packets returned by each slave intercom are received in sequence in the current communication cycle, decompresses each second audio data packet into original audio data and then performs audio mixing to obtain the mixed audio data and compress it to obtain a mixed audio data packet; then, in the next communication cycle, the mixed audio data packet is sent to each slave intercom. That is, in the link design provided by the embodiment of the present disclosure, after the master intercom performs high-bitrate audio data mixing, it will send out all the data packets of the slave intercom at one time, which can save the communication bandwidth requirements of the master intercom without significantly affecting the sound quality, and achieve full-duplex audio communication for multiple people.
[0101] See also Figure 4 , which shows a flow chart of a wireless communication method provided by an embodiment of the present disclosure, the execution subject of the method is a first slave intercom, and the method includes the following steps S401-S402:
[0102] S401: preparing to receive a first audio data packet sent by a master intercom within a first communication sub-cycle;
[0103] S402: When it is determined that the first audio data packet is not received, a second audio data packet carrying a cancellation character NAK is returned to the master intercom, so that the master intercom retransmits the first audio data packet based on at least one second communication sub-cycle reserved for retransmission until the retransmission deadline condition is met; the first communication sub-cycle and at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong.
[0104] For the relevant description of the communication cycle, please refer to the above content and will not be repeated here.
[0105] Combination Figure 2As shown in the link timing diagram, in the first small cycle, the master intercom can send the first audio data packet to each slave intercom in the corresponding sending time slot, and prepare to receive the data packets sent by each slave intercom in the corresponding receiving time slot, such as receiving the data packet sent from intercom 1 in the first receiving time slot, receiving the data packet sent from intercom 2 in the second receiving time slot, and so on.
[0106] If the first slave intercom here is used as slave intercom 1, a data packet is sent to the master intercom in the first receiving time slot of the master intercom. If the first slave intercom here is used as slave intercom 2, a data packet is sent to the master intercom in the second receiving time slot of the master intercom, and so on.
[0107] No matter which slave intercom receives the first audio data packet sent by the master intercom in the sending time slot of the master intercom. If it is determined that the first audio data packet is not received, the second audio data packet carrying the cancellation character NAK is returned to the master intercom, so that the master intercom retransmits the first audio data packet based on at least one second communication sub-cycle reserved for retransmission until it is determined that each slave intercom including the first slave intercom receives the first audio data packet.
[0108] For the specific implementation of the retransmission mechanism, please refer to the above Figure 2 And the related description content will not be repeated here.
[0109] Considering that the master intercom will send all the data packets from the intercom at one time, the mixed audio data packets sent by the master intercom received by the intercom contain the data packets of its own voice. At this time, it is necessary to achieve more friendly intercom communication based on echo cancellation, which can be achieved through the following steps:
[0110] Step 1: performing echo cancellation processing based on the currently received mixed audio data packet and the second audio data packet correspondingly returned by the first slave intercom to obtain an eliminated audio data packet;
[0111] Step 2: Play and eliminate audio data packets.
[0112] Through echo cancellation processing, the audio data packet played from the intercom eliminates its own sound, which not only saves bandwidth but also further improves the fluency of data communication.
[0113] Here, in order to further understand the wireless communication method provided by the embodiment of the present disclosure, the coordination workflow between the master intercom and the slave intercom in actual application is described in combination with the link delay situation.
[0114] like Figure 5The example stage work diagram corresponds to the seven stages of work delay. The master intercom (Center, CT) starts to send the voice data of the previous cycle to all slave intercoms (Router, RT) at the first communication time slot (such as Sub slot0) of each cycle, and all RTs receive the data sent by CT in Sub slot0.
[0115] Then CT starts to receive data from RT1 in the second communication time slot (such as Sub slot1), and receives data from RT2 in the second communication time slot (such as Sub slot2), and so on. After receiving the data, CT will decode and mix each RT data received (the purpose of this step is to play the RT sound), and then play and re-encode it to prepare the data to be sent in the next cycle. Each RT decodes and plays after receiving the data packet.
[0116] It should be noted that in actual applications, the master intercom can be replaced. For example, when the existing master intercom is offline, a new master intercom can be randomly generated, or a specific action of the user interface (UI), such as pressing a button, can be used to determine who is the master intercom.
[0117] In the description of this specification, the description with reference to the terms "some possible embodiments", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure, and the above terms do not necessarily represent the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0118] About the method flow chart of the embodiment of the present disclosure, some operations are described as different steps performed in a certain order. Such a flow chart is illustrative and not restrictive. Some steps described in this article can be grouped together and performed in a single operation, or some steps can be divided into multiple sub-steps, and some steps can be performed in an order different from that shown in this article. The various steps shown in the flow chart can be implemented in any way by any circuit structure and / or tangible mechanism (for example, by software running on a computer device, hardware (for example, a logical function implemented by a processor or a chip), etc., and / or any combination thereof).
[0119] Those skilled in the art will appreciate that, in the method described in the above specific implementation, the writing order of each step does not mean a strict execution order, and the specific execution order of each step should be determined by its function and possible internal logic.
[0120] Based on the same inventive concept, a wireless communication device corresponding to the wireless communication method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned wireless communication method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0121] Reference Figure 6 FIG. 6 is a schematic diagram of a wireless communication device provided by an embodiment of the present disclosure, the device comprising: a sending module 601 and a retransmission module 602; wherein,
[0122] The sending module 601 is used to send a first audio data packet to each slave intercom in a first communication sub-cycle;
[0123] The retransmission module 602 is used to retransmit the first audio data packet based on at least one second communication sub-cycle reserved for retransmission when it is determined that any slave intercom has not received the first audio data packet, until the retransmission deadline condition is met; the first communication sub-cycle and at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong.
[0124] In the disclosed embodiment, the master intercom sends a first audio data packet to each slave intercom within a first communication sub-cycle. When it is determined that any slave intercom has not received the first audio data packet, the first audio data packet is retransmitted based on at least one second communication sub-cycle reserved for retransmission until a retransmission cutoff condition is met; wherein the first communication sub-cycle and at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong. The communication cycle of the intercom system in the disclosed embodiment is a targeted design based on the premise that the slave intercom can receive the data packet of the master intercom as much as possible. Combined with the retransmission mechanism, it can ensure that the slave intercom receives the data packet of the master intercom in the current communication cycle or even in the subsequent communication cycle, ensuring the integrity and reliability of the communication link between the master and slave intercoms, so as to well cope with the intercom needs of complex scenarios in particular.
[0125] In a possible implementation manner, the number of slave intercoms is related to the number of sub-cycles allocated in a single communication cycle time slot.
[0126] In a possible implementation manner, when each slave intercom corresponds to a communication time slot in the first communication sub-cycle, the retransmission module 602 is used to determine that any slave intercom has not received the first audio data packet according to the following steps:
[0127] For any slave intercom, receiving a second audio data packet returned from the intercom in a communication time slot corresponding to the slave intercom;
[0128] In the case where the second audio data packet carries the cancel character NAK, it is determined that the first audio data packet is not received from the intercom.
[0129] In a possible implementation manner, the retransmission module 602 is further configured to:
[0130] After retransmission within a communication cycle, determining whether there is still a slave intercom that has not received the first audio data packet;
[0131] If there is still a slave intercom that has not received the first audio data packet, retransmission continues in the next communication cycle until the retransmission deadline condition is met.
[0132] In a possible implementation manner, the sending module 601 is further configured to:
[0133] Sending a control data packet to each slave intercom in a first communication sub-cycle;
[0134] The retransmission module 602 is further configured to:
[0135] When it is determined that any slave intercom has not received the control data packet, the control data packet is retransmitted based on at least one second communication sub-cycle reserved for retransmission until all slave intercoms have received the control data packet.
[0136] In a possible implementation, it further includes:
[0137] The mixing module 603 is used to, when determining that the second audio data packets returned from each intercom are received in sequence within the current communication cycle, decompress each second audio data packet into original audio data and then perform audio mixing to obtain the mixed audio data and compress it to obtain a mixed audio data packet; and send the mixed audio data packet to each intercom in the next communication cycle.
[0138] Reference Figure 7 FIG. 1 is a schematic diagram of a wireless communication device provided by an embodiment of the present disclosure, the device comprising: a receiving module 701 and a returning module 702; wherein,
[0139] The receiving module 701 is used for preparing to receive a first audio data packet sent by a master intercom in a first communication sub-cycle;
[0140] The return module 702 is used to return a second audio data packet carrying a cancellation character NAK to the master intercom when it is determined that the first audio data packet has not been received, so that the master intercom retransmits the first audio data packet based on at least one second communication sub-cycle reserved for retransmission until the retransmission deadline condition is met; the first communication sub-cycle and at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong.
[0141] In a possible implementation manner, the receiving module 701 is further configured to:
[0142] A mixed audio data packet sent by a master intercom is received, where the mixed audio data packet is a data packet obtained by mixing the second audio data packets returned from the intercoms.
[0143] In a possible implementation, it further includes:
[0144] The playing module 703 is used to perform echo cancellation processing based on the currently received mixed audio data packet and the second audio data packet correspondingly returned by the first slave intercom to obtain an eliminated audio data packet; and play the eliminated audio data packet.
[0145] It should be noted that the device in the embodiment of the present disclosure can implement each process of the embodiment of the aforementioned method and achieve the same effects and functions, which will not be repeated here.
[0146] Corresponds to Figure 3 or Figure 4 The wireless communication method in the present disclosure also provides an electronic device, such as Figure 8 FIG. 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, including:
[0147] Processor 801, memory 802, and bus 803; memory 802 is used to store execution instructions, including memory 8021 and external memory 8022; memory 8021 here is also called internal memory, which is used to temporarily store the operation data in the processor 801 and the data exchanged with the external memory 8022 such as a hard disk. The processor 801 exchanges data with the external memory 8022 through the memory 8021. When the electronic device is running, the processor 801 communicates with the memory 802 through the bus 803, so that the processor 801 executes the following instructions:
[0148] Sending a first audio data packet to each slave intercom in a first communication sub-cycle;
[0149] When it is determined that any slave intercom has not received the first audio data packet, retransmit the first audio data packet based on at least one second communication sub-period reserved for retransmission until a retransmission cutoff condition is met;
[0150] The first communication sub-cycle and at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong;
[0151] Or execute the following command:
[0152] Prepare to receive a first audio data packet sent by the master intercom within a first communication sub-cycle;
[0153] If it is determined that the first audio data packet is not received, return a second audio data packet carrying a cancellation character NAK to the master intercom, so that the master intercom retransmits the first audio data packet based on at least one second communication sub-cycle reserved for retransmission until a retransmission cutoff condition is met;
[0154] The first communication sub-cycle and at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong.
[0155] The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the wireless communication method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0156] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the wireless communication method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0157] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0158] Each embodiment in the present disclosure is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, their descriptions are simplified, and the relevant parts can be referred to the partial description of the method embodiments.
[0159] The apparatus, equipment and computer-readable storage medium provided in the embodiments of the present disclosure correspond one-to-one to the method. Therefore, the apparatus, equipment and computer-readable storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the apparatus, equipment and computer-readable storage medium will not be repeated here.
[0160] It should be understood by those skilled in the art that the embodiments of the present disclosure can be implemented in the form of methods and apparatus (devices or systems), or computer-readable storage media. Therefore, the present disclosure can be implemented in a complete hardware implementation, a complete software implementation, or an implementation that combines software and hardware. Moreover, the present disclosure can be implemented in the form of a computer-readable storage medium implemented on one or more computer-usable storage media (including but not limited to disk storage, read-only compact disk storage (CD-ROM), optical storage, etc.) containing computer-usable program code.
[0161] The present disclosure is described with reference to the flowchart and / or block diagram of the method, device (equipment or system) and computer-readable storage medium according to the embodiment of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0162] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, wherein the instruction device implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0163] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0164] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0165] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash memory (Flash RAM). The memory is an example of a computer-readable medium.
[0166] Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory, read-only memory, electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. In addition, although the operations of the disclosed method are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. In addition, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple sub-steps.
[0167] Although the spirit and principle of the present disclosure have been described above with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.
Claims
1. A wireless communication method, characterized in that: Applied to a master intercom, the method comprises: Sending a first audio data packet to each slave intercom in a first communication sub-cycle; When it is determined that any slave intercom has not received the first audio data packet, retransmit the first audio data packet based on at least one second communication sub-period reserved for retransmission until a retransmission cutoff condition is met; The first communication sub-cycle and the at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each of the slave intercoms belong.
2. The method according to claim 1, characterized in that The number of slave intercoms is related to the number of sub-cycles allocated in a single communication cycle time slot.
3. The method according to claim 1 or 2, characterized in that: In the case where each slave intercom corresponds to a communication time slot in the first communication sub-cycle, the following steps are followed to determine whether any slave intercom has received the first audio data packet: For any slave intercom, receiving a second audio data packet returned by the slave intercom in a communication time slot corresponding to the slave intercom; In the case that the second audio data packet carries a cancel character NAK, it is determined that the slave intercom has not received the first audio data packet.
4. The method according to claim 1 or 2, characterized in that: After retransmitting the first audio data packet based on at least one second communication sub-cycle reserved for retransmission, the method further includes: After retransmission within a communication cycle, determining whether there is still a slave intercom that has not received the first audio data packet; If there is still a slave intercom that has not received the first audio data packet, retransmission continues in the next communication cycle until the retransmission deadline condition is met.
5. The method according to claim 1 or 2, characterized in that: The method further comprises: Sending a control data packet to each slave intercom in a first communication sub-cycle; When it is determined that any slave intercom has not received the control data packet, the control data packet is retransmitted based on at least one second communication sub-cycle reserved for retransmission until all slave intercoms have received the control data packet.
6. The method according to claim 1 or 2, characterized in that: The method further comprises: When it is determined that the second audio data packets returned from the intercom are received in sequence in the current communication cycle, each of the second audio data packets is decompressed into original audio data and then audio mixing is performed to obtain mixed audio data and then compressed to obtain a mixed audio data packet; The mixed audio data packet is sent to each slave intercom in the next communication cycle.
7. A wireless communication method, characterized in that: Applied to a first slave intercom, the method comprises: Prepare to receive a first audio data packet sent by the master intercom within a first communication sub-cycle; If it is determined that the first audio data packet is not received, returning a second audio data packet carrying a cancellation character NAK to the master intercom, so that the master intercom retransmits the first audio data packet based on at least one second communication sub-cycle reserved for retransmission until a retransmission cutoff condition is met; The first communication sub-cycle and the at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each of the slave intercoms belong.
8. The method according to claim 7, characterized in that The method further comprises: A mixed audio data packet sent by the master intercom is received, wherein the mixed audio data packet is a data packet obtained by mixing the second audio data packets returned from the intercoms.
9. The method according to claim 8, characterized in that The method further comprises: Performing echo cancellation processing based on the currently received mixed audio data packet and the second audio data packet correspondingly returned by the first slave intercom to obtain an eliminated audio data packet; The eliminated audio data packet is played.
10. A wireless communication device, characterized in that: Applied to a master intercom, the device comprises: A sending module, used for sending a first audio data packet to each slave intercom in a first communication sub-cycle; A retransmission module is used to retransmit the first audio data packet based on at least one second communication sub-cycle reserved for retransmission when it is determined that any slave intercom has not received the first audio data packet, until a retransmission cutoff condition is met; the first communication sub-cycle and the at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong.
11. A wireless communication device, characterized in that: Applied to a first slave intercom, the device comprises: A receiving module, used for preparing to receive a first audio data packet sent by a master intercom within a first communication sub-cycle; A return module is used to return a second audio data packet carrying a cancellation character NAK to the master intercom when it is determined that the first audio data packet has not been received, so that the master intercom retransmits the first audio data packet based on at least one second communication sub-cycle reserved for retransmission until the retransmission deadline condition is met; the first communication sub-cycle and the at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each of the slave intercoms belong.
12. A wireless communication system, characterized in that: The system comprises: a master intercom and a plurality of paired slave intercoms; The master intercom is used to send a first audio data packet to each slave intercom within a first communication sub-cycle; when it is determined that any slave intercom has not received the first audio data packet, the first audio data packet is retransmitted based on at least one second communication sub-cycle reserved for retransmission until a retransmission cutoff condition is met; the first communication sub-cycle and the at least one second communication sub-cycle form a communication cycle for the intercom system to which the master intercom and each slave intercom belong; Each of the slave intercoms is used to prepare to receive a first audio data packet sent by the master intercom within a first communication sub-cycle; if it is determined that the first audio data packet is not received, return a second audio data packet carrying a cancellation character NAK to the master intercom.
13. The system according to claim 12, characterized in that The master intercom is used as a relay intercom to realize data transmission between any two slave intercoms when it is determined that the communication distance between the two slave intercoms is greater than a preset distance.