WO2021180083A1 - Bluetooth communication system and wireless communication system - Google Patents

Bluetooth communication system and wireless communication system Download PDF

Info

Publication number
WO2021180083A1
WO2021180083A1 PCT/CN2021/079787 CN2021079787W WO2021180083A1 WO 2021180083 A1 WO2021180083 A1 WO 2021180083A1 CN 2021079787 W CN2021079787 W CN 2021079787W WO 2021180083 A1 WO2021180083 A1 WO 2021180083A1
Authority
WO
WIPO (PCT)
Prior art keywords
response message
electronic device
screen projection
projection device
priority
Prior art date
Application number
PCT/CN2021/079787
Other languages
French (fr)
Chinese (zh)
Inventor
王良
章亚
萧维廷
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021180083A1 publication Critical patent/WO2021180083A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the present invention relates to the field of communication, in particular to a Bluetooth communication system and a wireless communication system.
  • the terminal device receives the user's command to turn on the Bluetooth switch in the settings, and the terminal device scans the surrounding proximity to find broadcast.
  • the terminal device scans the proximity discovery broadcast sent by the Bluetooth headset, the terminal device pops up a pairing query box. After the terminal device receives the user's first permission instruction, the Bluetooth headset is successfully paired with the mobile phone.
  • a Bluetooth communication system includes a Bluetooth headset, a first electronic device, and a second electronic device.
  • the Bluetooth headset is configured to: receive a user's first operation; In one operation, send a BLE broadcast to the first electronic device and the second electronic device; receive the first response message of the first electronic device; receive the second response message of the second electronic device, based on the first response message and the second response message, It is determined that the first electronic device has priority, and a first instruction is sent to the first electronic device so that the first electronic device pops up a pairing prompt box; the first electronic device is configured to: in response to the first instruction, display on the first interface that contains There is a pairing prompt box with information about the Bluetooth headset.
  • the first response message carries information about the first transmission power of the first electronic device; the second response message carries information about the second transmission power of the second electronic device, and the Bluetooth headset is configured to: A transmit power and the first RSSI of the first response message, calculate the first loss or first distance; based on the second transmit power and the second RSSI of the second response message, calculate the second loss or second distance, based on the first For a loss and a second loss, it is determined that the first electronic device has priority, or based on the first distance and the second distance, it is determined that the first electronic device has priority.
  • the Bluetooth headset when the first transmission power of the first electronic device is the same as the second transmission power of the second electronic device, the Bluetooth headset is configured to: The second RSSI determines that the first electronic device has priority.
  • the first electronic device is configured to: the pairing prompt box includes a user option, and the second operation of the user with respect to the user option is received; in response to the second operation, the Bluetooth headset is successfully paired with the first electronic device.
  • the information of the Bluetooth headset includes at least one of the name of the Bluetooth headset and the icon of the Bluetooth headset.
  • the first instruction is sent to the first electronic device through a link or broadcast.
  • a Bluetooth headset communication method includes the following steps: receiving a user's first operation; in response to the first operation, sending a BLE broadcast to the first electronic device and the second electronic device Electronic device; receiving the first response message of the first electronic device; receiving the second response message of the second electronic device, based on the first response message and the second response message, determining that the first electronic device has priority, and sending the first instruction to The first electronic device causes the first electronic device to pop up a pairing prompt box.
  • the first response message carries the information of the first transmission power of the first electronic device; the second response message carries the information of the second transmission power of the second electronic device, based on the first response message and the second transmission power.
  • the step of sending a first instruction to the first electronic device to cause the first electronic device to pop up a pairing prompt box includes: a first RSSI based on the first transmission power and the first response message Calculate to obtain the first loss or first distance; calculate based on the second transmit power and the second RSSI of the second response message to obtain the second loss or second distance, and determine the first electronic device based on the first loss and the second loss Has priority, or determines that the first electronic device has priority based on the first distance and the second distance.
  • the transmission step of sending the first instruction to the first electronic device to make the first electronic device pop up the pairing prompt box includes: determining that the first electronic device has priority based on the first RSSI of the first response message and the second RSSI of the second response message .
  • the information of the Bluetooth headset includes at least one of the name of the Bluetooth headset and the icon of the Bluetooth headset.
  • a wireless communication system includes a mobile phone, a first screen projection device, and a second screen projection device.
  • the mobile phone is configured to: receive a user's first operation; In one operation, send a screencast broadcast to the first screencast device and the second screencast device; receive the first response message from the first screencast device; receive the second response message from the second screencast device, based on the first response message and In the second response message, it is determined that the first screen projection device has priority, and the first instruction is sent to the first screen projection device to cause the first screen projection device to pop up a screen projection prompt box; the first screen projection device is configured to: respond to the first screen projection device One instruction, a screen projection prompt box is displayed on the first interface.
  • the first response message carries information about the first transmission power of the first screen projection device; the second response message carries information about the second transmission power of the second screen projection device, and the mobile phone is configured to: The first transmission power and the first RSSI of the first response message are calculated to obtain the first loss or the first distance; based on the second transmission power and the second RSSI of the second response message, the second loss or the second distance is calculated, based on For the first loss and the second loss, it is determined that the first screen projection device has priority, or based on the first distance and the second distance, it is determined that the first screen projection device has priority.
  • the mobile phone when the first transmission power of the first projection device is the same as the second transmission power of the second projection device, the mobile phone is configured to: based on the first RSSI and the second response message of the first response message The second RSSI determines that the first screen projection device has priority.
  • the first screen projection device is configured to: the screen projection prompt box includes a user option, and receives a second operation of the user for the user option; in response to the second operation, the mobile phone and the first screen projection device successfully cast the screen.
  • a mobile phone communication method includes the following steps: receiving a user's first operation; in response to the first operation, sending a screencast broadcast to the first screencasting device and the second screencasting device Second screen projection device; receive the first response message of the first screen projection device; receive the second response message of the second screen projection device, and determine that the first screen projection device has priority based on the first response message and the second response message, Send the first instruction to the first screen projection device to make the first screen projection device pop up a screen projection prompt box.
  • the first response message carries information about the first transmission power of the first screen projection device; the second response message carries information about the second transmission power of the second screen projection device, based on the first response message and In the second response message, it is determined that the first screen projection device has priority, and the step of sending the first instruction to the first screen projection device to make the first screen projection device pop up the screen projection prompt box includes: based on the first transmission power and the first The first RSSI of the response message is calculated to obtain the first loss or the first distance; based on the second transmit power and the second RSSI of the second response message, the second loss or the second distance is calculated, based on the first loss and the second loss , Determine that the first screen projection device has priority, or determine that the first screen projection device has priority based on the first distance and the second distance.
  • sending a first instruction to the first screen projection device to make the first screen projection device pop up a screen projection prompt box includes: based on the first RSSI of the first response message and the second RSSI of the second response message, determining the first A screen projection device has priority.
  • a terminal provided according to some embodiments of the present application includes: a processor, a memory, and a touch screen, the memory, the touch screen and the processor are coupled, the memory is used to store computer program codes, and the computer program codes include computer instructions,
  • the processor reads the computer instructions from the memory, so that the terminal performs the following steps: receiving the user's first operation; in response to the first operation, sending a BLE broadcast to the first electronic device and the second electronic device; receiving the first electronic device First response message of the second electronic device; receiving the second response message of the second electronic device, based on the first response message and the second response message, determining that the first electronic device has priority, and sending the first instruction to the first electronic device to make the first The electronic device pops up a pairing prompt box.
  • the first response message carries the information of the first transmission power of the first electronic device; the second response message carries the information of the second transmission power of the second electronic device, based on the first response message and the second transmission power.
  • the step of sending a first instruction to the first electronic device to cause the first electronic device to pop up a pairing prompt box includes: a first RSSI based on the first transmission power and the first response message Calculate to obtain the first loss or first distance; calculate based on the second transmit power and the second RSSI of the second response message to obtain the second loss or second distance, and determine the first electronic device based on the first loss and the second loss Has priority, or determines that the first electronic device has priority based on the first distance and the second distance.
  • the transmission step of sending the first instruction to the first electronic device to make the first electronic device pop up the pairing prompt box includes: determining that the first electronic device has priority based on the first RSSI of the first response message and the second RSSI of the second response message .
  • a terminal in a sixth aspect, includes: a processor, a memory, and a touch screen, the memory, the touch screen and the processor are coupled, the memory is used to store computer program codes, and the computer program codes include computer instructions,
  • the processor reads the computer instructions from the memory, so that the terminal performs the following steps: receiving the user's first operation; in response to the first operation, sending a screencast broadcast to the first screencasting device and the second screencasting device; receiving the first operation A first response message of a projection device; receiving a second response message of a second projection device, based on the first response message and the second response message, determine that the first projection device has priority, and send the first instruction to the first The screen projection device so that the first screen projection device pops up a screen projection prompt box.
  • the first response message carries information about the first transmission power of the first screen projection device; the second response message carries information about the second transmission power of the second screen projection device, based on the first response message and In the second response message, it is determined that the first screen projection device has priority, and the step of sending the first instruction to the first screen projection device to make the first screen projection device pop up the screen projection prompt box includes: based on the first transmission power and the first The first RSSI of the response message is calculated to obtain the first loss or the first distance; based on the second transmit power and the second RSSI of the second response message, the second loss or the second distance is calculated, based on the first loss and the second loss , It is determined that the screen projection electronic device has priority, or based on the first distance and the second distance, it is determined that the first screen projection device has priority.
  • sending a first instruction to the first screen projection device to make the first screen projection device pop up a screen projection prompt box includes: based on the first RSSI of the first response message and the second RSSI of the second response message, determining the first A screen projection device has priority.
  • a method for determining a delivery service recipient device in a process of triggering a predetermined service is provided, which is used in a system including multiple electronic devices, and the multiple electronic devices include the The method includes the following steps: at least two service receiver devices respectively send service availability broadcasts for predetermined services; the service initiator device scans and receives services from The service availability broadcast of at least two service receiver devices; the service initiator device determines the priority of at least two service receiver devices based on the scanned RSSI of the service availability broadcast and the information on the transmit power of the service receiver carried by it, The final service receiver device is determined based on the priority; and the service initiator device delivers the service to the final service receiver device.
  • the service initiator device determines the priority of at least two service receiver devices based on the scanned RSSI of the service availability broadcast and the information on the transmission power of the service receiver carried by it, including: The initiator device respectively calculates the distance between the service initiator device and each service receiver device based on the RSSI broadcast by the scanned service availability and the information about the transmission power of the service receiver, and determines at least The priority of the two service receiver devices.
  • the service initiator device determines the priority of at least two service receiver devices based on the scanned RSSI of the service availability broadcast and the information on the transmission power of the service receiver carried by it, including: The initiator device calculates the loss between the service initiator device and each service receiver device based on the RSSI broadcast by the scanned service availability and the information of the service receiver’s transmit power carried by it, and determines at least the loss according to the loss The priority of the two service receiver devices.
  • it further includes: the service initiator device selecting the service receiver device corresponding to the service availability broadcast with the smallest distance or loss in the priority.
  • the service availability broadcast is a feedback broadcast based on the service-based broadcast sent by the service initiator.
  • the feedback broadcast carries the first distance or first loss corresponding to the service-based broadcast sent by the service initiator device.
  • the service initiator device separately calculates the distance between the service initiator device and each service receiver device based on the scanned RSSI of the service availability broadcast and the information about the transmission power of the service receiver carried by it.
  • the step of determining the priority of at least two service receiver devices includes: the service initiator device broadcasts the corresponding second distance or second loss and the corresponding service-based broadcast based on each scanned feedback Corresponding to the first distance or first loss, calculate the average distance or average loss between the service initiator device and each service receiver device, and determine the average distance or average loss of at least two service receiver devices according to the average distance or average loss. priority.
  • the service-based broadcast sent by the service initiator device includes: proximity discovery broadcast and/or screencast broadcast.
  • the step of the service initiator device delivering the service to the final service recipient device includes: the service initiator device delivers the service to the final service recipient device in a broadcast mode or a link mode.
  • an electronic device provided according to some embodiments of the present application, as a service initiator device, includes: a scanning receiving module, configured to scan and receive data from at least two service recipient devices for a predetermined service Service availability broadcast; a determining module, used to determine the priority of at least two service receiver devices based on the scanned RSSI of the service availability broadcast and the information on the transmission power of the service receiver carried by it, and determine the final priority based on the priority Business receiver equipment.
  • a system of multiple electronic devices includes: an electronic device as a service initiator device, and at least two electronic devices as a service receiver device, wherein the service
  • the initiator device includes: a scanning receiving module for scanning and receiving service availability broadcasts for a predetermined service from at least two service receiving devices; a determining module for broadcasting RSSI based on the scanned service availability and its carrying Based on the information on the transmit power of the service receiver, the priority of at least two service receiver devices is determined, and the final service receiver device is determined based on the priorities.
  • Fig. 1 shows a schematic diagram 1 of an application scenario of a Bluetooth communication system provided according to some embodiments of the present application
  • FIG. 2 shows a second schematic diagram of an application scenario of a Bluetooth communication system provided according to some embodiments of the present application
  • FIG. 3 shows a real diagram of a true wireless Bluetooth headset and a charging box provided according to some embodiments of the present application
  • Figure 4 shows a schematic diagram of a Bluetooth headset provided according to some embodiments of the present application.
  • Fig. 5 shows a schematic diagram of a mobile phone provided according to an embodiment of the present application
  • FIG. 6 shows a schematic diagram of an interface of a pairing prompt box popping up on a mobile phone interface according to an embodiment of the present application
  • FIG. 7 shows a schematic diagram of an interface for successfully pairing a mobile phone and a Bluetooth headset according to an embodiment of the present application
  • FIG. 8 shows a flowchart of pairing a Bluetooth headset with a mobile phone according to some embodiments of the present application
  • FIG. 9 shows a schematic diagram of an application scenario of a wireless communication system provided according to some embodiments of the present application.
  • FIG. 10 shows a flow chart 1 of screen projection of the mobile phone 100 and the screen projection device 300 according to some embodiments of the present application
  • FIG. 11 shows a second flowchart of screen projection by the mobile phone 100 and the screen projection device 300 according to some embodiments of the present application
  • Fig. 12 is a block diagram of a device according to an embodiment of the present application.
  • Fig. 13 is a block diagram of a system on chip (SoC) according to an embodiment of the present application.
  • SoC system on chip
  • first, second, etc. may be used herein to describe various features, these features should not be limited by these terms. These terms are used only for distinction, and cannot be understood as indicating or implying relative importance.
  • first feature may be referred to as the second feature, and similarly the second feature may be referred to as the first feature.
  • module can refer to, as a part of it, or include: memory (shared, dedicated or group) for running one or more software or firmware programs, application specific integrated circuit (ASIC), Electronic circuits and/or processors (shared, dedicated or group), combinational logic circuits, and/or other suitable components that provide the described functions.
  • memory shared, dedicated or group
  • ASIC application specific integrated circuit
  • processors shared, dedicated or group
  • combinational logic circuits and/or other suitable components that provide the described functions.
  • Fig. 1 shows a schematic diagram 1 of an application scenario of a Bluetooth communication system provided according to some embodiments of the present application.
  • the Bluetooth communication system includes a Bluetooth headset 200 (for example, a true wireless Bluetooth headset) and an electronic device such as a mobile phone 100.
  • a Bluetooth headset 200 for example, a true wireless Bluetooth headset
  • an electronic device such as a mobile phone 100.
  • the electronic device may be 4 mobile phones 100, or at least two mobile phones 100 such as 2, 3, 5, 10, etc.
  • the mobile phone 100 may be a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.).
  • the electronic device may also be a personal digital assistant, a handheld PC, a wearable device (for example, a smart watch, a smart bracelet, etc.), a portable media player, a handheld device, a navigation device, a server, a network device, Graphics devices, video game devices, laptop devices, virtual reality and/or augmented reality devices, IoT devices, industrial control devices, in-vehicle infotainment devices, streaming media client devices, e-books, reading devices, and other devices.
  • a personal digital assistant for example, a smart watch, a smart bracelet, etc.
  • a portable media player for example, a smart watch, a smart bracelet, etc.
  • a navigation device for example, a server, a network device, Graphics devices, video game devices, laptop devices, virtual reality and/or augmented reality devices, IoT devices, industrial control devices, in-vehicle infotainment devices, streaming media client devices, e-books, reading devices, and other devices.
  • the mobile phone 100 turns on the Bluetooth function, and the Bluetooth headset 200 can enter the pairing mode with the mobile phone 100 through a box opening action or a key operation (for example, a long press).
  • a box opening action or a key operation for example, a long press
  • the Bluetooth headset 200 If the Bluetooth headset 200 is not paired with the mobile phone 100 to be paired for the first time, then when the Bluetooth headset 200 sends a proximity discovery BLE broadcast through a box opening action or a key operation, the connection action with the mobile phone 100 can be automatically realized. This is because the Bluetooth headset 200 stores the Bluetooth address of the paired mobile phone 100. When the charging box of the Bluetooth headset 200 is turned on or the Bluetooth function is turned on, the Bluetooth headset 200 will automatically connect back to the last paired mobile phone 100, thereby Realize fast connection.
  • the Bluetooth headset 200 If the Bluetooth headset 200 is paired with the mobile phone 100 to be paired for the first time, when the Bluetooth headset 200 is opened or pressed, the Bluetooth headset 200 sends a proximity discovery BLE broadcast, and the mobile phone 100 receives the proximity discovery BLE from the Bluetooth headset 200 After the broadcast, a feedback broadcast is sent to the Bluetooth headset 200. Based on the feedback broadcast, the Bluetooth headset 200 sends a first instruction to the mobile phone 100, causing the mobile phone 100 to pop up a pairing prompt box asking the user whether to pair with the Bluetooth headset 200, and the mobile phone 100 receives the user's After allowing the pairing operation, the Bluetooth headset is successfully paired with the mobile phone.
  • the mobile phone 100 scans and receives the proximity discovery broadcast sent from the Bluetooth headset 200, and the mobile phone 100 determines the received signal strength indication (RSSI) size of the proximity discovery broadcast.
  • RSSI received signal strength indication
  • the mobile phone 100 determines whether the RSSI of the proximity discovery broadcast exceeds a preset threshold. If the RSSI exceeds the preset threshold, the mobile phone 100 pops up a pairing prompt box to ask the user whether to pair.
  • the Bluetooth communication system proposed by some embodiments of the present application, as shown in FIG. 1, when there are 4 mobile phones A to D near the Bluetooth headset 200, only the mobile phone C with the highest priority is triggered to pop up the pairing prompt box, thereby solving During the pairing process of the mobile phone 100 and the Bluetooth headset 200, multiple mobile phones 100 are triggered to pop up the pairing prompt box at the same time, which disturbs the problem of non-target users using the mobile phone, and realizes the fast and interference-free pairing of the Bluetooth headset 200 and the mobile phone 100, and improves the user experience .
  • FIG. 3 shows a real diagram of a true wireless Bluetooth headset 200 and a charging box provided according to some embodiments of the present application.
  • the true wireless Bluetooth headset 200 is also called a true wireless stereo (TWS) headset.
  • the TWS headset completely abandons the wire connection method and includes two headsets (such as a master headset and a slave headset).
  • a terminal device also referred to as a transmitting device, such as a mobile phone 100
  • the master headset connects to the slave headset wirelessly via Bluetooth, which can achieve true wireless separation of the left and right channels of Bluetooth.
  • the left and right earphones of the TWS headset can form a stereo system through Bluetooth, so that the performance of listening to songs, talking, and wearing can be improved.
  • either of the two earphones can also work independently. For example, when the master earphone is not connected to the slave earphone, the master earphone can return to mono sound quality.
  • TWS earphones are generally equipped with a charging box that has both charging and storage functions.
  • the charging box can provide power and storage functions for the wireless earphones. When there is no power, just put the Bluetooth earphone 200 in the box, the earphones can be automatically disconnected, and the charging box will charge the earphones.
  • the charging box is equipped with a function key (not shown in the figure).
  • a function key (not shown in the figure).
  • the Bluetooth headset 200 is in pairing mode and sends a BLE broadcast to Phone 100 with Bluetooth enabled.
  • FIG. 4 shows a schematic diagram of a Bluetooth headset 200 provided according to some embodiments of the present application.
  • the Bluetooth headset 200 may include a speaker unit 221, a control unit 222, a sound receiving unit 223, a flexible printed circuit (FPC) 224, a battery 225, a charging unit 226, a sensor device (not shown in the figure), and the like.
  • the Bluetooth headset 200 further includes an auxiliary sound receiving unit 227, and the auxiliary sound receiving unit 227 may be a microphone, for example, a microphone that picks up background sounds in a call scene.
  • the speaker unit 221 may be an electro-acoustic transducer for converting audio electrical signals into sound signals, and the speaker unit 221 may be a moving coil unit, a moving iron unit, or a ring-iron mixing unit.
  • the loudspeaker unit 221 can also be called a horn or a loudspeaker. Therefore, the aforementioned moving coil unit, moving iron unit, or coil-iron mixing unit can also be referred to as a moving coil speaker (or electrodynamic speaker), a moving iron speaker, and a coil-iron mixing unit, respectively.
  • Hybrid speakers Hybrid speakers.
  • the speaker unit 221 can receive audio signals and control signals (such as streaming media control signals) transmitted by the terminal device, and can also transmit the received audio signals and control signals to other speaker units.
  • audio signals and control signals such as streaming media control signals
  • the audio signal and control signal received from the terminal device can be transmitted to the slave speaker, so that the audio is played synchronously in the two separate speakers, thereby achieving a stereo effect.
  • the control unit 222 may include a motherboard (or called a main chip or a main control chip), a Bluetooth chip, etc., and may be used for charging management, signal transmission, etc. In some embodiments, the control unit 222 may also be used for active noise reduction. Optionally, the control unit 222 may be a microprocessor.
  • the sound receiving unit 223 includes a call microphone (MIC), a waterproof and dustproof film, etc. fixed on a flexible printed circuit (FPC) 224.
  • MIC call microphone
  • FPC flexible printed circuit
  • the positive and negative electrodes of the battery 225 are electrically connected to the flexible circuit board 224, and the circuit in the flexible circuit board 224 can charge the battery 225 and power the Bluetooth headset 200 from the battery 225.
  • the cavity formed by the earphone handle may also be provided with an antenna for receiving and sending signals.
  • the charging unit 226 is used to charge the battery 225.
  • One end of the charging unit 226 is connected to the flexible circuit board 224, and the other end is outside the earphone and can be contacted with the metal contacts in the charging box to form a charging circuit.
  • the charging contacts of the earphones contact the contacts in the charging box to form an electrical connection.
  • the charging current can pass through the circuit on the flexible circuit board 224 from the positive charging contact to the positive of the battery 225, and then From the negative electrode of the battery 225 to the negative charging contact, and finally back to the charging box.
  • the sensor devices included in the Bluetooth headset 200 may include an optical sensor, an acceleration sensor, a distance sensor, a bone conduction sensor, etc. These sensor devices may be arranged on the flexible circuit board 224 for sensing or receiving external signals and the like.
  • the Bluetooth headset 200 further includes an auxiliary sound receiving unit 227.
  • the auxiliary sound receiving unit 227 may be another microphone, thereby forming a dual microphone with the sound receiving unit 223, where the sound receiving unit 223 may be used for ordinary users to call.
  • the microphone is used to collect human voices (that is, used to pick up the voice of the call), and the auxiliary sound receiving unit 227 can be a microphone that picks up the background sound and has a background noise collection function for collecting ambient noise.
  • the auxiliary sound receiving unit 227 is far away from the sound receiving unit 223.
  • the dual-microphone design can effectively resist the interference of environmental noise around the headset, greatly improving the clarity of normal calls.
  • FIG. 5 shows a schematic diagram of a mobile phone 100 provided according to an embodiment of the present application.
  • the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, a subscriber identification module (SIM) card interface 195, and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, 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 110 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
  • UART universal asynchronous transmitter/receiver
  • receiver/transmitter, UART mobile industry processor interface
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic illustration, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the Bluetooth pairing function of the mobile phone 100 is activated. For example, as shown in FIG. Background scanning status.
  • the Bluetooth module function of the mobile phone 100 is turned on, the Bluetooth module of the mobile phone 100 can perform background scanning regardless of whether the mobile phone is in a locked or on-screen state.
  • the charging box with the Bluetooth headset 200 When the charging box with the Bluetooth headset 200 is opened (the state is shown in Figure 3), or the function keys on the charging box are long pressed for a preset length of time (for example, 2 seconds), the charging box indicator light (for example, blue The light) flashes.
  • the Bluetooth headset 200 enters the pairing state and sends a proximity discovery broadcast.
  • the BLE broadcast carries information such as the MAC address of the Bluetooth headset 200, the identifier of the headset manufacturer, and the transmission power.
  • the mobile phones A to D located near the Bluetooth headset 200 scan and receive the proximity discovery BLE broadcast from the Bluetooth headset 200, the mobile phones A to D immediately send feedback broadcasts to the Bluetooth headset 200.
  • the feedback broadcast carries information corresponding to the transmission power, signal strength, MAC address, and mobile phone manufacturer identification of each mobile phone 100.
  • the Bluetooth headset 200 receives the corresponding feedback broadcasts from the mobile phones A to D, and calculates and obtains the corresponding loss or distance based on the RSSI of the feedback broadcast and the information corresponding to the transmit power of each mobile phone. Furthermore, the Bluetooth headset 200 determines the mobile phone with the highest priority among the mobile phones A to D based on the loss or distance. For example, the mobile phone C has the highest priority. Then, as shown in FIG. 6, the Bluetooth headset 200 sends the first command to the mobile phone C. In this way, the mobile phone C displays the pairing prompt box 20 containing the information of the Bluetooth headset 200. In some embodiments, the first command may be a Bluetooth private command. After receiving the command, the mobile phone 100 may pop up the pairing prompt box 20.
  • the information of the Bluetooth headset 200 may be at least one of the name of the Bluetooth headset 200 and the icon of the Bluetooth headset 200.
  • the pairing prompt box 20 can display the name of the Bluetooth headset 200.
  • the name of the Bluetooth headset 200 is the initial name "HUAWEI FreeBuds 3”
  • the name of the Bluetooth headset 200 can also be user-defined.
  • the name for example, "Zhang San's Freebuds3", so that the user can quickly identify whether the Bluetooth headset 200 he wants to pair with.
  • the pairing prompt box 20 may also display an icon of the Bluetooth headset 200, and the icon may be a physical image of the Bluetooth headset 200, so that the user can quickly and accurately identify whether the Bluetooth headset 200 is to be paired. For example, if the Bluetooth headset 200 is white, then the pairing prompt box 20 can display a white icon of the Bluetooth headset 200 that is completely consistent with its appearance; if the Bluetooth headset 200 is red, then the pairing prompt box 20 can display a red icon that is consistent with its appearance. The icon of the Bluetooth headset 200 that looks exactly the same. Furthermore, the user can quickly and accurately identify whether the Bluetooth headset 200 is the Bluetooth headset 200 that he wants to pair with for subsequent operations. For example, as shown in FIG. 6, the pairing prompt box 20 performs "Agree 21" or "Ignore 22" Option operation.
  • the pairing prompt box 20 can also display information including the name of the Bluetooth headset 200 and the icon of the Bluetooth headset 200 at the same time, so that the user can more quickly and accurately identify whether the Bluetooth headset 200 is to be paired.
  • the pairing prompt box 20 can also respectively display the power of the left earphone (L), the right earphone (R) and the charging box, so that the user can clearly understand the power status of the two earphones and the charging box and charge them in time.
  • the Bluetooth headset 200 and the mobile phone 100 establish a connection according to the Bluetooth protocol, and the mobile phone C and the Bluetooth headset 200 are successfully paired .
  • a headset symbol 30 is displayed in the upper right corner of the C interface of the mobile phone. Mobile phone C will enter the next interface. The user can perform some quick operations and active noise reduction operations based on the next interface.
  • the pairing prompt 20 of the mobile phone 100 may pop up when the mobile phone C is in a locked or bright screen state.
  • the user can perform an option operation such as "Agree 21" or "Ignore 22" on it through the pop-up pairing prompt box 20.
  • the user clicks the "Agree” option if the mobile phone 100 does not have a password, the mobile phone 100 can be automatically unlocked so that the mobile phone 100 is in a bright screen state, which is convenient for the user to perform operations such as listening to songs or playing TV shows; if the mobile phone has a password, The mobile phone 100 requires the user to perform an unlocking operation to ensure the privacy of the mobile phone 100.
  • the pairing prompt box 20 of the mobile phone 100 can only pop up when the mobile phone 100 is in a bright screen state, which avoids the misoperation of the Bluetooth headset 200 to cause the mobile phone 100 to pop up the pairing prompt box 20, which increases unnecessary users. operate.
  • the pairing prompt box 20 of the mobile phone 100 may pop up during the business process of the mobile phone. For example, the user has put on the power amplifier video on the mobile phone 100, and then the user wants to wear the Bluetooth headset 200 to watch the remaining videos. The user can open the charging box of the Bluetooth headset 200, or press and hold (for example, 2 seconds) the function key on the charging box.
  • the Bluetooth headset 200 can be established through the operation options shown in FIG. 6, and the mobile phone 100 switches the video sound from the power amplifier to the Bluetooth headset 200.
  • the pairing prompt 20 of the mobile phone 100 may not pop up when the mobile phone is performing a business, such as watching a video or playing a game, so as to disturb the target user's use of the mobile phone.
  • the pairing prompt 20 of the mobile phone 100 can be set by the user on the mobile phone, so that the user can pop up when performing certain services such as watching videos, and in other services such as reading e-books, playing games, etc. Do not pop up when the business is inconvenient to be interrupted.
  • the Bluetooth headset 200 may also determine the priority of the mobile phone 100.
  • the priority of the priority is C, A, B, D. Since the Bluetooth headset 200 has no display device, the priority can be set.
  • the list is sent to any mobile phone, for example, to mobile phone C.
  • the priority list can be displayed on mobile phone C.
  • the Bluetooth headset sends a pop-up instruction to
  • the mobile phone A causes the mobile phone A to display the pairing prompt box 20, and the receiving user receives the pairing operation on the mobile phone A, and the mobile phone A and the Bluetooth headset 200 establish a connection with the mobile phone.
  • determining the priority of the mobile phone 100 directly send a pop-up command to the mobile phone with the highest priority, so that the pairing prompt box 20 will pop up, thereby increasing the user's controllability.
  • the mobile phone C may automatically close or hide the prompt box if it does not receive the user's input operation within a predetermined time, for example, 5 seconds.
  • the communication between the mobile phone 100 and the Bluetooth headset 200 may be through a predetermined private frequency, such as a Bluetooth 5G Hz frequency, so that the mobile phone 100 and the Bluetooth headset 200 of the same manufacturer can communicate with each other.
  • a predetermined private frequency such as a Bluetooth 5G Hz frequency
  • FIG. 8 shows a flowchart of pairing a Bluetooth headset 200 with a mobile phone C according to some embodiments of the present application.
  • Mobile phones A to D have enabled the Bluetooth background scan function.
  • the user triggers an action to make the Bluetooth headset 200 enter the pairing mode.
  • the triggering action may be by opening the charging box of the Bluetooth headset 200, or long pressing (for example, 2 seconds) a function key on the charging box.
  • the Bluetooth headset 200 sends and scans the proximity discovery BLE broadcast.
  • the proximity discovery broadcast carries information such as the transmission power of the Bluetooth headset 200, the MAC address, and the identifier of the headset manufacturer.
  • the mobile phones A to D scan and receive the proximity discovery broadcast from the Bluetooth headset 200, they immediately send feedback broadcasts A to D to the Bluetooth headset 200, respectively.
  • the feedback broadcast carries information corresponding to the transmit power of each mobile phone. That is, feedback broadcast A carries information such as the transmission power of mobile phone A, feedback broadcast B carries information such as the transmission power of mobile phone B, feedback broadcast C carries information such as the transmission power of mobile phone C, and feedback broadcast D carries the transmission of mobile phone D. Power and other information.
  • the Bluetooth headset 200 can measure the RSSI of the feedback broadcast.
  • the Bluetooth headset 200 calculates and obtains the corresponding loss or distance based on the RSSI of the feedback broadcast and the information corresponding to the transmit power of each mobile phone. That is, the Bluetooth headset 200 calculates the loss A or the distance A based on the RSSI of the feedback broadcast A and the transmit power of the mobile phone A carried by the feedback broadcast A, and the Bluetooth headset 200 calculates the loss A or the distance A based on the RSSI of the feedback broadcast B and the transmit power of the mobile phone B carried by the feedback broadcast B. Calculate and obtain loss B or distance B.
  • Bluetooth headset 200 calculates and obtains loss C or distance C based on the RSSI of feedback broadcast C and the transmit power of mobile phone C carried by feedback broadcast C.
  • Bluetooth headset 200 is carried based on RSSI of feedback broadcast D and feedback broadcast D. The transmit power of the mobile phone D is calculated to obtain the loss D or the distance D.
  • the Bluetooth headset 200 determines the mobile phone with the highest priority among the mobile phones A to D, for example, the mobile phone C has the highest priority, and sends the first command to the mobile phone C to pop up the pairing prompt box.
  • the Bluetooth headset 200 may determine the priority of the four mobile phones A to D based on the loss. The lower the loss, the higher the priority. The specific calculation is as follows:
  • Loss transmit power of mobile phone 100-Bluetooth headset 200 receives RSSI of feedback broadcast from the mobile phone. The loss calculation is done at the receiving end, namely the Bluetooth headset 200.
  • the loss between the Bluetooth headset 200 and the mobile phone 100 can be directly determined by the RSSI size of the feedback broadcast received by the Bluetooth headset 200, that is, the larger the RSSI, It means that the smaller the loss, the higher the priority.
  • the feedback broadcast may also carry information about the first loss, and the first loss is calculated based on the RSSI of the proximity discovery broadcast and the transmit power of the Bluetooth headset 200 carried by the proximity discovery broadcast. The specific calculation is as follows:
  • the Bluetooth headset 200 sends the loss calculation of the proximity discovery broadcast to the mobile phone 100
  • the first loss the transmit power of the Bluetooth headset 200-the mobile phone 100 receives the RSSI of the proximity discovery broadcast from the Bluetooth headset 200, and the loss calculation is completed at the receiving end, that is, the mobile phone 100.
  • the mobile phone 100 After the mobile phone 100 calculates and obtains the first loss, the mobile phone 100 can fill the first loss into the field of the feedback broadcast when sending the feedback broadcast to the Bluetooth headset 200, so that the Bluetooth mobile phone 100 can obtain the first loss.
  • the second loss is calculated based on the RSSI of the feedback broadcast and the transmit power of the mobile phone 100 carried by the feedback broadcast.
  • the specific calculation is as follows:
  • the second loss the transmit power of the mobile phone 100-the Bluetooth headset 200 receives the RSSI of the feedback broadcast from the mobile phone
  • the Bluetooth headset 200 After the Bluetooth headset 200 obtains the first loss and the second loss, the two are averaged to obtain the final average loss, and the priority of the mobile phone A to D is determined according to the average loss, thereby improving the accuracy of the loss calculation , which can improve the accuracy of determining the priority of the mobile phone.
  • the Bluetooth headset 200 may determine the priority of the four mobile phones A to D based on the distance. The smaller the distance, the higher the priority. The specific calculation is as follows:
  • the distance d (km) and the loss Lfs (dB) satisfy the following relational expression, taking the wireless communication distance in free space propagation as an example.
  • Lfs(dB) 32.44+20lgd(km)+20lgf(MHz), where f is the operating frequency.
  • the Bluetooth headset 200 determines the priorities of the mobile phones A to D, the first command in the pop-up box is sent to the mobile phone C with the highest priority, and the mobile phone C pops up a pairing prompt box 20. After the pairing request is approved by the user, the Bluetooth headset is paired successfully.
  • the Bluetooth headset 200 may send the first command of the bullet frame to the mobile phone C in a broadcast mode or a link mode.
  • the Bluetooth headset 200 broadcast payload carries a mobile phone identifier such as a MAC address or its ID information.
  • the mobile phone C with the highest priority parses the identifier and matches it with its own identification information. If they are consistent, the service is accepted. If they are not the same, the service will not be accepted.
  • the Bluetooth headset 200 is paired with the mobile phone 100, and the Bluetooth headset 200 informs the mobile phone 100 to establish a pairing service through dedicated signaling.
  • Fig. 9 shows a schematic diagram of an application scenario of a wireless communication system provided according to some embodiments of the present application.
  • the wireless communication system includes a screen projection device 300 and an electronic device such as a mobile phone 100.
  • the screen projection device 300 may be 2 flat-screens and 2 TVs. In some other embodiments, the screen projection device 300 may also be a tablet computer, or both may be at least two screen projection devices 300 such as a TV.
  • the mobile phone 100 may be a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.).
  • the electronic device may also be a personal digital assistant, a handheld PC, a wearable device (for example, a smart watch, a smart bracelet, etc.), a portable media player, a handheld device, a navigation device, a network device, a graphics device , Video game equipment, virtual reality and/or augmented reality equipment, in-vehicle infotainment equipment, streaming media client equipment, e-books, reading equipment and other equipment.
  • the screen projection device 300 turns on the background wireless scanning function, and the mobile phone 100 can trigger the screen projection service through specific operations such as the mobile phone menu or gestures.
  • the mobile phone 100 When the mobile phone 100 is subjected to a key or gesture operation, the mobile phone 100 sends a screencast broadcast. After the projection device 300 receives the projection broadcast from the mobile phone 100, it immediately sends a feedback broadcast to the mobile phone 100. Based on the feedback broadcast, the mobile phone 100 first instructs the projection device 300 to pop up a projection prompt box to ask the user whether to use the projection The device 300 performs screen projection, and after the screen projection device 300 authenticates, the screen projection device 300 and the mobile phone 100 successfully cast the screen.
  • the projection device 300 scans and receives the projection broadcast from the mobile phone 100
  • the projection device 300 immediately sends a feedback broadcast to the mobile phone 100.
  • the mobile phone receives the feedback broadcast from the projection device 300, it displays the information on the interface.
  • the entire list of screen projection devices 300 selected by the user. Since the list is disorderly, the user needs to identify the name of the screen projection device 300 to be screened in all the lists, and click the name of the screen projection device 300 to post the screen projection service. Since the list of the screen projection device 300 is disordered, it is more difficult for the user to identify the device. For example, if the user has two Mi TVs in his home, there will be two screen projection devices 300 with the same name displayed on the list, which is difficult for the user to identify and the user experience is poor.
  • the wireless communication system proposed by some embodiments of the present application, as shown in FIG. 9, when there are 4 screen projection devices 300 (tablet A, tablet B, TV C, and TV D) near the mobile phone 100, only the trigger priority is highest.
  • the TV C pops up the screen projection prompt box, which solves the problem that it is difficult to identify the target screen projection device 300 during the screen projection process of the screen projection device 300 and the mobile phone 100, and realizes the fast and interference-free connection between the mobile phone 100 and the screen projection device 300 Screen projection to improve user experience.
  • FIG. 10 shows the first flow chart of screen projection by the mobile phone 100 and the screen projection device 300 according to some embodiments of the present application.
  • the mobile phone 100 and the tablets A and B and the TVs C and D are in the same wireless network state.
  • the mobile phone 100 receives the screen projection service from the user through a specific operation such as a menu or gesture, it sends a screen projection broadcast and scans.
  • the projection broadcast carries information corresponding to the transmission power of the mobile phone 100 and so on.
  • Tablet A, B and TV C, D have started background scanning. After the tablets A and B and the TVs C and D scan and receive the projection broadcast from the mobile phone 100, they immediately send a feedback broadcast to the mobile phone 100.
  • the feedback broadcast carries information corresponding to the transmission power of each projection device. That is, feedback broadcast A carries information such as the transmission power of tablet A; feedback broadcast B carries information such as the transmission power of tablet B; feedback broadcast C carries information such as the transmission power of TV C; feedback broadcast D carries information such as TV D's transmit power and other information.
  • the mobile phone 100 scans and receives feedback broadcasts from the tablets A and B and the TVs C and D, respectively. Its mobile phone 100 can measure the RSSI of the corresponding feedback broadcasts of tablets A and B and TVs C and D.
  • the mobile phone 100 calculates and obtains the corresponding loss or distance based on the RSSI of the feedback broadcast and the information corresponding to the transmission power of each screen projection device 300 carried by it. That is, the mobile phone 100 calculates the loss A or distance A based on the RSSI of the feedback broadcast A and the transmit power of the tablet A carried by the feedback broadcast A, and the mobile phone 100 calculates and obtains the loss A or the distance A based on the RSSI of the feedback broadcast B and the transmit power of the tablet B carried by the feedback broadcast B.
  • Loss B or distance B the mobile phone 100 calculates the loss C or distance C based on the RSSI of the feedback broadcast C and the transmit power of the TV C carried by the feedback broadcast C.
  • the mobile phone 100 calculates the loss C or the distance C based on the RSSI of the feedback broadcast D and the TV D carried by the feedback broadcast D.
  • the transmit power is calculated to obtain the loss D or the distance D.
  • the Bluetooth headset 200 determines the projection device with the highest priority among the projection devices A to D based on the loss A to D or the distance A to D, for example, the TV C has the highest priority, and sends the first command to the TV C to pop up Cast screen prompt box.
  • the mobile phone 100 and the screen projection device 300 successfully cast the screen.
  • the mobile phone 100 may send the first instruction of the bullet frame to the mobile phone C in a broadcast mode or a link mode.
  • the mobile phone 100 broadcast payload carries a mobile phone identifier such as a MAC address or its ID information.
  • the TV C with the highest priority parses the identifier and matches it with its own identification information. If they are consistent, the service is accepted. If they are not the same, the service will not be accepted.
  • the mobile phone 100 and the screen projection device 300 project a screen, and the mobile phone 100 informs the screen projection device 300 to establish a screen projection service through dedicated signaling.
  • the mobile phone 10 may also provide the user with a priority list of the screen projection device 300 based on the distance, and the user determines that the screen projection action of the final screen projection device 300 occurs.
  • the mobile phone 100 can automatically select the target screen projection device C from the multiple screen projection devices 300 according to the priority, and the user experience is good.
  • the mobile phone 100 can provide the user with a priority list of projection devices 300 based on the distance, so that the user has a more intuitive judgment on each projection device 300, even if the list contains two projection devices with the same name.
  • the screen device the user can also identify the target screen projection device 300 quickly.
  • FIG. 11 shows the second flowchart of the screen projection of the mobile phone 100 and the screen projection device 300 according to some embodiments of the present application.
  • the phone has enabled wireless background scanning.
  • the projection device 300 transmits a broadcast when it is allowed to receive services.
  • the permission to receive services can be understood as the screen projection device 300 is in a state of waiting to be projected, and not in a business state such as playing videos or playing games.
  • the broadcast carries information corresponding to the transmission power of each projection device. That is, feedback broadcast A carries information such as the transmission power of tablet A; feedback broadcast B carries information such as the transmission power of tablet B; feedback broadcast C carries information such as the transmission power of TV C; feedback broadcast D carries information such as TV D's transmit power and other information.
  • the mobile phone 100 scans and receives the broadcast from each projection device 300 (tablet A, B and TV C, D).
  • the mobile phone 100 can measure the RSSI of the corresponding feedback broadcast of the tablet A, B and TV C, D.
  • the mobile phone 100 is based on the broadcast
  • the RSSI and the information it carries corresponding to the transmit power of each projection device are calculated to obtain the corresponding loss or distance. That is, the mobile phone 100 calculates the loss A or distance A based on the RSSI of broadcast A and the transmit power of the tablet A carried by the broadcast A, and the mobile phone 100 calculates the loss B or distance based on the RSSI of the broadcast B and the transmit power of the tablet B carried by the broadcast B.
  • B the mobile phone 100 calculates the loss A or distance A based on the RSSI of broadcast A and the transmit power of the tablet A carried by the broadcast B.
  • the mobile phone 100 calculates the loss C or distance C based on the RSSI of broadcast C and the transmit power of the TV C carried by the broadcast C.
  • the mobile phone 100 calculates the loss D or distance based on the RSSI of the broadcast D and the transmit power of the TV D carried by the broadcast D. D.
  • the Bluetooth headset 200 determines the projection device with the highest priority among the projection devices A to D based on the loss A to D or the distance A to D, for example, the TV C has the highest priority, and sends the first command to the TV C to pop up Cast screen prompt box.
  • the mobile phone 100 and the screen projection device 300 successfully cast the screen.
  • the mobile phone 100 may send the first command of the bullet frame to the mobile phone C in a broadcast mode or a link mode.
  • the mobile phone 100 broadcast payload carries a mobile phone identifier such as a MAC address or its ID information.
  • the TV C with the highest priority parses the identifier and matches it with its own identification information. If they are consistent, the service is accepted. If they are not the same, the service will not be accepted.
  • the mobile phone 100 and the screen projection device 300 project a screen, and the mobile phone 100 informs the screen projection device 300 to establish a screen projection service through dedicated signaling.
  • the mobile phone 10 may also provide the user with a priority list of the screen projection device 300 based on the distance, and the user determines that the final screen projection device 300 will perform a screen projection action.
  • the mobile phone 100 can automatically select the target screen projection device C from the multiple screen projection devices 300 according to the priority, and the user experience is good.
  • the mobile phone 100 can provide the user with a priority list of projection devices 300 based on the distance, so that the user has a more intuitive judgment on each projection device 300, even if the list contains two projection devices with the same name.
  • the screen device the user can also identify the target screen projection device 300 quickly.
  • the present application can also be applied to scenarios such as file transfer between electronic devices.
  • FIG. 12 shows an example system 1400 according to various embodiments.
  • the system 1400 may include one or more processors 1404, a system control logic 1408 connected to at least one of the processors 1404, a system memory 1412 connected to the system control logic 1408, and a system control logic 1408 connected to the system control logic 1408.
  • NVM non-volatile memory
  • the processor 1404 may include one or more single-core or multi-core processors. In some embodiments, the processor 1404 may include any combination of a general-purpose processor and a special-purpose processor (for example, a graphics processor, an application processor, a baseband processor, etc.). In an embodiment in which the system 1400 adopts an eNB (Evolved Node B, enhanced base station) 101 or a RAN (Radio Access Network, radio access network) controller 102, the processor 1404 may be configured to execute various conforming embodiments, For example, one or more of the multiple embodiments shown in FIGS. 8, 11, and 11.
  • eNB evolved Node B, enhanced base station
  • RAN Radio Access Network, radio access network
  • system control logic 1408 may include any suitable interface controller to provide any suitable interface to at least one of the processors 1404 and/or any suitable device or component in communication with the system control logic 1408.
  • system control logic 1408 may include one or more memory controllers to provide an interface to the system memory 1412.
  • the system memory 1412 may be used to load and store data and/or first instructions.
  • the memory 1412 of the system 1400 may include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).
  • DRAM dynamic random access memory
  • the NVM/memory 1416 may include one or more tangible, non-transitory computer-readable media for storing data and/or first instructions.
  • the NVM/memory 1416 may include any suitable non-volatile memory such as flash memory and/or any suitable non-volatile storage device, such as HDD (Hard Disk
  • CD Compact Disc
  • DVD Digital Versatile Disc
  • the NVM/memory 1416 may include a part of the storage resources on the device where the system 1400 is installed, or it may be accessed by the device, but not necessarily a part of the device.
  • the NVM/storage 1416 can be accessed through the network via the network interface 1420.
  • the system memory 1412 and the NVM/memory 1416 may respectively include: a temporary copy and a permanent copy of the first instruction 1424.
  • the first instruction 1424 may include: a first instruction that when executed by at least one of the processors 1404 causes the system 1400 to implement the method shown in FIG. 8, FIG. 11, and FIG. 11.
  • the first instructions 1424, hardware, firmware, and/or software components thereof may additionally/alternatively be placed in the system control logic 1408, the network interface 1420, and/or the processor 1404.
  • the network interface 1420 may include a transceiver, which is used to provide a radio interface for the system 1400, and then communicate with any other suitable devices (such as a front-end module, an antenna, etc.) through one or more networks.
  • the network interface 1420 may be integrated with other components of the system 1400.
  • the network interface 1420 may be integrated with at least one of the processor 1404, the system memory 1412, the NVM/memory 1416, and the firmware device (not shown) with the first instruction, when at least one of the processor 1404 executes When the first instruction is used, the system 1400 implements the methods shown in FIGS. 5 and 8-9.
  • the network interface 1420 may further include any suitable hardware and/or firmware to provide a multiple input multiple output radio interface.
  • the network interface 1420 may be a network adapter, a wireless network adapter, a telephone modem and/or a wireless modem.
  • At least one of the processors 1404 may be packaged with the logic of one or more controllers for the system control logic 1408 to form a system in package (SiP). In one embodiment, at least one of the processors 1404 may be integrated with the logic of one or more controllers for the system control logic 1408 on the same die to form a system on chip (SoC).
  • SiP system in package
  • SoC system on chip
  • the system 1400 may further include: an input/output (I/O) device 1432.
  • the I/O device 1432 may include a user interface to enable a user to interact with the system 1400; the design of the peripheral component interface enables the peripheral component to also interact with the system 1400.
  • the system 1400 further includes a sensor for determining at least one of environmental conditions and location information related to the system 1400.
  • the user interface may include, but is not limited to, a display (e.g., liquid crystal display, touch screen display, etc.), speakers, microphones, one or more cameras (e.g., still image cameras and/or video cameras), flashlights (e.g., LED flash) and keyboard.
  • a display e.g., liquid crystal display, touch screen display, etc.
  • speakers e.g., speakers, microphones, one or more cameras (e.g., still image cameras and/or video cameras), flashlights (e.g., LED flash) and keyboard.
  • peripheral component interfaces may include, but are not limited to, non-volatile memory ports, audio jacks, and power interfaces.
  • the senor may include, but is not limited to, a gyroscope sensor, an accelerometer, a proximity sensor, an ambient light sensor, and a positioning unit.
  • the positioning unit may also be part of or interact with the network interface 1420 to communicate with components of the positioning network (eg, global positioning system (GPS) satellites).
  • GPS global positioning system
  • FIG. 13 shows a block diagram of a SoC (System on Chip) 1500.
  • SoC System on Chip
  • the SoC 1500 includes: an interconnection unit 1550, which is coupled to an application processor 1515; a system agent unit 1570; a bus controller unit 1580; an integrated memory controller unit 1540; a group or one or more co-processing
  • the device 1520 may include an integrated graphics logic, image processor, audio processor, and video processor; a static random access memory (SRAM) unit 1530; and a direct memory access (DMA) unit 1560.
  • the coprocessor 1520 includes a dedicated processor, such as, for example, a network or communication processor, a compression engine, a GPGPU, a high-throughput MIC processor, or an embedded processor, etc.
  • the various embodiments of the mechanism disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods.
  • the embodiments of the present application can be implemented as a computer program or program code executed on a programmable system including at least one processor and a storage system (including volatile and non-volatile memory and/or storage elements) , At least one input device and at least one output device.
  • the program code can be applied to input the first instruction to perform the functions described in this application and generate output information.
  • the output information can be applied to one or more output devices in a known manner.
  • a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • the program code can be implemented in a high-level programming language or an object-oriented programming language to communicate with the processing system.
  • assembly language or machine language can also be used to implement the program code.
  • the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.
  • the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof.
  • the disclosed embodiments may also be implemented as first instructions carried by or stored on one or more transient or non-transitory machine-readable (for example, computer-readable) storage media, which may be executed by one or more The processor reads and executes.
  • the first instruction may be distributed through a network or through other computer-readable media.
  • a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (for example, a computer), including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magnetic Optical disk, read only memory (ROM), random access memory (RAM), erasable programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), magnetic or optical card, flash memory, or A tangible machine-readable memory used to transmit information (for example, carrier waves, infrared signals, digital signals, etc.) using the Internet with electric, optical, acoustic, or other forms of propagating signals. Therefore, the machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic first instructions or information in a form readable by a machine (for example, a computer).
  • each unit/module mentioned in each device embodiment of this application is a logical unit/module.
  • a logical unit/module can be a physical unit/module or a physical unit/ A part of the module can also be realized by a combination of multiple physical units/modules.
  • the physical realization of these logical units/modules is not the most important.
  • the combination of the functions implemented by these logical units/modules is the solution to this application.
  • the above-mentioned device embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems proposed by this application. This does not mean that the above-mentioned device embodiments do not exist. Other units/modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to a Bluetooth communication system and a wireless communication system. The Bluetooth communication system comprises a Bluetooth earphone, a first electronic device and a second electronic device, wherein the Bluetooth earphone is configured to: receive a first operation of a user; send a BLE broadcast to the first electronic device and the second electronic device in response to the first operation; receive a first response message from the first electronic device; and receive a second response message from the second electronic device, determine, on the basis of the first response message and the second response message, that the first electronic device has a priority, and send a first instruction to the first electronic device, such that the first electronic device makes a pairing prompt box pop up; and the first electronic device is configured to: in response to the first instruction, display, on a first interface, the pairing prompt box including information of the Bluetooth earphone. Therefore, a Bluetooth earphone can be quickly paired with a mobile phone without interference.

