WO2021232389A1 - 数据通信方法、系统、电子设备、芯片和存储介质 - Google Patents

数据通信方法、系统、电子设备、芯片和存储介质 Download PDF

Info

Publication number
WO2021232389A1
WO2021232389A1 PCT/CN2020/091707 CN2020091707W WO2021232389A1 WO 2021232389 A1 WO2021232389 A1 WO 2021232389A1 CN 2020091707 W CN2020091707 W CN 2020091707W WO 2021232389 A1 WO2021232389 A1 WO 2021232389A1
Authority
WO
WIPO (PCT)
Prior art keywords
receiving end
data
communication
communication channel
sent
Prior art date
Application number
PCT/CN2020/091707
Other languages
English (en)
French (fr)
Inventor
刘飞
陈德坤
银国超
周俊
谢龙
陈法海
李庆斌
Original Assignee
深圳市汇顶科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to PCT/CN2020/091707 priority Critical patent/WO2021232389A1/zh
Publication of WO2021232389A1 publication Critical patent/WO2021232389A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services

Definitions

  • This application relates to the field of communication technology, and in particular to a data communication method, system, electronic device, chip, and storage medium.
  • the purpose of some embodiments of this application is to provide a data communication method, system, electronic device, chip, and storage medium, which can complete the first one without establishing a wireless communication connection between the first receiving end and the second receiving end.
  • the data communication between the receiving end and the second receiving end avoids the time-consuming and complicated process of establishing a wireless communication connection between the first receiving end and the second receiving end, so that the first receiving end and the second receiving end
  • the data communication between is more convenient.
  • the embodiment of the present application provides a data communication method applied to the sending end, including: after establishing a wireless communication connection with the preset first receiving end, notifying the connection information to the preset second receiving end;
  • the connection information includes: information of a communication channel for wireless communication between the sending end and the first receiving end; the connection information is used to instruct the second receiving end to monitor the communication data in the communication channel;
  • the second receiving end monitors the communication data, it sends the data that needs to be sent to the first receiving end to the communication channel; the first time period during which the sending end sends data in the communication channel
  • the second time period during which the second receiving end sends data in the communication channel does not overlap with each other.
  • the embodiment of the present application provides a data communication method, which is applied to the first receiving end, including: after establishing a wireless communication connection with the sending end, notifying connection information to a preset second receiving end; wherein, the connection information It includes: information about the communication channel for wireless communication between the sending end and the first receiving end; the connection information is used to instruct the second receiving end to monitor the communication data in the communication channel; when the The second receiving end listens to the communication data, and sends the data to be sent to the first receiving end to the communication channel; the first time period when the sending end sends data in the communication channel and the The second time period during which the second receiving end sends data in the communication channel does not overlap with each other.
  • the embodiment of the present application also provides a data communication method, applied to the second receiving end, including: receiving connection information; wherein the sending end establishes a wireless communication connection with the preset first receiving end and notifies the connection information
  • the connection information includes: information about a communication channel for wireless communication between the sending end and the first receiving end; the connection information is used to instruct the second receiving end to monitor communication in the communication channel Data; monitor the communication data in the communication channel; send the data that needs to be sent to the first receiving end to the communication channel; wherein, the first time period during which the sending end sends data in the communication channel The second time period during which the second receiving end sends data in the communication channel does not overlap with each other.
  • An embodiment of the present application also provides a data communication system, including: a sending end, a first receiving end, and a second receiving end; after the sending end establishes a wireless communication connection with the preset first receiving end, the sending end Or the first receiving end is used to notify the preset second receiving end of connection information; wherein, the connection information includes: the information of the communication channel for wireless communication between the sending end and the first receiving end Information; the connection information is used to instruct the second receiving end to monitor the communication data in the communication channel; the second receiving end is used to monitor the communication data in the communication channel and send it to the The data of the first receiving end is sent to the communication channel; wherein, the first time period during which the sending end sends data in the communication channel and the first time period during which the second receiving end sends data in the communication channel The two time periods do not overlap with each other.
  • An embodiment of the present application also provides an electronic device, including: at least one processor; Instruction, the instruction is executed by the at least one processor; when the electronic device is the sending end, the at least one processor can execute the above-mentioned data communication method applied to the sending end; when the electronic device is the first At the receiving end, the at least one processor can be applied to the data communication method of the first receiving end as described above; when the electronic device is the second receiving end, the at least one processor can be applied to the data communication method of the second receiving end as described above. Data communication method.
  • An embodiment of the present application also provides a chip, including: at least one processor; and a memory communicatively connected with the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor The instructions are executed by the at least one processor, so that the at least one processor can execute the above-mentioned data communication method applied to the sending end, or execute the above-mentioned data communication method applied to the first receiving device, or execute The above-mentioned data communication method applied to the second receiving device.
  • the embodiments of the present application also provide a computer-readable storage medium that stores a computer program that, when executed by a processor, implements the above-mentioned data communication method applied to the sending end, or the above-mentioned data communication method applied to the first receiving end Data communication method, or implement the above-mentioned data communication method applied to the second receiving end.
  • the inventor of the present application found that the prior art has at least the following problems:
  • data communication is based on wireless communication connections established between each other, and wireless communication connections require multiple wireless receiving devices to be established through wireless communication protocols, so that the establishment
  • the wireless communication connection process is time-consuming and complicated, which leads to inconvenience in data communication between multiple wireless receiving devices.
  • connection information includes: the difference between the sending end and the first receiving end.
  • the information of the communication channel for wireless communication between the two, and the connection information is used to instruct the second receiving end to monitor the communication data in the communication channel, so that the second receiving end can monitor the communication between the sending end and the first receiving end after receiving the connection information.
  • the communication data in the communication channel, so that the second receiving end can obtain the data sent by the first receiving end by monitoring the communication channel.
  • the second receiving end sends the data that needs to be sent to the first receiving end to the communication channel, so that the first receiving end can receive the data sent by the second receiving end in the communication channel.
  • the first time period and the second time period do not overlap each other, that is, both the sending end and the second receiving end can send data to the first receiving end through the communication channel, but the sending end and the second receiving end send data in different time periods.
  • Data so that the data sent by the sending end and the second receiving end in the communication channel do not interfere with each other, so that the first receiving end can accurately receive and recognize the data sent by the second receiving end. Therefore, the embodiment of the present application can complete the data communication between the first receiving end and the second receiving end without establishing a wireless communication connection between the first receiving end and the second receiving end, so that the first receiving end and the second receiving end
  • the second receiving end is more convenient for data communication.
  • the method further includes: sending data to the first receiving end through the communication channel within the first time period; the connection information It is used to instruct the second receiving end to monitor the data sent by the sending end in the communication channel; when the second receiving end monitors the data sent by the sending end, it will The data that needs to be sent to the first receiving end is sent to the communication channel; wherein, the data that needs to be sent to the first receiving end is used to characterize the data sent by the sending end that the second receiving end listens to Is the data correct?
  • the second receiving end can obtain the data from the monitored communication channel, and send the data in the communication channel to characterize the second receiving end.
  • the data is correct.
  • the second receiving end can obtain the data sent by the sending end without establishing a wireless communication connection with the sending end, and the first receiving end can know that the second receiving end does not need to establish a wireless communication connection with the second receiving end. Whether the data obtained by the receiving end is correct.
  • the data sent by the sending end is data to be synchronized
  • the method further includes: if the confirmation information sent by the first receiving end is received, determining that the first receiving end and the second receiving end are completed Data synchronization; wherein the confirmation information is information sent by the first receiving end when a preset condition is met; the preset condition is that the first receiving end receives preset data from the second receiving end And the first receiving end determines that the received data to be synchronized is correct, and the preset data is used to characterize that the data to be synchronized monitored by the second receiving end is correct.
  • the first time period and the second time period are obtained by dividing a preset time slice, and the preset time slice is a predetermined time slice for the first receiving end to receive data.
  • the first receiving end can receive the data sent by the sending end and the data sent by the second receiving end in the same time slice, so that the first receiving end can quickly obtain the data sent by the sending end and the data sent by the second receiving end.
  • the wireless communication connection established by the sending end and the first receiving end is: a wireless communication connection established based on a preset private protocol; the duration of the preset time slice is determined according to the number of the second receiving end , The preset time slice is a predetermined time slice for the first receiving end to receive data.
  • the duration of the preset time slice can be customized in advance, so that the preset time slice can have sufficient time length, allowing multiple second receivers to send data in the communication channel, which is beneficial to actual needs Meet the need for data synchronization between multiple receivers.
  • the number of the second receiving end is N, and the N is a natural number greater than 1;
  • the connection information is used to instruct the N second receiving ends to monitor the communication data in the communication channel, and according to the preset
  • the data that needs to be sent to the first receiving end are sent to the communication channel in the order set. That is to say, when there are multiple second receiving ends, the multiple second receiving ends send data in the communication channel according to the preset order, so as to communicate with the first receiving end, which is conducive to satisfying multiple receiving ends according to actual needs. The need for data communication between terminals.
  • the wireless communication connection is a Bluetooth connection
  • the notification of the connection information to the preset second receiving end includes: notifying the connection information to the preset second receiving end in the form of broadcast.
  • Bluetooth connection power consumption is low, and the connection information is notified to the preset second receiving end in the form of broadcast, so that the second receiving end can receive the connection information without establishing a wireless communication connection with the sending device.
  • Fig. 1 is a flowchart of a data communication method according to the first embodiment of the present application
  • FIG. 2 is a schematic diagram of communication among the sending end, the second receiving end, and the first receiving end according to the first embodiment of the present application;
  • Fig. 3 is a flowchart of a data communication method according to a second embodiment of the present application.
  • FIG. 4 is a schematic diagram of communication between the speaker 1, the speaker 2 and the audio source 3 in the second embodiment of the present application;
  • FIG. 5 is a schematic diagram of a communication process in which the speaker 1 and the speaker 2 both receive correct audio data packets in the second embodiment of the present application;
  • FIG. 6 is a schematic diagram of a communication process in which the audio data packet received by the speaker 2 in the second embodiment of the present application is an erroneous audio data packet;
  • FIG. 7 is a schematic diagram of a communication process in which the speaker 1 receives only audio data packets but not the data sent by the speaker 2 according to the second embodiment of the present application;
  • FIG. 8 is a schematic diagram of a communication process in which the speaker 1 does not receive any data according to the second embodiment of the present application;
  • Fig. 9 is a flowchart of a data communication method according to a third embodiment of the present application.
  • Fig. 10 is a flowchart of a data communication method according to a fourth embodiment of the present application.
  • Fig. 11 is a schematic diagram of a data communication system according to a fifth embodiment of the present application.
  • Fig. 12 is a schematic structural diagram of an electronic device in a sixth embodiment according to the present application.
  • FIG. 13 is a schematic diagram of the structure of a chip in a seventh embodiment according to the present application.
  • the first embodiment of the present application relates to a data communication method, which is applied to the sending end.
  • the data communication between the first receiving end and the second receiving end can be completed without establishing a wireless connection between the first receiving end and the second receiving end.
  • the implementation details of this embodiment will be described in detail below. The following content is only provided for ease of understanding and is not necessary for implementing this solution.
  • the application scenario of this embodiment can be understood as: data communication between the sending end and multiple receiving ends, and data communication between the multiple receiving ends.
  • the sending end and the receiving end may be chips or electronic devices, however, this embodiment does not specifically limit this.
  • the sending end can be an audio source, such as a terminal that can send audio, such as a mobile phone or a tablet computer, and the receiving end can be a speaker.
  • the speaker can be understood as an electronic device with a sound energy converter, such as a headset or a speaker.
  • the number of receiving ends can be multiple, such as two wireless earphones worn on the left and right ears, and multiple speakers placed in different places.
  • the sending end can be a robotic arm controller, and the receiving end can be a robotic arm.
  • the number of robotic arms can be multiple, and multiple robotic arms can cooperate to complete related operation tasks. It should be noted that the foregoing two examples only provide possible implementation forms of the sending end and the receiving end for the convenience of understanding, and the sending end and the receiving end are not limited to the foregoing examples in specific implementation.
  • the specific process of the data communication method in this embodiment may be as shown in FIG. 1, including:
  • Step 101 Establish a wireless communication connection with a preset first receiving end.
  • the preset first receiving end may be one receiving end selected in advance from at least two receiving ends.
  • a wireless communication connection can be established between the sending end and the first receiving end through a preset communication protocol.
  • the preset communication protocol may be: a standard wireless protocol or a private protocol, or a combination of a standard wireless protocol and a private protocol.
  • the private protocol is a protocol customized according to actual needs, such as a protocol developed by a manufacturer.
  • the standard wireless protocol is the protocol defined by the standardization organization and is recognized by the standardization organization.
  • the wireless communication connection established between the sending end and the first receiving end may be a Bluetooth connection, a wireless fidelity (Wireless-Fidelity, WIFI for short) connection, or the like.
  • Step 102 Notify the preset second receiving end of the connection information.
  • the preset second receiving end may be the remaining receiving end after selecting one of the at least two receiving ends as the first receiving end in advance.
  • the remaining receiving ends may be one or multiple, that is, in specific implementation, the number of second receiving ends may be one or multiple. If the number of second receiving ends is N, and N is a natural number greater than 1, the sending end may notify the N second receiving ends of the connection information in this step.
  • this embodiment does not specifically limit the number of second receiving ends, and can be set according to actual needs.
  • the sending end may notify the preset second receiving end of the connection information by broadcasting. That is to say, after the sending end establishes a wireless communication connection with the first receiving end, it notifies the preset second receiving end of the connection information of the established connection between the sending end and the first receiving end in a broadcast manner.
  • the sending end can notify the second receiving end of the connection information without establishing a wireless communication connection with the second receiving end.
  • the broadcasting mode may be a directional broadcasting mode or a non-directional broadcasting mode, which is not specifically limited in this embodiment, and any implementation mode of notifying the second receiving end of the connection information is within the protection scope of this embodiment. It should be noted that in this embodiment, only the sending end notifies the second receiving end of the connection information as an example. In a specific implementation, the first receiving end may also notify the second receiving end of the connection information. However, this The embodiment does not specifically limit this.
  • the connection information notified by the sending end to the second receiving end includes: information of a communication channel for wireless communication between the sending end and the first receiving end.
  • the information of the communication channel for wireless communication between the sending end and the first receiving end may include: the communication frequency point for wireless communication between the sending end and the first receiving end.
  • a piece of data may be divided into multiple data packets to send, and the frequency of each data packet transmission may be different. Therefore, the sending end and the first receiving end can communicate on a predetermined series of communication frequencies. ;
  • the series of communication frequency points can be 2502MHz, 2504MHz, 2506MHz, 2508MHz, etc. combined together.
  • one communication frequency point can represent one communication channel, that is, the sending end and the first receiving end can communicate on a predetermined series of communication channels, however, this embodiment does not specifically limit this.
  • connection information notified by the sending end to the second receiving end is used to instruct the second receiving end to monitor the communication data in the communication channel; when the second receiving end monitors the communication data, it sends the data that needs to be sent to the first receiving end to the communication channel .
  • the connection information may also be used to instruct the second receiving end to send data to be sent to the first receiving end to the communication channel.
  • the communication data monitored by the second receiving end in the communication channel may include: data sent by the sending end to the first receiving end through the communication channel, and may also include: data sent by the first receiving end to the sending end through the channel .
  • the sending end and the first receiving end can send data in the same communication channel without interfering with each other, or can send data in different communication channels, but this embodiment does not specifically limit this .
  • the sending end and the second receiving end may pre-arranged, if the second receiving end receives the connection information sent by the sending end, the second receiving end will obtain the connection information between the sending end and the first receiving end according to the connection information.
  • Information on the communication channel for wireless communication thereby determining the communication channel for wireless communication between the sending end and the first receiving end, monitoring the communication data in the communication channel, and sending the data that needs to be sent to the first receiving end to the communication Channel.
  • connection information sent by the sending end to the second receiving end may carry the preset identifier, and if the second receiving end recognizes the preset identifier from the received connection information, the second receiving end will use the connection information, Acquire the information of the communication channel for wireless communication between the sending end and the first receiving end, so as to determine the communication channel for wireless communication between the sending end and the first receiving end, monitor the communication data in the communication channel, and send The data to the first receiving end is sent to the communication channel.
  • the preset identifier can be set according to actual needs, which is not specifically limited in this embodiment.
  • connection information can also be used to instruct the second receiving end to monitor the data sent by the sending end in the communication channel.
  • the second receiving end monitors the data sent by the sending end, it will be sent to The data of the first receiving end is sent to the communication channel; among them, the data that needs to be sent to the first receiving end is used to characterize whether the data sent by the sending end monitored by the second receiving end is correct, and the second receiving end monitors the data sent by the sending end It can be understood that the second receiving end obtains the data sent by the sending end. For example, the second receiving end can judge whether the acquired data sent by the sending end is correct according to the preset check mechanism.
  • the data that needs to be sent to the first receiving end can be ACK (Acknowledgement, abbreviated: ACK), if not If it is correct, the data to be sent to the first receiving end may be NACK (Negative Acknowledgement, ACK for short).
  • N second receiving ends will all receive the connection information notified by the sending end, and the connection information is used to indicate N second receiving ends.
  • the receiving end monitors the communication data in the communication channel, and sequentially sends the data to be sent to the first receiving end to the communication channel according to a preset sequence.
  • the preset order can be set according to actual needs, which is not specifically limited in this embodiment.
  • the time periods during which the N second receiving ends send data in the communication channel may be different and may not overlap each other. In other words, the data sent by the N second receiving ends in the communication channel does not interfere with each other, so that the first receiving end can accurately receive the data sent by the N second receiving ends in the communication channel.
  • the communication channel for wireless communication between the sending end and the first receiving end includes: a first communication channel and a second communication channel: where the first communication channel is a communication for the sending end to send data to the first receiving end.
  • the second communication channel is a communication channel through which the first receiving end sends data to the sending end.
  • the number of first communication channels may be multiple.
  • the sending end may send data to the first receiving end based on a series of frequency points.
  • the number of second communication channels may also be multiple.
  • the first receiving end may also send data to the sending end based on a series of frequency points. That is, the sending end and the first receiving end send data in different communication channels, and the first communication channel is different from the second communication channel. That is, for the transmitting end and the first receiving end, the data sent and received are all on different communication channels, which is beneficial to improve the accuracy of data receiving and sending between the sending end and the first receiving end.
  • the information of the communication channel for wireless communication between the sending end and the first receiving end may include: a communication frequency point of the first communication channel and a communication frequency point of the second communication channel.
  • the transmitting end and/or the first receiving end may notify the second receiving end of the communication frequency point of the first communication channel and the communication frequency point of the second communication channel.
  • the sending end notifies the second receiving end of the communication frequency point of the first communication channel and the communication frequency point of the second communication channel; or the first receiving end informs the communication frequency point of the first communication channel and the communication frequency point of the second communication channel.
  • the frequency point is notified to the second receiving end; or, the sending end notifies the second receiving end of the communication frequency point of the first communication channel, and the first receiving end notifies the second receiving end of the communication frequency point of the second communication channel.
  • this embodiment does not specifically limit this.
  • the connection information includes: in the communication channel for wireless communication between the sending end and the first receiving end, the information of the communication channel that the second receiving end needs to monitor.
  • the connection information may be the information of the first communication channel, such as the communication frequency of the first communication channel.
  • the connection information may be information of the second communication channel, such as the communication frequency of the second communication channel.
  • the content included in the connection information can be set according to actual needs to meet the needs of different scenarios.
  • the changed connection information will be notified to the preset second receiving end again. For example, if the sending end and the first receiving end re-establish a wireless communication connection, the connection information changes, and the sending end notifies the preset second receiving end of the changed connection information.
  • the second receiving end determines the communication channel currently performing wireless communication between the sending end and the first receiving end according to the changed connection information.
  • the second receiving end can store the connection information after receiving it.
  • the sending device can subsequently notify the second receiving end in the form of broadcast each time before data needs to be sent to indicate that the second receiving end can start monitoring the communication channel for wireless communication between the sending end and the first receiving end, which is beneficial to reduce Power consumption of the second receiving end.
  • the sending end 203 sends data to the first receiving end 201 through the first communication channel.
  • the first receiving end 201 transmits data to the transmitting end 203 through the second communication channel.
  • the second receiving end 202 can monitor the communication data in the first communication channel and the second communication channel, and when the data needs to be sent, send the data that needs to be sent to the first receiving end 201 to the first communication channel.
  • the data to the sending end 203 is sent to the second communication channel.
  • the first receiving end 201 can receive the data sent by the second receiving end 202 in the first communication channel through the first communication channel
  • the sending end 203 can receive the data sent by the second receiving end 202 in the second communication channel through the second communication channel.
  • the data is sent.
  • the second receiving end 202 indicates that the second receiving end 202 can receive the data sent by the sending end 203 in the first communication channel without establishing a connection with the sending end 203, and it can also indicate that the second receiving end 202 is in the first communication channel. Under the condition that no connection is established with the first receiving end 201, the data sent by the first receiving end 201 in the second communication channel is received.
  • the dotted arrow 2 in FIG. 2 indicates that the second receiving end 202 can send data to the first receiving end 201 through the first communication channel without establishing a connection with the first receiving end 201, and it can also indicate the second receiving end 202 may send data to the sending end 203 through the second communication channel without establishing a connection with the sending end 203.
  • the first time period during which the sending end sends data in the communication channel and the second time period during which the second receiving end sends data in the communication channel do not overlap each other, so that the data sent by the sending end in the communication channel is the same as the second receiving end.
  • the data sent in the communication channel does not interfere with each other.
  • the first time period and the second time period may be obtained by dividing a preset time slice, and the preset time slice is a predetermined time slice for the first receiving end to receive data.
  • the preset time slice may be determined according to the communication protocol on which the sending end and the first receiving end establish a wireless communication connection. In the preset time slice, the first receiving end will always receive the communication data in the communication channel between the sending end and the first receiving end.
  • the standard wireless protocol usually specifies the duration of a preset time slice, which can also be referred to as a width.
  • a preset time slice is the fixed time slice for the receiver to receive data specified by the standard Bluetooth wireless protocol.
  • the sending end may send data in the communication channel in a predetermined time period (first time period) in the preset time slice, and the second receiving end may monitor and receive the data sent by the sending end in the communication channel.
  • the preset time slice is reserved in advance for an idle time period (the second time period), so that the second receiving end can send data in the communication channel within the reserved idle time period. Therefore, the first receiving end can receive both the data sent by the sending end and the data sent by the second receiving end in the communication channel.
  • the duration of the preset time slice can be customized according to actual needs.
  • the duration of the preset time slice can be determined according to the number of second receivers. For example, if the number of second receivers is large, the duration of the preset time slice can be set to be longer, and the number of second receivers is small. The duration of the preset time slice can be set to be shorter.
  • the duration of the preset time slice can be customized in advance, so that the preset time slice can have sufficient time length. The more the number of second receivers, the second the second receiving end is divided by the preset time slice. The longer the time period is to allow multiple second receiving ends to send data in the communication channel, and to provide sufficient time for multiple second receiving ends to send data in the communication channel, which is conducive to meeting the needs of multiple receiving ends according to actual needs. The need for data synchronization.
  • the data sent by the sending end in the communication channel and the data sent by the second receiving end in the communication channel can be set according to actual needs, which is not specifically limited in this embodiment.
  • the following is an example of the data sent by the sending end and the second receiving end in the communication channel:
  • the data sent by the sending end 203 in the first communication channel may be: working status or feedback information of working parameters.
  • the second receiving end 202 listens to the feedback information in the first communication channel, it sends reply information in the first communication channel, and the reply information may include the working status or working parameters of the second receiving end 202.
  • the data sent by the second receiving end 202 in the first communication channel may be the aforementioned reply information.
  • the first receiving end 201 can receive the foregoing feedback information sent by the sending end 203 and the reply information sent by the second receiving end 202 through the first communication channel, so as to know the working status or working parameters of the second receiving end 202.
  • the first receiving end 201 will send the working status or working parameters of the first receiving end 201 in the second communication channel after receiving the above-mentioned feedback information, so that the second receiving end 202 can monitor in the second communication channel The working status or working parameters of the first receiving terminal 201.
  • the first receiving end 201 and the second receiving end 202 can perform data communication without establishing a wireless communication connection.
  • the receiving end is described with a speaker as an example, the first receiving end and the second receiving end are speaker 1 and speaker 2, respectively, and the sending end is an audio source.
  • the speaker 1 establishes a wireless communication connection with the audio source
  • the speaker 2 is notified of the connection information through the audio source or the speaker 1, and the speaker 2 starts to monitor the communication channel between the speaker 1 and the audio source.
  • the speaker 2 monitors the feedback information of the working parameters sent by the audio source in the communication channel, the working parameters of the speaker 2 are sent to the communication channel.
  • the loudspeaker 1 can receive the working parameters of the loudspeaker 2 and the feedback information sent by the above audio source through the communication channel, so as to send the working parameters of the loudspeaker 1 to the communication channel, so that the loudspeaker 2 can monitor, so that the loudspeaker 2 can know the loudspeaker 1 working parameters. It can be seen that the speaker 1 and the speaker 2 can learn the working parameters of each other without establishing a communication connection. Among them, the working parameters can be set according to actual needs, such as: remaining power, working time, working mode, etc.
  • the sending end after establishing a wireless connection with the first receiving end, notifies the preset second receiving end of connection information, and the connection information includes: between the sending end and the first receiving end Information about the communication channel for wireless communication, the connection information is used to instruct the second receiving end to monitor the communication data in the communication channel, so that the second receiving end can monitor the communication between the sending end and the first receiving end after receiving the connection information
  • the communication data in the channel so that the second receiving end can obtain the data sent by the first receiving end by monitoring the communication channel.
  • the second receiving end sends the data that needs to be sent to the first receiving end to the communication channel, so that the first receiving end can receive the data sent by the second receiving end in the communication channel.
  • the first time period and the second time period do not overlap each other, that is, both the sending end and the second receiving end can send data to the first receiving end through the communication channel, but the sending end and the second receiving end send data in different time periods.
  • Data so that the data sent by the sending end and the second receiving end in the communication channel do not interfere with each other, so that the first receiving end can accurately receive and recognize the data sent by the second receiving device. Therefore, the embodiment of the present application can complete the data communication between the first receiving end and the second receiving end without establishing a wireless communication connection between the first receiving end and the second receiving end, so that the first receiving end and the second receiving end
  • the second receiving end is more convenient for data communication.
  • the second embodiment of the present application relates to a data communication method.
  • This embodiment can complete the communication between the first receiving end and the second receiving end without establishing a wireless connection between the first receiving end and the second receiving end.
  • data synchronization For example, data synchronization between multiple speakers, data synchronization between multiple robotic arms.
  • the implementation details of this embodiment will be described in detail below. The following content is only provided for ease of understanding and is not necessary for implementing this solution.
  • the flowchart of the data communication method of this embodiment may be as shown in FIG. 3, including:
  • Step 301 Establish a wireless communication connection with a preset first receiving end.
  • Step 302 Notify the preset second receiving end of the connection information.
  • step 301 to step 302 are respectively substantially the same as step 101 to step 102 in the first embodiment, and to avoid repetition, details are not repeated here.
  • Step 303 In the first time period, send the data to be synchronized to the first receiving end through the communication channel.
  • the data to be synchronized is the data sent by the sending end in the communication channel.
  • the sending end is an audio source
  • the first receiving end is speaker 1
  • the data to be synchronized may be audio data packets.
  • the sending end is a robot arm controller
  • the first receiving end is the robot arm 1
  • the data to be synchronized may be control information for the robot arm.
  • the connection information notified by the sender to the second receiver is used to instruct the second receiver to monitor the communication data in the communication channel.
  • the second receiver monitors the data to be synchronized it will need to send the first receiver in the second time period.
  • the data at the end is sent to the communication channel; among them, the data that needs to be sent to the first receiving end is used to characterize whether the data to be synchronized acquired by the second receiving end is correct.
  • that the second receiving end monitors the data to be synchronized can be understood as: the second receiving end obtains the data to be synchronized in the communication channel.
  • the data to be synchronized may carry a synchronization identifier, so that the first receiving end and the second receiving end can identify whether the data in the current communication channel is the data to be synchronized.
  • the second receiving end monitors the data to be synchronized sent by the sending end in the communication channel, that is, the second receiving end obtains the data to be synchronized from the communication channel. Then, it can be judged whether the acquired data to be synchronized is correct according to the preset checking mechanism. If it is determined that the acquired data to be synchronized is correct, it is determined that the data to be sent to the first receiving end is confirmation information, and the confirmation information is sent to the communication channel.
  • the confirmation information may be ACK (Acknowledgement, ACK for short).
  • the second receiving end determines that the acquired data to be synchronized is incorrect, that is, the acquired data to be synchronized is abnormal, it determines that the data to be sent to the first receiving end is reception error information, so that the reception error information is sent to the communication channel .
  • the received error information may be NACK (Negative Acknowledgement, NACK for short). Therefore, the first receiving end can successively receive the data to be synchronized sent by the sending end and the data sent by the second receiving end through the communication channel. It is understandable that, in a specific implementation, if a problem occurs in data transmission, the first receiving end may not receive the data to be synchronized sent by the sending end and/or the data sent by the second receiving end.
  • Step 304 If the confirmation information sent by the first receiving end is received, it is determined that the first receiving end and the second receiving end have completed data synchronization.
  • the confirmation information is the information sent by the first receiving end when the preset condition is met; the preset condition is that the first receiving end receives the preset data from the second receiving end and the first receiving end determines the received data to be synchronized correct.
  • the preset data is used to characterize that the data to be synchronized monitored by the second receiving end is correct.
  • the preset data may be an ACK sent by the second receiving end.
  • the first receiving end sends confirmation information to the sending end after confirming that it has received the correct data to be synchronized and that the second receiving end has also received the correct data to be synchronized.
  • the sending end determines that the first receiving end and the second receiving end have completed data synchronization.
  • the second receiving end can monitor the confirmation information sent by the first receiving end in the communication channel between the first receiving end and the sending end, so that it can be determined that the first receiving end has received the correct one to be synchronized.
  • Data that is, the first receiving end and the second receiving end can mutually know whether the other party receives the correct data to be synchronized.
  • the second receiving end when the second receiving end listens to the confirmation information sent by the first receiving end, the second receiving end can perform the operation indicated by the data to be synchronized. If the confirmation information sent by the first receiving end is not monitored, the second receiving end Second, the receiving end may not perform any operations.
  • the first receiving end and the second receiving end may perform the operation indicated by the data to be synchronized.
  • the sending end is an audio source
  • the first receiving end and the second receiving end are speaker 1 and speaker 2, respectively
  • the data to be synchronized is an audio data packet sent by the audio source.
  • the speaker 1 and the speaker 2 can perform the operation of playing audio according to the received audio data packet.
  • the sending end is the robot arm controller
  • the first receiving end and the second receiving end are robot arm 1 and robot arm 2, respectively.
  • the data to be synchronized is the control information of the robot arm sent by the robot arm controller.
  • the robot arm 1 and the robot arm 2 can perform control operations on the robot arm 1 and the robot arm 2 according to the received control information.
  • the data to be synchronized from the audio source 3 is an audio data packet.
  • a wireless communication connection is established between the speaker 1 and the audio source 3 through a preset communication protocol.
  • the preset communication protocol may be a standard wireless protocol or a private protocol, or a combination of a standard protocol and a private protocol.
  • the speaker 2 can be notified of the connection information of the established connection between the speaker 1 and the audio source 3 by means of directional broadcasting.
  • the connection information may include the communication between the speaker 1 and the audio source 3 Channel information, such as the communication frequency of the communication channel.
  • the speaker 2 After the speaker 2 receives the connection information, it can monitor the communication channel between the speaker 1 and the audio source 3, as shown in the communication channel 1 and the communication channel 2 in FIG. 4, so as to obtain the communication data between the speaker 1 and the audio source 3.
  • the speaker 2 can send data to the communication channel 1 between the speaker 1 and the audio source 3 without affecting the communication between the speaker 1 and the audio source 3.
  • the speaker 1 will always receive the data in the communication channel between the speaker 1 and the audio source 2 within a preset time slice (for example, the time specified by the standard wireless communication protocol), and the data sent by the speaker 2 can be received at this time.
  • the speaker 2 can always monitor the communication data in the communication channel 1, and when the audio data packet sent by the audio source 3 is monitored, the audio data packet is acquired. According to the preset verification mechanism, it is determined whether the acquired audio data packet is a correct audio data packet, and if it is a correct audio data packet, a confirmation message is returned in the communication channel 1.
  • the speaker 1 can receive the audio data packet sent by the audio source 3 and the confirmation information sent by the speaker 2 through the communication channel 1. Then, speaker 1 can also determine whether the received audio data packet is a correct audio data packet according to the preset verification mechanism.
  • speaker 1 receives the confirmation message sent by speaker 2
  • the confirmation message is sent in the communication channel 2, and the speaker 2 can monitor the confirmation message sent by the speaker 1 on the communication channel 2.
  • the speaker 1 and the speaker 2 complete data synchronization, that is, the audio data packets of the audio source 3 are sent to the speaker 1 and the speaker 2 at the same time, and the speaker 1 and the speaker 2 mutually know that the other party has received the correct audio data packet.
  • Case 1 The communication process in which the speaker 1 and the speaker 2 both receive the correct audio data packet can refer to FIG. 5.
  • the speaker 1 and the speaker 2 receive the audio data packet sent by the audio source 3 on the communication channel 1 in a preset time slice n. It can be seen from the figure that the audio data packet sent by the audio source 3 does not occupy all of the time slice n, and a period of idle time is reserved at the time n for the speaker 2 to send data.
  • the speaker 2 After receiving the audio data packet, the speaker 2 then sends an acknowledgment message ACK on the communication channel 1 during the above reserved period of idle time, and the speaker 1 receives the audio data packet and the ACK sent by the speaker 2 successively.
  • the speaker 1 replies the confirmation message ACK to the audio source 3 on the communication channel 2 in the time slice n+1.
  • the communication channel 1 and the communication channel 2 represent different communication frequency points.
  • This embodiment does not limit the specific size of the communication frequency points, and can be set according to actual needs in specific implementation. In this case, it can be considered that speaker 1 and speaker 2 have completed data synchronization. It can be seen from Figure 5 that the time period when the speaker 2 sends ACK and the time period when the audio data packet is received do not coincide with each other but belong to the same time slice n, that is, the speaker 2 can receive audio data packets in the same time slice and is based on The audio data packet is received to reply, and the reply speed is faster.
  • the audio data packet received by the speaker 2 is an erroneous audio data packet can refer to FIG. 6 for the communication process.
  • the speaker 1 and the speaker 2 receive the audio data packet sent by the audio source 3 on the communication channel 1 in a preset time slice n. After the speaker 2 receives the audio data packet and finds that the received audio data packet is wrong, it then sends a reception error message NACK on the communication channel 1.
  • the speaker 1 successively receives the audio data packet and the NACK sent by the speaker 2, and then in time slice n+1, the communication channel 2 replies to the audio source 3 with the reception error message NACK. After the audio source 3 receives the NACK sent by the speaker 1, it can resend the original audio data packet according to actual needs, or discard the original audio data packet and then send the next audio data packet.
  • Case 3 The communication process in which the speaker 1 only receives audio data packets but not the data sent by the speaker 2 can refer to FIG. 7.
  • the speaker 1 and the speaker 2 receive the audio data packet sent by the audio source 3 on the communication channel 1 in a preset time slice n.
  • the speaker 1 only receives the audio data packet in time slice n and does not receive the ACK sent by the speaker 2, then the speaker 1 replies to the audio source 3 with a reception error message NACK on the time slice n+1 and the communication channel 2.
  • the audio source 3 After the audio source 3 receives the NACK sent by the speaker 1, it can resend the original audio data packet according to actual needs, or discard the original audio data packet and then send the next audio data packet.
  • Case 4 The communication process in which the speaker 1 does not receive any data can refer to FIG. 8.
  • the audio source 3 sends an audio data packet on the communication channel 1 in a preset time slice n, and the speaker 2 sends an ACK on the communication channel 1 after receiving the audio data packet.
  • speaker 1 has not received any data, and speaker 1 does not need to make any response.
  • this embodiment facilitates data synchronization between the first receiving end and the second receiving end under the condition that there is no need to establish a wireless connection between the first receiving end and the second receiving end.
  • the third embodiment of the present application relates to a data communication method, which is applied to the second receiving end.
  • the implementation details of this embodiment will be described in detail below. The following content is only provided for ease of understanding and is not necessary for implementing this solution.
  • the specific process of the data communication method in this embodiment may be as shown in FIG. 9, including:
  • Step 401 Receive connection information.
  • the sending end and the preset first receiving end establish a wireless communication connection and notify the second receiving end of connection information;
  • the connection information includes: information about a communication channel for wireless communication between the sending end and the first receiving end; connection information Used to instruct the second receiving end to monitor the communication data in the communication channel.
  • the communication channel for wireless communication between the sending end and the first receiving end includes: a first communication channel and a second communication channel: where the first communication channel is a communication for the sending end to send data to the first receiving end.
  • the second communication channel is a communication channel through which the first receiving end sends data to the sending end.
  • the information of the communication channel for wireless communication between the sending end and the first receiving end includes: a communication frequency point of the first communication channel and a communication frequency point of the second communication channel.
  • the wireless communication connection established between the sending end and the first receiving end is a Bluetooth connection
  • the second receiving end may receive the connection information in the form of broadcast.
  • the second receiving end may receive the connection information notified by the sending end and/or the first receiving end.
  • the sending end if the sending end notifies the second receiving end of the connection information, it is beneficial to reduce the power consumption of the first receiving end.
  • Step 402 Monitor the communication data in the communication channel.
  • Step 403 Send the data to be sent to the first receiving end to the communication channel.
  • the first time period during which the sending end sends data in the communication channel and the second time period during which the second receiving end sends data in the communication channel do not overlap with each other.
  • the second receiving end monitors the communication data in the communication channel the data that needs to be sent to the first receiving end can be sent to the communication channel.
  • the first time period and the second time period are obtained by dividing a preset time slice; the preset time slice is a predetermined time slice for the first receiving end to receive data.
  • the wireless communication connection established between the sending end and the first receiving end is a wireless communication connection established based on a preset private protocol; the duration of the preset time slice is determined according to the number of second receiving ends, and the second receiving end The greater the number of terminals, the longer the second time period obtained by dividing the preset time slice.
  • the second receiving end monitors that the sending end sends data to the first receiving end through the communication channel during the first time period
  • the data that needs to be sent to the first receiving end during the second time period The data of the first receiving end is sent to the communication channel; wherein the data to be sent to the first receiving end is used to characterize whether the data sent by the sending end monitored by the second receiving end is correct.
  • the data sent by the sending end is data to be synchronized, and if the sending end receives the confirmation information sent by the first receiving end, the first receiving end and the second receiving end are determined Data synchronization is completed; wherein the confirmation information is the information sent by the first receiving end when a preset condition is met; the preset condition is that the first receiving end receives the preset from the second receiving end Data and the first receiving end determines that the received data to be synchronized is correct, and the preset data is used to characterize that the data to be synchronized monitored by the second receiving end is correct.
  • the number of the second receiving end is N, and N is a natural number greater than 1.
  • Sending the data that needs to be sent to the first receiving end to the communication channel includes: sequentially sending the data to be sent to the first receiving end in a preset order Data from a receiving end is sent to the communication channel.
  • the data communication method of this embodiment is applied to the second receiving end, and the data communication method of the first and second embodiments is applied to the sending end.
  • This embodiment can be implemented in cooperation with the first and second embodiments.
  • the related technical details and technical effects mentioned in the first and second embodiments are still valid in this embodiment, and in order to reduce repetition, they will not be repeated here.
  • the related technical details mentioned in this embodiment can also be applied to the first and second embodiments.
  • the fourth embodiment of the present application relates to a data communication method, which is applied to the first receiving end.
  • the implementation details of this embodiment will be described in detail below. The following content is only provided for ease of understanding and is not necessary for implementing this solution.
  • the specific process of the data communication method in this embodiment may be as shown in FIG. 10, including:
  • Step 501 Establish a wireless communication connection with the sending end.
  • Step 502 Notify the preset second receiving end of the connection information.
  • connection information includes: information of a communication channel for wireless communication between the sending end and the first receiving end; the connection information is used to instruct the second receiving end to monitor the communication channel in the communication channel Communication data; when the second receiving end monitors the communication data, it sends the data that needs to be sent to the first receiving end to the communication channel; the first time when the first receiving end receives the data sent by the sending end in the communication channel The period and the second time period for receiving the data sent by the second receiving end do not overlap with each other.
  • the first time period during which the first receiving end receives the data sent by the sending end in the communication channel can be understood as: the first time period when the sending end sends data in the communication channel A period of time.
  • the second time period during which the first receiving end receives data sent by the second receiving end in the communication channel can be understood as: the second time period during which the second receiving end sends data in the communication channel.
  • the first receiving end can distinguish whether the received data is sent by the sending end or the second receiving device through reference information such as the device identifier and the end flag.
  • the wireless communication connection is a Bluetooth connection
  • the first receiving end notifies the preset second receiving end of the connection information in the form of broadcast.
  • the data communication method of this embodiment is applied to the first receiving end
  • the data communication methods of the first and second embodiments are applied to the sending end
  • the data communication method of the third embodiment is applied to the second receiving end.
  • This embodiment can be implemented in cooperation with the first to third embodiments.
  • the related technical details and technical effects mentioned in the first to third embodiments are still valid in this embodiment, and in order to reduce repetition, they will not be repeated here.
  • the related technical details mentioned in this embodiment can also be applied to the first to third embodiments.
  • the fifth embodiment of the present application relates to a data communication system, as shown in FIG. 11, including: a sending end 601, a first receiving end 602, and a second receiving end 603; the sending end 601 is used to communicate with the preset first After the receiving end 602 establishes a wireless communication connection, it notifies the preset second receiving end 603 of the connection information; wherein the connection information includes: the information of the communication channel for wireless communication between the sending end 601 and the first receiving end 602; connection; The information is used to instruct the second receiving end 603 to monitor the communication data in the communication channel; the second receiving end 603 is used to monitor the communication data in the communication channel, and send the data that needs to be sent to the first receiving end 602 to the communication channel ; Among them, the first time period during which the sending end 601 sends data in the communication channel and the second time period during which the second receiving end 603 sends data in the communication channel do not overlap with each other.
  • the solid line in FIG. 11 represents the wireless communication connection established between the sending end 601 and the first receiving end 602 and the dashed line in FIG. 11 represents: the wireless communication connection is not established between the second receiving end 603 and the sending end 601, and In the case that the second receiving end 603 and the first receiving end 602 have not established a wireless communication connection, the second receiving end 603 can monitor the communication channel between the first receiving end 602 and the sending end 601, and send it to The data is sent to the communication channel.
  • this embodiment is a system embodiment corresponding to the first to fourth embodiments, and this embodiment can be implemented in cooperation with the first to fourth embodiments.
  • the related technical details and technical effects mentioned in the first to fourth embodiments are still valid in this embodiment, and in order to reduce repetition, they will not be repeated here.
  • the related technical details mentioned in this embodiment can also be applied to the first to fourth embodiments.
  • the sixth embodiment of the present application relates to an electronic device. As shown in FIG. 12, it includes at least one processor 701; and, a memory 702 communicatively connected to at least one processor 701; The instructions executed by the processor 701 are executed by at least one processor 701.
  • the electronic device is the sending end, at least one processor can execute the data communication method in the first or second embodiment.
  • the electronic device is the second receiving end, at least one processor can execute the data communication method in the third embodiment.
  • the electronic device is the first receiving end, at least one processor can execute the data communication method in the fourth embodiment.
  • the memory 702 and the processor 701 are connected in a bus manner.
  • the bus may include any number of interconnected buses and bridges.
  • the bus connects one or more various circuits of the processor 701 and the memory 702 together.
  • the bus can also connect various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, no further descriptions are provided herein.
  • the bus interface provides an interface between the bus and the transceiver.
  • the transceiver may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on the transmission medium.
  • the data processed by the processor 701 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 701.
  • the processor 701 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions.
  • the memory 702 may be used to store data used by the processor 701 when performing operations.
  • the seventh embodiment of the present application relates to a chip. As shown in FIG. 13, it includes at least one processor 801; and a memory 802 communicatively connected with at least one processor 801; The instructions executed by 801 are executed by at least one processor 801, so that the at least one processor 801 can execute the data communication method in the first or second embodiment, or execute the data communication method in the third embodiment, Or execute the data communication method in the fourth embodiment.
  • the memory 802 and the processor 801 are connected in a bus manner.
  • the bus may include any number of interconnected buses and bridges, and the bus connects one or more various circuits of the processor 801 and the memory 802 together.
  • the bus can also connect various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are all well-known in the art, and therefore, no further description will be given herein.
  • the bus interface provides an interface between the bus and the transceiver.
  • the transceiver may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on the transmission medium.
  • the data processed by the processor 801 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 801.
  • the processor 801 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions.
  • the memory 802 may be used to store data used by the processor 801 when performing operations.
  • the eighth embodiment of the present application relates to a computer-readable storage medium storing a computer program.
  • the computer program is executed by the processor, the above method embodiment is realized.
  • the program is stored in a storage medium and includes several instructions to enable a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) that executes all or part of the steps of the methods described in the embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .

