WO2021179924A1 - 一种显示蓝牙设备标识的方法及电子设备 - Google Patents

一种显示蓝牙设备标识的方法及电子设备 Download PDF

Info

Publication number
WO2021179924A1
WO2021179924A1 PCT/CN2021/078329 CN2021078329W WO2021179924A1 WO 2021179924 A1 WO2021179924 A1 WO 2021179924A1 CN 2021078329 W CN2021078329 W CN 2021078329W WO 2021179924 A1 WO2021179924 A1 WO 2021179924A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
bluetooth
message
bluetooth message
link identifier
Prior art date
Application number
PCT/CN2021/078329
Other languages
English (en)
French (fr)
Inventor
卞苏成
蒋钟寅
陈乐�
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21768269.9A priority Critical patent/EP4106366A4/en
Priority to US17/911,039 priority patent/US20230106906A1/en
Publication of WO2021179924A1 publication Critical patent/WO2021179924A1/zh

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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/189Arrangements for providing special services to substations for broadcast or conference, e.g. multicast in combination with wireless systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/1396Protocols specially adapted for monitoring users' activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display
    • 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
    • H04M1/72409User 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/72412User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • G06F1/203Cooling means for portable computers, e.g. for laptops
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • G06F1/206Cooling means comprising thermal management
    • 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/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • the embodiments of the present application relate to the field of wireless communication technologies, and in particular, to a method and an electronic device for displaying a Bluetooth device identifier.
  • Bluetooth is a radio technology that supports short-distance communication between devices. With the development of science and technology, more and more electronic devices with Bluetooth function appear in people's daily life. In the Bluetooth communication range, if two electronic devices with Bluetooth function turn on Bluetooth, the two electronic devices can perform Bluetooth pairing, and after the Bluetooth pairing is successful, data can be transmitted between the two electronic devices.
  • each electronic device that is in Bluetooth scanning can display the link identifier corresponding to the received Bluetooth message for the user to view.
  • the user can view the electronic device corresponding to the link identifier through the electronic device, and can select the electronic device for Bluetooth pairing through the electronic device.
  • the electronic device displays the link identifiers corresponding to multiple Bluetooth device identifiers within the Bluetooth communication range, the user cannot quickly find the electronic device to be paired with Bluetooth among the multiple link identifiers.
  • the present application provides a method and an electronic device for displaying the identification of a Bluetooth device.
  • the electronic device displays the link identification corresponding to the Bluetooth device in a highlighted manner, which reduces the difficulty for the user to find the identification of the Bluetooth device for Bluetooth pairing.
  • this application provides a method for displaying the identification of a Bluetooth device.
  • the first electronic device may broadcast a first Bluetooth message
  • the first Bluetooth message includes first indication information for instructing to display the first link identifier corresponding to the first electronic device in a highlighted manner.
  • the second electronic device may broadcast the second Bluetooth message.
  • the third electronic device can display the Bluetooth scanning interface and scan the Bluetooth message.
  • the third electronic device may receive the first Bluetooth message broadcast by the first electronic device and the second Bluetooth message broadcast by the second electronic device.
  • the third electronic device may display the first link identifier and the second link identifier on the Bluetooth scanning interface.
  • the first link identifier corresponds to the first electronic device
  • the second link identifier corresponds to the second electronic device.
  • the third electronic device displays the first link identifier in a highlighted manner on the Bluetooth scanning interface.
  • the first Bluetooth message broadcast by the first electronic device includes first indication information, and the first indication information is used to indicate that the link identifier corresponding to the first electronic device is displayed in a highlighted manner.
  • the third electronic device receives the first Bluetooth message broadcast by the first electronic device, in response to the first indication information in the first Bluetooth message, the first link identifier is displayed in a highlighted manner. Since the first link identifier corresponding to the first electronic device is highlighted, the user can quickly find the first link identifier from the Bluetooth scanning interface, thereby determining the first electronic device.
  • the user of the third electronic device wants to control his electronic device to establish a Bluetooth connection with the first electronic device, and the third electronic device displays the first link identification in a highlighted manner, then the user of the third electronic device can quickly download from Bluetooth The first link identifier is found in the scanning interface to trigger the third electronic device to establish a Bluetooth connection with the first electronic device.
  • the above-mentioned displaying the first link identifier in a highlighted manner includes: displaying the first link identifier before the second link identifier, displaying that the first link identifier is selected, and displaying the first link in a distinguished highlighting manner Logo, at least one of.
  • the user of the third electronic device wants to control his electronic device to establish a Bluetooth connection with the first electronic device.
  • the third electronic device displays the first link identifier before other link identifiers (second link identifiers), so that the user can display the Bluetooth on the third electronic device.
  • the first link identifier corresponding to the first electronic device is quickly found on the scanning interface.
  • the third electronic device displays that the first link identifier is selected, or, the third electronic device displays the first link identifier in a distinguishing and prominent manner.
  • the first link identifier displayed in a highlighted manner reduces the difficulty for the user to find the first link identifier corresponding to the first electronic device, so that the user can quickly find the first link identifier corresponding to the first electronic device.
  • the above-mentioned third electronic device displays the first link identifier in a highlighted manner on the Bluetooth scanning interface, which may specifically include: starting from the moment when the third electronic device receives the first Bluetooth message, in the second Within a preset period of time, the third electronic device displays the first link identifier in a highlighted manner on the Bluetooth scanning interface. That is to say, within the first preset time period, the manner in which the first link identifier is displayed on the Bluetooth scanning interface of the third electronic device remains unchanged, so that the user can find the first link identifier within the preset time, which improves user experience.
  • the third electronic device may also display motion prompt information on the Bluetooth scanning interface.
  • the exercise prompt information is used to prompt the exercise state that meets the preset conditions.
  • any user can know the motion state that meets the preset conditions when viewing the Bluetooth scanning interface of the third electronic device.
  • the user of the first electronic device and the user of the third electronic device want to control their electronic devices to establish a Bluetooth connection, the user of the first electronic device can view the exercise prompt information displayed on the Bluetooth scanning interface of the third electronic device, thereby triggering The movement state of the first electronic device changes in accordance with the preset condition.
  • the first Bluetooth message broadcast by the first electronic device includes the first indication information
  • the foregoing method may further include: The electronic device detects that the movement state of the first electronic device has changed in accordance with the preset condition. That is, before the first electronic device broadcasts the first Bluetooth message, it has detected that its own motion state has changed in accordance with the preset condition.
  • the first electronic device may include a sensor module, and the first electronic device may obtain sensor data obtained by the sensor module, and determine, according to the sensor data, that its own motion state has changed in accordance with a preset condition.
  • the first Bluetooth message broadcast by the first electronic device includes the first indication information. That is, if the Bluetooth message broadcast by the electronic device includes indication information (such as the first indication information), the indication information is used to indicate that the link identifier (such as the first link identifier) corresponding to the Bluetooth message is displayed in a highlighted manner. , Then, the motion state of the electronic device (such as the first electronic device) that broadcasts the Bluetooth message has undergone a qualified change. If the Bluetooth message broadcast by the electronic device does not include the indication information (such as the first indication information), then the motion state of the electronic device (such as the second electronic device) has not undergone a qualified change.
  • indication information such as the first indication information
  • the third electronic device can display the link identifier corresponding to the Bluetooth message including the first indication information in a highlighted manner, so that the user can quickly find out from the Bluetooth scanning interface that the movement state has changed in accordance with the preset conditions.
  • the link identifier of the Bluetooth device can display the link identifier corresponding to the Bluetooth message including the first indication information in a highlighted manner, so that the user can quickly find out from the Bluetooth scanning interface that the movement state has changed in accordance with the preset conditions.
  • the above method further includes: starting from the first electronic device detecting that the motion state of the first electronic device has changed in accordance with a preset condition, the first electronic device can be kept for a second preset period of time. Broadcast the first Bluetooth message.
  • the first electronic device detects that its own motion state changes in compliance with the preset condition, and broadcasts the first Bluetooth message within the second preset duration.
  • the third electronic device displays the first link identifier in a highlighted manner on the Bluetooth scanning interface, so as to reduce the difficulty for the user of the third electronic device to find the first link identifier on the Bluetooth scanning interface , Thereby enhancing the user experience.
  • the above method further includes: starting from the first electronic device detecting that the motion state of the first electronic device changes in compliance with preset conditions, the first electronic device broadcasts after the second preset time The third Bluetooth message. Wherein, the third Bluetooth message does not include the first indication information.
  • different electronic devices can log in to the same account.
  • both the first electronic device and the fourth electronic device can log in to the first account.
  • the first Bluetooth message may also include the first account.
  • the fourth electronic device can receive the first Bluetooth message. That is, the first Bluetooth message received by the fourth electronic device may not only include the above-mentioned first indication information, but may also include the first account.
  • the fourth electronic device can broadcast The fourth Bluetooth message including the second indication information.
  • the second indication information is used to indicate that the movement state of the fourth electronic device has changed in accordance with the preset condition. That is to say, even if the motion state of the fourth electronic device does not meet the preset condition; however, if the motion state of the first electronic device changes in compliance with the preset condition, the fourth electronic device receives the broadcast of the first electronic device.
  • Bluetooth message and the fourth electronic device and the first electronic device have logged in the same account; then, the Bluetooth message broadcast by the fourth electronic device may also carry indication information (such as second indication information) to indicate that it is displayed in a highlighted manner
  • the third link identifier corresponding to the fourth electronic device is displayed.
  • the third electronic device may receive the fourth Bluetooth message.
  • the third electronic device may display a third link identification on the Bluetooth scanning interface, and the third link identification corresponds to the fourth electronic device.
  • the third electronic device instructs to display the third link identifier in a highlighted manner on the Bluetooth scanning interface.
  • electronic devices that log in to the same account are generally devices of the same user.
  • the user wants to control the third electronic device and the fourth electronic device to establish a Bluetooth connection.
  • the user can trigger the movement state of the first electronic device to change in compliance with the preset condition.
  • the first Bluetooth message broadcast by the first electronic device can include the first account and the first indication information.
  • the fourth electronic device may broadcast the Bluetooth message including the second indication information.
  • the third electronic device receives the Bluetooth message including the second indication information, and the third electronic device can display the third link identifier corresponding to the fourth electronic device in a highlighted manner on the Bluetooth scanning interface.
  • the user of the third electronic device can quickly find the third link identifier from the Bluetooth scanning interface to trigger the third electronic device to establish a Bluetooth connection with the fourth electronic device.
  • the foregoing fourth Bluetooth message may further include the first account, and the first Bluetooth message broadcast by the first electronic device includes the first account and the first indication information, and the third electronic device The device receives the fourth Bluetooth message. That is, both the first Bluetooth message and the fourth Bluetooth message received by the third electronic device include the first account. In response to the third electronic device including the first account in the fourth Bluetooth message, the third electronic device displays the third link identifier in a highlighted manner on the Bluetooth scanning interface.
  • the third electronic device responds to the fourth Bluetooth message including the first account, that is, the first electronic device and the fourth electronic device log in to the same account. That is to say, even if the motion state of the fourth electronic device does not meet the preset condition; however, the motion state of the first electronic device has changed to meet the preset condition, then the third electronic device will still be displayed in a highlighted manner The third link identifier.
  • the present application also provides a method for displaying the identification of a Bluetooth device.
  • the method can be applied to the third electronic device in the first aspect.
  • the third electronic device displays the Bluetooth scanning interface and scans the Bluetooth message.
  • the third electronic device may receive the first Bluetooth message including the first indication information from the first electronic device, where the first indication information is used to instruct to display the first link identifier corresponding to the first electronic device in a highlighted manner.
  • the third electronic device may also receive the second Bluetooth message from the second electronic device.
  • the third electronic device displays the first link identification and the second link identification on the Bluetooth scanning interface.
  • the first link identifier corresponds to the first electronic device
  • the second link identifier corresponds to the second electronic device.
  • the third electronic device displays the first link identifier in a highlighted manner on the Bluetooth scanning interface.
  • the third electronic device responds to receiving the first Bluetooth message and the second Bluetooth message, before the third electronic device displays the first link identifier and the second link identifier on the Bluetooth scanning interface .
  • the Bluetooth scanning interface on the third electronic device may also display exercise prompt information, where the exercise prompt information is used to prompt the exercise state that meets the preset conditions.
  • the above-mentioned third electronic device displays the first link identifier in a highlighted manner on the Bluetooth scanning interface, which may specifically include: starting from the third electronic device receiving the first Bluetooth message, the third electronic device Within the first preset time period, the first link identifier is displayed in a highlighted manner on the Bluetooth scanning interface.
  • the first electronic device logs in the first account
  • the first Bluetooth message further includes the first account.
  • the above method further includes: the third electronic device receives a fourth Bluetooth message from the fourth electronic device, where the fourth Bluetooth message includes the first account.
  • the third electronic device displays a third link identification on the Bluetooth scanning interface; the third link identification corresponds to the fourth electronic device.
  • the third electronic device displays the third link identifier in a highlighted manner on the Bluetooth scanning interface.
  • the present application also provides a method for displaying a Bluetooth device identification.
  • the method may be applied to the first electronic device in the first aspect.
  • the method may include: the first electronic device broadcasts a first Bluetooth message; wherein, The first Bluetooth message includes first indication information, and the first indication information is used to indicate that the first link identifier corresponding to the first electronic device is displayed in a highlighted manner.
  • the above method may further include: the first electronic device detects that the movement state of the first electronic device changes in compliance with a preset condition.
  • the above method may further include: starting from the first electronic device detecting that the motion state of the first electronic device changes in compliance with a preset condition, the first electronic device broadcasts within a second preset duration The first Bluetooth message.
  • the above method may further include: starting from the first electronic device detecting that the motion state of the first electronic device has a qualified change, the first electronic device broadcasts the first electronic device after the second preset duration. Three Bluetooth messages; wherein, the third Bluetooth message does not include the first indication information.
  • the first electronic device logs in the first account, and the above-mentioned first electronic device broadcasts the first Bluetooth message, which specifically includes:
  • the first electronic device receives the fifth Bluetooth message from the fifth electronic device; wherein, the fifth Bluetooth message includes third indication information and the first account, and the third indication information is used to indicate the status of the fifth electronic device
  • the movement state changes in accordance with the preset conditions.
  • the first electronic device In response to the first electronic device logging in to the first account and the fifth Bluetooth message includes the third indication information, the first electronic device broadcasts the first Bluetooth message including the first indication information.
  • an embodiment of the present application also provides a device for displaying a Bluetooth device identifier, which is included in a third electronic device.
  • the device for displaying a Bluetooth device identifier includes a scanning module, a receiving module, and a display module.
  • the scanning module is used for scanning the Bluetooth message when the third electronic device displays the Bluetooth scanning interface.
  • the receiving module is configured to receive the first Bluetooth message from the first electronic device and receive the second Bluetooth message from the second electronic device.
  • the first Bluetooth message includes first indication information, and the first indication information is used to indicate that the first link identifier corresponding to the first electronic device is displayed in a highlighted manner.
  • the display module is configured to respond to receiving the first Bluetooth message and the second Bluetooth message, the third electronic device displays the first link identification and the second link identification on the Bluetooth scanning interface.
  • the first link identifier corresponds to the first electronic device
  • the second link identifier corresponds to the second electronic device.
  • the third electronic device displays the first link identifier in a highlighted manner on the Bluetooth scanning interface.
  • the display module is also used to display exercise prompt information on the Bluetooth scanning interface, where the exercise prompt information is used to prompt the exercise state that meets the preset conditions.
  • the display module is further configured to start from the third electronic device receiving the first Bluetooth message, and the third electronic device will highlight the message on the Bluetooth scanning interface within the first preset time period. Mode to display the first link identifier.
  • the first electronic device logs in the first account
  • the first Bluetooth message may further include the first account.
  • the receiving module is further configured to receive a fourth Bluetooth message from the fourth electronic device; wherein, the fourth Bluetooth message includes the first account.
  • the display module is further configured to display a third link identification on the Bluetooth scanning interface in response to receiving the fourth Bluetooth message; the third link identification corresponds to the fourth electronic device.
  • the third electronic device displays the third link identifier in a highlighted manner on the Bluetooth scanning interface.
  • an embodiment of the present application also provides an apparatus for displaying a Bluetooth device identification, which is included in the first electronic device.
  • the displaying of the Bluetooth device identification may include a Bluetooth broadcasting module.
  • the Bluetooth broadcast module is used to broadcast the first Bluetooth message.
  • the first Bluetooth message includes first indication information, and the first indication information is used to indicate that the first link identifier corresponding to the first electronic device is displayed in a highlighted manner.
  • the device may further include a detection module.
  • the detection module is used to detect that the movement state of the first electronic device has changed in accordance with the preset condition.
  • the Bluetooth broadcasting module is also used to start from the first electronic device detecting that the motion state of the first electronic device changes in compliance with the preset condition, and the first electronic device is within the second preset time period. Broadcast the first Bluetooth message.
  • the Bluetooth broadcasting module is also used to start from the first electronic device detecting that the motion state of the first electronic device has changed in accordance with the preset condition, and the first electronic device is after the second preset period of time. , Broadcast the third Bluetooth message. Wherein, the third Bluetooth message does not include the first indication information.
  • the first electronic device logs in the first account
  • the above-mentioned apparatus for displaying the Bluetooth device may further include a Bluetooth receiving module.
  • the Bluetooth receiving module can be used to receive the fifth Bluetooth message from the fifth electronic device; wherein, the fifth Bluetooth message includes the third indication information and the first account, and the third indication information is used to indicate in a highlighted manner The link identifier corresponding to the fifth electronic device is displayed.
  • the Bluetooth broadcasting module can also be used to respond to the fifth Bluetooth message including the third indication information and the first electronic device logging in the first account, the first electronic device broadcasts the first Bluetooth message including the first indication information.
  • the present application also provides an electronic device.
  • the electronic device is the above-mentioned third electronic device.
  • the third electronic device may include: a memory, a Bluetooth module, a display screen, and one or more processors; a memory, The Bluetooth module, the display and the processor are coupled.
  • the memory is used to store computer program code, and the computer level code includes computer instructions.
  • the processor executes the computer instructions
  • the third electronic device executes the first aspect, the second aspect, and any one of the possible implementations thereof. Steps corresponding to the third electronic device.
  • the present application also provides a chip system, which is applied to an electronic device; the chip system may include one or more interface circuits and one or more processors.
  • the interface circuit and the processor are interconnected by wires, and the interface circuit is used to receive a signal from the memory of the electronic device and send the signal to the processor, and the signal includes a computer instruction stored in the memory.
  • the processor executes the foregoing computer instructions
  • the electronic device executes the methods in the first aspect, the second aspect, and any one of the possible implementation manners thereof.
  • this application also provides a computer-readable storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the first aspect, the second aspect, and any possible implementation manners thereof In the method.
  • the present application also provides an electronic device.
  • the electronic device is the aforementioned first electronic device.
  • the first electronic device may include: a memory, a Bluetooth module, and one or more processors; a memory, a Bluetooth module, and a processor. ⁇ coupled.
  • the memory is used to store computer program code, and the computer level code includes computer instructions.
  • the processor executes the computer instructions
  • the first electronic device executes the first aspect, the third aspect, and any one of the possible implementations thereof. Steps corresponding to the first electronic device.
  • the present application also provides a chip system, which is applied to an electronic device; the chip system may include one or more interface circuits and one or more processors.
  • the interface circuit and the processor are interconnected by wires, and the interface circuit is used to receive a signal from the memory of the electronic device and send the signal to the processor, and the signal includes a computer instruction stored in the memory.
  • the processor executes the foregoing computer instructions
  • the electronic device executes the methods in the first aspect, the third aspect, and any one of the possible implementation manners thereof.
  • the present application also provides a computer-readable storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the first aspect, the third aspect, and any possible implementations thereof The method in the way.
  • this application also provides a computer program product, which when the computer program product runs on a computer, causes the computer to execute the first aspect, the second aspect, or the third aspect and any possible implementation manners thereof In the method.
  • the second aspect, the third aspect and any one of the possible implementation methods provided by the present application, the fourth aspect, the fifth aspect, and any one of the possible implementation methods show Bluetooth
  • the device of the device, the electronic device of the sixth aspect, the chip system of the seventh aspect, the computer-readable storage medium of the eighth aspect, the electronic device of the ninth aspect, the chip system of the tenth aspect, and the computer readable of the eleventh aspect For the beneficial effects that can be achieved by the storage medium and the computer program product of the twelfth aspect, please refer to the beneficial effects in the first aspect and any of its possible design methods, which will not be repeated here.
  • FIG. 1A is a flowchart of a method for establishing Bluetooth communication according to an embodiment of the application
  • FIG. 1B is a schematic diagram of an electronic device displaying a Bluetooth logo according to an embodiment of the application
  • FIG. 2A is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • 2B is a schematic diagram of the software structure of an electronic device provided by an embodiment of this application.
  • FIG. 3A is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 3B is a flowchart of a method for displaying a Bluetooth device identifier provided by an embodiment of the application
  • FIG. 4 is a schematic diagram of a display of a Bluetooth scanning interface provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • 6A is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • FIG. 6B is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • FIG. 6C is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • FIG. 6D is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • Fig. 6E is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • FIG. 7 is a flowchart of a method for displaying a Bluetooth device identifier provided by an embodiment of the application.
  • FIG. 8A is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • FIG. 8B is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • FIG. 8C is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • FIG. 8D is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • FIG. 8E is a schematic diagram showing another Bluetooth scanning interface provided by an embodiment of the application.
  • FIG. 9A is a schematic structural diagram of an apparatus for displaying Bluetooth devices provided by an embodiment of the application.
  • FIG. 9B is a schematic structural diagram of another apparatus for displaying Bluetooth devices provided by an embodiment of the application.
  • FIG. 10 is a schematic diagram of the structural composition of an electronic device provided by an embodiment of the application.
  • FIG. 11 is a schematic structural diagram of a chip system provided by an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the present embodiment, unless otherwise specified, “plurality” means two or more.
  • the working principle of Bluetooth communication is the Socket mechanism. Take the Bluetooth communication between two electronic devices as an example. Socket is actually a communication endpoint. Both electronic devices have Socket, and the two electronic devices can transmit data through Socket. .
  • the socket of each electronic device can be a serial number.
  • the format of the Socket is (Internet Protocol (IP) address: port number).
  • IP Internet Protocol
  • the IP address of an electronic device is 210.37.145.1
  • the port number of the electronic device is 23.
  • the socket of the electronic device is (210.37.145.1:23).
  • Socket is a communication endpoint in a communication connection, and multiple electronic devices can transmit data through Socket.
  • one electronic device writes the data that needs to be transmitted into its own Socket, and the electronic device sends the Socket to another electronic device. After another electronic device receives the Socket, it can save the information in the received Socket in the Socket of its own electronic device. Thus, the two electronic devices complete the data transmission.
  • one of the two electronic devices can serve as a server, and the other electronic device can serve as a client.
  • the electronic device that actively initiates the Bluetooth communication request is the client, and the other electronic device is the server.
  • the specific process of establishing Bluetooth communication is as follows: the electronic device of the client establishes a Socket, and a Bluetooth connection request (or called a Bluetooth message) is sent to the electronic device of the server through the Socket to request the establishment of a Bluetooth communication connection with the electronic device of the server.
  • the electronic device on the server also establishes a Socket through which the Bluetooth connection request sent by the electronic device as the client can be monitored. If the electronic device of the server responds to the Bluetooth connection request of the electronic device of the client, a Bluetooth communication connection is established with the electronic device of the client. In this way, since the electronic device on the server and the electronic device on the client both have Sockets, these two electronic devices can transmit data through the Socket.
  • the process of establishing Bluetooth communication between the two electronic devices includes: discovery, pairing, and connection.
  • the Bluetooth of the electronic device 1 discovers the Bluetooth of the electronic device 2, and the electronic device 1 performs Bluetooth pairing with the electronic device 2 in response to the user's operation.
  • the Bluetooth pairing of the electronic device 1 and the electronic device 2 is successful, the electronic device 1 and the electronic device 2 2 Bluetooth communication is established.
  • the flow of the method for establishing the discovery and pairing process in Bluetooth communication is shown in Fig. 1A.
  • the method includes steps 101-104.
  • Step 101 The electronic device 1 is in the Bluetooth scanning state, and monitors the Bluetooth message.
  • the electronic device 1 can monitor the Bluetooth messages broadcast by multiple electronic devices within the Bluetooth communication range.
  • the embodiment of the present application takes the establishment of a Bluetooth communication connection between the electronic device 1 and the electronic device 2 as an example.
  • FIG. 1A only shows the interaction process of the electronic device 1 and the electronic device 2, and does not show other electronic devices within the Bluetooth communication range. It is understandable that when the electronic device 1 scans Bluetooth messages, it can also monitor Bluetooth messages broadcast by other electronic devices within the Bluetooth communication range.
  • Step 102 The electronic device 2 broadcasts a Bluetooth message.
  • the Bluetooth message is used to request the establishment of a Bluetooth communication connection with the electronic device 1.
  • Step 103 In response to receiving the Bluetooth message broadcast by the electronic device 2, the electronic device 1 displays the link identification of the electronic device 2 on the Bluetooth scanning interface.
  • the electronic device 1 may display the link identifier according to a preset display rule, so that the user can view the link identifier on the electronic device 1.
  • the preset display rule can be the time when the Bluetooth message is monitored, or the signal strength in the Bluetooth message.
  • the electronic device 1 can receive Bluetooth messages broadcast by multiple electronic devices within the Bluetooth communication range, and the electronic device 1 can display multiple link identifiers on the Bluetooth scanning interface, and each link identifier corresponds to an electronic device.
  • the link identifier displayed in the electronic device 1 can be the device model of the electronic device. If the device model of the electronic device 2 is "shouji1", the Bluetooth scanning interface of the electronic device 1 is shown in Figure 1B, and the Bluetooth scanning interface of the electronic device 1 Including the link identification of the electronic device 2 and the link identification of other electronic devices.
  • the link identification may also be the Bluetooth name of the electronic device, etc., which is only an example here.
  • Step 104 The electronic device 1 sends a Bluetooth pairing request to the electronic device 2 in response to the user's selection operation of the link identifier of the electronic device 2.
  • the link identifier corresponding to the electronic device 2 is "shouji1", and the electronic device 1 receives the user's click operation on the link identifier ("shouji1").
  • the electronic device 1 will monitor the Bluetooth messages of multiple electronic devices, and display the link identification ( As shown in Figure 1B). When at least one link identification is displayed on the Bluetooth scanning interface of the electronic device 1, the user cannot quickly find the link identification of the electronic device 2 among the multiple link identifications. In particular, if the electronic device 1 monitors more Bluetooth messages, the number of link identifiers displayed on the Bluetooth scanning interface of the electronic device 1 will also increase, which makes it more difficult for the user to find the link identifier of the electronic device 2.
  • the embodiment of the present application provides a method for displaying the identification of a Bluetooth device, and the method can be applied to the process of displaying the link identification (the name of the Bluetooth device) on the middle electronic device 1 that establishes Bluetooth communication.
  • the electronic device 2 that broadcasts the Bluetooth message may set indication information in the Bluetooth message, and the indication information is used to indicate that the link identifier (such as the first link identifier) corresponding to the electronic device 2 is displayed in a highlighted manner.
  • the electronic device 1 that has received the Bluetooth message can display the link identifier corresponding to the electronic device 2 in a highlighted manner in response to the instruction information, so that the user can easily find the link identifier of the electronic device 2.
  • the user can quickly find the link identifier of the electronic device 2 when viewing the link identifier on the Bluetooth scanning interface of the electronic device 1, thereby improving the user experience.
  • the electronic device 2 may broadcast a Bluetooth message including the indication information.
  • the foregoing preset state includes, but is not limited to: the electronic device 2 is in a "shaking and shaking” state, or the electronic device 2 is in a "flipping" state, and so on.
  • the electronic device 2 if the electronic device 2 is in the "shaking and shaking” state, the electronic device 2 generates indication information in response to the "shaking and shaking” motion state, and the electronic device 2 broadcasts a Bluetooth message including the indication information.
  • the electronic device 1 displays the link identification of the electronic device 2 in a highlighted manner in response to the instruction information in the Bluetooth message. This reduces the difficulty for the user to find the link identifier corresponding to the electronic device 2 on the Bluetooth scanning interface displayed by the electronic device 1.
  • the electronic device in the embodiment of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop, a handheld computer, a notebook computer, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), and a netbook.
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistants
  • AR augmented reality
  • VR virtual reality
  • the embodiments of this application do not impose special restrictions on the specific form of the electronic device .
  • each electronic device is provided with a Bluetooth module, and each electronic device can broadcast Bluetooth messages.
  • electronic device 1, electronic device 2, electronic device 3, and electronic device 4 can all broadcast Bluetooth messages.
  • electronic device 1 (the third electronic device) in the Bluetooth scanning state as an example, electronic device 1 can receive electronic device 2.
  • the Bluetooth message broadcast by the electronic device 1 can also be received.
  • the electronic device 2 (the first electronic device) detects that its own motion state changes in accordance with the preset condition before broadcasting the Bluetooth message, then the electronic device 2 broadcasts the Bluetooth message (the first Bluetooth message) Including the first instruction information.
  • the mobile phone 1 can apply the method in the embodiment of the present application in the following scenarios, and the method in the embodiment of the present application can be applied in the following scenarios.
  • Scenario 1 Mobile phone 1 shares data with mobile phone 2.
  • the mobile phone 1 establishes Bluetooth communication with the mobile phone 2 before sharing data with the mobile phone 2.
  • the mobile phone 1 displays the Bluetooth scanning interface and scans the Bluetooth message.
  • the mobile phone 1 can receive multiple Bluetooth messages including the Bluetooth messages of the mobile phone 2, and the mobile phone 1 displays the link identifiers corresponding to multiple electronic devices, and the user of the mobile phone 1 cannot quickly recognize the link identifiers of the mobile phone 2.
  • the mobile phone 2 detects that its own motion state has changed in accordance with preset conditions, for example, the mobile phone 2 is in a shaking state, the mobile phone 2 is in a turning state, and so on.
  • the Bluetooth message broadcast by the mobile phone 2 includes indication information (first indication information).
  • the mobile phone 1 displays the link identifier (first link identifier) corresponding to the mobile phone 2 in a highlighted manner.
  • displaying the link identifier corresponding to mobile phone 2 in a highlighted manner includes the following display modes: the link identifier corresponding to mobile phone 2 in the Bluetooth scanning interface of mobile phone 1 is displayed before other link identifiers; the link identifier corresponding to mobile phone 2 in the Bluetooth scanning interface of mobile phone 1
  • the link identifier also includes a preset identifier; the link identifier corresponding to mobile phone 2 in the Bluetooth scanning interface of mobile phone 1 includes the preset identifier, and the link identifier corresponding to mobile phone 2 is displayed before other link identifiers; the mobile phone in the Bluetooth scanning interface of mobile phone 1 2
  • the corresponding link identifier is selected; the Bluetooth scanning interface of mobile phone 1 displays the corresponding link identifier of mobile phone 2 in a way that is different from other link identifiers.
  • Mobile phone 1 and mobile phone 2 can establish Bluetooth communication so that mobile phone 1 can share data with mobile phone 2.
  • Scenario 2 Mobile phone 1 shares data with the Bluetooth headset.
  • the mobile phone 1 establishes Bluetooth communication with the Bluetooth headset before sharing data with the Bluetooth headset. Since the Bluetooth headset has a memory function, if the mobile phone 1 has established Bluetooth communication with the Bluetooth headset, when the Bluetooth of the Bluetooth headset and the Bluetooth of the mobile phone 1 are both in the on state, the mobile phone 1 can automatically establish Bluetooth communication with the Bluetooth headset. That is to say, when the mobile phone 1 establishes Bluetooth communication with the Bluetooth headset for the first time, the user of the mobile phone 1 is required to find the link identifier corresponding to the Bluetooth headset according to the link identifier displayed on the Bluetooth scanning interface. Since the mobile phone 1 can receive multiple Bluetooth messages including the Bluetooth message of the Bluetooth headset, and display the link identifier corresponding to each electronic device on the Bluetooth scanning interface, the user of the mobile phone 1 cannot quickly find the corresponding Bluetooth headset. Link ID.
  • the method in the embodiment of the present application is executed.
  • the user can trigger the movement state of the Bluetooth headset to change in compliance with preset conditions, for example, the Bluetooth headset is in the state of shaking.
  • the Bluetooth message broadcast by the Bluetooth headset may include indication information (first indication information), and the mobile phone 1 responds to receiving the Bluetooth message broadcast by the Bluetooth headset that includes the indication information.
  • the mobile phone 1 displays the link identifier corresponding to the Bluetooth headset in a highlighted manner, so that the user of the mobile phone 1 can find the link identifier of the Bluetooth headset displayed in a highlighted manner.
  • the link identifier corresponding to the Bluetooth headset displayed in a highlighted manner is the same as the link identifier of the mobile phone 2 displayed in the above scenario 1, and will not be repeated here.
  • Scenario 3 Mobile phone 1 shares data with the laptop.
  • the mobile phone 1 before the mobile phone 1 shares data with the notebook computer, the mobile phone 1 establishes Bluetooth communication with the notebook computer.
  • the account logged in on the mobile phone 2 and the laptop is the same, for example, the first account is logged in on both the mobile phone 2 and the laptop.
  • Mobile phone 1 can receive Bluetooth messages broadcast by mobile phone 2, laptops and tablet computers.
  • the Bluetooth scanning interface of mobile phone 1 displays the corresponding link identifiers of mobile phone 2, laptops and tablet computers. When the user is viewing the Bluetooth scanning interface displayed on mobile phone 1, , The link identifier corresponding to the laptop cannot be quickly identified.
  • the first implementation manner is that the mobile phone 2 detects that its own motion state has changed in accordance with a preset condition, and the Bluetooth message broadcast by the mobile phone 2 includes the indication information and the first account.
  • the Bluetooth message broadcast by the laptop includes the first account.
  • Cell phone 1 responds to the Bluetooth message of cell phone 2 and the Bluetooth message of the laptop computer.
  • Cell phone 1 determines that both the Bluetooth message of cell phone 2 and the Bluetooth message of the laptop include the first account, and cell phone 1 determines that cell phone 2’s If the Bluetooth message includes instruction information, the mobile phone 1 displays the link identifier corresponding to the notebook computer in a highlighted manner.
  • mobile phone 1 when mobile phone 1 displays the link identifier corresponding to the notebook computer in a highlighted manner, it includes: the link identifier corresponding to mobile phone 2 and the link identifier corresponding to the notebook computer in the Bluetooth scanning interface of mobile phone 1 are displayed before other link identifiers; or, mobile phone 1
  • the link identifier corresponding to the laptop in the Bluetooth scanning interface of the mobile phone also includes a preset identifier; or, the link identifier corresponding to the laptop in the Bluetooth scanning interface of the mobile phone 1 includes a preset identifier, and the link identifier corresponding to the laptop is displayed in other links Before identification; or, in the Bluetooth scanning interface of mobile phone 1, the link identifier corresponding to mobile phone 2 and the link identifier corresponding to the laptop are selected; or, the Bluetooth scanning interface of mobile phone 1 displays the corresponding mobile phone 2 in a way different from other link identifiers
  • the link identifier of and the link identifier corresponding to the laptop when mobile phone 1 displays the link identifier corresponding to the
  • the second implementation manner is that the mobile phone 2 detects that its own motion state has changed in accordance with a preset condition, and the Bluetooth message broadcast by the mobile phone 2 includes the indication information and the first account.
  • the notebook computer is in the Bluetooth scanning interface, and the notebook computer can receive the Bluetooth messages broadcast by the mobile phone 2.
  • the laptop determines that the Bluetooth message of the mobile phone 2 includes the first account, and the Bluetooth message broadcasted by the mobile phone 2 includes instruction information, and the Bluetooth message broadcast by the laptop includes instruction information (second instruction information), and the second instruction information It is used to indicate that the movement state of the notebook computer has changed in accordance with the preset conditions.
  • the mobile phone 1 responds to the bluetooth message of the notebook computer, and the mobile phone 1 displays the link identifier corresponding to the notebook computer in a highlighted manner.
  • the link identifier corresponding to the notebook computer displayed in a highlighted manner is the same as the link identifier of the mobile phone 2 displayed in the above scenario 1, and will not be repeated here.
  • the user when using the mobile phone 1 to share data with the notebook computer, the user can quickly find the link identifier corresponding to the notebook computer.
  • the mobile phone 1 and the laptop can establish Bluetooth communication so that the mobile phone 1 can share data with the laptop.
  • FIG. 2A is a schematic structural diagram of an electronic device 200 according to an embodiment of this application.
  • the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, and a battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, sensor module 280, buttons 290, display screen 294, subscriber identification module (SIM) card interface 295, etc.
  • SIM subscriber identification module
  • the sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a vibration sensor 280C, a direction sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, and so on.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 200.
  • the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units.
  • the processor 210 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 200.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in the processor 210 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 210. If the processor 210 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 210 is reduced, and the efficiency of the system is improved.
  • the processor 210 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely illustrative, and does not constitute a structural limitation of the electronic device 200.
  • the electronic device 200 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 200.
  • the external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 221 may be used to store computer executable program code, the executable program code including instructions.
  • the processor 210 executes various functional applications and data processing of the electronic device 200 by running instructions stored in the internal memory 221.
  • the internal memory 221 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 200.
  • the internal memory 221 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, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the charging management module 240 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210.
  • the power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 294, the wireless communication module 260, and the Bluetooth module 261.
  • the wireless communication function of the electronic device 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, and the baseband processor.
  • the mobile communication module 250 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 200.
  • the mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 250 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 250 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • the wireless communication module 260 can provide applications on the electronic device 200 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module may include a Bluetooth module 261, a Wi-Fi module 262, an FM module 263, an NFC module 264, and so on.
  • the wireless communication module 260 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 260 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210.
  • the wireless communication module 260 may also receive the signal to be sent from the processor 210, perform frequency modulation, amplify, and convert it into electromagnetic waves and radiate it through the antenna 2.
  • the Bluetooth module 261 can support short-range wireless communication. In some embodiments, the Bluetooth module 261 can monitor Bluetooth messages broadcast by the Bluetooth modules of other electronic devices. In other embodiments, the Bluetooth module 261 may establish communication with the sensor module 280 to obtain data of the sensor module. If the sensor data represents a change in the motion state of the electronic device 200 that meets the preset condition, the electronic device 200 may generate indication information according to the data of the sensor module, and the Bluetooth message broadcasted by the Bluetooth module 261 may include the indication information.
  • the electronic device 200 implements a display function through a GPU, a display screen 294, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 294 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 294 is used to display images, videos, and the like.
  • the display screen 294 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 200 may include one or N display screens 294, and N is a positive integer greater than one.
  • the electronic device 200 when the electronic device 200 displays a Bluetooth scanning interface, the electronic device 200 can listen to Bluetooth messages broadcast by other electronic devices, and the display screen 294 of the electronic device 200 can display the link identifiers corresponding to the other electronic devices.
  • the electronic device 200 can implement audio functions through an audio module 270, an application processor, and the like. For example, music playback, recording, etc.
  • the electronic device 200 may obtain sensor data through various sensors in the sensor module 280, and determine the motion state of the electronic device through the sensor data.
  • the sensor module 280 may establish a communication connection with the Bluetooth module 261 and send sensor data to the Bluetooth module 261.
  • the pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 280A may be provided on the display screen 294.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 200 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 200 detects the intensity of the touch operation according to the pressure sensor 280A.
  • the electronic device 200 may also calculate the touched position based on the detection signal of the pressure sensor 280A.
  • the gyro sensor 280B may be used to determine the movement posture of the electronic device 200. In some embodiments, the angular velocity of the electronic device 200 around three axes (ie, x, y, and z axes) can be determined by the gyroscope sensor 280B. The gyro sensor 280B can be used for image stabilization. In some embodiments, the gyroscope sensor may be used to determine whether the electronic device 200 is turned over.
  • the vibration sensor 280C can be used to determine the motion state of the electronic device 200. In some embodiments, the vibration sensor 280C can be used to determine whether the motion state of the electronic device 200 has changed in accordance with a preset condition. For example, whether the electronic device 200 is in a "shaking and shaking" motion state.
  • the direction sensor 280D can be used to sense the magnitude of the inertial force of the electronic device 200 in a certain direction and to measure the acceleration and gravity of the electronic device 200 in that direction.
  • the vibration sensor 280C can be used to determine whether the motion state of the electronic device 200 has changed in accordance with a preset condition.
  • the acceleration sensor 280E can detect the magnitude of the acceleration of the electronic device 200 in various directions (generally three axes). When the electronic device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
  • the electronic device 200 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 200 may use the distance sensor 280F to measure the distance to achieve fast focusing.
  • the proximity light sensor 280G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 200 emits infrared light to the outside through the light emitting diode.
  • the electronic device 200 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 200. When insufficient reflected light is detected, the electronic device 200 may determine that there is no object near the electronic device 200.
  • the electronic device 200 can use the proximity light sensor 280G to detect that the user holds the electronic device 200 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 280G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the temperature sensor 280J is used to detect temperature.
  • the electronic device 200 uses the temperature detected by the temperature sensor 280J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 280J exceeds a threshold value, the electronic device 200 performs a reduction in the performance of the processor located near the temperature sensor 280J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 200 when the temperature is lower than another threshold, the electronic device 200 heats the battery 242 to avoid abnormal shutdown of the electronic device 200 due to low temperature.
  • the electronic device 200 boosts the output voltage of the battery 242 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 280K also called “touch panel”.
  • the touch sensor 280K may be disposed on the display screen 294, and the touch screen is composed of the touch sensor 280K and the display screen 294, which is also called a “touch screen”.
  • the touch sensor 280K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 294.
  • the touch sensor 280K may also be disposed on the surface of the electronic device 200, which is different from the position of the display screen 294.
  • the ambient light sensor 280L is used to sense the brightness of the ambient light.
  • the electronic device 200 can adaptively adjust the brightness of the display screen 294 according to the perceived brightness of the ambient light.
  • the ambient light sensor 280L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 280L can also cooperate with the proximity light sensor 280G to detect whether the electronic device 200 is in the pocket to prevent accidental touch.
  • the button 290 includes a power button, a volume button, and so on.
  • the button 290 may be a mechanical button. It can also be a touch button.
  • the electronic device 200 may receive key input, and generate key signal input related to user settings and function control of the electronic device 200.
  • the SIM card interface 295 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 295 or pulled out from the SIM card interface 295 to achieve contact and separation with the electronic device 200.
  • the electronic device 200 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 295 may support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 295 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 295 can also be compatible with different types of SIM cards.
  • the SIM card interface 295 may also be compatible with external memory cards.
  • the electronic device 200 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the software system of the electronic device 200 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • an Android system with a layered architecture is taken as an example to illustrate the software structure of the electronic device 200.
  • FIG. 2B is a software structure block diagram of an electronic device 200 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application program layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views. For example, a Bluetooth scanning interface that includes multiple link identifiers can display the link identifier corresponding to the electronic device 2 and the link identifier corresponding to the electronic device 3.
  • the phone manager is used to provide the communication function of the electronic device 200. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message notification, Bluetooth pairing success notification, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • FIG. 3A is a schematic diagram of a scenario in which the method for displaying a Bluetooth device identifier is applied according to an embodiment of the present application.
  • the first electronic device, the second electronic device, the third electronic device, and the fourth electronic device 4 in the Bluetooth communicable range are taken as an example, wherein each electronic device is provided with a Bluetooth module.
  • the first electronic device is a mobile phone 2
  • the second electronic device is a tablet computer
  • the third electronic device is a mobile phone 1
  • the fourth electronic device is a notebook computer.
  • the aforementioned mobile phones 1, mobile phones 2, notebook computers, and tablet computers can all broadcast Bluetooth messages.
  • Bluetooth messages broadcast by each other can be received, and the Bluetooth scanning interface can be displayed.
  • the user of the mobile phone 1 wants to share data with the mobile phone 2 through the mobile phone 1 as an example, that is, the mobile phone 1 and the mobile phone 2 establish Bluetooth communication.
  • FIG. 3B it is a flowchart of a method for displaying a Bluetooth device identifier provided by an embodiment of this application.
  • the method may include step 301 to step 306.
  • the method of the embodiment of the present application will be described by taking the state change of the mobile phone as an example of the change in the motion state of the mobile phone meeting a preset condition.
  • Step 301 Mobile phone 1 broadcasts Bluetooth message 1.
  • the Bluetooth message 1 may include the access address of the mobile phone 1 and other information.
  • the Bluetooth message 1 may also include the Bluetooth name of the mobile phone 1.
  • the Bluetooth name of the mobile phone 1 is "A's shouji1".
  • Step 302 The movement state of the mobile phone 2 changes to meet the preset conditions, and the mobile phone 2 broadcasts the Bluetooth message 2.
  • the Bluetooth message 2 may include the indication information 1 and the access address of the mobile phone 2.
  • the indication information 1 is used to indicate that the movement state of the mobile phone 2 has undergone a change that meets the preset conditions.
  • the Bluetooth message 2 may also include the Bluetooth name of the mobile phone 2.
  • the Bluetooth name of the mobile phone 2 is "Linda's shouji2".
  • the mobile phone 2 broadcasts a Bluetooth message 2 including the indication information 1.
  • the preset condition for the mobile phone 2 to broadcast the Bluetooth message 2 is that the mobile phone 2 is in a shake state. When the mobile phone 2 is in the shaking state, the mobile phone 2 broadcasts a Bluetooth message 2.
  • the preset condition for the mobile phone 2 to broadcast the Bluetooth message 2 is that the mobile phone 2 is in the inverted state. When the mobile phone 2 is in the flipped state, the mobile phone 2 broadcasts the Bluetooth message 2.
  • the data format of the Bluetooth message 2 is shown in Table 1 below.
  • the reserved bit in the Bluetooth message is set as the indicated position, and the indicated position is used to store the indication information 1.
  • the mobile phone 2 detects that its own motion state has changed in accordance with a preset condition, and then generates the indication information 1, and stores the indication information 1 in a reserved bit in the Bluetooth message. This allows other devices that have received the Bluetooth message 2 to recognize that the Bluetooth message includes the indication information 1 according to the reserved bit in the data format of the Bluetooth message 2.
  • the Bluetooth message 2 includes the indication information 1. That is to say, the mobile phone 2 detects that its own motion state has changed in accordance with the preset conditions, and in response to the change in the motion state of the mobile phone 2 that meets the preset conditions, motion is x is generated, and the motion is x is stored in the Bluetooth message 2 In the reserved bits. In this way, the Bluetooth message includes indication information 1.
  • mobile phone 1 when mobile phone 1 broadcasts Bluetooth message 1, mobile phone 1 does not detect a change in its own motion state that meets the preset conditions, and the information stored in the reserved bit of Bluetooth message 1 by mobile phone 1 is motion is null . That is, the indication information 1 is not included in the Bluetooth message.
  • Step 303 The tablet computer broadcasts a Bluetooth message 3.
  • the Bluetooth message 3 may include information such as the access address of the tablet computer.
  • the Bluetooth message 3 may also include the Bluetooth name of the tablet computer.
  • the Bluetooth name of the tablet computer is "cay's pad Pro”.
  • Step 304 The laptop computer broadcasts the Bluetooth message 4.
  • the Bluetooth message 4 may include information such as the access address of the notebook computer.
  • the Bluetooth message 4 may also include the Bluetooth name of the notebook computer.
  • the Bluetooth name of the notebook computer is "Helen's matebook”.
  • the Bluetooth message 1 broadcast by the mobile phone 1 does not include the indication information 1.
  • the motion state of the tablet computer has not changed to meet the preset conditions, and the Bluetooth message 3 broadcast by the tablet computer does not include the indication information 1.
  • the exercise state of the notebook computer has not changed to meet the preset conditions, and the Bluetooth message 4 broadcast by the notebook computer does not include the indication information 1.
  • Bluetooth message 1 Bluetooth message 1
  • Bluetooth message 3 is the second Bluetooth messages
  • Bluetooth message 2 is the first Bluetooth message
  • the aforementioned indication information 1 is the first indication information.
  • the motion state of the aforementioned preset condition may be that the electronic device is in a motion state of "shaking and shaking".
  • the Bluetooth message broadcast by the mobile phone 2 includes indication information 1, which is used to indicate that the mobile phone 2 is in the motion state of "shaking and shaking”.
  • the direction sensor in the mobile phone 2 can detect the change of the direction information of the mobile phone 2, and the processor in the mobile phone 2 determines whether the mobile phone 2 is in the "shaking" state according to the data of the direction sensor. Or, the gyroscope sensor and the vibration sensor in the mobile phone 2 are based on the detected direction information of the mobile phone and the change in the vibration state of the mobile phone. "status.
  • the motion state of the foregoing preset condition is that the electronic device is in a motion state of "turning over".
  • the Bluetooth message broadcast by the mobile phone 2 may include indication information 1, which is used to indicate that the mobile phone 2 is in the "flip" motion state.
  • the gyroscope sensor in the mobile phone 2 can detect the movement posture of the mobile phone 2, and the processor in the mobile phone 2 can determine whether the mobile phone 2 is in a "flipping" movement state according to the data of the gyroscope sensor.
  • the mobile phone 2 includes various sensors, for example, an acceleration sensor, a distance sensor, a proximity light sensor, a temperature sensor, a touch sensor, an ambient light sensor, etc.
  • other status data can also be carried in the Bluetooth message.
  • the distance sensor can detect the distance between the earpiece position of the mobile phone 2 and other objects, and whether the earpiece position of the mobile phone 2 is blocked can be used as the indication information, and it can be determined whether the earpiece position of the mobile phone 2 is blocked according to the data of the distance sensor. If the position of the handset of mobile phone 2 is blocked, the Bluetooth message broadcast by cell phone 2 includes indication information; if the position of the handset 2 is not blocked, the Bluetooth message broadcast by cell phone 2 does not include indication information.
  • the state of the mobile phone 2 given by the temperature sensor, the ambient light sensor, and the acceleration sensor can also be used as the indication information, which will not be repeated here.
  • each electronic device can broadcast Bluetooth messages.
  • the data of the Bluetooth message broadcast by each electronic device is different.
  • the Bluetooth message broadcast by the mobile phone 2 includes instruction information 1, and the Bluetooth message broadcast by the mobile phone 1, the laptop computer, and the tablet computer does not include the instruction information 1.
  • the Bluetooth message broadcast by the mobile phone 2 includes the indication information 1.
  • the mobile phone 2 can always broadcast the Bluetooth message (the Bluetooth message including the indication information 1) within the preset duration (the second preset duration). For example, if the exercise state that meets the preset condition is "shaking", the Bluetooth message broadcast by the mobile phone 2 includes the indication information 1, and the Bluetooth message broadcast by the mobile phone 2 within 10 seconds includes the first indication information.
  • the foregoing second preset duration may be 5 seconds, 10 seconds, 15 seconds, etc., which is not specifically limited.
  • Step 305 The mobile phone 1 displays the Bluetooth scanning interface and scans the Bluetooth message.
  • the mobile phone 1 when the mobile phone 1 performs Bluetooth communication with other electronic devices, after the mobile phone 1 scans the Bluetooth message of the electronic device, it can establish Bluetooth with the electronic device in response to the user's selection operation of the link identifier corresponding to the electronic device. connect. As shown in Figure 4, it is the Bluetooth scanning interface displayed by the mobile phone 1. As shown in Figure 4, the Bluetooth scanning interface of the mobile phone 1 shows that the mobile phone 1 is scanning for Bluetooth messages.
  • step 301 and step 305 may be executed steps after the mobile phone 1 displays the Bluetooth scanning interface, and then step 301 and step 305 may be executed in combination. That is, step 301 may be that the mobile phone 1 displays the Bluetooth scanning interface, broadcasts the Bluetooth message 1 and scans the Bluetooth message.
  • the Bluetooth scanning interface of the mobile phone 1 may also display exercise prompt information, which is used to prompt the user of the exercise state under preset conditions. As shown in Figure 5, the exercise prompt message is "Let your friend shake the phone".
  • the Bluetooth message broadcast by the electronic device may include the indication information 1. That is, the mobile phone 2 shakes according to the prompt information on the Bluetooth scanning interface of the mobile phone 1, and the mobile phone 2 broadcasts the Bluetooth message 2 including the instruction information 1.
  • Step 306 In response to receiving the Bluetooth message 2, the Bluetooth message 3, and the Bluetooth message 4, the mobile phone 1 displays the link identification a, the link identification b, and the link identification c on the Bluetooth scanning interface. Wherein, the above-mentioned link identifier a is displayed in a highlighted manner.
  • the link identification a corresponds to the mobile phone 2
  • the link identification b corresponds to the tablet computer
  • the link identification c corresponds to the tablet computer.
  • the mobile phone 1 receives the Bluetooth message and can recognize the information included in the reserved bits in the Bluetooth message. In this way, the mobile phone 1 can determine whether the Bluetooth message includes indication information according to the information in the reserved bits. .
  • the mobile phone 1 recognizes that the reserved bit information of the Bluetooth message 2 is motion is x, it is determined that the Bluetooth message 2 includes the indication information 1.
  • the mobile phone 1 recognizes that the information of the reserved bit of the Bluetooth message 3 is motion is null, and determines that the indication information 1 is not included in the Bluetooth message 3.
  • the instruction information 1 indicates that the movement state of the electronic device that sent the Bluetooth message has changed in accordance with the preset condition, and the instruction information 1 indicates that the electronic device that has received the Bluetooth message displays the Bluetooth message in a highlighted manner.
  • the mobile phone 1 receives the Bluetooth message 2, and the mobile phone 1 recognizes the Bluetooth message 2, and recognizes that the reserved bit information of the Bluetooth message is motion is x. Then the mobile phone 1 responds to the information of the reserved bit in the Bluetooth message 2 as motion is x, and the mobile phone 1 can determine that the motion state of the mobile phone 2 that broadcasts the Bluetooth message 2 has changed in accordance with the preset conditions, and the mobile phone 1 highlights The display mode displays the link identification corresponding to the Bluetooth message 2.
  • the Bluetooth message of the mobile phone 2 includes the indication information 1.
  • the mobile phone 1 displays the link identifier a in a highlighted manner. If the user of the mobile phone 1 wants to control the mobile phone 1 to establish a Bluetooth connection with the mobile phone 2, the mobile phone 1 displays the link identification a corresponding to the mobile phone 2 in a highlighted manner. This allows the user to quickly find the link identifier a when viewing the Bluetooth scanning interface of the mobile phone 1, so that the mobile phone 1 can establish Bluetooth communication with the mobile phone 2, thereby improving the user experience.
  • the mobile phone 1 displays the link identifier a in a highlighted manner on the Bluetooth scanning interface, which specifically includes: the link identifier corresponding to the mobile phone 2 in the Bluetooth scanning interface of the mobile phone 1 is displayed in other link identifiers (such as link identifier b and link Before marking c). Or, the link identifier a in the Bluetooth scanning interface of the mobile phone 1 is selected. Or, the link identifier a is displayed in the Bluetooth scanning interface of the mobile phone 1 in a manner different from other link identifiers. Alternatively, the link identifier a corresponding to the mobile phone 2 in the Bluetooth scanning interface of the mobile phone 1 corresponds to a preset identifier, and the link identifier a is displayed before other link identifiers, etc.
  • displaying the link identifier a in a highlighted manner is as long as the display mode of the link identifier a is different from other link identifiers. In this way, when the user views the Bluetooth scanning interface of the mobile phone 1, the link identifier a corresponding to the mobile phone 2 can be quickly found.
  • the mobile phone 1 receives the Bluetooth message 2 and recognizes the data format of the Bluetooth message 2. In response to the Bluetooth message 2 including the indication information 1, the mobile phone 1 displays the link identification corresponding to the mobile phone 2 in a highlighted manner. It should be noted that the way of highlighting may be different in different devices. For example, the highlighting can be different font formats, different font sizes, and so on.
  • the link identifier a corresponding to the mobile phone 2 is "Linda's shouji2”
  • the link identifier b corresponding to the tablet computer is “cay's pad Pro”
  • the link identifier c corresponding to the laptop computer is "Helen's matebook”.
  • the Bluetooth scanning interface of the mobile phone 1 includes a link identification a (Linda's shouji2), a link identification b (Helen's matebook), and a link identification c (cay's pad Pro).
  • the link identification a is located before other link identifications. .
  • the Bluetooth scanning interface of the mobile phone 1 includes Linda's shouji2, Helen's matebook and cay's pad Pro, and the link identification a also corresponds to a preset identification 601.
  • the Bluetooth scanning interface of mobile phone 1 includes Linda’s shouji2, Helen’s matebook and cay’s pad Pro.
  • the link identifier a is located before other link identifiers, and the link identifier a also corresponds to a preset identifier 601.
  • the Bluetooth scanning interface of mobile phone 1 includes Linda’s shouji2, Helen’s matebook and cay’s pad Pro, and the link identifier a is selected.
  • the preset logo 601 may also be that the display area of the link logo a is in other colors, as shown in Fig. 6E.
  • the Bluetooth scanning interface of mobile phone 1 includes Linda’s shouji2, Helen’s matebook, and cay’s pad Pro.
  • the link identifier a corresponds to the preset identifier 601, that is, the color of the display box where the link identifier a is located is different from that of the display box where the other link identifiers are located. colour.
  • the Bluetooth is turned on and the Bluetooth message is broadcast.
  • the mobile phone 1 receives the Bluetooth message broadcast by other electronic devices, in response to receiving the Bluetooth message of the electronic device, the mobile phone 1 can update the Bluetooth scanning interface, and the mobile phone 1 can update the link identification in the Bluetooth scanning interface. The number and arrangement order are updated.
  • the mobile phone 1 updating the link identification in the Bluetooth scanning interface may change the display order of the link identification. If the mobile phone 1 has not received the user's selection operation of the link identification at this time, the mobile phone 1 will update the link identification in the Bluetooth scanning interface so that The user needs to reconfirm the location of the link identifier that he wants to connect to, which increases the difficulty for the user to find the first link identifier corresponding to the mobile phone 2.
  • the mobile phone 1 after the mobile phone 1 receives the Bluetooth message broadcast by the mobile phone 2, it responds to that the Bluetooth message of the mobile phone 2 includes the first indication information.
  • the mobile phone 2 may start from receiving the Bluetooth message of the mobile phone 2, and keep the display mode of the link identifier a corresponding to the mobile phone 2 on the Bluetooth scanning interface of the mobile phone 1 unchanged within the first preset time period.
  • the link identifier a is displayed in the Bluetooth scanning interface of the mobile phone 1 before the other link identifiers, and the mobile phone 1 keeps the first indication for the first preset time.
  • the display mode of a link mark on the Bluetooth scanning interface remains unchanged.
  • the first preset time may be 5 seconds, 10 seconds, 15 seconds, or the like.
  • the method of displaying the Bluetooth device identification in the embodiment of the present application allows the user to quickly find the link identification corresponding to the electronic device that he wants to connect when viewing the Bluetooth scanning interface on the mobile phone 1.
  • the mobile phone 1 displays the link identification a in a highlighted manner, which reduces the difficulty for the user to find the Bluetooth device identification for Bluetooth pairing. Improve user experience.
  • the electronic device that the user wants to connect to is a notebook computer
  • the same account (the first account) can be logged in the notebook computer and the mobile phone 2 so that the mobile phone 1 displays the link identifier c corresponding to the notebook computer in a highlighted manner.
  • FIG. 7 it is a flowchart of another method for displaying a Bluetooth device identifier provided by an embodiment of this application.
  • the electronic device 1, electronic device 2, electronic device 3, and electronic device 4 are still included in the Bluetooth communicable range as an example, wherein each electronic device is provided with a Bluetooth module.
  • electronic device 1 is a mobile phone 1
  • electronic device 2 is a mobile phone 2
  • electronic device 3 is a notebook computer
  • electronic device 4 is a tablet computer.
  • the method may include step 701 to step 708.
  • the mobile phone 2 is logged in to the first account, and the laptop computer is also logged in to the first account.
  • Step 701 Mobile phone 1 broadcasts Bluetooth message 1.
  • the Bluetooth message 1 may include the access address of the mobile phone 1 and other information.
  • the Bluetooth message 1 may also include the Bluetooth name of the mobile phone 1.
  • the Bluetooth name of the mobile phone 1 is "A's shouji1".
  • the Bluetooth message 1 broadcast by the mobile phone 1 may also include the account of the mobile phone 1 login.
  • the Bluetooth message 1 may include the second account.
  • Step 702 The movement state of the mobile phone 2 changes to meet the preset conditions, and the mobile phone 2 broadcasts the Bluetooth message 2.
  • the Bluetooth message 2 includes the indication information 1 and the first account.
  • the indication information 1 is used to display the link identifier corresponding to the mobile phone 2 in a highlighted manner, and the first account is used to indicate that the mobile phone 2 has logged in to the first account.
  • the reserved bits of the Bluetooth message 2 may also include the first account currently logged in by the mobile phone 2 (such as account A). Specifically, when mobile phone 2 broadcasts Bluetooth message 2, mobile phone 2 detects that account A (account is A) is currently logged into the system, and stores account A in the reserved position of Bluetooth message 2. This allows other devices that have received the Bluetooth message 2 to recognize that the system of the mobile phone 2 has logged in account A according to the information in the reserved bits of the Bluetooth message 2.
  • mobile phone 2 logs in to account A (account is A), and the reserved bits of the Bluetooth message broadcast by mobile phone 2 include account is A.
  • the Bluetooth message 2 includes the indication information 1 and the first account.
  • the Bluetooth message 2 may also include the Bluetooth name of the mobile phone 2.
  • the Bluetooth name of the mobile phone 2 is "Linda's shouji2".
  • Step 703 The tablet computer broadcasts a Bluetooth message 3.
  • the Bluetooth message 3 may include information such as the access address of the tablet computer.
  • the Bluetooth message 3 may also include the Bluetooth name of the tablet computer.
  • the Bluetooth name of the tablet computer is "cay's pad Pro”.
  • the Bluetooth message 3 may also include an account for logging in to the tablet computer. For example, if a third account is logged in to the tablet computer, the Bluetooth message 3 may also include the third account.
  • Step 704 The laptop computer broadcasts a Bluetooth message 4.
  • the Bluetooth message 4 may include information such as the first account number and the access address of the notebook computer.
  • the information included in the reserved bits in the Bluetooth message 4 is: account is A.
  • the Bluetooth message 4 may also include the Bluetooth name of the notebook computer.
  • the Bluetooth name of the notebook computer is "Linda's matebook”.
  • the Bluetooth message 2 broadcast by the mobile phone 2 includes the first indication information and the first account
  • the Bluetooth message 4 broadcast by the laptop computer includes the first account
  • the Bluetooth message 3 broadcast by the tablet computer does not include the first account.
  • An instruction message does not include the first account number.
  • the laptop After the laptop receives the Bluetooth message 2 broadcast by the mobile phone 2, the laptop broadcasts the Bluetooth message.
  • Step 705 The notebook computer responds to receiving the Bluetooth message 2 of the mobile phone 2, where the Bluetooth message 2 includes the first account number and the instruction information 1.
  • the notebook computer can receive Bluetooth message 1, Bluetooth message 2, and Bluetooth message 3. In other words, when the Bluetooth of the notebook computer is in the on state, the notebook computer can determine the information in the Bluetooth packet 2 according to the received Bluetooth packet broadcast by other electronic devices.
  • Step 706 In response to the bluetooth message 2 of the mobile phone 2 including the first account number and the instruction information 1, the notebook computer broadcasts the bluetooth message 5 including the instruction information 2.
  • the indication information 2 is the above-mentioned second indication information.
  • the instruction information 2 is used to indicate that the link identifier corresponding to the notebook computer is displayed in a highlighted manner.
  • the mobile phone 2 broadcasts the Bluetooth message 2 including the indication information 1.
  • the movement status on the laptop computer has not changed in compliance with the conditions.
  • the Bluetooth message broadcasted by the laptop computer includes instruction information 2, so that other electronic devices can highlight the Bluetooth message after receiving the Bluetooth message broadcast by the laptop computer. Display the link identifier corresponding to the laptop.
  • the indication information 2 and the indication information 1 have the same function, and both are used to indicate that the link identifier corresponding to the Bluetooth message is displayed in a highlighted manner.
  • the content of the indication information 1 and the indication information 2 may be the same, for example, the indication information 1 is motion is x, and the indication information 2 is also motion is x.
  • the information in the reserved bit in response to the Bluetooth message 2 is: motion is x, account is A.
  • the notebook computer responds to the account information in the Bluetooth message 2 (ie account is A) that is the same as the account logged in by its own system, then the notebook computer can change the indication information 1 (ie motion is x) in the reserved bit in the Bluetooth message 2 As the indication information of the Bluetooth message broadcast by itself (namely indication information 2). That is to say, the movement state of the notebook computer does not change to meet the preset conditions, and the notebook computer can use the instruction information 1 in the Bluetooth message of its own login account information as the instruction information of the Bluetooth message broadcast by itself.
  • the information in the reserved bits of the Bluetooth message 5 broadcast by the laptop is: motion is x, account is A.
  • motion is x is the indication information 1 in the Bluetooth message 2
  • account is A is the first account logged in by the laptop.
  • Step 707 The mobile phone 1 displays the Bluetooth scanning interface and scans the Bluetooth message.
  • Step 708 In response to receiving the Bluetooth message 2, the Bluetooth message 3 and the Bluetooth message 5, the mobile phone 1 displays the link identification a, the link identification b, and the link identification c on the Bluetooth scanning interface, which are displayed in a highlighted manner Link identification a and link identification c.
  • the mobile phone 2 corresponds to the link identifier a
  • the tablet computer corresponds to the link identifier b
  • the laptop computer corresponds to the link identifier c.
  • the mobile phone 1 receives the Bluetooth message, and can recognize the information included in the reserved bits in the Bluetooth message. In this way, the mobile phone 1 can determine, according to the information in the reserved bits in the Bluetooth message, whether the Bluetooth message includes the indication information 1, and the system login account of the device broadcasting the Bluetooth message.
  • the mobile phone 1 recognizes that the reserved bit information of the Bluetooth message 2 is motion is x, account is A. In this way, the mobile phone 1 can determine whether the Bluetooth message includes the indication information 1 and the first account according to the information in the reserved bit.
  • the mobile phone 1 recognizes that the information of the reserved bit of the Bluetooth message 5 is motion is x, account is A. In this way, the mobile phone 1 can determine whether the Bluetooth message includes indication information 1 (instruction information 2) and the first information according to the information in the reserved bit.
  • An account number The mobile phone 1 recognizes that the reserved bit information of the Bluetooth message 3 is account is B. In this way, the mobile phone 1 can determine whether the third account (account B) is included in the Bluetooth message according to the information in the reserved bit.
  • both the Bluetooth message 2 and the Bluetooth message 5 include the indication information 1 (motion is x), and the link identifier a and the link identifier c are both displayed by the mobile phone 1 in a highlighted manner.
  • step 707 and step 708 respectively correspond to step 305 and step 306 in the above embodiment, and will not be repeated here.
  • the notebook computer has not received the Bluetooth message 2 broadcast by the mobile phone 2, and the notebook computer broadcasts the Bluetooth message.
  • the electronic device may broadcast a Bluetooth message including the indication information. Assume that the user of the mobile phone 1 wants to control the mobile phone 1 to establish a Bluetooth connection with the notebook computer, and the movement state of the notebook computer is inconvenient to change.
  • the mobile phone 1 may display the electronic devices that have logged in the same account in the same display mode.
  • the mobile phone 1 recognizes that the reserved bit information of the Bluetooth message 2 is motion is x, account is A. In this way, the mobile phone 1 can determine whether the Bluetooth message includes indication information 1 and first information according to the information in the reserved bit. account.
  • the mobile phone 1 recognizes that the information of the reserved bit of the Bluetooth message 5 is account is A. In this way, the mobile phone 1 can determine whether the first account is included in the Bluetooth message according to the information in the reserved bit.
  • the mobile phone 1 recognizes that the reserved bit information of the Bluetooth message 3 is account is B. In this way, the mobile phone 1 can determine whether the third account (account B) is included in the Bluetooth message according to the information in the reserved bit.
  • the mobile phone 1 responds to the Bluetooth message 2 and the Bluetooth message 5 both including the first account.
  • the link identifier a and the Bluetooth corresponding to the Bluetooth message 2 will not be highlighted; if Bluetooth message 2 or Bluetooth message 5 includes indication information 1, then the link identifier a corresponding to Bluetooth message 2 and the link identifier corresponding to Bluetooth message 5 c are displayed in a highlighted way.
  • the mobile phone 1 when the mobile phone 1 responds to receiving the Bluetooth message 2, the Bluetooth message 3, and the Bluetooth message 4, the mobile phone 1 can determine that the Bluetooth message 2 includes the indication information 1 and the first account, and the Bluetooth message 4 includes the first account. The mobile phone 1 responds to the indication information 1 included in the Bluetooth message 2, and the mobile phone 1 displays the link identification a in a highlighted manner. In addition, the mobile phone 1 responds that both the Bluetooth message 2 and the Bluetooth message 4 include the first account, the mobile phone 1 can display the link identification a and the link identification c in a highlighted manner on the Bluetooth scanning interface.
  • the link identifier a and the link identifier c in the Bluetooth scanning interface of the mobile phone 1 are displayed before other link identifiers (such as link identifier b). That is to say, the link identification c corresponding to the notebook computer may be displayed before the link identification b and after the link identification a; or the link identification c may be displayed before the link identification a and the link identification b.
  • both the link identifier a and the link identifier c in the Bluetooth scanning interface of the mobile phone 1 are selected.
  • both the link identifier a and the link identifier c in the Bluetooth scanning interface of the mobile phone 1 include preset identifiers.
  • the link identifier c in the Bluetooth scanning interface of the mobile phone 1 includes a preset identifier, and the link identifier c is displayed before other link identifiers. That is to say, on the Bluetooth scanning interface of the mobile phone 1, the link identification a and the link identification c are both displayed in a highlighted manner, and the display format is the same.
  • the Bluetooth scanning interface of the mobile phone 1 includes a link identifier a (Linda’s shouji2), a link identifier c (Linda’s matebook) and a link identifier b (cay’s pad Pro).
  • the link identifier a and the link identifier c are located at Before the link identifier b. As shown in FIG.
  • the Bluetooth scanning interface of the mobile phone 1 includes Linda's shouji2, Linda's matebook and cay's pad Pro, and the link identification a and the link identification c both correspond to the preset identification 601.
  • the Bluetooth scanning interface of the mobile phone 1 includes Linda's shouji2, Linda's matebook and cay's pad Pro, and both the link identifier a and the link identifier c are selected.
  • the Bluetooth scanning interface of the mobile phone 1 includes Linda’s shouji2, Linda’s matebook and cay’s pad Pro.
  • the link identifier a and the link identifier c are located before the third link identifier, and both the link identifier a and the link identifier c correspond to a preset identifier 601.
  • the Bluetooth scanning interface of mobile phone 1 includes Linda’s shouji2, Linda’s matebook and cay’s pad Pro.
  • the color of the display box of the link identifier a and the link identifier c is the same, and the color of the display box is different from that of the link identifier b. .
  • an electronic device whose motion state cannot undergo a qualifying change can also broadcast a Bluetooth message including the second indication information.
  • the mobile phone 1 is displaying the Bluetooth scanning interface
  • the electronic device can be highlighted The way is displayed, so that the user can quickly find the Bluetooth device to be paired with Bluetooth.
  • the embodiment itself also provides a device for displaying Bluetooth devices, which corresponds to the mobile phone 1 in the above embodiment.
  • FIG. 9A it is a schematic diagram of a possible structure of a device for displaying a Bluetooth device.
  • the device for displaying Bluetooth devices includes: a scanning module 901, a receiving module 902, and a display module 903.
  • the scanning module 901 is used for scanning Bluetooth messages when the mobile phone 1 displays a Bluetooth scanning interface.
  • the scanning module 901 can be used to perform step 305 in FIG. 3B, and/or other processes used in the techniques described herein.
  • the receiving module 902 is configured to receive the Bluetooth message 2 broadcast by the mobile phone 2, the Bluetooth message 3 broadcast by the tablet computer, and the Bluetooth message 4 broadcast by the laptop computer.
  • the display module 903 is configured to display the link identification a, the link identification b, and the link identification c on the Bluetooth scanning interface in response to receiving the Bluetooth message 2, the Bluetooth message 3, and the Bluetooth message 4.
  • the link identification a corresponds to the mobile phone 2
  • the link identification b corresponds to a tablet computer
  • the link identification c corresponds to a notebook computer.
  • the display module may display the link identifier a in a highlighted manner, or the display module may also display the link identifier a and the link identifier c in a highlighted manner.
  • the embodiment itself also provides a device for displaying Bluetooth devices, which corresponds to the mobile phone 2 in the above embodiment.
  • FIG. 9B it is a schematic diagram of a possible structure of a device for displaying a Bluetooth device.
  • the device for displaying Bluetooth devices includes: a Bluetooth broadcasting module 904 and a detection module 905.
  • the Bluetooth broadcasting module 904 is used for broadcasting the Bluetooth message 2.
  • the Bluetooth message 2 includes indication information 1, and the indication information 1 is used to indicate that the link identifier corresponding to the mobile phone 2 is displayed in a highlighted manner.
  • the Bluetooth broadcasting module 904 broadcasts the Bluetooth message 2 including the indication information 1. Then the detection module 905 is used to detect that the motion state of the mobile phone 2 has changed in accordance with the conditions.
  • the above-mentioned electronic device includes hardware structures and/or software modules corresponding to each function.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the embodiments of the present application.
  • the embodiment of the present application may divide the above-mentioned electronic device into functional modules according to the above-mentioned method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 10 shows a schematic diagram of a possible structure of the electronic device involved in the foregoing embodiment.
  • the electronic device 100 includes a processing unit 801, a Bluetooth unit 802, a display unit 803, and a storage unit 804.
  • the processing unit 801 is used to control and manage the actions of the electronic device 100. For example, it can be used to perform step 305 in FIG. 3B, and/or other processes used in the techniques described herein.
  • the Bluetooth unit 802 is used to broadcast Bluetooth messages in the Bluetooth connection of the electronic device. For example, it can be used to perform step 301 in FIG. 3B, and/or other processes used in the techniques described herein.
  • the display unit 803 is used to display the interface of the electronic device. For example, it can be used to display a Bluetooth scanning interface. For example, it can be used to perform step 306 in FIG. 3B, and/or other processes used in the techniques described herein.
  • the storage unit 804 is used to store the program code and data of the electronic device 100. For example, it can be used to store desktop layout files.
  • the unit modules in the aforementioned electronic device 100 include but are not limited to the aforementioned processing unit 801, Bluetooth unit 802, display unit 803, and storage unit 804.
  • the electronic device 100 may also include an audio unit, a communication unit, and the like.
  • the audio unit is used to collect the voice uttered by the user and play the voice.
  • the communication unit is used to support communication between the electronic device 100 and other devices.
  • the processing unit 801 may be a processor or a controller, for example, a central processing unit (CPU), a digital signal processor (digital signal processor, DSP), or an application-specific integrated circuit (ASIC). ), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
  • the processor may include an application processor and a baseband processor. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application.
  • the processor may also be a combination for realizing computing functions, for example, including a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
  • the storage unit 804 may be a memory.
  • the audio unit may include a microphone, a speaker, a receiver, and so on.
  • the communication unit may be a transceiver, a transceiver circuit, or a communication interface.
  • the processing unit 801 is a processor (the processor 210 shown in FIG. 2A)
  • the Bluetooth unit 802 may be a Bluetooth module (the Bluetooth module 261 shown in FIG. 2A)
  • the display unit 803 is a display screen (as shown in FIG. 2A).
  • the display screen 294 may be a touch screen, and the touch screen may be integrated with a display panel and a touch panel
  • the storage unit 804 may be a memory (the internal memory 221 shown in FIG. 2A).
  • the electronic device 100 provided in the embodiment of the present application may be the electronic device 200 shown in FIG. 2A.
  • the foregoing processor, memory, and communication interface may be coupled together, for example, connected by a bus.
  • the chip system includes at least one processor 1001 and at least one interface circuit 1002.
  • the processor 1001 and the interface circuit 1002 may be interconnected by wires.
  • the interface circuit 1002 may be used to receive signals from other devices (such as the memory of an electronic device).
  • the interface circuit 1002 may be used to send signals to other devices (such as the processor 1001).
  • the interface circuit 1002 can read instructions stored in the memory, and send the instructions to the processor 1001.
  • the electronic device can execute the steps in the foregoing embodiments.
  • the chip system may also include other discrete devices, which are not specifically limited in the embodiment of the present application.
  • the embodiments of the present application also provide a computer storage medium, the computer storage medium includes computer instructions, when the computer instructions run on the above-mentioned electronic device, the electronic device is caused to perform each function or step performed by the mobile phone in the above-mentioned method embodiment .
  • the embodiments of the present application also provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute each function or step performed by the mobile phone in the above method embodiment.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be divided. It can be combined or integrated into another device, 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 parts may or may not be physically separate.
  • the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . 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 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 readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, and the software product is stored in a storage medium. It includes several instructions to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the foregoing storage media include: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

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