Description

蓝牙通信系统和无线通信系统Bluetooth communication system and wireless communication system
本申请要求于2020年3月10日提交中国专利局、申请号为202010163215.0、申请名称为“蓝牙通信系统和无线通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 202010163215.0, and the application name is "Bluetooth communication system and wireless communication system" on March 10, 2020, the entire content of which is incorporated into this application by reference .
技术领域Technical field
本发明涉及通讯领域,特别是涉及一种蓝牙通信系统和无线通信系统。The present invention relates to the field of communication, in particular to a Bluetooth communication system and a wireless communication system.
背景技术Background technique
随着无线通信技术的发展,越来越多的电子设备的通讯方式从有线通讯转变到了无线通讯。例如与人们生活息息相关的耳机与手机,从原本的有线通讯方式逐渐地转变到无线蓝牙通讯方式。With the development of wireless communication technology, more and more electronic devices have changed their communication methods from wired communication to wireless communication. For example, earphones and mobile phones, which are closely related to people's lives, have gradually changed from the original wired communication method to the wireless Bluetooth communication method.
在蓝牙耳机与手机等进行配对的过程中,通常是按照标准的蓝牙标准的协议,例如扫描寻呼过程,例如,终端设备接收用户打开设置中的蓝牙开关的命令,终端设备扫描周围的靠近发现广播。当终端设备扫描到蓝牙耳机发送的靠近发现广播时,终端设备弹出配对询问框。终端设备接收到用户的许可第一指令后,蓝牙耳机与手机配对成功。In the process of pairing a Bluetooth headset with a mobile phone, etc., it is usually in accordance with the standard Bluetooth standard protocol, such as scanning and paging process. For example, the terminal device receives the user's command to turn on the Bluetooth switch in the settings, and the terminal device scans the surrounding proximity to find broadcast. When the terminal device scans the proximity discovery broadcast sent by the Bluetooth headset, the terminal device pops up a pairing query box. After the terminal device receives the user's first permission instruction, the Bluetooth headset is successfully paired with the mobile phone.
发明内容Summary of the invention
为让本发明的上述内容能更明显易懂,下文特举优选实施例,并结合附图,作详细说明如下。In order to make the above-mentioned content of the present invention more obvious and understandable, a detailed description is given below of preferred embodiments in conjunction with the accompanying drawings.
在第一方面,根据本申请的一些实施例提供的一种蓝牙通信系统,包括蓝牙耳机、第一电子设备和第二电子设备,蓝牙耳机被配置为:接收用户的第一操作;响应于第一操作,发送BLE广播至第一电子设备和第二电子设备;接收第一电子设备的第一响应消息;接收第二电子设备的第二响应消息,基于第一响应消息和第二响应消息,确定第一电子设备具有优先级,发送第一指令至第一电子设备以使第一电子设备弹出配对提示框;第一电子设备被配置为:响应于第一指令,在第一界面上显示包含有蓝牙耳机的信息的配对提示框。In the first aspect, according to some embodiments of the present application, a Bluetooth communication system includes a Bluetooth headset, a first electronic device, and a second electronic device. The Bluetooth headset is configured to: receive a user's first operation; In one operation, send a BLE broadcast to the first electronic device and the second electronic device; receive the first response message of the first electronic device; receive the second response message of the second electronic device, based on the first response message and the second response message, It is determined that the first electronic device has priority, and a first instruction is sent to the first electronic device so that the first electronic device pops up a pairing prompt box; the first electronic device is configured to: in response to the first instruction, display on the first interface that contains There is a pairing prompt box with information about the Bluetooth headset.
在一些实施例中,第一响应消息携带有第一电子设备的第一发送功率的信息;第二响应消息携带有第二电子设备的第二发送功率的信息,蓝牙耳机被配置为:基于第一发射功率和第一响应消息的第一RSSI,计算获得第一损耗或第一距离;基于第二发射功率和第二响应消息的第二RSSI,计算获得第二损耗或第二距离,基于第一损耗和第二损耗,确定第一电子设备具有优先级,或基于第一距离和第二距离,确定第一电子设备具有优先级。In some embodiments, the first response message carries information about the first transmission power of the first electronic device; the second response message carries information about the second transmission power of the second electronic device, and the Bluetooth headset is configured to: A transmit power and the first RSSI of the first response message, calculate the first loss or first distance; based on the second transmit power and the second RSSI of the second response message, calculate the second loss or second distance, based on the first For a loss and a second loss, it is determined that the first electronic device has priority, or based on the first distance and the second distance, it is determined that the first electronic device has priority.
在一些实施例中,当第一电子设备的第一发射功率与第二电子设备的第二发送功 率相同时,蓝牙耳机被配置为:基于第一响应消息的第一RSSI和第二响应消息的第二RSSI,确定第一电子设备具有优先级。In some embodiments, when the first transmission power of the first electronic device is the same as the second transmission power of the second electronic device, the Bluetooth headset is configured to: The second RSSI determines that the first electronic device has priority.
在一些实施例中,第一电子设备被配置为:配对提示框包括用户选项,接收用户针对用户选项的第二操作;响应于第二操作,蓝牙耳机与第一电子设备配对成功。In some embodiments, the first electronic device is configured to: the pairing prompt box includes a user option, and the second operation of the user with respect to the user option is received; in response to the second operation, the Bluetooth headset is successfully paired with the first electronic device.
在一些实施例中,蓝牙耳机的信息包括蓝牙耳机的名称和蓝牙耳机的图标中的至少一种。In some embodiments, the information of the Bluetooth headset includes at least one of the name of the Bluetooth headset and the icon of the Bluetooth headset.
在一些实施例中,第一指令通过链路或广播方式发送至第一电子设备。In some embodiments, the first instruction is sent to the first electronic device through a link or broadcast.
在第二方面,根据本申请的一些实施例提供的一种蓝牙耳机的通信方法,包括以下步骤:接收用户的第一操作;响应于第一操作,发送BLE广播至第一电子设备和第二电子设备;接收第一电子设备的第一响应消息;接收第二电子设备的第二响应消息,基于第一响应消息和第二响应消息,确定第一电子设备具有优先级,发送第一指令至第一电子设备以使第一电子设备弹出配对提示框。In the second aspect, a Bluetooth headset communication method provided according to some embodiments of the present application includes the following steps: receiving a user's first operation; in response to the first operation, sending a BLE broadcast to the first electronic device and the second electronic device Electronic device; receiving the first response message of the first electronic device; receiving the second response message of the second electronic device, based on the first response message and the second response message, determining that the first electronic device has priority, and sending the first instruction to The first electronic device causes the first electronic device to pop up a pairing prompt box.
在一些实施例中,第一响应消息携带有第一电子设备的第一发送功率的信息;第二响应消息携带有第二电子设备的第二发送功率的信息,基于第一响应消息和第二响应消息,确定第一电子设备具有优先级,发送第一指令至第一电子设备以使第一电子设备弹出配对提示框的步骤中包括:基于第一发射功率和第一响应消息的第一RSSI计算,获得第一损耗或第一距离;基于第二发射功率和第二响应消息的第二RSSI计算,获得第二损耗或第二距离,基于第一损耗和第二损耗,确定第一电子设备具有优先级,或基于第一距离和第二距离,确定第一电子设备具有优先级。In some embodiments, the first response message carries the information of the first transmission power of the first electronic device; the second response message carries the information of the second transmission power of the second electronic device, based on the first response message and the second transmission power. In response to the message, it is determined that the first electronic device has priority, and the step of sending a first instruction to the first electronic device to cause the first electronic device to pop up a pairing prompt box includes: a first RSSI based on the first transmission power and the first response message Calculate to obtain the first loss or first distance; calculate based on the second transmit power and the second RSSI of the second response message to obtain the second loss or second distance, and determine the first electronic device based on the first loss and the second loss Has priority, or determines that the first electronic device has priority based on the first distance and the second distance.
在一些实施例中,当第一电子设备的第一发射功率与第二电子设备的第二发送功率相同时,基于第一响应消息和第二响应消息,确定第一电子设备具有优先级,发送第一指令至第一电子设备以使第一电子设备弹出配对提示框的步骤中包括:基于第一响应消息的第一RSSI和第二响应消息的第二RSSI,确定第一电子设备具有优先级。In some embodiments, when the first transmission power of the first electronic device is the same as the second transmission power of the second electronic device, based on the first response message and the second response message, it is determined that the first electronic device has priority, and the transmission The step of sending the first instruction to the first electronic device to make the first electronic device pop up the pairing prompt box includes: determining that the first electronic device has priority based on the first RSSI of the first response message and the second RSSI of the second response message .
在一些实施例中,蓝牙耳机的信息包括蓝牙耳机的名称和蓝牙耳机的图标中的至少一种。In some embodiments, the information of the Bluetooth headset includes at least one of the name of the Bluetooth headset and the icon of the Bluetooth headset.
在第三方面,根据本申请的一些实施例提供的一种无线通信系统,包括手机、第一投屏设备和第二投屏设备,手机被配置为:接收用户的第一操作;响应于第一操作,发送投屏广播至第一投屏设备和第二投屏设备;接收第一投屏设备的第一响应消息;接收第二投屏设备的第二响应消息,基于第一响应消息和第二响应消息,确定第一投屏设备具有优先级,发送第一指令至第一投屏设备以使第一投屏设备弹出投屏提示框;第一投屏设备被配置为:响应于第一指令,在第一界面上显示有投屏提示框。In a third aspect, a wireless communication system provided according to some embodiments of the present application includes a mobile phone, a first screen projection device, and a second screen projection device. The mobile phone is configured to: receive a user's first operation; In one operation, send a screencast broadcast to the first screencast device and the second screencast device; receive the first response message from the first screencast device; receive the second response message from the second screencast device, based on the first response message and In the second response message, it is determined that the first screen projection device has priority, and the first instruction is sent to the first screen projection device to cause the first screen projection device to pop up a screen projection prompt box; the first screen projection device is configured to: respond to the first screen projection device One instruction, a screen projection prompt box is displayed on the first interface.
在一些实施例中,第一响应消息携带有第一投屏设备的第一发送功率的信息;第二响应消息携带有第二投屏设备的第二发送功率的信息,手机被配置为:基于第一发射功率和第一响应消息的第一RSSI,计算获得第一损耗或第一距离;基于第二发射功率和第二响应消息的第二RSSI,计算获得第二损耗或第二距离,基于第一损耗和第二损耗,确定第一投屏设备具有优先级,或基于第一距离和第二距离,确定第一投屏设备具有优先级。In some embodiments, the first response message carries information about the first transmission power of the first screen projection device; the second response message carries information about the second transmission power of the second screen projection device, and the mobile phone is configured to: The first transmission power and the first RSSI of the first response message are calculated to obtain the first loss or the first distance; based on the second transmission power and the second RSSI of the second response message, the second loss or the second distance is calculated, based on For the first loss and the second loss, it is determined that the first screen projection device has priority, or based on the first distance and the second distance, it is determined that the first screen projection device has priority.
在一些实施例中,当第一投屏设备的第一发射功率与第二投屏设备的第二发送功率相同时,手机被配置为:基于第一响应消息的第一RSSI和第二响应消息的第二RSSI, 确定第一投屏设备具有优先级。In some embodiments, when the first transmission power of the first projection device is the same as the second transmission power of the second projection device, the mobile phone is configured to: based on the first RSSI and the second response message of the first response message The second RSSI determines that the first screen projection device has priority.
在一些实施例中,第一投屏设备被配置为:投屏提示框包括用户选项,接收用户针对用户选项的第二操作;响应于第二操作,手机与第一投屏设备投屏成功。In some embodiments, the first screen projection device is configured to: the screen projection prompt box includes a user option, and receives a second operation of the user for the user option; in response to the second operation, the mobile phone and the first screen projection device successfully cast the screen.
在第四方面,根据本申请的一些实施例提供的一种手机的通信方法,包括如下步骤:接收用户的第一操作;响应于第一操作,发送投屏广播至第一投屏设备和第二投屏设备;接收第一投屏设备的第一响应消息;接收第二投屏设备的第二响应消息,基于第一响应消息和第二响应消息,确定第一投屏设备具有优先级,发送第一指令至第一投屏设备以使第一投屏设备弹出投屏提示框。In a fourth aspect, a mobile phone communication method according to some embodiments of the present application includes the following steps: receiving a user's first operation; in response to the first operation, sending a screencast broadcast to the first screencasting device and the second screencasting device Second screen projection device; receive the first response message of the first screen projection device; receive the second response message of the second screen projection device, and determine that the first screen projection device has priority based on the first response message and the second response message, Send the first instruction to the first screen projection device to make the first screen projection device pop up a screen projection prompt box.
在一些实施例中,第一响应消息携带有第一投屏设备的第一发送功率的信息;第二响应消息携带有第二投屏设备的第二发送功率的信息,基于第一响应消息和第二响应消息,确定第一投屏设备具有优先级,发送第一指令至第一投屏设备以使第一投屏设备弹出投屏提示框的步骤中包括:基于第一发射功率和第一响应消息的第一RSSI,计算获得第一损耗或第一距离;基于第二发射功率和第二响应消息的第二RSSI,计算获得第二损耗或第二距离,基于第一损耗和第二损耗,确定第一投屏设备具有优先级,或基于第一距离和第二距离,确定第一投屏设备具有优先级。In some embodiments, the first response message carries information about the first transmission power of the first screen projection device; the second response message carries information about the second transmission power of the second screen projection device, based on the first response message and In the second response message, it is determined that the first screen projection device has priority, and the step of sending the first instruction to the first screen projection device to make the first screen projection device pop up the screen projection prompt box includes: based on the first transmission power and the first The first RSSI of the response message is calculated to obtain the first loss or the first distance; based on the second transmit power and the second RSSI of the second response message, the second loss or the second distance is calculated, based on the first loss and the second loss , Determine that the first screen projection device has priority, or determine that the first screen projection device has priority based on the first distance and the second distance.
在一些实施例中,当第一投屏设备的第一发射功率与第二投屏设备的第二发送功率相同时,基于第一响应消息和第二响应消息,确定第一投屏设备具有优先级,发送第一指令至第一投屏设备以使第一投屏设备弹出投屏提示框的步骤中包括:基于第一响应消息的第一RSSI和第二响应消息的第二RSSI,确定第一投屏设备具有优先级。In some embodiments, when the first transmission power of the first projection device is the same as the second transmission power of the second projection device, it is determined that the first projection device has priority based on the first response message and the second response message. In the first stage, sending a first instruction to the first screen projection device to make the first screen projection device pop up a screen projection prompt box includes: based on the first RSSI of the first response message and the second RSSI of the second response message, determining the first A screen projection device has priority.
在第五方面,根据本申请的一些实施例提供的一种终端,包括:处理器、存储器和触摸屏,存储器、触摸屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,以使得终端执行如下步骤:接收用户的第一操作;响应于第一操作,发送BLE广播至第一电子设备和第二电子设备;接收第一电子设备的第一响应消息;接收第二电子设备的第二响应消息,基于第一响应消息和第二响应消息,确定第一电子设备具有优先级,发送第一指令至第一电子设备以使第一电子设备弹出配对提示框。In the fifth aspect, a terminal provided according to some embodiments of the present application includes: a processor, a memory, and a touch screen, the memory, the touch screen and the processor are coupled, the memory is used to store computer program codes, and the computer program codes include computer instructions, When the processor reads the computer instructions from the memory, so that the terminal performs the following steps: receiving the user's first operation; in response to the first operation, sending a BLE broadcast to the first electronic device and the second electronic device; receiving the first electronic device First response message of the second electronic device; receiving the second response message of the second electronic device, based on the first response message and the second response message, determining that the first electronic device has priority, and sending the first instruction to the first electronic device to make the first The electronic device pops up a pairing prompt box.
在一些实施例中,第一响应消息携带有第一电子设备的第一发送功率的信息;第二响应消息携带有第二电子设备的第二发送功率的信息,基于第一响应消息和第二响应消息,确定第一电子设备具有优先级,发送第一指令至第一电子设备以使第一电子设备弹出配对提示框的步骤中包括:基于第一发射功率和第一响应消息的第一RSSI计算,获得第一损耗或第一距离;基于第二发射功率和第二响应消息的第二RSSI计算,获得第二损耗或第二距离,基于第一损耗和第二损耗,确定第一电子设备具有优先级,或基于第一距离和第二距离,确定第一电子设备具有优先级。In some embodiments, the first response message carries the information of the first transmission power of the first electronic device; the second response message carries the information of the second transmission power of the second electronic device, based on the first response message and the second transmission power. In response to the message, it is determined that the first electronic device has priority, and the step of sending a first instruction to the first electronic device to cause the first electronic device to pop up a pairing prompt box includes: a first RSSI based on the first transmission power and the first response message Calculate to obtain the first loss or first distance; calculate based on the second transmit power and the second RSSI of the second response message to obtain the second loss or second distance, and determine the first electronic device based on the first loss and the second loss Has priority, or determines that the first electronic device has priority based on the first distance and the second distance.
在一些实施例中,当第一电子设备的第一发射功率与第二电子设备的第二发送功率相同时,基于第一响应消息和第二响应消息,确定第一电子设备具有优先级,发送第一指令至第一电子设备以使第一电子设备弹出配对提示框的步骤中包括:基于第一响应消息的第一RSSI和第二响应消息的第二RSSI,确定第一电子设备具有优先级。In some embodiments, when the first transmission power of the first electronic device is the same as the second transmission power of the second electronic device, based on the first response message and the second response message, it is determined that the first electronic device has priority, and the transmission The step of sending the first instruction to the first electronic device to make the first electronic device pop up the pairing prompt box includes: determining that the first electronic device has priority based on the first RSSI of the first response message and the second RSSI of the second response message .
在第六方面,根据本申请的一些实施例提供的一种终端,包括:处理器、存储器和触摸屏,存储器、触摸屏与处理器耦合,存储器用于存储计算机程序代码,计算机 程序代码包括计算机指令,当处理器从存储器中读取计算机指令,以使得终端执行如下步骤:接收用户的第一操作;响应于第一操作,发送投屏广播至第一投屏设备和第二投屏设备;接收第一投屏设备的第一响应消息;接收第二投屏设备的第二响应消息,基于第一响应消息和第二响应消息,确定第一投屏设备具有优先级,发送第一指令至第一投屏设备以使第一投屏设备弹出投屏提示框。In a sixth aspect, a terminal provided according to some embodiments of the present application includes: a processor, a memory, and a touch screen, the memory, the touch screen and the processor are coupled, the memory is used to store computer program codes, and the computer program codes include computer instructions, When the processor reads the computer instructions from the memory, so that the terminal performs the following steps: receiving the user's first operation; in response to the first operation, sending a screencast broadcast to the first screencasting device and the second screencasting device; receiving the first operation A first response message of a projection device; receiving a second response message of a second projection device, based on the first response message and the second response message, determine that the first projection device has priority, and send the first instruction to the first The screen projection device so that the first screen projection device pops up a screen projection prompt box.
在一些实施例中,第一响应消息携带有第一投屏设备的第一发送功率的信息;第二响应消息携带有第二投屏设备的第二发送功率的信息,基于第一响应消息和第二响应消息,确定第一投屏设备具有优先级,发送第一指令至第一投屏设备以使第一投屏设备弹出投屏提示框的步骤中包括:基于第一发射功率和第一响应消息的第一RSSI,计算获得第一损耗或第一距离;基于第二发射功率和第二响应消息的第二RSSI,计算获得第二损耗或第二距离,基于第一损耗和第二损耗,确定投屏电子设备具有优先级,或基于第一距离和第二距离,确定第一投屏设备具有优先级。In some embodiments, the first response message carries information about the first transmission power of the first screen projection device; the second response message carries information about the second transmission power of the second screen projection device, based on the first response message and In the second response message, it is determined that the first screen projection device has priority, and the step of sending the first instruction to the first screen projection device to make the first screen projection device pop up the screen projection prompt box includes: based on the first transmission power and the first The first RSSI of the response message is calculated to obtain the first loss or the first distance; based on the second transmit power and the second RSSI of the second response message, the second loss or the second distance is calculated, based on the first loss and the second loss , It is determined that the screen projection electronic device has priority, or based on the first distance and the second distance, it is determined that the first screen projection device has priority.
在一些实施例中,当第一投屏设备的第一发射功率与第二投屏设备的第二发送功率相同时,基于第一响应消息和第二响应消息,确定第一投屏设备具有优先级,发送第一指令至第一投屏设备以使第一投屏设备弹出投屏提示框的步骤中包括:基于第一响应消息的第一RSSI和第二响应消息的第二RSSI,确定第一投屏设备具有优先级。In some embodiments, when the first transmission power of the first projection device is the same as the second transmission power of the second projection device, it is determined that the first projection device has priority based on the first response message and the second response message. In the first stage, sending a first instruction to the first screen projection device to make the first screen projection device pop up a screen projection prompt box includes: based on the first RSSI of the first response message and the second RSSI of the second response message, determining the first A screen projection device has priority.
在第七方面,根据本申请的一些实施例提供的一种触发预定业务过程中确定投送业务接收方设备的方法,用于包括多个电子设备的系统,多个电子设备中包括作为业务发起方设备的电子设备,以及至少两个作为业务接收方设备的电子设备,方法包括以下步骤:至少两个业务接收方设备分别发送用于预定业务的业务可用性广播;业务发起方设备扫描并接收来自至少两个业务接收方设备的业务可用性广播;业务发起方设备基于扫描到的业务可用性广播的RSSI和其携带的业务接收方的发射功率的信息,确定至少两个业务接收方设备的优先级,并基于优先级确定最终的业务接收方设备;以及业务发起方设备向最终的业务接收方设备投送业务。In a seventh aspect, according to some embodiments of the present application, a method for determining a delivery service recipient device in a process of triggering a predetermined service is provided, which is used in a system including multiple electronic devices, and the multiple electronic devices include the The method includes the following steps: at least two service receiver devices respectively send service availability broadcasts for predetermined services; the service initiator device scans and receives services from The service availability broadcast of at least two service receiver devices; the service initiator device determines the priority of at least two service receiver devices based on the scanned RSSI of the service availability broadcast and the information on the transmit power of the service receiver carried by it, The final service receiver device is determined based on the priority; and the service initiator device delivers the service to the final service receiver device.
在一些实施例中,业务发起方设备基于扫描到的业务可用性广播的RSSI和其携带的业务接收方的发射功率的信息,确定至少两个业务接收方设备的优先级的步骤中,包括:业务发起方设备基于扫描到的业务可用性广播的RSSI和其携带的业务接收方的发射功率的信息,分别计算出业务发起方设备与每一业务接收方设备之间的距离,并按照距离,确定至少两个业务接收方设备的优先级。In some embodiments, the service initiator device determines the priority of at least two service receiver devices based on the scanned RSSI of the service availability broadcast and the information on the transmission power of the service receiver carried by it, including: The initiator device respectively calculates the distance between the service initiator device and each service receiver device based on the RSSI broadcast by the scanned service availability and the information about the transmission power of the service receiver, and determines at least The priority of the two service receiver devices.
在一些实施例中,业务发起方设备基于扫描到的业务可用性广播的RSSI和其携带的业务接收方的发射功率的信息,确定至少两个业务接收方设备的优先级的步骤中,包括:业务发起方设备基于扫描到的业务可用性广播的RSSI和其携带的业务接收方的发射功率的信息,分别计算出业务发起方设备与每一业务接收方设备之间的损耗,并按照损耗,确定至少两个业务接收方设备的优先级。In some embodiments, the service initiator device determines the priority of at least two service receiver devices based on the scanned RSSI of the service availability broadcast and the information on the transmission power of the service receiver carried by it, including: The initiator device calculates the loss between the service initiator device and each service receiver device based on the RSSI broadcast by the scanned service availability and the information of the service receiver’s transmit power carried by it, and determines at least the loss according to the loss The priority of the two service receiver devices.
在一些实施例中,进一步包括:业务发起方设备在优先级中选择距离或损耗最小的业务可用性广播所对应的业务接收方设备。In some embodiments, it further includes: the service initiator device selecting the service receiver device corresponding to the service availability broadcast with the smallest distance or loss in the priority.
在一些实施例中,业务可用性广播是基于业务发起方发送的基于业务的广播的反馈广播。In some embodiments, the service availability broadcast is a feedback broadcast based on the service-based broadcast sent by the service initiator.
在一些实施例中,反馈广播携带有业务发起方设备发送的基于业务的广播所对应 的第一距离或第一损耗。In some embodiments, the feedback broadcast carries the first distance or first loss corresponding to the service-based broadcast sent by the service initiator device.
在一些实施例中,业务发起方设备基于扫描到的业务可用性广播的RSSI和其携带的业务接收方的发射功率的信息,分别计算出业务发起方设备与每一业务接收方设备之间的距离,并按照距离,确定至少两个业务接收方设备的优先级的步骤中,包括:业务发起方设备基于扫描到的每一反馈广播对应的第二距离或第二损耗与相应的基于业务的广播对应的第一距离或第一损耗,分别计算出业务发起方设备与每一业务接收方设备之间的平均距离或平均损耗,并按照平均距离或平均损耗,确定至少两个业务接收方设备的优先级。In some embodiments, the service initiator device separately calculates the distance between the service initiator device and each service receiver device based on the scanned RSSI of the service availability broadcast and the information about the transmission power of the service receiver carried by it. , And according to the distance, the step of determining the priority of at least two service receiver devices includes: the service initiator device broadcasts the corresponding second distance or second loss and the corresponding service-based broadcast based on each scanned feedback Corresponding to the first distance or first loss, calculate the average distance or average loss between the service initiator device and each service receiver device, and determine the average distance or average loss of at least two service receiver devices according to the average distance or average loss. priority.
在一些实施例中,业务发起方设备发送的基于业务的广播包括:靠近发现广播和/或投屏广播。In some embodiments, the service-based broadcast sent by the service initiator device includes: proximity discovery broadcast and/or screencast broadcast.
在一些实施例中,业务发起方设备向最终的业务接收方设备投送业务的步骤中,包括:业务发起方设备通过广播方式或者链路方式向最终的业务接收方设备投送业务。In some embodiments, the step of the service initiator device delivering the service to the final service recipient device includes: the service initiator device delivers the service to the final service recipient device in a broadcast mode or a link mode.
在第六方面,根据本申请的一些实施例提供的一种电子设备,作为业务发起方设备,包括:扫描接收模块,用于扫描并接收来自至少两个业务接收方设备的用于预定业务的业务可用性广播;确定模块,用于基于扫描到的业务可用性广播的RSSI和其携带的业务接收方的发射功率的信息,确定至少两个业务接收方设备的优先级,并基于该优先级确定最终的业务接收方设备。In the sixth aspect, an electronic device provided according to some embodiments of the present application, as a service initiator device, includes: a scanning receiving module, configured to scan and receive data from at least two service recipient devices for a predetermined service Service availability broadcast; a determining module, used to determine the priority of at least two service receiver devices based on the scanned RSSI of the service availability broadcast and the information on the transmission power of the service receiver carried by it, and determine the final priority based on the priority Business receiver equipment.
在第七方面,根据本申请的一些实施例提供的一种多个电子设备的系统,包括:作为业务发起方设备的电子设备,以及至少两个作为业务接收方设备的电子设备,其中,业务发起方设备包括:扫描接收模块,用于扫描并接收来自至少两个业务接收方设备的用于预定业务的业务可用性广播;确定模块,用于基于扫描到的业务可用性广播的RSSI和其携带的业务接收方的发射功率的信息,确定至少两个业务接收方设备的优先级,并基于该优先级确定最终的业务接收方设备。In a seventh aspect, a system of multiple electronic devices provided according to some embodiments of the present application includes: an electronic device as a service initiator device, and at least two electronic devices as a service receiver device, wherein the service The initiator device includes: a scanning receiving module for scanning and receiving service availability broadcasts for a predetermined service from at least two service receiving devices; a determining module for broadcasting RSSI based on the scanned service availability and its carrying Based on the information on the transmit power of the service receiver, the priority of at least two service receiver devices is determined, and the final service receiver device is determined based on the priorities.
附图说明Description of the drawings
下面将结合附图对本发明的具体实施方式作进一步详细说明。The specific embodiments of the present invention will be described in further detail below in conjunction with the accompanying drawings.
图1示出根据本申请一些实施方式提供的蓝牙通讯系统的应用场景的示意图一;Fig. 1 shows a schematic diagram 1 of an application scenario of a Bluetooth communication system provided according to some embodiments of the present application;
图2示出根据本申请一些实施方式提供的蓝牙通讯系统的应用场景的示意图二;FIG. 2 shows a second schematic diagram of an application scenario of a Bluetooth communication system provided according to some embodiments of the present application;
图3示出根据本申请一些实施例提供的真无线蓝牙耳机和充电盒的实图;FIG. 3 shows a real diagram of a true wireless Bluetooth headset and a charging box provided according to some embodiments of the present application;
图4示出根据本申请一些实施例提供的蓝牙耳机的示意图;Figure 4 shows a schematic diagram of a Bluetooth headset provided according to some embodiments of the present application;
图5示出根据本申请实施例提供的手机的示意图;Fig. 5 shows a schematic diagram of a mobile phone provided according to an embodiment of the present application;
图6示出根据本申请实施例提供的手机界面弹出配对提示框的界面示意图;FIG. 6 shows a schematic diagram of an interface of a pairing prompt box popping up on a mobile phone interface according to an embodiment of the present application;
图7示出根据本申请实施例提供的手机与蓝牙耳机配对成功的界面示意图;FIG. 7 shows a schematic diagram of an interface for successfully pairing a mobile phone and a Bluetooth headset according to an embodiment of the present application;
图8示出根据本申请一些实施例提供的蓝牙耳机与手机配对的流程图;FIG. 8 shows a flowchart of pairing a Bluetooth headset with a mobile phone according to some embodiments of the present application;
图9示出根据本申请一些实施方式提供的无线通讯系统的应用场景的示意图;FIG. 9 shows a schematic diagram of an application scenario of a wireless communication system provided according to some embodiments of the present application;
图10示出根据本申请一些实施例提供的手机100与投屏设备300投屏的流程图一;FIG. 10 shows a flow chart 1 of screen projection of the mobile phone 100 and the screen projection device 300 according to some embodiments of the present application;
图11示出根据本申请一些实施例提供的手机100与投屏设备300投屏的流程图二;FIG. 11 shows a second flowchart of screen projection by the mobile phone 100 and the screen projection device 300 according to some embodiments of the present application;
图12为根据本申请的实施方式的一种设备的框图;Fig. 12 is a block diagram of a device according to an embodiment of the present application;
图13为根据本申请的实施方式的一种片上系统(SoC)的框图。Fig. 13 is a block diagram of a system on chip (SoC) according to an embodiment of the present application.
具体实施方式Detailed ways
应当理解的是,虽然在本文中可能使用了术语“第一”、“第二”等等来描述各个特征,但是这些特征不应当受这些术语限制。使用这些术语仅仅是为了进行区分,而不能理解为指示或暗示相对重要性。举例来说,在不背离示例性实施例的范围的情况下,第一特征可以被称为第二特征,并且类似地第二特征可以被称为第一特征。It should be understood that although the terms "first", "second", etc. may be used herein to describe various features, these features should not be limited by these terms. These terms are used only for distinction, and cannot be understood as indicating or implying relative importance. For example, without departing from the scope of the exemplary embodiment, the first feature may be referred to as the second feature, and similarly the second feature may be referred to as the first feature.
除非上下文另有规定,否则术语“包含”、“具有”和“包括”是同义词。短语“A/B”表示“A或B”。短语“A和/或B”表示“(A)、(B)或(A和B)”。Unless the context dictates otherwise, the terms "comprising", "having" and "including" are synonymous. The phrase "A/B" means "A or B". The phrase "A and/or B" means "(A), (B) or (A and B)".
如本文所使用的,术语“模块”可以指代,作为其中的一部分,或者包括:用于运行一个或多个软件或固件程序的存储器(共享、专用或组),专用集成电路(ASIC),电子电路和/或处理器(共享、专用或组),组合逻辑电路,和/或提供所述功能的其他合适组件。As used herein, the term "module" can refer to, as a part of it, or include: memory (shared, dedicated or group) for running one or more software or firmware programs, application specific integrated circuit (ASIC), Electronic circuits and/or processors (shared, dedicated or group), combinational logic circuits, and/or other suitable components that provide the described functions.
图1示出根据本申请一些实施方式提供的蓝牙通讯系统的应用场景的示意图一。该蓝牙通讯系统包括蓝牙耳机200(例如,真无线蓝牙耳机)和电子设备例如手机100。Fig. 1 shows a schematic diagram 1 of an application scenario of a Bluetooth communication system provided according to some embodiments of the present application. The Bluetooth communication system includes a Bluetooth headset 200 (for example, a true wireless Bluetooth headset) and an electronic device such as a mobile phone 100.
如图1所示,电子设备可以是4台手机100,也可以2台、3台、5台、10台等至少两台手机100。在本申请的各个实施例中,手机100可以是智能手机(如Android手机、iOS手机、Windows Phone手机等)。在另一些实施例中,电子设备还可以是个人数字助理、手持PC、可穿戴设备(例如,智能手表、智能手环等)、便携式媒体播放器、手持设备、导航设备、服务器、网络设备、图形设备、视频游戏设备、膝上型设备、虚拟现实和/或增强现实设备、物联网设备、工业控制设备、车载信息娱乐设备、流媒体客户端设备、电子书、阅读设备以及其它设备。As shown in FIG. 1, the electronic device may be 4 mobile phones 100, or at least two mobile phones 100 such as 2, 3, 5, 10, etc. In various embodiments of the present application, the mobile phone 100 may be a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.). In other embodiments, the electronic device may also be a personal digital assistant, a handheld PC, a wearable device (for example, a smart watch, a smart bracelet, etc.), a portable media player, a handheld device, a navigation device, a server, a network device, Graphics devices, video game devices, laptop devices, virtual reality and/or augmented reality devices, IoT devices, industrial control devices, in-vehicle infotainment devices, streaming media client devices, e-books, reading devices, and other devices.
如图1所示,在蓝牙耳机200与手机100欲配对的过程中,手机100开启蓝牙功能,蓝牙耳机200可以通过开盒动作或按键操作(例如,长按)进入与手机100的配对模式。As shown in FIG. 1, during the process of pairing the Bluetooth headset 200 with the mobile phone 100, the mobile phone 100 turns on the Bluetooth function, and the Bluetooth headset 200 can enter the pairing mode with the mobile phone 100 through a box opening action or a key operation (for example, a long press).
若蓝牙耳机200与欲配对的手机100为非首次配对,那么当蓝牙耳机200通过开盒动作或按键操作发送靠近发现BLE广播,可自动实现与该手机100的连接动作。这是由于蓝牙耳机200存储有曾经配对的手机100的蓝牙地址,当蓝牙耳机200的充电盒被打开时或者蓝牙功能被开启的时候,蓝牙耳机200会自动回连上一次配对的手机100,从而实现快速连接。If the Bluetooth headset 200 is not paired with the mobile phone 100 to be paired for the first time, then when the Bluetooth headset 200 sends a proximity discovery BLE broadcast through a box opening action or a key operation, the connection action with the mobile phone 100 can be automatically realized. This is because the Bluetooth headset 200 stores the Bluetooth address of the paired mobile phone 100. When the charging box of the Bluetooth headset 200 is turned on or the Bluetooth function is turned on, the Bluetooth headset 200 will automatically connect back to the last paired mobile phone 100, thereby Realize fast connection.
若蓝牙耳机200与欲配对的手机100为首次配对,那么当蓝牙耳机200被执行开盒动作或按键操作后,蓝牙耳机200发送靠近发现BLE广播,手机100接收到来自蓝牙耳机200的靠近发现BLE广播后,向蓝牙耳机200发送反馈广播,蓝牙耳机200基于该反馈广播,发送第一指令至手机100,使得手机100弹出配对提示框询问用户是否与该蓝牙耳机200配对,手机100接收到用户的允许该配对操作之后,蓝牙耳机与手机配对成功。If the Bluetooth headset 200 is paired with the mobile phone 100 to be paired for the first time, when the Bluetooth headset 200 is opened or pressed, the Bluetooth headset 200 sends a proximity discovery BLE broadcast, and the mobile phone 100 receives the proximity discovery BLE from the Bluetooth headset 200 After the broadcast, a feedback broadcast is sent to the Bluetooth headset 200. Based on the feedback broadcast, the Bluetooth headset 200 sends a first instruction to the mobile phone 100, causing the mobile phone 100 to pop up a pairing prompt box asking the user whether to pair with the Bluetooth headset 200, and the mobile phone 100 receives the user's After allowing the pairing operation, the Bluetooth headset is successfully paired with the mobile phone.
通常,由手机100扫描并接收来自蓝牙耳机200发送的靠近发现广播,并由手机100确定该靠近发现广播的接收的信号强度指示(Received Signal Strength Indication,RSSI)大小。作为判断是否弹出配对提示框的一种标准是,手机100确定该靠近发现广播的RSSI是否超过预设阈值。若RSSI超过预设阈值,则手机100弹出配对提示框 询问用户是否配对。Generally, the mobile phone 100 scans and receives the proximity discovery broadcast sent from the Bluetooth headset 200, and the mobile phone 100 determines the received signal strength indication (RSSI) size of the proximity discovery broadcast. As a criterion for judging whether the pairing prompt box pops up, the mobile phone 100 determines whether the RSSI of the proximity discovery broadcast exceeds a preset threshold. If the RSSI exceeds the preset threshold, the mobile phone 100 pops up a pairing prompt box to ask the user whether to pair.
如图2所示,手机A至D的RSSI均超过预设阈值,手机A至D均弹出配对提示框。若目标用户欲与目标手机C配对,那么手机A、B、D的弹框容易打扰到该3台手机的用使用,用户体验感较差。As shown in Figure 2, the RSSIs of mobile phones A to D all exceed the preset threshold, and mobile phones A to D all pop up a pairing prompt box. If the target user wants to pair with the target mobile phone C, the bullet frames of mobile phones A, B, and D will easily disturb the use of the three mobile phones, and the user experience will be poor.
根据本申请的一些实施例提出的蓝牙通信系统,如图1所示,当蓝牙耳机200附近有4台手机A至D时,仅触发优先级最高的手机C弹出配对提示框,由此解决了手机100与蓝牙耳机200的配对过程中,同时触发多个手机100弹出配对提示框,打扰非目标用户使用手机的问题,实现了蓝牙耳机200与手机100快速且无干扰的配对,提高用户体验感。According to the Bluetooth communication system proposed by some embodiments of the present application, as shown in FIG. 1, when there are 4 mobile phones A to D near the Bluetooth headset 200, only the mobile phone C with the highest priority is triggered to pop up the pairing prompt box, thereby solving During the pairing process of the mobile phone 100 and the Bluetooth headset 200, multiple mobile phones 100 are triggered to pop up the pairing prompt box at the same time, which disturbs the problem of non-target users using the mobile phone, and realizes the fast and interference-free pairing of the Bluetooth headset 200 and the mobile phone 100, and improves the user experience .
图3示出根据本申请一些实施例提供的真无线蓝牙耳机200和充电盒的实图。真无线蓝牙耳机200,也叫真无线立体声(true wireless stereo,TWS)耳机,TWS耳机完全摒弃了线材连接的方式,包括两个耳机(例如主耳机和从耳机)。例如,使用时终端设备(也可以称为发射设备,例如手机100)无线连接主耳机,再由主耳机通过蓝牙无线方式连接从耳机,可以实现真正的蓝牙左右声道无线分离使用。TWS耳机的左右两个耳机通过蓝牙可以组成立体声系统,以使听歌、通话、佩戴性能都得到提升。另外,两个耳机中的任一个还能够单独工作,例如,在主耳机不连接从耳机的情况下,主耳机可以回到单声道音质。FIG. 3 shows a real diagram of a true wireless Bluetooth headset 200 and a charging box provided according to some embodiments of the present application. The true wireless Bluetooth headset 200 is also called a true wireless stereo (TWS) headset. The TWS headset completely abandons the wire connection method and includes two headsets (such as a master headset and a slave headset). For example, when in use, a terminal device (also referred to as a transmitting device, such as a mobile phone 100) wirelessly connects to the master headset, and then the master headset connects to the slave headset wirelessly via Bluetooth, which can achieve true wireless separation of the left and right channels of Bluetooth. The left and right earphones of the TWS headset can form a stereo system through Bluetooth, so that the performance of listening to songs, talking, and wearing can be improved. In addition, either of the two earphones can also work independently. For example, when the master earphone is not connected to the slave earphone, the master earphone can return to mono sound quality.
由于TWS耳机的左右耳机无物理连接的特性,TWS耳机一般都配备了兼具充电和收纳功能的充电盒。充电盒能为无线耳机提供电力以及收纳存放的功能,没电的时候只要把蓝牙耳机200放入盒内,耳机可以自动断开连接,充电盒给耳机充电。Because the left and right earphones of TWS earphones have no physical connection characteristics, TWS earphones are generally equipped with a charging box that has both charging and storage functions. The charging box can provide power and storage functions for the wireless earphones. When there is no power, just put the Bluetooth earphone 200 in the box, the earphones can be automatically disconnected, and the charging box will charge the earphones.
充电盒上设有功能键(图中未示出),当充电盒的盒盖被打开或功能键被长按预设时间长度(例如2秒),蓝牙耳机200处于配对模式,发送BLE广播至已开启蓝牙功能的手机100。The charging box is equipped with a function key (not shown in the figure). When the lid of the charging box is opened or the function key is pressed for a preset length of time (for example, 2 seconds), the Bluetooth headset 200 is in pairing mode and sends a BLE broadcast to Phone 100 with Bluetooth enabled.
图4示出根据本申请一些实施例提供的蓝牙耳机200的示意图。蓝牙耳机200可以包括扬声单元221、控制单元222、声音接收单元223、柔性电路板(flexible printed circuit,FPC)224、电池225、充电单元226以及传感器件(图中未示出)等。其中,蓝牙耳机200还包括辅助声音接收单元227,辅助声音接收单元227可以是麦克风,例如拾取通话场景中的背景声的麦克风。FIG. 4 shows a schematic diagram of a Bluetooth headset 200 provided according to some embodiments of the present application. The Bluetooth headset 200 may include a speaker unit 221, a control unit 222, a sound receiving unit 223, a flexible printed circuit (FPC) 224, a battery 225, a charging unit 226, a sensor device (not shown in the figure), and the like. The Bluetooth headset 200 further includes an auxiliary sound receiving unit 227, and the auxiliary sound receiving unit 227 may be a microphone, for example, a microphone that picks up background sounds in a call scene.
扬声单元221可以是一种电声换能器件,用于将音频电信号转换成声音信号,扬声单元221可以是动圈单元、动铁单元或圈铁混合单元。扬声单元221也可以称为喇叭或扬声器,因此前述动圈单元、动铁单元或圈铁混合单元分别还可以称为动圈式扬声器(或称电动式扬声器)、动铁式扬声器、圈铁混合式扬声器。The speaker unit 221 may be an electro-acoustic transducer for converting audio electrical signals into sound signals, and the speaker unit 221 may be a moving coil unit, a moving iron unit, or a ring-iron mixing unit. The loudspeaker unit 221 can also be called a horn or a loudspeaker. Therefore, the aforementioned moving coil unit, moving iron unit, or coil-iron mixing unit can also be referred to as a moving coil speaker (or electrodynamic speaker), a moving iron speaker, and a coil-iron mixing unit, respectively. Hybrid speakers.
在一种实现方案中,扬声单元221能够接收终端设备传输的音频信号和控制信号(例如流媒体控制信号)等,还可以将接收到的音频信号和控制信号等传输给其他扬声单元,例如扬声单元221作为主扬声器时,可以将从终端设备接收到的音频信号和控制信号等传输给从扬声器,实现音频在两个分离的扬声器中同步播放,进而实现立体声效果。In an implementation scheme, the speaker unit 221 can receive audio signals and control signals (such as streaming media control signals) transmitted by the terminal device, and can also transmit the received audio signals and control signals to other speaker units. For example, when the speaker unit 221 is used as the main speaker, the audio signal and control signal received from the terminal device can be transmitted to the slave speaker, so that the audio is played synchronously in the two separate speakers, thereby achieving a stereo effect.
控制单元222可以包括主板(或称主芯片或主控芯片)、蓝牙芯片等,可用于充电管理、信号传输等,在一些实施例中,控制单元222还可以用于主动降噪。可选地, 控制单元222可以为微处理器。The control unit 222 may include a motherboard (or called a main chip or a main control chip), a Bluetooth chip, etc., and may be used for charging management, signal transmission, etc. In some embodiments, the control unit 222 may also be used for active noise reduction. Optionally, the control unit 222 may be a microprocessor.
声音接收单元223,声音接收单元223包括固定于柔性电路板(flexible printed circuit,FPC)224上的通话麦克风(microphone,MIC)、防水防尘膜等。The sound receiving unit 223 includes a call microphone (MIC), a waterproof and dustproof film, etc. fixed on a flexible printed circuit (FPC) 224.
电池225的正极和负极分别与柔性电路板224电连接,通过柔性电路板224中的电路可以实现对电池225的充电和电池225对蓝牙耳机200的供电。其中,耳机柄形成的空腔内还可以设置有天线,用于接收和发送信号。The positive and negative electrodes of the battery 225 are electrically connected to the flexible circuit board 224, and the circuit in the flexible circuit board 224 can charge the battery 225 and power the Bluetooth headset 200 from the battery 225. Wherein, the cavity formed by the earphone handle may also be provided with an antenna for receiving and sending signals.
充电单元226用于为电池225充电,其一端与柔性电路板224连接,另一端在耳机外部可以与充电盒内的金属触点接触而形成充电回路。当对电池225进行充电时,耳机的充电触点与充电盒内的触点相接触形成电性连接,充电电流通过柔性电路板224上的电路可以从正极充电触点到电池225的正极,再从电池225的负极到负极充电触点,最终回到充电盒中。The charging unit 226 is used to charge the battery 225. One end of the charging unit 226 is connected to the flexible circuit board 224, and the other end is outside the earphone and can be contacted with the metal contacts in the charging box to form a charging circuit. When charging the battery 225, the charging contacts of the earphones contact the contacts in the charging box to form an electrical connection. The charging current can pass through the circuit on the flexible circuit board 224 from the positive charging contact to the positive of the battery 225, and then From the negative electrode of the battery 225 to the negative charging contact, and finally back to the charging box.
在一些实施例中,蓝牙耳机200包括的传感器件可以包括光学传感器、加速度传感器、距离传感器、骨传导传感器等,这些传感器件可以设置于柔性电路板224上,用于感知或接收外界信号等。In some embodiments, the sensor devices included in the Bluetooth headset 200 may include an optical sensor, an acceleration sensor, a distance sensor, a bone conduction sensor, etc. These sensor devices may be arranged on the flexible circuit board 224 for sensing or receiving external signals and the like.
在一些实施例中,蓝牙耳机200还包括辅助声音接收单元227,辅助声音接收单元227可以是另一个麦克风,从而与声音接收单元223形成双麦克风,其中声音接收单元223可以为普通的用户通话使用的麦克风,用于收集人声(即用于拾取通话的语音),而辅助声音接收单元227可以为背景声拾音的麦克风,具备背景噪声采集功能,用于采集周围环境噪音。辅助声音接收单元227远离声音接收单元223。采用双麦克风的设计可以有效地抵御耳机周边的环境噪声干扰,大大提高正常通话的清晰度。In some embodiments, the Bluetooth headset 200 further includes an auxiliary sound receiving unit 227. The auxiliary sound receiving unit 227 may be another microphone, thereby forming a dual microphone with the sound receiving unit 223, where the sound receiving unit 223 may be used for ordinary users to call. The microphone is used to collect human voices (that is, used to pick up the voice of the call), and the auxiliary sound receiving unit 227 can be a microphone that picks up the background sound and has a background noise collection function for collecting ambient noise. The auxiliary sound receiving unit 227 is far away from the sound receiving unit 223. The dual-microphone design can effectively resist the interference of environmental noise around the headset, greatly improving the clarity of normal calls.
图5示出根据本申请实施例提供的手机100的示意图。如图5所示,手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。FIG. 5 shows a schematic diagram of a mobile phone 100 provided according to an embodiment of the present application. As shown in FIG. 5, the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, a subscriber identification module (SIM) card interface 195, and so on.
其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figure, 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.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(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)接口。In some embodiments, the processor 110 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. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, and/or subscriber identity module (SIM) interface.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic illustration, and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(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)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 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 (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
以下请参考图1并结合图6,描述根据本申请的具体实施方式的蓝牙通信系统。Hereinafter, referring to FIG. 1 and in conjunction with FIG. 6, the Bluetooth communication system according to the specific embodiment of the present application will be described.
在手机100的设置界面接收用户打开蓝牙功能的操作后,手机100的蓝牙配对功能被激活,例如如图6所示手机界面的右上角上显示有蓝牙的标识符号10,手机100的蓝牙模块处于后台扫描状态。当手机100的蓝牙模块功能被开启后,不管手机处于锁屏还是亮屏状态,手机100的蓝牙模块都可以进行后台扫描。After receiving the user's operation to turn on the Bluetooth function on the setting interface of the mobile phone 100, the Bluetooth pairing function of the mobile phone 100 is activated. For example, as shown in FIG. Background scanning status. When the Bluetooth module function of the mobile phone 100 is turned on, the Bluetooth module of the mobile phone 100 can perform background scanning regardless of whether the mobile phone is in a locked or on-screen state.
当放置有蓝牙耳机200的充电盒被打开(图3中示出了该状态),或位于充电盒上的功能键被长按预设时间长度(例如2秒),充电盒指示灯(例如蓝灯)闪烁,此时蓝牙耳机200进入配对状态,并发送靠近发现BLE广播,所述BLE广播中携带有蓝牙耳机200的MAC地址、耳机厂商的标识符、发射功率等信息。When the charging box with the Bluetooth headset 200 is opened (the state is shown in Figure 3), or the function keys on the charging box are long pressed for a preset length of time (for example, 2 seconds), the charging box indicator light (for example, blue The light) flashes. At this time, the Bluetooth headset 200 enters the pairing state and sends a proximity discovery broadcast. The BLE broadcast carries information such as the MAC address of the Bluetooth headset 200, the identifier of the headset manufacturer, and the transmission power.
如图1所示,当位于蓝牙耳机200附近的4台手机A至D分别扫描并接收到来自蓝牙耳机200的靠近发现BLE广播后,手机A至D立即分别向该蓝牙耳机200发送反馈广播。反馈广播携带有对应于各台手机100的发射功率、信号强度、MAC地址、 手机厂商标识等的信息。As shown in FIG. 1, when the four mobile phones A to D located near the Bluetooth headset 200 scan and receive the proximity discovery BLE broadcast from the Bluetooth headset 200, the mobile phones A to D immediately send feedback broadcasts to the Bluetooth headset 200. The feedback broadcast carries information corresponding to the transmission power, signal strength, MAC address, and mobile phone manufacturer identification of each mobile phone 100.
蓝牙耳机200分别接收到来自于手机A至D的相应的反馈广播,并基于该反馈广播的RSSI和其所携带的对应于各台手机的发射功率的信息计算获取相应的损耗或距离。进而,蓝牙耳机200基于该损耗或距离,确定手机A至D中优先级最高的手机,例如手机C具有最高优先级,那么,如图6所示,蓝牙耳机200发送第一指令至手机C,以使得手机C显示有包含该蓝牙耳机200的信息的配对提示框20。在一些实施例,所述第一指令可以是蓝牙的私有命令,手机100收到该指令后,可以弹出配对提示框20。The Bluetooth headset 200 receives the corresponding feedback broadcasts from the mobile phones A to D, and calculates and obtains the corresponding loss or distance based on the RSSI of the feedback broadcast and the information corresponding to the transmit power of each mobile phone. Furthermore, the Bluetooth headset 200 determines the mobile phone with the highest priority among the mobile phones A to D based on the loss or distance. For example, the mobile phone C has the highest priority. Then, as shown in FIG. 6, the Bluetooth headset 200 sends the first command to the mobile phone C. In this way, the mobile phone C displays the pairing prompt box 20 containing the information of the Bluetooth headset 200. In some embodiments, the first command may be a Bluetooth private command. After receiving the command, the mobile phone 100 may pop up the pairing prompt box 20.
蓝牙耳机200的信息可以是该蓝牙耳机200的名称和蓝牙耳机200的图标中的至少一种。也就是说,配对提示框20可以显示该蓝牙耳机200的名称,例如如图6所示,蓝牙耳机200的名称为初始名称“HUAWEI FreeBuds 3”,蓝牙耳机200的名称还可以是用户自定义的名称,例如“Zhang San’s Freebuds3”,以使用户能够快速识别是否为其欲配对的蓝牙耳机200。The information of the Bluetooth headset 200 may be at least one of the name of the Bluetooth headset 200 and the icon of the Bluetooth headset 200. In other words, the pairing prompt box 20 can display the name of the Bluetooth headset 200. For example, as shown in FIG. 6, the name of the Bluetooth headset 200 is the initial name "HUAWEI FreeBuds 3", and the name of the Bluetooth headset 200 can also be user-defined. The name, for example, "Zhang San's Freebuds3", so that the user can quickly identify whether the Bluetooth headset 200 he wants to pair with.
配对提示框20还可以显示该蓝牙耳机200的图标,该图标可以是该蓝牙耳机200的实物图,以使用户能够快速且精准地识别是否为其欲配对的蓝牙耳机200。例如,若蓝牙耳机200为白色,那么该配对提示框20能够显示白色的且与其外观完全一致的蓝牙耳机200的图标;若蓝牙耳机200为红色,那么该配对提示框20能够显示红色的且与其外观完全一致的蓝牙耳机200的图标。进而,用户可以快速且精准地识别该蓝牙耳机200是否为自己欲配对的蓝牙耳机200,以进行后续操作,例如如图6所示,在配对提示框20进行“同意21”或“忽略22”的选项操作。The pairing prompt box 20 may also display an icon of the Bluetooth headset 200, and the icon may be a physical image of the Bluetooth headset 200, so that the user can quickly and accurately identify whether the Bluetooth headset 200 is to be paired. For example, if the Bluetooth headset 200 is white, then the pairing prompt box 20 can display a white icon of the Bluetooth headset 200 that is completely consistent with its appearance; if the Bluetooth headset 200 is red, then the pairing prompt box 20 can display a red icon that is consistent with its appearance. The icon of the Bluetooth headset 200 that looks exactly the same. Furthermore, the user can quickly and accurately identify whether the Bluetooth headset 200 is the Bluetooth headset 200 that he wants to pair with for subsequent operations. For example, as shown in FIG. 6, the pairing prompt box 20 performs "Agree 21" or "Ignore 22" Option operation.
配对提示框20还可以同时显示包含有该蓝牙耳机200的名称和蓝牙耳机200的图标的信息,以使用户能够更加快速且精准地识别是否为其欲配对的蓝牙耳机200。The pairing prompt box 20 can also display information including the name of the Bluetooth headset 200 and the icon of the Bluetooth headset 200 at the same time, so that the user can more quickly and accurately identify whether the Bluetooth headset 200 is to be paired.
配对提示框20还可以分别显示左耳机(L)、右耳机(R)以及充电盒的电量,以使得用户清楚了解两只耳机及充电盒的电量情况,及时为其充电。The pairing prompt box 20 can also respectively display the power of the left earphone (L), the right earphone (R) and the charging box, so that the user can clearly understand the power status of the two earphones and the charging box and charge them in time.
如图6所示,若用户在手机C弹出的配对提示框20的界面上,点击“同意21”选项,那么蓝牙耳机200与手机100根据蓝牙协议建立连接,手机C与该蓝牙耳机200配对成功。如图7所示,手机C界面的右上角显示有耳机符号30。手机C则会进入下一界面。用户基于该下一界面可进行一些快捷操作、以及主动降噪等操作。As shown in Figure 6, if the user clicks the "Agree 21" option on the interface of the pairing prompt 20 popped up by the mobile phone C, then the Bluetooth headset 200 and the mobile phone 100 establish a connection according to the Bluetooth protocol, and the mobile phone C and the Bluetooth headset 200 are successfully paired . As shown in Figure 7, a headset symbol 30 is displayed in the upper right corner of the C interface of the mobile phone. Mobile phone C will enter the next interface. The user can perform some quick operations and active noise reduction operations based on the next interface.
若用户在手机C弹出的配对提示框20的界面上,点击“忽略22”选项,那么,手机C与蓝牙耳机200配对不成功。If the user clicks the “Ignore 22” option on the interface of the pairing prompt box 20 popped up by the mobile phone C, then the pairing of the mobile phone C and the Bluetooth headset 200 is unsuccessful.
在一些实施例中,手机100的配对提示框20可以在手机C处于锁屏或亮屏状态下弹出。当手机100处于锁屏状态,用户通过弹出的配对提示框20对其可进行例如“同意21”或“忽略22”的选项操作。当用户点击“同意”选项后,若手机100未设有密码,手机100可以自动解锁,以使手机100处于亮屏状态,方便用户进行例如听歌或播放电视剧的操作;若手机设有密码,手机100则要求用户进行解锁操作,以确保手机100的隐私安全。In some embodiments, the pairing prompt 20 of the mobile phone 100 may pop up when the mobile phone C is in a locked or bright screen state. When the mobile phone 100 is in the locked screen state, the user can perform an option operation such as "Agree 21" or "Ignore 22" on it through the pop-up pairing prompt box 20. When the user clicks the "Agree" option, if the mobile phone 100 does not have a password, the mobile phone 100 can be automatically unlocked so that the mobile phone 100 is in a bright screen state, which is convenient for the user to perform operations such as listening to songs or playing TV shows; if the mobile phone has a password, The mobile phone 100 requires the user to perform an unlocking operation to ensure the privacy of the mobile phone 100.
在另一些实施例中,手机100的配对提示框20仅可以在手机100处于亮屏状态下弹出,避免了蓝牙耳机200在误操作下以使手机100弹出配对提示框20,增加用户不必要的操作。In other embodiments, the pairing prompt box 20 of the mobile phone 100 can only pop up when the mobile phone 100 is in a bright screen state, which avoids the misoperation of the Bluetooth headset 200 to cause the mobile phone 100 to pop up the pairing prompt box 20, which increases unnecessary users. operate.
在一些实施例中,手机100的配对提示框20可以在手机在进行业务的过程中弹出,例如,用户已经在手机100上功放视频,之后用户想要戴上蓝牙耳机200来观看剩余的视频,用户可以通过打开蓝牙耳机200的充电盒,或长按(例如2秒)充电盒上的功能键,如图1所示,蓝牙耳机200根据优先级通知目标手机C弹出配对提示框20,进而用户可以通过如图6中的操作选项与蓝牙耳机200建立,手机100将视频声音从功放切换至该蓝牙耳机200。In some embodiments, the pairing prompt box 20 of the mobile phone 100 may pop up during the business process of the mobile phone. For example, the user has put on the power amplifier video on the mobile phone 100, and then the user wants to wear the Bluetooth headset 200 to watch the remaining videos. The user can open the charging box of the Bluetooth headset 200, or press and hold (for example, 2 seconds) the function key on the charging box. The Bluetooth headset 200 can be established through the operation options shown in FIG. 6, and the mobile phone 100 switches the video sound from the power amplifier to the Bluetooth headset 200.
在另一些实施例中,手机100的配对提示框20不可以在手机在进行业务例如观看视频或玩游戏的过程中弹出,以打扰目标用户使用手机。In other embodiments, the pairing prompt 20 of the mobile phone 100 may not pop up when the mobile phone is performing a business, such as watching a video or playing a game, so as to disturb the target user's use of the mobile phone.
在又一些实施例中,手机100的配对提示框20可以通过用户在手机上进行设置,以使得用户在进行某些业务例如观看视频时可以弹出,在另外一些业务例如看电子书、玩游戏等不便被打扰的业务时不弹出。In still other embodiments, the pairing prompt 20 of the mobile phone 100 can be set by the user on the mobile phone, so that the user can pop up when performing certain services such as watching videos, and in other services such as reading e-books, playing games, etc. Do not pop up when the business is inconvenient to be interrupted.
在其它一些实施例中,蓝牙耳机200还可以在确定手机100的优先级后,例如,优先级的高低排序是C、A、B、D,由于蓝牙耳机200没有显示装置,可以将该优先级列表发送给任意手机,例如发送给手机C,手机C上可以显示优先级列表,基于用户的针对列表的选择操作,例如选择列表中的A手机,蓝牙耳机接收到指令后,发送弹框指令至手机A,使得手机A显示配对提示框20,接收用户对手机A接收配对操作,手机A与蓝牙耳机200建立连接手机。而不是在确定手机100的优先级后,直接发送弹框指令至优先级最高的手机,以使其弹出配对提示框20,进而增加了用户的可操控性。In some other embodiments, the Bluetooth headset 200 may also determine the priority of the mobile phone 100. For example, the priority of the priority is C, A, B, D. Since the Bluetooth headset 200 has no display device, the priority can be set. The list is sent to any mobile phone, for example, to mobile phone C. The priority list can be displayed on mobile phone C. Based on the user's selection operation for the list, for example, select mobile phone A in the list. After receiving the instruction, the Bluetooth headset sends a pop-up instruction to The mobile phone A causes the mobile phone A to display the pairing prompt box 20, and the receiving user receives the pairing operation on the mobile phone A, and the mobile phone A and the Bluetooth headset 200 establish a connection with the mobile phone. Instead of determining the priority of the mobile phone 100, directly send a pop-up command to the mobile phone with the highest priority, so that the pairing prompt box 20 will pop up, thereby increasing the user's controllability.
在一些实施例,手机C在预定的时间内,例如5s内未收到用户的输入操作,可以自动关闭或者隐藏该提示框。In some embodiments, the mobile phone C may automatically close or hide the prompt box if it does not receive the user's input operation within a predetermined time, for example, 5 seconds.
在一些实施例中,手机100与蓝牙耳机200的通信可以通过预定的私有频率,例如蓝牙5G赫兹频率,使得同一厂商的手机100和蓝牙耳机200能够互相通信。In some embodiments, the communication between the mobile phone 100 and the Bluetooth headset 200 may be through a predetermined private frequency, such as a Bluetooth 5G Hz frequency, so that the mobile phone 100 and the Bluetooth headset 200 of the same manufacturer can communicate with each other.
图8示出根据本申请一些实施例提供的蓝牙耳机200与手机C配对的流程图。手机A至D已开启蓝牙后台扫描功能。用户通过触发动作以使蓝牙耳机200进入配对模式。触发动作可以是通过打开蓝牙耳机200的充电盒,或长按(例如2秒)位于充电盒上的功能键。FIG. 8 shows a flowchart of pairing a Bluetooth headset 200 with a mobile phone C according to some embodiments of the present application. Mobile phones A to D have enabled the Bluetooth background scan function. The user triggers an action to make the Bluetooth headset 200 enter the pairing mode. The triggering action may be by opening the charging box of the Bluetooth headset 200, or long pressing (for example, 2 seconds) a function key on the charging box.
蓝牙耳机200发送靠近发现BLE广播并扫描,该靠近发现广播携带有蓝牙耳机200的发射功率、MAC地址、耳机厂商的标识符等信息。The Bluetooth headset 200 sends and scans the proximity discovery BLE broadcast. The proximity discovery broadcast carries information such as the transmission power of the Bluetooth headset 200, the MAC address, and the identifier of the headset manufacturer.
当手机A至D扫描并接收到来自蓝牙耳机200的靠近发现广播后,立即分别向蓝牙耳机200发送反馈广播A至D。反馈广播携带有对应于各台手机的发射功率等的信息。即,反馈广播A携带有手机A的发射功率等信息,反馈广播B携带有手机B的发射功率等信息,反馈广播C携带有手机C的发射功率等信息,反馈广播D携带有手机D的发射功率等信息。After the mobile phones A to D scan and receive the proximity discovery broadcast from the Bluetooth headset 200, they immediately send feedback broadcasts A to D to the Bluetooth headset 200, respectively. The feedback broadcast carries information corresponding to the transmit power of each mobile phone. That is, feedback broadcast A carries information such as the transmission power of mobile phone A, feedback broadcast B carries information such as the transmission power of mobile phone B, feedback broadcast C carries information such as the transmission power of mobile phone C, and feedback broadcast D carries the transmission of mobile phone D. Power and other information.
蓝牙耳机200能够测量到反馈广播的RSSI。蓝牙耳机200基于反馈广播的RSSI和其所携带的对应于各台手机的发射功率的信息计算获取相应的损耗或距离。即,蓝牙耳机200基于反馈广播A的RSSI与反馈广播A携带的手机A的发射功率计算获取损耗A或距离A,蓝牙耳机200基于反馈广播B的RSSI与反馈广播B携带的手机B的发射功率计算获取损耗B或距离B,蓝牙耳机200基于反馈广播C的RSSI与反馈 广播C携带的手机C的发射功率计算获取损耗C或距离C,蓝牙耳机200基于反馈广播D的RSSI与反馈广播D携带的手机D的发射功率计算获取损耗D或距离D。The Bluetooth headset 200 can measure the RSSI of the feedback broadcast. The Bluetooth headset 200 calculates and obtains the corresponding loss or distance based on the RSSI of the feedback broadcast and the information corresponding to the transmit power of each mobile phone. That is, the Bluetooth headset 200 calculates the loss A or the distance A based on the RSSI of the feedback broadcast A and the transmit power of the mobile phone A carried by the feedback broadcast A, and the Bluetooth headset 200 calculates the loss A or the distance A based on the RSSI of the feedback broadcast B and the transmit power of the mobile phone B carried by the feedback broadcast B. Calculate and obtain loss B or distance B. Bluetooth headset 200 calculates and obtains loss C or distance C based on the RSSI of feedback broadcast C and the transmit power of mobile phone C carried by feedback broadcast C. Bluetooth headset 200 is carried based on RSSI of feedback broadcast D and feedback broadcast D. The transmit power of the mobile phone D is calculated to obtain the loss D or the distance D.
进而,蓝牙耳机200基于该损耗A至D或距离A至D,确定手机A至D中优先级最高的手机,例如手机C具有最高优先级,发送第一指令至手机C以弹出配对提示框。Furthermore, based on the loss A to D or the distance A to D, the Bluetooth headset 200 determines the mobile phone with the highest priority among the mobile phones A to D, for example, the mobile phone C has the highest priority, and sends the first command to the mobile phone C to pop up the pairing prompt box.
在一些实施例中,蓝牙耳机200可以是根据损耗,以确定该4台手机A至D的优先级。损耗越小,则优先级越高。具体计算如下:In some embodiments, the Bluetooth headset 200 may determine the priority of the four mobile phones A to D based on the loss. The lower the loss, the higher the priority. The specific calculation is as follows:
手机100向蓝牙耳机200发送反馈广播的损耗计算Loss calculation of mobile phone 100 sending feedback broadcast to Bluetooth headset 200
损耗=手机100的发射功率-蓝牙耳机200接收到来自手机的反馈广播的RSSI。该损耗计算在接收端即蓝牙耳机200完成。Loss = transmit power of mobile phone 100-Bluetooth headset 200 receives RSSI of feedback broadcast from the mobile phone. The loss calculation is done at the receiving end, namely the Bluetooth headset 200.
也就是说,当各台手机A至D的发射功率一致时,蓝牙耳机200与手机100之间的损耗大小可以直接通过蓝牙耳机200接收到的反馈广播的RSSI大小来确定,即RSSI越大,则代表损耗越小,优先级越高。That is to say, when the transmit power of each mobile phone A to D is the same, the loss between the Bluetooth headset 200 and the mobile phone 100 can be directly determined by the RSSI size of the feedback broadcast received by the Bluetooth headset 200, that is, the larger the RSSI, It means that the smaller the loss, the higher the priority.
在另一些实施例中,反馈广播还可以携带有第一损耗的信息,第一损耗是基于靠近发现广播的RSSI与靠近发现广播所携带的蓝牙耳机200的发射功率计算获得的。具体计算如下:In other embodiments, the feedback broadcast may also carry information about the first loss, and the first loss is calculated based on the RSSI of the proximity discovery broadcast and the transmit power of the Bluetooth headset 200 carried by the proximity discovery broadcast. The specific calculation is as follows:
蓝牙耳机200向手机100发送靠近发现广播的损耗计算The Bluetooth headset 200 sends the loss calculation of the proximity discovery broadcast to the mobile phone 100
第一损耗=蓝牙耳机200的发射功率-手机100接收到来自蓝牙耳机200的靠近发现广播的RSSI,该损耗计算在接收端即手机100完成。The first loss = the transmit power of the Bluetooth headset 200-the mobile phone 100 receives the RSSI of the proximity discovery broadcast from the Bluetooth headset 200, and the loss calculation is completed at the receiving end, that is, the mobile phone 100.
当手机100计算获取第一损耗后,在向蓝牙耳机200发送反馈广播时手机100能够将第一损耗填入反馈广播的字段里,从而使得蓝牙手机100能获取该第一损耗。After the mobile phone 100 calculates and obtains the first loss, the mobile phone 100 can fill the first loss into the field of the feedback broadcast when sending the feedback broadcast to the Bluetooth headset 200, so that the Bluetooth mobile phone 100 can obtain the first loss.
第二损耗是基于反馈广播的RSSI与反馈广播所携带的手机100的发射功率计算获得的。具体计算如下:The second loss is calculated based on the RSSI of the feedback broadcast and the transmit power of the mobile phone 100 carried by the feedback broadcast. The specific calculation is as follows:
手机100向蓝牙耳机200发送反馈广播的损耗计算Loss calculation of mobile phone 100 sending feedback broadcast to Bluetooth headset 200
第二损耗=手机100的发射功率-蓝牙耳机200接收到来自手机的反馈广播的RSSIThe second loss = the transmit power of the mobile phone 100-the Bluetooth headset 200 receives the RSSI of the feedback broadcast from the mobile phone
在蓝牙耳机200获取第一损耗和第二损耗后,将其两者取平均获取最终的损耗平均值,根据该损耗平均值确定手机A至D的优先级,由此可以提高损耗计算的精确度,从而可以提高确定手机优先级的准确度。After the Bluetooth headset 200 obtains the first loss and the second loss, the two are averaged to obtain the final average loss, and the priority of the mobile phone A to D is determined according to the average loss, thereby improving the accuracy of the loss calculation , Which can improve the accuracy of determining the priority of the mobile phone.
在另一些实施例中,蓝牙耳机200可以是根据距离,以确定该4台手机A至D的优先级。距离越小,则优先级越高。具体计算如下:In other embodiments, the Bluetooth headset 200 may determine the priority of the four mobile phones A to D based on the distance. The smaller the distance, the higher the priority. The specific calculation is as follows:
关于距离的计算,距离d(km)与损耗Lfs(dB)满足以下关系式,以自由空间传播时的无线通讯距离为例。Regarding the calculation of the distance, the distance d (km) and the loss Lfs (dB) satisfy the following relational expression, taking the wireless communication distance in free space propagation as an example.
Lfs(dB)=32.44+20lgd(km)+20lgf(MHz),其中f为工作频率。Lfs(dB)=32.44+20lgd(km)+20lgf(MHz), where f is the operating frequency.
从上述公式可以看出,手机100与蓝牙耳机200之间的损耗越小,则手机100与蓝牙耳机200之间的距离越小,优先级越高。It can be seen from the above formula that the smaller the loss between the mobile phone 100 and the Bluetooth headset 200, the smaller the distance between the mobile phone 100 and the Bluetooth headset 200, and the higher the priority.
具体计算请参照前述损耗的计算方式,先获取损耗再根据损耗与距离的关系式,计算获得距离,在此不再赘述。For the specific calculation, please refer to the aforementioned loss calculation method, first obtain the loss and then calculate the distance according to the relationship between loss and distance, so I will not repeat it here.
当蓝牙耳机200确定手机A至D的优先级后,发送弹框第一指令至优先级最高的手机C,手机C弹出配对提示框20,配对请求被用户许可后,蓝牙耳机配对成功。After the Bluetooth headset 200 determines the priorities of the mobile phones A to D, the first command in the pop-up box is sent to the mobile phone C with the highest priority, and the mobile phone C pops up a pairing prompt box 20. After the pairing request is approved by the user, the Bluetooth headset is paired successfully.
蓝牙耳机200可以通过广播方式或链路方式向手机C发送该弹框第一指令。The Bluetooth headset 200 may send the first command of the bullet frame to the mobile phone C in a broadcast mode or a link mode.
通过广播方式投送业务。蓝牙耳机200广播payload中携带有手机标识符诸如MAC地址或者其ID信息,优先级最高的手机C收到该广播后,解析该标识符,并与自身标识信息匹配。如果一致,则接收该业务。如果不一样,则不接收该业务。Deliver business by broadcasting. The Bluetooth headset 200 broadcast payload carries a mobile phone identifier such as a MAC address or its ID information. After receiving the broadcast, the mobile phone C with the highest priority parses the identifier and matches it with its own identification information. If they are consistent, the service is accepted. If they are not the same, the service will not be accepted.
通过链路方式投送业务。蓝牙耳机200与手机100配对,蓝牙耳机200通过专用信令通知手机建立100配对业务。Deliver business via link. The Bluetooth headset 200 is paired with the mobile phone 100, and the Bluetooth headset 200 informs the mobile phone 100 to establish a pairing service through dedicated signaling.
图9示出根据本申请一些实施方式提供的无线通讯系统的应用场景的示意图。该无线通讯系统包括投屏设备300和电子设备例如手机100。Fig. 9 shows a schematic diagram of an application scenario of a wireless communication system provided according to some embodiments of the present application. The wireless communication system includes a screen projection device 300 and an electronic device such as a mobile phone 100.
如图9所示,投屏设备300可以是2台平板和2台电视。在其它一些实施例中,该投屏设备300也可以均是平板电脑,或均是电视等至少2台投屏设备300。在本申请的各个实施例中,手机100可以是智能手机(如Android手机、iOS手机、Windows Phone手机等)。在另一些实施例中,电子设备还可以是个人数字助理、手持PC、可穿戴设备(例如,智能手表、智能手环等)、便携式媒体播放器、手持设备、导航设备、网络设备、图形设备、视频游戏设备、虚拟现实和/或增强现实设备、车载信息娱乐设备、流媒体客户端设备、电子书、阅读设备以及其它设备。As shown in FIG. 9, the screen projection device 300 may be 2 flat-screens and 2 TVs. In some other embodiments, the screen projection device 300 may also be a tablet computer, or both may be at least two screen projection devices 300 such as a TV. In various embodiments of the present application, the mobile phone 100 may be a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.). In other embodiments, the electronic device may also be a personal digital assistant, a handheld PC, a wearable device (for example, a smart watch, a smart bracelet, etc.), a portable media player, a handheld device, a navigation device, a network device, a graphics device , Video game equipment, virtual reality and/or augmented reality equipment, in-vehicle infotainment equipment, streaming media client equipment, e-books, reading equipment and other equipment.
如图9所示,在手机100与投屏设备300欲投屏的过程中,投屏设备300开启后台无线扫描功能,手机100可以通过手机菜单或手势等特定操作触发投屏业务。As shown in FIG. 9, when the mobile phone 100 and the screen projection device 300 are about to project a screen, the screen projection device 300 turns on the background wireless scanning function, and the mobile phone 100 can trigger the screen projection service through specific operations such as the mobile phone menu or gestures.
当手机100被执行按键或手势操作后,手机100发送投屏广播。投屏设备300接收到来自手机100的投屏广播后,立即向手机100发送反馈广播,手机100基于该反馈广播,第一指令投屏设备300弹出投屏提示框询问用户是否与用该投屏设备300进行投屏,投屏设备300鉴权之后,投屏设备300与手机100投屏成功。When the mobile phone 100 is subjected to a key or gesture operation, the mobile phone 100 sends a screencast broadcast. After the projection device 300 receives the projection broadcast from the mobile phone 100, it immediately sends a feedback broadcast to the mobile phone 100. Based on the feedback broadcast, the mobile phone 100 first instructs the projection device 300 to pop up a projection prompt box to ask the user whether to use the projection The device 300 performs screen projection, and after the screen projection device 300 authenticates, the screen projection device 300 and the mobile phone 100 successfully cast the screen.
通常,由投屏设备300扫描并接收来自手机100发送的投屏广播后,投屏设备300立即发送反馈广播至手机100,手机接收到来自投屏设备300的反馈广播后,在界面上显示供用户选择的投屏设备300的全部列表。由于列表是无序的,用户需要在所有列表中辨识出欲投屏的投屏设备300的名称,从而点击该投屏设备300的名称,投送投屏业务。由于投屏设备300的列表是无序的,增加用户辨识设备的难度。例如,用户家有两台小米电视,那么,列表上会显示有两台相同名称的投屏设备300,用户难以辨识,用户体验感差。Generally, after the projection device 300 scans and receives the projection broadcast from the mobile phone 100, the projection device 300 immediately sends a feedback broadcast to the mobile phone 100. After the mobile phone receives the feedback broadcast from the projection device 300, it displays the information on the interface. The entire list of screen projection devices 300 selected by the user. Since the list is disorderly, the user needs to identify the name of the screen projection device 300 to be screened in all the lists, and click the name of the screen projection device 300 to post the screen projection service. Since the list of the screen projection device 300 is disordered, it is more difficult for the user to identify the device. For example, if the user has two Mi TVs in his home, there will be two screen projection devices 300 with the same name displayed on the list, which is difficult for the user to identify and the user experience is poor.
根据本申请的一些实施例提出的无线通信系统,如图9所示,当手机100附近有4台投屏设备300(平板A、平板B、电视C与电视D)时,仅触发优先级最高的电视C弹出投屏提示框,由此解决了投屏设备300与手机100的投屏过程中,难以辨识出目标投屏设备300的问题,实现手机100与投屏设备300快速且无干扰的投屏,提高用户体验感。According to the wireless communication system proposed by some embodiments of the present application, as shown in FIG. 9, when there are 4 screen projection devices 300 (tablet A, tablet B, TV C, and TV D) near the mobile phone 100, only the trigger priority is highest. The TV C pops up the screen projection prompt box, which solves the problem that it is difficult to identify the target screen projection device 300 during the screen projection process of the screen projection device 300 and the mobile phone 100, and realizes the fast and interference-free connection between the mobile phone 100 and the screen projection device 300 Screen projection to improve user experience.
图10示出根据本申请一些实施例提供的手机100与投屏设备300投屏的流程图一。FIG. 10 shows the first flow chart of screen projection by the mobile phone 100 and the screen projection device 300 according to some embodiments of the present application.
确定手机100与平板A、B以及电视C、D处于同一个无线网络状态下。当手机100接收到来自用户通过菜单或手势等特定操作触发投屏业务后,发送投屏广播并扫描。投屏广播携带有对应于手机100的发射功率等的信息。It is determined that the mobile phone 100 and the tablets A and B and the TVs C and D are in the same wireless network state. When the mobile phone 100 receives the screen projection service from the user through a specific operation such as a menu or gesture, it sends a screen projection broadcast and scans. The projection broadcast carries information corresponding to the transmission power of the mobile phone 100 and so on.
平板A、B以及电视C、D已开启后台扫描。平板A、B以及电视C、D扫描并接收到来自手机100的投屏广播后,立即向手机100发送反馈广播。反馈广播携带有对 应于各台投屏设备的发射功率等的信息。即,反馈广播A携带有平板A的发射功率等的信息;反馈广播B携带有平板B的发射功率等的信息;反馈广播C携带有电视C的发射功率等的信息;反馈广播D携带有电视D的发射功率等的信息。Tablet A, B and TV C, D have started background scanning. After the tablets A and B and the TVs C and D scan and receive the projection broadcast from the mobile phone 100, they immediately send a feedback broadcast to the mobile phone 100. The feedback broadcast carries information corresponding to the transmission power of each projection device. That is, feedback broadcast A carries information such as the transmission power of tablet A; feedback broadcast B carries information such as the transmission power of tablet B; feedback broadcast C carries information such as the transmission power of TV C; feedback broadcast D carries information such as TV D's transmit power and other information.
手机100扫描并分别接收到来自平板A、B以及电视C、D的反馈广播。其手机100能够测量出平板A、B以及电视C、D相应的反馈广播的RSSI。The mobile phone 100 scans and receives feedback broadcasts from the tablets A and B and the TVs C and D, respectively. Its mobile phone 100 can measure the RSSI of the corresponding feedback broadcasts of tablets A and B and TVs C and D.
手机100基于反馈广播的RSSI和其所携带的对应于各台投屏设备300的发射功率的信息计算获取相应的损耗或距离。即,手机100基于反馈广播A的RSSI与反馈广播A携带的平板A的发射功率计算获取损耗A或距离A,手机100基于反馈广播B的RSSI与反馈广播B携带的平板B的发射功率计算获取损耗B或距离B,手机100基于反馈广播C的RSSI与反馈广播C携带的电视C的发射功率计算获取损耗C或距离C,手机100基于反馈广播D的RSSI与反馈广播D携带的电视D的发射功率计算获取损耗D或距离D。The mobile phone 100 calculates and obtains the corresponding loss or distance based on the RSSI of the feedback broadcast and the information corresponding to the transmission power of each screen projection device 300 carried by it. That is, the mobile phone 100 calculates the loss A or distance A based on the RSSI of the feedback broadcast A and the transmit power of the tablet A carried by the feedback broadcast A, and the mobile phone 100 calculates and obtains the loss A or the distance A based on the RSSI of the feedback broadcast B and the transmit power of the tablet B carried by the feedback broadcast B. Loss B or distance B, the mobile phone 100 calculates the loss C or distance C based on the RSSI of the feedback broadcast C and the transmit power of the TV C carried by the feedback broadcast C. The mobile phone 100 calculates the loss C or the distance C based on the RSSI of the feedback broadcast D and the TV D carried by the feedback broadcast D. The transmit power is calculated to obtain the loss D or the distance D.
进而,蓝牙耳机200基于该损耗A至D或距离A至D,确定投屏设备A至D中优先级最高的投屏设备,例如电视C具有最高优先级,发送第一指令至电视C以弹出投屏提示框。Furthermore, the Bluetooth headset 200 determines the projection device with the highest priority among the projection devices A to D based on the loss A to D or the distance A to D, for example, the TV C has the highest priority, and sends the first command to the TV C to pop up Cast screen prompt box.
具体的损耗和距离计算请参照前述蓝牙通信系统中的描述。For specific loss and distance calculations, please refer to the description in the aforementioned Bluetooth communication system.
当电视C弹出投屏提示框,投屏请求被用户许可后,手机100与投屏设备300投屏成功。When the TV C pops up the screen projection prompt box and the screen projection request is approved by the user, the mobile phone 100 and the screen projection device 300 successfully cast the screen.
手机100可以通过广播方式或链路方式向手机C发送该弹框的第一指令。The mobile phone 100 may send the first instruction of the bullet frame to the mobile phone C in a broadcast mode or a link mode.
通过广播方式投送业务。手机100广播payload中携带有手机标识符诸如MAC地址或者其ID信息,优先级最高的电视C收到该广播后,解析该标识符,并与自身标识信息匹配。如果一致,则接收该业务。如果不一样,则不接收该业务。Deliver business by broadcasting. The mobile phone 100 broadcast payload carries a mobile phone identifier such as a MAC address or its ID information. After receiving the broadcast, the TV C with the highest priority parses the identifier and matches it with its own identification information. If they are consistent, the service is accepted. If they are not the same, the service will not be accepted.
通过链路方式投送业务。手机100与投屏设备300投屏,手机100通过专用信令通知投屏设备300建立投屏业务。Deliver business via link. The mobile phone 100 and the screen projection device 300 project a screen, and the mobile phone 100 informs the screen projection device 300 to establish a screen projection service through dedicated signaling.
在其它实施例中,手机10还可以是基于距离向用户提供投屏设备300的优先级列表,由用户确定最终的一台投屏设备300发生投屏动作。In other embodiments, the mobile phone 10 may also provide the user with a priority list of the screen projection device 300 based on the distance, and the user determines that the screen projection action of the final screen projection device 300 occurs.
由此,手机100可以根据优先级自动从多台投屏设备300中选取目标投屏设备C,用户体验佳。或者,手机100可以通过基于距离,向用户提供投屏设备300的优先级列表,以使用户对各台投屏设备300有更为直观的判断,即便是列表中包含有两台相同名称的投屏设备,用户也可以较快地辨识出目标投屏设备300。Therefore, the mobile phone 100 can automatically select the target screen projection device C from the multiple screen projection devices 300 according to the priority, and the user experience is good. Alternatively, the mobile phone 100 can provide the user with a priority list of projection devices 300 based on the distance, so that the user has a more intuitive judgment on each projection device 300, even if the list contains two projection devices with the same name. The screen device, the user can also identify the target screen projection device 300 quickly.
图11示出根据本申请一些实施例提供的手机100与投屏设备300投屏的流程图二。FIG. 11 shows the second flowchart of the screen projection of the mobile phone 100 and the screen projection device 300 according to some embodiments of the present application.
手机已开启无线后台扫描。投屏设备300处于允许接收业务时发送广播。允许接收业务可以理解为投屏设备300处于待投屏状态,未处于播放视频或玩游戏等业务进行状态。The phone has enabled wireless background scanning. The projection device 300 transmits a broadcast when it is allowed to receive services. The permission to receive services can be understood as the screen projection device 300 is in a state of waiting to be projected, and not in a business state such as playing videos or playing games.
广播携带有对应于各台投屏设备的发射功率等的信息。即,反馈广播A携带有平板A的发射功率等的信息;反馈广播B携带有平板B的发射功率等的信息;反馈广播C携带有电视C的发射功率等的信息;反馈广播D携带有电视D的发射功率等的信息。The broadcast carries information corresponding to the transmission power of each projection device. That is, feedback broadcast A carries information such as the transmission power of tablet A; feedback broadcast B carries information such as the transmission power of tablet B; feedback broadcast C carries information such as the transmission power of TV C; feedback broadcast D carries information such as TV D's transmit power and other information.
手机100扫描并接收来自各个投屏设备300(平板A、B以及电视C、D)的广播,手机100能够测量出平板A、B以及电视C、D相应的反馈广播的RSSI,手机100基 于广播的RSSI和其所携带的对应于各台投屏设备的发射功率的信息计算获取相应的损耗或距离。即,手机100基于广播A的RSSI与广播A携带的平板A的发射功率计算获取损耗A或距离A,手机100基于广播B的RSSI与广播B携带的平板B的发射功率计算获取损耗B或距离B,手机100基于广播C的RSSI与广播C携带的电视C的发射功率计算获取损耗C或距离C,手机100基于广播D的RSSI与广播D携带的电视D的发射功率计算获取损耗D或距离D。The mobile phone 100 scans and receives the broadcast from each projection device 300 (tablet A, B and TV C, D). The mobile phone 100 can measure the RSSI of the corresponding feedback broadcast of the tablet A, B and TV C, D. The mobile phone 100 is based on the broadcast The RSSI and the information it carries corresponding to the transmit power of each projection device are calculated to obtain the corresponding loss or distance. That is, the mobile phone 100 calculates the loss A or distance A based on the RSSI of broadcast A and the transmit power of the tablet A carried by the broadcast A, and the mobile phone 100 calculates the loss B or distance based on the RSSI of the broadcast B and the transmit power of the tablet B carried by the broadcast B. B. The mobile phone 100 calculates the loss C or distance C based on the RSSI of broadcast C and the transmit power of the TV C carried by the broadcast C. The mobile phone 100 calculates the loss D or distance based on the RSSI of the broadcast D and the transmit power of the TV D carried by the broadcast D. D.
进而,蓝牙耳机200基于该损耗A至D或距离A至D,确定投屏设备A至D中优先级最高的投屏设备,例如电视C具有最高优先级,发送第一指令至电视C以弹出投屏提示框。Furthermore, the Bluetooth headset 200 determines the projection device with the highest priority among the projection devices A to D based on the loss A to D or the distance A to D, for example, the TV C has the highest priority, and sends the first command to the TV C to pop up Cast screen prompt box.
具体的损耗和距离计算请参照前述蓝牙通信系统中的描述。For specific loss and distance calculations, please refer to the description in the aforementioned Bluetooth communication system.
当电视C弹出投屏提示框,投屏请求被用户许可后,手机100与投屏设备300投屏成功。When the TV C pops up the screen projection prompt box and the screen projection request is approved by the user, the mobile phone 100 and the screen projection device 300 successfully cast the screen.
手机100可以通过广播方式或链路方式向手机C发送该弹框第一指令。The mobile phone 100 may send the first command of the bullet frame to the mobile phone C in a broadcast mode or a link mode.
通过广播方式投送业务。手机100广播payload中携带有手机标识符诸如MAC地址或者其ID信息,优先级最高的电视C收到该广播后,解析该标识符,并与自身标识信息匹配。如果一致,则接收该业务。如果不一样,则不接收该业务。Deliver business by broadcasting. The mobile phone 100 broadcast payload carries a mobile phone identifier such as a MAC address or its ID information. After receiving the broadcast, the TV C with the highest priority parses the identifier and matches it with its own identification information. If they are consistent, the service is accepted. If they are not the same, the service will not be accepted.
通过链路方式投送业务。手机100与投屏设备300投屏,手机100通过专用信令通知投屏设备300建立投屏业务。Deliver business via link. The mobile phone 100 and the screen projection device 300 project a screen, and the mobile phone 100 informs the screen projection device 300 to establish a screen projection service through dedicated signaling.
在其它实施例中,手机10还可以是根据距离向用户提供投屏设备300的优先级列表,由用户确定最终的一台投屏设备300发生投屏动作。In other embodiments, the mobile phone 10 may also provide the user with a priority list of the screen projection device 300 based on the distance, and the user determines that the final screen projection device 300 will perform a screen projection action.
由此,手机100可以根据优先级自动从多台投屏设备300中选取目标投屏设备C,用户体验佳。或者,手机100可以通过基于距离,向用户提供投屏设备300的优先级列表,以使用户对各台投屏设备300有更为直观的判断,即便是列表中包含有两台相同名称的投屏设备,用户也可以较快地辨识出目标投屏设备300。Therefore, the mobile phone 100 can automatically select the target screen projection device C from the multiple screen projection devices 300 according to the priority, and the user experience is good. Alternatively, the mobile phone 100 can provide the user with a priority list of projection devices 300 based on the distance, so that the user has a more intuitive judgment on each projection device 300, even if the list contains two projection devices with the same name. The screen device, the user can also identify the target screen projection device 300 quickly.
除了上述列举的蓝牙耳机200与手机100的配对过程,以及手机100与投屏设备300的投屏过程,本申请还可以适用于电子设备之间的文件传输等场景。In addition to the pairing process between the Bluetooth headset 200 and the mobile phone 100 listed above, and the screen projection process between the mobile phone 100 and the screen projection device 300, the present application can also be applied to scenarios such as file transfer between electronic devices.
参考图12,所示为根据本申请的一个实施例的系统1400的框图。图12示出了根据多个实施例的示例系统1400。在一个实施例中,系统1400可以包括一个或多个处理器1404,与处理器1404中的至少一个连接的系统控制逻辑1408,与系统控制逻辑1408连接的系统内存1412,与系统控制逻辑1408连接的非易失性存储器(NVM)1416,以及与系统控制逻辑1408连接的网络接口1420。Referring to FIG. 12, shown is a block diagram of a system 1400 according to an embodiment of the present application. FIG. 12 shows an example system 1400 according to various embodiments. In one embodiment, the system 1400 may include one or more processors 1404, a system control logic 1408 connected to at least one of the processors 1404, a system memory 1412 connected to the system control logic 1408, and a system control logic 1408 connected to the system control logic 1408. The non-volatile memory (NVM) 1416, and the network interface 1420 connected with the system control logic 1408.
在一些实施例中,处理器1404可以包括一个或多个单核或多核处理器。在一些实施例中,处理器1404可以包括通用处理器和专用处理器(例如,图形处理器,应用处理器,基带处理器等)的任意组合。在系统1400采用eNB(Evolved Node B,增强型基站)101或RAN(Radio Access Network,无线接入网)控制器102的实施例中,处理器1404可以被配置为执行各种符合的实施例,例如,如图8、图11和图11所示的多个实施例中的一个或多个。In some embodiments, the processor 1404 may include one or more single-core or multi-core processors. In some embodiments, the processor 1404 may include any combination of a general-purpose processor and a special-purpose processor (for example, a graphics processor, an application processor, a baseband processor, etc.). In an embodiment in which the system 1400 adopts an eNB (Evolved Node B, enhanced base station) 101 or a RAN (Radio Access Network, radio access network) controller 102, the processor 1404 may be configured to execute various conforming embodiments, For example, one or more of the multiple embodiments shown in FIGS. 8, 11, and 11.
在一些实施例中,系统控制逻辑1408可以包括任意合适的接口控制器,以向处理器1404中的至少一个和/或与系统控制逻辑1408通信的任意合适的设备或组件提供任 意合适的接口。In some embodiments, the system control logic 1408 may include any suitable interface controller to provide any suitable interface to at least one of the processors 1404 and/or any suitable device or component in communication with the system control logic 1408.
在一些实施例中,系统控制逻辑1408可以包括一个或多个存储器控制器,以提供连接到系统内存1412的接口。系统内存1412可以用于加载以及存储数据和/或第一指令。在一些实施例中系统1400的内存1412可以包括任意合适的易失性存储器,例如合适的动态随机存取存储器(DRAM)。In some embodiments, the system control logic 1408 may include one or more memory controllers to provide an interface to the system memory 1412. The system memory 1412 may be used to load and store data and/or first instructions. In some embodiments, the memory 1412 of the system 1400 may include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).
NVM/存储器1416可以包括用于存储数据和/或第一指令的一个或多个有形的、非暂时性的计算机可读介质。在一些实施例中,NVM/存储器1416可以包括闪存等任意合适的非易失性存储器和/或任意合适的非易失性存储设备,例如HDD(Hard DiskThe NVM/memory 1416 may include one or more tangible, non-transitory computer-readable media for storing data and/or first instructions. In some embodiments, the NVM/memory 1416 may include any suitable non-volatile memory such as flash memory and/or any suitable non-volatile storage device, such as HDD (Hard Disk
Drive,硬盘驱动器),CD(Compact Disc,光盘)驱动器,DVD(Digital Versatile Disc,数字通用光盘)驱动器中的至少一个。Drive, at least one of a CD (Compact Disc) drive, and a DVD (Digital Versatile Disc) drive.
NVM/存储器1416可以包括安装系统1400的装置上的一部分存储资源,或者它可以由设备访问,但不一定是设备的一部分。例如,可以经由网络接口1420通过网络访问NVM/存储1416。The NVM/memory 1416 may include a part of the storage resources on the device where the system 1400 is installed, or it may be accessed by the device, but not necessarily a part of the device. For example, the NVM/storage 1416 can be accessed through the network via the network interface 1420.
特别地,系统内存1412和NVM/存储器1416可以分别包括:第一指令1424的暂时副本和永久副本。第一指令1424可以包括:由处理器1404中的至少一个执行时导致系统1400实施如图8、图11和图11所示的方法的第一指令。在一些实施例中,第一指令1424、硬件、固件和/或其软件组件可另外地/替代地置于系统控制逻辑1408,网络接口1420和/或处理器1404中。In particular, the system memory 1412 and the NVM/memory 1416 may respectively include: a temporary copy and a permanent copy of the first instruction 1424. The first instruction 1424 may include: a first instruction that when executed by at least one of the processors 1404 causes the system 1400 to implement the method shown in FIG. 8, FIG. 11, and FIG. 11. In some embodiments, the first instructions 1424, hardware, firmware, and/or software components thereof may additionally/alternatively be placed in the system control logic 1408, the network interface 1420, and/or the processor 1404.
网络接口1420可以包括收发器,用于为系统1400提供无线电接口,进而通过一个或多个网络与任意其他合适的设备(如前端模块,天线等)进行通信。在一些实施例中,网络接口1420可以集成于系统1400的其他组件。例如,网络接口1420可以集成于处理器1404的,系统内存1412,NVM/存储器1416,和具有第一指令的固件设备(未示出)中的至少一种,当处理器1404中的至少一个执行所述第一指令时,系统1400实现如图5、图8-9所示的方法。The network interface 1420 may include a transceiver, which is used to provide a radio interface for the system 1400, and then communicate with any other suitable devices (such as a front-end module, an antenna, etc.) through one or more networks. In some embodiments, the network interface 1420 may be integrated with other components of the system 1400. For example, the network interface 1420 may be integrated with at least one of the processor 1404, the system memory 1412, the NVM/memory 1416, and the firmware device (not shown) with the first instruction, when at least one of the processor 1404 executes When the first instruction is used, the system 1400 implements the methods shown in FIGS. 5 and 8-9.
网络接口1420可以进一步包括任意合适的硬件和/或固件,以提供多输入多输出无线电接口。例如,网络接口1420可以是网络适配器,无线网络适配器,电话调制解调器和/或无线调制解调器。The network interface 1420 may further include any suitable hardware and/or firmware to provide a multiple input multiple output radio interface. For example, the network interface 1420 may be a network adapter, a wireless network adapter, a telephone modem and/or a wireless modem.
在一个实施例中,处理器1404中的至少一个可以与用于系统控制逻辑1408的一个或多个控制器的逻辑封装在一起,以形成系统封装(SiP)。在一个实施例中,处理器1404中的至少一个可以与用于系统控制逻辑1408的一个或多个控制器的逻辑集成在同一管芯上,以形成片上系统(SoC)。In one embodiment, at least one of the processors 1404 may be packaged with the logic of one or more controllers for the system control logic 1408 to form a system in package (SiP). In one embodiment, at least one of the processors 1404 may be integrated with the logic of one or more controllers for the system control logic 1408 on the same die to form a system on chip (SoC).
系统1400可以进一步包括:输入/输出(I/O)设备1432。I/O设备1432可以包括用户界面,使得用户能够与系统1400进行交互;外围组件接口的设计使得外围组件也能够与系统1400交互。在一些实施例中,系统1400还包括传感器,用于确定与系统1400相关的环境条件和位置信息的至少一种。The system 1400 may further include: an input/output (I/O) device 1432. The I/O device 1432 may include a user interface to enable a user to interact with the system 1400; the design of the peripheral component interface enables the peripheral component to also interact with the system 1400. In some embodiments, the system 1400 further includes a sensor for determining at least one of environmental conditions and location information related to the system 1400.
在一些实施例中,用户界面可包括但不限于显示器(例如,液晶显示器,触摸屏显示器等),扬声器,麦克风,一个或多个相机(例如,静止图像照相机和/或摄像机),手电筒(例如,发光二极管闪光灯)和键盘。In some embodiments, the user interface may include, but is not limited to, a display (e.g., liquid crystal display, touch screen display, etc.), speakers, microphones, one or more cameras (e.g., still image cameras and/or video cameras), flashlights (e.g., LED flash) and keyboard.
在一些实施例中,外围组件接口可以包括但不限于非易失性存储器端口、音频插 孔和电源接口。In some embodiments, peripheral component interfaces may include, but are not limited to, non-volatile memory ports, audio jacks, and power interfaces.
在一些实施例中,传感器可包括但不限于陀螺仪传感器,加速度计,近程传感器,环境光线传感器和定位单元。定位单元还可以是网络接口1420的一部分或与网络接口1420交互,以与定位网络的组件(例如,全球定位系统(GPS)卫星)进行通信。In some embodiments, the sensor may include, but is not limited to, a gyroscope sensor, an accelerometer, a proximity sensor, an ambient light sensor, and a positioning unit. The positioning unit may also be part of or interact with the network interface 1420 to communicate with components of the positioning network (eg, global positioning system (GPS) satellites).
根据本申请的实施例,图13示出了一种SoC(System on Chip,片上系统)1500的框图。在图11中,相似的部件具有同样的附图标记。另外,虚线框是更先进的SoC的可选特征。在图11中,SoC 1500包括:互连单元1550,其被耦合至应用处理器1515;系统代理单元1570;总线控制器单元1580;集成存储器控制器单元1540;一组或一个或多个协处理器1520,其可包括集成图形逻辑、图像处理器、音频处理器和视频处理器;静态随机存取存储器(SRAM)单元1530;直接存储器存取(DMA)单元1560。在一个实施例中,协处理器1520包括专用处理器,诸如例如网络或通信处理器、压缩引擎、GPGPU、高吞吐量MIC处理器、或嵌入式处理器等等。According to an embodiment of the present application, FIG. 13 shows a block diagram of a SoC (System on Chip) 1500. In Fig. 11, similar parts have the same reference numerals. In addition, the dashed box is an optional feature of the more advanced SoC. In FIG. 11, the SoC 1500 includes: an interconnection unit 1550, which is coupled to an application processor 1515; a system agent unit 1570; a bus controller unit 1580; an integrated memory controller unit 1540; a group or one or more co-processing The device 1520 may include an integrated graphics logic, image processor, audio processor, and video processor; a static random access memory (SRAM) unit 1530; and a direct memory access (DMA) unit 1560. In one embodiment, the coprocessor 1520 includes a dedicated processor, such as, for example, a network or communication processor, a compression engine, a GPGPU, a high-throughput MIC processor, or an embedded processor, etc.
本申请公开的机制的各实施例可以被实现在硬件、软件、固件或这些实现方法的组合中。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程系统包括至少一个处理器、存储系统(包括易失性和非易失性存储器和/或存储元件)、至少一个输入设备以及至少一个输出设备。The various embodiments of the mechanism disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system including at least one processor and a storage system (including volatile and non-volatile memory and/or storage elements) , At least one input device and at least one output device.
可将程序代码应用于输入第一指令,以执行本申请描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如例如数字信号处理器(DSP)、微控制器、专用集成电路(ASIC)或微处理器之类的处理器的任何系统。The program code can be applied to input the first instruction to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。The program code can be implemented in a high-level programming language or an object-oriented programming language to communicate with the processing system. When needed, assembly language or machine language can also be used to implement the program code. In fact, the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.
在一些情况下,所公开的实施例可以以硬件、固件、软件或其任何组合来实现。所公开的实施例还可以被实现为由一个或多个暂时或非暂时性机器可读(例如,计算机可读)存储介质承载或存储在其上的第一指令,其可以由一个或多个处理器读取和执行。例如,第一指令可以通过网络或通过其他计算机可读介质分发。因此,机器可读介质可以包括用于以机器(例如,计算机)可读的形式存储或传输信息的任何机制,包括但不限于,软盘、光盘、光碟、只读存储器(CD-ROMs)、磁光盘、只读存储器(ROM)、随机存取存储器(RAM)、可擦除可编程只读存储器(EPROM)、电可擦除可编程只读存储器(EEPROM)、磁卡或光卡、闪存、或用于利用因特网以电、光、声或其他形式的传播信号来传输信息(例如,载波、红外信号数字信号等)的有形的机器可读存储器。因此,机器可读介质包括适合于以机器(例如,计算机)可读的形式存储或传输电子第一指令或信息的任何类型的机器可读介质。In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as first instructions carried by or stored on one or more transient or non-transitory machine-readable (for example, computer-readable) storage media, which may be executed by one or more The processor reads and executes. For example, the first instruction may be distributed through a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (for example, a computer), including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magnetic Optical disk, read only memory (ROM), random access memory (RAM), erasable programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), magnetic or optical card, flash memory, or A tangible machine-readable memory used to transmit information (for example, carrier waves, infrared signals, digital signals, etc.) using the Internet with electric, optical, acoustic, or other forms of propagating signals. Therefore, the machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic first instructions or information in a form readable by a machine (for example, a computer).
在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以 不包括这些特征或者可以与其他特征组合。In the drawings, some structural or method features may be shown in a specific arrangement and/or order. However, it should be understood that such a specific arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
需要说明的是,本申请各设备实施例中提到的各单元/模块都是逻辑单元/模块,在物理上,一个逻辑单元/模块可以是一个物理单元/模块,也可以是一个物理单元/模块的一部分,还可以以多个物理单元/模块的组合实现,这些逻辑单元/模块本身的物理实现方式并不是最重要的,这些逻辑单元/模块所实现的功能的组合才是解决本申请所提出的技术问题的关键。此外,为了突出本申请的创新部分,本申请上述各设备实施例并没有将与解决本申请所提出的技术问题关系不太密切的单元/模块引入,这并不表明上述设备实施例并不存在其它的单元/模块。It should be noted that each unit/module mentioned in each device embodiment of this application is a logical unit/module. Physically, a logical unit/module can be a physical unit/module or a physical unit/ A part of the module can also be realized by a combination of multiple physical units/modules. The physical realization of these logical units/modules is not the most important. The combination of the functions implemented by these logical units/modules is the solution to this application. The key to the technical question raised. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems proposed by this application. This does not mean that the above-mentioned device embodiments do not exist. Other units/modules.
需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in the examples and specification of this patent, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply There is any such actual relationship or sequence between these entities or operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the phrase "including one" does not exclude the existence of other same elements in the process, method, article, or equipment that includes the element.
综上所述,本发明提供的上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。In summary, the above-mentioned embodiments provided by the present invention are merely illustrative of the principles and effects of the present invention, and are not used to limit the present invention. Anyone familiar with this technology can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed in the present invention should still be covered by the claims of the present invention.