Abstract

本申请部分实施例提供了一种数据通信方法、系统、电子设备、芯片和存储介质。上述数据通信方法包括:与预设的第一接收端建立无线通信连接(101),将连接信息通知给预设的第二接收端(102);连接信息包括:发送端与第一接收端之间进行无线通信的通信信道的信息;连接信息用于指示第二接收端监听通信信道中的通信数据;当所述第二接收端监听到所述通信数据,将需发送至第一接收端的数据发送至通信信道中;发送端在通信信道中发送数据的第一时间段与第二接收端在通信信道中发送数据的第二时间段互不重合。采用本申请的实施例,可以在第一接收端与第二接收端之间无需建立无线连接的条件下,完成第一接收端与第二接收端之间的数据通信。

Description

数据通信方法、系统、电子设备、芯片和存储介质 技术领域
本申请涉及通信技术领域,特别涉及一种数据通信方法、系统、电子设备、芯片和存储介质。
背景技术
目前,多个无线接收设备在进行数据通信时,需要相互之间建立无线通信连接,从而基于相互之间建立的无线通信连接进行数据通信。
发明内容
本申请部分实施例的目的在于提供一种数据通信方法、系统、电子设备、芯片和存储介质,可以在第一接收端与第二接收端之间无需建立无线通信连接的条件下,完成第一接收端与第二接收端之间的数据通信,避免了第一接收端与第二接收端之间较耗时且较复杂的建立无线通信连接的过程,使得第一接收端与第二接收端之间的数据通信更加方便。
本申请实施例提供了一种数据通信方法,应用于发送端,包括:在与预设的第一接收端建立无线通信连接后,将连接信息通知给预设的第二接收端;其中,所述连接信息包括:所述发送端与所述第一接收端之间进行无线通信的通信信道的信息;所述连接信息用于指示所述第二接收端监听所述通信信道中 的通信数据;当所述第二接收端监听到所述通信数据,将需发送至所述第一接收端的数据发送至所述通信信道中;所述发送端在所述通信信道中发送数据的第一时间段与所述第二接收端在所述通信信道中发送数据的第二时间段互不重合。
本申请实施例提供了一种数据通信方法,应用于第一接收端,包括:在与发送端建立无线通信连接后,将连接信息通知给预设的第二接收端;其中,所述连接信息包括:所述发送端与所述第一接收端之间进行无线通信的通信信道的信息;所述连接信息用于指示所述第二接收端监听所述通信信道中的通信数据;当所述第二接收端监听到所述通信数据,将需发送至所述第一接收端的数据发送至所述通信信道中;所述发送端在所述通信信道中发送数据的第一时间段与所述第二接收端在所述通信信道中发送数据的第二时间段互不重合。
本申请实施例还提供了一种数据通信方法,应用于第二接收端,包括:接收连接信息;其中,所述发送端与预设的第一接收端建立无线通信连接后通知所述连接信息;所述连接信息包括:所述发送端与所述第一接收端之间进行无线通信的通信信道的信息;所述连接信息用于指示所述第二接收端监听所述通信信道中的通信数据;监听所述通信信道中的通信数据;将需发送至所述第一接收端的数据发送至所述通信信道中;其中,所述发送端在所述通信信道中发送数据的第一时间段与所述第二接收端在所述通信信道中发送数据的第二时间段互不重合。
本申请实施例还提供了一种数据通信系统,包括:发送端、第一接收端和第二接收端;所述发送端与预设的第一接收端建立无线通信连接后,所述发送端或所述第一接收端用于将连接信息通知给预设的第二接收端;其中,所述 连接信息包括:所述发送端与所述第一接收端之间进行无线通信的通信信道的信息;所述连接信息用于指示所述第二接收端监听所述通信信道中的通信数据;所述第二接收端,用于监听所述通信信道中的通信数据,并将需发送至所述第一接收端的数据发送至所述通信信道中;其中,所述发送端在所述通信信道中发送数据的第一时间段与所述第二接收端在所述通信信道中发送数据的第二时间段互不重合。
本申请实施例还提供了一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行;当所述电子设备为发送端时,所述至少一个处理器能够执行上述的应用于发送端的数据通信方法;当所述电子设备为第一接收端时,所述至少一个处理器能够上述的应用于第一接收端的数据通信方法;当所述电子设备为第二接收端时,所述至少一个处理器能够上述的应用于第二接收端的数据通信方法。
本申请实施例还提供了一种芯片,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的应用于发送端的数据通信方法,或者执行上述的应用于第一接收设备的数据通信方法,或者执行上述的应用于第二接收设备的数据通信方法。
本申请实施例还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述的应用于发送端的数据通信方法,或者实现上述的应用于第一接收端的数据通信方法,或者实现上述的应用于第二 接收端的数据通信方法。
本申请发明人发现现有技术至少存在以下问题:由于现有技术中,基于相互之间建立的无线通信连接进行数据通信,而无线通信连接需要多个无线接收设备通过无线通信协议建立,使得建立无线通信连接的过程较耗时且较复杂,导致多个无线接收设备在进行数据通信时不够方便。
本申请实施例现对于现有技术而言,发送端在与第一接收端建立无线连接后,将连接信息通知给预设的第二接收端,连接信息包括:发送端与第一接收端之间进行无线通信的通信信道的信息,连接信息用于指示第二接收端监听通信信道中的通信数据,使得第二接收端在收到连接信息后可以监听发送端与第一接收端之间的通信信道中的通信数据,从而第二接收端可以通过监听该通信信道获取第一接收端发送的数据。第二接收端将需要发送至第一接收端的数据发送至该通信信道中,使得第一接收端可以在该通信信道中接收到第二接收端发送的数据。第一时间段与第二时间段互不重合,即发送端和第二接收端均可以通过该通信信道向第一接收端发送数据,但发送端和第二接收端分别在不同的时间段发送数据,使得发送端和第二接收端在通信信道中发送的数据互不干扰,从而第一接收端可以准确的接收并识别出第二接收端发送的数据。因此,本申请实施例可以在第一接收端与第二接收端之间无需建立无线通信连接的条件下,完成第一接收端与第二接收端之间的数据通信,使得第一接收端与第二接收端在进行数据通信时更加方便。
例如,在所述将连接信息通知给预设的第二接收端之后,还包括:在所述第一时间段内,通过所述通信信道向所述第一接收端发送数据;所述连接信息用于指示所述第二接收端监听所述通信信道中的所述发送端发送的数据;当 所述第二接收端监听到所述发送端发送的数据,在所述第二时间段内将需发送至所述第一接收端的数据发送至所述通信信道中;其中,所述需发送至所述第一接收端的数据用于表征所述第二接收端监听到的所述发送端发送的数据是否正确。也就是说,当发送端通过通信信道向第一接收端发送数据时,第二接收端可以从监听的通信信道中获取该数据,并在该通信信道中发送用于表征第二接收端获取到的该数据是否正确的数据。第二接收端可以在无需与发送端建立无线通信连接的条件下,获取到发送端发出的数据,且第一接收端可以在无需与第二接收端建立无线通信连接的条件下得知第二接收端获取的数据是否正确。
例如,所述发送端发送的数据为待同步的数据,所述方法还包括:若接收到所述第一接收端发送的确认信息,确定所述第一接收端和所述第二接收端完成数据同步;其中,所述确认信息为所述第一接收端在满足预设条件时发送的信息;所述预设条件为所述第一接收端接收到来自所述第二接收端的预设数据且所述第一接收端确定接收到的所述待同步的数据正确,所述预设数据用于表征所述第二接收端监听到的所述待同步的数据正确。通过接收第一接收端发送的确认信息,可以确定第一接收端和第二接收端均已接收到正确的待同步的数据,有利于在第一接收端与第二接收端之间无需建立无线连接的条件下,进行第一接收端与第二接收端之间数据同步。
例如,所述第一时间段和所述第二时间段通过预设的时间片划分得到,所述预设的时间片为预先规定的所述第一接收端接收数据的时间片。第一接收端可以在同一个时间片接收到发送端发送的数据,以及第二接收端发送的数据,使得第一接收端可以快速得到发送端发送的数据和第二接收端发送的数据。
例如,所述发送端与所述第一接收端建立的无线通信连接为:基于预设 的私有协议建立的无线通信连接;所述预设的时间片的时长根据所述第二接收端的数量确定,所述预设的时间片为预先规定的所述第一接收端接收数据的时间片。在私有协议的基础上,预设的时间片的时长可以预先自定义,使得预设的时间片可以有足够的时长,允许多个第二接收端在通信信道中发送数据,有利于根据实际需要满足多个接收端之间需要进行数据同步的需求。
例如,所述第二接收端的数量为N个,所述N为大于1的自然数;所述连接信息用于指示N个所述第二接收端监听所述通信信道中的通信数据,并按照预设的顺序依次将需发送至所述第一接收端的数据发送至所述通信信道中。也就是说,第二接收端为多个时,多个第二接收端按照预设的顺序在通信信道中发数据,从而与第一接收端进行数据通信,有利于根据实际需要满足多个接收端之间需要进行数据通信的需求。
例如,所述无线通信连接为蓝牙连接,所述将连接信息通知给预设的第二接收端,包括:通过广播的形式,将连接信息通知给预设的第二接收端。蓝牙连接功耗较低,且通过广播的形式,将连接信息通知给预设的第二接收端,使得第二接收端可以在与发送设备无需建立无线通信连接的情况下,接收到连接信息。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定。
图1是根据本申请第一实施例中的数据通信方法的流程图;
图2是根据本申请第一实施例中的发送端、第二接收端、第一接收端之间进行通信的示意图;
图3是根据本申请第二实施例中的数据通信方法的流程图;
图4是根据本申请第二实施例中的扬声器1、扬声器2与音频源3之间进行通信的示意图;
图5是根据本申请第二实施例中的扬声器1与扬声器2均接收到正确的音频数据包的通信过程的示意图;
图6是根据本申请第二实施例中的扬声器2接收到的音频数据包为错误的音频数据包的通信过程的示意图;
图7是根据本申请第二实施例中的扬声器1只接收到音频数据包但未接收到扬声器2发送的数据的通信过程的示意图;
图8是根据本申请第二实施例中的扬声器1未接收到任何数据的通信过程的示意图;
图9是根据本申请第三实施例中的数据通信方法的流程图;
图10是根据本申请第四实施例中的数据通信方法的流程图;
图11是根据本申请第五实施例中的数据通信系统的示意图;
图12是根据本申请第六实施例中的电子设备的结构示意图;
图13是根据本申请第七实施例中的芯片的结构示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请部分实施例进行进一步详细说明。应当理解,此处所描述的 具体实施例仅仅用以解释本申请,并不用于限定本申请。以下各个实施例的划分是为了描述方便,不应对本发明的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。
本申请第一实施例涉及一种数据通信方法,应用于发送端。本实施例可以在第一接收端与第二接收端之间无需建立无线连接的条件下,完成第一接收端与第二接收端之间的数据通信。下面对本实施例的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。本实施例的应用场景可以理解为:发送端与多个接收端之间进行数据通信,多个接收端相互之间进行数据通信。在具体实现中,发送端与接收端可以为芯片或电子设备,然而,本实施方式对此不做具体限定。
在一个例子中,发送端可以为音频源,比如可以发送音频的手机、平板电脑等终端,接收端可以为扬声器,扬声器可以理解为带声能转换器的电子设备,例如,耳机或者是音箱,接收端的数量可以为多个,比如:分别佩戴在左耳和右耳的两个无线耳机、放置在不同地方的多个音箱。在另一个例子中,发送端可以为机械臂控制器,接收端可以为机械臂,机械臂的数量可以为多个,多个机械臂可以合作完成相关的操作任务。需要说明的是,上述两个示例只是为方便理解提供了发送端和接收端可能的实现形式,在具体实现中发送端和接收端并不以上述示例为限。
本实施例中的数据通信方法的具体流程可以如图1所示,包括:
步骤101:与预设的第一接收端建立无线通信连接。
其中,预设的第一接收端可以为预先在至少两个接收端中选择的一个接收端。
具体的说,发送端与第一接收端之间可以通过预设的通信协议建立无线通信连接。预设的通信协议可以为:标准无线协议或者私有协议,也可以为:标准无线协议和私有协议的组合。其中,私有协议为根据实际需要自定义的协议,比如厂商自己开发的协议。标准无线协议为标准化组织定义的协议,被标准化组织认可。
在一个例子中,发送端与第一接收端之间建立的无线通信连接可以为蓝牙连接、无线保真(Wireless-Fidelity,简称:WIFI)连接等。
步骤102:将连接信息通知给预设的第二接收端。
其中,预设的第二接收端可以为预先在至少两个接收端中选择一个作为第一接收端后,剩余的接收端。其中,剩余的接收端可能为1个也可能为多个,也就是说,在具体实现中,第二接收端的数量可以为1个也可以为多个。如果第二接收端的数量为N个,N为大于1的自然数,本步骤中发送端可以将连接信息通知给N个第二接收端。然而,本实施方式对第二接收端的数量不做具体限定,可以根据实际需要进行设定。
在一个例子中,发送端可以通过广播方式将连接信息通知给预设的第二接收端。也就是说,发送端在与第一接收端建立无线通信连接后,将发送端在与第一接收端已建立连接的连接信息,通过广播方式通知给预设的第二接收端。通过广播的方式通知,使得发送端可以在与第二接收端不建立无线通信连接的条件下,将连接信息通知给第二接收端。其中,广播方式可以为定向广播方式或是非定向广播方式,本实施方式对此不做具体限定,任何将连接信息通知给第二接收端的实现方式均在本实施例保护范围之内。需要说明的是,本实施例中只是以发送端将连接信息通知给第二接收端为例,在具体实现中,也可以由 第一接收端将连接信息通知给第二接收端,然而,本实施例对此不做具体限定。
发送端通知给第二接收端的连接信息包括:发送端与第一接收端之间进行无线通信的通信信道的信息。具体的说,发送端与第一接收端之间进行无线通信的通信信道的信息可以包括:发送端与第一接收端之间进行无线通信的通信频点。在具体实现中,一笔数据可能分成多个数据包发送,每个数据包传输的频点可能不同,因此,发送端与第一接收端之间可以在预定的一系列通信频点上进行通信;比如,该一系列通信频点可以为2502MHz、2504MHz、2506MHz、2508MHz等组合在一起。其中,一个通信频点可以表征一个通信信道,也就是说,发送端与第一接收端之间可以在预定的一系列通信信道上进行通信,然而,本实施方式对此不做具体限定。
发送端通知给第二接收端的连接信息,用于指示第二接收端监听通信信道中的通信数据;当第二接收端监听到通信数据,将需发送至第一接收端的数据发送至通信信道中。或者说,连接信息还可以用于指示第二接收端将需发送至第一接收端的数据发送至通信信道中。可以理解的是,第二接收端在通信信道中监听的通信数据可以包括:发送端通过该通信信道发送至第一接收端的数据,还可以包括:第一接收端通过该信道发送至发送端的数据。在具体实现中,发送端与第一接收端可以在互不干扰的条件下在相同的通信信道中发送数据,也可以在不同的通信信道中发送数据,然而本实施方式对此不做具体限定。
在一个例子中,发送端与第二接收端可以预先约定,如果第二接收端接收到发送端发送的连接信息,则第二接收端根据该连接信息,获取发送端与第一接收端之间进行无线通信的通信信道的信息,从而确定发送端与第一接收端之间进行无线通信的通信信道,监听该通信信道中的通信数据,并将需要发送 至第一接收端的数据发送至该通信信道中。
在另一个例子中,发送端向第二接收端发送的连接信息可以携带预设标识,如果第二接收端从接收的连接信息中识别出预设标识,则第二接收端根据该连接信息,获取发送端与第一接收端之间进行无线通信的通信信道的信息,从而确定发送端与第一接收端之间进行无线通信的通信信道,监听该通信信道中的通信数据,并将需要发送至第一接收端的数据发送至该通信信道中。其中,预设标识可以根据实际需要进行设置,本实施方式对此不做具体限定。
在具体实现中,连接信息还可以用于指示第二接收端监听通信信道中的发送端发送的数据,当第二接收端监听到发送端发送的数据,在第二时间段内将需发送至第一接收端的数据发送至通信信道中;其中,需发送至第一接收端的数据用于表征第二接收端监听到的发送端发送的数据是否正确,第二接收端监听到发送端发送的数据可以理解为第二接收端获取到发送端发送的数据。比如,第二接收端可以根据预设的校验机制判断获取的发送端发送的数据是否正确,如果正确,则需发送至第一接收端的数据可以为ACK(Acknowledgement,简称:ACK),如果不正确,则需发送至第一接收端的数据可以为NACK(Negative Acknowledgement,简称:ACK)。
在一个例子中,如果第二接收端的数量为N个,N为大于1的自然数,则N个第二接收端均会接收到发送端通知的连接信息,该连接信息用于指示N个第二接收端监听通信信道中的通信数据,并按照预设的顺序依次将需发送至第一接收端的数据发送至通信信道中。其中,预设的顺序可以根据实际需要进行设置,本实施方式对此不做具体限定。在具体实现中,N个第二接收端在通信信道中发送数据的时间段可以各不相同、互不重合。也就是说,N个第二接 收端在通信信道中发送的数据互不干扰,使得第一接收端可以准确接收N个第二接收端在通信信道中发送的数据。
在一个例子中,发送端与第一接收端之间进行无线通信的通信信道包括:第一通信信道和第二通信信道:其中,第一通信信道为发送端向第一接收端发送数据的通信信道,第二通信信道为第一接收端向发送端发送数据的通信信道。在具体实现中,第一通信信道的数量可以为多个,比如,发送端可以基于一系列频点向第一接收端发送数据。第二通信信道的数量也可以为多个,比如,第一接收端也可以基于一系列频点向发送端发送数据。也就是说,发送端与第一接收端在不同的通信信道中发送数据,第一通信信道与第二通信信道不相同。即对于发送端与第一接收端,收发数据均在不同的通信信道,有利于提高发送端与第一接收端之间收发数据的准确性。
在一个例子中,发送端与第一接收端之间进行无线通信的通信信道的信息可以包括:第一通信信道的通信频点和第二通信信道的通信频点。在具体实现中,可以由发送端和/或第一接收端将第一通信信道的通信频点和第二通信信道的通信频点通知给第二接收端。比如,发送端将第一通信信道的通信频点和第二通信信道的通信频点通知给第二接收端;或者第一接收端将第一通信信道的通信频点和第二通信信道的通信频点通知给第二接收端;或者,发送端将第一通信信道的通信频点通知给第二接收端,第一接收端将第二通信信道的通信频点通知给第二接收端。然而,本实施方式对此不做具体限定。
在一个例子中,连接信息包括:发送端与第一接收端之间进行无线通信的通信信道中,第二接收端需要监听的通信信道的信息。比如,假设第二接收端需要监听第一通信信道中的通信数据,则连接信息可以为第一通信信道的信 息,比如第一通信信道的通信频点。假设第二接收端需要在第二通信信道中发送数据,则连接信息可以为第二通信信道的信息,比如第二通信信道的通信频点。也就是说,连接信息中包括的内容可以根据实际需要进行设定,以满足不同场景的需要。
在一个例子中,如果发送端与第一接收端之间进行无线通信的通信信道发生变化,即连接信息发生变化,则会重新将变化后的连接信息通知给预设的第二接收端。比如,发送端与第一接收端重新建立无线通信连接,连接信息发生变化,发送端将变化后的连接信息通知给预设的第二接收端。第二接收端根据变化后的连接信息确定发送端与第一接收端之间当前进行无线通信的通信信道。
在具体实现中,第二接收端在接收到连接信息后,可以进行存储。发送设备后续可以在每次需要发送数据之前,通过广播的形式通知第二接收端,以指示第二接收端可以开始监听发送端与第一接收端之间进行无线通信的通信信道,有利于降低第二接收端的功耗。
为方便理解,可以参考图2,发送端203通过第一通信信道向第一接收端201发送数据。第一接收端201通过第二通信信道向发送端203发送数据。第二接收端202可以监听第一通信信道和第二通信信道中的通信数据,并在需要发送数据时,将需发送至第一接收端201的数据发送至第一通信信道中,将需发送至发送端203的数据发送至第二通信信道中。第一接收端201可以通过第一通信信道接收到第二接收端202在第一通信信道中发送的数据,发送端203可以通过第二通信信道接收到第二接收端202在第二通信信道发送的数据。图2中的虚线箭头1表示:第二接收端202可以在与发送端203不建立连接的条 件下,接收发送端203在第一通信信道中发送的数据,还可以表示第二接收端202在与第一接收端201不建立连接的条件下,接收第一接收端201在第二通信信道中发送的数据。图2中的虚线箭头2表示:第二接收端202可以在与第一接收端201不建立连接的条件下,通过第一通信信道向第一接收端201发送数据,还可以表示第二接收端202可以在与发送端203不建立连接的条件下,通过第二通信信道向发送端203发送数据。
另外,发送端在通信信道中发送数据的第一时间段与第二接收端在通信信道中发送数据的第二时间段互不重合,使得发送端在通信信道中发送的数据与第二接收端在通信信道中发送的数据互不干扰。
在一个例子中,第一时间段和第二时间段可以通过预设的时间片划分得到,预设的时间片为预先规定的第一接收端接收数据的时间片。预设的时间片可以根据发送端与第一接收端建立无线通信连接时所基于的通信协议确定。在该预设的时间片内,第一接收端会一直接收发送端与第一接收端之间的通信信道中的通信数据。
对于基于标准无线协议建立的无线通信连接,标准无线协议通常会规定预设的时间片的时长也可以称为宽度。比如,对于基于标准蓝牙无线协议建立的无线通信连接中,通常会规定建立无线通信连接的接收方与发送方在固定时间片收发数据。本实施例中,接收方即为第一接收端,发送方即为发送端,预设的时间片即为标准蓝牙无线协议规定的接收方接收数据的固定时间片。发送端可以在预设的时间片中的既定时间段(第一时间段)在通信信道中发送数据,第二接收端可以在通信信道中监听并接收发送端发送的数据。预先将预设的时间片预留一段空闲时间段(第二时间段),使得第二接收端可以在预留的空闲 时间段内在通信信道中发送数据。从而,第一接收端可以在通信信道中既接收到发送端发送的数据,又接收到第二接收端发送的数据。
对于基于私有协议建立的无线通信连接,可以根据实际需要自定义该预设的时间片的时长。在具体实现中,预设的时间片的时长可以根据第二接收端的数量确定,比如,第二接收端的数量多,预设的时间片的时长可以设置的较长,第二接收端的数量少,预设的时间片的时长可以设置的较短。在私有协议的基础上,预设的时间片的时长可以预先自定义,使得预设的时间片可以有足够的时长,第二接收端的数量越多,通过预设的时间片划分得到的第二时间段越长,以允许多个第二接收端在通信信道中发送数据,为多个第二接收端在通信信道中发送数据提供充足的时间,有利于根据实际需要满足多个接收端之间需要进行数据同步的需求。
在具体实现中,发送端在通信信道中发送的数据与第二接收端在通信信道中发送的数据,可以根据实际需要进行设置,本实施方式对此不做具体限定。为便于理解,下面对发送端与第二接收端在通信信道中发送的数据进行举例说明:
在一个例子中,可以参考图2,发送端203在第一通信信道中发送的数据可以为:工作状态或工作参数的反馈信息。第二接收端202在第一通信信道中监听到该反馈信息后,在第一通信信道中发送回复信息,该回复信息可以包括第二接收端202的工作状态或工作参数。也就是说,第二接收端202在第一通信信道中发送的数据可以为上述回复信息。第一接收端201可以通过第一通信信道接收到发送端203发送的上述反馈信息以及第二接收端202发送的回复信息,从而得知第二接收端202的工作状态或工作参数。另外,第一接收端201 在接收到上述反馈信息后会在第二通信信道中发送第一接收端201的工作状态或工作参数,从而,第二接收端202可以在第二通信信道中监听到第一接收端201的工作状态或工作参数。也就是说,第一接收端201和第二接收端202在不需要建立无线通信连接的条件下,就可以进行数据通信。
为方便理解,接收端以扬声器为例进行说明,第一接收端和第二接收端分别为扬声器1和扬声器2,发送端为音频源。扬声器1与音频源建立无线通信连接后,通过音频源或扬声器1将连接信息通知给扬声器2,扬声器2开始监听扬声器1与音频源之间的通信信道。当扬声器2在通信信道中监听到音频源发送的工作参数的反馈信息后,将扬声器2的工作参数发送至通信信道中。扬声器1可以通过该通信信道接收到扬声器2的工作参数以及上述音频源发送的反馈信息,从而将扬声器1的工作参数发送至通信信道中,使得扬声器2可以监听到,从而扬声器2可以得知扬声器1的工作参数。可见,扬声器1与扬声器2可以在不建立通信连接的条件下,得知对方的工作参数。其中,工作参数可以根据实际需要进行设置,比如可以为:剩余电量、工作时长、工作模式等。
需要说明的是,本实施方式中的上述各示例均为为方便理解进行的举例说明,并不对本发明的技术方案构成限定。
本实施例相对于现有技术而言,发送端在与第一接收端建立无线连接后,将连接信息通知给预设的第二接收端,连接信息包括:发送端与第一接收端之间进行无线通信的通信信道的信息,连接信息用于指示第二接收端监听通信信道中的通信数据,使得第二接收端在收到连接信息后可以监听发送端与第一接收端之间的通信信道中的通信数据,从而第二接收端可以通过监听该通信信道 获取第一接收端发送的数据。第二接收端将需要发送至第一接收端的数据发送至该通信信道中,使得第一接收端可以在该通信信道中接收到第二接收端发送的数据。第一时间段与第二时间段互不重合,即发送端和第二接收端均可以通过该通信信道向第一接收端发送数据,但发送端和第二接收端分别在不同的时间段发送数据,使得发送端和第二接收端在通信信道中发送的数据互不干扰,从而第一接收端可以准确的接收并识别出第二接收设备发送的数据。因此,本申请实施例可以在第一接收端与第二接收端之间无需建立无线通信连接的条件下,完成第一接收端与第二接收端之间的数据通信,使得第一接收端与第二接收端在进行数据通信时更加方便。
本申请第二实施例涉及一种数据通信方法,本实施例可以在第一接收端与第二接收端之间无需建立无线连接的条件下,完成第一接收端与第二接收端之间的数据同步。比如,多个扬声器之间的数据同步,多个机械臂之间的数据同步。下面对本实施例的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。
本实施例的数据通信方法的流程图可以如图3所示,包括:
步骤301:与预设的第一接收端建立无线通信连接。
步骤302:将连接信息通知给预设的第二接收端。
其中,步骤301至步骤302分别与第一实施方式中的步骤101至步骤102大致相同,为避免重复,此处不再赘述。
步骤303:在第一时间段内,通过通信信道向第一接收端发送待同步的数据。
其中,待同步的数据即为发送端在通信信道中发送的数据。在一个例子 中,发送端为音频源,第一接收端为扬声器1,待同步的数据可以为音频数据包。在另一个例子中,发送端为机械臂控制器,第一接收端为机械臂1,待同步的数据可以为对机械臂的控制信息。
发送端通知给第二接收端的连接信息,用于指示第二接收端监听通信信道中的通信数据,当第二接收端监听到待同步的数据,在第二时间段内将需发送第一接收端的数据发送至通信信道中;其中,需发送至第一接收端的数据用于表征第二接收端获取的待同步的数据是否正确。其中,第二接收端监听到待同步的数据可以理解为:第二接收端在通信信道中获取到待同步的数据。在具体实现中,待同步的数据可以携带同步标识,使得第一接收端和第二接收端可以识别出当前通信信道中的数据是否为待同步的数据。
具体的说,如果第二接收端在通信信道中监听到发送端发送的待同步的数据,即第二接收端从该通信信道中获取该待同步的数据。然后,可以根据预设的检验机制,判断获取的该待同步的数据是否正确。如果判定获取的该待同步的数据正确,则确定需发送至第一接收端的数据为确认信息,从而将确认信息发送至通信信道中。在具体实现中,该确认信息可以为ACK(Acknowledgement,简称:ACK),第一接收端在接收到第二接收端发送的ACK时,可以确定第二接收端已接收到正确的待同步的数据。如果第二接收端判定获取的待同步的数据为不正确,即获取的待同步的数据异常,则确定需发送至第一接收端的数据为接收错误信息,从而将接收错误信息发送至通信信道中。在具体实现中,该接收错误信息可以为NACK(Negative Acknowledgement,简称:NACK)。因此,第一接收端通过该通信信道可以先后接收到发送端发送的待同步的数据以及第二接收端发送的数据。可以理解的是,在具体实现中, 如果数据传输出现问题,第一接收端也可能没有收到发送端发送的待同步的数据和/或第二接收端发送的数据。
步骤304:若接收到第一接收端发送的确认信息,确定第一接收端和第二接收端完成数据同步。
其中,确认信息为第一接收端在满足预设条件时发送的信息;预设条件为第一接收端接收到来自第二接收端的预设数据且第一接收端确定接收到的待同步的数据正确。预设数据用于表征第二接收端监听到的待同步的数据正确,比如,预设数据可以为第二接收端发送的ACK。
也就是说,第一接收端在确定自己接收到正确的待同步的数据且确定第二接收端也接收到正确的待同步的数据后,向发送端发送确认信息。发送端在接收到第一接收端发送的确认信息后,确定第一接收端与第二接收端完成数据同步。可以理解的是,第二接收端可以在第一接收端与发送端之间的通信信道中监听到第一接收端发送的确认信息,从而可以确定第一接收端已经接收到了正确的待同步的数据,即第一接收端和第二接收端相互之间可以得知对方是否接收到正确的待同步的数据。在一个例子中,当第二接收端监听到第一接收端发送的确认信息,第二接收端可以执行待同步的数据指示的操作,如果没有监听到第一接收端发送的确认信息,则第二接收端可以不执行任何操作。
在具体实现中,若确定第一接收端和第二接收端完成数据同步,则第一接收端和第二接收端可以执行待同步的数据所指示的操作。比如,发送端为音频源,第一接收端和第二接收端分别为扬声器1和扬声器2,待同步的数据为音频源发出的音频数据包。那么,扬声器1和扬声器2可以根据接收到的音频数据包,执行播放音频的操作。再比如,发送端为机械臂控制器,第一接收端 和第二接收端分别为机械臂1和机械臂2,待同步的数据为机械臂控制器发出的对机械臂的控制信息,机械臂1和机械臂2可以根据接收到的控制信息,执行对机械臂1和机械臂2的控制操作。
为进一步方便对本实施方式的理解,进行如下举例说明:参考图4,假设第一接收端为扬声器1、第二接收端为扬声器2、发送端为音频源3。音频源3发出的待同步的数据为音频数据包。
扬声器1与音频源3之间通过预设的通信协议建立无线通信连接。其中,预设的通信协议可以为标准无线协议或私有协议,还可以为标准协议与私有协议的组合。扬声器2与扬声器1之间不需要建立无线通信连接,扬声器2与音频源3之间也不需要建立无线通信连接。扬声器1与音频源3建立无线通信连接后可以通过定向广播的方式向扬声器2通知扬声器1与音频源3之间已建立连接的连接信息,连接信息可以包括扬声器1与音频源3之间的通信信道的信息,例如通信信道的通信频点。扬声器2接收到连接信息后,可以监听扬声器1与音频源3之间的通信信道如图4中的通信信道1和通信信道2,从而获取扬声器1与音频源3之间的通信数据。扬声器2可以在不影响扬声器1与音频源3之间的通信的前提下,向扬声器1与音频源3之间的通信信道1中发送数据。扬声器1在预设的时间片内(比如标准无线通信协议规定的时间内)会一直接收扬声器1与音频源2之间的通信信道中的数据,此时就能接收到扬声器2发送的数据。
在具体实现中,扬声器2可以一直监听通信信道1中的通信数据,当监听到音频源3发送的音频数据包后,获取该音频数据包。根据预设的校验机制,判断获取的该音频数据包是否为正确的音频数据包,如果是正确的音频数据包, 则在通信信道1中回复确认信息。扬声器1通过通信信道1可以接收到音频源3发送的音频数据包和扬声器2发送的确认信息。然后,扬声器1也可以根据预设的校验机制,判断接收的该音频数据包是否为正确的音频数据包,如果是正确的音频数据包且扬声器1接收到扬声器2发送的确认信息,则在通信信道2中发送确认信息,扬声器2在通信信道2上可以监听到扬声器1发出的确认信息。此时,扬声器1与扬声器2完成数据同步,即音频源3的音频数据包同时下发到了扬声器1与扬声器2,且扬声器1与扬声器2互相得知对方已接收到正确的音频数据包。
下面对扬声器1与扬声器2在通信过程中的可能出现的不同情况进行举例说明:
情况1:扬声器1与扬声器2均接收到正确的音频数据包的通信过程可以参考图5。扬声器1与扬声器2在预设的时间片n,通信信道1上接收音频源3发送的音频数据包。从图中可以看出,音频源3发送音频数据包不占满全部的时间片n,时间n上预留了一段空闲时间用于供扬声器2发送数据。当接收完音频数据包之后,扬声器2在上述预留的一段空闲时间内在通信信道1上接着发送一个确认信息ACK,扬声器1先后接收到音频数据包与扬声器2发送的ACK。扬声器1在时间片n+1,通信信道2上向音频源3回复确认信息ACK。其中,通信信道1与通信信道2表征不同的通信频点,本实施方式对通信频点的具体大小不做限定,在具体实现中可以根据实际需要进行设置。此种情况下可以认为扬声器1与扬声器2完成数据同步。由图5可以看出,扬声器2发送ACK的时间段与接收到音频数据包的时间段互不重合但属于同一个时间片n,即扬声器2能够在同一个时间片接收音频数据包,并基于接收到音频数据包进 行回复,回复的速度较快。
情况2:扬声器2接收到的音频数据包为错误的音频数据包的通信过程可以参考图6。扬声器1与扬声器2在预设的时间片n,通信信道1上接收音频源3发送的音频数据包。扬声器2接收完音频数据包后发现接收的音频数据包是错误的,则在通信信道1上接着发送一个接收错误信息NACK。扬声器1先后接收到音频数据包与扬声器2发送的NACK,则在时间片n+1,通信信道2上向音频源3回复接收错误信息NACK。音频源3接收到扬声器1发送的NACK后,可以根据实际需要重新发送原音频数据包,或者丢弃原音频数据包接着发送下一个音频数据包。
情况3:扬声器1只接收到音频数据包但未接收到扬声器2发送的数据的通信过程可以参考图7。扬声器1与扬声器2在预设的时间片n,通信信道1上接收音频源3发送的音频数据包。扬声器1在时间片n内只接收到音频数据包未接收到扬声器2发送的ACK,则扬声器1在时间片n+1,通信信道2上向音频源3回复接收错误消息NACK。音频源3接收到扬声器1发送的NACK后,可以根据实际需要重新发送原音频数据包,或者丢弃原音频数据包接着发送下一个音频数据包。
情况4:扬声器1未接收到任何数据的通信过程可以参考图8。音频源3在预设的时间片n,通信信道1上发送音频数据包,扬声器2在接收到音频数据包在后在通信信道1发送ACK。但扬声器1未接收到任何数据,扬声器1可以不做任何回应。
需要说明的是,本实施方式中的上述各示例均为为方便理解进行的举例说明,并不对本发明的技术方案构成限定。
本实施例相对于现有技术而言,有利于在第一接收端与第二接收端之间无需建立无线连接的条件下,进行第一接收端与第二接收端之间数据同步。
本申请第三实施例涉及一种数据通信方法,应用于第二接收端。下面对本实施例的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。
本实施例中的数据通信方法的具体流程可以如图9所示,包括:
步骤401:接收连接信息。
其中,发送端与预设的第一接收端建立无线通信连接后向第二接收端通知连接信息;连接信息包括:发送端与第一接收端之间进行无线通信的通信信道的信息;连接信息用于指示第二接收端监听通信信道中的通信数据。
在一个例子中,发送端与第一接收端之间进行无线通信的通信信道包括:第一通信信道和第二通信信道:其中,第一通信信道为发送端向第一接收端发送数据的通信信道,第二通信信道为第一接收端向发送端发送数据的通信信道。
在一个例子中,所述发送端与所述第一接收端之间进行无线通信的通信信道的信息包括:所述第一通信信道的通信频点和所述第二通信信道的通信频点。
在一个例子中,发送端与第一接收端之间建立的无线通信连接为蓝牙连接,第二接收端可以通过广播的形式,接收连接信息。
在一个例子中,第二接收端可以接收发送端和/或第一接收端通知的连接信息。在具体实现中,如果由发送端向第二接收端通知连接信息,有利于降低第一接收端的功耗。
步骤402:监听通信信道中的通信数据。
步骤403:将需发送至第一接收端的数据发送至通信信道中。
其中,发送端在通信信道中发送数据的第一时间段与第二接收端在通信信道中发送数据的第二时间段互不重合。当第二接收端监听到通信信道中的通信数据,可以将需发送至第一接收端的数据发送至通信信道中。
在一个例子中,第一时间段和第二时间段通过预设的时间片划分得到;预设的时间片为预先规定的第一接收端接收数据的时间片。
在一个例子中,发送端与第一接收端建立的无线通信连接为基于预设的私有协议建立的无线通信连接;预设的时间片的时长根据第二接收端的数量确定,所述第二接收端的数量越多,通过所述预设的时间片划分得到的第二时间段越长。
在一个例子中,当第二接收端监听到发送端在所述第一时间段内通过所述通信信道向所述第一接收端发送数据,在所述第二时间段内将需发送至所述第一接收端的数据发送至所述通信信道中;其中,所述需发送至所述第一接收端的数据用于表征所述第二接收端监听到的所述发送端发送的数据是否正确。
在一个例子中,所述发送端发送的数据为待同步的数据,若所述发送端接收到所述第一接收端发送的确认信息,确定所述第一接收端和所述第二接收端完成数据同步;其中,所述确认信息为所述第一接收端在满足预设条件时发送的信息;所述预设条件为所述第一接收端接收到来自所述第二接收端的预设数据且所述第一接收端确定接收到的所述待同步的数据正确,所述预设数据用于表征所述第二接收端监听到的所述待同步的数据正确。
在一个例子中,第二接收端的数量为N个,N为大于1的自然数;将需发送至第一接收端的数据发送至通信信道中,包括:按照预设的顺序,依 次将需发送至第一接收端的数据发送至通信信道中。
需要说明的是,本实施例的数据通信方法应用于第二接收端,第一和第二实施例的数据通信方法应用于发送端。本实施例可与第一和第二实施例互相配合实施。第一和第二实施例中提到的相关技术细节和技术效果在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第一和第二实施例中。
本申请第四实施例涉及一种数据通信方法,应用于第一接收端。下面对本实施例的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。
本实施例中的数据通信方法的具体流程可以如图10所示,包括:
步骤501:与发送端端建立无线通信连接。
步骤502:将连接信息通知给预设的第二接收端。
其中,所述连接信息包括:所述发送端与所述第一接收端之间进行无线通信的通信信道的信息;所述连接信息用于指示所述第二接收端监听所述通信信道中的通信数据;当第二接收端监听到通信数据,将需发送至所述第一接收端的数据发送至所述通信信道中;第一接收端在通信信道中接收发送端发送的数据的第一时间段与接收第二接收端发送的数据的第二时间段互不重合。
在具体实现中,由于接收数据通常与发送数据相对应,因此第一接收端在通信信道中接收发送端发送的数据的第一时间段,可以理解为:发送端在通信信道中发送数据的第一时间段。第一接收端在通信信道中接收第二接收端发送的数据的第二时间段,可以理解为:第二接收端在通信信道中发送数据的第二时间段。
可以理解的是,不同的设备发送的数据通常具有不同的设备标识,且每发送完一次数据均会有对应的结束标志。因此,第一接收端可以通过设备标识、结束标志等参考信息,区分接收到的数据是发送端发送的还是第二接收设备发送的。
在一个例子中,所述无线通信连接为蓝牙连接,第一接收端通过广播的形式,将连接信息通知给预设的第二接收端。
需要说明的是,本实施例的数据通信方法应用于第一接收端,第一和第二实施例的数据通信方法应用于发送端,第三实施例的数据通信方法应用于第二接收端。本实施例可与第一至第三实施例互相配合实施。第一至第三实施例中提到的相关技术细节和技术效果在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第一至第三实施例中。
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。
本申请第五实施例涉及一种数据通信系统,如图11所示,包括:发送端601、第一接收端602和第二接收端603;发送端601,用于在与预设的第一接收端602建立无线通信连接后,将连接信息通知给预设的第二接收端603;其中,连接信息包括:发送端601与第一接收端602之间进行无线通信的通信信道的信息;连接信息用于指示第二接收端603监听通信信道中的通信数据;第二接收端603,用于监听通信信道中的通信数据,并将需发送至第一接收端 602的数据发送至通信信道中;其中,发送端601在通信信道中发送数据的第一时间段与第二接收端603在通信信道中发送数据的第二时间段互不重合。其中,图11中的实线表示发送端601与第一接收端602建立的无线通信连接,图11中的虚线表示:在第二接收端603与发送端601之间未建立无线通信连接,且第二接收端603与第一接收端602之间也未建立无线通信连接的情况下,第二接收端603可以监听第一接收端602与发送端601之间的通信信道,并将需发送至的数据发送至通信信道中。
不难发现,本实施例为与第一至第四实施例相对应的系统实施例,本实施例可与第一至第四实施例互相配合实施。第一至第四实施例中提到的相关技术细节和技术效果在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第一至第四实施例中。
本申请第六实施例涉及一种电子设备,如图12所示,包括至少一个处理器701;以及,与至少一个处理器701通信连接的存储器702;其中,存储器702存储有可被至少一个处理器701执行的指令,指令被至少一个处理器701执行。当电子设备为发送端时,至少一个处理器能够执行第一或第二实施例中的数据通信方法。当电子设备为第二接收端时,至少一个处理器能够执行第三实施例中的数据通信方法。当电子设备为第一接收端时,至少一个处理器能够执行第四实施例中的数据通信方法。
其中,存储器702和处理器701采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器701和存储器702的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其 进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器701处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器701。
处理器701负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器702可以被用于存储处理器701在执行操作时所使用的数据。
本申请第七实施例涉及一种芯片,如图13所示,包括至少一个处理器801;以及,与至少一个处理器801通信连接的存储器802;其中,存储器802存储有可被至少一个处理器801执行的指令,指令被至少一个处理器801执行,以使所述至少一个处理器801能够执行第一或第二实施例中的数据通信方法,或者执行第三实施例中的数据通信方法,或者执行第四实施例中的数据通信方法。
其中,存储器802和处理器801采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器801和存储器802的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器801处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器801。
处理器801负责管理总线和通常的处理,还可以提供各种功能,包括 定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器802可以被用于存储处理器801在执行操作时所使用的数据。
本申请第八实施例涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域的普通技术人员可以理解,上述各实施例是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。

