WO2021114952A1 - Procédé de traitement de données, dispositif terminal, dispositif bluetooth et support de stockage - Google Patents

Procédé de traitement de données, dispositif terminal, dispositif bluetooth et support de stockage Download PDF

Info

Publication number
WO2021114952A1
WO2021114952A1 PCT/CN2020/125588 CN2020125588W WO2021114952A1 WO 2021114952 A1 WO2021114952 A1 WO 2021114952A1 CN 2020125588 W CN2020125588 W CN 2020125588W WO 2021114952 A1 WO2021114952 A1 WO 2021114952A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
application
data processing
processing method
bluetooth
Prior art date
Application number
PCT/CN2020/125588
Other languages
English (en)
Chinese (zh)
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 华为技术有限公司
Publication of WO2021114952A1 publication Critical patent/WO2021114952A1/fr

Links

Images

Classifications

    • 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
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Definitions

  • This application belongs to the field of communication technology, and particularly relates to data processing methods, terminal devices, Bluetooth devices, and storage media.
  • Existing Bluetooth devices are generally used to respond to the instructions of the application program on the terminal device to perform audio playback. If the user needs to operate the application program, the application program needs to be opened on the terminal device to achieve this. In the case where the user is inconvenient to use the terminal device The operation is inconvenient.
  • the embodiments of the present application provide a data processing method, a terminal device, a Bluetooth device, and a storage medium, which can realize the operation of the application program on the terminal device through the Bluetooth device.
  • the first aspect of the embodiments of the present application provides a data processing method, which is applied to a terminal device, and the data processing method includes:
  • the terminal device receives data sent by the Bluetooth device through the first communication link, and the data includes an application program identifier and an operation instruction;
  • the terminal device notifies the target application corresponding to the application identifier to perform the operation corresponding to the operation instruction through the second communication link, wherein the target application is installed on the terminal device.
  • the terminal device obtains the data sent by the Bluetooth device through the first communication link, and notifies the target application corresponding to the application identifier to perform the operation corresponding to the operation instruction through the second communication link, thereby realizing the Bluetooth device to the terminal device Control on the application.
  • the operation instruction includes collecting music or playing collected music.
  • the first communication link is established based on the RFCOMM protocol.
  • the terminal device notifying the target application corresponding to the application identifier to perform the operation corresponding to the operation instruction through the second communication link includes: the terminal device notifying the target application corresponding to the application identifier by broadcasting The program executes the operation corresponding to the operation instruction.
  • the terminal device establishes a socket channel with the Bluetooth device based on the RFCOMM protocol, receives data sent by the Bluetooth device, and then the terminal device broadcasts the identification and operation instructions of the application at the application layer, and all applications installed on the terminal device can receive the broadcast ,
  • the target application program corresponding to the application program identifier executes the operation instruction, so as to realize the control of the application program by the Bluetooth device.
  • the first communication link is established based on the AVRCP protocol.
  • the terminal device notifying the target application corresponding to the application identifier to perform the operation corresponding to the operation instruction through the second communication link includes: if the terminal device searches for the target application corresponding to the application identifier, Notifying the target application to execute the operation corresponding to the operation instruction.
  • the terminal device receives the data sent by the Bluetooth device through the AVRCP protocol, searches for the installed application according to the application identifier, and if the target application is found, the operation instruction is sent to the target application, so that the target application executes the corresponding operation instruction Operation.
  • the data processing method further includes: After the target application completes the operation corresponding to the operation instruction, the terminal device constructs an AVRCP message corresponding to the operation completion information, and sends the AVRCP message corresponding to the operation completion information to the Bluetooth device, In this way, the two-way communication between the terminal device and the Bluetooth device is realized, and the Bluetooth device can generate corresponding prompt information according to the operation completion information to remind the user of the completion of the operation of the application program.
  • the data sent by the Bluetooth device includes a key value constructed in advance by the Bluetooth device, and the key value is used to indicate an application program identifier and an operation instruction.
  • the data sent by the Bluetooth device further includes identity authentication information of the target application.
  • the Bluetooth device sends the key value and the identity authentication information entered by the user to the terminal device through the AVRCP protocol. After the terminal device detects the key value, it transparently transmits the identity authentication information to the target application, and the user can log in to the application through the Bluetooth device. .
  • the second aspect of the embodiments of the present application provides a data processing method, which is applied to a Bluetooth device, and the data processing method includes:
  • the Bluetooth device After receiving the predetermined information, the Bluetooth device determines data corresponding to the predetermined information, and the data includes an application program identifier and an operation instruction;
  • the Bluetooth device sends the data to the terminal device via the first communication link to instruct the terminal device to notify the target application corresponding to the application identifier to perform the operation corresponding to the operation instruction via the second communication link , Wherein the target application is installed on the terminal device.
  • the first communication link is established based on the RFCOMM protocol.
  • the first communication link is established based on the AVRCP protocol.
  • the data sent by the Bluetooth device includes a key value constructed by the Bluetooth device according to the predetermined information, and the key value is used to indicate an application program identifier and an operation instruction.
  • the data processing method further includes:
  • the Bluetooth device obtains the AVRCP message sent by the terminal device, where the AVRCP message is constructed based on operation completion information after the target application has executed the operation instruction.
  • the data processing method further includes:
  • the Bluetooth device recognizes the AVRCP message, and generates prompt information corresponding to the operation completion information according to the AVRCP message.
  • the predetermined information includes information triggered by a predetermined button, information triggered by a predetermined touch operation, or a predetermined voice instruction.
  • the third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, The steps of the data processing method as described in the above first aspect are implemented.
  • the fourth aspect of the embodiments of the present application provides a Bluetooth device, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, The steps of the data processing method as described in the above second aspect are implemented.
  • the fifth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data processing as described in the first aspect is realized.
  • the method or the steps of the data processing method described in the second aspect is realized.
  • the sixth aspect of the embodiments of the present application provides a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the data processing method described in the first aspect or the data processing described in the second aspect. Method steps.
  • Fig. 1 is a schematic diagram of a data processing system provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the internal structure of a terminal device provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of the internal structure of a Bluetooth device provided by an embodiment of the present application.
  • FIG. 4 is an application scenario diagram of the data processing method provided by an embodiment of the present application.
  • FIG. 5 is another application scenario diagram of the data processing method provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of the implementation process of the data processing method provided by the first embodiment of the present application.
  • FIG. 7 is a diagram of another application scenario of the data processing method provided by an embodiment of the present application.
  • FIG. 8 is another application scenario diagram of the data processing method provided by an embodiment of the present application.
  • FIG. 9 is another application scenario diagram of the data processing method provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of the implementation process of the data processing method provided by the second embodiment of the present application.
  • Fig. 11 is a structural block diagram of a data processing system provided by an embodiment of the present application.
  • the term “if” can be interpreted as “when” or “once” or “in response to determination” or “in response to detection” depending on the context .
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • the application scenario diagram of the data processing method provided in this embodiment of the application is applied to a data processing system.
  • the data processing system includes a terminal device 1 and a Bluetooth device 2.
  • the terminal device 1 and Bluetooth device 2 communicate through a wireless network.
  • the bluetooth device can be a bluetooth speaker, bluetooth headset, bluetooth bracelet and other smart devices supporting the bluetooth communication protocol.
  • Terminal devices can be mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs) ), netbooks, personal digital assistants (personal digital assistants, PDAs), etc.
  • the terminal devices support the Bluetooth communication protocol, and the embodiments of the present application do not impose any restrictions on the specific types of terminal devices.
  • the internal structure of the terminal device 1 and the Bluetooth device 2 provided in the embodiment of the present application will be described below.
  • the terminal device 1 provided in the embodiment of the present application includes: at least one processor 110, at least one memory 120, an input unit 130, a display unit 140, a Bluetooth module 150, an audio circuit 160, and a wireless security Components such as a wireless fidelity (WiFi) module 170 and a power supply 180.
  • WiFi wireless fidelity
  • the structure of the terminal device shown in FIG. 2 does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine some components, or arrange different components.
  • the processor 110 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes software programs and/or modules stored in the memory 120, and calls data stored in the memory 120. , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
  • the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc. , The modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the memory 120 may be used to store software programs and modules.
  • the processor 110 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.;
  • the data (such as audio data, phone book, etc.) created by the use of the terminal device, etc.
  • the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 130 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the terminal device 100.
  • the input unit 130 may include a touch panel 131 and other input devices 132.
  • the touch panel 131 also known as a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 131 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, and can receive and execute the commands sent by the processor 110.
  • the touch panel 131 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the input unit 130 may also include other input devices 132.
  • the other input device 132 may include, but is not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick.
  • the display unit 140 may be used to display information input by the user or information provided to the user and various menus of the terminal device.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • the touch panel 131 can cover the display panel 141. When the touch panel 131 detects a touch operation on or near it, it transmits it to the processor 180 to determine the type of the touch event, and then the processor 110 responds to the touch event. The type provides corresponding visual output on the display panel 141.
  • the touch panel 131 and the display panel 141 are used as two independent components to realize the input and input functions of the terminal device, but in some embodiments, the touch panel 131 and the display panel 141 can be integrated And realize the input and output functions of terminal equipment.
  • the Bluetooth module 150 is used to implement the Bluetooth function of the terminal device.
  • the terminal device and the Bluetooth device perform Bluetooth communication through the Bluetooth module 150.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 160 can transmit the electrical signal converted from the received audio data to the speaker 161, which is converted into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is then output by the audio circuit 160. After being received, it is converted into audio data, and then processed by the audio data output processor 180, or the audio circuit 160 sends the audio data to the Bluetooth device through the Bluetooth module 150.
  • WiFi is a short-distance wireless transmission technology.
  • terminal devices can help users send and receive emails, browse web pages, and access streaming media. It provides users with wireless broadband Internet access.
  • FIG. 2 shows the WiFi module 170, it is understandable that it is not a necessary component of the terminal device, and can be omitted as needed without changing the essence of the invention.
  • the terminal device also includes a power supply 180 (such as a battery) for supplying power to various components.
  • a power supply 180 (such as a battery) for supplying power to various components.
  • the power supply can be logically connected to the processor 110 through a power management system, so that functions such as charging, discharging, and power management are realized through the power management system.
  • the Bluetooth device provided by the embodiment of the present application includes at least one processor 210, at least one memory 220, a wireless communication module 230, an audio module 240, a power module 250, an input/output interface 260, and the like.
  • the processor may include one or more interfaces for connecting with other components of the Bluetooth device.
  • the Bluetooth device is stored in the earphone box.
  • the memory 220 can be used to store program codes, such as for virtual connection or physical connection between a Bluetooth device and an electronic device, to switch the physical connection with the electronic device, and to process audio services of the electronic device (such as music playback, /Calling, etc.), as well as program codes for charging Bluetooth devices and wireless pairing and connection between Bluetooth devices and other electronic devices.
  • the memory 220 may also be used to store other information, such as the priority of the electronic device.
  • the processor 210 may be used to execute the above-mentioned application program code and call related modules to implement the functions of the Bluetooth device in the embodiment of the present application. For example, it realizes functions such as virtual connection or physical connection between a Bluetooth device and multiple electronic devices, audio playback, and making/receiving calls.
  • the processor 210 may include one or more processing units, and different processing units may be independent devices or integrated in one or more processors 210.
  • the processor 210 may specifically be an integrated control chip, or may be composed of a circuit including various active and/or passive components, and the circuit is configured to perform the functions belonging to the processor 210 described in the embodiments of the present application.
  • the wireless communication module 230 can be used to support wireless communication between Bluetooth devices and other electronic devices or headset boxes, including BT, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G/5G wireless communication technologies. Communication data exchange.
  • the wireless communication module 230 may be a Bluetooth chip.
  • the Bluetooth device can pair and establish a wireless connection with the Bluetooth chip of other electronic devices through the Bluetooth chip, so as to realize wireless communication and service processing between the Bluetooth device and other electronic devices through the wireless connection.
  • the wireless connection can be a physical connection or a virtual connection.
  • a Bluetooth chip can support basic rate (BR)/enhanced data rate (EDR) Bluetooth and BLE, for example, it can receive/send page information, receive/send BLE broadcast messages, and so on.
  • BR basic rate
  • EDR enhanced data rate
  • the wireless communication module 230 may further include an antenna, and the wireless communication module 230 receives electromagnetic waves via the antenna, modulates the frequency of the electromagnetic wave signals and performs filtering processing, and sends the processed signals to the processor 210.
  • the wireless communication module 230 may also receive the signal to be sent from the processor 210, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna.
  • the audio module 240 may be used to manage audio data, and realize the input and output of audio signals by the Bluetooth device.
  • the audio module 240 can obtain audio signals from the wireless communication module 230, or transmit audio signals to the wireless communication module 230, so as to make calls, play music, turn on/off the voice assistant of the electronic device connected to the headset, and receive the audio signal through the Bluetooth headset. / Send the user's voice data and other functions.
  • the audio module 240 may include a speaker (or earpiece or receiver) component for outputting audio signals, a microphone (or a microphone, or microphone), a microphone radio circuit matched with the microphone, and the like.
  • the speaker can be used to convert audio electrical signals into sound signals and play them.
  • the microphone can be used to convert sound signals into audio electrical signals.
  • the power module 250 can be used to provide system power for the Bluetooth device, supply power to each module of the Bluetooth device, and support the Bluetooth device to receive charging input.
  • the power module 250 may include a power management unit (PMU) and a battery.
  • PMU power management unit
  • the power management unit can receive an external charging input; transform the electrical signal input from the charging circuit and provide it to the battery for charging, and can also transform the electrical signal provided by the battery and provide it to the audio module 240, the wireless communication module 230, etc. Module; and to prevent the battery from overcharging, overdischarging, short circuit or overcurrent, etc.
  • the power module 250 may further include a wireless charging coil for wireless charging of the Bluetooth device.
  • the power management unit can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the multiple input/output interfaces 260 may be used to provide wired connections for charging or communication between the Bluetooth device and the earphone box.
  • the input/output interface may be a USB interface.
  • the input/output interface 260 may be a headset electrical connector.
  • the Bluetooth device can establish an electrical connection with the electrical connector in the headset box through the headset electrical connector, thereby Charge the battery in the Bluetooth device.
  • the Bluetooth device can also perform data communication with the headset box, for example, can receive a pairing instruction from the headset box.
  • the Bluetooth device may further include a sensor 270.
  • the sensor 270 may be a distance sensor or a proximity light sensor, which may be used to determine whether the Bluetooth device is worn by the user.
  • the Bluetooth device may use a distance sensor to detect whether there is an object near the Bluetooth device, so as to determine whether the Bluetooth device is worn by the user. When it is determined that the Bluetooth device is worn, the Bluetooth device can turn on the speaker.
  • the sensor 270 may also include a bone conduction sensor combined with a bone conduction earphone.
  • the Bluetooth device can obtain the vibration signal of the vibrating bone block of the human voice, analyze the voice signal, and realize the voice function, thereby receiving the user's voice command.
  • the Bluetooth device can also perform voice authentication based on the user's voice signal obtained by the bone conduction headset to authenticate the user's identity.
  • the senor 270 may also include: a touch sensor, used to detect user touch operations; a fingerprint sensor, used to detect user fingerprints, identify user identity, etc.; ambient light sensor, can be adaptive according to the brightness of the perceived ambient light Adjust some parameters (such as volume); and some other sensors.
  • a touch sensor used to detect user touch operations
  • a fingerprint sensor used to detect user fingerprints, identify user identity, etc.
  • ambient light sensor can be adaptive according to the brightness of the perceived ambient light Adjust some parameters (such as volume); and some other sensors.
  • the touch sensor can detect touch operations such as a single click, double click, multiple clicks, long press, and heavy pressing of the user, and can also perform user fingerprint recognition to authenticate the user's identity.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the Bluetooth device. It may have more or fewer components than shown in FIG. 3, may combine two or more components, or may have a different component configuration.
  • the outer surface of the Bluetooth device can also include a button 280, indicator light (which can indicate the status of power, incoming/outgoing, pairing mode, etc.), a display screen (which can prompt the user for relevant information), and a dust-proof net (which can be used with the handset) ) And other components.
  • the button 280 may be a physical button or a touch button (used in conjunction with a touch sensor), etc., and is used to trigger operations such as power-on, power-off, pause, play, record, start pairing, and reset.
  • FIG. 3 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing or application specific integrated circuits.
  • the terminal device obtains data sent by the Bluetooth device.
  • the data includes an application program identifier and an operation instruction.
  • the terminal device notifies the target application corresponding to the application program identifier to perform the operation corresponding to the operation instruction according to the application program identifier. So as to realize the control of the bluetooth device to the application program.
  • the terminal device 1 is a mobile phone
  • the Bluetooth device 2 is a Bluetooth speaker.
  • the Bluetooth speaker After the Bluetooth speaker is connected to the mobile phone via Bluetooth, it will play the audio played by the audio application on the mobile phone.
  • the user needs to collect the currently playing music, perform operations corresponding to the collection instructions on the Bluetooth speaker, for example, input voice, or perform touch operations on the display interface of the Bluetooth speaker, or press the button on the Bluetooth speaker, and the Bluetooth speaker will follow
  • the user operates to generate an application program identification and a collection instruction, and sends the collection instruction to the mobile phone, and the mobile phone controls the audio application corresponding to the application program identification to collect the currently playing music.
  • FIG. 4 shows another application scenario, as shown in FIG.
  • the terminal device 1 is a mobile phone
  • the Bluetooth device 2 is a Bluetooth bracelet.
  • the Bluetooth bracelet collects exercise data and sends the exercise data to the mobile phone.
  • the analysis result is sent to the Bluetooth bracelet for display.
  • the user needs to pause the exercise, perform the trigger button or voice input operation corresponding to the pause instruction on the Bluetooth bracelet.
  • the Bluetooth bracelet generates the application identifier and pause instruction according to the user's operation, sends the pause instruction to the mobile phone, and the mobile phone controls the application. Identifies the corresponding motion application program to pause the exercise.
  • the data processing method provided by the first embodiment of the present application includes:
  • the terminal device establishes a first communication link with the Bluetooth device based on the RFCOMM protocol.
  • the Bluetooth module of the terminal device can find nearby Bluetooth devices, display a list of Bluetooth devices to be paired on the display interface, and pair with the designated Bluetooth device according to the user's selection, thereby according to the predefined
  • the protocol establishes a communication link with the Bluetooth device.
  • the terminal device and the Bluetooth device establish a socket channel through a serial port simulation protocol (Radio Frequency Communication, RFCOMM).
  • RFCOMM Radio Frequency Communication
  • the Bluetooth device After receiving the predetermined information, the Bluetooth device determines data corresponding to the predetermined information, and the data includes an application program identifier and an operation instruction.
  • the predetermined information includes information triggered by a predetermined button, information triggered by a predetermined touch operation, or a predetermined voice instruction. Operation instructions can be stop, play, volume control, collection, etc.
  • the application program is identified as Application Programming Interface (API). There are multiple applications installed on the terminal device, for example, calendar, camera, audio, video, navigation, gallery, call and other applications, each application corresponds to one API.
  • the Bluetooth device After receiving the predetermined information, the Bluetooth device determines the operation instruction according to the preset correspondence relationship between the predetermined information and the operation instruction, and determines the application identifier according to the application identifier associated with the predetermined information. For example, the "pause" button on the Bluetooth headset is associated with the current audio application, the user presses the "pause” button on the Bluetooth headset, the Bluetooth headset generates the key value corresponding to the "pause” button, and the key corresponding to the "pause” button The value is the pause instruction and the application ID of the current audio application.
  • the "favorite” button on the Bluetooth speaker is associated with the current audio application
  • the key value is the favorite instruction and the application identifier of the current audio application.
  • the application associated with the predetermined information needs to be set in advance.
  • the Bluetooth speaker APP is installed on the mobile phone, and the "Collection" button is set on the Bluetooth speaker APP to associate with QQ Music, or the selection button on the Bluetooth speaker is set”
  • the application associated with the "Favorite” button is associated with the current audio application
  • the corresponding relationship between the predetermined information and the operation instruction can be arbitrarily set, which is not limited in this application.
  • the trigger button corresponds to the collection operation instruction
  • the trigger touch panel corresponds to the playback operation instruction.
  • the Bluetooth device sends the data to the terminal device through the first communication link.
  • the Bluetooth device encapsulates the operation instruction and the application program identifier, and sends the encapsulated data to the terminal device through the socket channel.
  • the Bluetooth device is a Bluetooth speaker
  • the terminal device is a mobile phone
  • the music played by an audio application on the mobile phone is played through the Bluetooth speaker.
  • the "favorite” button is associated with the audio application currently running on the terminal device.
  • the Bluetooth speaker encapsulates the key value corresponding to the "favorite” button and passes it
  • the socket port is sent to the mobile phone, and the key value corresponding to the "favorite” button is used to indicate the favorite operation instruction and the identification of the currently running audio application program.
  • the terminal device sends the data sent by the Bluetooth device to the target application in a broadcast manner.
  • the data sent by the Bluetooth device is sent to the target application through the second communication link, and the second communication link is different from the first communication link.
  • the terminal device parses out the application program identifier and the operation instruction, and broadcasts at the application layer according to the analyzed application program identifier.
  • Each application on the terminal device can receive the broadcast, but only the target application receives the operation instruction.
  • the target application executes the corresponding operation according to the operation instruction.
  • the audio application is running on the terminal device, and the music played by the audio application is played through the Bluetooth speaker, which is the "ordinary road" that the audio application is currently playing.
  • the operation instruction sent by the Bluetooth device is a collection operation instruction, and the application program is identified as the API of the current audio application.
  • the terminal device broadcasts at the application layer
  • the current audio application responds to the application layer broadcast and receives the collection instruction.
  • the currently playing music "Ordinary Road” displays the collection logo, and the collection is successful.
  • the target application program needs to be installed on the terminal device to execute the corresponding operation instruction. If the target application program corresponding to the application program identifier is not installed on the terminal device, no application program receives the operation instruction. For example, if the audio playback application corresponding to the application identifier is not installed on the terminal device, when the Bluetooth device sends a collection instruction, the collection is unsuccessful.
  • the application program corresponding to the application program identifier on the mobile phone may also be in a non-running state.
  • the application identifier corresponding to the Bluetooth data broadcasted by the application layer is the API of QQ Music, and QQ Music is not currently running, after QQ Music receives the collection operation command sent by the Bluetooth module, it will collect the most recently played music of QQ Music. The next time you open QQ Music, the most recently played music will be displayed in the favorite list.
  • the Bluetooth speaker is provided with a "play favorite list” button, and the "play favorite list” button is associated with the application ID.
  • the Bluetooth speaker encapsulates the corresponding key value.
  • the encapsulated data is sent to the mobile phone.
  • the mobile phone After the mobile phone receives the data sent by the Bluetooth device, it parses out the play favorite list operation instruction and the application program identifier, broadcasts at the application layer, and the target application corresponding to the application identifier receives the play favorite list Operating instructions. If the current application is not running, run the application and play the last played music in the favorites list.
  • the last played music in the favorites list is "Ordinary Road”
  • the application will accept After the operation instruction to play the favorite list, play "Ordinary Road”. If the current application is running, the last played music in the favorite list will be played directly.
  • the terminal device After the terminal device obtains the data sent by the Bluetooth device, it parses out the application identifier and operation instruction, broadcasts at the application layer according to the application identifier, and the target application corresponding to the application identifier executes the operation corresponding to the operation instruction. In this way, the Bluetooth device can control the application program on the terminal device.
  • the data processing method provided by the second embodiment of the present application includes:
  • the terminal device establishes a first communication link with the Bluetooth device based on the AVRCP protocol.
  • the Bluetooth device and the Bluetooth module establish a communication link through the Audio/Video Remote Control Profile (AVRCP).
  • AVRCP Audio/Video Remote Control Profile
  • the Bluetooth device After receiving the predetermined information, the Bluetooth device determines data corresponding to the predetermined information, and the data includes an application program identifier and an operation instruction.
  • S202 is the same as S201, and will not be repeated here.
  • the Bluetooth device sends the data to the terminal device through the first communication link.
  • the Bluetooth device is provided with a button, the button is associated with the application ID, when the button is triggered, the key value corresponding to the button is encapsulated as an AVRCP data packet, and the encapsulated AVRCP data packet is sent to Terminal equipment, where the key value is used to indicate operation instructions and application program identification.
  • the terminal device after receiving the data sent by the Bluetooth device, the terminal device replies to the Bluetooth device whether the reception is successful, for example, replying to the corresponding confirmation character (Acknowledge character, ACK character) through the AVRCP protocol.
  • the Bluetooth device parses the confirmation character, and if the data is not sent successfully, it will remind the user to resend it.
  • the terminal device After the terminal device receives the data sent by the Bluetooth device, it parses out the application identifier and operation, first searches for the target application according to the application identifier, if the target application corresponding to the application identifier is searched , Send the successful search information to the Bluetooth device, the Bluetooth device can send out a voice reminder to remind the user to search for the application.
  • the terminal device After the terminal device searches for the application, it sends the operation instruction to the application. If the application is running, the application executes the corresponding operation according to the operation instruction, such as collecting the currently playing music, playing the music in the favorite list, and pausing the music. Wait. If the application program is not running, the terminal device first runs the application program, and the application program performs corresponding operations according to the operating instructions, for example, collecting the most recently played music and playing the most recently played music in the favorite list.
  • the terminal device if it does not search for the corresponding application according to the application identifier, it returns the search unsuccessful information to the Bluetooth device. For example, the terminal device sends the unsuccessful search information to the Bluetooth device through the AVRCP protocol. Bluetooth device, after receiving the message that the search is unsuccessful, the Bluetooth device sends out a voice reminder to remind the user that the terminal device has not installed the application or the network is faulty.
  • the data sent by the Bluetooth device also includes identity authentication information.
  • the user can input the identity authentication information of the application program on the Bluetooth device by inputting the account number or voice input.
  • the Bluetooth device encapsulates the received identity authentication information and key value into an AVRCP data packet, and the encapsulated AVRCP data packet Send to the terminal device.
  • the terminal device After receiving the AVRCP data packet, the terminal device first detects whether it includes the predefined key value, and if it includes the key value, the identity authentication information is transparently transmitted to the application.
  • the Bluetooth device encapsulates the identity authentication information and key value entered by the user into an AVRCP data packet, and sends the encapsulated AVRCP data packet to the terminal device .
  • the terminal device After receiving the AVRCP data packet, the terminal device detects whether it includes a predefined key value. If it includes a predefined key value, it parses out the operation instruction and application ID corresponding to the key value, and transparently transmits the identity authentication information to the corresponding application ID The target application.
  • the target application sends the identity authentication information to the server through the WiFi module, and the server authenticates the identity authentication information, and sends the authentication result to the target application.
  • the target application feeds back the authentication failure information to the terminal device in the form of a broadcast packet, and the terminal device constructs an AVRCP message according to the authentication failure information, and sends the AVRCP message to the Bluetooth device.
  • the Bluetooth device parses out the authentication failure information corresponding to the AVRCP message, and reminds the user that the identity authentication has failed.
  • S205 is the same as S105, which will not be repeated here.
  • the terminal device constructs an AVRCP message corresponding to the operation completion information, and sends the AVRCP message corresponding to the operation completion information to the Bluetooth device.
  • the operation completion information is fed back to the terminal device in the form of a broadcast packet, where the operation completion information includes whether the operation instruction is successfully executed.
  • the terminal device generates an AVRCP message according to the received broadcast packet, and then sends the generated AVRCP message to the Bluetooth device.
  • the Bluetooth device recognizes the received AVRCP message and sends out a corresponding voice reminder according to the recognition result.
  • the operation instruction sent by Bluetooth data is to collect music to be played.
  • the application receives the operation instruction and executes the collection operation according to the operation instruction, it generates a broadcast packet of the preset format from the successful collection information, and then The broadcast packet is sent to the terminal device, and the terminal device generates an AVRCP message from the received broadcast package, and then sends the AVRCP message to the Bluetooth device.
  • the Bluetooth device recognizes the successful collection information based on the received AVRCP message, and voice reminds the user to save success.
  • the terminal device After the terminal device obtains the Bluetooth data sent by the Bluetooth device, it parses out the application identifier and operation instructions. If the target application corresponding to the application identifier is searched, the Bluetooth data is transmitted to the target application, indicating the target application The program executes the operation corresponding to the operation instruction, so as to realize the control of the application program by the Bluetooth device.
  • FIG. 11 shows a structural block diagram of a data processing system provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
  • the terminal device 1 includes:
  • the receiving module 10 is configured to receive data sent by the Bluetooth device through the first communication link, the data including an application program identifier and an operation instruction;
  • the execution module 20 is configured to notify the target application corresponding to the application identifier to execute the operation corresponding to the operation instruction through the second communication link, wherein the target application is installed on the terminal device.
  • the execution module 20 is specifically configured to:
  • the terminal device notifies the target application corresponding to the application identifier to execute the operation corresponding to the operation instruction in a broadcast manner.
  • the first communication link is established based on the RFCOMM protocol.
  • the execution module 20 is specifically configured to:
  • the terminal device searches for the target application corresponding to the application identifier, notify the target application to perform the operation corresponding to the operation instruction.
  • the first communication link is established based on the AVRCP protocol.
  • the terminal device further includes a sending module, and the sending module is configured to:
  • the target application After the target application completes the operation corresponding to the operation instruction, constructs an AVRCP message corresponding to the operation completion information, and sends the AVRCP message corresponding to the operation completion information to the Bluetooth device.
  • the data sent by the Bluetooth device includes a key value constructed in advance by the Bluetooth device, and the key value is used to indicate an application program identifier and an operation instruction.
  • the data sent by the Bluetooth device further includes identity authentication information of the target application.
  • the operation instruction includes collecting music or playing collected music.
  • Bluetooth device 2 includes,
  • the determining module 30 is configured to determine data corresponding to the predetermined information after receiving the predetermined information, the data including an application program identifier and an operation instruction;
  • the sending module 40 is configured to send the data to the terminal device through the first communication link, so as to instruct the terminal device to notify the target application corresponding to the application identifier through the second communication link to execute the corresponding operation instruction. Operation.
  • the first communication link is established based on the RFCOMM protocol.
  • the first communication link is established based on the AVRCP protocol.
  • the data sent by the Bluetooth device includes a key value constructed by the Bluetooth device according to the predetermined information, and the key value is used to indicate an application program identifier and an operation instruction.
  • the Bluetooth device further includes an acquisition module, and the acquisition module is configured to:
  • AVRCP message sent by the terminal device, where the AVRCP message is constructed based on operation completion information after the target application has executed the operation instruction.
  • the Bluetooth device further includes an acquisition module identification module, and the identification module is configured to:
  • the predetermined information includes information triggered by a predetermined button, information triggered by a predetermined touch operation, or a predetermined voice instruction.
  • the disclosed device/terminal device and method may be implemented in other ways.
  • the device/terminal device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, 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 the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the present application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program.
  • the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, it can implement the steps of the foregoing method embodiments.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc.