Abstract

本申请提供一种显示蓝牙设备标识的方法及电子设备,可以以突出显示方式显示蓝牙设备对应的链接标识,降低用户查找进行蓝牙配对的蓝牙设备标识的难度。包括:第一电子设备广播第一蓝牙报文,其中,第一蓝牙报文中包括第一指示信息,该第一指示信息用于指示以突出显示方式显示第一电子设备对应的第一链接标识;第二电子设备广播第二蓝牙报文;第三电子设备显示蓝牙扫描界面,并扫描蓝牙报文;第三电子设备响应于接收到第一蓝牙报文和第二蓝牙报文,在蓝牙扫描界面显示第一链接标识和第二链接标识,其中,第一链接标识与第一电子设备对应,第二链接标识与第二电子设备对应。

Description

一种显示蓝牙设备标识的方法及电子设备
本申请要求于2020年3月11日提交国家知识产权局、申请号为202010167251.4、发明名称为“一种显示蓝牙设备标识的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及无线通信技术领域,尤其涉及一种显示蓝牙设备标识的方法及电子设备。
背景技术
蓝牙,是一种支持设备之间短距离通信的无线电技术。随着科技的发展,在人们的日常生活中出现了越来越多的具备蓝牙功能的电子设备。在蓝牙通信范围内,两个具备蓝牙功能的电子设备如果开启了蓝牙,则这两个电子设备可以进行蓝牙配对,并且蓝牙配对成功后,这两个电子设备之间可以进行数据传输。
在蓝牙配对的过程中,每个处于蓝牙扫描的电子设备上都可以显示接收到的蓝牙报文对应的链接标识,以供用户查看。用户通过电子设备可以查看链接标识对应的电子设备时,并且可以通过电子设备选择进行蓝牙配对的电子设备。其中,由于电子设备会显示蓝牙通信范围内多个蓝牙设备标识对应的链接标识,使得用户无法在多个链接标识中快速找到要进行蓝牙配对的电子设备。
发明内容
本申请提供一种显示蓝牙设备标识的方法及电子设备,电子设备以突出显示方式显示蓝牙设备对应的链接标识,降低用户查找进行蓝牙配对的蓝牙设备标识的难度。
为实现上述技术目的,本申请实施例采用如下技术方案:
第一方面,本申请提供一种显示蓝牙设备标识的方法。在该方法中,第一电子设备可以广播第一蓝牙报文,该第一蓝牙报文中包括用于指示以突出显示方式显示第一电子设备对应的第一链接标识的第一指示信息。第二电子设备可以广播第二蓝牙报文。第三电子设备可显示蓝牙扫描界面,并扫描蓝牙报文。第三电子设备可以接收到第一电子设备广播的第一蓝牙报文,以及第二电子设备广播的第二蓝牙报文。第三电子设备响应于接收到第一蓝牙报文和第三蓝牙报文,可以在上述蓝牙扫描界面显示第一链接标识和第二链接标识。其中,第一链接标识与第一电子设备对应,第二链接标识与第二电子设备对应。
其中,第三电子设备响应于第一蓝牙报文中包括第一指示信息,第三电子设备在蓝牙扫描界面以突出显示方式显示第一链接标识。
可以理解的,第一电子设备广播的第一蓝牙报文中包括第一指示信息,第一指示信息用于指示以突出显示的方式显示第一电子设备对应的链接标识。这样,当第三电子设备接收到第一电子设备广播的第一蓝牙报文,响应于第一蓝牙报文中的第一指示信息,以突出显示方式显示第一链接标识。由于第一电子设备对应的第一链接标识被突出显示,使得用户可以从蓝牙扫描界面快速找出第一链接标识,从而确定出第一电 子设备。如果第三电子设备的用户想要控制其电子设备与第一电子设备建立蓝牙连接,第三电子设备以突出显示方式显示第一链接标识,那么,第三电子设备的用户便可以快速地从蓝牙扫描界面中找到第一链接标识,以触发第三电子设备与第一电子设备建立蓝牙连接。
在一种可能的实施方式中,上述以突出显示方式显示第一链接标识包括:第一链接标识显示在第二链接标识之前,显示第一链接标识被选择,以区别突出显示方式显示第一链接标识,中的至少一种。
其中,假设第三电子设备的用户想要控制其电子设备与第一电子设备建立蓝牙连接。当用户按照第三电子设备蓝牙扫描界面的顺序依次查看链接标识,第三电子设备将第一链接标识显示在其他链接标识(第二链接标识)之前,使得用户可以在第三电子设备显示的蓝牙扫描界面上快速找到第一电子设备对应的第一链接标识。当第三电子设备显示第一链接标识被选择,或者,第三电子设备以区别突出方式显示第一链接标识。使得用户可以在第三电子设备显示的蓝牙扫描界面上快速发现第一电子设备对应的第一链接标识,有助于用户在第三电子设备的蓝牙扫描界面快速找到第一电子设备对应的第一链接标识。综上所述,以突出显示方式显示的第一链接标识,降低了用户查找第一电子设备对应的第一链接标识的难度,使得用户可以快速找到第一电子设备对应的第一链接标识。
另一种可能的实施方式中,上述第三电子设备在蓝牙扫描界面以突出显示方式显示第一链接标识,具体可以包括:从第三电子设备接收到第一蓝牙报文的时刻开始,在第一预设时长内,第三电子设备在蓝牙扫描界面以突出显示方式显示第一链接标识。也就是说,在第一预设时长内,第三电子设备的蓝牙扫描界面上显示第一链接标识的方式不变,使得用户可以在预设时间内找出第一链接标识,提高用户体验。
另一种可能的实施方式中,上述第三电子设备响应于接收到第一蓝牙报文和第二蓝牙报文之前,第三电子设备还可以在蓝牙扫描界面上显示运动提示信息。其中,运动提示信息用于提示符合预设条件的运动状态。
可以理解的,当第三电子设备在蓝牙扫描界面上显示运动提示信息时,任何用户查看第三电子设备的蓝牙扫描界面时都可以了解到符合预设条件的运动状态。当第一电子设备的用户和第三电子设备的用户想要控制其电子设备建立蓝牙连接时,第一电子设备的用户可以查看第三电子设备的蓝牙扫描界面上显示的运动提示信息,从而触发第一电子设备的运动状态发生符合预设条件的变化。
另一种可能的实施方式中,第一电子设备广播的第一蓝牙报文中包括第一指示信息,则在第一电子设备广播第一蓝牙报文之前,上述方法中还可以包括:第一电子设备检测到第一电子设备的运动状态发生符合预设条件的变化。即第一电子设备在广播第一蓝牙报文之前,其已经检测到自身的运动状态发生符合预设条件的变化。
具体地说,第一电子设备可以包括传感器模块,第一电子设备可以获取传感器模块得到的传感器数据,并根据传感器数据确定出自身的运动状态发生了符合预设条件的变化。
可以理解的,如果第一电子设备检测到自身的运动状态发生符合预设条件的变化,则第一电子设备广播的第一蓝牙报文中包括第一指示信息。也就是说,如果电子设备 广播的蓝牙报文中包括指示信息(如第一指示信息),该指示信息用于指示以突出显示方式显示该蓝牙报文对应的链接标识(如第一链接标识),那么,广播该蓝牙报文的电子设备(如第一电子设备)的运动状态发生了符合条件的变化。如果电子设备广播的蓝牙报文中不包括指示信息(如第一指示信息),那么,该电子设备(如第二电子设备)的运动状态没有发生了符合条件的变化。综上,第三电子设备可以以突出显示的方式向显示包括第一指示信息的蓝牙报文对应的链接标识,使得用户可以从蓝牙扫描界面中快速找出运动状态发生符合预设条件的变化的蓝牙设备的链接标识。
另一种可能的实施方式中,上述方法还包括:从第一电子设备检测到第一电子设备的运动状态发生符合预设条件的变化开始,第一电子设备可以在第二预设时长内一直广播第一蓝牙报文。
可以理解的,第一电子设备检测出自身的运动状态发生符合预设条件的变化,在第二预设时长内都广播第一蓝牙报文。这样,在第二预设时长内,第三电子设备在蓝牙扫描界面上都以突出显示方式显示第一链接标识,以降低第三电子设备的用户在蓝牙扫描界面上查找第一链接标识的难度,从而提升用户体验。
另一种可能的实施方式中,上述方法还包括:从第一电子设备检测到第一电子设备的运动状态发生符合预设条件的变化开始,第一电子设备在第二预设时之后,广播第三蓝牙报文。其中,第三蓝牙报文中不包括第一指示信息。
另一种可能的实施方式中,不同的电子设备可以登录同一账号。如第一电子设备和第四电子设备都可以登录第一账号。如果第一电子设备登录了第一账号,那么上述第一蓝牙报文中还可以包括该第一账号。第四电子设备可以接收到该第一蓝牙报文。也就是说,第四电子设备接收到的第一蓝牙报文不仅可以包括上述第一指示信息,还可以包括第一账号。响应于第四电子设备第一蓝牙报文中包括第一指示信息,并且第四电子设备登录了第一账号,即第一电子设备和第四电子设备登录了同一账号,第四电子设备可广播包括第二指示信息的第四蓝牙报文。其中,第二指示信息用于指示第四电子设备的运动状态发生符合预设条件的变化。也就是说,即使第四电子设备的运动状态没有发生符合预设条件;但是,如果第一电子设备的运动状态发生了符合预设条件的变化,第四电子设备接收到第一电子设备广播的蓝牙报文,且第四电子设备与第一电子设备登录了同一账号;那么,第四电子设备广播的蓝牙报文中也可以携带指示信息(如第二指示信息),以指示以突出显示方式显示第四电子设备对应的第三链接标识。
上述第三电子设备可以接收到上述第四蓝牙报文。响应于接收到第四蓝牙报文,第三电子设备可以在蓝牙扫描界面显示第三链接标识,第三链接标识与第四电子设备对应。具体的,第三电子设备响应于第四蓝牙报文中包括第二指示信息,指示在蓝牙扫描界面以突出显示方式显示第三链接标识。
可以理解,登录同一账号的电子设备一般为同一个用户的设备。当第一电子设备和第四电子设备都登录了第一账号,用户想要控制第三电子设备和第四电子设备建立蓝牙连接时。用户可以触发第一电子设备的运动状态发生符合预设条件的变化,这样,第一电子设备广播的第一蓝牙报文中可以包括第一账号和第一指示信息。第四电子设备接收到第一电子设备广播的第一蓝牙报文之后,第四电子设备可以广播包括第二指 示信息的蓝牙报文。由此一来,第三电子设备接收到包括第二指示信息的蓝牙报文,第三电子设备便可以在蓝牙扫描界面以突出显示方式显示该第四电子设备对应的第三链接标识。如此,第三电子设备的用户便可以快速地从蓝牙扫描界面中找到第三链接标识,以触发第三电子设备与第四电子设备建立蓝牙连接。
另一种可能的实施方式中,上述第四蓝牙报文中还可以包括第一账号,并且,第一电子设备广播的第一蓝牙报文中包括第一账号和第一指示信息,第三电子设备接收到第四蓝牙报文。也就是说,第三电子设备接收到的第一蓝牙报文和第四蓝牙报文中都包括第一账号。上述第三电子设备响应于第四蓝牙报文中包括第一账号,第三电子设备在蓝牙扫描界面以突出显示方式显示第三链接标识。
可以理解的,第三电子设备接收到第四蓝牙报文后,响应于第四蓝牙报文中包括第一账号,即第一电子设备和第四电子设备登录了同一账号。也就是说,即使第四电子设备的运动状态没有发生符合预设条件;但是,第一电子设备的运动状态发生了符合预设条件的变化,那么,第三电子设备依然会以突出显示方式显示第三链接标识。
第二方面,本申请还提供一种显示蓝牙设备标识的方法,该方法可以应用于第一方面中的第三电子设备,该方法中,第三电子设备显示蓝牙扫描界面,并扫描蓝牙报文。第三电子设备可以接收到来自第一电子设备的包括第一指示信息的第一蓝牙报文,该第一指示信息用于指示以突出显示方式显示第一电子设备对应的第一链接标识。第三电子设备还可以接收到来自第二电子设备的第二蓝牙报文。响应于接收到第一蓝牙报文和第二蓝牙报文,第三电子设备在上述蓝牙扫描界面显示第一链接标识和第二链接标识。其中,第一链接标识与第一电子设备对应,第二链接标识与第二电子设备对应。
其中,响应于第一蓝牙报文中包括第一指示信息,第三电子设备在蓝牙扫描界面以突出显示方式显示第一链接标识。
在一种可能的实施方式中,上述第三电子设备响应于接收到第一蓝牙报文和第二蓝牙报文,第三电子设备在上述蓝牙扫描界面显示第一链接标识和第二链接标识之前。第三电子设备上的蓝牙扫描界面上还可以显示运动提示信息,其中,运动提示信息用于提示符合预设条件的运动状态。
另一种可能的实施方式中,上述第三电子设备在蓝牙扫描界面以突出显示方式显示第一链接标识,具体可以包括:从第三电子设备接收到第一蓝牙报文开始,第三电子设备在第一预设时长内,在蓝牙扫描界面以突出显示方式显示该第一链接标识。
另一种可能的实施方式中,第一电子设备登录了第一账号,第一蓝牙报文中还包括第一账号。上述方法还包括:第三电子设备接收到来自第四电子设备的第四蓝牙报文,其中,第四蓝牙报文中包括第一账号。第三电子设备响应于接收到第四蓝牙报文,在蓝牙扫描界面显示第三链接标识;该第三链接标识与第四电子设备对应。
其中,响应于第四蓝牙报文中包括第一账号,第三电子设备在蓝牙扫描界面以突出显示方式显示第三链接标识。
第三方面,本申请还提供一种显示蓝牙设备标识的方法,该方法可以应用于第一方面中的第一电子设备,该方法可以包括:第一电子设备广播第一蓝牙报文;其中,第一蓝牙报文中包括第一指示信息,该第一指示信息用于指示以突出显示方式显示第 一电子设备对应的第一链接标识。
在一种可能的实施方式中,第一电子设备广播第一蓝牙报文之前,上述方法还可以包括:第一电子设备检测到第一电子设备的运动状态发生符合预设条件的变化。
另一种可能的实施方式中,上述方法还可以包括:从第一电子设备检测到第一电子设备的运动状态发生符合预设条件的变化开始,第一电子设备在第二预设时长内广播第一蓝牙报文。
另一种可能的实施方式中,上述方法还可以包括:从第一电子设备检测到第一电子设备的运动状态发生符合条件的变化开始,第一电子设备在第二预设时长之后,广播第三蓝牙报文;其中,第三蓝牙报文不包括第一指示信息。
另一种可能的实施方式中,第一电子设备登录了第一账号,上述第一电子设备广播第一蓝牙报文,具体包括:
第一电子设备接收到来自第五电子设备的第五蓝牙报文;其中,所述第五蓝牙报文中包括第三指示信息和第一账号,第三指示信息用于指示第五电子设备的运动状态发生符合预设条件的变化。响应于第一电子设备登录了第一账号,且第五蓝牙报文中包括该第三指示信息,第一电子设备广播包括第一指示信息的第一蓝牙报文。
第四方面,本申请实施例还提供了一种显示蓝牙设备标识的装置,包含于第三电子设备,该显示蓝牙设备标识的装置包括:扫描模块、接收模块和显示模块。
扫描模块,用于第三电子设备显示蓝牙扫描界面时,扫描蓝牙报文。接收模块,用于接收来自第一电子设备的第一蓝牙报文,接收来自第二电子设备的第二蓝牙报文。其中,第一蓝牙报文中包括第一指示信息,第一指示信息用于指示以突出显示方式显示第一电子设备对应的第一链接标识。显示模块,用于响应于接收到第一蓝牙报文和第二蓝牙报文,第三电子设备在蓝牙扫描界面显示第一链接标识和第二链接标识。其中,第一链接标识对应于第一电子设备,第二链接标识对应于第二电子设备。其中,响应于第一蓝牙报文中包括第一指示信息,第三电子设备在蓝牙扫描界面以突出显示方式显示第一链接标识。
在一种可能的实施方式中,显示模块,还用于在蓝牙扫描界面显示运动提示信息,其中,运动提示信息用于提示符合预设条件的运动状态。
另一种可能的实施方式中,显示模块,还用于从第三电子设备接收到所述第一蓝牙报文开始,第三电子设备在第一预设时长内,在蓝牙扫描界面以突出显示方式显示第一链接标识。
另一种可能的实施方式中,第一电子设备登录了第一账号,第一蓝牙报文中还可以包括第一账号。接收模块,还用于接收来自第四电子设备的第四蓝牙报文;其中,第四蓝牙报文中包括第一账号。显示模块,还用于响应于接收到第四蓝牙报文,在蓝牙扫描界面显示第三链接标识;第三链接标识对应于第四电子设备。
其中,响应于第四蓝牙报文中包括第一账号,第三电子设备在蓝牙扫描界面以突出显示方式显示第三链接标识。
第五方面,本申请实施例还提供了一种显示蓝牙设备标识的装置,包含于第一电子设备,该显示蓝牙设备标识可以包括:蓝牙广播模块。该蓝牙广播模块,用于广播第一蓝牙报文。其中,第一蓝牙报文中包括第一指示信息,第一指示信息用于指示以 突出显示方式显示第一电子设备对应的第一链接标识。
在一种可能的实施方式中,该装置还可以包括检测模块。检测模块,用于检测到第一电子设备的运动状态发生符合预设条件的变化。
另一种可能的实施方式中,蓝牙广播模块,还用于从第一电子设备检测到第一电子设备的运动状态发生符合预设条件的变化开始,第一电子设备在第二预设时长内广播第一蓝牙报文。
另一种可能的实施方式中,蓝牙广播模块,还用于从第一电子设备检测到第一电子设备的运动状态发生符合预设条件的变化开始,第一电子设备在第二预设时长之后,广播第三蓝牙报文。其中,第三蓝牙报文不包括第一指示信息。
另一种可能的实施方式中,第一电子设备登录了第一账号,上述显示蓝牙设备的装置还可以包括蓝牙接收模块。
蓝牙接收模块,可以用于接收到来自第五电子设备的第五蓝牙报文;其中,第五蓝牙报文中包括第三指示信息和第一账号,第三指示信息用于指示以突出显示方式显示第五电子设备对应的链接标识。蓝牙广播模块,还可以用于响应于第五蓝牙报文中包括第三指示信息,且第一电子设备登录了第一账号,第一电子设备广播包括第一指示信息的第一蓝牙报文。
第六方面,本申请还提供了一种电子设备,该电子设备是上述的第三电子设备,该第三电子设备可以包括:存储器、蓝牙模块、显示屏和一个或多个处理器;存储器、蓝牙模块、显示屏和处理器耦合。其中,存储器用于存储计算机程序代码,计算机程度代码包括计算机指令,当处理器执行该计算机指令时,使第三电子设备执行上述第一方面、第二方面及其任一种可能的实施方式中第三电子设备对应的步骤。
第七方面,本申请还提供一种芯片系统,该芯片系统应用于电子设备;芯片系统可以包括一个或多个接口电路和一个或多个处理器。接口电路和处理器通过线路互联,接口电路用于从电子设备的存储器接收信号,并向处理器发送该信号,该信号包括存储器中存储的计算机指令。当处理器执行上述的计算机指令时,电子设备执行第一方面、第二方面及其任一种可能的实施方式中的方法。
第八方面,本申请还提供一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行第一方面、第二方面及其任一种可能的实施方式中的方法。
第九方面,本申请还提供一种电子设备,该电子设备是上述的第一电子设备,该第一电子设备可以包括:存储器、蓝牙模块和一个或多个处理器;存储器、蓝牙模块和处理器耦合。其中,存储器用于存储计算机程序代码,计算机程度代码包括计算机指令,当处理器执行该计算机指令时,使第一电子设备执行上述第一方面、第三方面及其任一种可能的实施方式中第一电子设备对应的步骤。
第十方面,本申请还提供一种芯片系统,该芯片系统应用于电子设备;芯片系统可以包括一个或多个接口电路和一个或多个处理器。接口电路和处理器通过线路互联,接口电路用于从电子设备的存储器接收信号,并向处理器发送该信号,该信号包括存储器中存储的计算机指令。当处理器执行上述的计算机指令时,电子设备执行第一方面、第三方面及其任一种可能的实施方式中的方法。
第十一方面,本申请还提供一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行第一方面、第三方面及其任一种可能的实施方式中的方法。
第十二方面,本申请还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述第一方面、第二方面或第三方面及其任一种可能的实施方式中的方法。
可以理解的是,上述本申请提供的第二方面、第三方面及其任一种可能的实施方式中的方法,第四方面、第五方面及其任一种可能的实施方式中的显示蓝牙设备的装置,第六方面的电子设备,第七方面的芯片系统,第八方面的计算机可读存储介质,第九方面的电子设备,第十方面的芯片系统,第十一方面的计算机可读存储介质和第十二方面的计算机程序产品所能达到的有益效果,可参考如第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。
附图说明
图1A为本申请实施例提供的一种建立蓝牙通信方法的流程图;
图1B为本申请实施例提供的一种电子设备显示蓝牙标识的示意图;
图2A为本申请实施例提供的一种电子设备的结构示意图;
图2B为本申请实施例提供的一种电子设备的软件结构示意图;
图3A本申请实施例提供的一种应用场景的示意图;
图3B为本申请实施例提供的一种显示蓝牙设备标识的方法流程图;
图4为本申请实施例提供的一种蓝牙扫描界面的显示示意图;
图5为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图6A为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图6B为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图6C为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图6D为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图6E为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图7为本申请实施例提供的一种显示蓝牙设备标识的方法流程图;
图8A为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图8B为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图8C为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图8D为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图8E为本申请实施例提供的另一种蓝牙扫描界面的显示示意图;
图9A为本申请实施例提供的一种显示蓝牙设备的装置的结构示意图;
图9B为本申请实施例提供的另一种显示蓝牙设备的装置的结构示意图;
图10为本申请实施例提供的一种电子设备的结构组成示意图;
图11为本申请实施例提供的一种芯片系统的结构示意图。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的 特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
蓝牙通信的工作原理为套接字(Socket)机制,以两个电子设备进行蓝牙通信为例,Socket实际上是一个通信端点,两个电子设备都具备Socket,两个电子设备可以通过Socket传输数据。
其中,每个电子设备具备的Socket都可以是一个序号。示例性的,Socket的格式为(网际互连协议(Internet Protocol,IP)地址:端口号)。例如,一个电子设备的IP地址为210.37.145.1,并且,该电子设备的端口号是23。那么该电子设备的Socket就是(210.37.145.1:23)。
Socket是通信连接中的一个通信端点,多个电子设备可以通过Socket传输数据。以两个电子设备传输数据为例,一个电子设备将需要传输的数据写入自身的Socket中,该电子设备将Socket发送给另一个电子设备。另一个电子设备接收到Socket后,可以将接收到的Socket的中的信息保存在自身电子设备的Socket中。由此,两个电子设备完成数据的传输。
当两个电子设备建立蓝牙通信后,这两个电子设备中一个电子设备可以作为服务端,另一个电子设备可以作为客户端。具体地说,两个电子设备建立蓝牙通信的过程中,主动发起蓝牙通信请求的电子设备为客户端,另一电子设备为服务端。
建立蓝牙通信的具体过程为:客户端的电子设备建立一个Socket,通过该Socket向服务端的电子设备发送蓝牙连接请求(或称为蓝牙报文),以请求与服务端电子设备建立蓝牙通信连接。并且,服务端的电子设备也建立一个Socket,通过该Socket可以监听作为客户端的电子设备发出的蓝牙连接请求。如果服务端的电子设备响应于客户端的电子设备的蓝牙连接请求,与客户端的电子设备建立蓝牙通信连接。这样一来,由于服务端的电子设备和客户端的电子设备都具有Socket,这两个电子设备可以通过Socket进行数据传输。
以电子设备1和电子设备2建立蓝牙通信的过程为例,这两个电子设备建立蓝牙通信的过程包括:发现、配对和连接。例如,电子设备1的蓝牙发现电子设备2的蓝牙,电子设备1响应于用户的操作与电子设备2进行蓝牙配对,当电子设备1和电子设备2的蓝牙配对成功之后,电子设备1和电子设备2就建立了蓝牙通信。
上述建立蓝牙通信中的发现和配对过程的方法流程如图1A所示。该方法包括步骤101-步骤104。
步骤101:电子设备1处于蓝牙扫描状态,并监听蓝牙报文。
当电子设备1扫描蓝牙报文时,电子设备1可以监听蓝牙通信范围内多个电子设备广播蓝牙报文。本申请实施例以电子设备1和电子设备2建立蓝牙通信连接为例,图1A中仅示出电子设备1和电子设备2的交互过程,并未示出蓝牙通信范围内的其他电子设备。可以理解的是,在电子设备1扫描蓝牙报文时,还可以监听到在蓝牙通信范围内的其他电子设备广播的蓝牙报文。
步骤102:电子设备2广播蓝牙报文。
其中,该蓝牙报文用于请求与电子设备1建立蓝牙通信连接。
步骤103:电子设备1响应于接收到电子设备2广播的蓝牙报文,并在蓝牙扫描 界面显示电子设备2的链接标识。
其中,电子设备1可以根据预设的显示规则显示链接标识,以便用户查看电子设备1上的链接标识。预设的显示规则可以是监听到蓝牙报文的时间,也可以是蓝牙报文中的信号强度等。
可以理解的是,电子设备1可以接收到蓝牙通信范围内多个电子设备广播的蓝牙报文,则电子设备1可以在蓝牙扫描界面显示多个链接标识,每个链接标识对应一个电子设备。电子设备1中的显示的链接标识可以是该电子设备的设备型号,假如电子设备2的设备型号为“shouji1”,电子设备1的蓝牙扫描界面如图1B所示,电子设备1的蓝牙扫描界面包括电子设备2的链接标识以及其他电子设备的链接标识。另外,该链接标识还可以是电子设备的蓝牙名称等,此处仅是示例。
步骤104:电子设备1响应于用户对电子设备2的链接标识的选择操作,向电子设备2发送蓝牙配对请求。
如图1B中,电子设备2对应的链接标识为“shouji1”,电子设备1接收到用户对该链接标识(“shouji1”)的点击操作。
其中,如果电子设备1的蓝牙通信范围内只有电子设备2在广播蓝牙报文,则电子设备1的蓝牙扫描界面中仅显示电子设备2的链接标识。由于越来越多的电子设备都具备蓝牙功能,一般而言,电子设备1会监听到多个电子设备的蓝牙报文,并且在蓝牙扫描界面显示监听到的多个蓝牙报文的链接标识(如图1B所示)。电子设备1的蓝牙扫描界面上显示至少一个的链接标识时,使得用户无法在多个链接标识中快速找到电子设备2的链接标识。特别的,如果电子设备1监听到的蓝牙报文较多,电子设备1的蓝牙扫描界面显示的链接标识的数量也会变多,从而使得用户查找电子设备2的链接标识的难度增大。
本申请实施例提供一种显示蓝牙设备标识的方法,该方法可以应用于建立蓝牙通信的中电子设备1显示链接标识(蓝牙设备名称)的过程。广播蓝牙报文的电子设备2,可以在蓝牙报文中设置指示信息,指示信息用于指示以突出显示方式显示电子设备2对应的链接标识(如第一链接标识)。接收到该蓝牙报文的电子设备1可以响应于该指示信息,以突出显示方式显示电子设备2对应的链接标识,使得用户易于发现电子设备2的链接标识。由此一来,用户在查看电子设备1的蓝牙扫描界面上的链接标识时,可以快速找到电子设备2的链接标识,提高用户体验。
需要说明的,当电子设备2处于预设状态时,电子设备2可以广播包括指示信息的蓝牙报文。上述预设状态包括但不限于:电子设备2处于“摇一摇”状态,或电子设备2处于“翻转”状态等。例如,电子设备2处于“摇一摇”状态,则电子设备2响应于“摇一摇”的运动状态生成指示信息,电子设备2广播包括指示信息的蓝牙报文。这样一来,电子设备1响应于蓝牙报文中的指示信息,以突出显示方式显示电子设备2的链接标识。从而降低了用户在电子设备1显示的蓝牙扫描界面查找电子设备2对应的链接标识的难度。
示例性的,本申请实施例中的电子设备可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、车载设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant, PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等,本申请实施例对该电子设备的具体形态不作特殊限制。
以蓝牙可通信范围中包括电子设备1、电子设备2、电子设备3和电子设备4为例,其中,每个电子设备都设置有蓝牙模块,且每个电子设备都可以广播蓝牙报文。例如,电子设备1、电子设备2、电子设备3和电子设备4都可以广播蓝牙报文,以电子设备1(第三电子设备)处于蓝牙扫描状态为例,电子设备1可以接收电子设备2、电子设备3和电子设备4广播的蓝牙报文。同理,如果电子设备2、电子设备3和电子设备4处于蓝牙扫描状态时,也可以接收到电子设备1广播的蓝牙报文。其中,如果电子设备2(第一电子设备)在广播蓝牙报文之前,检测到自身的运动状态发生符合预设条件的变化,则电子设备2广播的蓝牙报文(第一蓝牙报文)中包括第一指示信息。
示例性的,假设电子设备1是手机1,手机1可以在以下场景中应用本申请实施例中的方法,本申请实施例中的方法可以应用在以下场景中。
场景1:手机1向手机2分享数据。
具体的,手机1向手机2分享数据之前与手机2建立蓝牙通信。手机1显示蓝牙扫描界面,并扫描蓝牙报文。手机1可以接收到包括手机2蓝牙报文的多个蓝牙报文,手机1显示多个电子设备对应的链接标识,手机1的用户不能快速识别出手机2的链接标识。
在这种情况下,执行本申请实施例中的方法。手机2检测到自身的运动状态发生了符合预设条件的变化,例如,手机2处于摇一摇的状态、手机2处于翻转状态等。手机2广播的蓝牙报文中包括指示信息(第一指示信息)。手机1响应于接收到手机2广播的蓝牙报文(第一蓝牙报文)中的指示信息,以突出显示方式显示手机2对应的链接标识(第一链接标识)。
其中,以突出显示方式显示手机2对应的链接标识包括以下显示方式:手机1的蓝牙扫描界面中手机2对应的链接标识显示在其他的链接标识之前;手机1的蓝牙扫描界面中手机2对应的链接标识还包括有预设标识;手机1的蓝牙扫描界面中手机2对应的链接标识包括有预设标识,而且手机2对应的链接标识显示在其他链接标识之前;手机1的蓝牙扫描界面中手机2对应的链接标识被选中;手机1的蓝牙扫描界面中以区别于其他的链接标识的方式显示手机2对应的链接标识等。
由此一来,用户在使用手机1向手机2分享数据时,可以快速找到手机2对应的链接标识。手机1和手机2可以建立蓝牙通信,以便手机1向手机2分享数据。
场景2:手机1向蓝牙耳机分享数据。
具体的,手机1向蓝牙耳机分享数据之前与蓝牙耳机建立蓝牙通信。由于蓝牙耳机具有记忆功能,如果手机1曾经与蓝牙耳机建立过蓝牙通信,当蓝牙耳机的蓝牙与手机1的蓝牙同时处于开启状态,手机1可以自动与蓝牙耳机建立蓝牙通信。也就是说,当手机1第一次与蓝牙耳机建立蓝牙通信,需要手机1的用户根据蓝牙扫描界面上显示的链接标识,查找到蓝牙耳机对应的链接标识。由于手机1可以接收到包括蓝牙耳机的蓝牙报文在内的多个蓝牙报文,并将每个电子设备对应的链接标识显示在蓝牙扫描界面,手机1的用户不能快速查找到蓝牙耳机对应的链接标识。
在这种情况下,执行本申请实施例中的方法。用户可以触发蓝牙耳机的运动状态 发生符合预设条件的变化,例如,蓝牙耳机处于摇一摇的状态。蓝牙耳机广播的蓝牙报文中可以包括指示信息(第一指示信息),手机1响应于接收到蓝牙耳机广播的包括指示信息的蓝牙报文。手机1以突出显示方式显示蓝牙耳机对应的链接标识,使得手机1的用户可以查找到以突出显示方式显示的蓝牙耳机的链接标识。
其中,以突出显示方式显示的蓝牙耳机对应的链接标识与上述场景1中显示手机2的链接标识相同,此处不予赘述。
场景3:手机1向笔记本电脑分享数据。
具体的,手机1向笔记本电脑分享数据之前,手机1与笔记本电脑建立蓝牙通信。并且,手机2和笔记本电脑上登录的账号相同,例如,手机2和笔记本电脑上都登录了第一账号。手机1可以接收到手机2、笔记本电脑和平板电脑广播的蓝牙报文,手机1的蓝牙扫描界面显示手机2、笔记本电脑和平板电脑对应的链接标识,用户在查看手机1显示的蓝牙扫描界面时,不能快速识别出笔记本电脑对应的链接标识。
在这种情况下,执行本申请实施例中的方法。第一种实现方式为,手机2检测到自身的运动状态发生了符合预设条件的变化,手机2广播的蓝牙报文中包括指示信息和第一账号。笔记本电脑广播的蓝牙报文包括第一账号。手机1响应于手机2的蓝牙报文和笔记本电脑的蓝牙报文,手机1确定出手机2的蓝牙报文和笔记本电脑的蓝牙报文中都包括第一账号,并且,手机1确定手机2的蓝牙报文中包括指示信息,则手机1以突出显示方式显示笔记本电脑对应的链接标识。
其中,手机1以突出显示方式显示笔记本电脑对应的链接标识时包括:手机1的蓝牙扫描界面中手机2对应的链接标识和笔记本电脑对应的链接标识显示在其他的链接标识之前;或者,手机1的蓝牙扫描界面中笔记本电脑对应的链接标识还包括有预设标识;或者,手机1的蓝牙扫描界面中笔记本电脑对应的链接标识包括有预设标识,而且笔记本电脑对应的链接标识显示在其他链接标识之前;或者,手机1的蓝牙扫描界面中手机2对应的链接标识和笔记本电脑对应的链接标识被选中;或者,手机1的蓝牙扫描界面中以区别于其他的链接标识的方式显示手机2对应的链接标识和笔记本电脑对应的链接标识。
第二种实现方式为,手机2检测到自身的运动状态发生了符合预设条件的变化,手机2广播的蓝牙报文中包括指示信息和第一账号。笔记本电脑处于蓝牙扫描界面,笔记本电脑可以接收手机2广播的蓝牙报文。笔记本电脑确定手机2的蓝牙报文中包括第一账号,并且手机2广播的蓝牙报文中包括指示信息,笔记本电脑广播的蓝牙报文中包括指示信息(第二指示信息),第二指示信息用于指示笔记本电脑的运动状态发生了符合预设条件的变化。手机1响应于笔记本电脑的蓝牙报文,手机1以突出显示方式显示笔记本电脑对应的链接标识。
其中,以突出显示方式显示的笔记本电脑对应的链接标识与上述场景1中显示手机2的链接标识相同,此处不予赘述。
由此一来,用户在使用手机1向笔记本电脑分享数据时,可以快速找到笔记本电脑对应的链接标识。手机1和笔记本电脑可以建立蓝牙通信,以便手机1向笔记本电脑分享数据。
以下将结合附图,对本申请实施例中的技术方案进行说明。
请参考图2A,为本申请实施例提供的一种电子设备200的结构示意图。如图2A所示,该电子设备200可以包括处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,传感器模块280,按键290,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。其中传感器模块280可以包括压力传感器280A,陀螺仪传感器280B,振动传感器280C,方向传感器280D,加速度传感器280E,距离传感器280F,接近光传感器280G,温度传感器280J,触摸传感器280K,环境光传感器280L等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备200的具体限定。在本申请另一些实施例中,电子设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备200的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备200的结构限定。在本申请另一些实施例中,电子设备200也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备200的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括 指令。处理器210通过运行存储在内部存储器221的指令,从而执行电子设备200的各种功能应用以及数据处理。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备200使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,外部存储器,显示屏294,无线通信模块260和蓝牙模块261等供电。
电子设备200的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器以及基带处理器等实现。
移动通信模块250可以提供应用在电子设备200上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块250还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。
无线通信模块260可以提供应用在电子设备200上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。其中,无线通信模块可以包括蓝牙模块261,Wi-Fi模块262,FM模块263和NFC模块264等。其中,无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
蓝牙模块261可以支持短距离无线通信。在一些实施例中,蓝牙模块261可以监听其他电子设备的蓝牙模块广播的蓝牙报文。另一些实施例中,蓝牙模块261可以与传感器模块280建立通信,获取传感器模块的数据。如果传感器的数据表征电子设备200的运动状态发生符合预设条件的变化,电子设备200可以根据传感器模块的数据生成指示信息,蓝牙模块261广播的蓝牙报文中可以包括该指示信息。
电子设备200通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏294用于显示图像,视频等。显示屏294包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备200可以包括1个或N个显示屏294,N为大于1的正整数。
在一些实施例中,当电子设备200显示蓝牙扫描界面,电子设备200可以监听到其他电子设备广播的蓝牙报文,电子设备200的显示屏294可以显示其他电子设备对应的链接标识。
电子设备200可以通过音频模块270,以及应用处理器等实现音频功能。例如音乐播放,录音等。
电子设备200可以通过传感器模块280中的各个传感器获取传感器数据,并通过传感器数据确定电子设备的运动状态。在一些实施例中,传感器模块280可以与蓝牙模块261建立通信连接,向蓝牙模块261发送传感器数据。
压力传感器280A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器280A可以设置于显示屏294。压力传感器280A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器280A,电极之间的电容改变。电子设备200根据电容的变化确定压力的强度。当有触摸操作作用于显示屏294,电子设备200根据压力传感器280A检测所述触摸操作强度。电子设备200也可以根据压力传感器280A的检测信号计算触摸的位置。
陀螺仪传感器280B可以用于确定电子设备200的运动姿态。在一些实施例中,可以通过陀螺仪传感器280B确定电子设备200围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器280B可以用于拍摄防抖。在一些实施例中,陀螺仪传感器可以用于确定电子设备200是否被翻转。
振动传感器280C可以用于确定电子设备200的运动状态。在一些实施例中,可以通过振动传感器280C确定电子设备200的运动状态是否发生符合预设条件的变化。例如,电子设备200是否处于“摇一摇”的运动状态。
方向传感器280D可以用于感应电子设备200在某个方向上惯性力大小和衡量电子设备200在该方向上的加速度与重力。在一些实施例中,可以通过振动传感器280C确定电子设备200的运动状态是否发生符合预设条件的变化。
加速度传感器280E可检测电子设备200在各个方向上(一般为三轴)加速度的大小。当电子设备200静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器280F,用于测量距离。电子设备200可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备200可以利用距离传感器280F测距以实现快速对焦。
接近光传感器280G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。 发光二极管可以是红外发光二极管。电子设备200通过发光二极管向外发射红外光。电子设备200使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备200附近有物体。当检测到不充分的反射光时,电子设备200可以确定电子设备200附近没有物体。电子设备200可以利用接近光传感器280G检测用户手持电子设备200贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器280G也可用于皮套模式,口袋模式自动解锁与锁屏。
温度传感器280J,用于检测温度。在一些实施例中,电子设备200利用温度传感器280J检测的温度,执行温度处理策略。例如,当温度传感器280J上报的温度超过阈值,电子设备200执行降低位于温度传感器280J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备200对电池242加热,以避免低温导致电子设备200异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备200对电池242的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器280K,也称“触控面板”。触摸传感器280K可以设置于显示屏294,由触摸传感器280K与显示屏294组成触摸屏,也称“触控屏”。触摸传感器280K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏294提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器280K也可以设置于电子设备200的表面,与显示屏294所处的位置不同。
环境光传感器280L用于感知环境光亮度。电子设备200可以根据感知的环境光亮度自适应调节显示屏294亮度。环境光传感器280L也可用于拍照时自动调节白平衡。环境光传感器280L还可以与接近光传感器280G配合,检测电子设备200是否在口袋里,以防误触。
按键290包括开机键,音量键等。按键290可以是机械按键。也可以是触摸式按键。电子设备200可以接收按键输入,产生与电子设备200的用户设置以及功能控制有关的键信号输入。
SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口295拔出,实现和电子设备200的接触和分离。电子设备200可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口295可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口295可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口295也可以兼容不同类型的SIM卡。SIM卡接口295也可以兼容外部存储卡。电子设备200通过SIM卡和网络交互,实现通话以及数据通信等功能。
电子设备200的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备200的软件结构。
图2B是本发明实施例的电子设备200的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程 序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2B所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2B所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括多个链接标识的蓝牙扫描界面,可以显示电子设备2对应的链接标识,以及显示电子设备3对应的链接标识。
电话管理器用于提供电子设备200的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒,蓝牙配对成功提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体 库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
以下实施例中的均可以在具备上述硬件结构的电子设备中实现。
请参考图3A,为本申请实施例提供的应用该显示蓝牙设备标识的方法的场景示意图。本申请实施例中以蓝牙可通信范围中包括第一电子设备、第二电子设备、第三电子设备和第四电子设备4为例,其中,每个电子设备都设置有蓝牙模块。假设第一电子设备是手机2、第二电子设备是平板电脑,第三电子设备是手机1,第四电子设备是笔记本电脑。
其中,上述手机1、手机2、笔记本电脑和平板电脑都可以广播蓝牙报文。并且,可以接收到彼此广播的蓝牙报文,显示蓝牙扫描界面。本申请实施例中以手机1的用户想要通过手机1向手机2分享数据为例,即手机1与手机2建立蓝牙通信。
具体的,如图3B所示,为本申请实施例提供的一种显示蓝牙设备标识的方法的流程图,该方法可以包括步骤301-步骤306。其中,本申请实施例中以手机的状态变化为手机的运动状态发生符合预设条件的变化为例,对本申请实施例的方法进行说明。
步骤301:手机1广播蓝牙报文1。
其中,蓝牙报文1中可以包括手机1的接入地址等信息。
在一些实施例中,蓝牙报文1中还可以包括手机1的蓝牙名称,例如,手机1的蓝牙名称为“A的shouji1”。
步骤302:手机2的运动状态发生符合预设条件的变化,手机2广播蓝牙报文2。
其中,蓝牙报文2可以包括指示信息1和手机2的接入地址。该指示信息1用于指示手机2的运动状态发生符合预设条件的变化。
在一些实施例中,蓝牙报文2中还可以包括手机2的蓝牙名称,例如,手机2的蓝牙名称为“Linda的shouji2”。
可以理解的,手机2的状态发生预设条件的变化,则手机2广播包括指示信息1的蓝牙报文2。例如,手机2广播蓝牙报文2的预设条件为手机2处于摇一摇状态。当手机2处于摇一摇状态时,手机2广播蓝牙报文2。又例如,手机2广播蓝牙报文2的预设条件为手机2处于翻转状态。当手机2处于翻转状态时,手机2广播蓝牙报文2。
在一些实施例中,蓝牙报文2的数据格式如下表1所示。当手机2确定自身的运动状态发生符合预设条件的变化,则蓝牙报文中的保留位设置为指示位置,指示位置用于存放指示信息1。
表1:
Figure PCTCN2021078329-appb-000001
示例性的,手机2检测到自身的运动状态发生符合预设条件的变化,则生成指示 信息1,并将指示信息1存放在蓝牙报文中的保留位中。使得接收到蓝牙报文2的其他设备,可以根据蓝牙报文2的数据格式中的保留位识别到该蓝牙报文中包括指示信息1。
例如,如果手机2广播的蓝牙报文2的保留位中保存的信息为:motion is null,则说明蓝牙报文2中不包括指示信息1。如果手机2广播的蓝牙报文2的保留位中的保存的信息为:motion is x,则说明蓝牙报文2中包括指示信息1。也就是说,手机2检测到自身的运动状态发生符合预设条件的变化,响应于手机2的运动状态发生符合预设条件的变化生成motion is x,并将motion is x存储在蓝牙报文2的保留位中。这样,蓝牙报文中包括指示信息1。
可以理解的,手机1在广播蓝牙报文1时,手机1没有检测到自身的运动状态发生符合预设条件的变化,则手机1在蓝牙报文1的保留位中保存的信息为motion is null。即蓝牙报文中不包括指示信息1。
步骤303:平板电脑广播蓝牙报文3。
其中,蓝牙报文3中可以包括平板电脑的接入地址等信息。
在一些实施例中,蓝牙报文3中还可以包括平板电脑的蓝牙名称,例如,平板电脑的蓝牙名称为“cay的pad Pro”。
步骤304:笔记本电脑广播蓝牙报文4。
其中,蓝牙报文4中可以包括笔记本电脑的接入地址等信息。
在一些实施例中,蓝牙报文4中还可以包括笔记本电脑的蓝牙名称,例如,笔记本电脑的蓝牙名称为“Helen的matebook”。
可以理解,由于手机1的运动状态未发生符合预设条件的变化,手机1广播的蓝牙报文1中不包括指示信息1。平板电脑的运动状态未发生符合预设条件的变化,平板电脑广播的蓝牙报文3中不包括指示信息1。笔记本电脑的运动状态未发生符合预设条件的变化,笔记本电脑广播的蓝牙报文4中不包括指示信息1。
需要说明的是,上述蓝牙报文1、蓝牙报文3和蓝牙报文4是第二蓝牙报文,蓝牙报文2是第一蓝牙报文,上述指示信息1是第一指示信息。
示例性的,上述预设条件的运动状态可以为电子设备处于“摇一摇”的运动状态。例如,手机2处于“摇一摇”的运动状态,则手机2广播的蓝牙报文包括指示信息1,该指示信息1用于指示手机2处于“摇一摇”的运动状态。
其中,手机2中的方向传感器可以根据检测到的手机2的方向信息的变化,手机2中的处理器根据方向传感器的数据确定出手机2是否处于“摇一摇”的状态。或者,手机2中的陀螺仪传感器和振动传感器根据检测到的手机方向信息以及手机振动状态的变化,手机2中的处理器根据陀螺仪传感器和振动传感器的数据确定手机2是否处于“摇一摇”的状态。
又示例性的,上述预设条件的运动状态为电子设备处于“翻转”的运动状态。例如,手机2处于“翻转”的运动状态,则手机2广播的蓝牙报文中可以包括指示信息1,该指示信息1用于指示手机2处于“翻转”的运动状态。
其中,手机2中的陀螺仪传感器可以检测到手机2的运动姿态,手机2中的处理器可以根据陀螺仪传感器的数据确定手机2是否处于“翻转”的运动状态。
需要说明的是,由于手机2中包括多种传感器,例如,加速度传感器,距离传感器,接近光传感器,温度传感器,触摸传感器,环境光传感器等。在具体实施中,还可以根据在蓝牙报文中携带其他的状态数据。如,距离传感器可以检测到手机2听筒位置与其他物体的距离,可以将手机2的听筒位置是否被遮挡作为指示信息,根据距离传感器的数据确定手机2的听筒位置是否被遮挡。如果手机2的听筒位置被遮挡,则手机2广播的蓝牙报文中包括指示信息;如果手机2的听筒位置未被遮挡,则手机2广播的蓝牙报文中不包括指示信息。另外,还可以以温度传感器、环境光传感器和加速度传感器等给出的手机2的状态作为指示信息,此处不予赘述。
由此可见,当电子设备处于蓝牙开启状态时,每个电子设备都可以广播蓝牙报文。但是,每个电子设备广播的蓝牙报文的数据不同。例如,手机2广播的蓝牙报文中包括指示信息1,手机1、笔记本电脑和平板电脑广播的蓝牙报文中不包括指示信息1。
在一些实施方式中,由于手机2运动状态发生符合预设条件的变化,则手机2广播的蓝牙报文中包括指示信息1。并且,手机2可以在预设时长(第二预设时长)内始终广播该蓝牙报文(包括指示信息1的蓝牙报文)。例如,符合预设条件的运动状态为“摇一摇”,手机2广播的蓝牙报文中包括指示信息1,则在10秒内手机2广播的蓝牙报文都包括第一指示信息。上述第二预设时长可以是5秒、10秒、15秒等,具体不做限定。
步骤305:手机1显示蓝牙扫描界面,并扫描蓝牙报文。
可以理解的是,手机1与其他电子设备进行蓝牙通信时,手机1扫描到该电子设备的蓝牙报文之后,可以响应于用户对该电子设备对应的链接标识的选择操作与该电子设备建立蓝牙连接。如图4所示,为手机1显示的蓝牙扫描界面。如图4所示,手机1的蓝牙扫描界面中显示手机1在扫描蓝牙报文。
需要说明的,手机1显示蓝牙扫描界面后,手机1的蓝牙处于开启状态,则手机1可以广播蓝牙报文,也可以扫描蓝牙报文。也就是说,步骤301和步骤305可以是手机1显示蓝牙扫描界面之后的执行步骤,则步骤301和步骤305可以合并执行。即步骤301可以是手机1显示蓝牙扫描界面,广播蓝牙报文1并扫描蓝牙报文。
在一些实施方式中,手机1的蓝牙扫描界面还可以显示运动提示信息,该运动提示信息用于提示用户预设条件的运动状态。如图5所示,该运动提示信息为“让你的朋友摇一摇手机”。当电子设备根据手机1的蓝牙扫描界面上的提示信息操作时,电子设备广播的蓝牙报文中可以包括指示信息1。也就是说,手机2根据手机1的蓝牙扫描界面上的提示信息摇一摇,则手机2广播包括指示信息1的蓝牙报文2。
步骤306:手机1响应于接收到蓝牙报文2、蓝牙报文3和蓝牙报文4,手机1在蓝牙扫描界面显示链接标识a、链接标识b和链接标识c。其中,上述链接标识a以突出显示方式显示。
其中,链接标识a与手机2对应,链接标识b与平板电脑对应,链接标识c与平板电脑对应。
在一些实施方式中,手机1接收到蓝牙报文,可以识别出蓝牙报文中的保留位所包括的信息,这样,手机1可以根据保留位中的信息确定蓝牙报文中是否包括指示信息1。
例如,手机1识别出蓝牙报文2的保留位的信息为motion is x,则确定蓝牙报文2中包括指示信息1。手机1识别出蓝牙报文3的保留位的信息为motion is null,则确定蓝牙报文3中不包括指示信息1。
可以理解的,指示信息1表示发送该蓝牙报文的电子设备的运动状态发生了符合预设条件的变化,则指示信息1指示接收到该蓝牙报文的电子设备以突出显示方式显示该蓝牙报文对应的链接标识。
示例性的,手机1接收到蓝牙报文2,手机1识别该蓝牙报文2,并识别出蓝牙报文的保留位的信息为motion is x。则手机1响应于蓝牙报文2中保留位的信息为motion is x,手机1可以确定出广播该蓝牙报文2的手机2的运动状态发生了符合预设条件的变化,则手机1以突出显示方式显示蓝牙报文2对应的链接标识。
可以理解的是,手机2的蓝牙报文中包括指示信息1,手机1响应于该蓝牙报文中包括指示信息1,手机1以突出显示方式显示链接标识a。假如手机1的用户想要控制其手机1与手机2建立蓝牙连接,手机1以突出显示方式显示手机2对应的链接标识a。使得用户在查看手机1的蓝牙扫描界面时,可以快速找到链接标识a,以便手机1可以与手机2建立蓝牙通信,进而提高用户体验。
在一些实施方式中,手机1在蓝牙扫描界面以突出显示方式显示链接标识a,具体包括:手机1的蓝牙扫描界面中手机2对应的链接标识显示在其他的链接标识(如链接标识b和链接标识c)之前。或者,手机1的蓝牙扫描界面中的链接标识a被选中。或者,手机1的蓝牙扫描界面中以区别于其他链接标识的方式显示链接标识a。或者,手机1的蓝牙扫描界面中手机2对应的链接标识a对应预设标识,而且链接标识a显示在其他链接标识之前等。
可以理解的,以突出显示的方式显示链接标识a为:只要链接标识a的显示方式与其他链接标识不同即可。这样一来,当用户查看手机1的蓝牙扫描界面时,可以快速发现手机2对应的链接标识a。
其中,手机1接收到蓝牙报文2,识别蓝牙报文2的数据格式,响应于蓝牙报文2包括指示信息1,手机1以突出显示方式显示手机2对应的链接标识。需要说明的,不同的设备中突出显示的方式可以是不同的。例如,突出显示可以是字体的格式不同,还可以是字体大小不同等。
例如,手机2对应的链接标识a为“Linda的shouji2”,平板电脑对应的链接标识b为“cay的pad Pro”,笔记本电脑对应的链接标识c为“Helen的matebook”。如图6A所示,手机1的蓝牙扫描界面包括,链接标识a(Linda的shouji2),链接标识b(Helen的matebook)和链接标识c(cay的pad Pro),链接标识a位于其他链接标识之前。如图6B所示,手机1的蓝牙扫描界面包括,Linda的shouji2,Helen的matebook和cay的pad Pro,链接标识a还对应有预设标识601。如图6C所示,手机1的蓝牙扫描界面包括,Linda的shouji2,Helen的matebook和cay的pad Pro。链接标识a位于其他链接标识之前,并且,链接标识a还对应有预设标识601。如图6D所示,手机1的蓝牙扫描界面包括,Linda的shouji2,Helen的matebook和cay的pad Pro,链接标识a被选中。
可以理解的是,上述图6B所示的手机1的蓝牙扫描界面中有预设标识601。预设 标识601还可以是链接标识a的显示区域为其他颜色,如图6E所示。手机1的蓝牙扫描界面包括,Linda的shouji2,Helen的matebook和cay的pad Pro,链接标识a对应预设标识601,即链接标识a所在位置的显示框颜色不同于其他链接标识所在位置显示框的颜色。
如果手机1在蓝牙通信范围内有其他的电子设备打开了蓝牙,并广播蓝牙报文。手机1在接收到其他电子设备广播的蓝牙报文之后,响应于接收到该电子设备的蓝牙报文,手机1可以对蓝牙扫描界面进行更新,手机1可以对蓝牙扫描界面中的链接标识的个数和排列顺序进行更新。
其中,手机1更新蓝牙扫描界面中的链接标识可能会改变链接标识的显示顺序,如果此时手机1还未收到用户对链接标识的选择操作,则手机1更新蓝牙扫描界面中的链接标识使得用户需要再次确认想要连接的链接标识的位置,增大了用户查找手机2对应的第一链接标识的难度。
在一些实施方式中,手机1接收到手机2广播的蓝牙报文后,响应于手机2的蓝牙报文中包括第一指示信息。手机2可以从接收到手机2的蓝牙报文开始,在第一预设时长内,保持手机2对应的链接标识a在手机1的蓝牙扫描界面上的显示方式不变。
例如,手机1在接收到手机2的蓝牙报文中包括第一指示信息后,在手机1的蓝牙扫描界面中链接标识a显示在其他链接标识之前,在第一预设时间内手机1保持第一链接标识在蓝牙扫描界面上的显示方式不变。其中,第一预设时间可以为5秒、10秒或15秒等。
相对于传统的蓝牙通信连接中,本申请实施例中显示蓝牙设备标识的方法,使得用户在查看手机1上的蓝牙扫描界面时,可以快速找到想要连接的电子设备对应的链接标识。手机1上以突出显示方式显示链接标识a,降低用户查找进行蓝牙配对的蓝牙设备标识的难度。提高用户体验。
可以理解的是,由于手机2的体积较小,适合用户手持,易于改变手机2的运动状态。如果用户想要连接的电子设备是笔记本电脑,可以在笔记本电脑和手机2上登录相同的账号(第一账号),使得手机1以突出显示方式显示笔记本电脑对应的链接标识c。
如图7所示,为本申请实施例提供的另一种显示蓝牙设备标识的方法的流程图。
需要说明的是,本申请实施例中仍然以蓝牙可通信范围中包括电子设备1、电子设备2、电子设备3和电子设备4为例,其中,每个电子设备都设置有蓝牙模块。假设电子设备1是手机1、电子设备2是手机2、电子设备3是笔记本电脑、电子设备4是平板电脑。
具体的,该方法可以包括步骤701-步骤708。
需要说明的是,本申请实施例中,手机2登录了第一账号,笔记本电脑也登录了第一账号。
步骤701:手机1广播蓝牙报文1。
其中,蓝牙报文1中可以包括手机1的接入地址等信息。
在一些实施例中,蓝牙报文1中还可以包括手机1的蓝牙名称,例如,手机1的蓝牙名称为“A的shouji1”。
另外,手机1广播的蓝牙报文1中还可以包括手机1登录的账号。例如,手机1登录了第二账号,蓝牙报文1中可以包括第二账号。
示例性的,假设第二账号表示为account is C,则蓝牙报文3中保留位包括的信息为:account is C。
步骤702:手机2的运动状态发生符合预设条件的变化,手机2广播蓝牙报文2。
其中,蓝牙报文2包括指示信息1和第一账号。该指示信息1用于以突出显示方式显示手机2对应的链接标识,第一账号用于指示手机2登录了第一账号。
在一些实施例中,蓝牙报文2的保留位中还可包括手机2当前登录的第一账号(如账号A)。具体地说,手机2广播蓝牙报文2时,手机2检测到系统当前登录了账号A(account is A),将账号A存放在蓝牙报文2的保留位。使得接收到蓝牙报文2的其他设备,可以根据该蓝牙报文2的保留位中的信息,识别出手机2的系统登录了账号A。
例如,手机2登录了账号A(account is A),手机2广播的蓝牙报文的保留位中包括account is A。
示例性的,手机2检测到自身的运动状态发生符合预设条件的变化,并且手机2的系统当前登录了账号A,则手机1在蓝牙报文1的保留位包括的信息为:motion is x,account is A。即蓝牙报文2中包括指示信息1和第一账号。
在一些实施例中,蓝牙报文2中还可以包括手机2的蓝牙名称,例如,手机2的蓝牙名称为“Linda的shouji2”。
步骤703:平板电脑广播蓝牙报文3。
其中,蓝牙报文3中可以包括平板电脑的接入地址等信息。
在一些实施例中,蓝牙报文3中还可以包括平板电脑的蓝牙名称,例如,平板电脑的蓝牙名称为“cay的pad Pro”。
另外,蓝牙报文3中还可以包括平板电脑登录的账号。例如,平板电脑登录了第三账号,蓝牙报文3中还可以包括第三账号。
示例性的,假设第三账号表示为account is B,则蓝牙报文3中保留位包括的信息为:account is B。
步骤704:笔记本电脑广播蓝牙报文4。
其中,蓝牙报文4中可以包括第一账号和笔记本电脑的接入地址等信息。
示例性的,假设第一账号表示为account is A,则蓝牙报文4中保留位包括的信息为:account is A。
在一些实施例中,蓝牙报文4中还可以包括笔记本电脑的蓝牙名称,例如,笔记本电脑的蓝牙名称为“Linda的matebook”。
可以理解的是,手机2广播的蓝牙报文2中包括第一指示信息和第一账号,笔记本电脑广播的蓝牙报文4中包括第一账号,平板电脑广播的蓝牙报文3中不包括第一指示信息,也不包括第一账号。
第一种情况中:笔记电脑接收到手机2广播的蓝牙报文2之后,笔记本电脑广播蓝牙报文。
步骤705:笔记本电脑响应于接收到手机2的蓝牙报文2,其中,该蓝牙报文2 中包括第一账号和指示信息1。
如果笔记本电脑的蓝牙处于开启状态,笔记本电脑可以接收到蓝牙报文1、蓝牙报文2和蓝牙报文3。也就是说,当笔记本电脑的蓝牙处于开启状态时,笔记本电脑可以根据接收到的其他电子设备广播的蓝牙报文,并确定该蓝牙报文2中的信息。
步骤706:笔记本电脑响应于手机2的蓝牙报文2中包括第一账号和指示信息1,笔记本电脑广播包括指示信息2的蓝牙报文5。
可以理解的,指示信息2为上述第二指示信息。
其中,指示信息2用于指示以突出显示方式显示笔记本电脑对应的链接标识。
可以理解的是,手机2的运动状态发生了符合预设条件的变化,则手机2广播包括指示信息1的蓝牙报文2。实际上,笔记本电脑上的运动状态并未发生符合条件的变化,笔记本电脑广播的蓝牙报文中包括指示信息2,使得其他电子设备接收到笔记本电脑广播的蓝牙报文后,可以以突出显示方式显示笔记本电脑对应的链接标识。
其中,指示信息2和指示信息1的作用相同,均用于指示以突出显示方式显示蓝牙报文对应的链接标识。则指示信息1和指示信息2的内容可以是相同的,例如,指示信息1为motion is x,指示信息2也为motion is x。
示例性的,响应于蓝牙报文2的保留位中的信息为:motion is x,account is A。笔记本电脑响应于蓝牙报文2中的账号信息(即account is A)与自身的系统登录的账号相同,则笔记本电脑可以将蓝牙报文2中保留位中的指示信息1(即motion is x)作为自身广播的蓝牙报文的指示信息(即指示信息2)。也就是说,笔记本电脑的运动状态并未发生符合预设条件的变化,笔记本电脑可以与自身登录账号信息的蓝牙报文中的指示信息1作为自身广播的蓝牙报文的指示信息。这样,笔记本电脑广播的蓝牙报文5的保留位中的信息为:motion is x,account is A。其中,motion is x是蓝牙报文2中的指示信息1,account is A是笔记本电脑登录的第一账号。
步骤707:手机1显示蓝牙扫描界面,并扫描蓝牙报文。
步骤708:手机1响应于接收到蓝牙报文2、蓝牙报文3和蓝牙报文5,手机1在蓝牙扫描界面显示链接标识a、链接标识b和链接标识c,其中,以突出显示方式显示链接标识a和链接标识c。
其中,手机2对应链接标识a,平板电脑对应链接标识b,笔记本电脑对应链接标识c。
在一些实施例中,手机1接收到蓝牙报文,可以识别出蓝牙报文中的保留位所包括的信息。这样,手机1可以根据蓝牙报文中保留位中的信息确定出该蓝牙报文中是否包括指示信息1,以及广播该蓝牙报文的设备的系统登录的账号。
例如,手机1识别出蓝牙报文2的保留位的信息为motion is x,account is A,这样,手机1可以根据保留位中的信息确定蓝牙报文中是否包括指示信息1和第一账号。手机1识别出蓝牙报文5的保留位的信息为motion is x,account is A,这样,手机1可以根据保留位中的信息确定蓝牙报文中是否包括指示信息1(指示信息2)和第一账号。手机1识别出蓝牙报文3的保留位的信息为account is B,这样,手机1可以根据保留位中的信息确定蓝牙报文中是否包括第三账号(账号B)。
可以理解的,蓝牙报文2和蓝牙报文5中都包括指示信息1(motion is x),则链 接标识a和链接标识c均被手机1以突出显示方式显示。
需要说明的是,上述步骤707和步骤708分别与上述实施方式中的步骤305和步骤306对应,此处不予赘述。
第二种情况中:笔记电脑还未接收到手机2广播的蓝牙报文2,笔记本电脑广播蓝牙报文。
由于电子设备的运动状态发生了符合预设条件的变化,则电子设备可以广播包括指示信息的蓝牙报文。假设手机1的用户想要控制手机1和笔记本电脑建立蓝牙连接,笔记本电脑的运动状态不便于发生变化。
在一些实施例中,手机1可以将登录了同一账号的电子设备以相同的显示方式显示。
示例性的,手机1识别出蓝牙报文2的保留位的信息为motion is x,account is A,这样,手机1可以根据保留位中的信息确定蓝牙报文中是否包括指示信息1和第一账号。手机1识别出蓝牙报文5的保留位的信息为account is A,这样,手机1可以根据保留位中的信息确定蓝牙报文中是否包括第一账号。手机1识别出蓝牙报文3的保留位的信息为account is B,这样,手机1可以根据保留位中的信息确定蓝牙报文中是否包括第三账号(账号B)。手机1响应于蓝牙报文2和蓝牙报文5中都包括第一账号,如果蓝牙报文2和蓝牙报文5中均不包括指示信息1,则蓝牙报文2对应的链接标识a和蓝牙报文5对应的链接标识c均不会被突出显示;如果蓝牙报文2或者蓝牙报文5中包括指示信息1,则蓝牙报文2对应的链接标识a和蓝牙报文5对应的链接标识c均被突出显示方式显示。
也就是说,当有多个设备广播的蓝牙报文中都包括有同一账号(如账号A),只要具备同一账号的蓝牙报文中有一个蓝牙报文的保留位中包括指示信息1,则具备同一账号的蓝牙报文对应的链接标识都可以被以突出显示方式显示。
例如,当手机1响应于接收到蓝牙报文2、蓝牙报文3和蓝牙报文4,手机1可以确定蓝牙报文2中包括指示信息1和第一账号,蓝牙报文4中包括第一账号。手机1响应于蓝牙报文2中包括指示信息1,手机1以突出显示方式显示链接标识a。并且,手机1响应于蓝牙报文2和蓝牙报文4中都包括第一账号,则手机1可以在蓝牙扫描界面以突出显示方式显示链接标识a和链接标识c。
也就是说,不需要执行上述步骤705和步骤706,步骤704之后,可以直接执行步骤707和步骤708。
具体地说,手机1的蓝牙扫描界面中链接标识a和链接标识c显示在其他的链接标识(如链接标识b)之前。也就是说,笔记本电脑对应的链接标识c可以显示在链接标识b之前,链接标识a之后;或者,链接标识c可以显示在链接标识a和链接标识b之前。
或者,手机1的蓝牙扫描界面中链接标识a和链接标识c都被选中。
或者,手机1的蓝牙扫描界面中链接标识a和链接标识c都包括有预设标识。
或者,手机1的蓝牙扫描界面中链接标识c包括有预设标识,而且链接标识c显示在其他链接标识之前。也就是说,在手机1的蓝牙扫描界面上,链接标识a和链接标识c都以突出显示方式显示,且显示的格式相同。
示例性的,假设链接标识a为“Linda的shouji2”,平板电脑对应的链接标识b为“cay的pad Pro”,笔记本电脑对应的链接标识c为“Linda的matebook”。如图8A所示,手机1的蓝牙扫描界面包括,链接标识a(Linda的shouji2),链接标识c(Linda的matebook)和链接标识b(cay的pad Pro),链接标识a和链接标识c位于链接标识b之前。如图8B所示,手机1的蓝牙扫描界面包括,Linda的shouji2,Linda的matebook和cay的pad Pro,链接标识a和链接标识c均对应有预设标识601。如图8C所示,手机1的蓝牙扫描界面包括,Linda的shouji2,Linda的matebook和cay的pad Pro,链接标识a和链接标识c都被选中。如图8D所示,手机1的蓝牙扫描界面包括,Linda的shouji2,Linda的matebook和cay的pad Pro。链接标识a和链接标识c位于第三链接标识之前,并且,链接标识a和链接标识c都对应有预设标识601。如图8E所示,手机1的蓝牙扫描界面包括,Linda的shouji2,Linda的matebook和cay的pad Pro,链接标识a和链接标识c的显示框颜色相同,且与链接标识b的显示框颜色不同。
本申请实施例中的方法,使得运动状态无法发生符合条件变化的电子设备也可以广播包括第二指示信息的蓝牙报文,当手机1在显示蓝牙扫描界面时,可以将该电子设备以突出显示方式显示,进而使得用户可以快速找到要进行蓝牙配对的蓝牙设备。
本身实施例还提供一种显示蓝牙设备的装置,对应于上述实施例中的手机1。如图9A所示,为显示蓝牙设备的装置的一种可能的结构示意图。该显示蓝牙设备的装置包括:扫描模块901、接收模块902和显示模块903。
其中,扫描模块901,用于手机1显示蓝牙扫描界面时,扫描蓝牙报文。例如,可以用于执行如图3B中的步骤305,和/或用于本文所描述的技术的其它过程。
接收模块902,用于接收来自手机2广播的蓝牙报文2,平板电脑广播的蓝牙报文3和笔记本电脑广播的蓝牙报文4。
显示模块903,用于响应于接收到蓝牙报文2、蓝牙报文3和蓝牙报文4,在蓝牙扫描界面上显示链接标识a、链接标识b和链接标识c。链接标识a对应于手机2,链接标识b对应于平板电脑,链接标识c对应于笔记本电脑。
其中,显示模块可以以突出显示方式显示链接标识a,或者,显示模块还可以以突出显示方式显示链接标识a和链接标识c。
本身实施例还提供一种显示蓝牙设备的装置,对应于上述实施例中的手机2。如图9B所示,为显示蓝牙设备的装置的一种可能的结构示意图。该显示蓝牙设备的装置包括:蓝牙广播模块904和检测模块905。
其中,蓝牙广播模块904,用于广播蓝牙报文2。其中,蓝牙报文2中包括指示信息1,指示信息1用于指示以突出显示方式显示手机2对应的链接标识。
由于手机2的运动状态发生符合预设条件的变化,则蓝牙广播模块904广播包括指示信息1的蓝牙报文2。则检测模块905,用于检测到手机2的运动状态发生符合条件的变化。
可以理解的是,上述电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件 的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
本申请实施例可以根据上述方法示例对上述电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用集成的单元的情况下,图10示出了上述实施例中所涉及的电子设备的一种可能的结构示意图。该电子设备100包括:处理单元801、蓝牙单元802、显示单元803和存储单元804。
其中,处理单元801,用于对电子设备100的动作进行控制管理。例如,可以用于执行如图3B中步骤305,和/或用于本文所描述的技术的其它过程。
蓝牙单元802,在电子设备蓝牙连接中用于广播蓝牙报文。例如,可以用于执行如图3B中步骤301,和/或用于本文所描述的技术的其它过程。
显示单元803,用于显示电子设备的界面。比如,可以用于显示蓝牙扫描界面。例如,可以用于执行如图3B中步骤306,和/或用于本文所描述的技术的其它过程。
存储单元804用于保存电子设备100的程序代码和数据。例如,可以用于储存桌面的布局文件等。
当然,上述电子设备100中的单元模块包括但不限于上述处理单元801、蓝牙单元802、显示单元803和存储单元804。例如,电子设备100中还可以包括音频单元、通信单元等。音频单元用于采集用户发出的语音,以及播放语音。通信单元用于支持电子设备100与其他装置的通信。
其中,处理单元801可以是处理器或控制器,例如可以是中央处理器(central processing unit,CPU),数字信号处理器(digital signal processor,DSP),专用集成电路(application-specific integrated circuit,ASIC),现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。处理器可以包括应用处理器和基带处理器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。存储单元804可以是存储器。音频单元可以包括麦克风、扬声器、受话器等。通信单元可以是收发器、收发电路或通信接口等。
例如,处理单元801为处理器(如图2A所示的处理器210),蓝牙单元802可以为蓝牙模块(如图2A所示的蓝牙模块261),显示单元803为显示屏(如图2A所示的显示屏294,该显示屏294可以为触摸屏,该触摸屏中可以集成显示面板和触控面板),存储单元804可以为存储器(如图2A所示的内部存储器221)。本申请实施例所提供的电子设备100可以为图2A所示的电子设备200。其中,上述处理器、存储器和通信接口等可以耦合在一起,例如通过总线连接。
本申请实施例还提供一种芯片系统,如图11所示,该芯片系统包括至少一个处理 器1001和至少一个接口电路1002。处理器1001和接口电路1002可通过线路互联。例如,接口电路1002可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路1002可用于向其它装置(例如处理器1001)发送信号。示例性的,接口电路1002可读取存储器中存储的指令,并将该指令发送给处理器1001。当所述指令被处理器1001执行时,可使得电子设备执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。
本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (33)

  1. 一种显示蓝牙设备标识的方法,其特征在于,包括:
    第一电子设备广播第一蓝牙报文;其中,所述第一蓝牙报文中包括第一指示信息,所述第一指示信息用于指示以突出显示方式显示所述第一电子设备对应的第一链接标识;
    第二电子设备广播第二蓝牙报文;
    第三电子设备显示蓝牙扫描界面,并扫描蓝牙报文;
    响应于接收到所述第一蓝牙报文和所述第二蓝牙报文,所述第三电子设备在所述蓝牙扫描界面显示第一链接标识和第二链接标识;其中,所述第一链接标识与所述第一电子设备对应,所述第二链接标识与所述第二电子设备对应;
    其中,响应于所述第一蓝牙报文中包括所述第一指示信息,所述第三电子设备在所述蓝牙扫描界面以突出显示方式显示所述第一链接标识。
  2. 根据权利要求1所述的方法,其特征在于,所述以突出显示方式显示的所述第一链接标识包括:所述第一链接标识显示在所述第二链接标识之前,显示所述第一链接标识被选择,以区别于所述第二链接标识的显示方式显示所述第一链接标识,中的至少一种。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第三电子设备在所述蓝牙扫描界面以突出显示方式显示所述第一链接标识,包括:
    从所述第三电子设备接收到所述第一蓝牙报文开始,所述第三电子设备在第一预设时长内,在所述蓝牙扫描界面以所述突出显示方式显示所述第一链接标识。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在所述第一电子设备广播第一蓝牙报文之前,所述方法还包括:
    所述第一电子设备检测到所述第一电子设备的运动状态发生符合预设条件的变化。
  5. 根据权利要求4所述的方法,其特征在于,所述响应于接收到所述第一蓝牙报文和所述第二蓝牙报文,所述第三电子设备在所述蓝牙扫描界面显示第一链接标识和第二链接标识之前,所述方法还包括:
    所述第三电子设备在所述蓝牙扫描界面显示运动提示信息,其中,所述运动提示信息用于提示符合预设条件的运动状态。
  6. 根据权利要求4或5所述的方法,其特征在于,所述方法还包括:
    从所述第一电子设备检测到所述第一电子设备的运动状态发生符合预设条件的变化开始,所述第一电子设备在第二预设时长内广播所述第一蓝牙报文。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    从所述第一电子设备检测到所述第一电子设备的运动状态发生符合预设条件的变化开始,所述第一电子设备在所述第二预设时长之后,广播第三蓝牙报文;
    其中,所述第三蓝牙报文不包括所述第一指示信息。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述第一电子设备登录了第一账号;所述方法还包括:
    第四电子设备接收到所述第一蓝牙报文;其中,所述第一蓝牙报文中还包括所述第一账号;
    响应于所述第一蓝牙报文中包括所述第一指示信息,且所述第四电子设备登录了所述第一账号,广播包括第二指示信息的第四蓝牙报文;其中,所述第二指示信息用于指示以突出显示方式显示所述第四电子设备对应的第三链接标识;
    所述第三电子设备响应于接收到所述第四蓝牙报文,在所述蓝牙扫描界面以突出显示的方式显示所述第三链接标识。
  9. 根据权利要求1-7中任一项所述的方法,其特征在于,所述第一电子设备登录了第一账号,所述第一蓝牙报文中还包括所述第一账号;所述方法还包括:
    第四电子设备登录了所述第一账号,所述第四电子设备广播第四蓝牙报文;其中,所述第四蓝牙报文中包括所述第一账号;
    所述第三电子设备响应于接收到所述第四蓝牙报文,在所述蓝牙扫描界面显示第三链接标识;所述第三链接标识与所述第四电子设备对应;
    其中,所述第三电子设备响应于所述第四蓝牙报文中包括所述第一账号,所述第三电子设备在所述蓝牙扫描界面以所述突出显示方式显示所述第三链接标识。
  10. 一种显示蓝牙设备标识的方法,其特征在于,包括:
    第三电子设备显示蓝牙扫描界面,并扫描蓝牙报文;
    所述第三电子设备接收到来自第一电子设备的第一蓝牙报文;其中,所述第一蓝牙报文中包括第一指示信息,所述第一指示信息用于指示以突出显示方式显示所述第一电子设备对应的第一链接标识;
    所述第三电子设备接收到来自第二电子设备的第二蓝牙报文;
    响应于接收到所述第一蓝牙报文和所述第二蓝牙报文,所述第三电子设备在所述蓝牙扫描界面显示第一链接标识和第二链接标识;其中,所述第一链接标识与所述第一电子设备对应,所述第二链接标识与所述第二电子设备对应;
    其中,响应于所述第一蓝牙报文中包括所述第一指示信息,所述第三电子设备在所述蓝牙扫描界面以突出显示方式显示所述第一链接标识。
  11. 根据权利要求10所述的方法,其特征在于,所述响应于接收到所述第一蓝牙报文和所述第二蓝牙报文,所述第三电子设备在所述蓝牙扫描界面显示第一链接标识和第二链接标识之前,所述方法还包括:
    所述第三电子设备在所述蓝牙扫描界面显示运动提示信息,其中,所述运动提示信息用于提示符合预设条件的运动状态。
  12. 根据权利要求10或11所述的方法,其特征在于,所述第三电子设备在所述蓝牙扫描界面以突出显示方式显示所述第一链接标识,包括:
    从所述第三电子设备接收到所述第一蓝牙报文开始,所述第三电子设备在第一预设时长内,在所述蓝牙扫描界面以所述突出显示方式显示所述第一链接标识。
  13. 根据权利要求10-12任一项所述的方法,其特征在于,所述第一电子设备登录了第一账号,所述第一蓝牙报文中还包括所述第一账号;所述方法还包括:
    所述第三电子设备接收到来自第四电子设备的第四蓝牙报文;其中,所述第四蓝牙报文中包括所述第一账号;
    所述第三电子设备响应于接收到所述第四蓝牙报文,在所述蓝牙扫描界面显示第三链接标识;所述第三链接标识与所述第四电子设备对应;
    其中,响应于所述第四蓝牙报文中包括所述第一账号,所述第三电子设备在所述蓝牙扫描界面以所述突出显示方式显示所述第三链接标识。
  14. 一种显示蓝牙设备标识的方法,其特征在于,包括:
    第一电子设备广播第一蓝牙报文;其中,所述第一蓝牙报文中包括第一指示信息,所述第一指示信息用于指示以突出显示方式显示所述第一电子设备对应的第一链接标识。
  15. 根据权利要求14所述的方法,其特征在于,在所述第一电子设备广播第一蓝牙报文之前,所述方法还包括:
    所述第一电子设备检测到所述第一电子设备的运动状态发生符合预设条件的变化。
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:
    从所述第一电子设备检测到所述第一电子设备的运动状态发生符合预设条件的变化开始,所述第一电子设备在第二预设时长内广播所述第一蓝牙报文。
  17. 根据权利要求15所述的方法,其特征在于,所述方法还包括:
    从所述第一电子设备检测到所述第一电子设备的运动状态发生符合预设条件的变化开始,所述第一电子设备在所述第二预设时长之后,广播第三蓝牙报文;
    其中,所述第三蓝牙报文不包括所述第一指示信息。
  18. 根据权利要求14-17中任一项所述的方法,其特征在于,所述第一电子设备登录了第一账号,所述第一电子设备广播第一蓝牙报文,包括:
    所述第一电子设备接收到来自第五电子设备的第五蓝牙报文;其中,所述第五蓝牙报文中包括第三指示信息和所述第一账号,所述第三指示信息用于指示以突出显示方式显示所述第五电子设备对应的链接标识;
    响应于所述第五蓝牙报文中包括所述第三指示信息,且所述第一电子设备登录了所述第一账号,第一电子设备广播包括所述第一指示信息的所述第一蓝牙报文。
  19. 一种显示蓝牙设备标识的装置,其特征在于,包含于第三电子设备,所述显示蓝牙设备标识的装置包括:扫描模块、接收模块和显示模块;
    所述扫描模块,用于所述第三电子设备显示蓝牙扫描界面时,扫描蓝牙报文;
    所述接收模块,用于接收到来自第一电子设备的第一蓝牙报文,接收到来自第二电子设备的第二蓝牙报文;其中,所述第一蓝牙报文中包括第一指示信息,所述第一指示信息用于指示以突出显示方式显示所述第一电子设备对应的第一链接标识;
    所述显示模块,用于响应于接收到所述第一蓝牙报文和所述第二蓝牙报文,所述第三电子设备在所述蓝牙扫描界面显示第一链接标识和第二链接标识;其中,所述第一链接标识与所述第一电子设备对应,所述第二链接标识与所述第二电子设备对应;
    其中,响应于所述第一蓝牙报文中包括所述第一指示信息,所述第三电子设备在所述蓝牙扫描界面以突出显示方式显示所述第一链接标识。
  20. 根据权利要求19所述的装置,其特征在于,所述显示模块,还用于在所述蓝牙扫描界面显示运动提示信息,其中,所述运动提示信息用于提示符合预设条件的运动状态。
  21. 根据权利要求19或20所述的装置,其特征在于,所述显示模块,还用于从所述第三电子设备接收到所述第一蓝牙报文开始,所述第三电子设备在第一预设时长内, 在所述蓝牙扫描界面以所述突出显示方式显示所述第一链接标识。
  22. 根据权利要求19-21任一项所述的装置,其特征在于,所述第一电子设备登录了第一账号,所述第一蓝牙报文中还包括所述第一账号;
    所述接收模块,还用于接收来自第四电子设备的第四蓝牙报文;其中,所述第四蓝牙报文中包括所述第一账号;
    所述显示模块,还用于响应于接收到所述第四蓝牙报文,在所述蓝牙扫描界面显示第三链接标识;所述第三链接标识与所述第四电子设备对应;
    其中,响应于所述第四蓝牙报文中包括所述第一账号,所述第三电子设备在所述蓝牙扫描界面以所述突出显示方式显示所述第三链接标识。
  23. 一种显示蓝牙设备标识的装置,其特征在于,包含于第一电子设备,所述显示蓝牙设备标识的装置包括:蓝牙广播模块;
    所述蓝牙广播模块,用于广播第一蓝牙报文;其中,所述第一蓝牙报文中包括第一指示信息,所述第一指示信息用于指示以突出显示方式显示所述第一电子设备对应的第一链接标识。
  24. 根据权利要求23所述的装置,其特征在于,所述装置还包括检测模块;
    所述检测模块,用于检测到所述第一电子设备的运动状态发生符合预设条件的变化。
  25. 根据权利要求23或24所述的装置,其特征在于,所述蓝牙广播模块,还用于从所述第一电子设备检测到所述第一电子设备的运动状态发生符合预设条件的变化开始,所述第一电子设备在第二预设时长内广播所述第一蓝牙报文。
  26. 根据权利要求23或24所述的装置,其特征在于,所述蓝牙广播模块,还用于从所述第一电子设备检测到所述第一电子设备的运动状态发生符合预设条件的变化开始,所述第一电子设备在所述第二预设时长之后,广播第三蓝牙报文;
    其中,所述第三蓝牙报文不包括所述第一指示信息。
  27. 根据权利要求23-26中任一项所述的装置,其特征在于,所述第一电子设备登录了第一账号,
    所述装置还包括蓝牙接收模块;
    所述蓝牙接收模块,用于接收到来自第五电子设备的第五蓝牙报文;其中,所述第五蓝牙报文中包括第三指示信息和所述第一账号,所述第三指示信息用于指示以突出显示方式显示所述第五电子设备对应的链接标识;
    所述蓝牙广播模块,还用于响应于所述第五蓝牙报文中包括所述第三指示信息,且所述第一电子设备登录了所述第一账号,第一电子设备广播包括所述第一指示信息的所述第一蓝牙报文。
  28. 一种电子设备,其特征在于,所述电子设备是第三电子设备,所述第三电子设备包括:存储器、蓝牙模块、显示屏和一个或多个处理器;所述存储器、所述蓝牙模块、所述显示屏和所述处理器耦合;
    其中,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,使所述第三电子设备执行如权利要求1-13中任一项权利要求中所述第三电子设备对应的步骤。
  29. 一种芯片系统,其特征在于,所述芯片系统应用于电子设备;所述芯片系统包括一个或多个接口电路和一个或多个处理器;所述接口电路和所述处理器通过线路互联;所述接口电路用于从所述电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括所述存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,所述电子设备执行如权利要求1-13中任一项所述的方法。
  30. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-13中任一项所述的方法。
  31. 一种电子设备,其特征在于,所述电子设备是第一电子设备,所述第一电子设备包括:存储器、蓝牙模块和一个或多个处理器;所述存储器、所述蓝牙模块和所述处理器耦合;
    其中,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,使所述第一电子设备执行如权利要求1-9、14-18中任一项权利要求中所述第一电子设备对应的步骤。
  32. 一种芯片系统,其特征在于,所述芯片系统应用于电子设备;所述芯片系统包括一个或多个接口电路和一个或多个处理器;所述接口电路和所述处理器通过线路互联;所述接口电路用于从所述电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括所述存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,所述电子设备执行如权利要求1-9、14-18中任一项所述的方法。
  33. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-9、14-18中任一项所述的方法。