Claims (25)

  1. 一种数据通信方法,其特征在于,应用于发送端,包括:
    在与预设的第一接收端建立无线通信连接后,将连接信息通知给预设的第二接收端;
    其中,所述连接信息包括:所述发送端与所述第一接收端之间进行无线通信的通信信道的信息;所述连接信息用于指示所述第二接收端监听所述通信信道中的通信数据;当所述第二接收端监听到所述通信数据,将需发送至所述第一接收端的数据发送至所述通信信道中;所述发送端在所述通信信道中发送数据的第一时间段与所述第二接收端在所述通信信道中发送数据的第二时间段互不重合。
  2. 如权利要求1所述的数据通信方法,其特征在于,在所述将连接信息通知给预设的第二接收端之后,还包括:
    在所述第一时间段内,通过所述通信信道向所述第一接收端发送数据;
    所述连接信息用于指示所述第二接收端监听所述通信信道中的所述发送端发送的数据;当所述第二接收端监听到所述发送端发送的数据,在所述第二时间段内将需发送至所述第一接收端的数据发送至所述通信信道中;其中,所述需发送至所述第一接收端的数据用于表征所述第二接收端监听到的所述发送端发送的数据是否正确。
  3. 如权利要求2所述的数据通信方法,其特征在于,所述发送端发送的数据为待同步的数据,所述方法还包括:
    若接收到所述第一接收端发送的确认信息,确定所述第一接收端和所述第二接收端完成数据同步;
    其中,所述确认信息为所述第一接收端在满足预设条件时发送的信息;所述预设条件为所述第一接收端接收到来自所述第二接收端的预设数据且所述第一接收端确定接收到的所述待同步的数据正确,所述预设数据用于表征所述第二接收端监听到的所述待同步的数据正确。
  4. 如权利要求1至3中任一项所述的数据通信方法,其特征在于,所述发送端与所述第一接收端之间进行无线通信的通信信道包括:第一通信信道和第二通信信道;
    其中,所述第一通信信道为所述发送端向所述第一接收端发送数据的通信信道,所述第二通信信道为所述第一接收端向所述发送端发送数据的通信信道。
  5. 如权利要求4所述的数据通信方法,其特征在于,所述发送端与所述第一接收端之间进行无线通信的通信信道的信息包括:所述第一通信信道的通信频点和所述第二通信信道的通信频点。
  6. 如权利要求1至5中任一项所述的数据通信方法,其特征在于,所述第一时间段和所述第二时间段通过预设的时间片划分得到,所述预设的时间片为预先规定的所述第一接收端接收数据的时间片。
  7. 如权利要求6所述的数据通信方法,其特征在于,所述发送端与所述第一接收端建立的无线通信连接为:基于预设的私有协议建立的无线通信连接;
    所述预设的时间片的时长根据所述第二接收端的数量确定,所述第二接收端的数量越多,通过所述预设的时间片划分得到的第二时间段越长。
  8. 如权利要求1至7中任一项所述的数据通信方法,其特征在于,所述第二接收端的数量为N个,所述N为大于1的自然数;
    所述连接信息用于指示N个所述第二接收端监听所述通信信道中的通信数据,并按照预设的顺序依次将需发送至所述第一接收端的数据发送至所述通信信道中。
  9. 如权利要求1至8中任一项所述的数据通信方法,其特征在于,所述无线通信连接为蓝牙连接,所述将连接信息通知给预设的第二接收端,包括:
    通过广播的形式,将所述连接信息通知给所述预设的第二接收端。
  10. 一种数据通信方法,其特征在于,应用于第一接收端,包括:
    在与发送端建立无线通信连接后,将连接信息通知给预设的第二接收端;
    其中,所述连接信息包括:所述发送端与所述第一接收端之间进行无线通信的通信信道的信息;所述连接信息用于指示所述第二接收端监听所述通信信道中的通信数据;当所述第二接收端监听到所述通信数据,将需发送至所述第一接收端的数据发送至所述通信信道中;所述第一接收端在所述通信信道中接收所述发送端发送的数据的第一时间段与接收所述第二接收端发送的数据的第二时间段互不重合。
  11. 如权利要求10所述的数据通信方法,其特征在于,所述无线通信连接为蓝牙连接,所述将连接信息通知给预设的第二接收端,包括:
    通过广播的形式,将所述连接信息通知给所述预设的第二接收端。
  12. 一种数据通信方法,其特征在于,应用于第二接收端,包括:
    接收连接信息;其中,发送端与预设的第一接收端建立无线通信连接后通知所述连接信息;所述连接信息包括:所述发送端与所述第一接收端之间进行无线通信的通信信道的信息;所述连接信息用于指示所述第二接收端监听所述通信信道中的通信数据;
    监听所述通信信道中的通信数据;
    将需发送至所述第一接收端的数据发送至所述通信信道中;其中,所述发送端在所述通信信道中发送数据的第一时间段与所述第二接收端在所述通信信道中发送数据的第二时间段互不重合。
  13. 如权利要求12所述的数据通信方法,其特征在于,所述将需发送至所述第一接收端的数据发送至所述通信信道中,包括:
    当监听到所述发送端在所述第一时间段内通过所述通信信道向所述第一接收端发送的数据,在所述第二时间段内将需发送至所述第一接收端的数据发送至所述通信信道中;
    其中,所述需发送至所述第一接收端的数据用于表征所述第二接收端监听到的所述发送端发送的数据是否正确。
  14. 如权利要求13所述的数据通信方法,其特征在于,所述发送端发送的数据为待同步的数据,所述方法还包括:
    若所述发送端接收到所述第一接收端发送的确认信息,确定所述第一接收端和所述第二接收端完成数据同步;
    其中,所述确认信息为所述第一接收端在满足预设条件时发送的信息;所述预设条件为所述第一接收端接收到来自所述第二接收端的预设数据且所述第一接收端确定接收到的所述待同步的数据正确,所述预设数据用于表征所述第二接收端监听到的所述待同步的数据正确。
  15. 如权利要求12至14中任一项所述的数据通信方法,其特征在于,所述发送端与所述第一接收端之间进行无线通信的通信信道包括:第一通信信道和第二通信信道;
    其中,所述第一通信信道为所述发送端向所述第一接收端发送数据的通信信道,所述第二通信信道为所述第一接收端向所述发送端发送数据的通信信道。
  16. 如权利要求15所述的数据通信方法,其特征在于,所述发送端与所述第一接收端之间进行无线通信的通信信道的信息包括:所述第一通信信道的通信频点和所述第二通信信道的通信频点。
  17. 如权利要求12至16中任一项所述的数据通信方法,其特征在于,所述第一时间段和所述第二时间段通过预设的时间片划分得到;
    所述预设的时间片为预先规定的所述第一接收端接收数据的时间片。
  18. 如权利要求17所述的数据通信方法,其特征在于,所述发送端与所述第一接收端建立的无线通信连接为:基于预设的私有协议建立的无线通信连接;
    所述预设的时间片的时长根据所述第二接收端的数量确定,所述第二接收端的数量越多,通过所述预设的时间片划分得到的第二时间段越长。
  19. 如权利要求12至18中任一项所述的数据通信方法,其特征在于,所述第二接收端的数量为N个,所述N为大于1的自然数;
    所述将需发送至所述第一接收端的数据发送至所述通信信道中,包括:
    按照预设的顺序,依次将需发送至所述第一接收端的数据发送至所述通信信道中。
  20. 如权利要求12至19中任一项所述的数据通信方法,其特征在于,所述无线通信连接为蓝牙连接,所述接收连接信息,包括:
    通过广播的形式,接收所述连接信息。
  21. 如权利要求12至20中任一项所述的数据通信方法,其特征在于,所述接收连接信息,包括:
    接收所述发送端和/或所述第一接收端通知的所述连接信息。
  22. 一种数据通信系统,其特征在于,包括:发送端、第一接收端和第二接收端;
    所述发送端与预设的第一接收端建立无线通信连接后,所述发送端或所述第一接收端用于将连接信息通知给预设的第二接收端;其中,所述连接信息包括:所述发送端与所述第一接收端之间进行无线通信的通信信道的信息;所述连接信息用于指示所述第二接收端监听所述通信信道中的通信数据;
    所述第二接收端,用于监听所述通信信道中的通信数据,并将需发送至所述第一接收端的数据发送至所述通信信道中;其中,所述发送端在所述通信信道中发送数据的第一时间段与所述第二接收端在所述通信信道中发送数据的第二时间段互不重合。
  23. 一种电子设备,其特征在于,包括:至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行;
    当所述电子设备为发送端时,所述至少一个处理器能够执行如权利要求1至9中任一项所述的数据通信方法;
    当所述电子设备为第一接收端时,所述至少一个处理器能够执行如权利要求10至11中任一项所述的数据通信方法;
    当所述电子设备为第二接收端时,所述至少一个处理器能够执行如权利要求12至21中任一项所述的数据通信方法。
  24. 一种芯片,其特征在于,包括:至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至9中任一项所述的数据通信方法,或者执行如权利要求10至11中任一项所述的数据通信方法,或者执行如权利要求12至21中任一项所述的数据通信方法。
  25. 一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至9中任一项所述的数据通信方法,或者实现如权利要求10至11中任一项所述的数据通信方法,或者实现如权利要求12至21中任一项所述的数据通信方法。