Landscapes

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

Abstract

La présente invention peut être appliquée au domaine technique des communications et concerne un procédé de traitement de données, un dispositif terminal, un dispositif Bluetooth et un support de stockage. Le procédé de traitement de données comprend les étapes au cours desquelles : un dispositif terminal reçoit des données envoyées par un dispositif Bluetooth au moyen d'une première liaison de communication, les données contenant un identifiant de programme d'application et une instruction d'opération ; et, au moyen d'une seconde liaison de communication, le dispositif terminal ordonne à un programme d'application cible correspondant à l'identifiant de programme d'application d'effectuer une opération correspondant à l'instruction d'opération, le programme d'application cible étant installé sur le dispositif terminal. Les modes de réalisation de la présente invention permettent au dispositif Bluetooth de commander le programme d'application sur un terminal.
PCT/CN2020/125588 2019-12-14 2020-10-30 Procédé de traitement de données, dispositif terminal, dispositif bluetooth et support de stockage WO2021114952A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911287182.4 2019-12-14
CN201911287182.4A CN110944315A (zh) 2019-12-14 2019-12-14 数据处理方法、终端设备、蓝牙设备及存储介质

Publications (1)

Publication Number Publication Date
WO2021114952A1 true WO2021114952A1 (fr) 2021-06-17