Claims (23)

  1. 一种蓝牙通信系统,包括蓝牙耳机、第一电子设备和第二电子设备,其特征在于,A Bluetooth communication system includes a Bluetooth headset, a first electronic device, and a second electronic device, and is characterized in that:
    所述蓝牙耳机被配置为:The Bluetooth headset is configured as:
    接收用户的第一操作;Receive the user's first operation;
    响应于所述第一操作,发送BLE广播至所述第一电子设备和所述第二电子设备;In response to the first operation, sending a BLE broadcast to the first electronic device and the second electronic device;
    接收所述第一电子设备的第一响应消息;Receiving the first response message of the first electronic device;
    接收所述第二电子设备的第二响应消息,Receiving a second response message of the second electronic device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一电子设备具有优先级,发送第一指令至所述第一电子设备以使所述第一电子设备弹出配对提示框;Based on the first response message and the second response message, determining that the first electronic device has priority, and sending a first instruction to the first electronic device to make the first electronic device pop up a pairing prompt box;
    所述第一电子设备被配置为:The first electronic device is configured to:
    响应于所述第一指令,在第一界面上显示包含有所述蓝牙耳机的信息的所述配对提示框。In response to the first instruction, the pairing prompt box containing the information of the Bluetooth headset is displayed on the first interface.
  2. 根据权利要求1所述的蓝牙通信系统,其特征在于,The Bluetooth communication system according to claim 1, wherein:
    所述第一响应消息携带有所述第一电子设备的第一发送功率的信息;The first response message carries information about the first transmission power of the first electronic device;
    所述第二响应消息携带有所述第二电子设备的第二发送功率的信息,The second response message carries information about the second transmission power of the second electronic device,
    所述蓝牙耳机被配置为:The Bluetooth headset is configured as:
    基于所述第一发射功率和所述第一响应消息的第一RSSI,计算获得第一损耗或第一距离;Based on the first transmission power and the first RSSI of the first response message, calculate the first loss or the first distance;
    基于所述第二发射功率和所述第二响应消息的第二RSSI,计算获得第二损耗或第二距离,Based on the second transmission power and the second RSSI of the second response message, calculate the second loss or the second distance,
    基于所述第一损耗和所述第二损耗,确定所述第一电子设备具有所述优先级,或Based on the first loss and the second loss, it is determined that the first electronic device has the priority, or
    基于所述第一距离和所述第二距离,确定所述第一电子设备具有所述优先级。Based on the first distance and the second distance, it is determined that the first electronic device has the priority.
  3. 根据权利要求2所述的蓝牙通信系统,其特征在于,当所述第一电子设备的第一发射功率与所述第二电子设备的第二发送功率相同时,所述蓝牙耳机被配置为:The Bluetooth communication system according to claim 2, wherein when the first transmission power of the first electronic device is the same as the second transmission power of the second electronic device, the Bluetooth headset is configured to:
    基于所述第一响应消息的所述第一RSSI和所述第二响应消息的所述第二RSSI,确定所述第一电子设备具有所述优先级。Based on the first RSSI of the first response message and the second RSSI of the second response message, it is determined that the first electronic device has the priority.
  4. 根据权利要求1-3中任一项所述的蓝牙通信系统,其特征在于,所述第一电子设备被配置为:The Bluetooth communication system according to any one of claims 1-3, wherein the first electronic device is configured to:
    所述配对提示框包括用户选项,The pairing prompt box includes user options,
    接收所述用户针对所述用户选项的第二操作;Receiving a second operation of the user for the user option;
    响应于所述第二操作,所述蓝牙耳机与所述第一电子设备配对成功。In response to the second operation, the Bluetooth headset is successfully paired with the first electronic device.
  5. 根据权利要求1-4中任一项所述的蓝牙通信系统,其特征在于,所述蓝牙耳机的信息包括所述蓝牙耳机的名称和所述蓝牙耳机的图标中的至少一种。The Bluetooth communication system according to any one of claims 1 to 4, wherein the information of the Bluetooth headset includes at least one of the name of the Bluetooth headset and an icon of the Bluetooth headset.
  6. 根据权利要求1-5中任一项所述的蓝牙通信系统,其特征在于,所述第一指令通过链路或广播方式发送至所述第一电子设备。The Bluetooth communication system according to any one of claims 1-5, wherein the first instruction is sent to the first electronic device through a link or a broadcast mode.
  7. 一种蓝牙耳机的通信方法,其特征在于,包括以下步骤:A communication method for a Bluetooth headset is characterized in that it comprises the following steps:
    接收用户的第一操作;Receive the user's first operation;
    响应于所述第一操作,发送BLE广播至第一电子设备和第二电子设备;In response to the first operation, sending a BLE broadcast to the first electronic device and the second electronic device;
    接收所述第一电子设备的第一响应消息;Receiving the first response message of the first electronic device;
    接收所述第二电子设备的第二响应消息,Receiving a second response message of the second electronic device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一电子设备具有优先级,发送第一指令至所述第一电子设备以使所述第一电子设备弹出配对提示框。Based on the first response message and the second response message, it is determined that the first electronic device has priority, and a first instruction is sent to the first electronic device to cause the first electronic device to pop up a pairing prompt box.
  8. 根据权利要求7所述的蓝牙耳机的通信方法,其特征在于,所述第一响应消息携带有所述第一电子设备的第一发送功率的信息;所述第二响应消息携带有所述第二电子设备的第二发送功率的信息,The Bluetooth headset communication method according to claim 7, wherein the first response message carries information of the first transmission power of the first electronic device; the second response message carries the first transmission power information; 2. Information on the second transmit power of the electronic device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一电子设备具有优先级,发送第一指令至所述第一电子设备以使所述第一电子设备弹出配对提示框的步骤中包括:Based on the first response message and the second response message, it is determined that the first electronic device has priority, and a first instruction is sent to the first electronic device to cause the first electronic device to pop up a pairing prompt box The steps include:
    基于所述第一发射功率和所述第一响应消息的第一RSSI计算,获得第一损耗或第一距离;Calculation based on the first transmission power and the first RSSI of the first response message to obtain the first loss or the first distance;
    基于所述第二发射功率和所述第二响应消息的第二RSSI计算,获得第二损耗或第二距离,Based on the second RSSI calculation of the second transmission power and the second response message, the second loss or the second distance is obtained,
    基于所述第一损耗和所述第二损耗,确定所述第一电子设备具有所述优先级,或Based on the first loss and the second loss, it is determined that the first electronic device has the priority, or
    基于所述第一距离和所述第二距离,确定所述第一电子设备具有所述优先级。Based on the first distance and the second distance, it is determined that the first electronic device has the priority.
  9. 根据权利要求8所述的蓝牙耳机的通信方法,其特征在于,当所述第一电子设备的所述第一发射功率与所述第二电子设备的所述第二发送功率相同时,The communication method of a Bluetooth headset according to claim 8, wherein when the first transmission power of the first electronic device is the same as the second transmission power of the second electronic device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一电子设备具有优先级,发送第一指令至所述第一电子设备以使所述第一电子设备弹出配对提示框的步骤中包括:Based on the first response message and the second response message, it is determined that the first electronic device has priority, and a first instruction is sent to the first electronic device to cause the first electronic device to pop up a pairing prompt box The steps include:
    基于所述第一响应消息的所述第一RSSI和所述第二响应消息的所述第二RSSI,确定所述第一电子设备具有所述优先级。Based on the first RSSI of the first response message and the second RSSI of the second response message, it is determined that the first electronic device has the priority.
  10. 根据权利要求7-9中任一项所述的蓝牙耳机的通信方法,其特征在于,所述蓝牙耳机的信息包括所述蓝牙耳机的名称和所述蓝牙耳机的图标中的至少一种。The communication method of a Bluetooth headset according to any one of claims 7-9, wherein the information of the Bluetooth headset includes at least one of the name of the Bluetooth headset and an icon of the Bluetooth headset.
  11. 一种无线通信系统,包括手机、第一投屏设备和第二投屏设备,其特征在于,A wireless communication system includes a mobile phone, a first screen projection device and a second screen projection device, and is characterized in that:
    所述手机被配置为:The mobile phone is configured as:
    接收用户的第一操作;Receive the user's first operation;
    响应于所述第一操作,发送投屏广播至所述第一投屏设备和所述第二投屏设备;In response to the first operation, sending a screencast broadcast to the first screencasting device and the second screencasting device;
    接收所述第一投屏设备的第一响应消息;Receiving a first response message of the first screen projection device;
    接收所述第二投屏设备的第二响应消息,Receiving a second response message of the second screen projection device,
    基于所述第一响应消息和所述第二响应消息,确定第一投屏设备具有优先级,发送第一指令至所述第一投屏设备以使所述第一投屏设备弹出投屏提示框;Based on the first response message and the second response message, it is determined that the first screen projection device has priority, and a first instruction is sent to the first screen projection device to make the first screen projection device pop up a screen projection prompt frame;
    所述第一投屏设备被配置为:The first screen projection device is configured as:
    响应于所述第一指令,在第一界面上显示有所述投屏提示框。In response to the first instruction, the projection prompt box is displayed on the first interface.
  12. 根据权利要求11所述的无线通信系统,其特征在于,The wireless communication system according to claim 11, wherein:
    所述第一响应消息携带有所述第一投屏设备的第一发送功率的信息;The first response message carries information about the first transmission power of the first screen projection device;
    所述第二响应消息携带有所述第二投屏设备的第二发送功率的信息,The second response message carries information about the second transmission power of the second screen projection device,
    所述手机被配置为:The mobile phone is configured as:
    基于所述第一发射功率和所述第一响应消息的第一RSSI,计算获得第一损耗或第一距离;Based on the first transmission power and the first RSSI of the first response message, calculate the first loss or the first distance;
    基于所述第二发射功率和所述第二响应消息的第二RSSI,计算获得第二损耗或第二距离,Based on the second transmission power and the second RSSI of the second response message, calculate the second loss or the second distance,
    基于所述第一损耗和所述第二损耗,确定所述第一投屏设备具有所述优先级,或Based on the first loss and the second loss, it is determined that the first projection device has the priority, or
    基于所述第一距离和所述第二距离,确定所述第一投屏设备具有所述优先级。Based on the first distance and the second distance, it is determined that the first screen projection device has the priority.
  13. 根据权利要求12所述的无线通信系统,其特征在于,The wireless communication system according to claim 12, wherein:
    当所述第一投屏设备的所述第一发射功率与所述第二投屏设备的所述第二发送功率相同时,所述手机被配置为:When the first transmission power of the first projection device is the same as the second transmission power of the second projection device, the mobile phone is configured to:
    基于所述第一响应消息的所述第一RSSI和所述第二响应消息的所述第二RSSI,确定所述第一投屏设备具有所述优先级。Based on the first RSSI of the first response message and the second RSSI of the second response message, it is determined that the first screen projection device has the priority.
  14. 根据权利要求11-13中任一项所述的无线通信系统,其特征在于,所述第一投屏设备被配置为:The wireless communication system according to any one of claims 11-13, wherein the first screen projection device is configured to:
    所述投屏提示框包括用户选项,The projection prompt box includes user options,
    接收所述用户针对所述用户选项的第二操作;Receiving a second operation of the user for the user option;
    响应于所述第二操作,所述手机与所述第一投屏设备投屏成功。In response to the second operation, the mobile phone and the first screen projection device successfully cast the screen.
  15. 一种手机的通信方法,其特征在于,包括如下步骤:A mobile phone communication method is characterized in that it comprises the following steps:
    接收用户的第一操作;Receive the user's first operation;
    响应于所述第一操作,发送投屏广播至第一投屏设备和第二投屏设备;In response to the first operation, sending a screencast broadcast to the first screencasting device and the second screencasting device;
    接收所述第一投屏设备的第一响应消息;Receiving a first response message of the first screen projection device;
    接收所述第二投屏设备的第二响应消息,Receiving a second response message of the second screen projection device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一投屏设备具有优先级,发送第一指令至所述第一投屏设备以使所述第一投屏设备弹出投屏提示框。Based on the first response message and the second response message, it is determined that the first screen projection device has a priority, and a first instruction is sent to the first screen projection device to make the first screen projection device pop up. Screen prompt box.
  16. 根据权利要求15所述的手机的通信方法,其特征在于,所述第一响应消息携带有所述第一投屏设备的第一发送功率的信息;所述第二响应消息携带有所述第二投屏设备的第二发送功率的信息,The mobile phone communication method according to claim 15, wherein the first response message carries information about the first transmission power of the first screen projection device; and the second response message carries the first transmission power information of the first screen projection device; Information about the second transmit power of the second projection screen device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一投屏设备具有优先级,发送第一指令至所述第一投屏设备以使所述第一投屏设备弹出投屏提示框的步骤中包括:Based on the first response message and the second response message, it is determined that the first screen projection device has a priority, and a first instruction is sent to the first screen projection device to make the first screen projection device pop up. The steps of the on-screen prompt box include:
    基于所述第一发射功率和所述第一响应消息的第一RSSI,计算获得第一损耗或第一距离;Based on the first transmission power and the first RSSI of the first response message, calculate the first loss or the first distance;
    基于所述第二发射功率和所述第二响应消息的第二RSSI,计算获得第二损耗或第二距离,Based on the second transmission power and the second RSSI of the second response message, calculate the second loss or the second distance,
    基于所述第一损耗和第二损耗,确定所述第一投屏设备具有所述优先级,或Based on the first loss and the second loss, it is determined that the first projection device has the priority, or
    基于所述第一距离和第二距离,确定所述第一投屏设备具有所述优先级。Based on the first distance and the second distance, it is determined that the first screen projection device has the priority.
  17. 根据权利要求16所述的手机的通信方法,其特征在于,当所述第一投屏设备的第一发射功率与所述第二投屏设备的第二发送功率相同时,The mobile phone communication method according to claim 16, wherein when the first transmission power of the first screen projection device is the same as the second transmission power of the second screen projection device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一投屏设备具有优先级,发送第一指令至所述第一投屏设备以使所述第一投屏设备弹出投屏提示框的步骤中包 括:Based on the first response message and the second response message, it is determined that the first screen projection device has a priority, and a first instruction is sent to the first screen projection device to make the first screen projection device pop up. The steps of the on-screen prompt box include:
    基于所述第一响应消息的所述第一RSSI和所述第二响应消息的所述第二RSSI,确定所述第一投屏设备具有所述优先级。Based on the first RSSI of the first response message and the second RSSI of the second response message, it is determined that the first screen projection device has the priority.
  18. 一种终端,其特征在于,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,以使得所述终端执行如下步骤:A terminal, characterized by comprising: a processor, a memory, and a touch screen, the memory and the touch screen are coupled to the processor, the memory is used to store computer program codes, and the computer program codes include computer instructions, When the processor reads the computer instructions from the memory, so that the terminal executes the following steps:
    接收用户的第一操作;Receive the user's first operation;
    响应于所述第一操作,发送BLE广播至第一电子设备和第二电子设备;In response to the first operation, sending a BLE broadcast to the first electronic device and the second electronic device;
    接收所述第一电子设备的第一响应消息;Receiving the first response message of the first electronic device;
    接收所述第二电子设备的第二响应消息,Receiving a second response message of the second electronic device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一电子设备具有优先级,发送第一指令至所述第一电子设备以使所述第一电子设备弹出配对提示框。Based on the first response message and the second response message, it is determined that the first electronic device has priority, and a first instruction is sent to the first electronic device to cause the first electronic device to pop up a pairing prompt box.
  19. 根据权利要求18所述的终端,其特征在于,The terminal according to claim 18, wherein:
    所述第一响应消息携带有所述第一电子设备的第一发送功率的信息;The first response message carries information about the first transmission power of the first electronic device;
    所述第二响应消息携带有所述第二电子设备的第二发送功率的信息,The second response message carries information about the second transmission power of the second electronic device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一电子设备具有优先级,发送第一指令至所述第一电子设备以使所述第一电子设备弹出配对提示框的步骤中包括:Based on the first response message and the second response message, it is determined that the first electronic device has priority, and a first instruction is sent to the first electronic device to cause the first electronic device to pop up a pairing prompt box The steps include:
    基于所述第一发射功率和所述第一响应消息的第一RSSI计算,获得第一损耗或第一距离;Calculation based on the first transmission power and the first RSSI of the first response message to obtain the first loss or the first distance;
    基于所述第二发射功率和所述第二响应消息的第二RSSI计算,获得第二损耗或第二距离,Based on the second RSSI calculation of the second transmission power and the second response message, the second loss or the second distance is obtained,
    基于所述第一损耗和第二损耗,确定所述第一电子设备具有所述优先级,或Based on the first loss and the second loss, it is determined that the first electronic device has the priority, or
    基于所述第一距离和第二距离,确定所述第一电子设备具有所述优先级。Based on the first distance and the second distance, it is determined that the first electronic device has the priority.
  20. 根据权利要求19所述的终端,其特征在于,当所述第一电子设备的所述第一发射功率与所述第二电子设备的所述第二发送功率相同时,The terminal according to claim 19, wherein when the first transmission power of the first electronic device is the same as the second transmission power of the second electronic device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一电子设备具有优先级,发送第一指令至所述第一电子设备以使所述第一电子设备弹出配对提示框的步骤中包括:Based on the first response message and the second response message, it is determined that the first electronic device has priority, and a first instruction is sent to the first electronic device to cause the first electronic device to pop up a pairing prompt box The steps include:
    基于所述第一响应消息的所述第一RSSI和所述第二响应消息的所述第二RSSI,确定所述第一电子设备具有所述优先级。Based on the first RSSI of the first response message and the second RSSI of the second response message, it is determined that the first electronic device has the priority.
  21. 一种终端,其特征在于,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,以使得所述终端执行如下步骤:A terminal, characterized by comprising: a processor, a memory, and a touch screen, the memory and the touch screen are coupled to the processor, the memory is used to store computer program codes, and the computer program codes include computer instructions, When the processor reads the computer instructions from the memory, so that the terminal executes the following steps:
    接收用户的第一操作;Receive the user's first operation;
    响应于所述第一操作,发送投屏广播至第一投屏设备和第二投屏设备;In response to the first operation, sending a screencast broadcast to the first screencasting device and the second screencasting device;
    接收所述第一投屏设备的第一响应消息;Receiving a first response message of the first screen projection device;
    接收所述第二投屏设备的第二响应消息,Receiving a second response message of the second screen projection device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一投屏设备具有优先级,发送第一指令至所述第一投屏设备以使所述第一投屏设备弹出投屏提示框。Based on the first response message and the second response message, it is determined that the first screen projection device has a priority, and a first instruction is sent to the first screen projection device to make the first screen projection device pop up. Screen prompt box.
  22. 根据权利要求21所述的终端,其特征在于,所述第一响应消息携带有所述第一投屏设备的第一发送功率的信息;所述第二响应消息携带有所述第二投屏设备的第二发送功率的信息,The terminal according to claim 21, wherein the first response message carries information about the first transmission power of the first screen projection device; the second response message carries the second screen projection device Information about the second transmit power of the device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一投屏设备具有优先级,发送第一指令至所述第一投屏设备以使所述第一投屏设备弹出投屏提示框的步骤中包括:Based on the first response message and the second response message, it is determined that the first screen projection device has a priority, and a first instruction is sent to the first screen projection device to make the first screen projection device pop up. The steps of the on-screen prompt box include:
    基于所述第一发射功率和所述第一响应消息的第一RSSI,计算获得第一损耗或第一距离;Based on the first transmission power and the first RSSI of the first response message, calculate the first loss or the first distance;
    基于所述第二发射功率和所述第二响应消息的第二RSSI,计算获得第二损耗或第二距离,Based on the second transmission power and the second RSSI of the second response message, calculate the second loss or the second distance,
    基于所述第一损耗和第二损耗,确定所述第一投屏设备具有所述优先级,或Based on the first loss and the second loss, it is determined that the first projection device has the priority, or
    基于所述第一距离和第二距离,确定所述第一投屏设备具有所述优先级。Based on the first distance and the second distance, it is determined that the first screen projection device has the priority.
  23. 根据权利要求22所述的终端,其特征在于,当所述第一投屏设备的第一发射功率与所述第二投屏设备的第二发送功率相同时,The terminal according to claim 22, wherein when the first transmission power of the first screen projection device is the same as the second transmission power of the second screen projection device,
    基于所述第一响应消息和所述第二响应消息,确定所述第一投屏设备具有优先级,发送第一指令至所述第一投屏设备以使所述第一投屏设备弹出投屏提示框的步骤中包括:Based on the first response message and the second response message, it is determined that the first screen projection device has a priority, and a first instruction is sent to the first screen projection device to make the first screen projection device pop up. The steps of the on-screen prompt box include:
    基于所述第一响应消息的所述第一RSSI和所述第二响应消息的所述第二RSSI,确定所述第一投屏设备具有所述优先级。Based on the first RSSI of the first response message and the second RSSI of the second response message, it is determined that the first screen projection device has the priority.