PCT/CN2020/091707 2020-05-22 2020-05-22 数据通信方法、系统、电子设备、芯片和存储介质 WO2021232389A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/091707 WO2021232389A1 (zh) 2020-05-22 2020-05-22 数据通信方法、系统、电子设备、芯片和存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/091707 WO2021232389A1 (zh) 2020-05-22 2020-05-22 数据通信方法、系统、电子设备、芯片和存储介质

Publications (1)

Publication Number Publication Date
WO2021232389A1 true WO2021232389A1 (zh) 2021-11-25

Family

ID=78708975

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/091707 WO2021232389A1 (zh) 2020-05-22 2020-05-22 数据通信方法、系统、电子设备、芯片和存储介质

Country Status (1)

Country Link
WO (1) WO2021232389A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108702651A (zh) * 2017-11-09 2018-10-23 深圳市汇顶科技股份有限公司 平衡的无线数据传输
CN109327829A (zh) * 2018-11-22 2019-02-12 重庆物奇科技有限公司 蓝牙设备、蓝牙通信系统及设备间传输指令的方法
CN109495867A (zh) * 2018-11-22 2019-03-19 重庆物奇科技有限公司 蓝牙设备、系统及设备间信息传输的方法
CN110381490A (zh) * 2019-07-24 2019-10-25 恒玄科技(上海)有限公司 一种用于无线耳机的通信方法、无线耳机和无线设备
WO2020000425A1 (zh) * 2018-06-29 2020-01-02 华为技术有限公司 传输音频数据的方法、系统及无线音频系统
US10558427B2 (en) * 2017-07-31 2020-02-11 Samsung Electronics Co., Ltd Electronic device for reproducing audio signal via external device and operating method thereof
CN110831246A (zh) * 2019-11-11 2020-02-21 展讯通信(上海)有限公司 数据传输方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10558427B2 (en) * 2017-07-31 2020-02-11 Samsung Electronics Co., Ltd Electronic device for reproducing audio signal via external device and operating method thereof
CN108702651A (zh) * 2017-11-09 2018-10-23 深圳市汇顶科技股份有限公司 平衡的无线数据传输
WO2020000425A1 (zh) * 2018-06-29 2020-01-02 华为技术有限公司 传输音频数据的方法、系统及无线音频系统
CN109327829A (zh) * 2018-11-22 2019-02-12 重庆物奇科技有限公司 蓝牙设备、蓝牙通信系统及设备间传输指令的方法
CN109495867A (zh) * 2018-11-22 2019-03-19 重庆物奇科技有限公司 蓝牙设备、系统及设备间信息传输的方法
CN110381490A (zh) * 2019-07-24 2019-10-25 恒玄科技(上海)有限公司 一种用于无线耳机的通信方法、无线耳机和无线设备
CN110831246A (zh) * 2019-11-11 2020-02-21 展讯通信(上海)有限公司 数据传输方法及装置

