WO2022160107A1 - 通信方法及装置 - Google Patents

通信方法及装置 Download PDF

Info

Publication number
WO2022160107A1
WO2022160107A1 PCT/CN2021/073855 CN2021073855W WO2022160107A1 WO 2022160107 A1 WO2022160107 A1 WO 2022160107A1 CN 2021073855 W CN2021073855 W CN 2021073855W WO 2022160107 A1 WO2022160107 A1 WO 2022160107A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
communication
terminal device
information
bluetooth
Prior art date
Application number
PCT/CN2021/073855
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/CN2021/073855 priority Critical patent/WO2022160107A1/zh
Priority to CN202180090078.5A priority patent/CN116762371A/zh
Priority to EP21921727.0A priority patent/EP4274158A4/en
Publication of WO2022160107A1 publication Critical patent/WO2022160107A1/zh
Priority to US18/358,120 priority patent/US20230370183A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H20/00Arrangements for broadcast or for distribution combined with broadcast
    • H04H20/02Arrangements for relaying broadcast information
    • H04H20/08Arrangements for relaying broadcast information among terminal devices
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Definitions

  • the present application relates to the field of communication, and in particular, to a communication method and device.
  • Data sharing refers to the process by which a device sends data, such as audio, to other devices, such as colleagues, friends, or other groups of people.
  • data sharing a common way of data sharing is Bluetooth sharing.
  • Bluetooth sharing of data can be realized based on the point-to-point multi-connection scheme and the broadcast scheme.
  • the sharing device sends a copy of the data to be shared to each of the shared devices through point-to-point connections established respectively with multiple shared devices.
  • the sharing device sends a piece of data to be shared to all the shared devices through broadcasting.
  • Bluetooth uses frequency hopping spread spectrum (FHSS) communication
  • the frequency band needs to be divided into multiple sub-bands, and the same device works on one sub-band at each time, resulting in the same device only occupying part of the bandwidth at each time.
  • the amount of data transmitted per unit time is small and cannot support high-quality Bluetooth sharing.
  • Bluetooth and wireless fidelity (WiFi) work in the 2.4 gigahertz (gigahertz, GHz) frequency band
  • WiFi wireless fidelity
  • the Bluetooth and WiFi of shared devices may need to share the same antenna, it may cause Bluetooth sharing and WiFi communication to seize the air interface
  • resources such as Bluetooth sharing can only be completed in part of the time
  • the data transmission rate is limited, and high-quality Bluetooth sharing cannot be supported.
  • the transmission power of the sharing device is usually small, and it cannot support long-distance data sharing.
  • Embodiments of the present application provide a communication method and device, which can solve the problems of limited data transmission per unit time and short sharing distance by sharing devices, thereby improving data quality and the number of devices to be shared.
  • a communication method is provided.
  • the method is applied to a forwarding device.
  • the communication method includes: the forwarding device receives sharing instruction information from the terminal device, wherein the sharing instruction information is used to instruct to share first data, and the first data is the data to be shared by the terminal device; the forwarding device obtains the first data, and according to the sharing The indication information is to send the first data to a plurality of receiving terminals in a wireless broadcast manner.
  • the forwarding device (that is, the auxiliary sharing device) can acquire the first data, and send the first data to multiple receiving terminals (that is, the shared devices) according to the sharing instruction information of the terminal device (that is, the primary sharing device). Sharing the first data, that is, the forwarding device can assist the terminal device to complete data sharing.
  • the primary sharing device may be a device with limited air interface resources and/or transmit power
  • the auxiliary sharing device may be a device with unlimited air interface resources and/or transmit power.
  • the terminal device can send the first data to the forwarding device by using a communication method such as WiFi or a wired connection.
  • WiFi communication occupies a wider frequency band at the same time, it has a higher rate than short-range wireless communication technologies such as Bluetooth, while the wired communication method has a higher rate. It can further get rid of the rate limitation of short-distance wireless communication such as Bluetooth and WiFi communication. Both of these two methods can send a larger amount of data in a unit time, and after the forwarding device obtains high-quality data to be shared, it can pass The wireless broadcast is shared to multiple receiving terminals such as Bluetooth speakers, so that high-quality data to be shared can be sent to ensure the sharing quality.
  • the terminal device only needs to send the data to be shared to the forwarding device, and can use the air interface resources for repeatedly sending the data to be shared to send different parts of the data to be shared, so as to achieve higher-quality sharing of the data to be shared, which can ensure the sharing quality, It can also reduce the amount of data sent by the terminal device, thereby reducing the resource overhead and power consumption of the main sharing device, so as to take into account the data sharing service and other services.
  • the forwarding device can share data with more devices, so as to expand the sharing range, thereby improving the efficiency of data sharing.
  • the terminal device can send data to the forwarding device with a smaller transmit power, thereby saving power consumption and prolonging the battery life.
  • the wireless broadcast method may be a broadcast method based on a short-distance wireless communication technology. In this way, the influence of the network state on the data sharing process can be avoided, and the sharing efficiency can be improved.
  • the short-range wireless communication may include one or more of the following: Bluetooth communication, or Wi-Fi communication.
  • Bluetooth communication or Wi-Fi communication.
  • data can be sent through Bluetooth and wireless fidelity broadcasting, taking into account the sharing efficiency and the number of devices to be shared.
  • the first data may be audio data.
  • the sharing of audio data can be realized, and the quality of audio sharing can be improved.
  • acquiring the first data by the forwarding device may include: the forwarding device receives the first data from the Bluetooth device.
  • the Bluetooth device and the terminal device are connected through Bluetooth.
  • the first data can also be provided by the Bluetooth device, which can further reduce the power consumption of the terminal device, and can expand the application scenarios of data sharing, thereby improving the applicability and flexibility.
  • the forwarding device receives the first data from the terminal device.
  • the terminal device can send higher-quality first data to the forwarding device, so as to further improve the quality of data sharing.
  • the communication method described in the first aspect may further include: receiving decryption information from the terminal device.
  • the decryption information is used to parse the first data transmitted between the terminal device and the Bluetooth device.
  • the forwarding device can parse the first data transmitted between the terminal device and the Bluetooth device according to the decryption information provided by the terminal device, and the terminal device does not need to send the first data to the forwarding device, which can further reduce the resource overhead of the terminal device.
  • the communication method described in the first aspect may further include: the forwarding device sends the first information to the terminal device.
  • the first information is used to indicate that the sharing indication information has been received; or, the first information is used to request the first data.
  • the terminal device sends the first data according to the first information, which can improve the reliability of the first data received by the forwarding device and further improve the effect of data sharing.
  • the sharing indication information may include one or more of the following: the number of times of retransmission of the first data, or the transmit power.
  • the terminal device can determine the number of retransmissions of the forwarding device, and retransmit the first data multiple times, so as to increase the probability that the receiving terminal receives the first data, thereby improving the reliability of data sharing.
  • the transmitting power of the forwarding device is determined by the terminal device, so that a suitable sharing range can be ensured.
  • the forwarding device may include a first communication module and a second communication module.
  • the first communication module is used for receiving the first data
  • the second communication module is used for sending the first data.
  • a communication method is provided, which is applied to a terminal device.
  • the communication method includes: the terminal device sends sharing instruction information to the forwarding device to instruct the forwarding device to share the first data to be shared by the terminal device.
  • the terminal device sends the first data to the forwarding device in a unicast manner.
  • the communication method described in the second aspect may further include: the terminal device receiving the first information from the forwarding device.
  • the first information is used to indicate that the sharing instruction information has been received.
  • the first information is used to request the first data.
  • the sharing indication information may include one or more of the following: the number of times of retransmission of the first data, or the transmission power.
  • a communication device in a third aspect, includes a processor, and a transceiver coupled to the processor.
  • the processor is used for: receiving the sharing instruction information from the terminal device through the transceiver.
  • the sharing instruction information is used to instruct to share the first data
  • the first data is the data to be shared of the terminal device.
  • the first data is acquired through the transceiver.
  • the transceiver is controlled to send the first data to a plurality of receiving devices in a wireless broadcast manner.
  • the transceiver supports short-range wireless communication
  • the wireless broadcasting method is a broadcasting method based on a short-range wireless communication technology.
  • the short-range wireless communication includes one or more of the following: Bluetooth communication, or Wi-Fi communication.
  • the first data is audio data.
  • the processor is configured to: receive the first data from the Bluetooth device through the transceiver.
  • the Bluetooth device and the terminal device can be connected through Bluetooth.
  • the processor is configured to: receive the first data from the terminal device through the transceiver.
  • the processor is further configured to: receive decryption information from the terminal device.
  • the decryption information is used to parse the first data transmitted between the terminal device and the Bluetooth device.
  • the processor is further configured to send the first information to the terminal device through the transceiver.
  • the first information is used to indicate that the sharing instruction information has been received.
  • the first information is used to request the first data.
  • the sharing indication information may include one or more of the following: the number of times of retransmission of the first data, or the transmit power.
  • the processor may include a first communication module and a second communication module.
  • the first communication module is used for receiving the first data
  • the second communication module is used for sending the first data.
  • the communication device described in the third aspect may be a home smart terminal or a Bluetooth portable companion.
  • the transceiver may be a transceiver circuit or an interface circuit.
  • the transceiver can be used for the communication device described in the third aspect to communicate with other communication devices.
  • the transceiver may be a transceiver based on short-range wireless communication.
  • the communication device of the third aspect may further include a storage module, where the storage module stores programs or instructions.
  • the processor executes the program or instruction
  • the communication device can execute the communication method described in the first aspect.
  • the communication device described in the third aspect may be a terminal, a chip (system) or other components or components that can be provided in the terminal, or a device including a terminal, which is not limited in this application.
  • a communication device in a fourth aspect, includes a processor, and a first transceiver coupled to the processor.
  • the processor is configured to: send sharing indication information to the forwarding device through the first transceiver.
  • the sharing instruction information is used to instruct to share the first data
  • the first data is the data to be shared of the terminal device.
  • the first data is sent to the forwarding device in a unicast manner through the first transceiver.
  • the processor is further configured to: receive the first information from the forwarding device through the first transceiver.
  • the first information is used to indicate that the sharing instruction information has been received.
  • the first information is used to request the first data.
  • the sharing indication information may include one or more of the following: the number of times of retransmission of the first data, or the transmit power.
  • the communication device may further include a second transceiver, and the second transceiver and the first transceiver share an antenna in a time-division multiplexing manner.
  • the transceiver may be a transceiver circuit or an interface circuit.
  • the transceiver can be used for the communication device described in the fourth aspect to communicate with other communication devices.
  • the communication device may further include a storage module, where the storage module stores programs or instructions.
  • the processor executes the program or the instruction, the communication device can execute the communication method described in the second aspect.
  • the communication device described in the fourth aspect may be a terminal, a chip (system) or other components or components that can be provided in the terminal, or a device including a terminal, which is not limited in this application.
  • a communication device configured to execute the communication method described in any one of the implementation manners of the first aspect or the second aspect.
  • the communication device described in the fifth aspect may be the device described in the first aspect or the second aspect, or a chip (system) or other components or components that may be provided in the device, or a device including the device. device.
  • the communication device described in the fifth aspect includes a corresponding module, unit, or means for implementing the communication method described in any one of the first aspect to the second aspect, and the module, unit, or means may be Implemented by hardware, implemented by software, or implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units for performing the functions involved in the above communication method.
  • a communication device in a sixth aspect, includes: a processor, where the processor is configured to execute the communication method described in any possible implementation manner of the first aspect or the second aspect.
  • the communication apparatus described in the sixth aspect may further include a transceiver.
  • the transceiver may be a transceiver circuit or an interface circuit.
  • the transceiver can be used for the communication device described in the sixth aspect to communicate with other communication devices.
  • the communication apparatus described in the sixth aspect may further include a memory.
  • the memory can be integrated with the processor, or it can be provided separately.
  • the memory may be used to store the computer program and/or data involved in the communication method described in any one of the first aspect or the second aspect.
  • the communication device described in the sixth aspect may be the device in the first aspect or the second aspect, or a chip (system) or other components or components that may be provided in the device, or a device including the device .
  • a communication device in a seventh aspect, includes: a processor, which is coupled to a memory, and the processor is configured to execute a computer program stored in the memory, so that the communication device can perform any one of the possible implementations of the first aspect or the second aspect. communication method.
  • the communication device may further include a transceiver.
  • the transceiver may be a transceiver circuit or an interface circuit.
  • the transceiver can be used for the communication device described in the seventh aspect to communicate with other communication devices.
  • the communication device described in the seventh aspect may be the device in the first aspect or the second aspect, or a chip (system) or other components or components that may be provided in the device, or a device including the device .
  • a communication device comprising: a processor and a memory; the memory is used for storing a computer program, and when the processor executes the computer program, the communication device executes the first aspect or the second aspect.
  • the communication apparatus described in the eighth aspect may further include a transceiver.
  • the transceiver may be a transceiver circuit or an interface circuit.
  • the transceiver can be used for the communication device described in the eighth aspect to communicate with other communication devices.
  • the communication device described in the eighth aspect may be the device in the first aspect or the second aspect, or a chip (system) or other components or components that may be provided in the device, or a device including the device .
  • a communication device comprising: a processor; the processor is configured to be coupled to a memory, and after reading a computer program in the memory, execute the first aspect or the second aspect according to the computer program Any one of the communication methods described in the implementation manner.
  • the communication device may further include a transceiver.
  • the transceiver may be a transceiver circuit or an interface circuit.
  • the transceiver can be used for the communication device described in the ninth aspect to communicate with other communication devices.
  • the communication device described in the ninth aspect may be the device in the first aspect or the second aspect, or a chip (system) or other components or components that may be provided in the device, or a device including the device .
  • a tenth aspect provides a processor.
  • the processor is configured to execute the communication method described in any possible implementation manner of the first aspect or the second aspect.
  • a communication system in an eleventh aspect, includes a forwarding device, a terminal device and a plurality of receiving devices.
  • a twelfth aspect provides a computer-readable storage medium, comprising: a computer program or instruction; when the computer program or instruction is run on a computer, the computer is made to execute any one of the first aspect or the second aspect possible.
  • the communication method described in the implementation mode is implemented.
  • a thirteenth aspect provides a computer program product, comprising a computer program or instructions, which, when the computer program or instructions are run on a computer, cause the computer to execute any one of the possible implementations of the first aspect or the second aspect. the communication method described.
  • FIG. 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram 1 of a device provided by an embodiment of the present application.
  • FIG. 3 is a second schematic structural diagram of a device provided by an embodiment of the present application.
  • FIG. 4 is a third schematic structural diagram of a device provided by an embodiment of the present application.
  • FIG. 5 is a fourth schematic diagram of the architecture of a device provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart 1 of a communication method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of sending data in a broadcast manner according to an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of establishing a Bluetooth connection according to an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of establishing a WiFi connection according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a Bluetooth broadcast connection
  • Figure 11 is a schematic structural diagram of a Bluetooth point-to-point connection
  • FIG. 12 is a second schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram 1 of a communication device provided by an embodiment of the present application.
  • FIG. 14 is a second schematic structural diagram of a communication device according to an embodiment of the present application.
  • FIG. 15 is a third schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
  • Bluetooth bluetooth
  • UHF ultra high frequency
  • Unicast It refers to a transmission method in which the destination address is a single destination, and the reception and transmission of information are only carried out between two devices.
  • Broadcast refers to a transmission method in which the destination address is all devices in the network, and the sending device sends data to all devices in the network.
  • Air interface resources refer to wireless resources used to transmit data between devices, such as frequency domain resources, time domain resources, air domain resources, or code domain resources.
  • the technical solutions in the embodiments of the present application can be applied to various inter-device communication systems, for example, a Bluetooth communication system, a wireless fidelity (wireless fidelity, WiFi) system, a vehicle-to-everything (V2X) communication system, and an inter-device communication system.
  • a Bluetooth communication system for example, a Bluetooth communication system, a wireless fidelity (wireless fidelity, WiFi) system, a vehicle-to-everything (V2X) communication system, and an inter-device communication system.
  • V2X vehicle-to-everything
  • D2D vehicle networking communication system, etc.
  • the network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application.
  • the evolution of the architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
  • FIG. 1 is a schematic diagram 1 of the architecture of a communication system to which the communication method provided by the embodiment of the present application is applied.
  • the communication system 100 includes a forwarding device 101 , a terminal device 102 and a plurality of receiving devices 103 .
  • the forwarding device 101 is connected to the terminal device 102 , and the forwarding device 101 is also connected to each receiving device 103 respectively.
  • the forwarding device 101 may be used for receiving data and sending data.
  • the forwarding device 101 may receive data from the terminal device 102, the receiving device 103, or other devices, and the forwarding device 101 may transmit data to the terminal device 102, the receiving device 103, or other devices.
  • the first data is the data to be shared by the terminal device 102 , that is, the data to be shared determined by the terminal device 102 , such as audio data, image data, video data, and the like.
  • the terminal device 102 can be used to send data, and can also be used to control the data sharing process of the forwarding device 101 .
  • the terminal device 102 may send data to the forwarding device 101 or other devices.
  • the terminal device 102 may also be used to provide a data source for the forwarding device 101 .
  • the terminal device 102 may also be used to receive data.
  • terminal device 102 may receive data from forwarding device 101 or other devices.
  • the receiving device 103 may be used to receive data as well as process the data.
  • the receiving device 103 may receive and play data, such as audio data, from the forwarding device 101 .
  • the communication system shown in FIG. 1 may further include a Bluetooth device 104 .
  • the Bluetooth device 104 is connected to the terminal device 102.
  • the Bluetooth device 104 may be connected with the forwarding device 101 .
  • the Bluetooth device 104 is used to receive data, and/or transmit data.
  • the Bluetooth device 104 can receive data from the terminal device 102 or other devices, such as the forwarding device 101 , and the Bluetooth device can send data to the terminal device 101 or other devices, such as the forwarding device 101 .
  • the Bluetooth device 104 may be used to provide a data source for the forwarding device 101 .
  • the foregoing forwarding device 101, terminal device 102, receiving device 103, and Bluetooth device 104 may be devices of the same type, or may be devices of different types, which are not specifically limited in this embodiment of the present application.
  • any one of the forwarding device 101 , the terminal device 102 , the Bluetooth device 104 and the plurality of receiving devices 103 may also be used to process data.
  • the forwarding device 101 and the terminal device 103 may be connected point-to-point, or may be connected in other ways.
  • the communication connection between the forwarding device 101 and the terminal device 103 may be implemented in a wired manner, or may be implemented in a wireless manner, such as WiFi or Bluetooth.
  • the forwarding device 101 and the receiving device 103 may be connected by broadcasting.
  • the forwarding device 101 may send data to the receiving device 103 through a Bluetooth synchronous broadcast stream (BIS), such as low energy/bluetooth low (LE/BLE) BIS.
  • BIOS Bluetooth synchronous broadcast stream
  • the forwarding device 101 may also send data to the receiving device 103 in a connectionless slave broadcast (connectionless slave broadcast, CSB) manner.
  • connectionless slave broadcast connectionless slave broadcast
  • the communication system shown in FIG. 1 can be used to implement the communication methods provided by the embodiments of the present application, such as the following S601-S603, S1501-S1504, etc.
  • the communication methods provided by the embodiments of the present application, such as the following S601-S603, S1501-S1504, etc.
  • S601-S603, S1501-S1504 please refer to the following method embodiments. It is not repeated here.
  • the communication system 100 shown in FIG. 1 may also include other devices not shown.
  • the forwarding device 101 , the terminal device 102 , and the receiving device 103 shown in FIG. 1 may all be various types of devices, for example, various devices in the Internet of Things.
  • the apparatus may also be referred to as user equipment, access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user equipment.
  • the terminal device in the embodiment of the present application may be a mobile phone (mobile phone), a tablet computer (Pad), or a computer with a wireless transceiver function. It can be understood that, in the embodiments of the present application, the terminal device may also be a Bluetooth headset, a Bluetooth speaker, a smart screen, or a Bluetooth sharing partner, a virtual reality (VR) terminal device, and an augmented reality (Augmented reality, AR) terminal. equipment, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical, wireless terminals in smart grid, transportation security ( Wireless terminals in transportation safety), wireless terminals in smart cities, wireless terminals in smart homes, vehicle-mounted terminals, RSUs with terminal functions, etc.
  • the terminal device of the present application may also be an on-board module, on-board module, on-board component, on-board chip or on-board unit built into the vehicle as one or more components or units.
  • the vehicle-mounted component, the vehicle-mounted chip or the vehicle-mounted unit can implement the communication method provided in this application.
  • the forwarding device may be a home smart terminal such as a smart screen, or a Bluetooth sharing companion (also known as a Bluetooth portable companion).
  • a Bluetooth sharing companion also known as a Bluetooth portable companion
  • the receiving device may be a Bluetooth headset, a Bluetooth speaker, a mobile phone, a tablet computer, and the like.
  • the Bluetooth device may be a Bluetooth headset, and the Bluetooth device may also be a mobile phone, a tablet computer, or the like.
  • the smart screen may be a device with a Bluetooth function and a WiFi function
  • the Bluetooth sharing partner may be a device with a Bluetooth function.
  • the devices in the communication system shown in FIG. 1 may also be other devices having data processing functions and data sending and receiving functions, and the types of the devices are not specifically limited in this embodiment of the present application.
  • the forwarding device 101 in FIG. 1 may be a smart screen a
  • the terminal device 102 may be a mobile phone a
  • the multiple receiving devices 103 include a mobile phone b, a Bluetooth headset a, and a Bluetooth speaker a, respectively.
  • the communication connection between mobile phone a and smart screen a can be realized through WiFi
  • the broadcast connection between smart screen a and mobile phone b, Bluetooth headset a and Bluetooth speaker a can be realized through LE BIS.
  • the Bluetooth device 104 may be a Bluetooth headset b, wherein the Bluetooth headset b is connected to the smart screen a.
  • the Bluetooth headset b and the smart screen a may be connected through a Bluetooth audio distribution profile (advanced audio distribution profile, A2DP).
  • the forwarding device 101 in FIG. 1 may also be a Bluetooth sharing partner a
  • the terminal device 102 may be a mobile phone c
  • the plurality of receiving devices 103 respectively include a mobile phone d, a Bluetooth headset c, and a Bluetooth speaker b.
  • the communication connection between mobile phone c and Bluetooth sharing partner a can be realized through WiFi
  • the broadcast connection between Bluetooth sharing partner a and mobile phone d, Bluetooth headset c and Bluetooth speaker b can be realized through LE BIS.
  • the Bluetooth device 104 may be a Bluetooth headset d, wherein the Bluetooth headset d is connected to the smart screen a.
  • the Bluetooth headset d and the smart screen a can be connected through Bluetooth A2DP.
  • FIG. 2 is a schematic structural diagram 1 of a device according to an embodiment of the present application.
  • the terminal device 200 may include a processor 210 , a Bluetooth module 220 , a wireless module 230 , a WiFi module 240 , an audio module 250 , a display module 260 and an interface module 270 .
  • the processor 210 may include one or more processing units.
  • the processor 210 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, Digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller a video codec
  • Digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the modem can be a processing unit independent of the processor 210, or can be integrated with other processing units (such as AP, ISP, GPU, etc.) 230 integrated in the same device.
  • the controller may be a processing unit independent of the processor 210, or may be integrated with other processing units (eg, video codecs, digital signal processors, etc.) in the same device, or Part or all of the functionality is integrated with the wireless module 230 in the same device.
  • the Bluetooth module can be used to transmit data, such as audio, and can provide a wireless communication solution including Bluetooth (BT) applied on the terminal device.
  • the Bluetooth module 220 may include a Bluetooth radio frequency 221 and a Bluetooth baseband 222 .
  • the wireless module 230 may include a wireless radio frequency 231 and a wireless baseband 232 .
  • the wireless module 230 can also provide global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared technology) applied on the terminal device , IR) and other wireless communication solutions.
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • infrared technology infrared technology
  • IR infrared technology
  • the wireless module 230 may include a mobile communication module, and the mobile communication module may be used to implement communication between the terminal device and the network device according to the mobile communication technology (eg, 2G, 3G, 4G, or 5G, etc.) supported by the terminal device.
  • the mobile communication technology eg, 2G, 3G, 4G, or 5G, etc.
  • the mobile communication technology supported by the terminal device may include global system for mobile communication (GSM), general packet radio service (GPRS), code division multiple access abbreviation multiple access, CDMA), wideband code division multiple access (WCDMA), time division synchronous code division multiple access (time division-synchronous code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE) ), or at least one of new radio (NR), etc.
  • GSM global system for mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple access abbreviation multiple access
  • WCDMA wideband code division multiple access
  • time division synchronous code division multiple access time division-synchronous code division multiple access
  • TD-SCDMA time division-synchronous code division multiple access
  • LTE long term evolution
  • NR new radio
  • the terminal device supports GSM. After the terminal device accesses the network through the cell provided by the base transceiver station (BTS) in the GSM communication system, the network signal strength of the accessed cell can be no lower than the judgment threshold.
  • the communication between the terminal device and the BTS is realized through the mobile communication module.
  • the mobile communication module can amplify the modulated signal of the modem, and send it to the network device via antenna A; the mobile communication module can also receive the signal sent by the network device through antenna A, amplify it, and then send it to the modem, and the modem will send the signal to the modem.
  • the received signal is demodulated into a low-frequency baseband signal, and then other corresponding processing is performed.
  • the mobile communication module may include filters, switches, power amplifiers, low noise amplifiers (LNAs), and the like.
  • WiFi module 240 may include WiFi radio frequency 241 and WiFi baseband 242 .
  • the WiFi module 240 may provide wireless communication solutions including wireless local area networks (WLAN) (eg, wireless-fidelity (Wi-Fi) networks) and the like applied on the terminal device.
  • WLAN wireless local area networks
  • Wi-Fi wireless-fidelity
  • a transceiver may be integrated into a transceiver: a Bluetooth module 220 , a wireless module 230 , and a WiFi module 240 .
  • the transceiver may also be a short-range wireless communication based transceiver.
  • the terminal device can realize the processing of audio data through the audio module.
  • the terminal device may include a speaker, a receiver, a microphone, an earphone jack, an AP, and the like connected to the audio module.
  • the terminal device can realize audio functions, such as music playback, recording, etc., through audio modules, speakers, receivers, microphones, headphone jacks, and APs.
  • the display module can be used to display images, videos, etc.
  • the display module may include one or more display screens.
  • the terminal module can also connect external devices through the interface module.
  • the interface module may include one or more of the following: a universal serial bus (universal serial bus, USB) interface, a subscriber identity module (subscriber identity module, SIM) card interface, an external memory interface, and the like.
  • the terminal device shown in FIG. 2 may further include one or more of the following: an internal memory, a battery, a charging management module, a power management module, a camera, a button, or a sensor module.
  • the internal memory may be used for storing data and/or at least one computer program comprising instructions.
  • the internal memory may include a program storage area and a data storage area.
  • the program storage area can store at least one computer program.
  • the computer program may include application programs (such as gallery, contacts, etc.), operating systems (such as Android operating system, or IOS operating system, etc.), or other programs, etc.
  • the computer program may include a program for static detection.
  • the storage data area can store the data created during the use of the terminal device, the data received from other devices (such as other terminal devices, network devices, servers, external storage, etc.), or data pre-stored before leaving the factory. at least one.
  • the data stored in the internal memory may be at least one of information such as application programs, source codes of application programs, images, files, or identifications.
  • the internal memory may include high-speed random access memory and/or non-volatile memory.
  • the internal memory includes one or more magnetic disk storage devices, flash memory devices (flash), or universal flash storage (UFS), or the like.
  • the battery may be used to power the terminal device.
  • the battery can be a rechargeable battery or other non-rechargeable battery.
  • the terminal device in this embodiment of the present application may include all the structures in FIG. 2 , may also include part of the structures in FIG. 2 , and may also include other structures than those shown in FIG. 2 .
  • the following description is combined with FIG. 3 to FIG. 5 .
  • FIG. 3 is a second schematic structural diagram of a device in an embodiment of the present application.
  • the Bluetooth headset 300 may include a processor 310 , a Bluetooth module 320 , an audio module 330 and an interface module 340 .
  • the Bluetooth module 320 may include a Bluetooth radio frequency 321 and a Bluetooth baseband 322 .
  • the functions of the processor 310 , the Bluetooth module 320 , the audio module 330 and the interface module 340 in FIG. 3 may correspond to the functions of the processor 210 , the Bluetooth module 220 , the audio module 250 and the interface module 270 in FIG. 2 , and will not be repeated here.
  • FIG. 4 is a third schematic structural diagram of a device in an embodiment of the present application.
  • the Bluetooth sharing partner 400 includes a processor 410 , a Bluetooth module 420 , an interface module 430 and a battery 460 .
  • the Bluetooth module 420 may include a Bluetooth radio frequency 421 and a Bluetooth baseband 422 .
  • the battery can be a large-capacity battery.
  • the Bluetooth sharing companion 400 may also include a wireless module 440 and a WiFi module 450 .
  • the wireless module 440 includes a wireless radio frequency 441 and a wireless baseband 442 .
  • the WiFi module may include WiFi radio frequency 451 and WiFi baseband 452 .
  • the functions of the processor 410 , the Bluetooth module 420 , the interface module 430 , the wireless module 440 , the WiFi module and the battery 460 in FIG. 4 can refer to the processor 210 , the Bluetooth module 220 , the interface module 270 , the wireless module 230 , and the WiFi module in FIG. 2 . 240 and the functions of the battery will not be repeated here.
  • FIG. 5 is a fourth schematic structural diagram of a device in an embodiment of the present application.
  • the smart screen 500 includes a processor 510 , a Bluetooth module 520 , an audio module 530 , a display module 540 and an interface module 550 .
  • the Bluetooth module 520 may include a Bluetooth radio frequency 521 and a Bluetooth baseband 522 .
  • the smart screen 500 may further include a Bluetooth module 560 and a WiFi module 570 .
  • the Bluetooth module 560 may include a Bluetooth radio frequency 561 and a Bluetooth baseband 562 .
  • WiFi module 570 may include WiFi radio frequency 571 and WiFi baseband 572 .
  • the functions of the processor 510 , the Bluetooth module 520 , the audio module 530 , the display module 540 , the interface module 550 and the WiFi module 570 in FIG. 5 may refer to the processor 210 , the Bluetooth module 220 , the audio module 250 , the display module 260 , the For the functions of the interface module 270 and the WiFi module 240 , the functions of the Bluetooth module 520 in FIG. 5 can refer to the functions of the Bluetooth module 220 in FIG. 2 , which will not be repeated here.
  • the structure of the device shown in FIGS. 2-5 does not constitute a limitation to the device, and may include more or less components than shown, or combine some components, or arrange different components.
  • the above-mentioned device is a terminal that is connected to the above-mentioned communication system and has the function of sending and receiving data, or a chip or chip system that can be provided in the terminal.
  • FIG. 1 is a simplified schematic diagram exemplified for ease of understanding, and other devices may also be included in the communication system, which are not shown in FIG. 1 .
  • FIG. 6 is a first schematic flowchart of a communication method provided by an embodiment of the present application.
  • the communication method can be applied to the communication between the forwarding device 101 and the terminal device 102 and the communication between the forwarding device 101 and the receiving device 103 in the communication system shown in FIG. 1 .
  • the communication method includes the following steps:
  • the terminal device sends sharing instruction information to the forwarding device, and the forwarding device receives the sharing instruction information from the terminal device.
  • the sharing instruction information is used to instruct to share the first data, and the first data is the data to be shared of the terminal device.
  • the first data is data to be shared by the terminal device, that is, the first data is data that needs to be sent to the forwarding device to be shared by the terminal device, or data that the terminal device instructs the forwarding device to share.
  • the sharing indication information may include one or more of the following: the number of times of retransmission of the first data, or the transmission power.
  • the number of retransmissions refers to the number of times the data to be shared is sent by the forwarding device when the data to be shared is sent in a broadcast manner. For example, when the data to be shared is the first data, if the number of retransmissions is 2, when the forwarding device sends the first data, each data packet is sent twice within one broadcast period.
  • FIG. 7 is a schematic diagram of data packet transmission of Bluetooth broadcast. The following description is made with reference to FIG. 7 .
  • the first broadcast period is between time t1 and time t2.
  • the data sent includes data P0, data P1, data P2 and data P3, and data P0 and data P1 belong to one data packet , data P2 and data P3 belong to one data packet.
  • the Bluetooth master device sends one packet at a time.
  • the Bluetooth master device sends data according to the broadcast period and the number of retransmissions. Specifically, the Bluetooth master device first sends the data P0 and the data P1 once in the first broadcast period, and then sends the data P0 and the data P1 again in the first broadcast period.
  • the bluetooth master device needs to send data packets twice, and the data packets sent each time may be received by the receiving device, and the probability that the receiving device receives the data in the data packets increases for each additional data packet sent. For example, in data sharing, when the number of retransmissions is 4, the probability that the receiving device receives the first data increases compared to the case where the number of retransmissions is 2.
  • the transmit power refers to the power of the forwarding device to transmit data.
  • the maximum distance between the receiving device and the forwarding device is L. If the current transmit power of the forwarding device cannot cover an area with a radius of L, the transmit power of the forwarding device can be adjusted so that the distance from the forwarding device is greater than or equal to A receiving device equal to L can also receive the first data.
  • the sharing indication information may also include physical channel configuration information broadcast by the forwarding device.
  • the terminal device can determine the number of retransmissions of the forwarding device, and retransmit the first data multiple times, thereby increasing the probability that the receiving device receives the first data and improving the reliability of data sharing.
  • the transmit power of the forwarding device is determined by the terminal device, so as to ensure an appropriate sharing range.
  • the terminal device may send the sharing indication information to the forwarding device through wireless, such as Bluetooth, WiFi, or wired, such as optical fiber or cable.
  • wireless such as Bluetooth, WiFi, or wired, such as optical fiber or cable.
  • the terminal device sends sharing instruction information to the forwarding device, and before the forwarding device receives the sharing instruction information from the terminal device, the communication method shown in FIG. 6 may further include step 1.
  • Step 1 the terminal device acquires the second information.
  • the second information is used to instruct the terminal device to start sharing the first data, such as sending sharing instruction information to the forwarding device.
  • the second information may be input by the user through a human-computer interaction interface, or may be obtained from other devices.
  • the terminal device sends sharing instruction information to the forwarding device, and before the forwarding device receives the sharing instruction information from the terminal device, the communication method shown in FIG. 6 may further include step 2 and step 3.
  • Step 2 the terminal device acquires the third information.
  • the third information is used to instruct the terminal device to play the first data, such as audio data.
  • Step 3 the terminal device plays the first data according to the third information.
  • the third information may be input through a human-computer interaction interface, or may be obtained from other devices.
  • the terminal device sends sharing instruction information to the forwarding device, and before the forwarding device receives the sharing instruction information from the terminal device, the communication method shown in FIG. 6 may further include step 4.
  • Step 4 the terminal device establishes a communication connection with the forwarding device.
  • the terminal device determines whether there is a communication connection between the terminal device and the forwarding device. If there is no communication connection, the terminal device establishes a communication connection with the forwarding device. For example, the terminal device obtains the device address of the forwarding device, and establishes a communication connection with the terminal device based on the device address. It should be noted that, in this embodiment of the present application, the forwarding device may also initiate a communication connection creation process. For the implementation of establishing the communication connection by the forwarding device, reference may be made to the implementation manner of the terminal device establishing the communication connection, and details are not described herein again.
  • the communication connection between the forwarding device and the terminal device may be implemented by wireless means such as Bluetooth and WiFi, or by wired means such as cables and optical fibers, which are not specifically limited in this embodiment of the present application.
  • the forwarding device may send fourth information to the terminal device to indicate that the communication connection between the forwarding device and the terminal device is successfully established.
  • step 1 to step 4 does not represent the sequence of execution of the steps.
  • step 1 may be located before step 2, or between steps 2 and 3, or may be located after step 3.
  • step 4 may be located before step 2, or between steps 2 and 3, or after step 3.
  • Step 4 may be located before or after step 2, and the embodiment of the present application does not specifically limit the sequence of step 1 to step 4.
  • the following uses the example of creating a communication connection based on Bluetooth and creating a communication connection based on WiFi.
  • FIG. 8 is a schematic flowchart of a forwarding device and a terminal device establishing a communication connection based on Bluetooth. As shown in FIG. 8 , the steps of establishing a communication connection between the forwarding device and the terminal device include S601-1 to S601-3:
  • the terminal device obtains the Bluetooth address of the forwarding device.
  • the terminal device creates a Bluetooth connection according to the Bluetooth address of the forwarding device.
  • the terminal device acquires a Bluetooth connection identifier.
  • the Bluetooth connection identifier is information corresponding to two devices that establish a communication connection based on Bluetooth, such as a forwarding device and a terminal device, and can be used to identify the communication connection between the two devices.
  • the terminal device scans Bluetooth through the generic access profile (generic access profile, GAP) protocol of the host Bluetooth protocol stack to obtain the Bluetooth address and name information of the forwarding device (usually a headset, etc.). Then, the terminal device creates an ACL connection with the forwarding device through the GAP protocol of the host Bluetooth protocol stack. After the ACL connection is created, the terminal device obtains the connection identifier of the ACL connection. In this way, a communication connection is successfully established between the forwarding device and the terminal device.
  • GAP generic access profile
  • FIG. 9 is a schematic flowchart of a forwarding device and a terminal device establishing a communication connection based on WiFi. As shown in FIG. 9 , the flow of establishing a communication connection between the forwarding device and the terminal device based on WiFi includes S601-4 to S601-6.
  • the terminal device obtains a wireless access point (access point, AP) list.
  • AP wireless access point
  • the terminal device may call the scan interface of the host WiFi module to obtain the AP list.
  • the terminal device invokes the connection interface of the WiFi module in the terminal device according to the service set identifier (SSID) of the forwarding device.
  • SSID service set identifier
  • the SSID of the forwarding device may be determined according to the selection result of the AP list. For example, if the user selects the third SSID in the AP list through the man-machine interface, the device corresponding to the third SSID in the AP list is the forwarding device, and the third SSID in the AP list is the forwarding device SSID.
  • the terminal device acquires the connection status and the connection identifier of the WiFi connection.
  • the connection status is used to indicate whether the WiFi-based communication connection between the terminal device and the forwarding device is successfully established and the signal quality.
  • the identifier of the WiFi connection is information corresponding to a communication connection created based on WiFi, and can be used to identify the communication connection.
  • the forwarding device acquires the first data.
  • the first data may be audio data. In this way, the sharing of audio data can be realized, and the quality of audio sharing can be improved.
  • the first data may also be other data than the first data, such as video data, image data, and the like.
  • the forwarding device acquiring the first data may include: the terminal device sending the first data to the forwarding device, and the forwarding device receiving the first data from the terminal device.
  • the bluetooth device can be connected with the terminal device through bluetooth.
  • the terminal device sends the first data to the forwarding device through a communication connection between the forwarding device and the terminal device, such as a Bluetooth-based communication connection, a WiFi-based communication connection, or a wired connection.
  • a communication connection between the forwarding device and the terminal device, such as a Bluetooth-based communication connection, a WiFi-based communication connection, or a wired connection.
  • the terminal device may send the first data to the forwarding device in a unicast manner.
  • the terminal device can only send one high-quality sharing data, which can not only ensure the sharing quality, but also effectively reduce the data volume of the sharing data sent by the main sharing device, thereby reducing the resource overhead and power consumption of the main sharing device, so as to take into account the data Sharing and other communication services.
  • the unicast mode may also be referred to as a point-to-point mode. In the following, unless otherwise specified, point-to-point refers to unicast.
  • the terminal device may also send data in other manners, which is not specifically limited in this embodiment.
  • the terminal device may divide the first data into data blocks for transmission. After receiving each data block of the first data, the forwarding device may reassemble the received data blocks to obtain the first data.
  • the forwarding device obtains the first data, which may include: the forwarding device receives the first data from the terminal device.
  • the terminal device sends the first data to the Bluetooth device, and the forwarding device receives the first data through the connection between the terminal device and the Bluetooth device.
  • a point-to-point connection such as a Bluetooth point-to-point connection
  • the point-to-point connection of Bluetooth may be any of the following: a traditional Bluetooth ACL connection, a connection-oriented synchronous data (synchronous connection oriented, SCO), an extended connection-oriented synchronous data (extended synchronous connection oriented, eSCO) connection, LE ACL connection, or CIS connection.
  • the communication method shown in FIG. 6 further includes: receiving decryption information from the terminal device.
  • the decryption information is used to parse the first data transmitted between the terminal device and the Bluetooth device.
  • the decryption information is used to parse the data transmitted between the terminal device and the Bluetooth device through the Bluetooth connection to obtain the first data.
  • the ciphertext of the first data may be transmitted between the terminal device and the Bluetooth device, and when the terminal device and the Bluetooth device are connected via Bluetooth, the forwarding device may set the decryption information of the hardware circuit according to the decryption information. In this way, after receiving the first data ciphertext, the forwarding device can decrypt the first data ciphertext through the hardware circuit configured with decryption information, thereby obtaining the plaintext of the first data.
  • the decryption information may include: EN_RAND random number (used for key encryption), connection key, master device address of the Bluetooth connection, Bluetooth clock of the master device, authenticated ciphering offset (ACO) and The offset value of the Bluetooth clock of the master device relative to the Bluetooth clock of the connected master device.
  • the forwarding device may first obtain the encryption key according to the decryption information, and then set the decryption information of the hardware circuit according to the decryption information and the encryption key to parse the first data.
  • the decryption information may include: an encryption key, an EN_RAND random number, the Bluetooth clock of the master device, the address of the master device of the Bluetooth connection, and the offset value of the Bluetooth clock of the master device relative to the Bluetooth clock of the master device of the audio connection .
  • the synchronization word can be 64 bits
  • the EN_RAND random number can be 128 bits
  • the authentication encryption offset can be 96 bits
  • the encryption key can be 128 bits. Any one of the synchronization word, the EN_RAND random number, and the authentication encryption offset may also be other bits, which are not specifically limited in this embodiment of the present application.
  • the terminal device sends the decryption information including the encryption key to the forwarding device, which can prevent the forwarding device from calculating the encryption key, thereby reducing the time for the forwarding device to process data and reducing the sharing delay.
  • the decryption information may also include other information, such as a sync word (sync word), and/or a Bluetooth frequency hopping table.
  • the first data can be parsed by using more information, the efficiency of monitoring can be improved, and the reliability of the first data can be further improved.
  • the decryption information may also be used to instruct to monitor the data transmitted between the terminal device and the Bluetooth device.
  • the forwarding device may also send fifth information to the terminal device according to the decryption information, where the fifth information is used to indicate whether the connection between the terminal device and the Bluetooth device is successfully monitored, that is, whether the monitoring is started successfully. In other words, whether the forwarding device can acquire the first data transmitted between the terminal device and the Bluetooth device.
  • the forwarding device can analyze the first data transmitted between the terminal device and the Bluetooth device according to the decryption information provided by the terminal device, and does not need to send the first data to the forwarding device through the terminal device, which can further reduce the resource overhead of the terminal device.
  • the communication method shown in FIG. 6 may further include: the forwarding device sends the first information to the terminal device.
  • the first information is used to indicate that the sharing indication information has been received; or, the first information is used to request the first data.
  • the terminal device can send the first data according to the first information, which can improve the reliability of the first data received by the forwarding device and further improve the effect of data sharing.
  • the communication method shown in FIG. 6 may further include steps 5-7.
  • Step 5 the forwarding device starts a broadcast connection.
  • Step 6 the forwarding device sends synchronization information.
  • the forwarding device may repeatedly send the synchronization information at certain time intervals.
  • Step 7 the receiving device scans the broadcast connection according to the synchronization information so as to synchronize with the clock of the forwarding device.
  • the synchronization information is used to determine the receiving parameters of the receiving device.
  • the receiving parameters of the receiving device may include one or more of the following: the physical channel of the broadcast, the transmission power, or the number of retransmissions.
  • the terminal device can send higher-quality first data to the forwarding device, so as to further improve the effect of data sharing.
  • the forwarding device sends the first data to multiple receiving devices in a wireless broadcast manner according to the sharing instruction information, and the receiving device receives the first data.
  • the receiving device is the object to be shared.
  • the receiving device is a device that receives and plays the first data.
  • the wireless broadcast method may be a broadcast method based on a short-range wireless communication technology. In this way, the influence of the network state on the data sharing process can be avoided, and the sharing efficiency can be improved.
  • the short-range wireless communication may include one or more of the following: Bluetooth communication, or Wi-Fi communication.
  • Bluetooth communication or Wi-Fi communication.
  • data can be sent through Bluetooth and wireless fidelity broadcasting, taking into account the sharing efficiency and the number of devices to be shared.
  • the forwarding device can send the first data to multiple receiving devices, which can reduce the air interface resources occupied by individually sending the first data to each receiving device, and send higher-quality data, thereby ensuring the number of devices to be shared.
  • the quality of the sent first data is further improved.
  • the forwarding device shares the first data with multiple receiving devices, and the first data may also be sent in other ways, such as a point-to-point manner.
  • the manner in which the forwarding device sends the first data is not specifically limited.
  • the forwarding device sends the first data to the receiving device through multiple data packets.
  • the first data may be divided into different data packets.
  • the forwarding device may include a first communication module and a second communication module.
  • the first communication module is used for receiving the first data
  • the second communication module is used for sending the first data
  • either one of the first communication module and the second communication module may be a Bluetooth module or a WiFi module, which is not specifically limited in this embodiment of the present application.
  • the receiving function and the sending function can be separated, thereby avoiding mutual influence between the functions of receiving data and sending data, and further improving the quality of data sharing.
  • first communication module and the second communication module may include one or more communication components or components, and each communication component or component may be used to implement data receiving and/or sending functions.
  • the forwarding device sends the first data to multiple receiving devices in a wireless broadcast manner according to the sharing instruction information.
  • the method further includes step 8.
  • Step 8 the forwarding device sends feedback information to the terminal device.
  • the feedback information is used to indicate whether the transmission of the first data is successful.
  • the feedback information may indicate whether the received first data is damaged and whether the decoding of the first data is successful.
  • the method shown in FIG. 6 may further include step 9.
  • Step 9 the forwarding device converts the encoding of the first data.
  • the encoding format of the first data may be converted according to the encoding format of the data sent by the forwarding device.
  • the forwarding device receives and buffers the first data. If the encoding format of the first data does not conform to the encoding format of the data sent by the forwarding device, the encoding format of the received first data is converted into the encoding format of the sent data.
  • the encoding format of the first data may also be converted according to the channel state between the forwarding device and the receiving device.
  • the first data can be converted into a higher-quality encoding format; if the channel status between the forwarding device and the receiving device is poor, the first data can be converted into a higher-quality encoding format. Lower encoding format.
  • the first data encoding format may also be converted according to the resource occupation between the forwarding device and the receiving device. For example, if the frequency resources between the forwarding device and the receiving device are occupied, the first data may be converted into an encoding format that is more suitable for sending on the unoccupied frequency resources.
  • step 8 to step 9 does not represent the sequence of execution of the steps.
  • step 9 may also be performed before step 8.
  • the forwarding device may also send reception indication information to the receiving device.
  • the reception indication information is used to indicate the reception of the first data, such as audio data.
  • the receiving indication information may be input by the human-computer interaction interface of the forwarding device, or may be obtained by the forwarding device from other devices.
  • Receiving the first data by the receiving device may include: the receiving device obtains reception indication information from the forwarding device, and then the receiving device determines whether there is a broadcast connection with the forwarding device.
  • the receiving device can query whether there is currently a broadcast connection through the interface of the Bluetooth host protocol stack, where the broadcast connection can be identified by the connection identifier. If there is no broadcast connection between the receiving device and the forwarding device, the receiving device obtains synchronization information from the periodic broadcast by scanning the periodic broadcast, and creates a broadcast connection according to the synchronization information. Specifically, through the interface of the Bluetooth host protocol stack, the receiving device starts the Bluetooth periodic broadcast scan and starts the process of Bluetooth synchronization information reporting. Next, the host protocol stack of the receiving device sends a command of the scan cycle broadcast to the Bluetooth module on the receiving device. The Bluetooth module on the receiving device starts the periodic broadcast scanning of Bluetooth.
  • synchronization information such as the synchronization information of Bluetooth low energy consumption
  • the Bluetooth module After the Bluetooth module receives the synchronization information, it reports the synchronization information to the receiving device through the Bluetooth host protocol stack.
  • the Bluetooth host protocol stack reports synchronization information in the form of Bluetooth host controller interface (HCI) events.
  • the receiving device sends a command to create a Bluetooth connection to the Bluetooth module on the receiving device through the Bluetooth host protocol stack.
  • the Bluetooth module on the receiving device starts to create a Bluetooth connection.
  • the Bluetooth module reports a successful Bluetooth connection creation message to the Bluetooth host protocol stack, and receives audio data.
  • the Bluetooth module reports the received audio data to the Bluetooth host protocol stack.
  • the Bluetooth module can continuously report the received audio data to the Bluetooth host protocol stack.
  • the receiving device receives the audio data.
  • the receiving device may further buffer the audio data.
  • the Bluetooth in the embodiments of the present application may be low-power Bluetooth.
  • the communication method shown in FIG. 6 may further include: the receiving device processes the first data.
  • the receiving device may store the first data, and may also perform operations such as playing according to the specific type of the first data. For example, if the forwarding device sends the first data to the receiving device through multiple data packets, the receiving device may combine the multiple data packets into complete first data, and then decode or store the combined first data. For example, if the first data is audio data, after receiving the audio data from the forwarding device, the receiving device can play the audio data through the audio module. If the first data is video data, after receiving the first data, the receiving device can play the video data.
  • step S601 to step S603 does not represent the sequence of execution of the steps.
  • step S602 may also be performed before step S601.
  • the information transmitted between the forwarding device and the terminal device may be sent in a specific format.
  • the information used by the terminal device to control the sharing process of the terminal device may include: sharing instruction information and stop sharing information, start monitoring information (decryption information) and stop monitoring information, stop sharing information indication
  • sharing control information may include: sharing instruction information and stop sharing information, start monitoring information (decryption information) and stop monitoring information, stop sharing information indication
  • the terminal device stops sharing the first data.
  • the sent information may include the identifier of the sharing control information, and the identifier in the sharing instruction information or the sharing stop information.
  • the data packet corresponding to the sharing control information may include the following items: the sharing control information corresponding to field 1, and the sharing instruction information, stop sharing information, start monitoring information, or stop monitoring information corresponding to field 2 one of. Or, identifier 1 corresponding to field 1, and identifier 0, 1, 2, or 3 corresponding to field 2.
  • the first data sent by the terminal device to the forwarding device may be sent in the form of data packets.
  • the data packets corresponding to the first data may include the following content: Data transmission information corresponding to field 1 , the length of the data block corresponding to field 2 and the data block of the first data corresponding to field 3.
  • the first information sent by the forwarding device to the terminal device may include the content shown in Table 3: the information response corresponding to field 1, the sharing instruction information response corresponding to field 2, and the sharing failure or sharing success corresponding to field 3, Or the identifiers corresponding to field 1, field 2, and field 3 in sequence.
  • the content of the first information may include: 2, 1 and 0 in sequence.
  • the fifth information sent by the forwarding device to the terminal device may include the content shown in Table 4: the information response corresponding to field 1, the decryption information response corresponding to field 2, and the failure to start monitoring and the monitoring start corresponding to field 3.
  • FIG. 10 is a schematic diagram of the connection of the existing Bluetooth broadcast.
  • the terminal device is connected to a plurality of receiving devices.
  • the terminal device sends audio data by broadcasting, which needs to be sent multiple times, which will consume more air interface resources.
  • FIG. 11 is a schematic diagram of an existing Bluetooth point-to-point connection. As shown in FIG. 11 , the terminal device establishes a point-to-point connection with each receiving device respectively. When the terminal device sends data to each receiving device once, it needs to occupy additional air interface resources.
  • the terminal device will consume more air interface resources for sharing the first data.
  • the forwarding device acquires the first data by monitoring and shares it, or the terminal device sends the first data to the forwarding device in a unicast (point-to-point) manner. In this way, the terminal device can avoid consuming air interface resources. Sending data to the forwarding device, or the terminal device only needs to consume air interface resources for sending the first data to the forwarding device, and can share the data with multiple receiving devices, which can reduce resource overhead.
  • the forwarding device ie, the auxiliary sharing device
  • the forwarding device can obtain the first data, and share the first data with multiple receiving terminals (ie, the shared devices) according to the sharing instruction information of the terminal device (ie, the main sharing device).
  • the first data that is, the forwarding device can assist the terminal device to complete data sharing.
  • the primary sharing device may be a device with limited air interface resources and/or transmit power
  • the auxiliary sharing device may be a device with unlimited air interface resources and/or transmit power.
  • the terminal device can send the first data to the forwarding device by using a communication method such as WiFi or a wired connection.
  • WiFi communication occupies a wider frequency band at the same time, it has a higher rate than short-range wireless communication technologies such as Bluetooth, while the wired communication method has a higher rate. It can further get rid of the rate limitation of short-distance wireless communication such as Bluetooth and WiFi communication. Both of these two methods can send a larger amount of data in a unit time, and after the forwarding device obtains high-quality data to be shared, it can pass The wireless broadcast is shared to multiple receiving terminals such as Bluetooth speakers, so that high-quality data to be shared can be sent to ensure the sharing quality.
  • the terminal device when the terminal device sends the data to be shared to the forwarding device, it can use the air interface resource for repeatedly sending the data to be shared to send different parts of the data to be shared, which can achieve higher-quality sharing of the data to be shared, which can not only ensure the sharing quality, but also The amount of data sent by the terminal device can be reduced, thereby reducing the resource overhead and power consumption of the main sharing device, so as to take into account the data sharing service and other services.
  • the forwarding device can share data with more devices, so as to expand the sharing range, thereby improving the efficiency of data sharing.
  • the terminal device can send data to the forwarding device with a smaller transmit power, thereby saving power consumption and prolonging the battery life.
  • FIG. 12 is a second schematic flowchart of a communication method provided by an embodiment of the present application.
  • the communication method can be applied to the communication between the forwarding device 101 and the terminal device 102 and the communication between the forwarding device 101 and the receiving device 103 in the communication system shown in FIG. 1 .
  • the communication method includes the following steps:
  • the terminal device sends sharing instruction information to the forwarding device, and the forwarding device receives the sharing instruction information from the terminal device.
  • the sharing instruction information is used to instruct to share the first data, and the first data is the data to be shared of the terminal device.
  • the sharing indication information may include one or more of the following: the number of times of retransmission of the first data, or the transmission power.
  • the sharing indication information may also include a physical channel broadcast by the forwarding device.
  • the forwarding device may include a first communication module and a second communication module.
  • the first communication module is used for receiving the first data
  • the second communication module is used for sending the first data.
  • the terminal device sends sharing instruction information to the forwarding device, and before the forwarding device receives the sharing instruction information from the terminal device, the communication method shown in FIG. 12 may further include step 10.
  • Step 10 the terminal device acquires the second information.
  • step 10 For the implementation of step 10, reference may be made to the implementation of step 1 in the previous embodiment, and details are not described herein again.
  • the communication method shown in FIG. 12 may further include steps 11 to 15 .
  • Step 11 the terminal device acquires third information.
  • Step 12 the terminal device plays the first data according to the third information.
  • the terminal device sends sharing instruction information to the forwarding device, and before the forwarding device receives the sharing instruction information from the terminal device, the communication method described in FIG. 12 may further include step 13 .
  • Step 13 the terminal device establishes a communication connection with the forwarding device.
  • step 10 to step 13 For the implementation of step 10 to step 13, reference may be made to the implementation manner of step 1 to step 4, which will not be repeated here.
  • step 11 to step 13 does not represent the sequence of execution of the steps.
  • the forwarding device may send fourth information to the terminal device to indicate that a communication connection is successfully established between the forwarding device and the terminal device.
  • the forwarding device acquires the first data.
  • acquiring the first data by the forwarding device may further include: the forwarding device receives the first data from the Bluetooth device.
  • the Bluetooth device sends the first data to the terminal device, and the forwarding device can receive the first data.
  • the forwarding device acquires the first data by monitoring the data transmitted between the Bluetooth device and the terminal device.
  • the first data can also be provided by the Bluetooth device, which can further save the air interface resources of the terminal device, so as to further save the resource overhead and power consumption of the terminal device.
  • the power consumption of the terminal device can be further reduced, and the application scenarios of data sharing can be expanded, thereby improving applicability and flexibility.
  • data when the first data is audio data, data may be transmitted between the terminal device and the Bluetooth device through an A2DP connection.
  • the following describes the creation process of the A2DP audio connection by combining that the terminal device is the master device in the Bluetooth connection and the Bluetooth device is the slave device in the Bluetooth connection.
  • the terminal device and the Bluetooth device create an ACL connection, and the solution for creating the ACL connection can be implemented by referring to the method of creating a communication connection based on Bluetooth in FIG. 8 , and details are not repeated here.
  • the terminal device creates an A2DP connection with the Bluetooth device through the A2DP protocol of the host Bluetooth protocol stack. Specifically, the terminal device inputs the ACL connection identifier, and returns the connection state of the A2DP connection, thereby completing the creation of the A2DP connection.
  • the terminal device plays audio through the A2DP protocol after receiving the third information from the human-computer interaction interface, or after receiving the third information from the Bluetooth device through the A2DP connection.
  • the first data can also be provided by the Bluetooth device, which can further reduce the power consumption of the terminal device, and can expand the application scenarios of data sharing, thereby improving the applicability and flexibility.
  • the communication method shown in FIG. 12 may further include: the forwarding device sends the first information to the terminal device.
  • the first information is used to indicate that the sharing instruction information has been received.
  • the first information is used to request the first data.
  • the communication method shown in FIG. 12 may further include step 12.
  • Step 15 the forwarding device receives the decryption information from the terminal device.
  • step 15 For the specific implementation and technical effect of step 15, reference may be made to the implementation manner and technical effect of the forwarding device receiving the decryption information from the terminal device in step S602, which will not be repeated here.
  • the communication method shown in FIG. 12 may further include step 16.
  • Step 16 the forwarding device sends monitoring response information to the terminal device.
  • the monitoring response information is used to indicate whether the forwarding device successfully starts monitoring.
  • the communication method shown in FIG. 12 may further include steps 17-20.
  • Step 17 the forwarding device starts to monitor the audio connection.
  • Step 18 the forwarding device starts the broadcast connection.
  • Step 19 the forwarding device sends synchronization information.
  • the forwarding device may send the synchronization information in the form of periodic broadcast.
  • Step 20 the receiving device scans the broadcast connection according to the synchronization information, and synchronizes with the forwarding device.
  • steps 18 to 20 may correspond to the implementation manners of steps 5 to 7, which will not be repeated here.
  • the forwarding device sends the first data to multiple receiving devices in a wireless broadcast manner according to the sharing instruction information, and the receiving device receives the first data.
  • the implementation of the wireless broadcast mode may refer to the implementation in step S603, which will not be repeated here.
  • the forwarding device sends the first data to multiple receiving devices according to the sharing instruction information, and before the receiving device acquires the first data, the communication method shown in FIG. 12 further includes step 21.
  • Step 21 the forwarding device converts the encoding of the first data.
  • step 21 For the implementation of step 21, reference may be made to the implementation manner of step 9, and details are not repeated here.
  • the communication method shown in FIG. 12 may further include: the receiving device performs corresponding processing according to the first data.
  • the first data refers to data from the same data source.
  • the specific forms, such as encoding formats may be different.
  • the communication method provided by the embodiment of the present application has been described in detail above with reference to FIGS. 6 to 12 .
  • a communication apparatus for executing the communication method provided by the embodiments of the present application will be described in detail below with reference to FIG. 13 to FIG. 15 .
  • FIG. 13 is a first structural schematic diagram of a communication apparatus provided by an embodiment of the present application.
  • the communication apparatus 1300 can be applied to the communication system shown in FIG. 1 to perform the function of the forwarding device in the communication method shown in FIG. 6 or FIG. 12 .
  • the communication device 1300 includes a processor 1301 , and a transceiver 1302 coupled to the processor 1301 .
  • the processor 1301 is configured to: receive the sharing instruction information from the terminal device through the transceiver 1302 .
  • the sharing instruction information is used to instruct to share the first data
  • the first data is the data to be shared of the terminal device.
  • the first data is acquired through the transceiver 1302 .
  • the transceiver 1302 is controlled to send the first data to a plurality of receiving devices in a wireless broadcast manner.
  • the transceiver supports short-range wireless communication
  • the wireless broadcasting method is a broadcasting method based on a short-range wireless communication technology.
  • the short-range wireless communication includes one or more of the following: Bluetooth communication, or Wi-Fi communication.
  • the first data is audio data.
  • the processor 1301 is configured to: receive the first data from the Bluetooth device through the transceiver 1302 .
  • the Bluetooth device and the terminal device can be connected through Bluetooth.
  • the processor 1301 is configured to: receive the first data from the terminal device through the transceiver 1302 .
  • the processor is further configured to receive decryption information from the terminal device through the transceiver.
  • the decryption information is used to parse the first data transmitted between the terminal device and the Bluetooth device.
  • the processor 1301 is further configured to: send the first information to the terminal device through the transceiver 1302 .
  • the first information is used to indicate that the sharing instruction information has been received.
  • the first information is used to request the first data.
  • the sharing indication information may include one or more of the following: the number of times of retransmission of the first data, or the transmit power.
  • the forwarding device may include a first communication module and a second communication module.
  • the first communication module is used for receiving the first data
  • the second communication module is used for sending the first data.
  • the communication device is a home smart terminal or a Bluetooth portable companion.
  • the transceiver 1302 may be a transceiver circuit or an interface circuit.
  • the transceiver may be used by the communication device 1300 to communicate with other communication devices.
  • the communication apparatus 1300 may further include a storage module (not shown in FIG. 13 ), where the storage module stores programs or instructions.
  • the communication apparatus 1300 can perform the function of the forwarding device in the communication method shown in any one of FIG. 6 and FIG. 12 .
  • the processor 1301 involved in the communication apparatus 1300 may also be implemented by a processor-related circuit component, which may be a processing unit; the transceiver may also be implemented by a transceiver-related circuit component, which may be a transceiver unit.
  • the communication apparatus 1300 may be the forwarding device shown in FIG. 1 , or may be a chip (system) or other components or components that can be set in the forwarding device, or may be an apparatus including the forwarding device.
  • the application is not limited.
  • FIG. 14 is a second schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
  • the communication apparatus 1400 includes a processor 1401 and a first transceiver coupled to the processor 1401 .
  • FIG. 14 only shows the main components of the communication device.
  • the communication apparatus 1400 can be applied to the communication system shown in FIG. 1 to perform the functions of the terminal equipment in the communication system shown in FIG. 6 or FIG. 12 .
  • the processor 1401 is configured to: send sharing instruction information to the forwarding device through the first transceiver 1402 to instruct the forwarding device to share the first data to be shared by the terminal device. and sending the first data to the forwarding device in a unicast manner through the first transceiver.
  • the processor 1401 is further configured to: receive the first information from the forwarding device through the first transceiver 1402 .
  • the first information is used to indicate that the sharing instruction information has been received. Alternatively, the first information is used to request the first data.
  • the sharing indication information may include one or more of the following: the number of times of retransmission of the first data, or the transmit power.
  • the communication apparatus 1400 may further include: a second transceiver, where the second transceiver and the first transceiver share an antenna in a time-division multiplexing manner.
  • the first transceiver is a transceiver based on Bluetooth technology
  • the second transceiver is a transceiver based on WiFi technology.
  • the first transceiver 1402 may be a transceiver circuit or an interface circuit.
  • the transceiver may be used by the communication device 1400 to communicate with other communication devices.
  • the communication apparatus 1400 may further include a storage module (not shown in FIG. 14 ), where the storage module stores programs or instructions.
  • the communication apparatus 1400 can perform the function of the terminal device in the communication method shown in FIG. 6 .
  • the processor 1401 involved in the communication apparatus 1400 may be implemented by a circuit component and may be a processing unit; the transceiver 1402 may be implemented by a circuit component and may be a transceiver unit.
  • the communication apparatus 1400 may be the terminal equipment shown in FIG. 1 , or may be a chip (system) or other components or components provided in the above-mentioned terminal equipment, or an apparatus including the terminal equipment. The embodiment does not limit this.
  • FIG. 15 is a third schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
  • the communication device may be a terminal device or a network device, or may be a chip (system) or other components or assemblies that can be provided in the terminal device or the network device.
  • the communication apparatus 1500 may include a processor 1501 .
  • the communication device 1500 may further include a memory 1502 and/or a transceiver 1503 .
  • the processor 1501 is coupled with the memory 1502 and the transceiver 1503, such as can be connected through a communication bus.
  • the components of the communication device 1500 are described in detail below with reference to FIG. 15 :
  • the processor 1501 is the control center of the communication device 1500, which may be one processor or a general term for multiple processing elements.
  • the processor 1501 is one or more central processing units (CPUs), may also be a specific integrated circuit (application specific integrated circuit, ASIC), or is configured to implement one or more embodiments of the present application
  • An integrated circuit such as: one or more microprocessors (digital signal processor, DSP), or, one or more field programmable gate array (field programmable gate array, FPGA).
  • the processor 1501 may execute various functions of the communication device 1500 by running or executing software programs stored in the memory 1502 and calling data stored in the memory 1502 .
  • the processor 1501 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 15 .
  • the communication apparatus 1500 may also include multiple processors, for example, the processor 1501 and the processor 1504 shown in FIG. 2 .
  • processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the memory 1502 is used to store the software program for executing the solution of the present application, and is controlled and executed by the processor 1501.
  • the memory 1502 is used to store the software program for executing the solution of the present application, and is controlled and executed by the processor 1501.
  • memory 1502 may be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), or other types of static storage devices that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • Other types of dynamic storage devices for instructions which may also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical disks storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or capable of carrying or storing desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, but is not limited thereto.
  • the memory 1502 may be integrated with the processor 1501, or may exist independently, and be coupled to the processor 1501 through an interface circuit (not shown in FIG. 15) of the communication device 1500, which is not specifically limited in this embodiment of the present application.
  • the transceiver 1503 is used for communication with other communication devices.
  • the communication apparatus 1500 is a terminal device, and the transceiver 1503 can be used to communicate with a network device or communicate with another terminal device.
  • the communication apparatus 1500 is a network device, and the transceiver 1503 may be used to communicate with a terminal device or communicate with another network device.
  • the transceiver 1503 may include a receiver and a transmitter (not shown separately in Figure 15). Among them, the receiver is used to realize the receiving function, and the transmitter is used to realize the sending function.
  • the transceiver 1503 may be integrated with the processor 1501, or may exist independently, and be coupled to the processor 1501 through an interface circuit (not shown in FIG. 15) of the communication device 1500, which is not made in this embodiment of the present application Specific restrictions.
  • the structure of the communication device 1500 shown in FIG. 15 does not constitute a limitation on the communication device, and an actual communication device may include more or less components than those shown in the figure, or combine some components, or Different component arrangements.
  • An embodiment of the present application further provides a chip system, including: a processor, where the processor is coupled with a memory, and the memory is used to store a program or an instruction, and when the program or instruction is executed by the processor, the The chip system implements the method in any of the above method embodiments.
  • the number of processors in the chip system may be one or more.
  • the processor can be implemented by hardware or by software.
  • the processor may be a logic circuit, an integrated circuit, or the like.
  • the processor may be a general-purpose processor implemented by reading software codes stored in memory.
  • the memory may be integrated with the processor, or may be provided separately from the processor, which is not limited in this application.
  • the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be provided on different chips.
  • the setting method of the processor is not particularly limited.
  • the system-on-chip may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC), It can also be a central processing unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), or a microcontroller (microcontroller).
  • controller unit, MCU it can also be a programmable logic device (PLD) or other integrated chips.
  • Embodiments of the present application provide a communication system.
  • the communication system includes the above-mentioned forwarding device, a terminal device and a plurality of receiving devices.
  • the communication system may further include: a Bluetooth device.
  • processors in the embodiments of the present application may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (digital signal processors, DSP), dedicated integrated Circuit (application specific integrated circuit, ASIC), off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory in the embodiments of the present application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • enhanced SDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous connection dynamic random access memory Fetch memory
  • direct memory bus random access memory direct rambus RAM, DR RAM
  • the above embodiments may be implemented in whole or in part by software, hardware (eg, circuits), firmware, or any other combination.
  • the above-described embodiments may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server or data center by wire (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that contains one or more sets of available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media.
  • the semiconductor medium may be a solid state drive.
  • At least one means one or more, and “plurality” means two or more.
  • At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
  • at least one item (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a- b-c, where a, b, c can be single or multiple.
  • the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be dealt with in the embodiments of the present application. implementation constitutes any limitation.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供一种通信方法及装置,能够解决分享设备单位时间内传输数据量受限以及分享距离短的问题,从而提高提高数据质量以及被分享的设备数量,可应用于通信系统中。该方法包括:提供一种通信方法。该方法应用于转发设备。该通信方法包括:转发接收来自终端设备的分享指示信息。其中,分享指示信息用于指示分享第一数据,第一数据为终端设备的待分享数据。转发设备获取第一数据,并根据分享指示信息,向多个接收设备发送第一数据。

Description

通信方法及装置 技术领域
本申请涉及通信领域,尤其涉及一种通信方法及装置。
背景技术
数据分享,是指一个设备将数据,如音频发送给其他设备,如同事、朋友、或者其他人群等的设备的过程。其中,数据分享的一种常见方式是蓝牙分享。
目前,可以基于点对点多连接方案和广播方案实现数据的蓝牙分享。具体地,点对点多连接方案中,分享设备通过与多个被分享设备分别建立的点对点连接,向各个被分享设备各发送一份待分享数据的副本(copy)。广播方案中,分享设备通过广播,向所有被分享设备发送一份待分享数据。
上述两种方案,都需要发送多份待分享数据的副本或多份待分享数据,占用较多空口资源。由于蓝牙采用跳频扩频(frequency hoppingspread spectrum,FHSS)方式通信,需要将频带划分为多个子频带,同一设备每个时刻在一个子频带上工作,从而导致同一设备每个时刻只占用部分带宽,单位时间内传输的数据量较少,无法支持高质量的蓝牙分享。另外,由于蓝牙和无线保真(wireless fidelity,WiFi)都工作在2.4吉赫兹(giga hertz,GHz)频段,且分享设备的蓝牙和WiFi可能需要共用同一天线,可能导致蓝牙分享与WiFi通信抢占空口资源的情况,如蓝牙分享只能在部分时间内完成,数据传输速率有限,同样无法支持高质量的蓝牙分享。此外,受限于电池容量,分享设备的发射功率通常较小,也无法支持长距离数据分享。
发明内容
本申请实施例提供一种通信方法及装置,能够解决分享设备单位时间内传输数据量受限以及分享距离短的问题,从而提高数据质量以及被分享的设备数量。
为达到上述目的,本申请采用如下技术方案:
第一方面,提供一种通信方法。该方法应用于转发设备。该通信方法包括:转发设备接收来自终端设备的分享指示信息,其中,分享指示信息用于指示分享第一数据,第一数据为终端设备的待分享数据;转发设备获取第一数据,并根据分享指示信息,将第一数据以无线广播方式发送给多个接收终端。
基于第一方面所述的通信方法,转发设备(即辅助分享设备)可以获取第一数据,以及根据终端设备(即主分享设备)的分享指示信息,向多个接收终端(即被分享设备)分享第一数据,即转发设备可以协助终端设备完成数据分享。其中,主分享设备可以为空口资源和/或发射功率受限设备,辅助分享设备可以为空口资源和/或发射功率不受限设备。如此,终端设备可以利用WiFi或有线等通信方式向转发设备发送第一数据,由于WiFi通信在同一时刻占用的频带更宽,相比蓝牙等短距离无线通信技术有更高的速率,而有线方式可以进一步摆脱蓝牙和WiFi通信等短距离无线通信的速率限制,采用这两种方式均可以在单位时间内发送更大的数据量,且转发设备在获取高质 量的待分享数据之后,可以再通过无线广播的方式分享给如蓝牙音箱等多个接收终端,从而能够发送高质量的待分享数据,确保分享质量。或者,终端设备只需向转发设备发送待分享数据,可以利用重复发送待分享数据的空口资源,发送待分享数据的不同部分,实现更高质量的待分享数据的分享,既可以确保分享质量,又可以减少终端设备发送的数据量,从而减少主分享设备的资源开销和功耗,以兼顾数据分享业务和其他业务。
并且,转发设备作为终端设备分享数据的中继设备,能够向更多设备分享数据,以扩大分享范围,从而提高数据分享的效率。
此外,终端设备可以用更小的发射功率向转发设备发送数据,从而能够节省功耗,延长续航时间。
一种可能的设计方案中,无线广播方式可以为基于短距离无线通信技术的广播方式。如此,可以避免网络状态对数据分享过程的影响,提高分享效率。
可选地,短距离无线通信可以包括如下一项或多项:蓝牙通信、或无线保真通信。如此,可以通过蓝牙、无线保真的广播方式发送数据,兼顾分享效率和分享的设备的数量。
一种可能的设计方案中,第一数据可以为音频数据。如此,可以实现音频数据的分享,提高音频分享质量。
可选地,转发设备获取第一数据,可以包括:转发设备接收来自蓝牙设备的第一数据。其中,蓝牙设备与终端设备通过蓝牙连接。如此,第一数据也可以由蓝牙设备提供,可以进一步降低终端设备的功耗,且可以拓展数据分享的应用场景,从而提高适用性和灵活性。
或者,可选地,转发设备接收来自终端设备的第一数据。如此,终端设备可以向转发设备发送更高质量的第一数据,以进一步提高数据分享的质量。
进一步地,在转发设备获取第一数据之前,第一方面所述的通信方法还可以包括:接收来自终端设备的解密信息。其中,解密信息用于解析终端设备与蓝牙设备之间传输的第一数据。如此,转发设备可以根据终端设备提供的解密信息,解析终端设备与蓝牙设备之间传输的第一数据,不需要终端设备再向转发设备发送第一数据,能够进一步减少终端设备的资源开销。
进一步地,在转发设备接收来自终端设备的第一数据之前,第一方面所述的通信方法还可以包括:转发设备向终端设备发送第一信息。其中,第一信息用于指示已接收到分享指示信息;或者,第一信息用于请求第一数据。如此,终端设备根据第一信息发送第一数据,可以提高转发设备所接收到的第一数据的可靠性,进一步提高数据分享的效果。
一种可能的设计方案中,分享指示信息可以包括如下一项或多项:第一数据的重传次数、或发射功率。如此,可以通过终端设备确定转发设备的重传次数,多次重传第一数据,以增加接收终端接收到第一数据的概率,从而提高数据分享的可靠性。此外,通过终端设备确定转发设备的发射功率,从而可以确保合适的分享范围。
一种可能的设计方案中,转发设备可以包括第一通信模块和第二通信模块。其中,第一通信模块用于接收第一数据,第二通信模块用于发送第一数据。如此,可以实现 接收功能和发送功能分开,从而能够避免接收和发送的相互影响,进一步提高数据分享质量。
第二方面,提供一种通信方法,应用于终端设备。该通信方法包括:终端设备向转发设备发送分享指示信息,以指示转发设备分享终端设备待分享的第一数据。终端设备以单播方式,向转发设备发送第一数据。
一种可能的设计方案中,第二方面所述的通信方法还可以包括:终端设备接收来自转发设备的第一信息。其中,第一信息用于指示已接收到分享指示信息。或者,第一信息用于请求第一数据。
可选地,分享指示信息可以包括如下一项或多项:第一数据的重传次数、或发射功率。
此外,第二方面所述的通信方法的技术效果可以参考第一方面所述的通信方法的技术效果,此处不再赘述。
第三方面,提供一种通信装置。该通信装置包括:处理器,以及耦合至处理器的收发器。处理器用于:通过收发器接收来自终端设备的分享指示信息。其中,分享指示信息用于指示分享第一数据,第一数据为终端设备的待分享数据。通过收发器获取第一数据。以及根据分享指示信息,控制收发器将第一数据以无线广播方式发送给多个接收设备。
一种可能的设计方案中,收发器支持短距离无线通信,无线广播方式为基于短距离无线通信技术的广播方式。
可选地,短距离无线通信包括如下一项或多项:蓝牙通信、或无线保真通信。
一种可能的设计方案中,第一数据为音频数据。
可选地,处理器用于:通过收发器接收来自蓝牙设备的第一数据。其中,蓝牙设备与终端设备可以通过蓝牙连接。
或者,可选地,处理器用于:通过收发器接收来自终端设备的第一数据。
进一步地,处理器还用于:接收来自终端设备的解密信息。其中,解密信息用于解析终端设备与蓝牙设备之间传输的第一数据。
进一步地,处理器,还用于通过收发器向终端设备发送第一信息。其中,第一信息用于指示已接收到分享指示信息。或者,第一信息用于请求第一数据。
一种可能的设计方案中,分享指示信息可以包括如下一项或多项:第一数据的重传次数、或发射功率。
一种可能的设计方案中,处理器可以包括第一通信模块和第二通信模块。其中,第一通信模块用于接收第一数据,第二通信模块用于发送第一数据。
一种可能的设计方案中,第三方面所述的通信装置可以为家庭智能终端或蓝牙随身伴侣。
本申请实施例中,收发器可以为收发电路或接口电路。该收发器可以用于第三方面所述的通信装置与其他通信装置通信。
需要说明的是,本申请实施例中,收发器可以为基于短距离无线通信的收发器。
可选地,第三方面所述的通信装置还可以包括存储模块,该存储模块存储有程序或指令。当处理器执行该程序或指令时,使得该通信装置可以执行第一方面所述的通 信方法。
第三方面所述的通信装置可以是终端,也可以是可设置于终端中的芯片(系统)或其他部件或组件,还可以是包含终端的装置,本申请对此不做限定。
此外,第三方面所述的通信装置的技术效果可以参考第一方面所述的通信方法的技术效果,此处不再赘述。
第四方面,提供一种通信装置。该通信装置包括处理器,以及耦合至处理器的第一收发器。处理器用于:通过第一收发器向转发设备发送分享指示信息。其中,分享指示信息用于指示分享第一数据,第一数据为终端设备的待分享数据。以及,通过第一收发器以单播方式,向转发设备发送第一数据。
一种可能的设计方案中,处理器还用于:通过第一收发器接收来自转发设备的第一信息。其中,第一信息用于指示已接收到分享指示信息。或者,第一信息用于请求第一数据。
一种可能的设计方案中,分享指示信息可以包括如下一项或多项:第一数据的重传次数、或发射功率。
一种可能的设计方案中,第四方面所述的通信装置还可以包括第二收发器,第二收发器与第一收发器以时分复用的方式共用天线。
需要说明的是,本申请实施例中,收发器可以为收发电路或接口电路。该收发器可以用于第四方面所述的通信装置与其他通信装置通信。
可选地,第四方面所述的通信装置还可以包括存储模块,该存储模块存储有程序或指令。当处理器执行该程序或指令时,使得该通信装置可以执行第二方面所述的通信方法。
第四方面所述的通信装置可以是终端,也可以是可设置于终端中的芯片(系统)或其他部件或组件,还可以是包含终端的装置,本申请对此不做限定。
此外,第四方面所述的通信装置的技术效果可以参考第一方面所述的通信方法的技术效果,此处不再赘述。
第五方面,提供一种通信装置。该通信装置用于执行第一方面或第二方面中任意一种实现方式所述的通信方法。
在本申请中,第五方面所述的通信装置可以为第一方面、第二方面所述的设备,或者可设置于该设备中的芯片(系统)或其他部件或组件,或者包含该设备的装置。
应理解,第五方面所述的通信装置包括实现上述第一方面至第二方面中任一方面所述的通信方法相应的模块、单元、或手段(means),该模块、单元、或手段可以通过硬件实现,软件实现,或者通过硬件执行相应的软件实现。该硬件或软件包括一个或多个用于执行上述通信方法所涉及的功能的模块或单元。
此外,第五方面所述的通信装置的技术效果可以参考第一方面或第二方面中任一方面所述的通信方法的技术效果,此处不再赘述。
第六方面,提供一种通信装置。该通信装置包括:处理器,该处理器用于执行第一方面或第二方面中任意一种可能的实现方式所述的通信方法。
在一种可能的设计方案中,第六方面所述的通信装置还可以包括收发器。该收发器可以为收发电路或接口电路。该收发器可以用于第六方面所述的通信装置与其他通 信装置通信。
在一种可能的设计方案中,第六方面所述的通信装置还可以包括存储器。该存储器可以与处理器集成在一起,也可以分开设置。该存储器可以用于存储第一方面或第二方面中任一方面所述的通信方法所涉及的计算机程序和/或数据。
在本申请中,第六方面所述的通信装置可以为第一方面或第二方面中的设备,或者可设置于该设备中的芯片(系统)或其他部件或组件,或者包含该设备的装置。
此外,第六方面所述的通信装置的技术效果可以参考第一方面或第二方面中任意一种实现方式所述的通信方法的技术效果,此处不再赘述。
第七方面,提供一种通信装置。该通信装置包括:处理器,该处理器与存储器耦合,该处理器用于执行存储器中存储的计算机程序,以使得该通信装置执行第一方面或第二方面中任意一种可能的实现方式所述的通信方法。
在一种可能的设计方案中,第七方面所述的通信装置还可以包括收发器。该收发器可以为收发电路或接口电路。该收发器可以用于第七方面所述的通信装置与其他通信装置通信。
在本申请中,第七方面所述的通信装置可以为第一方面或第二方面中的设备,或者可设置于该设备中的芯片(系统)或其他部件或组件,或者包含该设备的装置。
此外,第七方面所述的通信装置的技术效果可以参考第一方面至第二方面中任意一种实现方式所述的通信方法的技术效果,此处不再赘述。
第八方面,提供了一种通信装置,包括:处理器和存储器;该存储器用于存储计算机程序,当该处理器执行该计算机程序时,以使该通信装置执行第一方面或第二方面中的任意一种实现方式所述的通信方法。
在一种可能的设计方案中,第八方面所述的通信装置还可以包括收发器。该收发器可以为收发电路或接口电路。该收发器可以用于第八方面所述的通信装置与其他通信装置通信。
在本申请中,第八方面所述的通信装置可以为第一方面或第二方面中的设备,或者可设置于该设备中的芯片(系统)或其他部件或组件,或者包含该设备的装置。
此外,第八方面所述的通信装置的技术效果可以参考第一方面或第二方面中任意一种实现方式所述的通信方法的技术效果,此处不再赘述。
第九方面,提供了一种通信装置,包括:处理器;所述处理器用于与存储器耦合,并读取存储器中的计算机程序之后,根据该计算机程序执行如第一方面或第二方面中的任意一种实现方式所述的通信方法。
在一种可能的设计方案中,第九方面所述的通信装置还可以包括收发器。该收发器可以为收发电路或接口电路。该收发器可以用于第九方面所述的通信装置与其他通信装置通信。
在本申请中,第九方面所述的通信装置可以为第一方面或第二方面中的设备,或者可设置于该设备中的芯片(系统)或其他部件或组件,或者包含该设备的装置。
此外,第九方面所述的通信装置的技术效果可以参考第一方面或第二方面中任意一种实现方式所述的通信方法的技术效果,此处不再赘述。
第十方面,提供一种处理器。其中,处理器用于执行第一方面或第二方面中任意 一种可能的实现方式所述的通信方法。
第十一方面,提供一种通信系统。该通信系统包括转发设备、终端设备和多个接收设备。
第十二方面,提供一种计算机可读存储介质,包括:计算机程序或指令;当该计算机程序或指令在计算机上运行时,使得该计算机执行第一方面或第二方面中任意一种可能的实现方式所述的通信方法。
第十三方面,提供一种计算机程序产品,包括计算机程序或指令,当该计算机程序或指令在计算机上运行时,使得该计算机执行第一方面或第二方面中任意一种可能的实现方式所述的通信方法。
附图说明
图1为本申请实施例提供的通信系统的架构示意图;
图2为本申请实施例提供的设备的架构示意图一;
图3为本申请实施例提供的设备的架构示意图二;
图4为本申请实施例提供的设备的架构示意图三;
图5为本申请实施例提供的设备的架构示意图四;
图6为本申请实施例提供的通信方法流程示意图一;
图7为本申请实施例提供的广播方式发送数据的示意图;
图8为本申请实施例提供的建立蓝牙连接的流程示意图;
图9为本申请实施例提供的建立WiFi连接的流程示意图;
图10为蓝牙广播连接的结构示意图;
图11为蓝牙点对点连接的结构示意图;
图12为本申请实施例提供的通信方法流程示意图二;
图13为本申请实施例提供的通信装置的结构示意图一;
图14为本申请实施例提供的通信装置的结构示意图二;
图15为本申请实施例提供的通信装置的结构示意图三。
具体实施方式
下面首先介绍本申请实施例所涉及的技术术语。
1、蓝牙(bluetooth)技术:是通过2.4GHz~2.485GHz波段的特高频(ultra high frequency,UHF)无线电波实现无线通信的技术,可以实现设备间的短距离通信,如手机与智能电视、笔记本电脑等其他设备,手机与如下一项或多项外部设备之间的通信:无线耳机、或无线音箱。
2、单播(unicast):指目的地址为单一目标的一种传输方式,信息的接收和传递只在两个设备之间进行。
3、广播(broadcast):指目的地址为网络中所有设备的一种传输方式,发送设备向网络中的所有设备发送数据。
4、空口资源:是指设备和设备之间用来传输数据的无线资源,如频域资源、时域资源、空域资源、或码域资源。
下面将结合附图,对本申请中的技术方案进行描述。
本申请实施例的技术方案可以应用于各种设备间通信系统,例如,蓝牙通信系统、 无线保真(wireless fidelity,WiFi)系统,车到任意物体(vehicle to everything,V2X)通信系统、设备间(device-todevie,D2D)通信系统、车联网通信系统等。
本申请将围绕可包括多个设备、组件、模块等的系统来呈现各个方面、实施例或特征。应当理解和明白的是,各个系统可以包括另外的设备、组件、模块等,并且/或者可以并不包括结合附图讨论的所有设备、组件、模块等。此外,还可以使用这些方案的组合。
另外,在本申请实施例中,“示例地”、“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用示例的一词旨在以具体方式呈现概念。
本申请实施例中,“信息(information)”,“信号(signal)”,“消息(message)”,“信道(channel)”、“信令(singaling)”有时可以混用,应当指出的是,在不强调其区别时,其所要表达的含义是一致的。“的(of)”,“相应的(corresponding,relevant)”和“对应的(corresponding)”有时可以混用,应当指出的是,在不强调其区别时,其所要表达的含义是一致的。
本申请实施例中,有时候下标如W 1可能会笔误为非下标的形式如W1,在不强调其区别时,其所要表达的含义是一致的。
本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
为便于理解本申请实施例,首先以图1中所示出的通信系统为例详细说明适用于本申请实施例的通信系统。
示例性地,图1为本申请实施例提供的通信方法所适用的通信系统的架构示意图一。如图1所示,该通信系统100包括转发设备101、终端设备102和多个接收设备103。其中,转发设备101与终端设备102连接,转发设备101还分别与每个接收设备103连接。
其中,转发设备101可以用于接收数据和发送数据。例如,转发设备101可以接收来自终端设备102、接收设备103、或其他设备的数据,转发设备101可以向终端设备102、接收设备103、或其他设备发送数据。
第一数据为终端设备102的待分享数据,也就是由终端设备102确定的待分享数据,如音频数据、图像数据、视频数据等。
终端设备102可以用于发送数据,还可以用于控制转发设备101的数据分享过程。例如,终端设备102可以向转发设备101或其他设备发送数据。
可选地,终端设备102,还可以用于为转发设备101提供数据来源。
可选地,终端设备102还可以用于接收数据。例如,终端设备102可以接收来自转发设备101或其他设备的数据。
接收设备103可以用于接收数据以及处理数据。例如,接收设备103可以接收来自转发设备101的数据,如音频数据并播放。
示例性地,图1所示的通信系统还可以包括蓝牙设备104。蓝牙设备104与终端 设备102连接。
可选地,蓝牙设备104可以与转发设备101连接。
蓝牙设备104用于接收数据,和/或,发送数据。例如,蓝牙设备104可以接收来自终端设备102或其他设备,如转发设备101的数据,蓝牙设备可以向终端设备101或其他设备,如转发设备101发送数据。
可选地,蓝牙设备104可以用于为转发设备101提供数据来源。
上述转发设备101、终端设备102、接收设备103和蓝牙设备104可以是同种类型的设备,也可以是不同类型的设备,本申请实施例对此不作具体限定。
可选地,转发设备101、终端设备102、蓝牙设备104和多个接收设备103中的任一设备还可以用于处理数据。
示例性地,转发设备101与终端设备103之间可以点对点连接,也可以以其他方式连接。具体地,转发设备101与终端设备103之间的通信连接可以通过有线方式实现,也可以通过无线方式,如WiFi或蓝牙实现。转发设备101和接收设备103可以通过广播方式连接。例如,转发设备101可以通过蓝牙的同步广播流(broadcast isochronous stream,BIS),如低功耗蓝牙(low energy/bluetooth low,LE/BLE)BIS向接收设备103发送数据。转发设备101还可以通过无连接从设备广播(connectionless slave broadcast,CSB)的方式向接收设备103发送数据。
一种可能的设计方案中,图1所示的通信系统可以用于实现本申请实施例提供的通信方法,如下述S601-S603、S1501-S1504等,具体实现请参见下述方法实施例,此处不再赘述。
需要说明的是,图1所示的通信系统100还可以包括未示出的其他设备。
图1中所示出的转发设备101、终端设备102、接收设备103均可以是各种类型的设备,例如,物联网中的各种设备。该设备也可以称为用户装置、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。
示例性地,本申请的实施例中的终端设备可以是手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑。可以理解的是,本申请实施例中,终端设备还可以是蓝牙耳机、蓝牙音箱、智慧屏、或蓝牙分享伴侣、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、车载终端、具有终端功能的RSU等。本申请的终端设备还可以是作为一个或多个部件或者单元而内置于车辆的车载模块、车载模组、车载部件、车载芯片或者车载单元,车辆通过内置的所述车载模块、车载模组、车载部件、车载芯片或者车载单元可以实施本申请提供的通信方法。
示例性地,本申请实施例中,转发设备可以是智慧屏等家庭智能终端、或蓝牙分享伴侣(又称蓝牙随身伴侣)等。
示例性地,本申请实施例中,接收设备可以是蓝牙耳机、蓝牙音箱、手机、平板 电脑等。
示例性地,本申请实施例中,蓝牙设备可以是蓝牙耳机,蓝牙设备也可以是手机、平板电脑等。
示例性地,智慧屏可以是具有蓝牙功能和WiFi功能的设备,蓝牙分享伴侣可以是具有蓝牙功能的设备。图1所示通信系统中的设备还可以是其他具有数据处理功能和数据收发功能的设备,本申请实施例对设备的类型不作具体限定。
例如,图1中转发设备101可以是智慧屏a,终端设备102可以是手机a,多个接收设备103分别包括手机b、蓝牙耳机a和蓝牙音箱a。手机a与智慧屏a之间的通信连接可以通过WiFi实现,智慧屏a与手机b、蓝牙耳机a和蓝牙音箱a之间的广播方式连接,可以通过LE BIS实现。
可选地,蓝牙设备104可以是蓝牙耳机b,其中蓝牙耳机b与智慧屏a连接。示例性地,蓝牙耳机b与智慧屏a可以通过蓝牙音频传输协议(advanced audio distribution profile,A2DP)连接。
又如,图1中转发设备101还可以是蓝牙分享伴侣a,终端设备102可以是手机c,多个接收设备103分别包括手机d、蓝牙耳机c和蓝牙音箱b。手机c与蓝牙分享伴侣a之间的通信连接可以通过WiFi实现,蓝牙分享伴侣a与手机d、蓝牙耳机c和蓝牙音箱b之间的广播方式连接,可以通过LE BIS实现。
可选地,蓝牙设备104可以是蓝牙耳机d,其中蓝牙耳机d与智慧屏a连接。示例性地,蓝牙耳机d与智慧屏a可以通过蓝牙A2DP连接。
图2为本申请实施例的设备的结构示意图一。如图2所示,以终端设备为例,该终端设备200可以包括处理器210、蓝牙模块220、无线模块230、WiFi模块240、音频模块250、显示模块260和接口模块270。
其中,处理器210可以包括一个或多个处理单元。例如,处理器210可以包括应用处理器(application processor,AP)、调制解调器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等。需要说明的是,不同的处理单元可以是独立的器件,也可以集成在一个或多个独立的处理器,可以与终端设备中的其它模块集成在同一个器件中。以调制解调器为例,调制解调器可以为独立于处理器210的一个处理单元,也可以与其它处理单元(例如AP、ISP、GPU等)集成在同一个器件中,还可以将部分或全部功能与无线模块230集成在同一个器件中。再以控制器为例,控制器可以为独立于处理器210的一个处理单元,也可以与其他处理单元(例如,视频编解码器、数字信号处理器等)集成在同一个器件中,还可以将部分或全部功能与无线模块230集成在同一个器件中。
蓝牙模块可以用于传输数据,如音频,可以提供应用在终端设备上的包括蓝牙(bluetooth,BT)的无线通信解决方案。蓝牙模块220可以包括蓝牙射频221和蓝牙基带222。
无线模块230可以包括无线射频231和无线基带232。无线模块230还可以提供应用在终端设备上的全球导航卫星系统(global navigation satellite system,GNSS)、 调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。无线模块230可以包括移动通信模块,移动通信模块可以用于根据终端设备支持的移动通信技术(例如2G、3G、4G或5G等)实现终端设备与网络设备的通信。示例的,终端设备支持的移动通信技术可以包括全球移动通信系统(global system for mobile communication,GSM)、通用分组无线服务技术(general packet radio service,GPRS)、码分多址的英文缩写(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、时分同步码分多址(time division-synchronous code division multiple access,TD-SCDMA)、长期演进(long term evolution,LTE)、或新空口(new radio,NR)等中的至少一个。
例如,终端设备支持GSM,当终端设备通过GSM通信系统中的基站收发台(base transceiver station,BTS)所提供的小区接入网络后,可以在接入的小区的网络信号强度不低于判决门限的情况下,也就是在终端设备处于驻网的状态下,通过移动通信模块实现终端设备与BTS的通信。示例的,移动通信模块可以对调制解调器调制后的信号放大后,经由天线A发送给网络设备;移动通信模块也可以通过天线A接收网络设备发送的信号、并放大,然后发送给调制解调器,由调制解调器将接收到的信号解调为低频基带信号,然后再进行其它相应的处理。在一些实施例中,移动通信模块可以包括滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。
WiFi模块240可以包括WiFi射频241和WiFi基带242。WiFi模块240可以提供应用在终端设备上的包括无线接入网(wireless local area networks,WLAN)(如无线保真(wireless-fidelity,Wi-Fi)网络)等的无线通信解决方案。
需要说明的是,本申请实施例中,如下一项或多项可以集成为收发器:蓝牙模块220、无线模块230和WiFi模块240。该收发器也可以为基于短距离无线通信的收发器。
终端设备可以通过音频模块实现音频数据的处理。例如,终端设备可以包括与音频模块连接的扬声器、受话器、麦克风、耳机接口以及AP等。终端设备可以通过音频模块、扬声器、受话器、麦克风、耳机接口以及AP等实现音频功能,如音乐播放、录音等。
显示模块,可以用于显示图像、视频等。显示模块可以包括一个或多个显示屏。
终端模块还可以通过接口模块连接外部设备。接口模块可以包括以下一项或多项:通用串行总线(universal serial bus,USB)接口、客户识别模块(subscriber identity module,SIM)卡接口、外部存储器接口等。
需要说明的是,图2所示的终端设备还可以包括如下一项或多项:内部存储器、电池、充电管理模块、电源管理模块、摄像头、按键、或传感器模块。
其中,内部存储器可以用于存储数据和/或至少一个计算机程序,该至少一个计算机程序包括指令。具体的,内部存储器可以包括存储程序区和存储数据区。其中,存储程序区可以存储至少一个计算机程序。计算机程序可以包括应用程序(比如图库、联系人等)、操作系统(比如Android操作系统、或者IOS操作系统等)、或者其它程序等,例如,计算机程序可以包括用于进行静态检测的程序。存储数据区可存储终 端设备使用过程中所创建的数据、接收到的来自其它设备(例如其它终端设备、网络设备、服务器、外部存储器等)的数据、或在出厂之前预先存储的数据等中的至少一个。例如,内部存储器中存储的数据可以为应用程序、应用程序的源代码、图像、文件、或标识等信息中的至少一个。
在一些实施例中,内部存储器可以包括高速随机存取存储器和/或非易失性存储器。例如,内部存储器包括一个或多个磁盘存储器件、闪存器件(flash)、或者通用闪存存储器(universal flash storage,UFS)等。
本申请实施例中,电池可以用于为终端设备供电。电池可以是可充电电池或其他的不可充电电池。
需要说明的是,本申请实施例的终端设备中,可以包括图2中的全部结构,也可以包括图2中的部分结构,还可以包括图2之外的其他结构。以下结合图3-图5说明。
图3为本申请实施例中设备的结构示意图二。如图3所示,以设备是蓝牙耳机为例,则蓝牙耳机300可以包括处理器310、蓝牙模块320、音频模块330和接口模块340。其中,蓝牙模块320可以包括蓝牙射频321和蓝牙基带322。
图3中处理器310、蓝牙模块320、音频模块330和接口模块340的功能可以对应参照图2中处理器210、蓝牙模块220、音频模块250和接口模块270的功能,在此不再赘述。
图4为本申请实施例中设备的结构示意图三。如图4所示,以设备为蓝牙分享伴侣为例,则蓝牙分享伴侣400包括处理器410、蓝牙模块420、接口模块430和电池460。其中,蓝牙模块420可以包括蓝牙射频421和蓝牙基带422。电池可以采用大容量的电池。
蓝牙分享伴侣400还可以包括无线模块440和WiFi模块450。无线模块440包括无线射频441和无线基带442。WiFi模块可以包括WiFi射频451和WiFi基带452。
图4中处理器410、蓝牙模块420、接口模块430、无线模块440、WiFi模块和电池460的功能可以对应参照图2中处理器210、蓝牙模块220、接口模块270、无线模块230、WiFi模块240和电池的功能,在此不再赘述。
图5为本申请实施例中设备的结构示意图四。如图5所示,以智慧屏为例,则智慧屏500包括处理器510、蓝牙模块520、音频模块530、显示模块540和接口模块550。其中,蓝牙模块520可以包括蓝牙射频521和蓝牙基带522。
智慧屏500还可以包括蓝牙模块560和WiFi模块570。蓝牙模块560可以包括蓝牙射频561和蓝牙基带562。WiFi模块570可以包括WiFi射频571和WiFi基带572。
图5中处理器510、蓝牙模块520、音频模块530、显示模块540、接口模块550和WiFi模块570的功能可以对应参照图2中处理器210、蓝牙模块220、音频模块250、显示模块260、接口模块270和WiFi模块240的功能,图5中蓝牙模块520的功能可以参照图2中蓝牙模块220的功能,在此不再赘述。
图2-图5中示出的设备的结构并不构成对设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
需要说明的是,上述设备为接入上述通信系统,且具有数据收发功能的终端或可设置于该终端的芯片或芯片系统。
应当指出的是,本申请实施例中的方案还可以应用于其他通信系统中,相应的名称也可以用其他通信系统中的对应功能的名称进行替代。
应理解,图1仅为便于理解而示例的简化示意图,该通信系统中还可以包括其他设备,图1中未予以画出。
下面将结合图6-图12详细阐述本申请实施例提供的通信方法。
示例性地,图6为本申请实施例提供的一种通信方法的流程示意图一。该通信方法可以适用于图1所示的通信系统中转发设备101与终端设备102之间的通信,以及转发设备101与接收设备103之间的通信。如图6所示,该通信方法包括如下步骤:
S601,终端设备向转发设备发送分享指示信息,转发设备接收来自终端设备的分享指示信息。
其中,分享指示信息用于指示分享第一数据,第一数据为终端设备的待分享数据。
示例性地,第一数据为终端设备的待分享数据,即第一数据为需要通过终端设备发送给转发设备分享的数据,或者终端设备指示转发设备分享的数据。
可选地,分享指示信息可以包括如下一项或多项:第一数据的重传次数、或发射功率。
示例性地,重传次数是指转发设备采用广播方式发送待分享数据时,发送待分享数据的次数。例如,待分享数据为第一数据时,若重传次数为2,则转发设备发送第一数据时,在一个广播周期内每一个数据包发送2次。图7为蓝牙广播的数据包发送示意图。以下结合图7说明。
如图7所示,时间t1-时间t2之间为第一个广播周期,蓝牙在广播时,发送的数据包括数据P0、数据P1、数据P2和数据P3,数据P0和数据P1属于一个数据包,数据P2和数据P3属于一个数据包。蓝牙主设备每次发送一个数据包。当需要广播数据P0-数据P3时,蓝牙主设备根据广播周期和重传次数发送数据。具体地,蓝牙主设备首先在第一个广播周期内发送一次数据P0和数据P1,然后在第一个广播周期内再次发送数据P0和数据P1。这样,蓝牙主设备需要发送两次数据包,每次发送的数据包都可能被接收设备接收,则每多发一次数据包,接收设备接收到数据包中数据的概率就增大一些。例如,在数据分享中,重传次数为4,则相较于重传次数为2的情况,接收设备接收到第一数据的概率会增加。
示例性地,发射功率是指转发设备发送数据的功率大小。
例如,接收设备与转发设备之间的最大距离为L,若转发设备当前的发射功率不能覆盖半径为L的区域,则可以调整转发设备的发射功率,以使得与转发设备之间的距离大于或等于L的接收设备也能够接收到第一数据。
可以理解的是,分享指示信息还可以包括转发设备广播的物理信道配置信息。
如此,可以通过终端设备确定转发设备的重传次数,多次重传第一数据,增加接收设备接收到第一数据的概率,能够提高数据分享的可靠性。通过终端设备确定转发设备的发射功率,从而可以确保合适的分享范围。
示例性地,终端设备可以通过无线,如蓝牙、WiFi,或者有线,如光纤、电缆,向转发设备发送分享指示信息。
可选地,在S601,终端设备向转发设备发送分享指示信息,转发设备接收来自终 端设备的分享指示信息之前,图6所示的通信方法还可以包括步骤1。
步骤1,终端设备获取第二信息。
其中,第二信息用于指示终端设备启动第一数据的分享,如向转发设备发送分享指示信息。第二信息可以是用户通过人机交互界面输入,也可以从其他设备获取。
可选地,在S601,终端设备向转发设备发送分享指示信息,转发设备接收来自终端设备的分享指示信息之前,图6所示的通信方法还可以包括步骤2和步骤3。
步骤2,终端设备获取第三信息。
示例性地,第三信息用于指示终端设备播放第一数据,如音频数据等。
步骤3,终端设备根据第三信息,播放第一数据。
其中,第三信息可以是通过人机交互界面输入,也可以从其他设备获取。
一种可能的设计方案中,在S601,终端设备向转发设备发送分享指示信息,转发设备接收来自终端设备的分享指示信息之前,图6所示的通信方法还可以包括步骤4。
步骤4,终端设备与转发设备创建通信连接。
示例性地,终端设备判断:终端设备与转发设备之间是否存在通信连接。若不存在通信连接,则终端设备与转发设备创建通信连接。例如,终端设备获取转发设备的设备地址,并基于该设备地址与终端设备创建通信连接。需要说明的是,本申请实施例中,还可以由转发设备发起通信连接的创建流程。由转发设备创建通信连接的实现可以参照终端设备创建通信连接的实现方式,在此不再赘述。
示例性地,转发设备与终端设备之间的通信连接,可以通过蓝牙、WiFi等无线方式实现,还可以通过电缆、光纤等有线方式实现,本申请实施例对此不作具体限定。
可以理解的是,在步骤4,终端设备与转发设备创建通信连接后,转发设备可以向终端设备发送第四信息,用于指示转发设备与终端设备之间的通信连接成功创建。
需要说明的是,本申请实施例中,步骤1-步骤4的顺序并不代表步骤执行的先后顺序。例如,上述步骤1可以位于步骤2之前,或者位于步骤2与步骤3之间,也可以位于步骤3之后。步骤4可以位于步骤2之前,或者位于步骤2与步骤3之间,也可以位于步骤3之后。步骤4可以位于步骤2之前或者位于步骤2之后,本申请实施例并不具体限定步骤1-步骤4的先后顺序。
为了帮助理解创建通信连接的过程,以下以基于蓝牙创建通信连接和基于WiFi创建通信连接为例说明。
图8为转发设备与终端设备基于蓝牙创建通信连接的流程示意图。如图8所示,转发设备与终端设备创建通信连接的步骤包括S601-1至S601-3:
S601-1,终端设备获取转发设备的蓝牙地址。
S601-2,终端设备根据转发设备的蓝牙地址,创建蓝牙连接。
S601-3,终端设备获取蓝牙连接标识。
示例性地,蓝牙连接标识是与基于蓝牙创建通信连接的两个设备,如转发设备和终端设备对应的信息,可以用于标识两个设备之间的通信连接。
以下结合蓝牙的异步面向连接(asynchronous connection-oriented,ACL)进一步说明。
具体地,终端设备通过主机蓝牙协议栈的通用访问配置文件(generic access profile, GAP)协议扫描蓝牙,获得转发设备(通常为耳机等)的蓝牙地址和名字信息。然后,终端设备通过主机蓝牙协议栈的GAP协议,与转发设备创建ACL连接,该ACL连接创建好后,终端设备获取该ACL连接的连接标识。如此,转发设备与终端设备之间便成功创建通信连接。
图9为转发设备与终端设备基于WiFi创建通信连接的流程示意图。如图9所示,转发设备与终端设备基于WiFi创建通信连接的流程包括S601-4至S601-6。
S601-4,终端设备获取无线访问节点(access point,AP)列表。
示例性地,终端设备可以调用主机WiFi模块的扫描接口,以获取AP列表。
S601-5,终端设备根据转发设备的服务集标识(service set identifier,SSID),调用终端设备中WiFi模块的连接接口。
示例性地,转发设备的SSID,可以根据AP列表的选择结果确定。例如,用户通过人机交互界面,选中了AP列表中的第三个SSID,则AP列表中的第三个SSID所对应的设备即为转发设备,AP列表中的第三个SSID即为转发设备的SSID。
S601-6,终端设备获取WiFi连接的连接状态和连接标识。
其中,连接状态用于指示终端设备与转发设备之间基于WiFi的通信连接是否创建成功和信号质量等。WiFi连接的标识是基于WiFi创建的通信连接对应的信息,可以用于识别通信连接。
以上基于蓝牙和基于WiFi创建通信连接的过程仅用于作示例,并不具体限定创建通信连接的方式。
S602,转发设备获取第一数据。
其中,第一数据可以为音频数据。如此,可以实现音频数据的分享,提高音频分享质量。
需要说明的是,本申请实施例中,第一数据还可以是第一数据之外的其他数据,如视频数据、图像数据等。
一种可能的设计方案中,S602,转发设备获取第一数据,可以包括:终端设备向转发设备发送第一数据,转发设备接收来自终端设备的第一数据。其中,蓝牙设备可以与终端设备通过蓝牙连接。
示例性地,终端设备通过转发设备与终端设备之间的通信连接,如基于蓝牙的通信连接、或基于WiFi的通信连接或有线连接,向转发设备发送第一数据。
可选地,终端设备可以采用单播方式,向转发设备发送第一数据。如此,终端设备可以只发送一份高质量分享数据,既可以确保分享质量,又可以有效降低主分享设备发送的分享数据的数据量,从而减少主分享设备的资源开销和功耗,以兼顾数据分享和其他通信业务。本申请实施例中,单播方式也可以称为点对点方式,以下在不做特殊说明的情况下,点对点均指单播。
需要说明的是,本申请实施例中,终端设备还可以采用其他方式发送数据,本实施例中对此不作具体限定。
示例性地,终端设备可以将第一数据分成数据块发送。转发设备接收到第一数据的各个数据块后,可以重新组合接收到的数据块,以获得第一数据。
一种可能的设计方案中,S602转发设备获取第一数据,可以包括:转发设备接收 来自终端设备的第一数据。
示例性地,终端设备向蓝牙设备发送第一数据,转发设备通过终端设备与蓝牙设备之间的连接,接收第一数据。
示例性地,终端设备与蓝牙设备之间,可以是点对点连接,如蓝牙的点对点连接。具体地,蓝牙的点对点连接可以是如下任一项:传统蓝牙的ACL连接、面向连接的同步数据(synchronous connection oriented,SCO)、扩展面向连接的同步数据(extended synchronous connection oriented,eSCO)连接、LE的ACL连接、或CIS连接。
可选地,在S602转发设备接收第一数据之前,图6所示的通信方法还包括:接收来自终端设备的解密信息。
其中,解密信息用于解析终端设备与蓝牙设备之间传输的第一数据。
具体地,解密信息用于解析终端设备与蓝牙设备之间,通过蓝牙连接传输的数据,以获取第一数据。例如,终端设备与蓝牙设备之间可以传输第一数据的密文,在终端设备与蓝牙设备之间通过蓝牙连接时,转发设备可以根据解密信息设置硬件电路的解密信息。如此,转发设备在接收到第一数据密文后,便可以通过设置好解密信息的硬件电路解密第一数据密文,从而获得第一数据的明文。
可选地,解密信息可以包括:EN_RAND随机数(用于密钥加密)、连接密钥、蓝牙连接的主设备地址、主设备的蓝牙时钟、认证加密偏移量(authenticated ciphering offset,ACO)和主设备的蓝牙时钟相对于连接的主设备蓝牙时钟的偏移值。
例如,转发设备可以首先根据解密信息获取加密密钥,然后根据解密信息以及加密密钥设置硬件电路的解密信息,以解析第一数据。
或者,可选地,解密信息可以包括:加密密钥、EN_RAND随机数、主设备的蓝牙时钟、蓝牙连接的主设备地址和主设备的蓝牙时钟相对于音频连接的主设备蓝牙时钟的偏移值。
需要说明的是,同步字可以是64位,EN_RAND随机数可以是128位,认证加密偏移量可以是96位,加密密钥可以是128位。同步字、EN_RAND随机数、认证加密偏移量中的任一种,也可以为其他位数,本申请实施例对此不作具体限定。
如此,由终端设备将包括加密密钥的解密信息发送给转发设备,可以避免转发设备计算加密密钥,从而减少转发设备处理数据的时间,降低分享时延。
进一步地,解密信息还可以包括其他信息,如同步字(sync word)、和/或,蓝牙跳频表。
如此,可以通过更多的信息来解析第一数据,可以提高监听的效率,进一步提高第一数据的可靠性。
本申请实施例中,解密信息还可以用于指示监听终端设备与蓝牙设备之间的传输的数据。
可选地,转发设备还可以根据解密信息向终端设备发送第五信息,第五信息用于指示是否成功监听终端设备与蓝牙设备之间的连接,即启动监听是否成功。换言之,即转发设备是否能够获取终端设备与蓝牙设备之间传输的第一数据。
如此,转发设备可以根据终端设备提供的解密信息,解析终端设备与蓝牙设备之间传输的第一数据,不需要通过终端设备再向转发设备发送第一数据,能够进一步减 少终端设备的资源开销。
本实施例中,转发设备根据解密信息,监听第一数据的方案的实现,可以参照已有无线通信中监听方案的实现方式,在此不再赘述。
可选地,在S602,转发设备获取第一数据之前,图6所示的通信方法还可以包括:转发设备向终端设备发送第一信息。
其中,第一信息用于指示已接收到分享指示信息;或者,第一信息用于请求第一数据。
如此,终端设备可以根据第一信息发送第一数据,能够提高转发设备所接收到的第一数据的可靠性,进一步提高数据分享的效果。
示例性地,图6所示的通信方法还可以包括步骤5-步骤7。
步骤5,转发设备启动广播连接。
步骤6,转发设备发送同步信息。
示例性地,转发设备可以按照一定的时间间隔,重复发送同步信息。
步骤7,接收设备根据同步信息扫描广播连接,以便与转发设备的时钟同步。
其中,同步信息用于确定接收设备的接收参数。例如,接收设备的接收参数可以包括如下一项或多项:广播的物理信道、发射功率、或重传次数等。
如此,终端设备可以向转发设备发送更高质量的第一数据,以进一步提高数据分享的效果。
S603,转发设备根据分享指示信息,将第一数据以无线广播方式发送给多个接收设备,接收设备接收第一数据。
示例性地,接收设备是待分享的对象。换言之,接收设备是接收第一数据并播放的设备。
示例性地,无线广播方式可以为基于短距离无线通信技术的广播方式。如此,可以避免网络状态对数据分享过程的影响,提高分享效率。
可选地,短距离无线通信可以包括如下一项或多项:蓝牙通信、或无线保真通信。如此,可以通过蓝牙、无线保真的广播方式发送数据,兼顾分享效率和分享的设备的数量。
转发设备的广播方案实现,可以参照已有通信方法中的广播方案的实现方式,如蓝牙的广播方案的实现方式,在此不再赘述。
如此,转发设备可以向多个接收设备发送第一数据,能够减少单独向各接收设备发送第一数据所占用的空口资源,且发送更高质量的数据,从而能够在确保分享的设备数量的情况下,进一步提高发送的第一数据的质量。
需要说明的,本申请实施例中,转发设备向多个接收设备分享第一数据,还可以通过其他的方式,如点对点的方式发送第一数据。本申请实施例中,对转发设备发送第一数据的方式不作具体限定。
可选地,转发设备是通过多个数据包向接收设备发送第一数据。换言之,第一数据可以分为不同的数据包中。
一种可能的设计方案中,转发设备可以包括第一通信模块和第二通信模块。
其中,第一通信模块用于接收第一数据,第二通信模块用于发送第一数据。
示例性地,第一通信模块和第二通信模块中的任一个可以是蓝牙模块,也可以是WiFi模块,本申请实施例中对此不作具体限定。
如此,可以实现接收功能和发送功能分开,从而能够避免接收数据和发送数据的功能相互影响,进一步提高数据分享质量。
需要说明的是,第一通信模块和第二通信模块中,可以包括一个或多个通信部件或组件,每个通信部件或组件可以用于实现数据的接收,和/或,发送功能。
可选地,S603,转发设备根据分享指示信息,以无线广播方式向多个接收设备发送第一数据,接收设备接收第一数据之前,所述方法还包括步骤8。
步骤8,转发设备向终端设备发送反馈信息。
其中,反馈信息用于指示第一数据是否传输成功。例如,反馈信息可以指示接收到的第一数据是否存在损坏,第一数据解码是否成功。
可选地,在S603,转发设备根据分享指示信息,向多个接收设备发送第一数据之前,图6中所示出的方法还可以包括步骤9。
步骤9,转发设备转换第一数据的编码。
示例性地,可以根据转发设备发送数据的编码格式转换第一数据的编码格式。例如,转发设备接收第一数据并缓存,若第一数据的编码格式不符合转发设备发送数据的编码格式,则将接收到的第一数据的编码格式转换为发送数据的编码格式。也可以根据转发设备与接收设备之间的信道状态转换第一数据的编码格式。例如,转发设备与接收设备之间的信道状态良好,则可以将第一数据转换为质量更高的编码格式,转发设备与接收设备之间的信道状态差,则可以将第一数据转换为质量更低的编码格式。还可以根据转发设备与接收设备之间的资源占用情况转换第一数据编码格式。例如,转发设备与接收设备之间的频率资源被占用,则可以将第一数据转换为更适合在未被占用的频率资源上发送的编码格式。
需要说明的是,本申请实施例中,步骤8-步骤9的顺序并不代表步骤执行的先后顺序。例如,步骤9也可以在步骤8之前执行。
示例性地,转发设备还可以向接收设备发送接收指示信息。接收指示信息用于指示接收第一数据,如音频数据。接收指示信息可以是由转发设备的人机交互界面输入,也可以由转发设备从其他设备获取。
接收设备接收第一数据,可以包括:接收设备获取来自转发设备的接收指示信息,接着接收设备判断与转发设备之间是否存在广播连接。
示例性地,若接收设备与转发设备基于低功耗蓝牙连接,则接收设备可以通过蓝牙主机协议栈的接口,查询到当前是否存在广播连接,其中,广播连接可以通过连接标识来识别。若接收设备与转发设备之间不存在广播连接,则接收设备通过扫描周期广播,从周期广播中获取同步信息,并根据同步信息创建广播连接。具体地,接收设备通过蓝牙主机协议栈的接口,启动蓝牙周期广播扫描以及启动蓝牙的同步信息上报的流程。接着,接收设备的主机协议栈发送扫描周期广播的命令给接收设备上的蓝牙模块。接收设备上的蓝牙模块启动蓝牙的周期广播扫描,若扫描到终端设备发送的周期广播,则从扫描到的周期广播中获取同步信息,如低功耗蓝牙的同步信息。蓝牙模块收到同步信息之后,通过蓝牙主机协议栈将同步信息上报给接收设备。例如,蓝牙 主机协议栈以蓝牙的主机控制接口(host controller interface,HCI)事件的形式上报同步信息。
接收设备根据收到的同步信息,通过蓝牙主机协议栈发送创建蓝牙连接的命令给接收设备上的蓝牙模块,接收设备上的蓝牙模块收到命令之后,开始创建蓝牙连接。蓝牙连接创建成功之后,蓝牙模块上报蓝牙连接创建成功的消息给蓝牙主机协议栈,并接收音频数据。蓝牙模块在接收音频数据后,将收到的音频数据上报给蓝牙主机协议栈。具体地,蓝牙模块可以将接收到的音频数据连续上报给蓝牙主机协议栈。
若接收设备与转发设备之间存在广播连接,则接收设备接收音频数据。
可以理解的是,接收设备在收到音频数据之后,还可以缓存音频数据。
需要说明的是,本申请实施例中的蓝牙,可以是低功耗蓝牙。
图6所示的通信方法还可以包括:接收设备处理第一数据。
示例性地,接收设备可以存储第一数据,也可以根据第一数据的具体类型执行播放等操作。例如,转发设备是通过多个数据包向接收设备发送第一数据,则接收设备可以将多个数据包组合成完整的第一数据,然后再对组合成的第一数据解码或者存储等。例如,若第一数据为音频数据,接收设备在接收到来自转发设备的音频数据后,可以通过音频模块播放该音频数据。若第一数据为视频数据,则接收设备接收到第一数据后,可以播放该视频数据。
需要说明的是,本申请实施例中,步骤S601-步骤S603的顺序并不代表步骤执行的先后顺序。例如,步骤S602也可以在步骤S601之前执行。
需要说明的是,本申请实施例中,转发设备和终端设备之间传输的信息,可以以特定的格式发送。
示例性地,终端设备用于控制终端设备的分享过程的信息,以下简称分享控制信息,可以包括:分享指示信息和停止分享信息、启动监听信息(解密信息)和停止监听信息,停止分享信息指示终端设备停止分享第一数据。终端设备发送分享指示信息、停止分享信息、启动监听信息或停止监听信息时,在发送的信息中,可以包括分享控制信息的标识符,以及分享指示信息或停止分享信息中的标识符。
表1
Figure PCTCN2021073855-appb-000001
如表1所示,可以用0表示分享指示信息,可以用1表示停止分享信息,用2表示启动监听,用3表示停止监听,则分享指示信息的组成为“00”,停止分享信息的组成为“01”,启动监听信息的组成为“02”,停止监听信息的组成为“03”。若是转发设备发送给终端设备的回应消息,则可以用2表示。如表2所示,分享控制信息对应的数据包可以包括以下多项内容:字段1对应的分享控制信息,以及字段2对应的分享指示信息、停止分享信息、启动监听信息、或停止监听信息中的一个。或者,字段1对应的标识符1,以及字段2对应的标识符0、1、2、或3。
又如,终端设备发送给转发设备的第一数据,可以通过数据包的形式发送,具体地,如表2所示,第一数据对应的数据包可以包括如下内容:字段1对应的数据传输信息、字段2对应的数据块长度和字段3对应的第一数据的数据块。或者,字段1、字段2依次对应的标识符:1、0,以及字段3对应的第一数据的数据块。
表2
信息字段 数据类型 标识符
字段1 数据传输信息 1
字段2 数据块长度 0
字段3 第一数据的数据块
又如,转发设备发送给终端设备的第一信息,可以包括如表3所示的内容:字段1对应的信息回应、字段2对应的分享指示信息回应和字段3对应的分享失败或分享成功,或者字段1、字段2、字段3依次对应的标识符。例如,若0代表分享成功,1代表分享失败,则在分享成功时,第一信息的内容可以依次包括:2、1和0。
表3
Figure PCTCN2021073855-appb-000002
再如,转发设备向终端设备发送的第五信息,可以包括如表4所示的内容:字段1对应的信息回应、字段2对应的解密信息回应,和字段3对应的启动监听失败和启动监听成功中的一个,比如0代表启动监听成功,1代表启动监听失败。若启动监听成功,则转发设备向终端设备发送的信息中可以包括“200”。
表4
Figure PCTCN2021073855-appb-000003
为了进一步说明本申请实施例的技术效果,以下结合图10-图11说明。
图10为已有蓝牙广播的连接示意图。如图10所示,终端设备与多个接收设备连接。终端设备采用广播方式发送音频数据,需要多次发送,会导致消耗较多空口资源。图11为已有蓝牙点对点的连接示意图。如图11所示,终端设备与每个接收设备分别建立点对点的连接。终端设备向每个接收设备发送一次数据,均需占用额外的空口资源。
容易得知,在图10和图11两种架构中,终端设备均会消耗较多的空口资源用于分享第一数据。而在本申请的实施例中,转发设备通过监听方式获取第一数据并分享,或者,终端设备以单播(点对点)的方式向转发设备发送第一数据,如此,终端设备可以避免消耗空口资源向转发设备发送数据,或者终端设备只需要消耗向转发设备发送第一数据的空口资源,就可以将数据分享给多个接收设备,能够减少资源开销。
基于图6所示的通信方法,转发设备(即辅助分享设备)可以获取第一数据,以 及根据终端设备(即主分享设备)的分享指示信息,向多个接收终端(即被分享设备)分享第一数据,即转发设备可以协助终端设备完成数据分享。其中,主分享设备可以为空口资源和/或发射功率受限设备,辅助分享设备可以为空口资源和/或发射功率不受限设备。如此,终端设备可以利用WiFi或有线等通信方式向转发设备发送第一数据,由于WiFi通信在同一时刻占用的频带更宽,相比蓝牙等短距离无线通信技术有更高的速率,而有线方式可以进一步摆脱蓝牙和WiFi通信等短距离无线通信的速率限制,采用这两种方式均可以在单位时间内发送更大的数据量,且转发设备在获取高质量的待分享数据之后,可以再通过无线广播的方式分享给如蓝牙音箱等多个接收终端,从而能够发送高质量的待分享数据,确保分享质量。或者,终端设备向转发设备发送待分享数据,可以利用重复发送待分享数据的空口资源,发送待分享数据的不同部分,可以实现更高质量的待分享数据的分享,既可以确保分享质量,又可以减少终端设备发送的数据量,从而减少主分享设备的资源开销和功耗,以兼顾数据分享业务和其他业务。
并且,转发设备作为终端设备分享数据的中继设备,能够向更多设备分享数据,以扩大分享范围,从而提高数据分享的效率。
此外,终端设备可以用更小的发射功率向转发设备发送数据,从而能够节省功耗,延长续航时间。
示例性地,图12为本申请实施例提供的一种通信方法的流程示意图二。该通信方法可以适用于图1所示的通信系统中转发设备101与终端设备102之间的通信,以及转发设备101与接收设备103之间的通信。如图12所示,该通信方法包括如下步骤:
S1201,终端设备向转发设备发送分享指示信息,转发设备接收来自终端设备的分享指示信息。
其中,分享指示信息用于指示分享第一数据,第一数据为终端设备的待分享数据。
可选地,分享指示信息可以包括如下一项或多项:第一数据的重传次数、或发射功率。
可以理解的是,分享指示信息还可以包括转发设备广播的物理信道。
一种可能的设计方案中,转发设备可以包括第一通信模块和第二通信模块。其中,第一通信模块用于接收第一数据,第二通信模块用于发送第一数据。
可选地,在S1201,终端设备向转发设备发送分享指示信息,转发设备接收来自终端设备的分享指示信息之前,图12所示的通信方法还可以包括步骤10。
步骤10,终端设备获取第二信息。
步骤10的实现可以参照上一实施例中的步骤1的实现方式,在此不再赘述。
在图1所示的通信系统中,进一步地,图12所示的通信方法,还可以包括步骤11-步骤15。
步骤11,终端设备获取第三信息。
步骤12,终端设备根据第三信息,播放第一数据。
一种可能的设计方案中,S1201,终端设备向转发设备发送分享指示信息,转发设备接收来自终端设备的分享指示信息之前,图12所述的通信方法还可以包括步骤13。
步骤13,终端设备与转发设备创建通信连接。
步骤10-步骤13的实现可以参照步骤1-步骤4的实现方式,在此不再赘述。
需要说明的是,本申请实施例中,步骤11-步骤13的顺序并不代表步骤执行的先后顺序。
可以理解的是,转发设备可以向终端设备发送第四信息,以指示转发设备与终端设备之间成功创建通信连接。
S1202,转发设备获取第一数据。
一种可能的设计方案中,转发设备获取第一数据,还可以包括:转发设备接收来自蓝牙设备的第一数据。
例如,蓝牙设备向终端设备发送第一数据,则转发设备可以接收第一数据。换言之,转发设备通过监听蓝牙设备与终端设备之间传输的数据,从而获取第一数据。
如此,第一数据也可以由蓝牙设备提供,可以进一步节约终端设备的空口资源,以进一步节省终端设备的资源开销和功耗。此外,还可以进一步降低终端设备的功耗,且可以拓展数据分享的应用场景,从而提高适用性和灵活性。
示例性地,第一数据为音频数据时,终端设备与蓝牙设备之间可以通过A2DP连接传输数据。
以下结合终端设备为蓝牙连接中的主设备、蓝牙设备为蓝牙连接中的从设备,说明A2DP音频连接的创建过程。
终端设备与蓝牙设备创建ACL连接,创建ACL连接的方案实现,可以参见图8中基于蓝牙创建通信连接的方式,在此不再赘述。终端设备通过主机蓝牙协议栈的A2DP协议,与蓝牙设备之间创建A2DP连接。具体地,终端设备输入为ACL连接标识,返回为A2DP连接的连接状态,从而完成A2DP连接的创建。终端设备在收到来自人机交互界面的第三信息,或通过A2DP连接,收到来自蓝牙设备的第三信息之后,通过A2DP协议播放音频。
如此,第一数据也可以由蓝牙设备提供,可以进一步降低终端设备的功耗,且可以拓展数据分享的应用场景,从而提高适用性和灵活性。
进一步地,在S1202,转发设备获取第一数据之前,图12所示的通信方法还可以包括:转发设备向终端设备发送第一信息。
其中,第一信息用于指示已接收到分享指示信息。或者,第一信息用于请求第一数据。
示例性地,在S1202,转发设备获取第一数据之前,图12所示的通信方法还可以包括步骤12。
步骤15,转发设备接收来自终端设备的解密信息。
关于步骤15的具体实现和技术效果,可以参照步骤S602中转发设备接收来自终端设备的解密信息的实现方式和技术效果,在此不再赘述。
进一步地,在S1202,转发设备获取第一数据之前,图12所示的通信方法还可以包括步骤16。
步骤16,转发设备向终端设备发送监听响应信息。
其中,监听响应信息用于指示转发设备是否成功启动监听。
示例性地,在转发设备获取第一数据之前,图12所示的通信方法还可以包括步骤 17-步骤20。
步骤17,转发设备启动监听音频连接。
步骤18,转发设备启动广播连接。
步骤19,转发设备发送同步信息。
示例性地,转发设备可以以周期广播的形式发送同步信息。
步骤20,接收设备根据同步信息扫描广播连接,以及与转发设备同步。
关于步骤18-步骤20的实现可以对应参照步骤5-步骤7的实现方式,在此不再赘述。
S1203,转发设备根据分享指示信息,将第一数据以无线广播方式发送给多个接收设备,接收设备接收第一数据。
其中,无线广播方式的实现可以参考步骤S603中的实现方式,在此不再赘述。可选地,在S1203,转发设备根据分享指示信息,向多个接收设备发送第一数据,接收设备获取第一数据之前,图12所示的通信方法还包括步骤21。
步骤21,转发设备转换第一数据的编码。
关于步骤21的实现可以参照步骤9的实现方式,在此不再赘述。
本申请实施例中,图12所示的通信方法还可以包括:接收设备根据第一数据做相应的处理。
关于接收设备根据第一数据做相应的处理的实现,请参见图6所示的通信方法中,接收设备处理第一数据的实现方式,在此不再赘述。
关于步骤S1201-步骤S1203的具体实现和技术效果,请参见图6所示的通信方法中,步骤S601-步骤S603的实现方式和技术效果,在此不再赘述。需要说明的是,本申请实施例中,第一数据是指来自同一数据源的数据,第一数据在不同的设备中传输时,具体的形式,如编码格式可能不同。
以上结合图6-图12详细说明了本申请实施例提供的通信方法。以下结合图13-图15详细说明用于执行本申请实施例提供的通信方法的通信装置。
示例性地,图13是本申请实施例提供的通信装置的结构示意图一。如图13所示,通信装置1300可适用于图1所示出的通信系统中,执行图6或图12中所示出的通信方法中转发设备的功能。通信装置1300包括处理器1301,以及耦合至处理器1301的收发器1302。
其中,处理器1301用于:通过收发器1302接收来自终端设备的分享指示信息。其中,分享指示信息用于指示分享第一数据,第一数据为终端设备的待分享数据。通过收发器1302获取第一数据。以及根据分享指示信息,控制收发器1302将第一数据以无线广播方式发送给多个接收设备。
一种可能的设计方案中,收发器支持短距离无线通信,无线广播方式为基于短距离无线通信技术的广播方式。
进一步地,短距离无线通信包括如下一项或多项:蓝牙通信、或无线保真通信。
一种可能的设计方案中,第一数据为音频数据。
可选地,处理器1301用于:通过收发器1302接收来自蓝牙设备的第一数据。其中,蓝牙设备与终端设备可以通过蓝牙连接。
或者,可选地,处理器1301用于:通过收发器1302接收来自终端设备的第一数据。
进一步地,处理器还用于:通过收发器接收来自终端设备的解密信息。其中,解密信息用于解析终端设备与蓝牙设备之间传输的第一数据。
进一步地,处理器1301还用于:通过收发器1302向终端设备发送第一信息。其中,第一信息用于指示已接收到分享指示信息。或者,第一信息用于请求第一数据。
一种可能的设计方案中,分享指示信息可以包括如下一项或多项:第一数据的重传次数、或发射功率。
一种可能的设计方案中,转发设备可以包括第一通信模块和第二通信模块。其中,第一通信模块用于接收第一数据,第二通信模块用于发送第一数据。
一种可能的设计方案中,通信装置为家庭智能终端或蓝牙随身伴侣。
可选地,收发器1302可以为收发电路或接口电路。该收发器可以用于通信装置1300与其他通信装置通信。
可选地,通信装置1300还可以包括存储模块(图13中未示出),该存储模块存储有程序或指令。当处理器1301执行该程序或指令时,使得通信装置1300可以执行图6、图12中任一项所示出的通信方法中转发设备的功能。
应理解,通信装置1300中涉及的处理器1301还可以由处理器相关电路组件实现,可以为处理单元;收发器可以还可以由收发器相关电路组件实现,可以为收发单元。
需要说明的是,通信装置1300可以是图1中所示出的转发设备,也可以是可设置于转发设备中的芯片(系统)或其他部件或组件,还可以是包含转发设备的装置,本申请对此不做限定。
此外,通信装置1300的技术效果可以参考图6或图12中任一项所示出的通信方法的技术效果,此处不再赘述。
示例性地,图14是本申请实施例提供的通信装置的结构示意图二。如图14所示,通信装置1400包括:包括处理器1401,耦合至处理器1401的第一收发器。为了便于说明,图14仅示出了该通信装置的主要部件。
一些实施例中,通信装置1400可适用于图1中所示出的通信系统中,执行图6或图12中所示出的通信系统中终端设备的功能。
其中,处理器1401用于:通过第一收发器1402向转发设备发送分享指示信息,以指示转发设备分享终端设备待分享的第一数据。以及通过第一收发器以单播方式,向转发设备发送第一数据。
处理器1401还用于:通过第一收发器1402接收来自转发设备的第一信息。其中,第一信息用于指示已接收到分享指示信息。或者,第一信息用于请求第一数据。
一种可能的设计方案中,分享指示信息可以包括如下一项或多项:第一数据的重传次数、或发射功率。
可选地,通信装置1400还可以包括:第二收发器,第二收发器与第一收发器以时分复用的方式共用天线。
例如,第一收发器为基于蓝牙技术的收发器,第二收发器为基于WiFi技术的收发器。
可选地,第一收发器1402可以为收发电路或接口电路。该收发器可以用于通信装置1400与其他通信装置通信。
可选地,通信装置1400还可以包括存储模块(图14中未示出),该存储模块存储有程序或指令。当处理器1401执行该程序或指令时,使得通信装置1400可以执行图6所示的通信方法中终端设备的功能。
应理解,通信装置1400中涉及的处理器1401可以由电路组件实现,可以为处理单元;收发器1402可以由电路组件实现,可以为收发单元。
需要说明的是,通信装置1400可以是图1中所示出的终端设备,也可以是设置于上述终端设备中的芯片(系统)或其他部件或组件,或者包含该终端设备的装置,本申请实施例对此不做限定。
此外,通信装置1400的技术效果,可以分别参考图6或图12中任一项所示出的通信方法的技术效果,此处不再赘述。
示例性地,图15为本申请实施例提供的通信装置的结构示意图三。该通信装置可以是终端设备或网络设备,也可以是可设置于终端设备或网络设备的芯片(系统)或其他部件或组件。如图15所示,通信装置1500可以包括处理器1501。可选地,通信装置1500还可以包括存储器1502和/或收发器1503。其中,处理器1501与存储器1502和收发器1503耦合,如可以通过通信总线连接。
下面结合图15对通信装置1500的各个构成部件进行具体的介绍:
其中,处理器1501是通信装置1500的控制中心,可以是一个处理器,也可以是多个处理元件的统称。例如,处理器1501是一个或多个中央处理器(central processing unit,CPU),也可以是特定集成电路(application specific integrated circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)。
可选地,处理器1501可以通过运行或执行存储在存储器1502内的软件程序,以及调用存储在存储器1502内的数据,执行通信装置1500的各种功能。
在具体的实现中,作为一种实施例,处理器1501可以包括一个或多个CPU,例如图15中所示出的CPU0和CPU1。
在具体实现中,作为一种实施例,通信装置1500也可以包括多个处理器,例如图2中所示的处理器1501和处理器1504。这些处理器中的每一个可以是一个单核处理器(single-CPU),也可以是一个多核处理器(multi-CPU)。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
其中,所述存储器1502用于存储执行本申请方案的软件程序,并由处理器1501来控制执行,具体实现方式可以参考上述方法实施例,此处不再赘述。
可选地,存储器1502可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压 缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器1502可以和处理器1501集成在一起,也可以独立存在,并通过通信装置1500的接口电路(图15中未示出)与处理器1501耦合,本申请实施例对此不作具体限定。
收发器1503,用于与其他通信装置之间的通信。例如,通信装置1500为终端设备,收发器1503可以用于与网络设备通信,或者与另一个终端设备通信。又例如,通信装置1500为网络设备,收发器1503可以用于与终端设备通信,或者与另一个网络设备通信。
可选地,收发器1503可以包括接收器和发送器(图15中未单独示出)。其中,接收器用于实现接收功能,发送器用于实现发送功能。
可选地,收发器1503可以和处理器1501集成在一起,也可以独立存在,并通过通信装置1500的接口电路(图15中未示出)与处理器1501耦合,本申请实施例对此不作具体限定。
需要说明的是,图15中示出的通信装置1500的结构并不构成对该通信装置的限定,实际的通信装置可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
此外,通信装置1500的技术效果可以参考上述方法实施例所述的通信方法的技术效果,此处不再赘述。
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请并不限定。示例性的,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型,以及存储器与处理器的设置方式不作具体限定。
示例性的,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。
本申请实施例提供一种通信系统。该通信系统包括上述转发设备、终端设备和多个接收设备。
可选地,通信系统还可以包括:蓝牙设备。
应理解,在本申请实施例中的处理器可以是中央处理单元(central processing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
还应理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的随机存取存储器(random access memory,RAM)可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。
上述实施例,可以全部或部分地通过软件、硬件(如电路)、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令或计算机程序。在计算机上加载或执行所述计算机指令或计算机程序时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质。半导体介质可以是固态硬盘。
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系,但也可能表示的是一种“和/或”的关系,具体可参考前后文进行理解。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a- b-c,其中a,b,c可以是单个,也可以是多个。
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (33)

  1. 一种通信方法,其特征在于,应用于转发设备,所述方法包括:
    接收来自终端设备的分享指示信息;其中,所述分享指示信息用于指示分享第一数据,所述第一数据为所述终端设备的待分享数据;
    获取所述第一数据;
    根据所述分享指示信息,将所述第一数据以无线广播方式发送给多个接收终端。
  2. 根据权利要求1所述的通信方法,其特征在于,所述无线广播方式为基于短距离无线通信技术的广播方式。
  3. 根据权利要求2所述的通信方法,其特征在于,所述短距离无线通信包括如下一项或多项:蓝牙通信、或无线保真通信。
  4. 根据权利要求1-3中任一项所述的通信方法,其特征在于,所述第一数据为音频数据。
  5. 根据权利要求1-4中任一项所述的通信方法,其特征在于,所述获取所述第一数据,包括如下任一项:
    接收来自蓝牙设备的所述第一数据;其中,所述蓝牙设备与所述终端设备通过蓝牙连接;或者,
    接收来自所述终端设备的所述第一数据。
  6. 根据权利要求5所述的通信方法,其特征在于,在所述获取所述第一数据之前,所述方法还包括:
    接收来自所述终端设备的解密信息;其中,所述解密信息用于解析所述终端设备与所述蓝牙设备之间传输的第一数据。
  7. 根据权利要求5所述的通信方法,其特征在于,在所述接收来自所述终端设备的所述第一数据之前,所述方法还包括:
    向所述终端设备发送第一信息;
    其中,所述第一信息用于指示已接收到所述分享指示信息;或者,
    所述第一信息用于请求所述第一数据。
  8. 根据权利要求1-7中任一项所述的通信方法,其特征在于,所述分享指示信息包括如下一项或多项:所述第一数据的重传次数、或发射功率。
  9. 一种通信方法,其特征在于,应用于终端设备,所述方法包括:
    向转发设备发送分享指示信息,以指示所述转发设备分享所述终端设备待分享的第一数据;
    以单播方式,向所述转发设备发送所述第一数据。
  10. 根据权利要求9所述的通信方法,其特征在于,在向所述转发设备发送所述第一数据之前,所述方法还包括:
    接收来自所述转发设备的第一信息;
    其中,所述第一信息用于指示已接收到所述分享指示信息;或者,
    所述第一信息用于请求所述第一数据。
  11. 根据权利要求9或10所述的通信方法,其特征在于,所述分享指示信息包括如下一项或多项:所述第一数据的重传次数、或发射功率。
  12. 一种通信装置,其特征在于,所述通信装置包括:处理器,以及耦合至所述处理器的收发器;
    所述处理器,用于:
    通过所述收发器接收来自终端设备的分享指示信息;其中,所述分享指示信息用于指示分享第一数据,所述第一数据为所述终端设备的待分享数据;
    通过所述收发器获取所述第一数据;以及,
    根据所述分享指示信息,控制所述收发器将所述第一数据以无线广播方式发送给多个接收终端。
  13. 根据权利要求12所述的通信装置,其特征在于,所述收发器支持短距离无线通信,所述无线广播方式为基于短距离无线通信技术的广播方式。
  14. 根据权利要求13所述的通信装置,其特征在于,所述短距离无线通信包括如下一项或多项:蓝牙通信、或无线保真通信。
  15. 根据权利要求12-14中任一项所述的通信装置,其特征在于,所述第一数据为音频数据。
  16. 根据权利要求12-15中任一项所述的通信装置,其特征在于,所述处理器用于:
    通过所述收发器接收来自蓝牙设备的所述第一数据;其中,所述蓝牙设备与所述终端设备通过蓝牙连接;或者,
    通过所述收发器接收来自所述终端设备的所述第一数据。
  17. 根据权利要求16所述的通信装置,其特征在于,所述处理器还用于:通过收发器接收来自所述终端设备的解密信息;其中,所述解密信息用于解析所述终端设备与所述蓝牙设备之间传输的所述第一数据。
  18. 根据权利要求16所述的通信装置,其特征在于,所述处理器还用于:通过所述收发器向所述终端设备发送第一信息;
    其中,所述第一信息用于指示已接收到所述分享指示信息;或者,
    所述第一信息用于请求所述第一数据。
  19. 根据权利要求12-18中任一项所述的通信装置,其特征在于,所述分享指示信息包括如下一项或多项:所述第一数据的重传次数、或发射功率。
  20. 根据权利要求12-19中任一项所述的通信装置,其特征在于,所述处理器包括第一通信模块和第二通信模块;其中,所述第一通信模块用于接收所述第一数据,所述第二通信模块用于发送所述第一数据。
  21. 根据权利要求12-20中任一项所述的通信装置,其特征在于,所述通信装置为家庭智能终端或蓝牙随身伴侣。
  22. 一种通信装置,其特征在于,所述通信装置包括处理器,以及耦合至所述处理器的第一收发器;
    所述处理器用于:
    通过所述第一收发器向转发设备发送分享指示信息,以指示所述转发设备分享终端设备待分享的第一数据;以及,
    通过所述第一收发器以单播方式,向所述转发设备发送所述第一数据。
  23. 根据权利要求22所述的通信装置,其特征在于,
    所述处理器还用于:
    通过所述第一收发器接收来自所述转发设备的第一信息;
    其中,所述第一信息用于指示已接收到所述分享指示信息;或者,
    所述第一信息用于请求所述第一数据。
  24. 根据权利要求22或23所述的通信装置,其特征在于,所述分享指示信息包括如下一项或多项:所述第一数据的重传次数、或发射功率。
  25. 根据权利要求22至24中任一项所述的通信装置,其特征在于,还包括:第二收发器,所述第二收发器与所述第一收发器以时分复用的方式共用天线。
  26. 一种通信装置,其特征在于,所述通信装置用于执行如权利要求1-11中任一项所述的通信方法。
  27. 一种通信装置,其特征在于,所述通信装置包括:处理器;其中,
    所述处理器,用于执行如权利要求1-11中任一项所述的通信方法。
  28. 一种通信装置,其特征在于,包括:处理器,所述处理器与存储器耦合;
    所述处理器,用于执行所述存储器中存储的计算机程序,以使得所述通信装置执行如权利要求1-11中任一项所述的通信方法。
  29. 一种通信装置,其特征在于,包括:处理器和接口电路;其中,
    所述接口电路,用于接收代码指令并传输至所述处理器;
    所述处理器用于运行所述代码指令以执行如权利要求1-11中任一项所述的方法。
  30. 一种通信装置,其特征在于,所述通信装置包括处理器和收发器,所述收发器用于所述通信装置和其他通信装置之间进行信息交互,所述处理器执行程序指令,用以执行如权利要求1-11中任一项所述的通信方法。
  31. 一种处理器,其特征在于,包括:所述处理器用于执行如权利要求1-11中任一项所述的通信方法。
  32. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序或指令,当所述计算机程序或指令在计算机上运行时,使得所述计算机执行如权利要求1-11中任一项所述的通信方法。
  33. 一种计算机程序产品,其特征在于,所述计算机程序产品包括:计算机程序或指令,当所述计算机程序或指令在计算机上运行时,使得所述计算机执行如权利要求1-11中任一项所述的通信方法。
PCT/CN2021/073855 2021-01-26 2021-01-26 通信方法及装置 WO2022160107A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2021/073855 WO2022160107A1 (zh) 2021-01-26 2021-01-26 通信方法及装置
CN202180090078.5A CN116762371A (zh) 2021-01-26 2021-01-26 通信方法及装置
EP21921727.0A EP4274158A4 (en) 2021-01-26 2021-01-26 COMMUNICATION METHOD AND APPARATUS
US18/358,120 US20230370183A1 (en) 2021-01-26 2023-07-25 Communication method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/073855 WO2022160107A1 (zh) 2021-01-26 2021-01-26 通信方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/358,120 Continuation US20230370183A1 (en) 2021-01-26 2023-07-25 Communication method and apparatus

Publications (1)

Publication Number Publication Date
WO2022160107A1 true WO2022160107A1 (zh) 2022-08-04

Family

ID=82652972

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/073855 WO2022160107A1 (zh) 2021-01-26 2021-01-26 通信方法及装置

Country Status (4)

Country Link
US (1) US20230370183A1 (zh)
EP (1) EP4274158A4 (zh)
CN (1) CN116762371A (zh)
WO (1) WO2022160107A1 (zh)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8793702B2 (en) * 2007-10-23 2014-07-29 Adobe Systems Incorporated Take and share indicator
CN108111999A (zh) * 2017-12-28 2018-06-01 北京地平线机器人技术研发有限公司 短距离通信设备分享请求和控制方法及电子设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160162924A1 (en) * 2015-11-27 2016-06-09 Yogesh Rathod Track user activities and in exchange provide points to use for various activities including advertising contents to targeted users of network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8793702B2 (en) * 2007-10-23 2014-07-29 Adobe Systems Incorporated Take and share indicator
CN108111999A (zh) * 2017-12-28 2018-06-01 北京地平线机器人技术研发有限公司 短距离通信设备分享请求和控制方法及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4274158A4 *

Also Published As

Publication number Publication date
CN116762371A (zh) 2023-09-15
EP4274158A1 (en) 2023-11-08
EP4274158A4 (en) 2024-02-28
US20230370183A1 (en) 2023-11-16

Similar Documents

Publication Publication Date Title
US11115902B2 (en) Broadcast isochronous relay over ESCO
EP3893109B1 (en) Method and device for connecting bluetooth devices
US10616743B2 (en) Low-latency audio streaming with communication coexistence
US10917920B2 (en) Method and apparatus for connecting alternative communication means using bluetooth low energy (LE)
US10193933B2 (en) System and method for post-discovery communication within a neighborhood-aware network
US8909197B2 (en) Method and system for providing Wi-Fi service by Wi-Fi device
US20120171958A1 (en) Method and apparatus for distributing data in a short-range wireless communication system
US20170303076A1 (en) Method and apparatus for transmitting or receiving data using bluetooth in wireless communication system
WO2020134720A1 (zh) 数据传输控制方法及相关产品
US20160080896A1 (en) Method and apparatus for transmitting and receiving audio stream in wireless communication system
US10979990B2 (en) Seamless link transfers between primary and secondary devices
WO2021121308A1 (zh) 一种多路径传输的方法及设备
US11558155B2 (en) Broadcast relay piconet for low energy audio
US20160299739A1 (en) Method for controlling data streaming using bluetooth communication
WO2020077658A1 (zh) 用于蓝牙设备的扩展连接方法和扩展连接系统
CN112399476B (zh) 一种数据包传输方法、终端设备及网络设备
WO2022082754A1 (zh) 一种通信方法及装置
CN114208234A (zh) 在蓝牙网络环境中支持多链路的方法及其电子装置
WO2022087924A1 (zh) 音频控制方法和设备
TW201911835A (zh) 資料調度方法及相關設備
US20240090049A1 (en) Method and apparatus for establishing bluetooth link, device, and storage medium
US9609676B1 (en) Efficient transition from discovery to link establishment
US10952244B2 (en) Information processing apparatus, communication system, information processing method, and program
WO2022160107A1 (zh) 通信方法及装置
US20200275318A1 (en) Coexistence configuration switching for mesh networks

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202180090078.5

Country of ref document: CN

ENP Entry into the national phase

Ref document number: 2021921727

Country of ref document: EP

Effective date: 20230803

NENP Non-entry into the national phase

Ref country code: DE