PCT/CN2021/079787 2020-03-10 2021-03-09 Bluetooth communication system and wireless communication system WO2021180083A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010163215.0 2020-03-10
CN202010163215.0A CN113395685B (en) 2020-03-10 2020-03-10 Bluetooth communication system and wireless communication system

Publications (1)

Publication Number Publication Date
WO2021180083A1 true WO2021180083A1 (en) 2021-09-16

Family

ID=77615227

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/079787 WO2021180083A1 (en) 2020-03-10 2021-03-09 Bluetooth communication system and wireless communication system

Country Status (2)

Country Link
CN (1) CN113395685B (en)
WO (1) WO2021180083A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210354712A1 (en) * 2020-05-18 2021-11-18 Toyota Jidosha Kabushiki Kaisha Agent control device, agent control method, and recording medium
CN113973290A (en) * 2021-10-27 2022-01-25 深圳市芯中芯科技有限公司 Method for quickly connecting Bluetooth headset
CN114500730A (en) * 2022-02-28 2022-05-13 歌尔股份有限公司 Popup window function control method, device and computer readable storage medium
CN114666744A (en) * 2022-03-22 2022-06-24 Oppo广东移动通信有限公司 Near field communication equipment connection method, device, equipment, storage medium and product
CN114698078A (en) * 2022-02-24 2022-07-01 荣耀终端有限公司 Transmission power adjustment method, electronic device, and storage medium
CN116133165A (en) * 2022-08-23 2023-05-16 荣耀终端有限公司 Headset connection system, method, headset, electronic device, and readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115993592B (en) * 2023-03-22 2023-08-08 荣耀终端有限公司 Bluetooth ranging method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100093280A1 (en) * 2008-10-15 2010-04-15 Samsung Electronics Co., Ltd. Bluetooth connection method and apparatus
US20100130131A1 (en) * 2008-11-21 2010-05-27 Samsung Electronics Co. Ltd. Apparatus and method for connecting with bluetooth devices in a terminal using audio channel
CN107087247A (en) * 2017-03-27 2017-08-22 宇龙计算机通信科技(深圳)有限公司 A kind of bluetooth processing method and processing device
CN108271143A (en) * 2018-01-08 2018-07-10 维沃移动通信有限公司 A kind of connection method of Bluetooth device and mobile terminal
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016017909A1 (en) * 2014-07-31 2016-02-04 엘지전자(주) Method and apparatus for controlling electronic device in wireless communication system supporting bluetooth communication
CN108446151B (en) * 2017-02-14 2022-01-25 阿里巴巴集团控股有限公司 Communication method and device
CN110248346A (en) * 2019-06-17 2019-09-17 四川长虹电器股份有限公司 More equipment throw screen method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100093280A1 (en) * 2008-10-15 2010-04-15 Samsung Electronics Co., Ltd. Bluetooth connection method and apparatus
US20100130131A1 (en) * 2008-11-21 2010-05-27 Samsung Electronics Co. Ltd. Apparatus and method for connecting with bluetooth devices in a terminal using audio channel
CN107087247A (en) * 2017-03-27 2017-08-22 宇龙计算机通信科技(深圳)有限公司 A kind of bluetooth processing method and processing device
CN108271143A (en) * 2018-01-08 2018-07-10 维沃移动通信有限公司 A kind of connection method of Bluetooth device and mobile terminal
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210354712A1 (en) * 2020-05-18 2021-11-18 Toyota Jidosha Kabushiki Kaisha Agent control device, agent control method, and recording medium
US11726741B2 (en) * 2020-05-18 2023-08-15 Toyota Jidosha Kabushiki Kaisha Agent control device, agent control method, and recording medium
CN113973290A (en) * 2021-10-27 2022-01-25 深圳市芯中芯科技有限公司 Method for quickly connecting Bluetooth headset
CN113973290B (en) * 2021-10-27 2024-04-19 深圳市芯中芯科技有限公司 Method for quickly connecting Bluetooth headset
CN114698078A (en) * 2022-02-24 2022-07-01 荣耀终端有限公司 Transmission power adjustment method, electronic device, and storage medium
CN114500730A (en) * 2022-02-28 2022-05-13 歌尔股份有限公司 Popup window function control method, device and computer readable storage medium
CN114500730B (en) * 2022-02-28 2023-08-29 歌尔股份有限公司 Popup function control method, popup function control device and computer readable storage medium
CN114666744A (en) * 2022-03-22 2022-06-24 Oppo广东移动通信有限公司 Near field communication equipment connection method, device, equipment, storage medium and product
CN114666744B (en) * 2022-03-22 2024-03-01 Oppo广东移动通信有限公司 Method, device, equipment, storage medium and product for connecting near field communication equipment
CN116133165A (en) * 2022-08-23 2023-05-16 荣耀终端有限公司 Headset connection system, method, headset, electronic device, and readable storage medium