PCT/CN2021/078329 2020-03-11 2021-02-27 一种显示蓝牙设备标识的方法及电子设备 WO2021179924A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21768269.9A EP4106366A4 (en) 2020-03-11 2021-02-27 METHOD OF DISPLAYING BLUETOOTH DEVICE AND ELECTRONIC DEVICE IDENTIFIERS
US17/911,039 US20230106906A1 (en) 2020-03-11 2021-02-27 Method for Displaying Bluetooth Device Identifier and Electronic Device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010167251.4A CN111464987B (zh) 2020-03-11 2020-03-11 一种显示蓝牙设备标识的方法及电子设备
CN202010167251.4 2020-03-11

Publications (1)

Publication Number Publication Date
WO2021179924A1 true WO2021179924A1 (zh) 2021-09-16

Family

ID=71678437

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/078329 WO2021179924A1 (zh) 2020-03-11 2021-02-27 一种显示蓝牙设备标识的方法及电子设备

Country Status (4)

Country Link
US (1) US20230106906A1 (zh)
EP (1) EP4106366A4 (zh)
CN (1) CN111464987B (zh)
WO (1) WO2021179924A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464987B (zh) * 2020-03-11 2022-07-26 华为技术有限公司 一种显示蓝牙设备标识的方法及电子设备
CN114125792A (zh) * 2020-09-01 2022-03-01 华为技术有限公司 通信连接建立方法、蓝牙耳机及可读存储介质
CN114339693A (zh) * 2020-09-27 2022-04-12 华为技术有限公司 一种多设备蓝牙配对的通信方法和系统
CN113518336A (zh) * 2021-07-16 2021-10-19 Oppo广东移动通信有限公司 蓝牙连接的提示方法、装置、终端及存储介质
CN115695631A (zh) * 2021-07-26 2023-02-03 Oppo广东移动通信有限公司 信息处理方法、装置、设备及存储介质
CN113766478B (zh) * 2021-11-08 2022-02-08 荣耀终端有限公司 Nfc卡的激活方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140206290A1 (en) * 2013-01-22 2014-07-24 Samsung Electronics Co., Ltd. Bluetooth device and method for providing and obtaining bluetooth device information
CN105468325A (zh) * 2015-12-28 2016-04-06 联想(北京)有限公司 一种信息处理方法及电子设备
CN105912115A (zh) * 2016-04-07 2016-08-31 上海斐讯数据通信技术有限公司 一种基于智能终端的蓝牙连接设备切换方法及系统
CN107087247A (zh) * 2017-03-27 2017-08-22 宇龙计算机通信科技(深圳)有限公司 一种蓝牙处理方法及装置
CN110519741A (zh) * 2019-09-11 2019-11-29 河南工业大学 一种蓝牙连接方法及系统
CN111464987A (zh) * 2020-03-11 2020-07-28 华为技术有限公司 一种显示蓝牙设备标识的方法及电子设备

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016007187A1 (en) * 2014-07-07 2016-01-14 Bayer Healthcare Llc Improved device pairing with a dual use piezoelectric acoustic component and vibration sensor
CN104506214A (zh) * 2014-12-23 2015-04-08 北京深思数盾科技有限公司 近距离蓝牙配对方法和终端
CN104684048B (zh) * 2015-03-04 2019-06-04 小米科技有限责任公司 Wifi列表的展现方法和装置
CN105373297A (zh) * 2015-12-10 2016-03-02 珠海市君天电子科技有限公司 WiFi名称收藏方法及装置
CN107295092A (zh) * 2017-07-07 2017-10-24 宁波图锐信息科技有限公司 一种基于云计算的民生服务移动应用平台系统
CN107666661B (zh) * 2017-09-05 2020-12-15 重庆慧联无限科技有限公司 具有动静检测功能的防伪蓝牙发送设备
CN108271143A (zh) * 2018-01-08 2018-07-10 维沃移动通信有限公司 一种蓝牙设备连接方法及移动终端
CN108616655A (zh) * 2018-03-30 2018-10-02 成都心吉康科技有限公司 用于蓝牙配对的移动终端和电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140206290A1 (en) * 2013-01-22 2014-07-24 Samsung Electronics Co., Ltd. Bluetooth device and method for providing and obtaining bluetooth device information
CN105468325A (zh) * 2015-12-28 2016-04-06 联想(北京)有限公司 一种信息处理方法及电子设备
CN105912115A (zh) * 2016-04-07 2016-08-31 上海斐讯数据通信技术有限公司 一种基于智能终端的蓝牙连接设备切换方法及系统
CN107087247A (zh) * 2017-03-27 2017-08-22 宇龙计算机通信科技(深圳)有限公司 一种蓝牙处理方法及装置
CN110519741A (zh) * 2019-09-11 2019-11-29 河南工业大学 一种蓝牙连接方法及系统
CN111464987A (zh) * 2020-03-11 2020-07-28 华为技术有限公司 一种显示蓝牙设备标识的方法及电子设备

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
US20230106906A1 (en) 2023-04-06
EP4106366A4 (en) 2023-08-02
EP4106366A1 (en) 2022-12-21
CN111464987A (zh) 2020-07-28
CN111464987B (zh) 2022-07-26

