WO2023179119A1 - Near field communication device connection method and apparatus, device, storage medium, and product - Google Patents
Near field communication device connection method and apparatus, device, storage medium, and product Download PDFInfo
- Publication number
- WO2023179119A1 WO2023179119A1 PCT/CN2022/139602 CN2022139602W WO2023179119A1 WO 2023179119 A1 WO2023179119 A1 WO 2023179119A1 CN 2022139602 W CN2022139602 W CN 2022139602W WO 2023179119 A1 WO2023179119 A1 WO 2023179119A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- communication device
- field communication
- broadcast signals
- short
- directional
- Prior art date
Links
- 238000004891 communication Methods 0.000 title claims abstract description 513
- 238000000034 method Methods 0.000 title claims abstract description 71
- 238000012544 monitoring process Methods 0.000 claims abstract description 12
- 230000005540 biological transmission Effects 0.000 claims description 135
- 238000004590 computer program Methods 0.000 claims description 22
- 230000008569 process Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/04—TPC
- H04W52/38—TPC being performed in particular situations
- H04W52/383—TPC being performed in particular situations power control in peer-to-peer links
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Definitions
- the present application relates to the field of wireless communication technology, and in particular to a method, device, equipment, storage medium and product for connecting short-range communication equipment.
- Bluetooth device As an example, in order to quickly pair the Bluetooth headset with the mobile phone, or to remind the user that the connection is successful, each manufacturer has designed its own Bluetooth connection pop-up window mechanism.
- the Bluetooth headset begins to send broadcast signals to the surroundings.
- the broadcast signal will include the MAC address of the Bluetooth headset, and the Bluetooth devices around the Bluetooth headset. After receiving the broadcast signal, it can be paired with the Bluetooth headset.
- the broadcast signal sent by the Bluetooth headset may include a directional broadcast signal or a non-directional broadcast signal.
- the directional broadcast signal is used to connect the Bluetooth headset to a paired device
- the non-directional broadcast signal is used to connect the Bluetooth headset to a new unpaired device. device to connect.
- Embodiments of the present application provide a method, device, equipment, storage medium and product for connecting a short-range communication device, which can reduce harassment to surrounding devices while quickly reconnecting to a paired device.
- a short-range communication device connection method including:
- the first near-field communication device triggers the near-field communication connection, the first near-field communication device sends multiple sets of communication broadcast signals to the surroundings;
- each group of communication broadcast signals includes directional broadcast signals and non-directional broadcast signals, and the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals is greater than the transmission power of the non-directional broadcast signals.
- the above-mentioned directional broadcast signals are used to connect Paired devices, the above non-directional broadcast signal is used to pair and connect unpaired devices, where M is a positive integer greater than or equal to one.
- a short-range communication equipment connection device including:
- a monitoring module used to monitor whether the first near-field communication device triggers a near-field communication connection
- a sending module configured to send multiple sets of communication broadcast signals to the surroundings if the first short-range communication device triggers a short-range communication connection; wherein each set of communication broadcast signals includes a directional broadcast signal and a non-directional broadcast signal, and the previous The transmission power of the directional broadcast signal in the M group of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal.
- the above-mentioned directional broadcast signal is used to connect paired devices, and the above-mentioned non-directional broadcast signal is used to pair and connect unpaired devices, where M is A positive integer greater than or equal to one.
- a short-range communication device including a memory and a processor.
- a computer program is stored in the memory.
- the computer program When executed by the processor, it causes the processor to execute the short-range communication device connection method of the first aspect. A step of.
- a fourth aspect provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method of the first aspect are implemented.
- a fifth aspect provides a computer program product, including a computer program that implements the steps of the method of the first aspect when executed by a processor.
- the above-mentioned near-field communication device connection method, device, near-field communication device, computer-readable storage medium and computer program product monitor whether the first near-field communication device triggers the near-field communication connection, and when the first near-field communication device triggers the near-field communication connection, When the distance communication is connected, multiple groups of communication broadcast signals are sent to the surroundings; each group of communication broadcast signals includes directional broadcast signals and non-directional broadcast signals, and the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals is greater than that of the non-directional broadcast signals. The transmit power of the broadcast signal.
- the first short-range communication device transmits the directional broadcast signal with a larger transmission power and the non-directional broadcast signal with a smaller transmission power in the first M groups of communication broadcast signals, because the directional broadcast signal is used to connect the already connected
- non-directional broadcast signals are used to pair and connect unpaired devices.
- near-field communication devices are connected to paired devices. Therefore, directional broadcasts are transmitted with greater power.
- the signal enables the first short-range communication device to quickly connect to the paired device. In this way, the transmission duration of the communication broadcast signal can be reduced, thereby reducing the harassment to other devices in the time dimension.
- the first near-field communication device can also transmit a non-directional broadcast signal, but since the transmission power of the non-directional broadcast signal is smaller, therefore, only a smaller Devices within range can receive the non-directional broadcast signal, thus reducing harassment to other devices in the spatial dimension.
- Figure 1 is an application environment diagram of a near field communication device connection method in an embodiment
- Figure 2 is a flow chart of a method for connecting a near field communication device in an embodiment
- Figure 3 is a flow chart of a method for connecting a near field communication device in another embodiment
- Figure 4 is an example diagram of intermittently transmitting directional broadcast signals and non-directional broadcast signals in another embodiment
- Figure 5 is a flow chart of a short-range communication device connection method in another embodiment
- Figure 6 is a specific flow chart of a short-range communication device connection method in another embodiment
- Figure 7 is a structural block diagram of a near field communication device connection device in one embodiment
- Figure 8 is a structural block diagram of a short-range communication device in one embodiment.
- each manufacturer has designed its own Bluetooth connection pop-up window mechanism.
- the Bluetooth headset starts to send broadcast signals to the surroundings.
- the broadcast signal will include the MAC address of the Bluetooth headset.
- the Bluetooth devices around the Bluetooth headset receive the broadcast signal. After that, you can pair it with the Bluetooth headset.
- all devices around the Bluetooth headset will receive a pop-up reminder of the Bluetooth connection, and some of these devices are not the target devices for the Bluetooth headset to be paired and connected. This will cause serious harassment to these devices.
- the following embodiments of the present application provide a near field communication device connection method, device, near field communication device, computer readable storage medium and computer program product, which can solve the above technical problems.
- the short-range communication device connection method provided by the embodiment of the present application can be applied in the application environment as shown in Figure 1.
- the first near-field communication device 102 can perform a near-field communication connection with other near-field communication devices 104.
- the short-range communication connection may be a Bluetooth connection, an NFC connection, etc., and the embodiment of the present application does not limit the short-range connection method.
- the first short-range communication device 102 may be an earphone, a watch, a bracelet, a speaker, etc.
- Other near-field communication devices 104 can be various personal computers, laptops, smartphones, tablets, Internet of Things devices and portable wearable devices.
- the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc.
- Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.
- the near-field communication device 102 and other near-field communication devices 104 may include antennas, speakers, microphones, near-field communication main control circuits, batteries, etc., when the first near-field communication device 102 is paired with other near-field communication devices 104 Or when connecting back, the first near-field communication device 102 and other near-field communication devices 104 perform a near-field communication connection through a near-field communication signal.
- near-field communication devices here may include short-range communication devices that have been historically paired with the first near-field communication device 102 (for convenience of explanation of the following embodiments, here the short-range communication devices that have been historically paired are The communication devices are all recorded as the second near-field communication device), and of course, may also include new devices that have not been historically paired with the first near-field communication device 102 .
- a method for connecting a near field communication device is provided.
- the method is applied to the first near field communication device in Figure 1 as an example.
- the method may include the following steps:
- S202 Monitor whether the first near field communication device triggers a near field communication connection.
- the first near-field communication device may be the first near-field communication device 102 in FIG. 1, which may be an earphone, a watch, a bracelet, a speaker, etc.
- the first near field communication device can continuously monitor whether it triggers the near field communication connection process, for example, it can monitor whether the box cover is opened, whether the power on button on the device is triggered, whether the power on and off information is input, or whether the connection information is input, etc. etc., and the monitoring results can be obtained through monitoring.
- the Bluetooth headset will be put into the headset box when not in use. Then when the user needs to use the Bluetooth headset and opens the Bluetooth headset box cover, the Bluetooth headset will be triggered. At this time, the Bluetooth headset can detect that the near field communication connection is triggered.
- the monitoring connection method can also be similar to that of a Bluetooth headset. This is only an example.
- each group of communication broadcast signals includes directional broadcast signals and non-directional broadcast signals, and the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals is greater than the transmission power of the non-directional broadcast signals.
- the above-mentioned directional broadcast signals It is used to connect paired devices, and the above-mentioned non-directional broadcast signal is used to pair and connect unpaired devices, where M is a positive integer greater than or equal to one.
- the directional broadcast signal includes the MAC (Media Access Control) address of the near-field communication device that has been paired with the first near-field communication device in advance, and each directional broadcast signal includes a paired short-range communication device.
- Each group of communication broadcast signals includes a directional broadcast signal. Therefore, the multiple groups of communication broadcast signals here correspond to multiple directional broadcast signals.
- Each directional broadcast signal includes the number of the paired short-range communication device.
- the MAC address may be the MAC address of the same near-field communication device or the MAC address of different near-field communication devices. There is no specific limitation in this embodiment.
- the non-directional broadcast signal includes the MAC address of the first short-range communication device.
- Each group of communication broadcast signals includes a non-directional broadcast signal. Therefore, the multiple groups of communication broadcast signals here correspond to multiple/multiple groups of non-directional broadcast signals.
- Each non-directional broadcast signal includes the MAC address of the first short-range communication device.
- the first near field communication device when it detects that the near field communication connection process is triggered, it can send multiple sets of communication broadcast signals including directional broadcast signals and non-directional broadcast signals to the surroundings. Specifically, when sending each group of communication broadcast signals, the directional broadcast signal can be sent first, and then the non-directional broadcast signal can be sent. Of course, the non-directional broadcast signal can also be sent first, and then the directional broadcast signal can be sent. In this embodiment, it is preferred to send the directional broadcast signal first, and then send the non-directional broadcast signal. This can facilitate the device that has been paired with the first near-field communication device to connect to the first near-field communication device more quickly.
- the transmission power of the directional broadcast signal is not specifically limited.
- it may transmit with any transmission power.
- the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals can be a fixed/same transmission power. It is assumed that it can be the maximum transmission power of the first short-range communication device when transmitting signals; of course, it can also be The transmission power of the directional broadcast signals in each group of communication broadcast signals is different, as long as it can be ensured that the transmission power of the directional broadcast signals in each group of communication broadcast signals is greater than the transmission power of the non-directional broadcast signals, for example, it can be gradually increased.
- the power of the group directional broadcast signal is not specifically limited.
- it may transmit with any transmission power.
- the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals can be a fixed/same transmission power. It is assumed that it can be the maximum transmission power of the first short-range communication device when transmitting signals; of course, it can also be The transmission power of the directional broadcast signals in each
- the transmission power of the non-directional broadcast signals in the first M groups of communication broadcast signals can be a fixed/same transmission power, or it can also be the transmission power of each group of communication broadcast signals.
- the transmission power of the non-directional broadcast signals is different, as long as it can be ensured that the transmission power of the directional broadcast signal in each group of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal.
- the transmission power of the directional broadcast signal starting from the M+1th group is equal to the transmission power of the non-directional broadcast signal. That is to say, starting from the M+1th group, the transmission power of the non-directional broadcast signal can be increased to be equal to the transmission power of the directional broadcast signal, or the transmission power of the directional broadcast signal can be increased to that of the non-directional broadcast signal.
- the transmit power is increased to an equal transmit power, and of course it can be other situations.
- the transmission power of the directional broadcast signal is greater than the transmission power of the non-directional broadcast signal, which can improve the reconnection efficiency of the first near-field communication device and the paired device; in addition, usually the first near-field communication device connects the new device Usually, the new device and the first near-field communication device will be relatively close.
- the new device can receive the signal, while other users or devices around it are far away and cannot The broadcast signal is received, thereby ensuring fast pop-up windows and connections between the new device and the first near-field communication device, and ensuring low harassment to other users or devices.
- the first near-field communication device can also continuously detect whether it has successfully connected with the surrounding equipment. When it detects that the first near-field communication device has successfully connected with the surrounding equipment, it can stop sending all signals to the surroundings. Broadcast signal until the next time the connection process is re-triggered or the communication broadcast signal is sent. For example, if the first near-field communication device is a Bluetooth headset, it can be until the next time the Bluetooth headset box cover is reopened, etc. This can save the first near-field communication device. Power consumption of distance communication equipment.
- each group of communication broadcast signals includes directional broadcast signals and non-directional broadcast signals, and the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals is greater than the transmission power of the non-directional broadcast signals.
- the first short-range communication device transmits the directional broadcast signal with a larger transmission power and the non-directional broadcast signal with a smaller transmission power in the first M groups of communication broadcast signals, because the directional broadcast signal is used to connect the already connected
- non-directional broadcast signals are used to pair and connect unpaired devices.
- near-field communication devices are connected to paired devices. Therefore, directional broadcasts are transmitted with greater power.
- the signal enables the first short-range communication device to quickly connect to the paired device. In this way, the transmission duration of the communication broadcast signal can be reduced, thereby reducing the harassment to other devices in the time dimension.
- the first near-field communication device can also transmit a non-directional broadcast signal, but since the transmission power of the non-directional broadcast signal is smaller, therefore, only a smaller Devices within range can receive the non-directional broadcast signal, thus reducing harassment to other devices in the spatial dimension.
- the transmission power of each group of non-directional broadcast power can be the same value or different values.
- the following embodiment will be carried out in the case where the transmission power of each group of non-directional broadcast power is different values. illustrate.
- the transmission power of the non-directional broadcast signal in the latter group of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal in the previous group of communication broadcast signals.
- the transmission power of the non-directional broadcast signal is gradually increased until it is increased to the maximum transmission power of the first short-range communication device when transmitting the signal, and the non-directional broadcast signal is no longer increased.
- the transmit power of directional broadcast signals For example, there are three moments, namely t1, t2, and t3, and their sequence is t1 ⁇ t2 ⁇ t3. A set of communication broadcast signals are sent at each moment. Then, the transmission power of the non-directional broadcast signal sent at t3 is greater than that sent at t2. The transmission power of the non-directional broadcast signal sent at time t2 is greater than the transmission power of the non-directional broadcast signal sent at time t1.
- the step size for increasing the transmission power of each group of non-directional broadcast signals may be the same step size for gradual increase, or different step sizes may be used for gradual increase.
- it can be increased according to the rule from slow to fast, that is, the step size of the increase in the transmission power of each group of non-directional broadcast signals can be gradually Increase, which is more in line with the law of signal attenuation.
- the farther the signal transmission distance the faster the attenuation. This can improve the accuracy of signal transmission and improve the success rate of connecting the surrounding equipment to the first short-range communication equipment.
- the broadcast distance can be gradually increased.
- the broadcast distance is gradually increased so that the surrounding The device can be connected successfully, thereby ensuring quick reconnection of surrounding devices while reducing harassment to other devices around the first short-range communication device.
- the new device is usually brought closer to the first near-field communication device. Therefore, the new device can receive the signal using lower transmit power, while other devices around it Users or devices that are too far away cannot receive broadcast signals, thereby ensuring fast pop-ups and connections between new devices and the first near-field communication device, and ensuring low harassment to other users or devices.
- the transmission power of the non-directional broadcast signal can be gradually increased, that is, the transmission power of the non-directional broadcast signal can be adjusted from small to large, so that the broadcast distance of the non-directional broadcast signal can be gradually expanded, so that the first short-distance communication can be achieved
- New devices that are far away from each other can also quickly connect to the first near-field communication device, thereby improving the success rate of connection between the new device and the first near-field communication device.
- the directional broadcast signal includes the MAC address of the paired device. Then when the first short-range communication device sends multiple sets of communication broadcast signals to the surroundings, it can also be judged in advance whether there are paired devices stored therein. , the process will be described in detail below.
- another near field communication device connection method is provided. Based on the above embodiment, the above S204 may include the following steps:
- Step A if the first near-field communication device stores a second near-field communication device that is historically paired with the first near-field communication device, the first near-field communication device sends multiple groups of communication broadcast signals to the surroundings, where each group The directional broadcast signal among the communication broadcast signals corresponds to the second short-range communication device.
- the first near-field communication device stores a second near-field communication device that has been paired with the first near-field communication device in history.
- the first near-field communication device has been paired with the second near-field communication device
- the second short-range communication device is connected to the first short-range communication device
- the MAC address of the second short-range communication device will be stored in the memory of the first short-range communication device.
- the latest N devices N ⁇ 1 can be stored in the memory of the first near-field communication device, and all the saved devices can be recorded as second near-field communication devices.
- the size of N can be set according to the actual situation, for example It's 5, 6, 10, etc.
- the memory of the first near-field communication device will store the MAC address of the second near-field communication device that has been paired historically, it can be determined whether there is a MAC address of the second near-field communication device in the memory of the first near-field communication device. Address, when the MAC address of the second near-field communication device exists in the memory of the first near-field communication device, it means that the first near-field communication device has been paired with other near-field communication devices before, then the device can be paired first, so it can Multiple sets of communication broadcast signals including directional broadcast signals and non-directional broadcast signals are sent to the surroundings, so that the first short-range communication device can quickly connect back to surrounding paired devices.
- each directional broadcast signal in each set of communication broadcast signals correspond to each second short-range communication device, that is, the directional broadcast signals included in each set of directional broadcast signals
- the MAC address is the MAC address of the second near field communication device.
- each directional broadcast signal may include a different MAC address of the second near-field communication device, or each m adjacent directional broadcast signals may include a same MAC address of the second near-field communication device, where m can be 2, 3, 4, etc.
- the first near-field communication device can send multiple sets of non-directional broadcast signals to the surroundings. That is to say, when the first near-field communication device does not save the paired second near-field communication device, it is considered that the first near-field communication device needs to connect to a new near-field communication device. At this time, the first near-field communication device The device always sends non-directional broadcast signals to the surroundings, so that the surrounding devices can quickly obtain the MAC address of the first near-field communication device so as to connect with the first near-field communication device.
- the transmission power of the non-directional broadcast signal may also be transmitted in a manner that gradually increases the transmission power, that is, the first short-range communication device is transmitting to the surroundings.
- the transmission power of the latter group of non-directional broadcast signals is greater than the transmission power of the previous group of non-directional broadcast signals.
- multiple sets of communication broadcast signals can be sent to the surroundings. This can facilitate the quick reconnection of the device that has been paired with the first near-field communication device in the past.
- the first short-range communication device can also reduce harassment to other surrounding devices.
- multiple sets of non-directional broadcast signals can be sent to the surroundings, so that the first short-range communication device can quickly connect to new surrounding devices, shortening the time The length of time the first NFC device is connected to the new device.
- the MAC address of the paired device can be saved in the first short-range communication device, and then a directional broadcast signal including the MAC address of the paired device can be sent to the surroundings.
- the following embodiment will specifically describe how to send the directional broadcast signal. The process of broadcasting signals is explained in detail.
- the above S204 may include the following steps:
- the first short-range communication device determines the connection priority of each second short-range communication device.
- At least two second near-field communication devices are stored in the first near-field communication device.
- each second near-field communication device and the first near-field communication device can be stored in the first near-field communication device.
- Historical pairing time, and optionally, the first near-field communication device can determine the connection priority of each second near-field communication device based on the historical pairing time of each second near-field communication device and the first near-field communication device.
- the closer the historical pairing time of the second near-field communication device and the first near-field communication device is to the current moment the higher its corresponding connection priority is, that is, the second near-field communication device that was last paired with the first near-field communication device The device has the highest connection priority. Therefore, through the historical pairing time of each second near-field communication device and the first near-field communication device, the connection priority corresponding to each second near-field communication device can be obtained.
- the first short-range communication device sends multiple sets of communication broadcast signals to surroundings according to the connection priority of each second short-range communication device.
- the second short-range communication device can be assigned to each second short-range communication device in order from high to low according to the connection priority of each second short-range communication device.
- the MAC address is inserted into each group of directional broadcast signals, and multiple groups of communication broadcast signals are obtained and broadcasted. That is to say, the MAC address of the second near-field communication device with the highest connection priority can be broadcast preferentially, which can increase the probability of successful reconnection between the second near-field communication device and the first near-field communication device.
- the first short-range communication device sends multiple sets of communication broadcast signals to the surroundings according to the determined connection priorities of the second short-range communication devices.
- multiple sets of communication broadcast signals can be sent to the surroundings in a targeted manner, improving the Accuracy and efficiency of communications broadcast signaling.
- the connection priority of each second near-field communication device can be determined based on the historical pairing time of the first near-field communication device and each second near-field communication device, so that the connection priority of each second near-field communication device can be quickly and accurately determined. Connection priority shortens the time for setting communication broadcast signals of each group, and further improves the accuracy and efficiency of sending communication broadcast signals.
- the first short-range communication device can send multiple sets of communication broadcast signals including directional broadcast signals and non-directional broadcast signals to the surroundings, but there is no specific reference to how to send the multiple sets of communication broadcast signals. , the following embodiments will describe in detail how to send the multiple sets of communication broadcast signals.
- another near field communication device connection method is provided. Based on the above embodiment, the above S204 may include the following steps:
- Step B The first short-range communication device sends each adjacent two groups of communication broadcast signals at a first preset time interval.
- the first short-range communication device can intermittently send multiple sets of communication broadcast signals to the surroundings, where the directional broadcast signals and non-directional broadcast signals in each set of communication broadcast signals can be sent continuously, that is, not There is a time interval for sending.
- Each adjacent two groups of communication broadcast signals can be sent with a first preset time length.
- the first preset time length between each adjacent two groups of communication broadcast signals can be the same or different.
- the first preset time length can be The size can be set according to the actual situation, for example, it can be 0s, 0.2s, 0.5s, etc.
- the maximum transmission power when the first short-range communication device sends a signal can be recorded as Pmax.
- the transmission power of each group of directional broadcast signals can be the same, which can be exemplified as the maximum transmission power Pmax.
- Each group of non-directional broadcast signals can The transmission power can be increased from P1 to P2, P3, P4... until Pmax, where P1 ⁇ P2 ⁇ P3 ⁇ ... ⁇ Pmax. By gradually increasing the transmit power of the non-directional broadcast signal, this minimizes disturbance to devices surrounding the first NFC device.
- the first near-field communication device can send each adjacent two groups of communication broadcast signals at a first preset time interval. This can facilitate the devices surrounding the first near-field communication device to quickly establish a connection with the first near-field communication device. connection, while reducing the scanning of surrounding devices and reducing the power consumption of the first short-range communication device.
- the above-mentioned first short-range communication device sequentially transmits directional broadcast signals and non-directional broadcast signals in each group of communication broadcast signals to the surroundings.
- the first short-range communication device when the first short-range communication device sends each group of communication broadcast signals, it first sends the directional broadcast signal and then the non-directional broadcast signal. This can facilitate the first short-range communication device to prioritize connecting to the paired device and improve The reconnection efficiency between the first near-field communication device and the paired device.
- the first short-range communication device can send each group of directional broadcast signals with any transmission power.
- the following embodiments provide two possible implementations of the transmission power of the first short-range communication device.
- the transmission power of the directional broadcast signal in each group of communication broadcast signals is greater than the target transmission power threshold.
- the target transmission power threshold can be set according to the actual situation, for example, it can be the maximum transmission power when the first short-range communication device sends a signal, or it can be 90% of the maximum transmission power when the first short-range communication device sends a signal, etc. .
- the transmission power of the directional broadcast signal in each group of communication broadcast signals is the maximum transmission power of the first short-range communication device when transmitting the signal. That is to say, the transmission power of the directional broadcast signal in each group of communication broadcast signals is the same, which is the maximum transmission power of the first short-range communication device when transmitting the signal.
- This can facilitate the first short-range communication device to quickly set each
- the group directional broadcast signal can also facilitate paired devices around the first near-field communication device to quickly connect back to the first near-field communication device.
- the transmission power of the directional broadcast signal in the latter group of communication broadcast signals is greater than the transmission power of the directional broadcast signal in the previous group of communication broadcast signals.
- each group of directional broadcast signals can also be broadcast to the surroundings by gradually increasing the transmission power until it increases to the maximum transmission power of the first short-range communication device when transmitting signals. Increase the transmission power of the directional broadcast signal. This is because in the actual near-field communication device connection scenario, generally when the user uses the first near-field communication device, he is usually closer to the surrounding devices, so he does not need too high transmission power to connect to the surrounding devices. Time-directed broadcasting can also be carried out by gradually increasing the transmission power instead of using a fixed maximum transmission power, which can reduce the power consumption of the first short-range communication device when sending each group of communication broadcast signals.
- the first short-range communication device can send multiple sets of communication broadcast signals to the surroundings, but did not mention when to stop sending.
- the following embodiments will describe this process in detail.
- another method for connecting a near field communication device is provided. Based on the above embodiment, as shown in Figure 5, the above method may also include the following steps:
- the first short-range communication device can continuously monitor whether the signal stop sending condition is met.
- the signal stopping condition can include at least one of the following contents: the above-mentioned third The duration of a short-range communication device sending a communication broadcast signal is longer than the second preset duration; the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are equal to the maximum transmission power of the first short-range communication device when transmitting the signal.
- the first case will be described here, that is, the case where the duration of the communication broadcast signal sent by the first short-range communication device is longer than the second preset duration.
- the first near-field communication device continuously detects whether the duration of the communication broadcast signal sent by the first near-field communication device is greater than the second preset duration; if the duration of the first near-field communication device sending the communication broadcast signal is greater than the second preset duration , then the first short-range communication device stops sending the communication broadcast signal.
- the size of the second preset duration can be set according to the actual situation, for example, it can be 5s, 10s, etc. It should be noted that the second preset duration here is greater than the duration in which the transmission power of the non-directional broadcast signal increases from P1 to Pmax. That is to say, here generally after the transmission power of the non-directional broadcast signal increases from P1 to Pmax, several groups of non-directional broadcast signals will continue to be transmitted to the surroundings with the transmission power of Pmax.
- the first short-range communication device when it starts to send multiple sets of communication broadcast signals to the surroundings, it can count the duration of sending the multiple sets of communication broadcast signals, compare the statistical duration with the second preset duration, and determine the statistical duration. Whether the duration is greater than the second preset duration, the judgment result is obtained.
- the duration counted by the first near-field communication device is greater than the second preset duration, which indicates that the first near-field communication device has not successfully connected with other devices for a long time, the communication broadcast signal can be stopped to save the first near-field communication device. of power consumption.
- the second case will be described here, that is, the case where the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are equal to the maximum transmission power of the first short-range communication device when transmitting the signal.
- the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal in each group of communication broadcast signals can be gradually increased, so that the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are
- the power increases to the maximum transmission power of the first near-field communication device when transmitting a signal it means that there is no connectable near-field communication device around the first near-field communication device. Therefore, in order to save the power of the first near-field communication device, consumption, at this time the first short-range communication device can stop sending communication broadcast signals.
- the first short-range communication device when the duration of the first short-range communication device sending the communication broadcast signal is greater than the second preset duration, or the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are equal to the first short-range communication device in When the maximum transmission power is reached when transmitting a signal, the first short-range communication device can stop sending the communication broadcast signal, which can save the power consumption of the first short-range communication device.
- the above method may include the following steps:
- S601 Monitor whether the first near-field communication device triggers a near-field communication connection. If so, execute S602; otherwise, continue monitoring.
- S602 Determine whether the first near-field communication device stores a second near-field communication device that is historically paired with the first near-field communication device. If so, perform S603; otherwise, perform S604.
- the first short-range communication device intermittently sends directional broadcast signals and non-directional broadcast signals to the surroundings, and the transmission power of the non-directional broadcast signals gradually increases.
- the first short-range communication device sends multiple sets of non-directional broadcast signals to the surroundings, and the transmission power of the non-directional broadcast signals gradually increases.
- S605 The first short-range communication device determines whether the connection of the existing device is successful. If so, execute S606; otherwise, execute S607.
- S606 The first short-range communication device stops sending communication broadcast signals.
- the first short-range communication device detects whether the duration of sending the communication broadcast signal is greater than the second preset duration, or the first short-range communication device detects whether the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are equal to the second The maximum transmission power of a short-range communication device when transmitting a signal. If yes, execute S606; otherwise, execute S608.
- the first short-range communication device continues to send directional broadcast signals and non-directional broadcast signals to the surroundings.
- embodiments of the present application also provide a short-distance communication device connection device for implementing the above-mentioned short-distance communication device connection method.
- the solution to the problem provided by this device is similar to the solution recorded in the above method. Therefore, for the specific limitations in the embodiments of one or more short-range communication equipment connection devices provided below, please refer to the above for short-range communication. The limitations of device connection methods will not be described again here.
- a near field communication device connection device including: a monitoring module 11 and a sending module 12, wherein:
- Monitoring module 11 used to monitor whether the first near-field communication device triggers a near-field communication connection
- the sending module 12 is configured to send multiple sets of communication broadcast signals to the surroundings if the first short-range communication device triggers a short-range communication connection; wherein each set of communication broadcast signals includes a directional broadcast signal and a non-directional broadcast signal, and The transmission power of the directional broadcast signal in the first M groups of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal.
- the above-mentioned directional broadcast signal is used to connect paired devices, and the above-mentioned non-directional broadcast signal is used to pair and connect unpaired devices, where M is a positive integer greater than or equal to one.
- the transmission power of the directional broadcast signal is equal to the transmission power of the non-directional broadcast signal.
- the transmission power of the non-directional broadcast signal in the latter group of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal in the previous group of communication broadcast signals.
- the above-mentioned sending module 12 includes:
- the first sending unit is configured to send multiple groups of communication broadcast signals to the surroundings if the first short-range communication device stores a second short-range communication device that is historically paired with the first near-field communication device, wherein each group of communication broadcast signals The directional broadcast signal in the signal corresponds to the second near field communication device.
- the above sending module 12 also includes:
- the second sending unit is configured to send multiple sets of non-directional broadcast signals to the surroundings if the second short-range communication device is not stored in the first short-range communication device.
- a near-field communication device connection device is provided. Based on the above embodiment, at least two of the above-mentioned second near-field communication devices are stored in the above-mentioned first near-field communication device.
- a sending unit including:
- a priority determination subunit used to determine the connection priority of each of the above-mentioned second short-range communication devices
- the sending subunit is configured to send multiple sets of communication broadcast signals to the surroundings according to the connection priority of each of the above-mentioned second short-range communication devices.
- the above-mentioned priority determination subunit is specifically configured to determine the connection priority of each second near-field communication device according to the historical pairing time of each of the above-mentioned second near-field communication devices and the above-mentioned first near-field communication device.
- the above-mentioned sending module 12 includes:
- the third sending unit is configured to send each adjacent two groups of communication broadcast signals at intervals of a first preset time period.
- the above-mentioned sending module 12 includes:
- the fourth sending unit is used to sequentially send the directional broadcast signal and the non-directional broadcast signal in each group of communication broadcast signals to the surroundings.
- another short-range communication device connection device is provided. Based on the above embodiment, the transmission power of the directional broadcast signal in each group of communication broadcast signals is greater than the target transmission power threshold.
- the transmission power of the directional broadcast signal in each group of communication broadcast signals is the maximum transmission power of the first short-range communication device when transmitting the signal.
- another short-range communication equipment connection device is provided. Based on the above embodiment, in each adjacent two groups of the above communication broadcast signals, the latter group of communication broadcast signals transmits a directional broadcast signal. The power is greater than the transmission power of the directional broadcast signal in the previous group of communication broadcast signals.
- another near field communication device connection device is provided. Based on the above embodiment, the above device further includes:
- the stop-sending module is used to stop sending the above-mentioned communication broadcast signal if the signal stop-sending condition is met.
- the above-mentioned signal stopping condition includes at least one of the following contents: the duration of the first short-range communication device sending the communication broadcast signal is longer than the second preset duration; the transmission power of the above-mentioned directional broadcast signal is different from the above-mentioned non-directional broadcast.
- the transmission power of the signal is equal to the maximum transmission power of the above-mentioned first short-range communication device when transmitting the signal.
- Each module in the above-mentioned short-range communication equipment connection device can be implemented in whole or in part by software, hardware, and combinations thereof.
- Each of the above modules can be embedded in or independent of the processor in the first near-field communication device in the form of hardware, or can be stored in the memory in the first near-field communication device in the form of software, so that the processor can call and execute the above modules. The operation corresponding to the module.
- a short-range communication device is provided, and the internal structure diagram of the short-range communication device can be shown in FIG. 8 .
- the near field communication device includes a processor, a memory, an input/output interface, a communication interface, a display unit and an input device.
- the processor, memory and input/output interface are connected through the system bus, and the communication interface, display unit and input device are connected to the system bus through the input/output interface.
- the processor of the near field communication device is used to provide computing and control capabilities.
- the memory of the near field communication device includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems and computer programs.
- the input/output interface of the near field communication device is used to exchange information between the processor and the external device.
- the communication interface of the near field communication device is used for wired or wireless communication with an external near field communication device.
- the wireless mode can be implemented through WIFI, mobile cellular network, NFC (near field communication) or other technologies.
- the computer program implements a near field communication device connection method when executed by a processor.
- the display unit of the near field communication device is used to form a visually visible picture, and may be a display screen, a projection device or a virtual reality imaging device.
- the display screen can be a liquid crystal display or an electronic ink display.
- the input device of the near field communication device can be a touch layer covered on the display screen, or it can be a button, trackball or touch pad provided on the shell of the near field communication device. , it can also be an external keyboard, trackpad or mouse, etc.
- the above-mentioned near-field communication device may be a Bluetooth headset, which may include all or part of the modules in the above-mentioned near-field communication device, and may also include a transceiver, a horn/speaker, a microphone, a battery, etc. .
- the transceiver is used to send and receive data; the speaker/speaker is used to play voice signals; the microphone is used to record voice signals and convert voice signals into electrical signals; and the battery is used to power each module in the Bluetooth headset.
- FIG. 8 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the short-range communication equipment to which the solution of the present application is applied.
- a range communication device may include more or fewer components than shown in the figures, or some combination of components, or have a different arrangement of components.
- An embodiment of the present application also provides a computer-readable storage medium.
- One or more non-volatile computer-readable storage media containing computer-executable instructions.
- the processors When the computer-executable instructions are executed by one or more processors, the processors perform the above-mentioned short-range communication device connection method. A step of.
- Embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to execute the above short-range communication device connection method.
- data involved in this application including but not limited to data used for analysis, stored data, displayed data, etc.
- data used for analysis, stored data, displayed data, etc. are all data authorized by the user or fully authorized by all parties, and the relevant data are Collection, use and processing need to comply with relevant laws, regulations and standards of relevant countries and regions.
- the computer program can be stored in a non-volatile computer-readable storage.
- the computer program when executed, may include the processes of the above method embodiments.
- Any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory.
- Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory (MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc.
- Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, etc.
- RAM Random Access Memory
- RAM random access memory
- RAM Random Access Memory
- the databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database.
- Non-relational databases may include blockchain-based distributed databases, etc., but are not limited thereto.
- the processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to this.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present application relates to a near field communication device connection method and apparatus, a device, a storage medium, and a product. The method comprises: monitoring whether a first near field communication device triggers a near field communication connection or not; and if the first near field communication device triggers the near field communication connection, the first near field communication device sending multiple groups of communication broadcast signals to the surrounding, wherein each group of communication broadcast signals comprises directional broadcast signals and non-directional broadcast signals, the transmit power of the directional broadcast signals in the first M groups of communication broadcast signals is greater than the transmit power of the non-directional broadcast signals, the directional broadcast signals are used for connecting paired devices, and the non-directional broadcast signals are used for connecting unpaired devices, and wherein M is a positive integer greater than or equal to one. By using the present method, paired near field communication devices can be quickly connected, and harassment to surrounding devices can be reduced.
Description
本申请引用于2022年03月22日递交的名称为“近距离通信设备连接方法、装置、设备、存储介质和产品”,申请号为2022102807077的中国专利申请,其通过引用被全部并入本申请。This application cites the Chinese patent application titled "Near Field Communication Equipment Connection Method, Device, Equipment, Storage Medium and Products" and application number 2022102807077, submitted on March 22, 2022, which is fully incorporated into this application by reference. .
本申请涉及无线通信技术领域,特别是涉及一种近距离通信设备连接方法、装置、设备、存储介质和产品。The present application relates to the field of wireless communication technology, and in particular to a method, device, equipment, storage medium and product for connecting short-range communication equipment.
随着蓝牙技术的不断发展,应用蓝牙技术的蓝牙设备也在不断增多和普及,而用户使用蓝牙设备的场景和时长也越来越多,因此对于蓝牙设备间的发现、配对以及连接的场景也随之增加。以蓝牙设备是蓝牙耳机为例,为了能够快速进行蓝牙耳机与手机进行配对连接,或者提醒用户连接成功,各厂商均设计了自己的蓝牙连接弹窗机制。With the continuous development of Bluetooth technology, the number of Bluetooth devices using Bluetooth technology is also increasing and becoming more popular, and users use Bluetooth devices in more and more scenarios. Therefore, the scenarios for discovery, pairing and connection between Bluetooth devices are also increasing. Increase accordingly. Taking the Bluetooth device as a Bluetooth headset as an example, in order to quickly pair the Bluetooth headset with the mobile phone, or to remind the user that the connection is successful, each manufacturer has designed its own Bluetooth connection pop-up window mechanism.
相关技术中,以蓝牙耳机为例,一般是在用户打开蓝牙耳机的盒盖时,蓝牙耳机便开始向周围发送广播信号,该广播信号中会包括蓝牙耳机的MAC地址,蓝牙耳机周围的蓝牙设备在收到该广播信号之后,就可以与蓝牙耳机进行配对连接。其中,蓝牙耳机发送的广播信号可以包括定向广播信号或非定向广播信号,该定向广播信号用于使蓝牙耳机与已配对设备进行连接,非定向广播信号用于使蓝牙耳机与未配对过的新设备进行连接。In related technologies, taking Bluetooth headsets as an example, generally when the user opens the cover of the Bluetooth headset, the Bluetooth headset begins to send broadcast signals to the surroundings. The broadcast signal will include the MAC address of the Bluetooth headset, and the Bluetooth devices around the Bluetooth headset. After receiving the broadcast signal, it can be paired with the Bluetooth headset. Among them, the broadcast signal sent by the Bluetooth headset may include a directional broadcast signal or a non-directional broadcast signal. The directional broadcast signal is used to connect the Bluetooth headset to a paired device, and the non-directional broadcast signal is used to connect the Bluetooth headset to a new unpaired device. device to connect.
然而,上述技术中蓝牙耳机在向周围发送广播信号时,由于处于蓝牙耳机周围的所有设备均会收到蓝牙连接的弹窗提醒,而这些设备中的一些设备并不是蓝牙耳机要进行配对连接的目标设备,从而会对这些设备带来严重的骚扰。However, when the Bluetooth headset in the above technology sends broadcast signals to the surroundings, all devices around the Bluetooth headset will receive a pop-up reminder of the Bluetooth connection, and some of these devices are not the ones that the Bluetooth headset needs to be paired and connected. target devices, thereby causing serious harassment to these devices.
发明内容Contents of the invention
本申请实施例提供了一种近距离通信设备连接方法、装置、设备、存储介质和产品,能够在快速回连已配对设备的情况下,降低对周围设备的骚扰。Embodiments of the present application provide a method, device, equipment, storage medium and product for connecting a short-range communication device, which can reduce harassment to surrounding devices while quickly reconnecting to a paired device.
第一方面,提供了一种近距离通信设备连接方法,包括:In the first aspect, a short-range communication device connection method is provided, including:
监测第一近距离通信设备是否触发近距离通信连接;Monitoring whether the first near field communication device triggers the near field communication connection;
若上述第一近距离通信设备触发近距离通信连接,则第一近距离通信设备向周围发送多组通信广播信号;If the first near-field communication device triggers the near-field communication connection, the first near-field communication device sends multiple sets of communication broadcast signals to the surroundings;
其中,每组通信广播信号中均包括定向广播信号和非定向广播信号,且前M组通信广播信号中的定向广播信号的发射功率大于非定向广播信号的发射功率,上述定向广播信号用于连接已配对设备,上述非定向广播信号用于配对并连接未配对设备,其中M为大于等于一的正整数。Among them, each group of communication broadcast signals includes directional broadcast signals and non-directional broadcast signals, and the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals is greater than the transmission power of the non-directional broadcast signals. The above-mentioned directional broadcast signals are used to connect Paired devices, the above non-directional broadcast signal is used to pair and connect unpaired devices, where M is a positive integer greater than or equal to one.
第二方面,提供了一种近距离通信设备连接装置,包括:In a second aspect, a short-range communication equipment connection device is provided, including:
监测模块,用于监测第一近距离通信设备是否触发近距离通信连接;A monitoring module used to monitor whether the first near-field communication device triggers a near-field communication connection;
发送模块,用于若上述第一近距离通信设备触发近距离通信连接,则向周围发送多组通信广播信号;其中,每组通信广播信号中均包括定向广播信号和非定向广播信号,且前M组通信广播信号中的定向广播信号的发射功率大于非定向广播信号的发射功率,上述定向广播信号用于连接已配对设备,上述非定向广播信号用于配对并连接未配对设备,其中M为大于等于一的正整数。A sending module, configured to send multiple sets of communication broadcast signals to the surroundings if the first short-range communication device triggers a short-range communication connection; wherein each set of communication broadcast signals includes a directional broadcast signal and a non-directional broadcast signal, and the previous The transmission power of the directional broadcast signal in the M group of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal. The above-mentioned directional broadcast signal is used to connect paired devices, and the above-mentioned non-directional broadcast signal is used to pair and connect unpaired devices, where M is A positive integer greater than or equal to one.
第三方面,提供了一种近距离通信设备,包括存储器及处理器,该存储器中储存有计算机程序,计算机程序被处理器执行时,使得处理器执行上述第一方面的近距离通信设备连接方法的步骤。In a third aspect, a short-range communication device is provided, including a memory and a processor. A computer program is stored in the memory. When the computer program is executed by the processor, it causes the processor to execute the short-range communication device connection method of the first aspect. A step of.
第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述第一方面的方法的步骤。A fourth aspect provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method of the first aspect are implemented.
第五方面,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述第一方面的方法的步骤。A fifth aspect provides a computer program product, including a computer program that implements the steps of the method of the first aspect when executed by a processor.
上述近距离通信设备连接方法、装置、近距离通信设备、计算机可读存储介质和计算机程序产品,通过监测第一近距离通信设备是否触发近距离通信连接,并在第一近距离通信设备触发近距离通信连接时,向周围发送多组通信广播信号;其中,每组通信广播信号均包括定向广播信号和非定向广播信号,且前M组通信广播信号中的定向广播信号的发射功率大于非定向广播信号的发射功率。在该方法中,第一近距离通信设备在前M组通信广播信号中以较大的发射功率发射定向广播信号而以较小的发射功率发射非定向广播信号,由于定向广播信号用于连接已配对设备,非定向广播信号用于配对并连接未配对设备,同时,在实际应用的绝大部分场景中,近距离通信设备都是与已配对设备连接,因此,以较大 的功率发射定向广播信号能够使第一近距离通信设备快速与已配对设备连接,这样,可以减少通信广播信号的发射时长,从而可以在时间维度上降低对其他设备的骚扰,另一方面,为了保证连接效率,兼顾近距离通信设备与未配对设备配对并连接的场景,在该方法中,第一近距离通信设备还可以发射非定向广播信号,但由于非定向广播信号的发射功率较小,因此,只有较小范围内的设备能够接收到该非定向广播信号,这样,就可以在空间维度上降低对其他设备的骚扰。The above-mentioned near-field communication device connection method, device, near-field communication device, computer-readable storage medium and computer program product monitor whether the first near-field communication device triggers the near-field communication connection, and when the first near-field communication device triggers the near-field communication connection, When the distance communication is connected, multiple groups of communication broadcast signals are sent to the surroundings; each group of communication broadcast signals includes directional broadcast signals and non-directional broadcast signals, and the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals is greater than that of the non-directional broadcast signals. The transmit power of the broadcast signal. In this method, the first short-range communication device transmits the directional broadcast signal with a larger transmission power and the non-directional broadcast signal with a smaller transmission power in the first M groups of communication broadcast signals, because the directional broadcast signal is used to connect the already connected For paired devices, non-directional broadcast signals are used to pair and connect unpaired devices. At the same time, in most practical application scenarios, near-field communication devices are connected to paired devices. Therefore, directional broadcasts are transmitted with greater power. The signal enables the first short-range communication device to quickly connect to the paired device. In this way, the transmission duration of the communication broadcast signal can be reduced, thereby reducing the harassment to other devices in the time dimension. On the other hand, in order to ensure the connection efficiency, both In the scenario where the near-field communication device is paired and connected with an unpaired device, in this method, the first near-field communication device can also transmit a non-directional broadcast signal, but since the transmission power of the non-directional broadcast signal is smaller, therefore, only a smaller Devices within range can receive the non-directional broadcast signal, thus reducing harassment to other devices in the spatial dimension.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1为一个实施例中近距离通信设备连接方法的应用环境图;Figure 1 is an application environment diagram of a near field communication device connection method in an embodiment;
图2为一个实施例中近距离通信设备连接方法的流程图;Figure 2 is a flow chart of a method for connecting a near field communication device in an embodiment;
图3为另一个实施例中近距离通信设备连接方法的流程图;Figure 3 is a flow chart of a method for connecting a near field communication device in another embodiment;
图4为另一个实施例中间歇性发送定向广播信号和非定向广播信号的示例图;Figure 4 is an example diagram of intermittently transmitting directional broadcast signals and non-directional broadcast signals in another embodiment;
图5为另一个实施例中近距离通信设备连接方法的流程图;Figure 5 is a flow chart of a short-range communication device connection method in another embodiment;
图6为另一个实施例中近距离通信设备连接方法的具体流程图;Figure 6 is a specific flow chart of a short-range communication device connection method in another embodiment;
图7为一个实施例中近距离通信设备连接装置的结构框图;Figure 7 is a structural block diagram of a near field communication device connection device in one embodiment;
图8为一个实施例中近距离通信设备的结构框图。Figure 8 is a structural block diagram of a short-range communication device in one embodiment.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
目前,以蓝牙耳机为例,为了能够快速进行蓝牙耳机与手机的配对连接,以及提醒用户连接成功,各厂商均设计了自己的蓝牙连接弹窗机制。相关技术中,一般是在用户打开蓝牙耳机的盒盖时,蓝牙耳机便开始向周围发送广播信号,该广播信号中会包括蓝牙耳机的MAC地址,蓝牙耳机周围的蓝牙设备在收到该广播信号之后,就可以与蓝牙耳机进行配对连接。然而,在蓝牙耳机向周围发送广播信号时,由于处于蓝牙耳机周围的所有设备均会收到蓝牙连接的弹窗提醒,而这些设备中的一些设备并不是蓝牙耳机要进行配对连接的目标设备,这样,就会对这些设备带来严重的骚扰。基于此,本申请以下的实施例提供一种近距离通信设备连接方法、装置、近距离通信设备、计算机可读存储介质和计算机程序产品,可以解决上述技术问题。At present, taking Bluetooth headsets as an example, in order to quickly pair the Bluetooth headset with the mobile phone and remind the user that the connection is successful, each manufacturer has designed its own Bluetooth connection pop-up window mechanism. In related technology, generally when the user opens the cover of the Bluetooth headset, the Bluetooth headset starts to send broadcast signals to the surroundings. The broadcast signal will include the MAC address of the Bluetooth headset. The Bluetooth devices around the Bluetooth headset receive the broadcast signal. After that, you can pair it with the Bluetooth headset. However, when the Bluetooth headset sends broadcast signals to the surroundings, all devices around the Bluetooth headset will receive a pop-up reminder of the Bluetooth connection, and some of these devices are not the target devices for the Bluetooth headset to be paired and connected. This will cause serious harassment to these devices. Based on this, the following embodiments of the present application provide a near field communication device connection method, device, near field communication device, computer readable storage medium and computer program product, which can solve the above technical problems.
本申请实施例提供的近距离通信设备连接方法,可以应用于如图1所示的应用环境中。其中,第一近距离通信设备102可以与其他近距离通信设备104进行近距离通信连接。其中,近距离通信连接可以为蓝牙连接,NFC连接等,本申请实施例不对近距离连接的方式进行限定。The short-range communication device connection method provided by the embodiment of the present application can be applied in the application environment as shown in Figure 1. Among them, the first near-field communication device 102 can perform a near-field communication connection with other near-field communication devices 104. The short-range communication connection may be a Bluetooth connection, an NFC connection, etc., and the embodiment of the present application does not limit the short-range connection method.
第一近距离通信设备102可以是耳机、手表、手环、音箱等。其他近距离通信设备104可以是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调、智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。另外,近距离通信设备102以及其他近距离通信设备104均可以包括天线、喇叭、麦克风、近距离通信主控电路和电池等,当第一近距离通信设备102与其他近距离通信设备104进行配对或者回连时,第一近距离通信设备102与其他近距离通信设备104之间通过近距离通信信号进行近距离通信连接。需要说明的是,这里的其他近距离通信设备可以包括与第一近距离通信设备102进行过历史配对的近距离通信设备(为了便于对下述实施例进行说明,这里将历史配对过的近距离通信设备均记为第二近距离通信设备),当然也可以包括与第一近距离通信设备102未进行过历史配对的新设备。The first short-range communication device 102 may be an earphone, a watch, a bracelet, a speaker, etc. Other near-field communication devices 104 can be various personal computers, laptops, smartphones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. In addition, the near-field communication device 102 and other near-field communication devices 104 may include antennas, speakers, microphones, near-field communication main control circuits, batteries, etc., when the first near-field communication device 102 is paired with other near-field communication devices 104 Or when connecting back, the first near-field communication device 102 and other near-field communication devices 104 perform a near-field communication connection through a near-field communication signal. It should be noted that other near-field communication devices here may include short-range communication devices that have been historically paired with the first near-field communication device 102 (for convenience of explanation of the following embodiments, here the short-range communication devices that have been historically paired are The communication devices are all recorded as the second near-field communication device), and of course, may also include new devices that have not been historically paired with the first near-field communication device 102 .
在一个实施例中,如图2所示,提供了一种近距离通信设备连接方法,以该方法应用于图1中的第一近距离通信设备为例进行说明,可以包括以下步骤:In one embodiment, as shown in Figure 2, a method for connecting a near field communication device is provided. The method is applied to the first near field communication device in Figure 1 as an example. The method may include the following steps:
S202,监测第一近距离通信设备是否触发近距离通信连接。S202: Monitor whether the first near field communication device triggers a near field communication connection.
在本步骤中,第一近距离通信设备可以是上述图1中的第一近距离通信设备102,其可以是耳机、手表、手环、音箱等。In this step, the first near-field communication device may be the first near-field communication device 102 in FIG. 1, which may be an earphone, a watch, a bracelet, a speaker, etc.
具体的,第一近距离通信设备可以不断监测自身是否触发近距离通信连接流程,例如可以是监测是否打开盒盖、是否触发设备上的开关机按钮、是否输入开关机信息或是否输入连接信息等等,通过监测即可获得监测结果。Specifically, the first near field communication device can continuously monitor whether it triggers the near field communication connection process, for example, it can monitor whether the box cover is opened, whether the power on button on the device is triggered, whether the power on and off information is input, or whether the connection information is input, etc. etc., and the monitoring results can be obtained through monitoring.
以该第一近距离通信设备是蓝牙耳机为例,通常蓝牙耳机在未使用时,均会放入耳机盒中,那么当用户需要使用蓝牙耳机并打开蓝牙耳机盒盖时,就会触发蓝牙耳机的近距离通信连接流程,此时蓝牙耳 机就可以监测到触发了近距离通信连接。第一近距离通信设备为其他设备时的监测连接方式也可以和蓝牙耳机相类似,这里仅做示例。Taking the first near-field communication device as a Bluetooth headset as an example, usually the Bluetooth headset will be put into the headset box when not in use. Then when the user needs to use the Bluetooth headset and opens the Bluetooth headset box cover, the Bluetooth headset will be triggered. At this time, the Bluetooth headset can detect that the near field communication connection is triggered. When the first short-range communication device is another device, the monitoring connection method can also be similar to that of a Bluetooth headset. This is only an example.
S204,若上述第一近距离通信设备触发近距离通信连接,则第一近距离通信设备向周围发送多组通信广播信号。S204: If the first near-field communication device triggers a near-field communication connection, the first near-field communication device sends multiple sets of communication broadcast signals to the surroundings.
在本步骤中,每组通信广播信号中均包括定向广播信号和非定向广播信号,且前M组通信广播信号中的定向广播信号的发射功率大于非定向广播信号的发射功率,上述定向广播信号用于连接已配对设备,上述非定向广播信号用于配对并连接未配对设备,其中M为大于等于一的正整数。In this step, each group of communication broadcast signals includes directional broadcast signals and non-directional broadcast signals, and the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals is greater than the transmission power of the non-directional broadcast signals. The above-mentioned directional broadcast signals It is used to connect paired devices, and the above-mentioned non-directional broadcast signal is used to pair and connect unpaired devices, where M is a positive integer greater than or equal to one.
具体的,定向广播信号中包括与第一近距离通信设备预先配对过的近距离通信设备的MAC(Media Access Control,媒体访问控制)地址,每个定向广播信号中包括一个已配对过的近距离通信设备的MAC地址,每组通信广播信号中均包括一个定向广播信号,因此这里多组通信广播信号对应有多个定向广播信号,每个定向广播信号中所包括的已配对近距离通信设备的MAC地址可以是同一个近距离通信设备的MAC地址,也可以不同近距离通信设备的MAC地址,本实施例中不做具体限定。非定向广播信号中包括该第一近距离通信设备的MAC地址,每组通信广播信号中均包括一个非定向广播信号,因此这里多组通信广播信号对应有多个/多组非定向广播信号,每个非定向广播信号中均包括该第一近距离通信设备的MAC地址。Specifically, the directional broadcast signal includes the MAC (Media Access Control) address of the near-field communication device that has been paired with the first near-field communication device in advance, and each directional broadcast signal includes a paired short-range communication device. The MAC address of the communication device. Each group of communication broadcast signals includes a directional broadcast signal. Therefore, the multiple groups of communication broadcast signals here correspond to multiple directional broadcast signals. Each directional broadcast signal includes the number of the paired short-range communication device. The MAC address may be the MAC address of the same near-field communication device or the MAC address of different near-field communication devices. There is no specific limitation in this embodiment. The non-directional broadcast signal includes the MAC address of the first short-range communication device. Each group of communication broadcast signals includes a non-directional broadcast signal. Therefore, the multiple groups of communication broadcast signals here correspond to multiple/multiple groups of non-directional broadcast signals. Each non-directional broadcast signal includes the MAC address of the first short-range communication device.
另外,第一近距离通信设备在监测到触发近距离通信连接流程时,可以向周围发送多组包括定向广播信号和非定向广播信号的通信广播信号。具体在发送每组通信广播信号时,可以是先发送定向广播信号,再发送非定向广播信号,当然也可以是先发送非定向广播信号,再发送定向广播信号。本实施例中优选先发送定向广播信号,再发送非定向广播信号,这样可以便于和第一近距离通信设备配对过的设备更快速地与第一近距离通信设备进行连接。In addition, when the first near field communication device detects that the near field communication connection process is triggered, it can send multiple sets of communication broadcast signals including directional broadcast signals and non-directional broadcast signals to the surroundings. Specifically, when sending each group of communication broadcast signals, the directional broadcast signal can be sent first, and then the non-directional broadcast signal can be sent. Of course, the non-directional broadcast signal can also be sent first, and then the directional broadcast signal can be sent. In this embodiment, it is preferred to send the directional broadcast signal first, and then send the non-directional broadcast signal. This can facilitate the device that has been paired with the first near-field communication device to connect to the first near-field communication device more quickly.
进一步地,第一近距离通信设备在向周围发送定向广播信号和非定向广播信号时,对于定向广播信号的发射功率不做具体限定,例如可以是以任意发射功率进行发射。例如这里前M组通信广播信号中的定向广播信号的发射功率均可以为一个固定的/相同的发射功率,假设可以是第一近距离通信设备在发射信号时的最大发射功率;当然也可以是各组通信广播信号中的定向广播信号的发射功率均不同,只要可以保证每组通信广播信号中的定向广播信号的发射功率大于非定向广播信号的发射功率即可,例如可以是逐渐增大各组定向广播信号的功率。Furthermore, when the first short-range communication device transmits the directional broadcast signal and the non-directional broadcast signal to the surroundings, the transmission power of the directional broadcast signal is not specifically limited. For example, it may transmit with any transmission power. For example, the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals can be a fixed/same transmission power. It is assumed that it can be the maximum transmission power of the first short-range communication device when transmitting signals; of course, it can also be The transmission power of the directional broadcast signals in each group of communication broadcast signals is different, as long as it can be ensured that the transmission power of the directional broadcast signals in each group of communication broadcast signals is greater than the transmission power of the non-directional broadcast signals, for example, it can be gradually increased. The power of the group directional broadcast signal.
同样的,对于非定向广播信号的发射功率,这里前M组通信广播信号中的非定向广播信号的发射功率可以是一个固定的/相同的发射功率,或者也可以是各组通信广播信号中的非定向广播信号的发射功率均不同,只要可以保证每组通信广播信号中的定向广播信号的发射功率大于非定向广播信号的发射功率即可。Similarly, for the transmission power of non-directional broadcast signals, the transmission power of the non-directional broadcast signals in the first M groups of communication broadcast signals can be a fixed/same transmission power, or it can also be the transmission power of each group of communication broadcast signals. The transmission power of the non-directional broadcast signals is different, as long as it can be ensured that the transmission power of the directional broadcast signal in each group of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal.
另外,可选的,这里从第M+1组开始定向广播信号的发射功率等于非定向广播信号的发射功率。也就是说,从第M+1组开始,可以是将非定向广播信号的发射功率增大到和定向广播信号的发射功率相等,也可以是将定向广播信号的发射功率和非定向广播信号的发射功率均增加到一个相等的发射功率,当然也可以是其他情况。In addition, optionally, the transmission power of the directional broadcast signal starting from the M+1th group is equal to the transmission power of the non-directional broadcast signal. That is to say, starting from the M+1th group, the transmission power of the non-directional broadcast signal can be increased to be equal to the transmission power of the directional broadcast signal, or the transmission power of the directional broadcast signal can be increased to that of the non-directional broadcast signal. The transmit power is increased to an equal transmit power, and of course it can be other situations.
需要说明的是,信号不同的发射功率对应的广播距离不同,信号的发射功率越大,对应的广播距离越远,相应范围内存在的设备就越多,那么对设备的骚扰就越严重。本实施例中采用定向广播信号的发射功率大于非定向广播信号的发射功率,可以提升第一近距离通信设备与已配对设备的回连效率;另外,通常在第一近距离通信设备连接新设备时,一般会将新设备和第一近距离通信设备靠近的比较近,因此采用较低的非定向广播信号的发射功率,新设备就可以收到信号,而周围其他用户或设备距离较远无法收到广播信号,从而保证了新设备和第一近距离通信设备之间的快速弹窗和连接,又保证了对其他用户或设备的低骚扰。It should be noted that different transmission powers of signals correspond to different broadcast distances. The greater the transmission power of the signal, the farther the corresponding broadcast distance, and the more devices exist within the corresponding range, the more serious the harassment to the devices will be. In this embodiment, the transmission power of the directional broadcast signal is greater than the transmission power of the non-directional broadcast signal, which can improve the reconnection efficiency of the first near-field communication device and the paired device; in addition, usually the first near-field communication device connects the new device Usually, the new device and the first near-field communication device will be relatively close. Therefore, using a lower transmit power of the non-directional broadcast signal, the new device can receive the signal, while other users or devices around it are far away and cannot The broadcast signal is received, thereby ensuring fast pop-up windows and connections between the new device and the first near-field communication device, and ensuring low harassment to other users or devices.
另外,第一近距离通信设备在发送广播信号的同时,也可以不断检测是否已经与周围设备连接成功,在检测到上述第一近距离通信设备与周围设备连接成功时,可以停止向周围发送所有广播信号,直到下次重新触发连接流程或发送通信广播信号时,例如以第一近距离通信设备是蓝牙耳机为例,可以是直至下次重新打开蓝牙耳机盒盖等,这样可以节省第一近距离通信设备的功耗。In addition, while sending the broadcast signal, the first near-field communication device can also continuously detect whether it has successfully connected with the surrounding equipment. When it detects that the first near-field communication device has successfully connected with the surrounding equipment, it can stop sending all signals to the surroundings. Broadcast signal until the next time the connection process is re-triggered or the communication broadcast signal is sent. For example, if the first near-field communication device is a Bluetooth headset, it can be until the next time the Bluetooth headset box cover is reopened, etc. This can save the first near-field communication device. Power consumption of distance communication equipment.
上述近距离通信设备连接方法中,通过监测第一近距离通信设备是否触发近距离通信连接,并在第一近距离通信设备触发近距离通信连接时,向周围发送多组通信广播信号;其中,每组通信广播信号均包括定向广播信号和非定向广播信号,且前M组通信广播信号中的定向广播信号的发射功率大于非定向广播信号的发射功率。在该方法中,第一近距离通信设备在前M组通信广播信号中以较大的发射功率发射定向广播信号而以较小的发射功率发射非定向广播信号,由于定向广播信号用于连接已配对设备,非定向广播信号用于配对并连接未配对设备,同时,在实际应用的绝大部分场景中,近距离通信设备都是与已配对设备连接,因此,以较大的功率发射定向广播信号能够使第一近距离通信设备快速与已 配对设备连接,这样,可以减少通信广播信号的发射时长,从而可以在时间维度上降低对其他设备的骚扰,另一方面,为了保证连接效率,兼顾近距离通信设备与未配对设备配对并连接的场景,在该方法中,第一近距离通信设备还可以发射非定向广播信号,但由于非定向广播信号的发射功率较小,因此,只有较小范围内的设备能够接收到该非定向广播信号,这样,就可以在空间维度上降低对其他设备的骚扰。In the above-mentioned near-field communication device connection method, by monitoring whether the first near-field communication device triggers the near-field communication connection, and when the first near-field communication device triggers the near-field communication connection, multiple sets of communication broadcast signals are sent to the surroundings; wherein, Each group of communication broadcast signals includes directional broadcast signals and non-directional broadcast signals, and the transmission power of the directional broadcast signals in the first M groups of communication broadcast signals is greater than the transmission power of the non-directional broadcast signals. In this method, the first short-range communication device transmits the directional broadcast signal with a larger transmission power and the non-directional broadcast signal with a smaller transmission power in the first M groups of communication broadcast signals, because the directional broadcast signal is used to connect the already connected For paired devices, non-directional broadcast signals are used to pair and connect unpaired devices. At the same time, in most practical application scenarios, near-field communication devices are connected to paired devices. Therefore, directional broadcasts are transmitted with greater power. The signal enables the first short-range communication device to quickly connect to the paired device. In this way, the transmission duration of the communication broadcast signal can be reduced, thereby reducing the harassment to other devices in the time dimension. On the other hand, in order to ensure the connection efficiency, both In the scenario where the near-field communication device is paired and connected with an unpaired device, in this method, the first near-field communication device can also transmit a non-directional broadcast signal, but since the transmission power of the non-directional broadcast signal is smaller, therefore, only a smaller Devices within range can receive the non-directional broadcast signal, thus reducing harassment to other devices in the spatial dimension.
上述实施例中提到了各组非定向广播功率的发射功率可以是一个相同的值,也可以是不同的值,以下实施例就对各组非定向广播功率的发射功率是不同的值的情况进行说明。In the above embodiments, it is mentioned that the transmission power of each group of non-directional broadcast power can be the same value or different values. The following embodiment will be carried out in the case where the transmission power of each group of non-directional broadcast power is different values. illustrate.
在另一个实施例中,每相邻两组通信广播信号中,后一组通信广播信号中非定向广播信号的发射功率大于前一组通信广播信号中非定向广播信号的发射功率。In another embodiment, in each adjacent two groups of communication broadcast signals, the transmission power of the non-directional broadcast signal in the latter group of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal in the previous group of communication broadcast signals.
在本实施例中,对于非定向广播信号的发射功率,这里是采用逐步递增的发射功率进行发送,直至增加到第一近距离通信设备在发射信号时的最大发射功率为止,便不再增加非定向广播信号的发射功率。例如有三个时刻,分别为t1、t2、t3,其先后顺序为t1<t2<t3,每个时刻发送一组通信广播信号,那么在t3时刻发送的非定向广播信号的发射功率大于t2时刻发送的非定向广播信号的发射功率,而t2时刻发送的非定向广播信号的发射功率又大于t1时刻发送的非定向广播信号的发射功率。In this embodiment, as for the transmission power of the non-directional broadcast signal, the transmission power is gradually increased until it is increased to the maximum transmission power of the first short-range communication device when transmitting the signal, and the non-directional broadcast signal is no longer increased. The transmit power of directional broadcast signals. For example, there are three moments, namely t1, t2, and t3, and their sequence is t1<t2<t3. A set of communication broadcast signals are sent at each moment. Then, the transmission power of the non-directional broadcast signal sent at t3 is greater than that sent at t2. The transmission power of the non-directional broadcast signal sent at time t2 is greater than the transmission power of the non-directional broadcast signal sent at time t1.
另外,这里对于各组非定向广播信号的发射功率增加的步长,可以是采用同一个步长进行逐步增加,也可以是采用不同的步长进行逐步增加。这里在采用不同的步长进行逐步增加各组非定向广播信号的发射功率时,例如可以是按照从慢到快的规律去增加,即各组非定向广播信号的发射功率增加的步长可以逐渐增大,这样比较符合信号衰减规律,一般信号发射距离越远,衰减就越快,这样做可以提高信号发射的准确性,提升周围设备与第一近距离通信设备连接的成功率。In addition, here, the step size for increasing the transmission power of each group of non-directional broadcast signals may be the same step size for gradual increase, or different step sizes may be used for gradual increase. Here, when using different step sizes to gradually increase the transmission power of each group of non-directional broadcast signals, for example, it can be increased according to the rule from slow to fast, that is, the step size of the increase in the transmission power of each group of non-directional broadcast signals can be gradually Increase, which is more in line with the law of signal attenuation. Generally, the farther the signal transmission distance, the faster the attenuation. This can improve the accuracy of signal transmission and improve the success rate of connecting the surrounding equipment to the first short-range communication equipment.
本实施例中,通过逐步增加非定向广播信号的功率,这样可以逐步增加广播距离,先从短广播距离开始,在短广播距离内不存在连接的设备时,逐步增加广播距离,以使周围的设备可以连接成功,从而可以在保证周围设备快速回连的同时,降低对第一近距离通信设备周围的其他设备的骚扰。另外,通常在第一近距离通信设备连接新设备时,一般会将新设备和第一近距离通信设备靠近的比较近,因此采用较低的发射功率新设备就可以收到信号,而周围其他用户或设备距离较远无法收到广播信号,从而保证了新设备和第一近距离通信设备之间的快速弹窗和连接,又保证了对其他用户或设备的低骚扰。进一步地,由于可以逐渐增加非定向广播信号的发射功率,即可以通过从小到大的调整非定向广播信号的发射功率,这样可以逐步扩大非定向广播信号的广播距离,使得与第一近距离通信设备距离较远的新设备也可以实现与第一近距离通信设备的快速连接,提升新设备与第一近距离通信设备之间连接的成功率。In this embodiment, by gradually increasing the power of the non-directional broadcast signal, the broadcast distance can be gradually increased. Starting from a short broadcast distance, when there is no connected device within the short broadcast distance, the broadcast distance is gradually increased so that the surrounding The device can be connected successfully, thereby ensuring quick reconnection of surrounding devices while reducing harassment to other devices around the first short-range communication device. In addition, usually when the first near-field communication device connects to a new device, the new device is usually brought closer to the first near-field communication device. Therefore, the new device can receive the signal using lower transmit power, while other devices around it Users or devices that are too far away cannot receive broadcast signals, thereby ensuring fast pop-ups and connections between new devices and the first near-field communication device, and ensuring low harassment to other users or devices. Furthermore, since the transmission power of the non-directional broadcast signal can be gradually increased, that is, the transmission power of the non-directional broadcast signal can be adjusted from small to large, so that the broadcast distance of the non-directional broadcast signal can be gradually expanded, so that the first short-distance communication can be achieved New devices that are far away from each other can also quickly connect to the first near-field communication device, thereby improving the success rate of connection between the new device and the first near-field communication device.
上述实施例中提到了定向广播信号中包括已配对过的设备的MAC地址,那么在第一近距离通信设备向周围发送多组通信广播信号时,还可以预先判断其中是否存储有已配对的设备,以下就对该过程进行详细说明。In the above embodiment, it is mentioned that the directional broadcast signal includes the MAC address of the paired device. Then when the first short-range communication device sends multiple sets of communication broadcast signals to the surroundings, it can also be judged in advance whether there are paired devices stored therein. , the process will be described in detail below.
在另一个实施例中,提供了另一种近距离通信设备连接方法,在上述实施例的基础上,上述S204可以包括以下步骤:In another embodiment, another near field communication device connection method is provided. Based on the above embodiment, the above S204 may include the following steps:
步骤A,若第一近距离通信设备中存储有与第一近距离通信设备历史配对的第二近距离通信设备,则第一近距离通信设备向周围发送多组通信广播信号,其中,各组通信广播信号中的定向广播信号与第二近距离通信设备相对应。Step A, if the first near-field communication device stores a second near-field communication device that is historically paired with the first near-field communication device, the first near-field communication device sends multiple groups of communication broadcast signals to the surroundings, where each group The directional broadcast signal among the communication broadcast signals corresponds to the second short-range communication device.
在本步骤中,可以预先判断第一近距离通信设备中是否存储有第一近距离通信设备进行过历史配对的第二近距离通信设备,一般当第一近距离通信设备配对过第二近距离通信设备时,该第二近距离通信设备的MAC地址会保存在第一近距离通信设备的存储器中。这里一般第一近距离通信设备的存储器中可以保存最新的N台设备(N≥1),保存的设备均可以记为第二近距离通信设备,N的大小可以根据实际情况设定,例如可以是5、6、10等等。In this step, it can be determined in advance whether the first near-field communication device stores a second near-field communication device that has been paired with the first near-field communication device in history. Generally, when the first near-field communication device has been paired with the second near-field communication device, When the second short-range communication device is connected to the first short-range communication device, the MAC address of the second short-range communication device will be stored in the memory of the first short-range communication device. Here, generally, the latest N devices (N≥1) can be stored in the memory of the first near-field communication device, and all the saved devices can be recorded as second near-field communication devices. The size of N can be set according to the actual situation, for example It's 5, 6, 10, etc.
由于第一近距离通信设备的存储器中会保存历史配对过的第二近距离通信设备的MAC地址,因此可以通过判断该第一近距离通信设备的存储器中是否存在第二近距离通信设备的MAC地址,在第一近距离通信设备的存储器中存在第二近距离通信设备的MAC地址时,表征第一近距离通信设备之前和其他近距离通信设备配对过,那么可以优先配对该设备,因此可以向周围发送多组包括定向广播信号以及非定向广播信号的通信广播信号,以使第一近距离通信设备可以快速和周围已配对过的设备进行快速回连。Since the memory of the first near-field communication device will store the MAC address of the second near-field communication device that has been paired historically, it can be determined whether there is a MAC address of the second near-field communication device in the memory of the first near-field communication device. Address, when the MAC address of the second near-field communication device exists in the memory of the first near-field communication device, it means that the first near-field communication device has been paired with other near-field communication devices before, then the device can be paired first, so it can Multiple sets of communication broadcast signals including directional broadcast signals and non-directional broadcast signals are sent to the surroundings, so that the first short-range communication device can quickly connect back to surrounding paired devices.
进一步地,第一近距离通信设备在向周围发送多组通信广播信号时,其中每组通信广播信号中的定向广播信号与各第二近距离通信设备相对应,即各定向广播信号中包括的MAC地址为第二近距离通信设备的MAC地址。这里可以是每个定向广播信号中包括不同的第二近距离通信设备的MAC地址,也可以是每m个相邻的定向广播信号中包括一个相同的第二近距离通信设备的MAC地址,这里的m可以是2、3、4等等。Further, when the first short-range communication device sends multiple sets of communication broadcast signals to the surroundings, the directional broadcast signals in each set of communication broadcast signals correspond to each second short-range communication device, that is, the directional broadcast signals included in each set of directional broadcast signals The MAC address is the MAC address of the second near field communication device. Here, each directional broadcast signal may include a different MAC address of the second near-field communication device, or each m adjacent directional broadcast signals may include a same MAC address of the second near-field communication device, where m can be 2, 3, 4, etc.
另外,可选的,若第一近距离通信设备中未存储有第二近距离通信设备,在该种情况下,那么第一 近距离通信设备可以向周围发送多组非定向广播信号。也就是说,在第一近距离通信设备中没有保存已配对过的第二近距离通信设备时,则认为第一近距离通信设备需要连接新的近距离通信设备,此时第一近距离通信设备始终向周围发送非定向广播信号,这样可以便于周围设备快速获得第一近距离通信设备的MAC地址,以便和第一近距离通信设备进行连接。进一步地,这里为了降低对第一近距离通信设备周围的设备的骚扰,非定向广播信号的发射功率也可以是采用逐渐增加发射功率的方式进行发射,即第一近距离通信设备在向周围发送多组非定向广播信号时,也是每相邻两组非定向广播信号中,后一组非定向广播信号的发射功率大于前一组非定向广播信号的发射功率。In addition, optionally, if the second near-field communication device is not stored in the first near-field communication device, in this case, the first near-field communication device can send multiple sets of non-directional broadcast signals to the surroundings. That is to say, when the first near-field communication device does not save the paired second near-field communication device, it is considered that the first near-field communication device needs to connect to a new near-field communication device. At this time, the first near-field communication device The device always sends non-directional broadcast signals to the surroundings, so that the surrounding devices can quickly obtain the MAC address of the first near-field communication device so as to connect with the first near-field communication device. Further, in order to reduce the harassment to the devices around the first short-range communication device, the transmission power of the non-directional broadcast signal may also be transmitted in a manner that gradually increases the transmission power, that is, the first short-range communication device is transmitting to the surroundings. When there are multiple groups of non-directional broadcast signals, among each adjacent two groups of non-directional broadcast signals, the transmission power of the latter group of non-directional broadcast signals is greater than the transmission power of the previous group of non-directional broadcast signals.
本实施例中,在第一近距离通信设备中存在历史配对过的设备时,可以向周围发送多组通信广播信号,这样可以便于与第一近距离通信设备历史配对过的设备快速回连到第一近距离通信设备,同时可以降低对周围其他设备的骚扰。另外,在第一近距离通信设备中不存在有历史配对过的设备时,可以向周围发送多组非定向广播信号,这样可以实现第一近距离通信设备快速与周围的新设备进行连接,缩短第一近距离通信设备与新设备的连接时长。In this embodiment, when there is a device that has been paired with the first near-field communication device in the past, multiple sets of communication broadcast signals can be sent to the surroundings. This can facilitate the quick reconnection of the device that has been paired with the first near-field communication device in the past. The first short-range communication device can also reduce harassment to other surrounding devices. In addition, when there is no device that has been paired with the first short-range communication device in the past, multiple sets of non-directional broadcast signals can be sent to the surroundings, so that the first short-range communication device can quickly connect to new surrounding devices, shortening the time The length of time the first NFC device is connected to the new device.
上述实施例中提到了第一近距离通信设备中可以保存已配对的设备的MAC地址,之后可以向周围发送包括该配对设备的MAC地址的定向广播信号,以下实施例就对具体如何发送该定向广播信号的过程进行详细说明。In the above embodiment, it is mentioned that the MAC address of the paired device can be saved in the first short-range communication device, and then a directional broadcast signal including the MAC address of the paired device can be sent to the surroundings. The following embodiment will specifically describe how to send the directional broadcast signal. The process of broadcasting signals is explained in detail.
在另一个实施例中,提供了另一种近距离通信设备连接方法,在上述实施例的基础上,如图3所示,上述S204可以包括以下步骤:In another embodiment, another near field communication device connection method is provided. Based on the above embodiment, as shown in Figure 3, the above S204 may include the following steps:
S302,第一近距离通信设备确定各第二近距离通信设备的连接优先级。S302: The first short-range communication device determines the connection priority of each second short-range communication device.
在本步骤中,第一近距离通信设备中存储有至少两个第二近距离通信设备,同时第一近距离通信设备中可存储有每个第二近距离通信设备与第一近距离通信设备进行历史配对的时间,进而可选的,第一近距离通信设备可以根据各第二近距离通信设备与第一近距离通信设备的历史配对时间确定各第二近距离通信设备的连接优先级。这里第二近距离通信设备和第一近距离通信设备的历史配对时间与当前时刻越接近,其对应的连接优先级越高,即与第一近距离通信设备最后配对过的第二近距离通信设备的连接优先级最高。因此这里通过各第二近距离通信设备与第一近距离通信设备的历史配对时间,就可以获得各第二近距离通信设备对应的连接优先级。In this step, at least two second near-field communication devices are stored in the first near-field communication device. At the same time, each second near-field communication device and the first near-field communication device can be stored in the first near-field communication device. Historical pairing time, and optionally, the first near-field communication device can determine the connection priority of each second near-field communication device based on the historical pairing time of each second near-field communication device and the first near-field communication device. Here, the closer the historical pairing time of the second near-field communication device and the first near-field communication device is to the current moment, the higher its corresponding connection priority is, that is, the second near-field communication device that was last paired with the first near-field communication device The device has the highest connection priority. Therefore, through the historical pairing time of each second near-field communication device and the first near-field communication device, the connection priority corresponding to each second near-field communication device can be obtained.
S304,第一近距离通信设备根据各第二近距离通信设备的连接优先级向周围发送多组通信广播信号。S304: The first short-range communication device sends multiple sets of communication broadcast signals to surroundings according to the connection priority of each second short-range communication device.
在本步骤中,在获得各第二近距离通信设备的连接优先级之后,可以按照各第二近距离通信设备的连接优先级的高低,从高到低,依次将各第二近距离通信设备的MAC地址***各组定向广播信号中,获得多组通信广播信号并广播。也就是说,这里可以优先广播连接优先级最高的第二近距离通信设备的MAC地址,这样可以增加第二近距离通信设备与第一近距离通信设备回连成功的概率。In this step, after obtaining the connection priority of each second short-range communication device, the second short-range communication device can be assigned to each second short-range communication device in order from high to low according to the connection priority of each second short-range communication device. The MAC address is inserted into each group of directional broadcast signals, and multiple groups of communication broadcast signals are obtained and broadcasted. That is to say, the MAC address of the second near-field communication device with the highest connection priority can be broadcast preferentially, which can increase the probability of successful reconnection between the second near-field communication device and the first near-field communication device.
本实施例中,第一近距离通信设备根据确定的各第二近距离通信设备的连接优先级向周围发送多组通信广播信号,这样可以有针对性地向周围发送多组通信广播信号,提高通信广播信号发送的准确性和效率。进一步地,可以通过第一近距离通信设备与各第二近距离通信设备的历史配对时间确定各第二近距离通信设备的连接优先级,这样可以快速准确地确定各第二近距离通信设备的连接优先级,缩短设置各组通信广播信号的时长,进一步提高通信广播信号发送的准确性和效率。In this embodiment, the first short-range communication device sends multiple sets of communication broadcast signals to the surroundings according to the determined connection priorities of the second short-range communication devices. In this way, multiple sets of communication broadcast signals can be sent to the surroundings in a targeted manner, improving the Accuracy and efficiency of communications broadcast signaling. Furthermore, the connection priority of each second near-field communication device can be determined based on the historical pairing time of the first near-field communication device and each second near-field communication device, so that the connection priority of each second near-field communication device can be quickly and accurately determined. Connection priority shortens the time for setting communication broadcast signals of each group, and further improves the accuracy and efficiency of sending communication broadcast signals.
上述实施例中提到了第一近距离通信设备中可以向周围发送多组均包括定向广播信号和非定向广播信号的通信广播信号,对于具体如何发送该多组通信广播信号的方式并未具体涉及,以下实施例就对具体如何发送该多组通信广播信号的方式进行详细说明。The above embodiment mentioned that the first short-range communication device can send multiple sets of communication broadcast signals including directional broadcast signals and non-directional broadcast signals to the surroundings, but there is no specific reference to how to send the multiple sets of communication broadcast signals. , the following embodiments will describe in detail how to send the multiple sets of communication broadcast signals.
在另一个实施例中,提供了另一种近距离通信设备连接方法,在上述实施例的基础上,上述S204可以包括以下步骤:In another embodiment, another near field communication device connection method is provided. Based on the above embodiment, the above S204 may include the following steps:
步骤B,第一近距离通信设备间隔第一预设时长发送每相邻两组通信广播信号。Step B: The first short-range communication device sends each adjacent two groups of communication broadcast signals at a first preset time interval.
在本步骤中,参见图4所示,第一近距离通信设备可以间歇性向周围发送多组通信广播信号,其中每组通信广播信号中的定向广播信号和非定向广播信号可以连续发送,即不存在时间间隔发送。每相邻两组通信广播信号之间可以间隔第一预设时长进行发送,这里每相邻两组通信广播信号之间的第一预设时长可以相同,也可以不同,该第一预设时长的大小可以根据实际情况设定,例如可以是0s、0.2s、0.5s等等。In this step, as shown in Figure 4, the first short-range communication device can intermittently send multiple sets of communication broadcast signals to the surroundings, where the directional broadcast signals and non-directional broadcast signals in each set of communication broadcast signals can be sent continuously, that is, not There is a time interval for sending. Each adjacent two groups of communication broadcast signals can be sent with a first preset time length. Here, the first preset time length between each adjacent two groups of communication broadcast signals can be the same or different. The first preset time length can be The size can be set according to the actual situation, for example, it can be 0s, 0.2s, 0.5s, etc.
在图4中,第一近距离通信设备发送信号时的最大发射功率可以记为Pmax,这里每组定向广播信号的发射功率可以相同,均可以示例为最大发射功率Pmax,每组非定向广播信号的发射功率可以依次从P1增加到P2、P3、P4...,直至Pmax,其中,P1<P2<P3<…<Pmax。通过逐渐增加非定向广播信号的发射功率,这样可以最大限度地降低对第一近距离通信设备周围的设备的骚扰。In Figure 4, the maximum transmission power when the first short-range communication device sends a signal can be recorded as Pmax. Here, the transmission power of each group of directional broadcast signals can be the same, which can be exemplified as the maximum transmission power Pmax. Each group of non-directional broadcast signals can The transmission power can be increased from P1 to P2, P3, P4... until Pmax, where P1<P2<P3<...<Pmax. By gradually increasing the transmit power of the non-directional broadcast signal, this minimizes disturbance to devices surrounding the first NFC device.
本实施例中,第一近距离通信设备可以间隔第一预设时长发送每相邻两组通信广播信号,这样可以 便于第一近距离通信设备周围的设备可以快速与第一近距离通信设备建立连接,同时可以降低对周围设备的扫描以及降低第一近距离通信设备的功耗。In this embodiment, the first near-field communication device can send each adjacent two groups of communication broadcast signals at a first preset time interval. This can facilitate the devices surrounding the first near-field communication device to quickly establish a connection with the first near-field communication device. connection, while reducing the scanning of surrounding devices and reducing the power consumption of the first short-range communication device.
在另一个实施例中,上述第一近距离通信设备向周围依次发送各组通信广播信号中的定向广播信号和非定向广播信号。In another embodiment, the above-mentioned first short-range communication device sequentially transmits directional broadcast signals and non-directional broadcast signals in each group of communication broadcast signals to the surroundings.
也就是说,第一近距离通信设备在发送每组通信广播信号时,均是先发送定向广播信号,再发送非定向广播信号,这样可以便于第一近距离通信设备优先连接已配对设备,提升第一近距离通信设备与已配对设备的回连效率。That is to say, when the first short-range communication device sends each group of communication broadcast signals, it first sends the directional broadcast signal and then the non-directional broadcast signal. This can facilitate the first short-range communication device to prioritize connecting to the paired device and improve The reconnection efficiency between the first near-field communication device and the paired device.
上述实施例中提到了第一近距离通信设备可以以任意发射功率发送各组定向广播信号,以下实施例就给出第一近距离通信设备的发射功率的两种可能的实施方式。It is mentioned in the above embodiment that the first short-range communication device can send each group of directional broadcast signals with any transmission power. The following embodiments provide two possible implementations of the transmission power of the first short-range communication device.
在一种可能的实施方式中,各组通信广播信号中的定向广播信号的发射功率大于目标发射功率阈值。其中,目标发射功率阈值可以根据实际情况设定,例如可以是第一近距离通信设备发送信号时的最大发射功率,或者可以是第一近距离通信设备发送信号时的最大发射功率的90%等。In a possible implementation, the transmission power of the directional broadcast signal in each group of communication broadcast signals is greater than the target transmission power threshold. The target transmission power threshold can be set according to the actual situation, for example, it can be the maximum transmission power when the first short-range communication device sends a signal, or it can be 90% of the maximum transmission power when the first short-range communication device sends a signal, etc. .
在该种可能的实施方式中,可选的,各组通信广播信号中的定向广播信号的发射功率为第一近距离通信设备在发射信号时的最大发射功率。也就是说,这里每组通信广播信号中的定向广播信号的发射功率均相同,均为第一近距离通信设备在发射信号时的最大发射功率,这样可以便于第一近距离通信设备快速设置各组定向广播信号,同时可以便于第一近距离通信设备周围的已配对设备快速回连至第一近距离通信设备。In this possible implementation, optionally, the transmission power of the directional broadcast signal in each group of communication broadcast signals is the maximum transmission power of the first short-range communication device when transmitting the signal. That is to say, the transmission power of the directional broadcast signal in each group of communication broadcast signals is the same, which is the maximum transmission power of the first short-range communication device when transmitting the signal. This can facilitate the first short-range communication device to quickly set each The group directional broadcast signal can also facilitate paired devices around the first near-field communication device to quickly connect back to the first near-field communication device.
在另一种可能的实施方式中,每相邻两组通信广播信号中,后一组通信广播信号中定向广播信号的发射功率大于前一组通信广播信号中定向广播信号的发射功率。In another possible implementation, in each adjacent two groups of communication broadcast signals, the transmission power of the directional broadcast signal in the latter group of communication broadcast signals is greater than the transmission power of the directional broadcast signal in the previous group of communication broadcast signals.
在该种可能的实施方式中,各组定向广播信号也可以采用逐渐增加发射功率的方式向周围进行广播,直至增加到第一近距离通信设备在发射信号时的最大发射功率为止,便不再增加该定向广播信号的发射功率。这里因为在实际近距离通信设备连接场景中,一般当用户使用第一近距离通信设备时通常是离周围设备较近的位置,因此不需要太高的发射功率即可与周围设备进行连接,此时定向广播也可以采取逐渐增加发射功率的方式进行广播,而不是采用固定的最大发射功率,这样可以降低第一近距离通信设备在发送各组通信广播信号时的功耗。In this possible implementation, each group of directional broadcast signals can also be broadcast to the surroundings by gradually increasing the transmission power until it increases to the maximum transmission power of the first short-range communication device when transmitting signals. Increase the transmission power of the directional broadcast signal. This is because in the actual near-field communication device connection scenario, generally when the user uses the first near-field communication device, he is usually closer to the surrounding devices, so he does not need too high transmission power to connect to the surrounding devices. Time-directed broadcasting can also be carried out by gradually increasing the transmission power instead of using a fixed maximum transmission power, which can reduce the power consumption of the first short-range communication device when sending each group of communication broadcast signals.
上述实施例中提到了第一近距离通信设备可以向周围发送多组通信广播信号,对于何时停止发送的情况并未提及,以下实施例就对该过程进行详细说明。The above embodiments mentioned that the first short-range communication device can send multiple sets of communication broadcast signals to the surroundings, but did not mention when to stop sending. The following embodiments will describe this process in detail.
在另一个实施例中,提供了另一种近距离通信设备连接方法,在上述实施例的基础上,如图5所示,上述方法还可以包括以下步骤:In another embodiment, another method for connecting a near field communication device is provided. Based on the above embodiment, as shown in Figure 5, the above method may also include the following steps:
S502,若满足信号停止发送条件,则第一近距离通信设备停止发送通信广播信号。S502: If the signal stop sending condition is met, the first short-range communication device stops sending the communication broadcast signal.
在本步骤中,第一近距离通信设备在发送通信广播信号的同时,可以不断监测是否满足信号停止发送条件,可选的,该信号停止发送条件可以包括以下内容中的至少一种:上述第一近距离通信设备发送通信广播信号的时长大于第二预设时长;上述定向广播信号的发射功率与非定向广播信号的发射功率均等于第一近距离通信设备在发射信号时的最大发射功率。In this step, while sending the communication broadcast signal, the first short-range communication device can continuously monitor whether the signal stop sending condition is met. Optionally, the signal stopping condition can include at least one of the following contents: the above-mentioned third The duration of a short-range communication device sending a communication broadcast signal is longer than the second preset duration; the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are equal to the maximum transmission power of the first short-range communication device when transmitting the signal.
首先,这里对第一种情况进行说明,即对上述第一近距离通信设备发送通信广播信号的时长大于第二预设时长的情况进行说明。具体可以是第一近距离通信设备不断检测第一近距离通信设备发送通信广播信号的时长是否大于第二预设时长;若第一近距离通信设备发送通信广播信号的时长大于第二预设时长,则第一近距离通信设备停止发送通信广播信号。First, the first case will be described here, that is, the case where the duration of the communication broadcast signal sent by the first short-range communication device is longer than the second preset duration. Specifically, it may be that the first near-field communication device continuously detects whether the duration of the communication broadcast signal sent by the first near-field communication device is greater than the second preset duration; if the duration of the first near-field communication device sending the communication broadcast signal is greater than the second preset duration , then the first short-range communication device stops sending the communication broadcast signal.
其中,第二预设时长的大小可以根据实际情况设定,例如可以是5s、10s等等。需要说明的是,这里第二预设时长的大小大于非定向广播信号的发射功率从P1增加到Pmax的时长。也就是说,这里一般在非定向广播信号的发射功率从P1增加到Pmax后,还会以Pmax的发射功率继续向周围发送几组非定向广播信号。The size of the second preset duration can be set according to the actual situation, for example, it can be 5s, 10s, etc. It should be noted that the second preset duration here is greater than the duration in which the transmission power of the non-directional broadcast signal increases from P1 to Pmax. That is to say, here generally after the transmission power of the non-directional broadcast signal increases from P1 to Pmax, several groups of non-directional broadcast signals will continue to be transmitted to the surroundings with the transmission power of Pmax.
具体的,第一近距离通信设备在开始向周围发送多组通信广播信号时,就可以统计发送多组通信广播信号的时长,并将统计的时长和第二预设时长进行对比,判断统计的时长是否大于第二预设时长,得到判断结果。在第一近距离通信设备统计的时长大于第二预设时长时,表征第一近距离通信设备长时间未与其他设备连接成功,则可以停止发送通信广播信号,以便节省第一近距离通信设备的功耗。Specifically, when the first short-range communication device starts to send multiple sets of communication broadcast signals to the surroundings, it can count the duration of sending the multiple sets of communication broadcast signals, compare the statistical duration with the second preset duration, and determine the statistical duration. Whether the duration is greater than the second preset duration, the judgment result is obtained. When the duration counted by the first near-field communication device is greater than the second preset duration, which indicates that the first near-field communication device has not successfully connected with other devices for a long time, the communication broadcast signal can be stopped to save the first near-field communication device. of power consumption.
其次,这里针对第二种情况进行说明,即对上述定向广播信号的发射功率与非定向广播信号的发射功率均等于第一近距离通信设备在发射信号时的最大发射功率的情况进行说明。Secondly, the second case will be described here, that is, the case where the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are equal to the maximum transmission power of the first short-range communication device when transmitting the signal.
在该种情况下,各组通信广播信号中的定向广播信号的发射功率和非定向广播信号的发射功率均可以是逐渐增大的,这样在定向广播信号的发射功率和非定向广播信号的发射功率均增加到第一近距离通信设备在发射信号时的最大发射功率时,就表明第一近距离通信设备周围不存在可以连接的近距离通信设备,因此为了节省第一近距离通信设备的功耗,此时第一近距离通信设备可以停止发送通信广播信号。In this case, the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal in each group of communication broadcast signals can be gradually increased, so that the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are When the power increases to the maximum transmission power of the first near-field communication device when transmitting a signal, it means that there is no connectable near-field communication device around the first near-field communication device. Therefore, in order to save the power of the first near-field communication device, consumption, at this time the first short-range communication device can stop sending communication broadcast signals.
本实施例中,在第一近距离通信设备发送通信广播信号的时长大于第二预设时长时,或者定向广播信号的发射功率与非定向广播信号的发射功率均等于第一近距离通信设备在发射信号时的最大发射功率时,第一近距离通信设备可以停止发送通信广播信号,这样可以节省第一近距离通信设备的功耗。In this embodiment, when the duration of the first short-range communication device sending the communication broadcast signal is greater than the second preset duration, or the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are equal to the first short-range communication device in When the maximum transmission power is reached when transmitting a signal, the first short-range communication device can stop sending the communication broadcast signal, which can save the power consumption of the first short-range communication device.
为了便于对本申请实施例的技术方案进行详细说明,以下给出一个具体实施例来对本申请的技术方案进行说明,在上述实施例的基础上,如图6所示,上述方法可以包括以下步骤:In order to facilitate a detailed description of the technical solutions of the embodiments of the present application, a specific embodiment is given below to illustrate the technical solutions of the present application. Based on the above embodiment, as shown in Figure 6, the above method may include the following steps:
S601,监测第一近距离通信设备是否触发近距离通信连接,若是,则执行S602,否则继续监测。S601: Monitor whether the first near-field communication device triggers a near-field communication connection. If so, execute S602; otherwise, continue monitoring.
S602,判断第一近距离通信设备中是否存储有与第一近距离通信设备历史配对的第二近距离通信设备,若是,则执行S603,否则,执行S604。S602: Determine whether the first near-field communication device stores a second near-field communication device that is historically paired with the first near-field communication device. If so, perform S603; otherwise, perform S604.
S603,第一近距离通信设备向周围间歇性发送定向广播信号和非定向广播信号,非定向广播信号的发射功率逐渐增加。S603. The first short-range communication device intermittently sends directional broadcast signals and non-directional broadcast signals to the surroundings, and the transmission power of the non-directional broadcast signals gradually increases.
S604,第一近距离通信设备向周围发送多组非定向广播信号,非定向广播信号的发射功率逐渐增加。S604. The first short-range communication device sends multiple sets of non-directional broadcast signals to the surroundings, and the transmission power of the non-directional broadcast signals gradually increases.
S605,第一近距离通信设备判断是否已有设备连接成功,若是,则执行S606,否则执行S607。S605: The first short-range communication device determines whether the connection of the existing device is successful. If so, execute S606; otherwise, execute S607.
S606,第一近距离通信设备停止发送通信广播信号。S606: The first short-range communication device stops sending communication broadcast signals.
S607,第一近距离通信设备检测发送通信广播信号的时长是否大于第二预设时长,或者,第一近距离通信设备检测定向广播信号的发射功率与非定向广播信号的发射功率是否均等于第一近距离通信设备在发射信号时的最大发射功率,若是,则执行S606,否则执行S608。S607. The first short-range communication device detects whether the duration of sending the communication broadcast signal is greater than the second preset duration, or the first short-range communication device detects whether the transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are equal to the second The maximum transmission power of a short-range communication device when transmitting a signal. If yes, execute S606; otherwise, execute S608.
S608,第一近距离通信设备向周围继续发送定向广播信号和非定向广播信号。S608: The first short-range communication device continues to send directional broadcast signals and non-directional broadcast signals to the surroundings.
上述S601-S608的实现原理与上述各实施例中所记载的方案的实现原理相同,所能达到的技术效果也相同,本实施例在此不再赘述。The implementation principles of the above-mentioned S601-S608 are the same as those of the solutions recorded in the above-mentioned embodiments, and the technical effects that can be achieved are also the same. This embodiment will not be repeated here.
应该理解的是,虽然图2-5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of Figures 2-5 are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2-5 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps or stages The order of execution is not necessarily sequential, but may be performed in turn or alternately with other steps or sub-steps of other steps or at least part of the stages.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的近距离通信设备连接方法的近距离通信设备连接装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个近距离通信设备连接装置实施例中的具体限定可以参见上文中对于近距离通信设备连接方法的限定,在此不再赘述。Based on the same inventive concept, embodiments of the present application also provide a short-distance communication device connection device for implementing the above-mentioned short-distance communication device connection method. The solution to the problem provided by this device is similar to the solution recorded in the above method. Therefore, for the specific limitations in the embodiments of one or more short-range communication equipment connection devices provided below, please refer to the above for short-range communication. The limitations of device connection methods will not be described again here.
在一个实施例中,如图7所示,提供了一种近距离通信设备连接装置,包括:监测模块11和发送模块12,其中:In one embodiment, as shown in Figure 7, a near field communication device connection device is provided, including: a monitoring module 11 and a sending module 12, wherein:
监测模块11,用于监测第一近距离通信设备是否触发近距离通信连接;Monitoring module 11, used to monitor whether the first near-field communication device triggers a near-field communication connection;
发送模块12,用于若上述第一近距离通信设备触发近距离通信连接,则向周围发送多组通信广播信号;其中,每组通信广播信号中均包括定向广播信号和非定向广播信号,且前M组通信广播信号中的定向广播信号的发射功率大于非定向广播信号的发射功率,上述定向广播信号用于连接已配对设备,上述非定向广播信号用于配对并连接未配对设备,其中M为大于等于一的正整数。The sending module 12 is configured to send multiple sets of communication broadcast signals to the surroundings if the first short-range communication device triggers a short-range communication connection; wherein each set of communication broadcast signals includes a directional broadcast signal and a non-directional broadcast signal, and The transmission power of the directional broadcast signal in the first M groups of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal. The above-mentioned directional broadcast signal is used to connect paired devices, and the above-mentioned non-directional broadcast signal is used to pair and connect unpaired devices, where M is a positive integer greater than or equal to one.
可选的,从第M+1组开始上述定向广播信号的发射功率等于上述非定向广播信号的发射功率。Optionally, starting from the M+1th group, the transmission power of the directional broadcast signal is equal to the transmission power of the non-directional broadcast signal.
在另一个实施例中,每相邻两组上述通信广播信号中,后一组通信广播信号中非定向广播信号的发射功率大于前一组通信广播信号中非定向广播信号的发射功率。In another embodiment, among each adjacent two groups of communication broadcast signals, the transmission power of the non-directional broadcast signal in the latter group of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal in the previous group of communication broadcast signals.
在另一个实施例中,提供了另一种近距离通信设备连接装置,在上述实施例的基础上,上述发送模块12,包括:In another embodiment, another short-range communication device connection device is provided. Based on the above embodiment, the above-mentioned sending module 12 includes:
第一发送单元,用于若第一近距离通信设备中存储有与第一近距离通信设备历史配对的第二近距离通信设备,则向周围发送多组通信广播信号,其中,各组通信广播信号中的定向广播信号与第二近距离通信设备相对应。The first sending unit is configured to send multiple groups of communication broadcast signals to the surroundings if the first short-range communication device stores a second short-range communication device that is historically paired with the first near-field communication device, wherein each group of communication broadcast signals The directional broadcast signal in the signal corresponds to the second near field communication device.
可选的,上述发送模块12,还包括:Optionally, the above sending module 12 also includes:
第二发送单元,用于若第一近距离通信设备中未存储有第二近距离通信设备,则向周围发送多组非定向广播信号。The second sending unit is configured to send multiple sets of non-directional broadcast signals to the surroundings if the second short-range communication device is not stored in the first short-range communication device.
在另一个实施例中,提供了另一种近距离通信设备连接装置,在上述实施例的基础上,上述第一近距离通信设备中存储有至少两个上述第二近距离通信设备,上述第一发送单元,包括:In another embodiment, another near-field communication device connection device is provided. Based on the above embodiment, at least two of the above-mentioned second near-field communication devices are stored in the above-mentioned first near-field communication device. A sending unit, including:
优先级确定子单元,用于确定各上述第二近距离通信设备的连接优先级;A priority determination subunit, used to determine the connection priority of each of the above-mentioned second short-range communication devices;
发送子单元,用于根据各上述第二近距离通信设备的连接优先级向周围发送多组通信广播信号。The sending subunit is configured to send multiple sets of communication broadcast signals to the surroundings according to the connection priority of each of the above-mentioned second short-range communication devices.
可选的,上述优先级确定子单元,具体用于根据各上述第二近距离通信设备与上述第一近距离通信设备的历史配对时间确定各第二近距离通信设备的连接优先级。Optionally, the above-mentioned priority determination subunit is specifically configured to determine the connection priority of each second near-field communication device according to the historical pairing time of each of the above-mentioned second near-field communication devices and the above-mentioned first near-field communication device.
在另一个实施例中,提供了另一种近距离通信设备连接装置,在上述实施例的基础上,上述发送模块12,包括:In another embodiment, another short-range communication device connection device is provided. Based on the above embodiment, the above-mentioned sending module 12 includes:
第三发送单元,用于间隔第一预设时长发送每相邻两组通信广播信号。The third sending unit is configured to send each adjacent two groups of communication broadcast signals at intervals of a first preset time period.
在另一个实施例中,上述发送模块12,包括:In another embodiment, the above-mentioned sending module 12 includes:
第四发送单元,用于向周围依次发送各组通信广播信号中的定向广播信号和非定向广播信号。The fourth sending unit is used to sequentially send the directional broadcast signal and the non-directional broadcast signal in each group of communication broadcast signals to the surroundings.
在另一个实施例中,提供了另一种近距离通信设备连接装置,在上述实施例的基础上,各组通信广播信号中的定向广播信号的发射功率大于目标发射功率阈值。In another embodiment, another short-range communication device connection device is provided. Based on the above embodiment, the transmission power of the directional broadcast signal in each group of communication broadcast signals is greater than the target transmission power threshold.
可选的,各组通信广播信号中的定向广播信号的发射功率为第一近距离通信设备在发射信号时的最大发射功率。Optionally, the transmission power of the directional broadcast signal in each group of communication broadcast signals is the maximum transmission power of the first short-range communication device when transmitting the signal.
在另一个实施例中,提供了另一种近距离通信设备连接装置,在上述实施例的基础上,每相邻两组上述通信广播信号中,后一组通信广播信号中定向广播信号的发射功率大于前一组通信广播信号中定向广播信号的发射功率。In another embodiment, another short-range communication equipment connection device is provided. Based on the above embodiment, in each adjacent two groups of the above communication broadcast signals, the latter group of communication broadcast signals transmits a directional broadcast signal. The power is greater than the transmission power of the directional broadcast signal in the previous group of communication broadcast signals.
在另一个实施例中,提供了另一种近距离通信设备连接装置,在上述实施例的基础上,上述装置还包括:In another embodiment, another near field communication device connection device is provided. Based on the above embodiment, the above device further includes:
停止发送模块,用于若满足信号停止发送条件,则停止发送上述通信广播信号。The stop-sending module is used to stop sending the above-mentioned communication broadcast signal if the signal stop-sending condition is met.
可选的,上述信号停止发送条件包括以下内容中的至少一种:上述第一近距离通信设备发送通信广播信号的时长大于第二预设时长;上述定向广播信号的发射功率与上述非定向广播信号的发射功率均等于上述第一近距离通信设备在发射信号时的最大发射功率。Optionally, the above-mentioned signal stopping condition includes at least one of the following contents: the duration of the first short-range communication device sending the communication broadcast signal is longer than the second preset duration; the transmission power of the above-mentioned directional broadcast signal is different from the above-mentioned non-directional broadcast. The transmission power of the signal is equal to the maximum transmission power of the above-mentioned first short-range communication device when transmitting the signal.
上述近距离通信设备连接装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于第一近距离通信设备中的处理器中,也可以以软件形式存储于第一近距离通信设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned short-range communication equipment connection device can be implemented in whole or in part by software, hardware, and combinations thereof. Each of the above modules can be embedded in or independent of the processor in the first near-field communication device in the form of hardware, or can be stored in the memory in the first near-field communication device in the form of software, so that the processor can call and execute the above modules. The operation corresponding to the module.
在一个实施例中,提供了一种近距离通信设备,该近距离通信设备的内部结构图可以如图8所示。该近距离通信设备包括处理器、存储器、输入/输出接口、通信接口、显示单元和输入装置。其中,处理器、存储器和输入/输出接口通过***总线连接,通信接口、显示单元和输入装置通过输入/输出接口连接到***总线。其中,该近距离通信设备的处理器用于提供计算和控制能力。该近距离通信设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作***和计算机程序。该内存储器为非易失性存储介质中的操作***和计算机程序的运行提供环境。该近距离通信设备的输入/输出接口用于处理器与外部设备之间交换信息。该近距离通信设备的通信接口用于与外部的近距离通信设备进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种近距离通信设备连接方法。该近距离通信设备的显示单元用于形成视觉可见的画面,可以是显示屏、投影装置或虚拟现实成像装置。显示屏可以是液晶显示屏或者电子墨水显示屏,该近距离通信设备的输入装置可以是显示屏上覆盖的触摸层,也可以是近距离通信设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a short-range communication device is provided, and the internal structure diagram of the short-range communication device can be shown in FIG. 8 . The near field communication device includes a processor, a memory, an input/output interface, a communication interface, a display unit and an input device. Among them, the processor, memory and input/output interface are connected through the system bus, and the communication interface, display unit and input device are connected to the system bus through the input/output interface. Wherein, the processor of the near field communication device is used to provide computing and control capabilities. The memory of the near field communication device includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media. The input/output interface of the near field communication device is used to exchange information between the processor and the external device. The communication interface of the near field communication device is used for wired or wireless communication with an external near field communication device. The wireless mode can be implemented through WIFI, mobile cellular network, NFC (near field communication) or other technologies. The computer program implements a near field communication device connection method when executed by a processor. The display unit of the near field communication device is used to form a visually visible picture, and may be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display or an electronic ink display. The input device of the near field communication device can be a touch layer covered on the display screen, or it can be a button, trackball or touch pad provided on the shell of the near field communication device. , it can also be an external keyboard, trackpad or mouse, etc.
在一种可能的实施方式中,上述近距离通信设备可以是蓝牙耳机,该蓝牙耳机可以包括上述近距离通信设备中的全部或部分模块,还可以包括收发器、喇叭/扬声器、麦克风、电池等。其中收发器用于进行数据收发;喇叭/扬声器用于播放语音信号;麦克风用于进行语音信号录入,并将语音信号转化为电信号;电池用于给蓝牙耳机中的各个模块进行供电。In a possible implementation, the above-mentioned near-field communication device may be a Bluetooth headset, which may include all or part of the modules in the above-mentioned near-field communication device, and may also include a transceiver, a horn/speaker, a microphone, a battery, etc. . The transceiver is used to send and receive data; the speaker/speaker is used to play voice signals; the microphone is used to record voice signals and convert voice signals into electrical signals; and the battery is used to power each module in the Bluetooth headset.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的近距离通信设备的限定,具体的近距离通信设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 8 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the short-range communication equipment to which the solution of the present application is applied. A range communication device may include more or fewer components than shown in the figures, or some combination of components, or have a different arrangement of components.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行上述近距离通信设备连接方法的步骤。An embodiment of the present application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the processors perform the above-mentioned short-range communication device connection method. A step of.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述近距离通信设备连接方法。Embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to execute the above short-range communication device connection method.
需要说明的是,本申请所涉及的数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all data authorized by the user or fully authorized by all parties, and the relevant data are Collection, use and processing need to comply with relevant laws, regulations and standards of relevant countries and regions.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程 序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage. In the media, when executed, the computer program may include the processes of the above method embodiments. Any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory (MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in many forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include blockchain-based distributed databases, etc., but are not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The technical features of the above embodiments can be combined in any way. To simplify the description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, all possible combinations should be used. It is considered to be within the scope of this manual. The above-described embodiments only express several implementation modes of the present application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all fall within the protection scope of the present application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims (20)
- 一种近距离通信设备连接方法,其特征在于,包括:A method for connecting short-range communication equipment, which is characterized by including:监测第一近距离通信设备是否触发近距离通信连接;Monitoring whether the first near field communication device triggers the near field communication connection;若所述第一近距离通信设备触发近距离通信连接,则所述第一近距离通信设备向周围发送多组通信广播信号;If the first near-field communication device triggers a near-field communication connection, the first near-field communication device sends multiple sets of communication broadcast signals to the surroundings;其中,每组所述通信广播信号中均包括定向广播信号和非定向广播信号,且前M组所述通信广播信号中的定向广播信号的发射功率大于非定向广播信号的发射功率,所述定向广播信号用于连接已配对设备,所述非定向广播信号用于配对并连接未配对设备,其中M为大于等于一的正整数。Wherein, each group of the communication broadcast signals includes a directional broadcast signal and a non-directional broadcast signal, and the transmission power of the directional broadcast signal in the first M groups of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal, and the directional broadcast signal The broadcast signal is used to connect paired devices, and the non-directional broadcast signal is used to pair and connect unpaired devices, where M is a positive integer greater than or equal to one.
- 根据权利要求1所述的方法,其特征在于,从第M+1组开始所述定向广播信号的发射功率等于所述非定向广播信号的发射功率。The method according to claim 1, characterized in that starting from the M+1th group, the transmission power of the directional broadcast signal is equal to the transmission power of the non-directional broadcast signal.
- 根据权利要求1所述的方法,其特征在于,每相邻两组所述通信广播信号中,后一组通信广播信号中非定向广播信号的发射功率大于前一组通信广播信号中非定向广播信号的发射功率。The method according to claim 1, characterized in that in each adjacent two groups of communication broadcast signals, the transmission power of the non-directional broadcast signal in the latter group of communication broadcast signals is greater than the non-directional broadcast signal in the previous group of communication broadcast signals. The transmit power of the signal.
- 根据权利要求1所述的方法,其特征在于,所述第一近距离通信设备向周围发送多组通信广播信号,包括:The method according to claim 1, characterized in that the first short-range communication device sends multiple sets of communication broadcast signals to the surroundings, including:若所述第一近距离通信设备中存储有与所述第一近距离通信设备历史配对的第二近距离通信设备,则所述第一近距离通信设备向周围发送多组所述通信广播信号,其中,各组所述通信广播信号中的定向广播信号与所述第二近距离通信设备相对应。If the first near-field communication device stores a second near-field communication device that is historically paired with the first near-field communication device, the first near-field communication device sends multiple sets of the communication broadcast signals to the surroundings. , wherein the directional broadcast signal in each group of the communication broadcast signals corresponds to the second short-range communication device.
- 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, further comprising:若所述第一近距离通信设备中未存储有所述第二近距离通信设备,则所述第一近距离通信设备向周围发送多组非定向广播信号。If the second near-field communication device is not stored in the first near-field communication device, the first near-field communication device sends multiple sets of non-directional broadcast signals to the surroundings.
- 根据权利要求4所述的方法,其特征在于,所述第一近距离通信设备中存储有至少两个所述第二近距离通信设备,所述第一近距离通信设备向周围发送多组所述通信广播信号,包括:The method according to claim 4, characterized in that at least two second near-field communication devices are stored in the first near-field communication device, and the first near-field communication device sends a plurality of sets of all the information to the surroundings. The above-mentioned communication broadcast signals include:所述第一近距离通信设备确定各所述第二近距离通信设备的连接优先级;The first short-range communication device determines the connection priority of each of the second short-range communication devices;所述第一近距离通信设备根据各所述第二近距离通信设备的连接优先级向周围发送多组所述通信广播信号。The first short-range communication device sends a plurality of sets of the communication broadcast signals to the surroundings according to the connection priority of each of the second short-range communication devices.
- 根据权利要求6所述的方法,其特征在于,所述第一近距离通信设备确定各所述第二近距离通信设备的连接优先级,包括:The method according to claim 6, characterized in that the first short-range communication device determines the connection priority of each of the second short-range communication devices, including:所述第一近距离通信设备根据各所述第二近距离通信设备与所述第一近距离通信设备的历史配对时间确定各所述第二近距离通信设备的连接优先级。The first near-field communication device determines the connection priority of each of the second near-field communication devices according to the historical pairing time of each of the second near-field communication devices and the first near-field communication device.
- 根据权利要求7所述的方法,其特征在于,所述第二近距离通信设备和所述第一近距离通信设备的历史配对时间与当前时刻越接近,则所述第二近距离通信设备对应的连接优先级越高。The method according to claim 7, characterized in that the closer the historical pairing time of the second near-field communication device and the first near-field communication device is to the current time, the corresponding The higher the connection priority.
- 根据权利要求6所述的方法,其特征在于,所述第一近距离通信设备根据各所述第二近距离通信设备的连接优先级向周围发送多组所述通信广播信号,包括:The method according to claim 6, characterized in that the first short-range communication device sends multiple groups of the communication broadcast signals to the surroundings according to the connection priority of each of the second short-range communication devices, including:所述第一近距离通信设备按照各所述第二近距离通信设备的连接优先级,从高到低,依次将各所述第二近距离通信设备的媒体访问控制MAC地址***各组定向广播信号中,获得多组所述通信广播信号。The first near-field communication device inserts the media access control MAC address of each of the second near-field communication devices into each group of directional broadcasts in order from high to low according to the connection priority of each of the second near-field communication devices. Among the signals, multiple sets of the communication broadcast signals are obtained.
- 根据权利要求1所述的方法,其特征在于,所述第一近距离通信设备向周围发送多组通信广播信号,包括:The method according to claim 1, characterized in that the first short-range communication device sends multiple sets of communication broadcast signals to the surroundings, including:所述第一近距离通信设备间隔第一预设时长发送每相邻两组所述通信广播信号。The first short-range communication device sends each adjacent two groups of the communication broadcast signals at a first preset time interval.
- 根据权利要求1所述的方法,其特征在于,所述第一近距离通信设备向周围发送多组通信广播信号,包括:The method according to claim 1, characterized in that the first short-range communication device sends multiple sets of communication broadcast signals to the surroundings, including:所述第一近距离通信设备向周围依次发送各组通信广播信号中的定向广播信号和非定向广播信号。The first short-range communication device sequentially transmits directional broadcast signals and non-directional broadcast signals in each group of communication broadcast signals to the surroundings.
- 根据权利要求1所述的方法,其特征在于,各组所述通信广播信号中的定向广播信号的发射功率大于目标发射功率阈值。The method according to claim 1, characterized in that the transmission power of the directional broadcast signal in each group of the communication broadcast signals is greater than the target transmission power threshold.
- 根据权利要求12所述的方法,其特征在于,各组所述通信广播信号中的定向广播信号的发射功率为所述第一近距离通信设备在发射信号时的最大发射功率。The method according to claim 12, characterized in that the transmission power of the directional broadcast signal in each group of the communication broadcast signals is the maximum transmission power of the first short-range communication device when transmitting the signal.
- 根据权利要求1所述的方法,其特征在于,每相邻两组所述通信广播信号中,后一组通信广播信号中定向广播信号的发射功率大于前一组通信广播信号中定向广播信号的发射功率。The method according to claim 1, characterized in that, in each adjacent two groups of communication broadcast signals, the transmission power of the directional broadcast signal in the latter group of communication broadcast signals is greater than the transmission power of the directional broadcast signal in the previous group of communication broadcast signals. Transmit power.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:若满足信号停止发送条件,则所述第一近距离通信设备停止发送所述通信广播信号。If the signal stopping condition is met, the first short-range communication device stops sending the communication broadcast signal.
- 根据权利要求15所述的方法,其特征在于,所述信号停止发送条件包括以下内容中的至少一 种:The method according to claim 15, characterized in that the signal stopping condition includes at least one of the following:所述第一近距离通信设备发送所述通信广播信号的时长大于第二预设时长;The duration for which the first short-range communication device sends the communication broadcast signal is longer than the second preset duration;所述定向广播信号的发射功率与所述非定向广播信号的发射功率均等于所述第一近距离通信设备在发射信号时的最大发射功率。The transmission power of the directional broadcast signal and the transmission power of the non-directional broadcast signal are equal to the maximum transmission power of the first short-range communication device when transmitting a signal.
- 一种近距离通信设备连接装置,其特征在于,包括:A short-range communication equipment connection device, characterized by including:监测模块,用于监测第一近距离通信设备是否触发近距离通信连接;A monitoring module used to monitor whether the first near-field communication device triggers a near-field communication connection;发送模块,用于若所述第一近距离通信设备触发近距离通信连接,则向周围发送多组通信广播信号;其中,每组所述通信广播信号中均包括定向广播信号和非定向广播信号,且前M组所述通信广播信号中的定向广播信号的发射功率大于非定向广播信号的发射功率,所述定向广播信号用于连接已配对设备,所述非定向广播信号用于配对并连接未配对设备,其中M为大于等于一的正整数。A sending module, configured to send multiple groups of communication broadcast signals to the surroundings if the first short-range communication device triggers a short-range communication connection; wherein each group of communication broadcast signals includes a directional broadcast signal and a non-directional broadcast signal. , and the transmission power of the directional broadcast signal in the first M groups of communication broadcast signals is greater than the transmission power of the non-directional broadcast signal. The directional broadcast signal is used to connect paired devices, and the non-directional broadcast signal is used to pair and connect. Unpaired device, where M is a positive integer greater than or equal to one.
- 一种近距离通信设备,包括存储器及处理器,所述存储器中储存有计算机程序,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至16中任一项所述的方法的步骤。A short-range communication device, including a memory and a processor. A computer program is stored in the memory. It is characterized in that when the computer program is executed by the processor, the processor executes claims 1 to 16. The steps of any of the methods.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至16中任一项所述的方法的步骤。A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 16 are implemented.
- 一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执行时实现权利要求1至16中任一项所述的方法的步骤。A computer program product, comprising a computer program, characterized in that, when executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 16.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210280707.7 | 2022-03-22 | ||
CN202210280707.7A CN114666744B (en) | 2022-03-22 | 2022-03-22 | Method, device, equipment, storage medium and product for connecting near field communication equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023179119A1 true WO2023179119A1 (en) | 2023-09-28 |
Family
ID=82031777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/139602 WO2023179119A1 (en) | 2022-03-22 | 2022-12-16 | Near field communication device connection method and apparatus, device, storage medium, and product |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114666744B (en) |
WO (1) | WO2023179119A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114666744B (en) * | 2022-03-22 | 2024-03-01 | Oppo广东移动通信有限公司 | Method, device, equipment, storage medium and product for connecting near field communication equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1653754A (en) * | 2002-04-02 | 2005-08-10 | 高通股份有限公司 | System and method for bluetooth paging with transmit power reduced according to channel metrics measured during inquiry process |
US20120294378A1 (en) * | 2011-05-19 | 2012-11-22 | Disney Enterprises, Inc. | System and Method for Multi-Power Signaling Device |
CN104469980A (en) * | 2014-11-21 | 2015-03-25 | 广东欧珀移动通信有限公司 | Bluetooth connecting method and Bluetooth equipment |
CN113490218A (en) * | 2021-06-08 | 2021-10-08 | 深圳Tcl新技术有限公司 | Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium |
CN114666744A (en) * | 2022-03-22 | 2022-06-24 | Oppo广东移动通信有限公司 | Near field communication equipment connection method, device, equipment, storage medium and product |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103702391B (en) * | 2013-11-30 | 2017-05-03 | 北京智谷睿拓技术服务有限公司 | Broadcasting method, broadcasting equipment, scanning method and scanning equipment for wireless communication |
CN109756878A (en) * | 2018-12-26 | 2019-05-14 | 与德科技有限公司 | A kind of Bluetooth pairing methods and equipment |
WO2020132922A1 (en) * | 2018-12-26 | 2020-07-02 | 华为技术有限公司 | Method and device for connecting bluetooth devices |
CN109862549A (en) * | 2019-03-28 | 2019-06-07 | 南昌黑鲨科技有限公司 | Bluetooth connection method and device, readable storage medium and mobile device |
CN110267358B (en) * | 2019-07-01 | 2021-03-23 | 张洋 | System for establishing Bluetooth connection |
CN113395685B (en) * | 2020-03-10 | 2023-07-11 | 华为技术有限公司 | Bluetooth communication system and wireless communication system |
CN111464957A (en) * | 2020-03-31 | 2020-07-28 | Oppo(重庆)智能科技有限公司 | Bluetooth audio transmission method and device, electronic equipment and storage medium |
-
2022
- 2022-03-22 CN CN202210280707.7A patent/CN114666744B/en active Active
- 2022-12-16 WO PCT/CN2022/139602 patent/WO2023179119A1/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1653754A (en) * | 2002-04-02 | 2005-08-10 | 高通股份有限公司 | System and method for bluetooth paging with transmit power reduced according to channel metrics measured during inquiry process |
US20120294378A1 (en) * | 2011-05-19 | 2012-11-22 | Disney Enterprises, Inc. | System and Method for Multi-Power Signaling Device |
CN104469980A (en) * | 2014-11-21 | 2015-03-25 | 广东欧珀移动通信有限公司 | Bluetooth connecting method and Bluetooth equipment |
CN113490218A (en) * | 2021-06-08 | 2021-10-08 | 深圳Tcl新技术有限公司 | Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium |
CN114666744A (en) * | 2022-03-22 | 2022-06-24 | Oppo广东移动通信有限公司 | Near field communication equipment connection method, device, equipment, storage medium and product |
Also Published As
Publication number | Publication date |
---|---|
CN114666744B (en) | 2024-03-01 |
CN114666744A (en) | 2022-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220117034A1 (en) | Data transmission method and device | |
US11212854B2 (en) | Method and device for indicating radio bearer | |
WO2019090726A1 (en) | Method for selecting bluetooth device, terminal, and system | |
CN110650408B (en) | Earphone, anti-lost method, anti-lost system and computer readable storage medium | |
WO2020151702A1 (en) | Information submission method, resource allocation method, first terminal, and second terminal | |
CN109062535B (en) | Sound production control method and device, electronic device and computer readable medium | |
US9621986B2 (en) | Electronic device, audio device, and method for supplying power to the audio device | |
WO2020097757A1 (en) | Bandwidth part configuration method and device | |
WO2023179119A1 (en) | Near field communication device connection method and apparatus, device, storage medium, and product | |
EP4021087A1 (en) | Downlink data cache indication method and apparatus, and downlink data acquisition method and apparatus | |
US11864190B2 (en) | Method and apparatus for configuring and determining transmission block scheduling interval, and base station | |
US11026083B2 (en) | Identification and user notification of mismatched devices | |
WO2023088209A1 (en) | Cross-device audio data transmission method and electronic devices | |
EP3716675A1 (en) | Method and device for indicating inter-modulation distortion, base station, and user equipment | |
CN108363628A (en) | Message treatment method, device, terminal and computer readable storage medium | |
US11394495B2 (en) | Hybrid automatic repeat request (HARQ) feedback method and device and data receiving apparatus | |
WO2019041348A1 (en) | Beam reporting and adjusting method and apparatus, user equipment, and base station | |
WO2021057733A1 (en) | Listen before talk (lbt) subband partitioning method and apparatus, device, and medium | |
JP7278397B2 (en) | Transmission resource indication method, transmission method, network equipment and terminal | |
US20230156112A1 (en) | Function conflict processing method and apparatus, electronic device, and readable storage medium | |
EP4354747A1 (en) | Audio control method, electronic device, audio device, and storage medium | |
CN106304287B (en) | Method for reducing standby power consumption of mobile terminal and mobile terminal | |
CN113271385B (en) | Call forwarding method | |
US20240064706A1 (en) | Transmission method, transmission apparatus, and storage medium | |
CN116743693B (en) | Message synchronization method, electronic equipment and storage medium |
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: 22933168 Country of ref document: EP Kind code of ref document: A1 |