Also Published As

Publication number Publication date
CN113395685B (en) 2023-07-11
CN113395685A (en) 2021-09-14

Similar Documents

Publication Publication Date Title
WO2021180083A1 (en) Bluetooth communication system and wireless communication system
CN110138937B (en) Call method, device and system
CN112789867B (en) Bluetooth connection method and equipment
CN112868244B (en) Point-to-multipoint data transmission method and device
WO2021008614A1 (en) Method for establishing communication connection and wearable device
WO2020133183A1 (en) Audio data synchronization method and device
WO2021082829A1 (en) Bluetooth connection method and related apparatus
WO2020124581A1 (en) Audio data transmission method and electronic device
WO2020132818A1 (en) Wireless short-distance audio sharing method and electronic device
CN112839303B (en) Method and related device for device reconnection
WO2022262262A1 (en) Method for sound pick-up by terminal device by means of bluetooth peripheral, and terminal device
WO2020078330A1 (en) Voice call-based translation method and electronic device
US10827455B1 (en) Method and apparatus for sending a notification to a short-range wireless communication audio output device
CN114499587B (en) Audio synchronization communication method, system, wireless earphone, terminal and storage medium
EP4109922A1 (en) Audio processing method, apparatus and system
CN112771828B (en) Audio data communication method and electronic equipment
CN111757306B (en) External playing method and system based on earphone charging box and readable storage medium
WO2022242528A1 (en) Volume adjustment method and terminal device
CN113301544A (en) Method and equipment for voice intercommunication between audio equipment
CN115167802A (en) Audio switching playing method and electronic equipment
WO2023071993A1 (en) Bluetooth pairing method, device, system, and storage medium
WO2020042491A9 (en) Headphone far-field interaction method, headphone far-field interaction accessory, and wireless headphones
CN115633340A (en) File transmission method, terminal, electronic device and storage medium
CN115175159A (en) Bluetooth headset playing method and equipment
CN115407962A (en) Audio shunting method and electronic equipment

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21767993

Country of ref document: EP

Kind code of ref document: A1