Family

ID=69910715

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/125588 WO2021114952A1 (fr) 2019-12-14 2020-10-30 Procédé de traitement de données, dispositif terminal, dispositif bluetooth et support de stockage

Country Status (2)

Country Link
CN (1) CN110944315A (fr)
WO (1) WO2021114952A1 (fr)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852848A (zh) * 2021-09-18 2021-12-28 海信电子科技(武汉)有限公司 一种虚拟遥控器控制方法、显示设备及终端设备
CN113873589A (zh) * 2021-09-18 2021-12-31 深圳市爱都科技有限公司 一种蓝牙连接切换方法、蓝牙耳机及计算机可读存储介质
CN114422574A (zh) * 2022-02-10 2022-04-29 Oppo广东移动通信有限公司 连接建立方法、装置、电子设备和计算机可读存储介质
CN116709576A (zh) * 2022-12-05 2023-09-05 荣耀终端有限公司 停车处理方法、设备以及存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944315A (zh) * 2019-12-14 2020-03-31 华为技术有限公司 数据处理方法、终端设备、蓝牙设备及存储介质
CN111857835B (zh) * 2020-07-23 2024-01-19 珠海优特电力科技股份有限公司 信号的处理方法及装置、智能卡、可读存储介质
CN112887949A (zh) * 2021-01-20 2021-06-01 Oppo广东移动通信有限公司 一种信息处理方法、蓝牙设备、电子设备及存储介质
CN114143765B (zh) * 2022-02-08 2022-07-08 荣耀终端有限公司 蓝牙回连方法、装置和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005352648A (ja) * 2004-06-09 2005-12-22 Denso Corp 車両用usb対応システムおよび車両用usb対応装置
EP2043054A1 (fr) * 2007-09-25 2009-04-01 Continental Automotive GmbH Télécommande sans fil pouvant produire des flashs
CN103023538A (zh) * 2012-11-22 2013-04-03 无锡中星微电子有限公司 一种基于蓝牙配件的通信方法和蓝牙装置
CN104050966A (zh) * 2013-03-12 2014-09-17 百度国际科技(深圳)有限公司 终端设备的语音交互方法和使用该方法的终端设备
CN108899025A (zh) * 2018-07-24 2018-11-27 中国联合网络通信集团有限公司 终端设备控制方法、设备及存储介质
CN110944315A (zh) * 2019-12-14 2020-03-31 华为技术有限公司 数据处理方法、终端设备、蓝牙设备及存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2713629A1 (fr) * 2012-09-28 2014-04-02 GN Netcom A/S Casque d'écoute pourvu d'un lecteur RFID
CN106572426A (zh) * 2015-10-09 2017-04-19 陈文妮 一种智能蓝牙设备、通信方法和系统
CN110531864A (zh) * 2019-09-18 2019-12-03 华为技术有限公司 一种手势交互方法、装置及终端设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005352648A (ja) * 2004-06-09 2005-12-22 Denso Corp 車両用usb対応システムおよび車両用usb対応装置
EP2043054A1 (fr) * 2007-09-25 2009-04-01 Continental Automotive GmbH Télécommande sans fil pouvant produire des flashs
CN103023538A (zh) * 2012-11-22 2013-04-03 无锡中星微电子有限公司 一种基于蓝牙配件的通信方法和蓝牙装置
CN104050966A (zh) * 2013-03-12 2014-09-17 百度国际科技(深圳)有限公司 终端设备的语音交互方法和使用该方法的终端设备
CN108899025A (zh) * 2018-07-24 2018-11-27 中国联合网络通信集团有限公司 终端设备控制方法、设备及存储介质
CN110944315A (zh) * 2019-12-14 2020-03-31 华为技术有限公司 数据处理方法、终端设备、蓝牙设备及存储介质

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852848A (zh) * 2021-09-18 2021-12-28 海信电子科技(武汉)有限公司 一种虚拟遥控器控制方法、显示设备及终端设备
CN113873589A (zh) * 2021-09-18 2021-12-31 深圳市爱都科技有限公司 一种蓝牙连接切换方法、蓝牙耳机及计算机可读存储介质
CN113852848B (zh) * 2021-09-18 2024-04-05 Vidaa(荷兰)国际控股有限公司 一种虚拟遥控器控制方法、显示设备及终端设备
CN114422574A (zh) * 2022-02-10 2022-04-29 Oppo广东移动通信有限公司 连接建立方法、装置、电子设备和计算机可读存储介质
CN114422574B (zh) * 2022-02-10 2024-05-03 Oppo广东移动通信有限公司 连接建立方法、装置、电子设备和计算机可读存储介质
CN116709576A (zh) * 2022-12-05 2023-09-05 荣耀终端有限公司 停车处理方法、设备以及存储介质

