WO2022088957A1 - 一种通信方法、电子设备及系统 - Google Patents
一种通信方法、电子设备及系统 Download PDFInfo
- Publication number
- WO2022088957A1 WO2022088957A1 PCT/CN2021/116018 CN2021116018W WO2022088957A1 WO 2022088957 A1 WO2022088957 A1 WO 2022088957A1 CN 2021116018 W CN2021116018 W CN 2021116018W WO 2022088957 A1 WO2022088957 A1 WO 2022088957A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- multimedia content
- time
- playback
- address
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04H—BROADCAST COMMUNICATION
- H04H20/00—Arrangements for broadcast or for distribution combined with broadcast
- H04H20/18—Arrangements for synchronising broadcast or distribution via plural systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/067—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
- G06K19/07—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
- G06K19/0723—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72442—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/02—Details of telephonic subscriber devices including a Bluetooth® interface
Definitions
- the present application relates to the field of communication technologies, and in particular, to a communication method, electronic device and system.
- Embodiments of the present application provide a communication method, electronic device, and system, which solve the problem of large delay when multimedia content is played across devices.
- the present application provides a communication method, the communication method is applied to a communication system, the communication system includes at least a first electronic device and a second electronic device, the method includes: the first electronic device plays multimedia content; An electronic device broadcasts and transmits the first synchronization information including at least a first address, the first address is the acquisition address of the multimedia content, so that the second electronic device can receive the first synchronization information; An electronic device establishes a short-range wireless communication connection with the second electronic device, and the second electronic device caches the multimedia content at least according to the first address; the first electronic device sends a control command to the second electronic device through the short-range wireless communication connection; the second electronic device The device plays the multimedia content according to the control instruction.
- the first electronic device before establishing a short-range wireless communication connection with the second electronic device, broadcasts and transmits the first synchronization information including at least the first address, so that the second electronic device receives the first synchronization information,
- the first electronic device establishes a short-range wireless communication connection with the second electronic device, and the second electronic device caches the multimedia content being played by the first electronic device according to the first address, so as to reduce the time when the multimedia content is switched and played between devices. The delay increases the user experience.
- the first synchronization information further includes a first playback progress and a first playback speed of the multimedia content; the second electronic device caches the data at least according to the first address in response to a preset operation.
- the multimedia content includes: the second electronic device caches the multimedia content according to the estimated playback progress and the first address; wherein the estimated playback progress is based on the first playback progress, the first A playback speed, a first time and a second time are determined; the first time is the time when the second electronic device receives the first synchronization information, and the second time is when the second electronic device detects The time at which the preset operation occurred.
- the second electronic device determines the estimated playback progress based on the first playback progress, the first playback speed, the first time, and the second time, starts to cache the multimedia content from the estimated playback progress, increases the cache speed, and further reduces the Delay in switching playback of multimedia content.
- the estimated playback progress is also determined based on a correction time; the second electronic device determines the estimated playback progress according to the sum of the first playback progress and the playback correction progress, wherein the The playback correction progress is determined based on the product of the first playback speed and the time difference value, the time difference value is determined based on the difference between the corrected second time and the first time, and the corrected second time is based on the second time
- the sum of the correction time and the correction time is determined based on the time required to complete the establishment of the short-range wireless communication connection, and/or the statistical analysis of the data.
- a correction time is added to the determination condition of the estimated playback progress, so that the estimated playback progress is more accurate.
- the control instruction further carries second synchronization information
- the second synchronization information includes a second address, a second playback progress, and a second playback speed, the second address, and the second playback progress.
- the second playback speed are respectively the acquisition address, playback progress and playback speed of the multimedia content played by the first electronic device at the third time
- the third time is the time when the short-range wireless communication connection is established; so
- the second electronic device plays the multimedia content according to the control instruction, including: the second electronic device compares the second address, the second playback speed, and the second playback progress with the first address, the first playback A comparison result is obtained from the speed, the estimated playback progress and the cached progress, and the multimedia content is cached or played according to the comparison result; wherein, the cached progress is the multimedia content that has been cached by the second electronic device at the third time progress of the content.
- the control instruction carries real playback information, so as to ensure the accuracy of switching and playback of multimedia content across devices.
- the caching or playing the multimedia content according to the comparison result includes: the second electronic device judging whether the comparison result is one or more of the following results: the first The address is different from the second address, and the second play progress is smaller than the estimated play progress and greater than the cache progress; if so, cache the multimedia content according to the second address and the second play progress , and if not, play the multimedia content according to the second playback progress and the second playback speed.
- the first electronic device includes an NFC module, an NFC tag is set on the second electronic device, and the NFC tag stores identification information of the second electronic device; the preset operation A read operation for the first electronic device to read the identification information of the second electronic device stored on the NFC tag through the NFC module; in response to a preset operation of the first electronic device and the second electronic device
- the device establishes a short-range wireless communication connection, and the second electronic device caches the multimedia content at least according to the first address in response to a preset operation, including: the first electronic device reads the identifier of the second electronic device information, establishes the short-range wireless communication connection with the second electronic device according to the identification information; the second electronic device detects that the NFC tag is read, caches the location according to the first address the multimedia content.
- the identification information includes at least one or more of a MAC address of the second electronic device, an IP address of the second electronic device, and an ID of the second electronic device.
- the first electronic device broadcasts and sends the first synchronization information, including: the first electronic device broadcasts and sends data packets at a first preset sending cycle, if the first address and/or If the playback parameters of the multimedia content change, the first electronic device broadcasts and sends data packets at a second preset sending cycle within a first preset time, wherein the second preset sending cycle is smaller than the first sending cycle.
- the data packet carries the first synchronization information
- the multimedia content playback parameter at least includes a playback speed.
- the data packet also carries a hash value of the ID of the electronic device that meets the requirements, and the hash value is used by the electronic device that receives the data packet to determine whether to parse the data. the data package.
- the first electronic device before the first electronic device broadcasts and sends the first synchronization information, it further includes: the first electronic device enables a near-field discovery function, and the second electronic device enables a near-field discoverable function , the first electronic device discovers a potential target device, wherein the potential target device is: an electronic device that has been bound or has the same account as the first electronic device and/or has been linked to the first electronic device before the second preset time An electronic device establishing the NFC connection and/or an electronic device having a preset configuration file.
- enabling the near field discovery function by the first electronic device includes: the first electronic device judging whether to establish the near field communication connection with other electronic devices within a third preset time, If so, enable the near field discovery function.
- the short-range wireless communication connection is a BLE connection
- the first electronic device establishes a short-range wireless communication connection with the second electronic device in response to a preset operation, including: the first electronic device The electronic device and the second electronic device respectively use the first preset BLE connection parameter and the second preset BLE connection parameter to establish a BLE connection; wherein the first preset BLE connection parameter includes at least a preset BLE scan period , one or more of preset connection scan duty cycle parameters, and the second preset BLE connection parameter includes a preset BLE broadcast transmission period.
- the present application provides a communication method.
- the communication method is used for a first electronic device, and the method includes: the first electronic device plays multimedia content; the first electronic device broadcasts and sends a first synchronization information, so that the second electronic device receives the first synchronization information; wherein, the first synchronization information includes at least a first address, and the first address is an acquisition address of the multimedia content; the first electronic device the device establishes a short-range wireless communication connection with the second electronic device in response to a preset operation; the preset operation is used to trigger the first electronic device to establish the short-range wireless communication connection with the second electronic device, and triggering the second electronic device to cache the multimedia content at least according to the first address; the first electronic device sends a control instruction to the second electronic device through the short-range wireless communication connection, wherein the The control instruction is used to control the second electronic device to play the multimedia content.
- the first synchronization information further includes a first playback progress and a first playback speed of the multimedia content; the first playback progress and the first playback speed are used to match the first time and The second time determines the estimated playback progress, and the estimated playback progress is used by the second electronic device to cache the multimedia content according to the estimated playback progress and the first address; wherein, the first time is The time when the second electronic device receives the first synchronization information, and the second time is the time when the second electronic device detects that the preset operation occurs.
- the estimated playback progress is also determined based on a correction time; the estimated playback progress is determined based on the sum of the first playback progress and the playback correction progress, wherein the playback correction progress is based on the The product of the first playback speed and the time difference value is determined, and the time difference value is determined based on the difference between the modified second time and the first time, and the modified second time is based on the sum of the second time and the modified time. It is determined that the correction time is determined based on the time required to complete the establishment of the short-range wireless communication connection, and/or statistical analysis of data.
- control instruction further carries second synchronization information
- the second synchronization information includes a second address, a second playback progress, and a second playback speed, the second address, and the second playback progress.
- the second playback speed are respectively the acquisition address, playback progress and playback speed of the multimedia content played by the first electronic device at the third time
- the third time is the time when the short-range wireless communication connection is established; so
- the second synchronization information is used by the second electronic device to compare the second address, the second playback speed, and the second playback progress with the first address, the first playback speed, and the estimated playback and cache progress.
- the multimedia content is cached or played according to the comparison result; wherein, the cache progress is the progress of the multimedia content that has been cached by the second electronic device at the third time.
- the caching or playing the multimedia content according to the comparison result includes: the second electronic device judging whether the comparison result is one or more of the following results: the first The address is different from the second address, the second playback progress is smaller than the estimated playback progress, or the second playback progress is greater than the cache progress; if so, according to the second address and the second playback progress The progress buffers the multimedia content, and if not, the multimedia content is played according to the second playback progress and the second playback speed.
- the first electronic device includes an NFC module, an NFC tag is set on the second electronic device, and the NFC tag stores identification information of the second electronic device; the first electronic device The device establishes a short-range wireless communication connection with the second electronic device in response to a preset operation, including: the preset operation is that the first electronic device reads the second electronic device stored on the NFC tag through an NFC module A reading operation of identification information of an electronic device; the first electronic device reads the identification information of the second electronic device, and establishes the short-range wireless communication connection with the second electronic device according to the identification information.
- the identification information includes at least one or more of the MAC address of the second electronic device, the IP address of the second electronic device, and the ID of the second electronic device .
- the first electronic device broadcasts and sends the first synchronization information, including: the first electronic device broadcasts and sends data packets at a first preset sending cycle, if the first address and/or If the playback parameters of the multimedia content change, the first electronic device broadcasts and sends data packets at a second preset sending cycle within a first preset time, wherein the second preset sending cycle is smaller than the first sending cycle.
- the data packet carries the first synchronization information
- the multimedia content playback parameter at least includes a playback speed.
- the data packet also carries a hash value of the ID of the electronic device that meets the requirements, and the hash value is used by the electronic device that receives the data packet to determine whether to parse the data. the data package.
- the method before the first electronic device broadcasts and sends the first synchronization information, the method further includes: the first electronic device enables a near-field discovery function, and the first electronic device discovers a potential target device, wherein the The potential target device is: an electronic device that has been bound to the first electronic device or has the same account and/or an electronic device that establishes the short-range wireless communication connection with the first electronic device before the second preset time and/or electronic devices with preset profiles.
- enabling the near field discovery function by the first electronic device includes: the first electronic device judging whether to establish the near field communication connection with other electronic devices within a third preset time, If so, enable the near field discovery function.
- the short-range wireless communication connection is a BLE connection; the first electronic device establishes a short-range wireless communication connection with the second electronic device in response to a preset operation, including: the first electronic device The electronic device uses preset BLE connection parameters to establish a BLE connection with the second electronic device; wherein, the preset BLE connection parameters include at least a preset BLE scan period and a preset connection scan duty cycle parameter. one or more.
- the present application provides a communication method, the communication method being used for a first electronic device, the method comprising: the second electronic device receiving first synchronization information, the first synchronization information being the first synchronization information.
- the first synchronization information includes at least a first address, and the first address is the acquisition address of the multimedia content; the multimedia content is the content played by the first electronic device; the second electronic device responds The multimedia content is cached at least according to the first address in a preset operation; the preset operation is used to trigger the first electronic device to establish the short-range wireless communication connection with the second electronic device, and trigger the
- the second electronic device caches the multimedia content at least according to the first address; the second electronic device plays the multimedia content according to a control instruction, and the control instruction is that the first electronic device uses the short-range wireless A communication connection is sent to the second electronic device.
- the first synchronization information further includes a first playback progress and a first playback speed of the multimedia content; the first playback progress and the first playback speed are used to match the first time and The second time determines the estimated playback progress, and the second electronic device caches the multimedia content according to the estimated playback progress and the first address; wherein, the first time is when the second electronic device receives The time of the first synchronization information, and the second time is the time when the second electronic device detects that the preset operation occurs.
- the estimated playback progress is also determined based on a correction time; the estimated playback progress is determined based on the sum of the first playback progress and the playback correction progress, wherein the playback correction progress is based on the The product of the first playback speed and the time difference value is determined, and the time difference value is determined based on the difference between the modified second time and the first time, and the modified second time is based on the sum of the second time and the modified time. It is determined that the correction time is determined based on the time required to complete the establishment of the short-range wireless communication connection, and/or statistical analysis of data.
- control instruction further carries second synchronization information
- the second synchronization information includes a second address, a second playback progress, and a second playback speed, the second address, and the second playback progress.
- the second playback speed are respectively the acquisition address, playback progress and playback speed of the multimedia content played by the first electronic device at the third time
- the third time is the time when the short-range wireless communication connection is established; so
- the second electronic device compares the second address, the second playback speed, the second playback progress and the first address, the first playback speed, the estimated playback and the cache progress to obtain a comparison result, and caches the results according to the comparison result. or play the multimedia content; wherein, the cache progress is the progress of the multimedia content that has been cached by the second electronic device at the third time.
- the caching or playing the multimedia content according to the comparison result includes: the second electronic device judging whether the comparison result is one or more of the following results: the first The address is different from the second address, the second playback progress is smaller than the estimated playback progress, or the second playback progress is greater than the cache progress; if so, according to the second address and the second playback progress The progress buffers the multimedia content, and if not, the multimedia content is played according to the second playback progress and the second playback speed.
- the first electronic device includes an NFC module, an NFC tag is set on the second electronic device, and the NFC tag stores identification information of the second electronic device; the second electronic device The device caches the multimedia content at least according to the first address in response to a preset operation, including: the preset operation is that the first electronic device reads the second electronic device stored on the NFC tag through an NFC module The operation of reading the identification information of the device; the second electronic device detects the operation that the NFC tag is read, and caches the multimedia content according to the first address.
- the identification information includes at least one or more of the MAC address of the second electronic device, the IP address of the second electronic device, and the ID of the second electronic device .
- the short-range wireless communication connection is a BLE connection
- the first electronic device establishes a short-range wireless communication connection with the second electronic device in response to a preset operation, including:
- the second electronic device uses preset BLE connection parameters to establish a BLE connection respectively; wherein the preset BLE connection parameters include a preset BLE broadcast sending cycle.
- the present application provides an electronic device, including a memory and a processor, wherein executable code is stored in the memory, and the processor executes the executable code to implement the second or third aspect of the present application provided method.
- the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed in a computer, the computer is made to execute the method provided in the second aspect or the third aspect of the present application.
- the present application provides a computer program or computer program product, wherein the computer program or computer program product includes instructions that, when executed, implement the method provided in the second aspect or the third aspect of the present application.
- FIG. 1 is a schematic diagram of the architecture of a communication system provided by an embodiment of the present application.
- FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of the present application.
- FIG. 3 is a flowchart of a communication method in the scenario shown in FIG. 2 provided by an embodiment of the present application;
- FIG. 4 is a schematic diagram of an actual playback progress provided by an embodiment of the present application that does not fall into a buffered multimedia content segment;
- FIG. 5 is a schematic block diagram of an electronic device according to an embodiment of the present application.
- FIG. 6 is a schematic block diagram of an electronic device according to an embodiment of the present application.
- the communication system 100 includes N electronic devices, such as electronic device 1 and electronic device 2 """ electronic device N, where N is a positive integer greater than 1, and the N electronic devices communicate through a communication network connect.
- the above-mentioned communication network may be a wired communication network or a wireless communication network, may be a local area network (local area networks, LAN), or may be a wide area network (wide area networks, WAN), such as the Internet.
- the above-mentioned communication network can be implemented using any known network communication protocol, and the above-mentioned communication protocol can be various wired or wireless communication protocols, such as Ethernet, universal serial bus (USB), Firewire (Firewire), global Mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division) multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), Bluetooth, wireless fidelity (wireless fidelity, Wi-Fi), near Near field communication (NFC), voice over Internet protocol (VoIP), communication protocols that support network s
- the electronic device 1 is connected in communication with the electronic device 2.
- the electronic device 1 can switch the multimedia content played by the electronic device 1 to the electronic device 2 for playback.
- the electronic device 1 sends a control instruction to the electronic device 2 to control the playback of the multimedia content.
- the way in which the electronic device 1 and the electronic device 2 establish a communication connection can be a short-range communication connection.
- the electronic device 1 obtains the identification information of the electronic device 2
- the electronic device 1 establishes a communication connection with the electronic device 2
- the electronic device 2 Play or play the multimedia content to be played on the electronic device 2 to realize cross-device playback of "one-touch switching playback device" of media data.
- both the electronic device 1 and the electronic device 2 have short-range communication functions, such as near field communication (NFC), Bluetooth, ZigBee (ZigBee), wireless fidelity (Wi-Fi) , Ultra Wideband (UWB) or Infrared Data Association (IrDA) network and other short-range communication functions.
- the electronic device 1 can be a smart phone, a tablet computer, a personal digital assistant (PDA), a wearable electronic device and other electronic devices; the electronic device 2 can be a smart speaker, a smart TV, a notebook computer, a car playback device, etc. functional device.
- the multimedia content may include text content, picture content, video content, audio content, and the like.
- the following describes the cross-device playback method of media data provided by the embodiment of the present application by taking the electronic device 1 as a smart phone, the electronic device 2 as a smart speaker, and the media data as audio data as an example.
- FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of the present application.
- the executive body includes a smart phone 31 and a smart speaker 32, and both the smart phone 31 and the smart speaker have NFC and Bluetooth connection functions.
- the smart phone 31 plays the song "Song 1”
- the smart phone 31 reads the identification information (eg MAC address information) of the smart speaker 32 through NFC, and the smart phone 31 establishes a Bluetooth connection with the smart speaker 32 according to the identification information, and plays the The song "Song 1" is switched to the smart speaker 32 for playback, realizing the function of "one-touch sound transmission".
- the identification information eg MAC address information
- FIG. 3 is a flowchart of a communication method in the scenario shown in FIG. 2 provided by an embodiment of the present application.
- the method includes step S301.
- the smart speaker enables the near-field device discovery function, for example, the Bluetooth connection function is turned on, and the device discovery option is turned on.
- This step can be manually turned on by the user or the smart speaker is powered on. That is, the implementation is automatically turned on.
- step S302 the smart phone detects whether the "specific condition 1" is met, and if so, the near-field device discovery function is enabled.
- the above-mentioned "Specific Condition 1" can be that the smartphone currently has multimedia content playing and the device has a local configuration file or record of "One Touch Transsion” and has used “One Touch Transsion” recently (for example, within 10 days).
- the smartphone satisfies "Specific Condition 1”
- the near-field device discovery function is enabled, for example, the Bluetooth connection function is enabled to scan for nearby devices that can be connected.
- the near-field device discovery function can be automatically turned on without the user's manual operation, the user's operation frequency is reduced, and the user experience is improved.
- step S302 can also be replaced with the smart phone enabling the near-field device discovery function according to the user's instruction.
- the user manually turns on the near-field device discovery function of the smartphone, and the user chooses whether to enable the near-field device discovery function of the smartphone according to his own needs, so as to avoid enabling the near-field device discovery function of the smartphone when it is not necessary, and reduce the performance of the smartphone. consumption.
- step S303 the smartphone discovers a near-field device, and the near-field device satisfies the "specific condition 2" at the same time, then step S303a is executed.
- the meaning of the smartphone discovering near-field devices is that the smartphone scans and discovers nearby devices that can be connected by Bluetooth, that is, searches and discovers electronic devices that can be connected to within the Bluetooth effective connection range of the Bluetooth smartphone. Meanwhile, in order to save the energy consumption of the smart phone, "specific condition 2" is set in the smart phone, and only when the specific condition 2 is satisfied, the first synchronization information is broadcast and sent.
- the "specific condition" can be that there is a potential target device in the near-field devices discovered by the smartphone and/or the smartphone and the potential target device have recently (for example, within 10 days) used the "one-touch voice transmission" function, wherein the potential target device is A smart speaker with NFC and Bluetooth functions that has been bound to a smartphone, or a smart speaker with NFC and Bluetooth functions that has the same account as the smartphone (for example, the same Huawei account).
- the smart phone still sends the media data synchronization information to the smart speaker side, which increases the energy consumption of the smart phone.
- the meaning of the potential target device is: a smart speaker that can communicate and connect with a smartphone to realize the function of "one-touch sound transmission", but has not been identified as a smart speaker of the target device.
- the smart phone broadcasts and sends multimedia content synchronization information.
- the multimedia content synchronization information (that is, the first synchronization information) at least includes: a first address, a first playback speed, and a first playback progress, where the first address, the first playback speed, and the first playback progress are respectively Get the address (for example, the URI (Uniform Resource Identifier) of the multimedia content data or the URL (Uniform Resource Locator) of the multimedia content data), the playback progress of the multimedia content (for example, the time when the multimedia content is played) stamp), the playback speed of the multimedia content (eg, the playback frame rate of the media content).
- the multimedia content synchronization information that is, the first synchronization information
- the multimedia content synchronization information at least includes: a first address, a first playback speed, and a first playback progress, where the first address, the first playback speed, and the first playback progress are respectively Get the address (for example, the URI (Uniform Resource Identifier) of
- the smartphone broadcasts and sends a broadcast data packet including the above-mentioned multimedia content synchronization information
- the broadcast period is a preset first threshold broadcast period to send the broadcast data packet
- the first threshold may be 1024ms.
- the smartphone may broadcast and send data packets, such as sending data packets through BLE broadcast or sending data packets through local area network, broadcast, etc., which are not limited in this application.
- the broadcast data packet further includes a hash value of the ID of the potential target device, restricting that only the potential target device can process and parse the broadcast data packet to obtain multimedia content synchronization information, and limit the broadcast influence range.
- Step S304 the smart speaker updates the local multimedia content information according to the received first synchronization information.
- the smart speaker receives the broadcast data packet, parses the broadcast data packet to obtain multimedia content synchronization information, and updates the local multimedia content information based on the first synchronization information.
- the smart speaker receives the broadcast data packet, and verifies whether the hash value of the broadcast data packet is the same as the hash value of the ID of the smart speaker. If so, parse the broadcast data packet to obtain the first synchronization information, and update it according to the first synchronization information Locally saved multimedia content information.
- Step S305 the smartphone determines whether the acquisition address of the multimedia content and/or the playback speed of the multimedia content has been updated, and if so, sends a broadcast data packet containing the synchronization information of the multimedia content at a preset sending period within a preset time.
- the broadcast data packet containing the synchronization information of the multimedia content is sent in the transmission period.
- the smartphone sends the broadcast data packet containing the synchronization information of the multimedia content at the preset transmission period within 20 seconds.
- the preset transmission period here is 64ms
- the preset transmission period here is smaller than the original broadcast transmission period of the smartphone, for example, the original broadcast transmission period is 128ms.
- Step S306 the smart phone acquires the identification information of the smart speaker, the smart phone establishes a Bluetooth connection with the smart speaker, and simultaneously executes the smart speaker in parallel to start caching the multimedia content according to the first synchronization information.
- the smart speaker is provided with an NFC tag (also called an NFC patch), and the NFC tag stores at least the identification information of the smart speaker, and the identification information can be the MAC (media access control, media access control) address of the smart speaker. Or information such as the device name or IP address that can uniquely identify the smart speaker. Define the location of the smart speaker's NFC tag as the NFC sensing area.
- the smartphone when the user wants to switch the song being played on the smartphone to the smart speaker, he can move the smartphone close to/touch the NFC sensing area of the smart speaker.
- the smartphone reads the identification information of the smart speaker from the NFC tag by transmitting a near-field signal, such as the MAC address of the smart speaker.
- the smart phone can determine that the target device is a smart speaker by reading the MAC address of the smart speaker, then the smart phone establishes a Bluetooth connection with the smart speaker according to the identification information of the smart speaker, and converts the song being played on the smart phone. Cast to smart speakers for playback.
- the smartphone has turned on the NFC function.
- the user can manually turn on the NFC function or set it to automatically turn on the NFC function when playing a song.
- the smart speaker When the smart speaker detects that the NFC tag is read, it starts to cache the media data according to the first synchronization information, and realizes the parallel execution of Bluetooth connection and data transmission. Compared with the existing cross-device playback method of media data, the Bluetooth connection and Then, the serial solution of media data transmission is carried out, which greatly reduces the delay of media data playback across devices, realizes seamless switching of media data between smartphones and smart speakers, and improves user experience.
- step S306 includes S306.a.
- the smart phone starts a Bluetooth connection scan, and requests a Bluetooth connection with the smart speaker.
- S306.b the smart speaker executes in parallel to open the Bluetooth connection scan and establishes a connection with the server storing the multimedia content data according to the URI of the multimedia content data in the first synchronization information, and then according to the playback progress of the multimedia content and the playback of the multimedia content
- the speed gets the estimated playback progress when the smartphone and the smart speaker establish a Bluetooth connection and switch the multimedia content to the Bluetooth speaker for playback, and then the smart speaker starts to cache the media data from the estimated playback progress node.
- T delta fix represents the time difference correction value, which can be obtained according to the time required to establish a Bluetooth connection between the smartphone and the smart speaker.
- the correction value T delta fix is -400ms.
- the correction value is obtained through statistical analysis of a large amount of data.
- T current can be replaced with the time on the smartphone when the smartphone reads the identification information of the smart speaker
- T last update can be replaced with the time when the smartphone reads the identification information of the smart speaker, The last time on the smartphone that the multimedia content synchronization message was sent.
- the smart speaker when it actually caches multimedia content, it can preset the playback progress in advance based on the estimated playback progress and then cache it. For example, if the preset playback progress is 1s and the estimated playback progress is 25s, then The smart speaker starts to cache multimedia content from 24s to make the multimedia content perceived by the user play more coherently and increase the user experience.
- the smart speaker sets optimized Bluetooth connection parameters, such as increasing the scanning frequency of the Bluetooth connection, so that the smart phone and the smart speaker can establish a Bluetooth connection faster.
- the smart phone when the smart phone obtains the identification information of the smart speaker, the smart phone sets optimized Bluetooth connection parameters, such as increasing the connection scan frequency and/or increasing the connection scan duty cycle parameter, etc., to further speed up the Bluetooth connection between the smart phone and the smart speaker. connection speed.
- swipe reads the identification information of the Bluetooth speaker through NFC
- triggering method for establishing a Bluetooth connection between the smartphone and the smart speaker
- other triggering methods can also be used.
- the button for the Bluetooth connection is triggered or a voice command to establish a Bluetooth connection with the smart speaker is detected, etc.
- Step S307 the smart phone sends a control command to the smart speaker through Bluetooth to control the smart speaker to play media data.
- step S307 further includes step S307.a, the smartphone stops playing the multimedia content. That is, when the smartphone completes the Bluetooth connection with the smart speaker, it stops playing the multimedia content, and switches the multimedia content to the smart speaker for playback.
- Step S308 the smart speaker starts to play the multimedia content according to the estimated playback progress, and plays the multimedia content according to the control instruction sent by the received smart phone.
- step S307 further includes the smart phone sending the actual playback progress of the multimedia content to the smart speaker, where the actual playback progress is the playback progress when the smart phone stops playing the multimedia content.
- the smart phone when the smartphone completes the Bluetooth connection with the smart speaker, it stops playing multimedia content, and the time on the smart speaker when the smartphone completes the Bluetooth connection with the smart speaker is defined as the third time, and the actual playback progress is the third time.
- the playback progress of the time multimedia content, and the actual playback progress is the second playback progress.
- step S307.1 The smart speaker compares the actual playback progress, the estimated playback progress and the cache progress (the cache progress is the progress of the multimedia content cached by the smart speaker at the third time) to obtain a comparison result, and determine whether the comparison result is the actual playback. If the progress is less than the estimated play progress or the actual play progress is greater than the cache progress, if so, go to step S308.2, if not, go to step S308.1, S308.1, the smart speaker re-caches the multimedia content according to the actual play progress; S308.2, according to Actual playback progress to play multimedia content. As shown in FIG. 4 , that is, the actual playback progress does not fall within the buffered multimedia content segment.
- the progress can be represented by a time stamp. For example, if a song is played for 45 seconds, the playback progress can be represented as 45 seconds. Cache to 50 seconds, the cache progress can be expressed as 50 seconds. If the actual playback progress does not fall within the cached multimedia content segment, the actual playback progress is less than the estimated playback progress or the actual playback progress is greater than the cached progress. For example, if the estimated playback progress is 25 seconds and the cache progress is 45 seconds, the cached multimedia content segment is 35 seconds to 55 seconds. If the actual playback progress is less than 35 seconds or greater than 55 seconds, the smart speaker needs to The actual playback progress caches the multimedia content.
- Playing media data according to the actual playback progress means that the media data is played from the actual playback time. For example, if the estimated playback progress is 43 seconds, the smart speaker has cached the song from 43 seconds, and the time playback progress is 45 seconds, then the smart speaker The speaker starts playing the song at 45 seconds.
- step S307 further includes sending the smart phone to the smart speaker the address for obtaining the actual multimedia content (for example, the URI of the actual multimedia content data, or the URL of the actual multimedia content data).
- the smart speaker compares the received actual multimedia content data acquisition address to determine whether the acquisition address of the multimedia content in the first synchronization information received for the last time is consistent when the smart speaker detects that the NFC tag has been read , and cache/play multimedia content according to the comparison result.
- the acquisition address of the actual multimedia content is the same as the acquisition address of the multimedia content in the multimedia content synchronization information received last time when the smart speaker detects that the NFC tag is read, then the multimedia content is played according to the actual playback progress; the actual multimedia content When the smart speaker detects that the NFC tag has been read, the acquisition address of the multimedia content in the last received multimedia content synchronization information is inconsistent, and the multimedia content is cached according to the acquisition address of the actual multimedia content and the actual playback progress. It should be explained that the actual acquisition address of the multimedia content is the acquisition address of the multimedia content when the smart phone and the smart speaker successfully establish a Bluetooth connection.
- step S307 further includes the smart phone sending the actual playback speed of the multimedia content to the smart speaker.
- step S307.3 is included.
- the smart speaker plays the media data according to the playback speed of the actual multimedia content. It can be understood that the actual playback speed of the multimedia content is the playback speed of the multimedia content when the smart phone and the smart speaker successfully establish a Bluetooth connection.
- the actual playback progress of the multimedia content, the address for obtaining the actual multimedia content, and the playback speed of the actual multimedia content are sent It can also be carried in the control command and sent to the smart speaker.
- step S309 is further included: the smart phone sends the multimedia content information to be played to the smart speaker.
- the smart speaker plays the current multimedia content and caches the multimedia content to be played according to the received multimedia content information to be played.
- the song being played is "Song 1”
- the next song in the playlist is "Song 2”
- the loop mode is list loop
- the next song to be played is judged to be "Song 2”
- the smart speaker While playing "Song 1"
- the next playing song “Song 2” is cached.
- Step S309 is performed after step S308 or step S308.1.
- step S311 is further included: the smart phone caches the multimedia content according to the playlist and the playback loop mode.
- Step S312 the smart phone approaches/touches the smart speaker again to read the identification information of the smart speaker, then disconnects the connection with the smart speaker, and the smart phone obtains the playback progress of the multimedia content when the connection is disconnected. Playback progress Play multimedia content.
- step S313 the smart speaker detects that the smart phone is approached/touched again to read the identification information of the smart speaker, then disconnects the connection with the smart phone, stops playing the multimedia content, and stops caching the multimedia content.
- Step S311 is performed after step S308 or step S308.1.
- step S314 is further included: the smart phone obtains the real-time playback progress of the multimedia content on the smart speaker.
- Step S315 the smart phone approaches/touches the smart speaker again to read the identification information of the smart speaker, then disconnects the connection with the smart speaker, the smart phone obtains the real-time playback progress when the connection is disconnected, caches the multimedia content, and the smart phone plays the multimedia content .
- Step S316 the smart speaker detects that the smart phone approaches/touches again to read the identification information of the smart speaker, then disconnects the connection with the smart phone, stops playing the multimedia content, and stops caching the multimedia content.
- Step S314 is performed after step S308 or step S308.1.
- step S317 is further included: the smart phone approaches/touches the smart speaker again to read the identification information of the smart speaker, then disconnects the connection with the smart speaker, and the smart phone obtains the playback of the multimedia content when the connection is disconnected progress, the smart phone caches the multimedia content according to the playback progress of the multimedia content, and the smart phone plays the multimedia content.
- step S3108 the smart speaker detects that the smart phone is approached/touched again to read the identification information of the smart speaker, then disconnects the connection with the smart speaker, stops playing the multimedia content, and stops caching the multimedia content.
- Step S317 is performed after step S308 or step S308.1.
- step S306 the "simultaneous parallel execution of the smart speakers to start caching the multimedia content according to the multimedia content synchronization information" may be performed before the smart phone reads the identification information of the smart speakers. That is, the smart speaker starts to cache multimedia content data according to the multimedia content synchronization information before detecting that the NFC tag is read.
- the smart speaker detects that the NFC tag is read, it only needs to perform the Bluetooth connection process between the smartphone and the smart speaker. That is, after the Bluetooth connection is completed, the smart speaker can obtain the playback progress of the multimedia content and play the cached multimedia content data according to the playback progress, thereby further reducing the delay.
- step S305.1 is further included after step S305.
- the smart phone and/smart speaker obtain the network status of the communication network where they are located, and execute step S306.1 or step S306.2 according to the network status judgment.
- Step S306.1 is: the smart phone obtains the identification information of the smart speaker, the smart phone establishes a Bluetooth connection with the smart speaker, and concurrently executes the smart speaker to start caching the multimedia content according to the multimedia content synchronization information.
- Step S306.2 is: starting to cache the multimedia content according to the media data synchronization information, acquiring the identification information of the smart speaker by the smart phone, and establishing a Bluetooth connection between the smart phone and the smart speaker.
- step S306.1 and step S306.2 execute step S307 to step S308, or step S307 to step S308.1, or step S307 to step S310, or step S307 to step S313, or step S307 to step S316, or step S307 Go to step S318.
- the network state includes the network speed
- judging and executing step S306.1 or step S306.2 according to the network state is specifically: judging whether the network speed is greater than a threshold (for example, 1M/s), if so, execute step S306.1, if not Step S306.2 is executed. That is, when the network status is good, the "smart speaker starts to cache the data of multimedia content according to the multimedia content synchronization information" can be carried out after the smartphone obtains the identification information of the smart speaker.
- a threshold for example, 1M/s
- the content synchronization information starts to cache the data of multimedia content is carried out before the smart phone obtains the identification information of the smart speaker, to ensure that the data of the smart speaker cache multimedia content is completed before the Bluetooth connection between the smart speaker and the smart phone is completed, reducing the cross-device playback of media data. Delay.
- the above-mentioned Bluetooth is BLE (Bluetooth Low Energy, Bluetooth Low Energy), that is, both the smartphone and the smart speaker support BLE technology, and the BLE connection rate It is 300ms or faster, while the traditional Bluetooth connection rate is 3s, using BLE connection to achieve faster connection speed and lower energy consumption.
- BLE Bluetooth Low Energy, Bluetooth Low Energy
- the present application provides a computer-readable storage medium on which a computer program is stored.
- the computer program is executed in a computer, the computer is made to execute the communication method provided above.
- the present application provides a computer program or computer program product, wherein the computer program or computer program product includes instructions that, when executed, implement the communication method provided above.
- FIG. 5 is a schematic block diagram of an electronic device according to an embodiment of the present application.
- the electronic device 500 includes a processor 501 , a memory 502 , an NFC module 503 and a BLE module 504 .
- the memory is used to store computer-executed instructions; when the electronic device 500 is running, the processor 501 executes the computer-executed instructions stored in the memory 502, so that the electronic device 500 executes the instructions in FIG. 3 . Method steps on the smartphone side.
- the NFC module 503 is used to read the NFC tag to obtain the content on the NFC tag (for example, read the NFC tag on the smart speaker to obtain the identification information of the smart speaker);
- the BLE module 504 is used to broadcast and send information (for example, broadcast Send multimedia content synchronization information) and establish a Bluetooth connection with the electronic device 2 (such as a smart speaker); so as to send a control command to the electronic device 2 through the Bluetooth connection.
- the electronic device 500 further includes a communication bus 505 , wherein the processor 501 can be connected to the memory 502 , the NFC module 503 and the BLE module 504 through the communication bus 505 , so that the computer-executable instructions stored according to the memory 502 can be implemented. , to control the FC module 503 and the BLE module 504 accordingly.
- FIG. 6 is a schematic block diagram of an electronic device according to an embodiment of the present application.
- the electronic device 600 includes a processor 601 , a memory 602 , an NFC tag 603 and a BLE module 604 .
- the memory is used to store computer-executed instructions; when the electronic device 600 is running, the processor 601 executes the computer-executed instructions stored in the memory 602, so that the electronic device 600 executes the instructions in FIG. 3 .
- the method steps shown on the smart speaker side the NFC tag 603 is used to store the identification information of the electronic device and can be detected by the electronic device 600 when read; the BLE module 604 is used to establish a BLE connection with the electronic device 1 to receive control commands sent by the electronic device.
- the electronic device 600 further includes a communication bus 605 , wherein the processor 601 can be connected to the memory 602 , the NFC tag 603 and the BLE module 604 through the communication bus 605 , so that the computer-executable instructions stored according to the memory 602 can be implemented. , to control the NFC tag 603 and the BLE module 604 accordingly.
- processor in the embodiments of the present application may be a central processing unit (central processing unit, CPU), and may also be other general-purpose processors, digital signal processors (digital signal processors, DSP), application-specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
- CPU central processing unit
- DSP digital signal processors
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- a general-purpose processor may be a microprocessor or any conventional processor.
- the method steps in the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions.
- Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), registers, hard disks, removable hard disks, CD-ROMs or known in the art in any other form of storage medium.
- An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium.
- the storage medium can also be an integral part of the processor.
- the processor and storage medium may reside in an ASIC.
- a software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
- RAM random access memory
- ROM read only memory
- electrically programmable ROM electrically erasable programmable ROM
- registers hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
Claims (27)
- 一种通信方法,其特征在于,所述通信方法应用于通信系统,所述通信系统至少包括第一电子设备和第二电子设备,所述方法包括:所述第一电子设备播放多媒体内容;所述第一电子设备广播发送第一同步信息,以使所述第二电子设备接收到所述第一同步信息;其中,所述第一同步信息至少包括第一地址,所述第一地址为所述多媒体内容的获取地址;响应于预设操作所述第一电子设备与所述第二电子设备建立近距离无线通信连接,所述第二电子设备响应于预设操作至少根据所述第一地址缓存所述多媒体内容;所述第一电子设备通过所述近距离无线通信连接向所述第二电子设备发送控制指令;所述第二电子设备根据所述控制指令播放所述多媒体内容。
- 根据权利要求1所述的方法,其特征在于,所述第一同步信息还包括所述多媒体内容的第一播放进度和第一播放速度;所述第二电子设备响应于预设操作至少根据所述第一地址缓存所述多媒体内容,包括:所述第二电子设备根据所述预估播放进度和所述第一地址缓存所述多媒体内容;其中,所述预估播放进度基于所述第一播放进度、所述第一播放速度、第一时间和第二时间确定;所述第一时间为所述第二电子设备接收到所述第一同步信息的时间,所述第二时间为所述第二电子设备检测到所述预设操作发生的时间。
- 根据权利要求2所述的方法,其特征在于,所述预估播放进度还基于修正时间确定;所述第二电子设备根据所述第一播放进度与播放修正进度的和确定所述预估播放进度,其中,所述播放修正进度基于所述第一播放速度与时间差值的乘积确定,所述时间差值基于修正第二时间和所述第一时间的差确定,所述修正第二时间基于所述第二时间和修正时间的和确定,所述修正时间基于所述近距离无线通信连接完成建立所需的时间,和/或数据统计分析确定。
- 根据权利要求2或3所述的方法,其特征在于,所述控制指令还携带第二同步信息,所述第二同步信息包括第二地址、第二播放进度、第二播放速度,所述第二地址、第二播放进度、第二播放速度分别为在第三时间所述第一电子设备播放的多媒体内容的获取地址、播放进度和播放速度,所述第三时间为所述近距离无线通信连接完成建立的时间;所述第二电子设备根据所述控制指令播放所述多媒体内容,包括:所述第二电子设备比较所述第二地址、第二播放速度、第二播放进度和所述第一地址、第一播放速度、预估播放进度与缓存进度得出比较结果,根据所述比较结果缓存或播放所述多媒体内容;其中,所述缓存进度为所述第二电子设备在所述第三时间已缓存的多媒体内容的进度。
- 根据权利要求4所述的方法,其特征在于,所述根据所述比较结果缓存或播放所述多媒体内容,包括:所述第二电子设备判断比较结果是否为下述结果中的一个或多个:所述第一地址和所述第二地址不同、所述第二播放进度小于所述预估播放进度或所述第二播放进度大于所述缓存进度;若是,则根据所述第二地址和所述第二播放进度缓存所述多媒体内容,若否,则根据所述第二播放进度和所述第二播放速度播放所述多媒体内容。
- 根据权利要求1-5任一项所述的方法,其特征在于,所述第一电子设备包括NFC模块,所述第二电子设备上设置NFC标签,所述NFC标签上存储所述第二电子设备的标识信息;所述预设操作为所述第一电子设备通过NFC模块读取所述NFC标签上存储的所述第二电子设备的标识信息的读取操作;响应于预设操作所述第一电子设备与所述第二电子设备建立近距离无线通信连接,所述第二电子设备响应于预设操作至少根据所述第一地址缓存所述多媒体内容,包括:所述第一电子设备读取所述第二电子设备的标识信息,根据所述标识信息与所述第二电子设备建立所述近距离无线通信连接;所述第二电子设备检测到所述NFC标签被读取的操作,则根据所述第一地址缓存所述多媒体内容。
- 根据权利要求6所述的方法,其特征在于,所述标识信息至少包括:所述第二电子设备的MAC地址、所述第二电子设备的IP地址、所述第二电子设备的ID中的一种或多种。
- 根据权利要求1-7任一项所述的方法,其特征在于,所述第一电子设备广播发送第一同步信息,包括:所述第一电子设备以第一预设发送周期广播发送数据包,若所述第一地址和/或所述多媒体内容播放参数发生变化,则所述第一电子设备在第一预设时间内以第二预设发送周期广播发送数据包,其中,所述第二预设发送周期小于所述第一预设发送周期,所述数据包内携带所述第一同步信息,所述多媒体内容播放参数至少包括播放速度。
- 根据权利要求8所述的方法,其特征在于,所述数据包中还携带有所述满足要求的电子设备的ID的哈希值,所述哈希值用于接收到所述数据包的电子设备判断是否解析所述数据包。
- 根据权利要求1-9任一项所述的方法,其特征在于,所述第一电子设备广播发送第一同步信息,之前还包括:所述第一电子设备开启近场发现功能,所述第二电子设备开启近场可被发现功能,所述第一电子设备发现潜在目标设备,其中所述潜在目标设备为:与所述第一电子设备已绑定或同账号的电子设备和/或在第二预设时间之前与所述第一电子设备建立所述近距离无线通信连接的电子设备和/或具有预设配置文件的电子设备。
- 根据权利要求11所述的方法,其特征在于,所述第一电子设备开启近场发现功能,包括:所述第一电子设备判断在第三预设时间内是否与其他电子设备建立所述近距离无线通信连接,若是则开启所述近场发现功能。
- 根据权利要求1-11任一项所述的方法,其特征在于,所述近距离无线通信连接为BLE连接;所述第一电子设备响应于预设操作与所述第二电子设备建立近距离无线通信连接,包括:所述第一电子设备和第二电子设备分别采用第一预设的BLE连接参数和第二预设的BLE连接参数建立BLE连接;其中,所述第一预设的BLE连接参数至少包括预设的BLE扫描周期、预设的连接扫描占空比参数中的一种或多种,第二预设的BLE连接参数包括预设的BLE广播发送周期。
- 一种通信方法,其特征在于,所述通信方法用于第一电子设备,所述方法包括:所述第一电子设备播放多媒体内容;所述第一电子设备广播发送第一同步信息,以使第二电子设备接收到所述第一同步信息;其中,所述第一同步信息至少包括第一地址,所述第一地址为所述多媒体内容的获取地址;所述第一电子设备响应于预设操作与所述第二电子设备建立近距离无线通信连接;所述预设操作用于触发所述第一电子设备与所述第二电子设备建立所述近距离无线通信连接,和触发所述第二电子设备至少根据所述第一地址缓存所述多媒体内容;所述第一电子设备通过所述近距离无线通信连接向所述第二电子设备发送控制指令,其中,所述控制指令用于控制所述第二电子设备播放所述多媒体内容。
- 根据权利要求13所述的方法,其特征在于,所述第一同步信息还包括所述多媒体内容的第一播放进度和第一播放速度;所述第一播放进度、所述第一播放速度用于与第一时间和第二时间确定预估播放进度,所述预估播放进度用于所述第二电子设备根据所述预估播放进度和所述第一地址缓存所述多媒体内容;其中,所述第一时间为所述第二电子设备接收到所述第一同步信息的时间,所述第二时间为所述第二电子设备检测到所述预设操作发生的时间。
- 根据权利要求14所述的方法,其特征在于,所述预估播放进度还基于修正时间确定;所述预估播放进度基于所述第一播放进度与播放修正进度的和确定,其中,所述播放修正进度基于所述第一播放速度与时间差值的乘积确定,所述时间差值基于修正第二时间和所述第一时间的差确定,所述修正第二时间基于所述第二时间和修正时间的和确定,所述修正时间基于所述近距离无线通信连接完成建立所需的时间,和/或数据统计分析确定。
- 根据权利要求14或15所述的方法,其特征在于,所述控制指令还携带第二同步信息,所述第二同步信息包括第二地址、第二播放进度、第二播放速度,所述第二地址、第二播放进度、第二播放速度分别为在第三时间所述第一电子设备播放的多媒体内容的获取地址、播放进度和播放速度,所述第三时间为所述近距离无线通信连接完成建立的时间;所述第二同步信息用于所述第二电子设备比较所述第二地址、第二播放速度、第二播放进度和所述第一地址、第一播放速度、预估播放与缓存进度得出比较结果,根据所述比较结果缓存或播放所述多媒体内容;其中,所述缓存进度为所述第二电子设备在所述第三时间已缓存的多媒体内容的进度。
- 根据权利要求16所述的方法,其特征在于,所述根据所述比较结果缓存或播放所述多媒体内容,包括:所述第二电子设备判断比较结果是否为下述结果中的一个或多个:所述第一地址和所述第二地址不同、所述第二播放进度小于所述预估播放进度或所述第二播放进度大于所述缓存进度;若是,则根据所述第二地址和所述第二播放进度缓存所述多媒体内容,若否,则根据所述第二播放进度和所述第二播放速度播放所述多媒体内容。
- 根据权利要求13-17任一项所述的方法,其特征在于,所述第一电子设备包括NFC模块,所述第二电子设备上设置NFC标签,所述NFC标签上存储所述第二电子设备的标识信息;所述第一电子设备响应于预设操作与所述第二电子设备建立近距离无线通信连接,包括:所述预设操作为所述第一电子设备通过NFC模块读取所述NFC标签上存储的所述第二电子设备的标识信息的读取操作;所述第一电子设备读取所述第二电子设备的标识信息,根据所述标识信息与所述第二电子设备建立所述近距离无线通信连接。
- 根据权利要求18所述的方法,其特征在于,所述标识信息至少包括:所述第二电子设备的MAC地址、所述第二电子设备的IP地址、所述第二电子设备的ID中的一种或多种。
- 根据权利要求13-19任一项所述的方法,其特征在于,所述第一电子设备广播发送第一同步信息,包括:所述第一电子设备以第一预设发送周期广播发送数据包,若所述第一地址和/或所述多媒体内容播放参数发生变化,则所述第一电子设备在第一预设时间内以第二预设发送周期广播发送数据包,其中,所述第二预设发送周期小于所述第一预设发送周期,所述数据包内携带所述第一同步信息,所述多媒体内容播放参数至少包括播放速度。
- 根据权利要求19所述的方法,其特征在于,所述数据包中还携带有所述满足要求的电子设备的ID的哈希值,所述哈希值用于接收到所述数据包的电子设备判断是否解析所述数据包。
- 根据权利要求13-21任一项所述的方法,其特征在于,所述第一电子设备广播发送第一同步信息,之前还包括:所述第一电子设备开启近场发现功能,所述第一电子设备发现潜在目标设备,其中所述潜在目标设备为:与所述第一电子设备已绑定或同账号的电子设备和/或在第二预设时间之前与所述第一电子设备建立所述近距离无线通信连接的电子设备和/或具有预设配置文件的电子设备。
- 根据权利要求22所述的方法,其特征在于,所述第一电子设备开启近场发现功能,包括:所述第一电子设备判断在第三预设时间内是否与其他电子设备建立所述近距离无线通信连接,若是则开启所述近场发现功能。
- 根据权利要求13-23任一项所述的方法,其特征在于,所述近距离无线通信连接为BLE连接;所述第一电子设备响应于预设操作与所述第二电子设备建立近距离无线通信连接,包括:所述第一电子设备采用预设的BLE连接参数与所述第二电子设备建立BLE连接;其中,所述预设的BLE连接参数至少包括预设的BLE扫描周期、预设的连接扫描占空比参数中的一种或多种。
- 一种电子设备,包括存储器和处理器,其特征在于,所述存储器中存储有可执行代码,所述处理器执行所述可执行代码,实现权利要求13-24任一项所述的方法。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,当所述计算机程序在计算机中执行时,令计算机执行权利要求13-24任一项所述的方法。
- 一种计算机程序或计算机程序产品,其特征在于,所述计算机程序或计算机程序产品包括指令,当所述指令被执行时,实现权利要求13-24任一项所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/251,041 US20240007211A1 (en) | 2020-10-28 | 2021-09-01 | Communication Method, Electronic Device, and System |
| EP21884688.9A EP4221276B1 (en) | 2020-10-28 | 2021-09-01 | Communication method and system |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011176711.6A CN114501397B (zh) | 2020-10-28 | 2020-10-28 | 一种通信方法、电子设备及系统 |
| CN202011176711.6 | 2020-10-28 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022088957A1 true WO2022088957A1 (zh) | 2022-05-05 |
Family
ID=81381834
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/116018 Ceased WO2022088957A1 (zh) | 2020-10-28 | 2021-09-01 | 一种通信方法、电子设备及系统 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20240007211A1 (zh) |
| EP (1) | EP4221276B1 (zh) |
| CN (1) | CN114501397B (zh) |
| WO (1) | WO2022088957A1 (zh) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115171630A (zh) * | 2022-05-23 | 2022-10-11 | 青岛海尔科技有限公司 | 歌曲点唱方法、装置、系统、存储介质及电子装置 |
| US20240388645A1 (en) * | 2023-05-18 | 2024-11-21 | T-Mobile Innovations Llc | Preemptive caching action based on end-user cues |
| WO2025147959A1 (en) * | 2024-01-11 | 2025-07-17 | Harman International Industries , Incorporated | Method and device for playing preselected multimedia content |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103581759A (zh) * | 2013-10-14 | 2014-02-12 | 青岛海信传媒网络技术有限公司 | 智能终端以及多媒体文件传输展示方法和系统 |
| CN104202461A (zh) * | 2014-08-11 | 2014-12-10 | 苏州易动智能科技有限公司 | 一种连接智能手机功能同步化的汽车音响系统 |
| CN111343622A (zh) * | 2020-03-02 | 2020-06-26 | 北京服装学院 | 一种蓝牙音箱同步播放方法、装置及系统 |
| CN111586662A (zh) * | 2020-05-22 | 2020-08-25 | 维沃移动通信有限公司 | 共享方法及音频输出设备 |
Family Cites Families (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4935345B2 (ja) * | 2006-12-25 | 2012-05-23 | ソニー株式会社 | コンテンツ再生システム、再生装置、再生制御方法及びプログラム |
| US8515338B2 (en) * | 2008-12-12 | 2013-08-20 | At&T Intellectual Property I, L.P. | Systems and methods for synchronized playout of music on several personal digital music players |
| KR101968512B1 (ko) * | 2012-02-21 | 2019-04-12 | 삼성전자주식회사 | Nfc를 이용한 멀티미디어 데이터 송수신 장치 및 방법 |
| US9307508B2 (en) * | 2013-04-29 | 2016-04-05 | Google Technology Holdings LLC | Systems and methods for syncronizing multiple electronic devices |
| US9210204B2 (en) * | 2013-10-31 | 2015-12-08 | At&T Intellectual Property I, Lp | Synchronizing media presentation at multiple devices |
| JP2017041756A (ja) * | 2015-08-19 | 2017-02-23 | ヤマハ株式会社 | オーディオシステムおよびオーディオ機器 |
| CN107071711A (zh) * | 2017-04-12 | 2017-08-18 | 安徽华米信息科技有限公司 | 多媒体共享方法、装置及蓝牙设备 |
| US12526361B2 (en) * | 2017-05-16 | 2026-01-13 | Apple Inc. | Methods for outputting an audio output in accordance with a user being within a range of a device |
| CN109450851B (zh) * | 2018-09-30 | 2020-09-22 | Oppo广东移动通信有限公司 | 设备连接方法、电子设备及计算机可读介质 |
| WO2020213959A1 (ko) * | 2019-04-16 | 2020-10-22 | 엘지전자 주식회사 | 블루투스 기술을 이용하여 오디오 데이터를 수신하기 위한 방법 및 이에 대한 장치 |
| CN111885255A (zh) * | 2020-06-30 | 2020-11-03 | 北京小米移动软件有限公司 | 音频播放控制方法、音频播放控制装置及存储介质 |
-
2020
- 2020-10-28 CN CN202011176711.6A patent/CN114501397B/zh active Active
-
2021
- 2021-09-01 WO PCT/CN2021/116018 patent/WO2022088957A1/zh not_active Ceased
- 2021-09-01 US US18/251,041 patent/US20240007211A1/en active Pending
- 2021-09-01 EP EP21884688.9A patent/EP4221276B1/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103581759A (zh) * | 2013-10-14 | 2014-02-12 | 青岛海信传媒网络技术有限公司 | 智能终端以及多媒体文件传输展示方法和系统 |
| CN104202461A (zh) * | 2014-08-11 | 2014-12-10 | 苏州易动智能科技有限公司 | 一种连接智能手机功能同步化的汽车音响系统 |
| CN111343622A (zh) * | 2020-03-02 | 2020-06-26 | 北京服装学院 | 一种蓝牙音箱同步播放方法、装置及系统 |
| CN111586662A (zh) * | 2020-05-22 | 2020-08-25 | 维沃移动通信有限公司 | 共享方法及音频输出设备 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4221276A4 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114501397A (zh) | 2022-05-13 |
| EP4221276A4 (en) | 2024-02-28 |
| EP4221276A1 (en) | 2023-08-02 |
| EP4221276B1 (en) | 2025-11-05 |
| US20240007211A1 (en) | 2024-01-04 |
| CN114501397B (zh) | 2026-01-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022088957A1 (zh) | 一种通信方法、电子设备及系统 | |
| JP6352365B2 (ja) | Wi−fiディスプレイ接続のオーディオおよび音声バックチャネルを確立および制御すること | |
| WO2012155587A1 (zh) | 一种移动终端及其自适应提升下载速率的方法 | |
| US9826445B2 (en) | Facilitation of adaptive dejitter buffer between mobile devices | |
| CN105828134B (zh) | 一种音视频播放系统中的播放控制方法及装置 | |
| US11115885B2 (en) | Audio synchronization during handover | |
| WO2014101022A1 (zh) | 远程唤醒方法、装置及系统 | |
| WO2021030974A1 (zh) | 寻呼配置方法、装置、通信设备及存储介质 | |
| WO2020258103A1 (zh) | 监听方法、指示下发方法及装置、通信设备及存储 | |
| JP7712485B2 (ja) | ページングパラメータ決定方法、装置、通信デバイス及び記憶媒体 | |
| US9998386B2 (en) | Facilitation of adaptive dejitter buffer | |
| JP2016225999A (ja) | ピアツーピアネットワーク上のデバイス間において協調的な相互作用を可能にするための方法および装置 | |
| WO2021012130A1 (zh) | 监听处理、策略下发方法及装置、通信设备及存储 | |
| JP5727098B2 (ja) | Uiccのパワー管理のための方法および装置 | |
| WO2021056362A1 (zh) | 控制资源集合的处理方法、装置及计算机存储介质 | |
| WO2019076289A1 (zh) | 降低电子设备的功耗的方法以及电子设备 | |
| WO2015165415A1 (en) | Method and apparatus for playing audio data | |
| KR20130101603A (ko) | Tcp fin 패킷 송신 방법 및 장치 | |
| CN105828253A (zh) | 音频播放系统中的无线连接控制方法及装置 | |
| WO2015038787A2 (en) | Apparatus and method for asynchronous peer-to-peer discovery | |
| WO2022077280A1 (zh) | 一种数据传输方法、装置、通信设备及存储介质 | |
| US20220295447A1 (en) | Network access method, apparatus, communication device, and storage medium | |
| CN114363876B (zh) | 连接建立方法、装置、设备、存储介质及程序产品 | |
| WO2024016885A1 (zh) | 蓝牙连接方法、装置、电子设备及计算机可读存储介质 | |
| WO2024098347A1 (zh) | 数据流同步方法、装置、通信设备和存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21884688 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18251041 Country of ref document: US |
|
| ENP | Entry into the national phase |
Ref document number: 2021884688 Country of ref document: EP Effective date: 20230426 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWG | Wipo information: grant in national office |
Ref document number: 2021884688 Country of ref document: EP |