Similar Documents

Publication Publication Date Title
CN111435844B (zh) 双无线蓝牙通信音频数据更正方法、装置、设备及系统
CN111436044B (zh) 双无线蓝牙通信网络丢包数据处理方法、装置及系统
WO2019232901A1 (zh) 一种语音数据的传输方法、无线耳机及tws耳机
WO2021121289A1 (zh) 蓝牙耳机的数据接收方法、装置、设备及存储介质
CN112437369B (zh) 音频数据的传输方法、系统、tws耳机对、芯片及介质
CN111436043B (zh) 双无线蓝牙通信网络的通信方法、装置、设备及系统
CN112968752B (zh) 一种uart通信的波特率切换方法、装置及发起方终端
CN109922540B (zh) 无线收发设备组通信方法、设备组、系统及存储介质
EP3923608B1 (en) Data transmission method between tws bluetooth devices and tws bluetooth device therefor
CN111818496B (zh) 基于载波监听的tws耳机通信方法及系统、tws耳机
US11528764B2 (en) Data communication method and system, electronic device, chip and storage medium
CN110234101B (zh) 一种可靠传输数据的无线传输方法、设备及系统
CN113330757B (zh) 一种数据传输方法以及相关装置
CN112335328B (zh) 传输音频数据的方法、系统及无线音频系统
CN112437371B (zh) Ble链路的切换方法、设备、耳机对、芯片及介质
WO2021232389A1 (zh) 数据通信方法、系统、电子设备、芯片和存储介质
CN110545151B (zh) 音频端之间状态同步、发送音频数据包的方法及音频设备
US11917543B2 (en) Bluetooth-based data transmission method and data receiving method, communicating apparatus and computer storage medium
AU2019431307A1 (en) Wireless connection method, device group, system, and storage medium
EP3843495B1 (en) Communication method and apparatus, and device
CN115396856A (zh) 建立蓝牙链路的方法、装置、设备及存储介质
EP4114036A1 (en) Method and system for transmitting audio data wirelessly
CN115694742A (zh) 在无线通信系统中发送确认信号的方法和电子设备
CN111278011A (zh) 一种智能音箱的配网方法及智能音箱
CN115967927A (zh) 蓝牙连接方法及装置、耳机、存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20937101

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20937101

Country of ref document: EP

Kind code of ref document: A1