Also Published As

Publication number Publication date
CN110944315A (zh) 2020-03-31

Similar Documents

Publication Publication Date Title
WO2021114952A1 (fr) Procédé de traitement de données, dispositif terminal, dispositif bluetooth et support de stockage
US11979251B2 (en) Home device control method and device
CN105163366B (zh) 无线网络连接方法和装置
JP6196398B2 (ja) タッチボタン及び指紋認証を実現する装置、方法、端末機器、並びにプログラム及び記録媒体
CN109946986B (zh) 家电控制方法、可穿戴设备及计算机可读存储介质
CN110166439B (zh) 设备共享方法、终端、路由器及服务器
KR102441850B1 (ko) 서비스 처리 방법 및 이동 통신 단말
CN108834132B (zh) 一种数据传输方法及设备和相关介质产品
EP1720328A1 (fr) Appareil et procédé pour afficher des informations dans le mode de communication Bluetooth d'un terminal sans fil
WO2018049971A1 (fr) Procédé de commutation de réseau à point d'accès sans fil et terminaux
WO2020088387A1 (fr) Procédé de transmission de liaison montante, équipement utilisateur et dispositif côté réseau
US20210014716A1 (en) Method for processing communication range information and terminal
CN108834013B (zh) 一种可穿戴设备电量均衡方法及相关产品
US20220124607A1 (en) Method for Accessing Network by Smart Home Device and Related Device
CN108600887B (zh) 基于无线耳机的触摸控制方法及相关产品
CN107071862A (zh) 账号绑定方法及装置和智能设备
CN111313114B (zh) 一种充电方法及电子设备
CN110287719B (zh) 文件加密方法及移动终端
WO2018049969A1 (fr) Procédé d'établissement de point d'accès sans fil et dispositif associé
CN109788114B (zh) 一种通话处理方法及终端
CN111414097A (zh) 一种交互方法、交互系统和显示设备
CN109525919B (zh) 开关机控制装置、开关机控制方法、系统及存储介质
CN108882084B (zh) 一种可穿戴设备电量均衡方法及相关产品
CN106358064A (zh) 控制电视机的方法及设备
WO2018049968A1 (fr) Procédé d'établissement de zone d'accès sans fil et terminaux

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: 20897877

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20897877

Country of ref document: EP

Kind code of ref document: A1