Similar Documents

Publication Publication Date Title
WO2021179924A1 (zh) 一种显示蓝牙设备标识的方法及电子设备
EP4024193A1 (en) Data transmission method and related devices
WO2021063097A1 (zh) 一种显示方法及电子设备
US20220413670A1 (en) Content Sharing Method and Electronic Device
WO2021147406A1 (zh) 一种音频输出方法及终端设备
WO2022042656A1 (zh) 一种界面显示方法及设备
CN111182614B (zh) 建立网络连接的方法和装置以及电子设备
CN111221845A (zh) 一种跨设备信息搜索方法及终端设备
WO2022052662A1 (zh) 显示方法及电子设备
WO2021051982A1 (zh) 调用硬件接口的方法及电子设备
WO2022048500A1 (zh) 一种显示方法及设备
US20240073978A1 (en) Method for monitoring link and terminal device
WO2022062796A1 (zh) 一种网络控制方法、装置及电子设备
WO2022156535A1 (zh) 分布式应用的处理方法和装置
CN114065706A (zh) 一种多设备数据协作的方法及电子设备
WO2022048453A1 (zh) 解锁方法及电子设备
WO2023029983A1 (zh) 一种控件内容的拖拽方法、电子设备及系统
KR20210050398A (ko) 전자 장치와 연결되지 않은 외부 전자 장치로 데이터를 전송하는 전자 장치 및 전자 장치의 동작 방법
WO2022143310A1 (zh) 一种双路投屏的方法及电子设备
WO2022188511A1 (zh) 语音助手唤醒方法及装置
WO2022057485A1 (zh) 数据分享的方法、电子设备和系统
WO2022052928A1 (zh) 一种应用接入方法及相关装置
WO2021218544A1 (zh) 一种提供无线上网的系统、方法及电子设备
WO2023284568A1 (zh) 一种电子设备的按键控制方法及电子设备
WO2023088106A1 (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: 21768269

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021768269

Country of ref document: EP

Effective date: 20220913

NENP Non-entry into the national phase

Ref country code: DE