Signal transmission method and information prompting method, device and electronic equipment
By setting a time period during the Bluetooth connection process to determine whether the reconnection is successful, and only sending a broadcast signal when the reconnection fails, the problem of false alerts during the Bluetooth connection process is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-08
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, electronic devices are prone to unnecessary prompts during Bluetooth connection due to mistransmission of broadcast signals, especially during reconnection, where surrounding devices may mistakenly alert the user, which is difficult to avoid.
By setting a time period during the reconnection process between the first device and the target device, a broadcast signal is sent if the connection fails; otherwise, no broadcast signal is sent. The system only outputs a prompt message when the reconnection fails, thus reducing false alarms.
This reduces the false alarm rate of the second device detecting the first device, avoids unnecessary prompts and interference, and improves the user experience.
Smart Images

Figure CN115604663B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, specifically to a signal transmission method, information prompting method, device, and electronic device. Background Technology
[0002] With the development of wireless communication technology, more and more electronic devices support Bluetooth communication connections. Currently, in order to provide users with a better Bluetooth connection experience, many terminal devices will display pop-up notifications when other Bluetooth-connectable electronic devices are detected. However, in some cases, pop-up notifications are unnecessary and can cause unnecessary informational interference for users. Summary of the Invention
[0003] This application discloses a signal transmission method, apparatus, electronic device, and storage medium, which can reduce the false alarm rate of a second device alerting a first device and avoid unnecessary prompts from interfering with the user.
[0004] This application discloses an information prompting method, apparatus, electronic device, and storage medium, which can reduce the false prompting rate of a second device prompting a first device and avoid unnecessary prompting information from interfering with the user.
[0005] This application discloses a signal transmission method applied to a first device, the method comprising:
[0006] In response to the target instruction, a Bluetooth connection command is sent to the target device, the Bluetooth connection command being used to reconnect to the target device;
[0007] If a reconnection with the target device is not successfully established within the first time period, a first broadcast signal is sent; and / or, if a reconnection with the target device is successfully established within the first time period, the first broadcast signal is not sent. The first broadcast signal is used to trigger the second device that receives the first broadcast signal to output a first prompt message, which is used to indicate that the first device has been discovered.
[0008] This application discloses an information prompting method applied to a second device, the method comprising:
[0009] If a broadcast signal is received from the first device, the broadcast signal is parsed to obtain the parsing result;
[0010] If the broadcast signal is determined to be a first broadcast signal based on the analysis result, then a first prompt message is output based on the first broadcast signal. The first prompt message is used to prompt the discovery of the first device. The first broadcast signal is sent when the first device fails to successfully reconnect to the target device within a first time period.
[0011] This application discloses an information prompting method applied to a second device, the method comprising:
[0012] Receive a first broadcast signal sent by a first device, wherein the first broadcast signal is sent by the first device in response to a target instruction;
[0013] The first broadcast signal is parsed. If the parsing result includes a record flag, then a first time period is waited. The record flag is used to indicate that a pairing record is stored in the first device.
[0014] If the first broadcast signal is still received after waiting for the first time period, a first prompt message is output based on the first broadcast signal. The first prompt message is used to indicate that the first device has been discovered.
[0015] This application discloses a signal transmission device applied to a first device, the device comprising:
[0016] The response module is used to respond to the target instruction and send a Bluetooth connection command to the target device, wherein the Bluetooth connection command is used to reconnect to the target device;
[0017] The broadcast sending module is configured to send a first broadcast signal if it fails to successfully reconnect to the target device within a first time period, and / or not send the first broadcast signal if it successfully reconnects to the target device within the first time period; the first broadcast signal is used to trigger the second device that receives the first broadcast signal to output a first prompt message, the first prompt message being used to indicate that the first device has been discovered.
[0018] This application discloses an information prompting device, applied to a second device, the device comprising:
[0019] The receiving module is configured to parse the broadcast signal and obtain the parsing result if it receives a broadcast signal sent by the first device.
[0020] The prompting module is used to output a first prompting message based on the first broadcast signal if the broadcast signal is determined to be a first broadcast signal according to the parsing result. The first prompting message is used to prompt the discovery of the first device, wherein the first broadcast signal is sent when the first device fails to successfully reconnect to the target device within a first time period.
[0021] This application discloses an information prompting device, applied to a second device, the device comprising:
[0022] A receiving module is configured to receive a first broadcast signal sent by a first device, wherein the first broadcast signal is sent by the first device in response to a target instruction;
[0023] The parsing module is used to parse the first broadcast signal. If the parsing result includes a record flag, then wait for a first time period. The record flag is used to indicate that the first device stores a pairing record.
[0024] The prompting module is used to output a first prompting message based on the first broadcast signal if the first broadcast signal is still received after waiting for a first time period. The first prompting message is used to indicate that the first device has been discovered.
[0025] This application discloses an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor implements the signal transmission method described above.
[0026] This application discloses an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor implements the information prompting method described above.
[0027] This application discloses a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the signal transmission method described above.
[0028] This application discloses a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the information prompting method described above.
[0029] In this embodiment, the first device responds to a target instruction by sending a Bluetooth connection command to the target device and reconnects with it via this command. If the first device fails to reconnect successfully with the target device within a first time period, it sends a first broadcast signal. Alternatively, if the first device successfully reconnects with the target device within the first time period, it does not send the first broadcast signal. The first broadcast signal triggers the second device, upon receiving it, to output a first prompt message. This first prompt message indicates that the first device has been discovered. In the scenario where the first device reconnects with the target device, the first device does not immediately send the first broadcast signal. That is, the second device (the target device or other devices around the first device) does not immediately output the first prompt message indicating the discovery of the first device. The first prompt message is only output when the first device fails to reconnect successfully with the target device within the first time period. This reduces the false alarm rate of the second device alerting the user to the discovery of the first device and avoids unnecessary prompts interfering with the user. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is an application scenario diagram of the signal transmission method and information prompting method in one embodiment;
[0032] Figure 2 This is a timing flowchart of a signal transmission method and an information prompting method in one embodiment;
[0033] Figure 3 Here is a flowchart of a signal transmission method in one embodiment;
[0034] Figure 4 This is a schematic diagram of a second device outputting a first prompt message in one embodiment;
[0035] Figure 5 Here is a flowchart of a signal transmission method in another embodiment;
[0036] Figure 6 A schematic diagram illustrating the output of a second prompt message by a target device in one embodiment;
[0037] Figure 7 Here is a flowchart of an information prompting method in one embodiment;
[0038] Figure 8 A flowchart of an information prompting method in another embodiment;
[0039] Figure 9 This is a block diagram of a signal transmission device in one embodiment;
[0040] Figure 10 This is a block diagram of an information prompting device in one embodiment;
[0041] Figure 11 This is a block diagram of an information prompting device in another embodiment;
[0042] Figure 12 This is a structural block diagram of an electronic device in one embodiment. Detailed Implementation
[0043] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0044] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0045] It is understood that the terms "first," "second," etc., used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first device may be referred to as a target device, and similarly, a target device may be referred to as a first device. Both the first device and the target device are electronic devices, but they are not the same electronic device. Furthermore, it should be noted that the terms "multiple," etc., used in the embodiments of this application refer to two or more.
[0046] Currently, more and more electronic devices support Bluetooth communication connections. In order to provide users with a better Bluetooth connection experience, many electronic devices will send a broadcast signal when they need to connect with other electronic devices via Bluetooth. The electronic device that receives the broadcast signal will analyze the signal strength of the broadcast signal to determine the distance between itself and the other electronic device, and will pop up a reminder to detect the other electronic device when the distance is close.
[0047] However, in certain situations, such as when an electronic device is reconnecting to a target device, if a broadcast signal is simultaneously transmitted during the reconnection process, other devices in the vicinity may also receive the broadcast signal, causing other devices to display pop-up notifications indicating that the electronic device has been detected. This creates unnecessary interference for the user. Furthermore, because the signal strength of broadcast signals is easily affected by other radio frequency signals in the environment and exhibits strong fluctuations, it is difficult for other devices to accurately measure the distance to the electronic device based on the broadcast signal strength. Therefore, interference with notification information is difficult to avoid.
[0048] This application provides a signal transmission method, information prompting method, device, electronic device, and storage medium, which can reduce the false alarm rate of a second device alerting a first device and avoid unnecessary prompts from interfering with the user.
[0049] Figure 1 This is an application scenario diagram of a signal transmission method and an information prompting method in one embodiment. For example... Figure 1 As shown, the application scenario may include a first device 10 and a target device 20. The first device 10 may include, but is not limited to, headphones (including but not limited to true wireless stereo (TWS) Bluetooth headphones), wearable devices (such as wristbands, smartwatches, smart glasses, etc.), in-vehicle terminals, mobile phones, etc. The target device 20 may include, but is not limited to, mobile phones, tablets, laptops, wearable devices, smart home devices (such as televisions, etc.). This application embodiment does not impose specific limitations on the first device and the target device. Both the first device 10 and the target device 20 may be equipped with a Bluetooth module and support Bluetooth wireless connection function.
[0050] The first device 10 can respond to a target instruction and send a Bluetooth connection command to the target device 20 according to the target instruction. The target device 20 can be a device that has previously paired and connected with the first device 10 via Bluetooth. Therefore, the first device 10 can directly send a Bluetooth connection command to the target device 20 to reconnect with it. If the first device 10 fails to reconnect with the target device 20 within the first time period, that is, if the reconnection between the first device 10 and the target device 20 fails, a first broadcast signal can be sent. The first broadcast signal is used to trigger the second device that receives the first broadcast signal to output a first prompt message.
[0051] In one embodiment, other devices 30 may exist around the first device 10. These other devices 30 may include, but are not limited to, mobile phones, tablets, laptops, wearable devices, etc. The second device that receives the first broadcast signal may be the target device 20 or another device 30 around the first device 10. The second device outputs a first prompt signal based on the received first broadcast signal. This first prompt signal can be used to indicate that the first device 10 has been discovered, thereby facilitating Bluetooth pairing and connection with the first device 10.
[0052] In one embodiment, if the first device 10 successfully reconnects to the target device 20 within a first time period, it does not send a first broadcast signal, thereby reducing the false alarm rate of the second device (target device 20 or other devices 30 around the first device 10, etc.) alerting the first device and avoiding unnecessary prompts from interfering with the user.
[0053] Figure 2 This is a timing flowchart of a signal transmission method and an information prompting method in one embodiment. Figure 2 As shown, for the first device 10, the target device 20, and other devices 30, the corresponding processes can be executed according to the following timing sequence:
[0054] Step 1: The first device 10 responds to the target instruction and sends a Bluetooth connection command to the target device 20. This Bluetooth connection command is used to reconnect with the target device 20.
[0055] Step 2: If the target device 20 receives the Bluetooth connection command sent by the first device 10, it establishes a Bluetooth connection with the first device 10 according to the Bluetooth connection command.
[0056] Step 3: If the first device 10 fails to reconnect to the target device 20 within the first time period, it can send a first broadcast signal. The first broadcast signal is used to trigger the second device that receives the first broadcast signal to output a first prompt message.
[0057] Optionally, the second device may include the target device 20 and / or other devices 30 surrounding the first device 10.
[0058] Step 4: The second device receives the first broadcast signal sent by the first device 10 and can output the first prompt information according to the first broadcast signal. The first prompt information is used to prompt the discovery of the first device 10. Optionally, the user can choose whether to pair and connect the second device with the first device 10 according to the first prompt information.
[0059] Optionally, the second device may include the target device 20 and / or other devices 30 around the first device 10. The second device that receives the first broadcast signal sent by the first device 10 may trigger the output of the first prompt information to provide a prompt.
[0060] In one embodiment, if the second device receives a first broadcast signal carrying a pairing identifier, it can determine that the first device is in a paired state and can output a first prompt message. In another embodiment, if the second device receives a first broadcast signal carrying a reconnection identifier, it can determine that the first device is in a reconnection state and can determine whether the second device stores a pairing record corresponding to the first device. If the second device stores a pairing record corresponding to the first device (for example, the target device stores a pairing record corresponding to the first device), it can not respond to the first broadcast signal and will not output the first prompt message; if the second device does not store a pairing record corresponding to the first device, it can output the first prompt message.
[0061] like Figure 3 As shown, in one embodiment, a signal transmission method is provided, which can be applied to the first device described above. The method may include the following steps:
[0062] Step 310: Respond to the target instruction and send a Bluetooth connection command to the target device. The Bluetooth connection command is used to reconnect with the target device.
[0063] The target instruction can refer to an instruction used to instruct the first device to establish a Bluetooth connection with other electronic devices. The target instruction can be generated by the first device based on a Bluetooth connection operation triggered by the user, or it can be generated by an accessory device of the first device based on a Bluetooth connection operation triggered by the user and sent to the first device.
[0064] The Bluetooth connection operation can be set according to actual needs, and the Bluetooth connection operation may differ for different first devices. Taking wireless Bluetooth headphones as an example, the Bluetooth connection operation may include opening the charging case of the wireless Bluetooth headphones. The target instruction may be generated and sent to the wireless Bluetooth headphones when the charging case detects the opening operation, or the Bluetooth connection operation may include taking the wireless Bluetooth headphones out of the charging case. Taking a mobile phone as an example, the Bluetooth connection operation may include turning on the phone's Bluetooth communication module, or triggering a connection button for Bluetooth connection with other devices in the settings page. Taking a smartwatch as an example, the Bluetooth connection operation may be detecting when the smartwatch changes from an unworn state to a worn state, or detecting when the smartwatch is picked up, or triggering a connection button for Bluetooth connection with other devices in the settings page. This application embodiment does not impose specific limitations on the Bluetooth connection operation.
[0065] The target device may refer to an electronic device that has been paired and connected with the first device. Optionally, the target device may be the electronic device that the first device recently established a Bluetooth connection with, or the electronic device that the first device has established a Bluetooth connection with most frequently in the past period of time, etc., without limitation.
[0066] The first device stores pairing data corresponding to the target device. This pairing data may include, but is not limited to, the target device's identity information and pairing verification information. The identity information may include, but is not limited to, the target device's MAC (Media Access Control) address and device name. The pairing verification information is used to establish pairing between the first device and the target device, and may include a random verification code, a Bluetooth PIN (Personal Identification Number), or a key. Based on the stored pairing data corresponding to the target device, the first device can directly send a Bluetooth connection command to the target device to reconnect. This reconnection means that the first device can establish a Bluetooth connection with the target device directly without needing to pair with it beforehand.
[0067] Step 320: Determine whether the reconnection with the target device was successful within the first time period. If yes, proceed to step 330; otherwise, proceed to step 340.
[0068] Step 330: Do not send the first broadcast signal.
[0069] Step 340: Send a first broadcast signal, which triggers the second device that receives the first broadcast signal to output a first prompt message, which prompts that the first device has been discovered.
[0070] Bluetooth communication, according to the Bluetooth protocol standard, can be divided into two modes: Classic Bluetooth and BLE (Bluetooth Low Energy Module). Classic Bluetooth is generally used for large data transmissions, while BLE significantly reduces power consumption and cost compared to Classic Bluetooth. Optionally, the Bluetooth connection established between the first device and the target device can be either a Classic Bluetooth connection or a BLE connection.
[0071] In related technologies, when a first device receives a target instruction, it immediately sends a first broadcast signal. Other devices that scan for this first broadcast signal will output a notification message indicating that the first device has been detected. Based on this notification message, users of other devices can choose whether to pair and connect with the first device. However, in cases where the first device only needs to reconnect to the target device, it may not want to be detected by other devices. Therefore, the notification messages output by other devices may cause information interference to the user.
[0072] In this embodiment of the application, when the first device sends a Bluetooth connection command to the target device, it does not send a first broadcast signal first. If the first device fails to successfully reconnect with the target device within a first time period, it sends a first broadcast signal. And / or, if it successfully reconnects with the target device within the first time period, it does not send a first broadcast signal.
[0073] In some embodiments, if the first device successfully reconnects with the target device within a first time period, it indicates that the first device no longer needs to be discovered by other devices and does not need to send a first broadcast signal. The first time period can be set according to actual needs, such as 2 seconds, 3 seconds, 5 seconds, etc., and is not limited here. The first time period is a sufficient time period for the first device to reconnect with the target device, and the first time period should not be too long to avoid causing users to mistakenly believe that the Bluetooth function of the first device has malfunctioned.
[0074] In some embodiments, if the first device fails to reconnect to the target device within the first time period, it indicates that the first device is temporarily unable to establish a Bluetooth connection with the target device (e.g., the distance between the first device and the target device is too far, or an error occurs during the Bluetooth connection process). In this case, the first device may send a first broadcast signal, which can be scanned and received by a second device within a certain range around the first device. Optionally, the second device may be the target device or other devices. If the second device scans and receives the first broadcast signal, it may output a first prompt message based on the first broadcast signal. The first prompt message is used to indicate that the first device has been discovered. The user of the second device may make a selection operation based on the first prompt message, and the second device will determine whether to pair and connect with the first device via Bluetooth based on the selection operation.
[0075] In some embodiments, the first prompt information may include, but is not limited to, display prompts, voice prompts, vibration prompts, etc., and the display prompts may include text prompts, pop-up prompts, image prompts, etc. For example, Figure 4 This is a schematic diagram illustrating the output of a first prompt message by a second device in one embodiment. For example... Figure 4 As shown, after receiving the first broadcast signal sent by the headset device, the second device can output a first prompt message, which can be a pop-up window 410. The pop-up window 410 indicates that the headset device has been detected. The user can choose whether to allow the second device to establish a Bluetooth connection with the headset device using the "Cancel" and "Connect" buttons in the pop-up window 410. When the second device detects that the user has triggered the "Connect" button, optionally, if the second device has not paired with the headset device before, it can pair with the headset device via Bluetooth and establish a Bluetooth connection after successful pairing; if the second device has previously paired with the headset device, it can directly establish a Bluetooth connection. When the second device detects that the user has triggered the "Cancel" button, the second device can cancel the display of pop-up window 410.
[0076] In this embodiment, the second device only outputs the first prompt message when the first device fails to reconnect with the target device. The first prompt message is not output during the reconnection process between the first device and the target device or when the reconnection is successful. This reduces the false alarm rate of the second device alerting the first device and avoids unnecessary prompt messages from interfering with the user.
[0077] In some embodiments, after receiving a first broadcast signal sent by the first device, the second device can determine the Received Signal Strength Indication (RSSI) corresponding to the first broadcast signal and determine whether the received signal strength is greater than a strength threshold. If the received signal strength is greater than the strength threshold, it indicates that the distance between the second device and the first device is within a set range, and a first prompt message can be output to prompt the user to discover the first device, facilitating subsequent pairing and connection operations. The set range may include the connectable range within which the first device can successfully establish a Bluetooth connection with the second device, the prompt range within which the second device can output the prompt message (a second device outside this prompt range can be considered not to be the device the user wants to connect to), etc. The set range can be set according to actual needs; it can be a range uniformly set at the factory for the second device, or it can be a range set by the user, such as 50 cm, 30 cm, 45 cm, etc., but is not limited to these.
[0078] If the received signal strength is not greater than the strength threshold, it indicates that the distance between the second device and the first device is too far and not within the set range. In this case, the first prompt message may not be output, thus avoiding the output of prompt messages when the device cannot be successfully connected to the first device, or preventing the output of prompt messages from electronic devices that the user does not want to establish a Bluetooth connection with. This further reduces the false alarm rate.
[0079] In some embodiments, if the first device fails to successfully reconnect to the target device within a first time period, it sends a first broadcast signal. If the first device successfully reconnects to the target device within the first time period, it may also send a third broadcast signal. Optionally, the third broadcast signal may carry a connection identifier, which can be used to indicate that the first device has successfully established a Bluetooth connection with the target device. If the device receiving the third broadcast signal is the target device, it may not respond to the third broadcast signal. If the device receiving the third broadcast signal is another device that is not the target device, it may output a third prompt message to indicate that the first device has established a connection with the target device. Furthermore, the third prompt message may also prompt the user to perform a pairing operation on the first device so that the first device enters a pairing state, thereby enabling pairing and connection with the first device. For example, the user may be prompted to press the pairing button on the first device or enter the Bluetooth connection interface of the first device to perform a pairing operation.
[0080] In some embodiments, if the first device successfully reconnects to the target device within a first time period, it does not send a first broadcast signal. If the first device fails to successfully reconnect to the target device within the first time period, it may also send a fourth broadcast signal. This fourth broadcast signal triggers the device receiving the signal to jump to the Bluetooth connection settings interface. The electronic device receiving the fourth broadcast signal can jump to the Bluetooth connection settings interface, where its device information is displayed. Users can choose whether to pair and connect the electronic device with the first device in the Bluetooth connection settings interface according to their needs. This automatic jump to the Bluetooth connection settings interface without manual user intervention is more convenient and faster.
[0081] In some embodiments, after the first device responds to the target instruction and sends a Bluetooth connection command to the target device, it can be determined whether a successful reconnection with the target device has occurred within a first time period. If so, the first broadcast signal may not be sent; otherwise, the first broadcast signal may be sent. As a specific implementation, the first broadcast signal may be a broadcast signal used to trigger the second device that receives the first broadcast signal to display a pop-up window for quickly discovering the first device. Through this pop-up window, the user can directly select to allow the second device to quickly pair and connect with the first device.
[0082] In this embodiment of the application, if the first device successfully reconnects with the target device within the first time period, it does not send the first broadcast signal. In the scenario where the first device reconnects with the target device, the first device does not immediately send the first broadcast signal. That is, the second device (the target device or other devices around the first device, etc.) will not immediately output the first prompt message of discovering the first device. The first prompt message is only output when the first device fails to reconnect with the target device within the first time period. This can reduce the false alarm rate of the second device reminding the first device to be discovered and avoid unnecessary prompt messages from interfering with the user.
[0083] like Figure 5 As shown, in another embodiment, a signal transmission method is provided, which can be applied to the first device described above. The method may include the following steps:
[0084] Step 502: In response to the target instruction, determine whether a pairing record is stored. If yes, proceed to step 504; otherwise, proceed to step 510.
[0085] When the first device receives the target instruction, it can respond to the target instruction and determine whether there is a pairing record stored in the memory. The pairing record may refer to the record of the first device's history of pairing with other electronic devices. The pairing record may include the pairing data corresponding to other electronic devices that have been paired with the first device.
[0086] If the first device does not store a pairing record, it indicates that the first device is in its factory default state (e.g., the first device is completely unused or has been reset to factory settings). Therefore, when a user-triggered Bluetooth connection operation is detected, the first device must pair with other electronic devices to establish a Bluetooth connection. Thus, the first device can directly send a first broadcast signal. The second device, upon receiving this first broadcast signal, can output a first prompt message to indicate that the first device has been discovered.
[0087] Furthermore, if the first device does not store a pairing record, it can enter a pairing state and send a first broadcast signal carrying a pairing identifier, which indicates that the first device is in a pairing state. Upon receiving the first broadcast signal carrying the pairing identifier, the second device can determine that the first device is in a pairing state and then output a first prompt message.
[0088] Step 504: Send a Bluetooth connection command to the target device according to the pairing record. The Bluetooth connection command is used to reconnect with the target device.
[0089] If the first device has a pairing record stored in it, it means that the first device has previously paired and connected with other electronic devices. Therefore, the Bluetooth connection operation triggered by the user is very likely to allow the first device to reconnect with other electronic devices that it has previously connected. Thus, the first device can first determine the target device based on the pairing record and send a Bluetooth connection command to the target device to reconnect with it through the Bluetooth connection command.
[0090] In some embodiments, the pairing record may also include the start time of the Bluetooth connection established between the first device and each other electronic device, and the other electronic device with the closest start time may be selected as the target device.
[0091] Optionally, the pairing records can be used to count the number of connections between the first device and other electronic devices within a certain period of time, such as counting the number of connections between the first device and other electronic devices within a month or a week, and selecting the other electronic device with the most connections as the target device.
[0092] Optionally, the pairing record may also include the end times when the first device disconnects from each other electronic device via Bluetooth. Based on the start times and end times of establishing Bluetooth connections between the first device and each other electronic device, the connection duration of each Bluetooth connection can be calculated, and the electronic device with the longest connection duration can be selected as the target device. It should be noted that the target device can also be determined from the pairing record using other methods, not limited to those mentioned above.
[0093] Furthermore, after determining the target device based on the pairing record, the pairing data corresponding to the target device can be obtained, and a Bluetooth connection command can be sent to the target device based on the pairing data, so as to reconnect with the target device through the Bluetooth connection command.
[0094] Step 506: Determine whether the reconnection with the target device was successful within the first time period. If yes, proceed to step 508; otherwise, proceed to step 510.
[0095] In some embodiments, in response to a target command, the first device may start a timer for a recording duration of a first time period and send a Bluetooth connection command to the target device. The timer accurately records the duration of the reconnection between the first device and the target device, preventing situations where the first device fails to establish a Bluetooth connection with the target device for an extended period without other devices outputting any notification information.
[0096] Optionally, the first time period can be determined based on the reconnection speed of the first device and / or the level of environmental signal interference. The reconnection speed of the first device may be related to the Bluetooth hardware module within the first device; different first devices have different Bluetooth modules with varying performance, resulting in different reconnection speeds. The level of environmental signal interference refers to the interference caused by other radio frequency signals in the environment surrounding the first device on the Bluetooth connection commands sent by the first device. For example, if multiple Bluetooth devices exist simultaneously around the first device, the level of environmental signal interference is relatively strong.
[0097] The first time period can be a fixed value or a dynamically adjusted value based on actual conditions. Taking a first time period determined based on the level of environmental signal interference as an example, when the first device detects a Bluetooth connection operation, it can first search for nearby Bluetooth devices of the same type and join the local area network formed by these devices, thus determining the number of nearby Bluetooth devices of the same type. These "same type" Bluetooth devices can refer to Bluetooth devices belonging to the same device type as the first device; for example, if the first device is a headset, all other Bluetooth devices of the same type will also be headsets. They can also refer to devices with the same or similar product models, such as small electronic devices (headphones, wristbands, smartwatches, Bluetooth speakers, etc.) or medium and large electronic products (such as televisions, refrigerators, etc.). The first device can determine the level of environmental signal interference based on the determined number of Bluetooth devices and then determine the first time period based on this level of interference. Optionally, the number of Bluetooth devices can be positively correlated with the first time period; the more Bluetooth devices there are, the longer the environmental signal interference, and thus the longer the first time period can be set.
[0098] In other embodiments, the first device may also record the time elapsed from sending a Bluetooth connection command to another electronic device to successfully establishing a Bluetooth connection with that other electronic device, and calculate an average time elapsed based on the recorded time elapsed. A first time period is then determined based on this average time elapsed. This first time period can be directly set to the average time elapsed, or it can be set to the sum of the average time elapsed and a time elapsed threshold. For example, if the average time elapsed is 1 second and the time elapsed threshold is 2 seconds, then the first time period can be 3 seconds, thereby ensuring that the first device can reconnect to the target device within the first time period.
[0099] The first device can obtain the reconnection result with the target device and determine whether the reconnection with the target device was successful within the first time period based on the reconnection result. As an optional implementation, the first device can determine whether the reconnection with the target device was successful only after the timer's recording duration has elapsed. The first device starts a timer with a recording duration of the first time period and sends a Bluetooth connection command to the target device. If the timer's recording duration has elapsed, it obtains the reconnection result with the target device. If the reconnection result is a failure, it can be determined that the reconnection with the target device was not successful within the first time period; if the reconnection result is a success, it can be determined that the reconnection with the target device was successful within the first time period.
[0100] As an alternative implementation, the first device can also determine in real time whether it has successfully reconnected to the target device within the recording duration of the timer. The first device starts a timer with a recording duration of a first time period and sends a Bluetooth connection command to the target device. If a successful reconnection result is detected during the timer's recording, it is determined that the reconnection with the target device was successful within the first time period. If no successful reconnection result is detected within the recorded time period, it is determined that the reconnection with the target device was unsuccessful within the first time period.
[0101] Step 508: Do not send the first broadcast signal.
[0102] Step 510: Send a first broadcast signal, which triggers the second device that receives the first broadcast signal to output a first prompt message, which prompts that the first device has been discovered.
[0103] If the first device does not store a pairing record, or if the first device fails to successfully reconnect to the target device within the first time period, the first device can directly enter the pairing state and send a first broadcast signal. In one embodiment, the first broadcast signal may be a BLE broadcast signal, which may include a pairing identifier to indicate that the first device is in a pairing state.
[0104] The second device can scan and receive broadcast signals sent by the first device, and can parse the received broadcast signals to obtain a parsing result. If the received broadcast signal is determined to be the first broadcast signal based on the parsing result, a first prompt message can be output based on the first broadcast signal to indicate the discovery of the first device. Optionally, different broadcast signals can correspond to different broadcast identifiers. The second device parses the received broadcast signals to obtain a parsing result, which includes at least a broadcast identifier. The broadcast identifier can be used to identify the broadcast signal. The broadcast identifier can include the data packet name of the broadcast signal, for example, the data packet name of the first broadcast signal is XXXX. The broadcast identifier can also include a specific identifier corresponding to the broadcast signal. For example, the specific identifier corresponding to the first broadcast signal can include a pairing identifier or a backlink identifier, but is not limited to these. The broadcast identifier can also be a custom identifier, which can be composed of one or more of letters, numbers, symbols, etc. The broadcast identifier can be used to distinguish various different broadcast signals.
[0105] Furthermore, the first broadcast signal can be used to trigger the second device to generate and output a first prompt message based on the device information of the first device when it determines that the first device is in a paired state according to the pairing identifier. After parsing the received broadcast signal, if the broadcast identifier in the parsing result is the first identifier, the second device can determine that the broadcast signal is the first broadcast signal. Further, if the first identifier is a pairing identifier, the second device can determine that the first device is in a paired state and can generate and output the first prompt message based on the device information of the first device. The device information of the first device may include, but is not limited to, the product name, product type, and manufacturer of the first device, etc., and is not restricted here.
[0106] In some embodiments, if the first device fails to successfully reconnect to the target device within a first time period, the first device may not enter the pairing state but may continue to remain in the reconnection state. The duration for which the first device remains in the reconnection state may be a second time period. During the second time period, the first device may send a first broadcast signal carrying a reconnection identifier, which can be used to indicate that the first device is in the reconnection state. This first broadcast signal can be used to trigger the second device, when determining that the first device is in the reconnection state based on the reconnection identifier, to output a first prompt message if the second device does not store a pairing record corresponding to the first device.
[0107] If the first device fails to successfully reconnect to the target device within the first time period, it remains in the reconnection state. While sending a first broadcast signal carrying a reconnection identifier, the first device can also continue to send Bluetooth connection commands to the target device to request a reconnection. The second device parses the received broadcast signal. If the first identifier included in the parsing result is a reconnection identifier, it can determine that the first device is in the reconnection state. The second device can then determine whether it has a pairing record corresponding to the first device. If the second device has a pairing record corresponding to the first device, it means that the second device has previously successfully paired and connected with the first device, and it can temporarily not respond to the first broadcast signal or output the first prompt message. If the second device does not have a pairing record corresponding to the first device, it can output the first prompt message based on the device information of the first device.
[0108] In one implementation, after receiving the broadcast signal, the second device can parse the broadcast signal to obtain the parsing result. It can determine whether the broadcast identifier contained in the parsing result is a pairing identifier or a backlink identifier (that is, whether it is the first identifier). If the broadcast identifier is a pairing identifier, it can be determined that the first device is in a pairing state and can respond to the first broadcast signal and output the first prompt information. If the broadcast identifier is a backlink identifier, it can be determined that the first device is in a backlink state and can further determine whether there is a pairing record corresponding to the first device stored. If there is a record stored, it can not respond to the first broadcast signal and not output the first prompt information. If there is no record stored, it can respond to the first broadcast signal and output the first prompt information.
[0109] For example, if the target device receives the first broadcast signal carrying the reconnection identifier, since the target device has a pairing record corresponding to the first device stored in it, it does not need to output the first prompt information. If it receives the Bluetooth connection command sent by the first device, it can directly establish a Bluetooth connection with the first device according to the Bluetooth connection command, thereby avoiding unnecessary prompt information from interfering with the user.
[0110] If the first device fails to establish a Bluetooth connection with the target device or other devices within the second time period, it can end the reconnection state, enter the pairing state, and send a first broadcast signal carrying a pairing identifier. This second time period can be set according to actual needs, such as 1 minute, 1 minute 30 seconds, 2 minutes, etc., but is not limited to this. Alternatively, the first device can remain in the reconnection state indefinitely, only entering the pairing state upon receiving a pairing operation triggered by the user.
[0111] In some embodiments, the transmission duration corresponding to the first broadcast signal can also be set, such as 5 minutes, 6 minutes, etc. During the transmission of the first broadcast signal by the first device, if the first device establishes a Bluetooth connection with the target device or other devices, the first device can stop transmitting the first broadcast signal; or, if the first device receives a pairing request from the second device, it can also stop transmitting the first broadcast signal and pair and connect with the second device. If the first device does not establish a Bluetooth connection with any other electronic device, it can also stop transmitting the first broadcast signal when the transmission duration corresponding to the first broadcast signal is reached, to avoid the second device continuously receiving the first broadcast signal and causing unnecessary information interference.
[0112] In this embodiment, the first device only sends a first broadcast signal carrying a pairing identifier when pairing is actually required (in factory settings or when reconnection with the target device fails). This reduces the false alarm rate when the second device alerts the user to the discovery of the first device and avoids unnecessary prompts that may disturb the user.
[0113] In one embodiment, after responding to the target instruction, the signal transmission method may further include: sending a second broadcast signal to the target device.
[0114] During the reconnection process with the target device, the first device may send a second broadcast signal to the target device. This second broadcast signal may be different from the first broadcast signal and may carry status information of the first device, describing its current state. This second broadcast signal triggers the target device to output a second prompt message containing this status information after establishing a Bluetooth physical link with the first device. Optionally, the second broadcast signal may also be a BLE broadcast signal. The second and first broadcast signals may correspond to different broadcast identifiers, with the second broadcast signal corresponding to a second identifier. For example, the second identifier may include a data packet name such as YYYY, or a specific identifier 00X2 carried in the second broadcast signal (distinguished from the pairing identifier 00X1 and reconnection identifier 00X0 of the first broadcast signal), but is not limited to these.
[0115] After receiving the Bluetooth connection command and the second broadcast signal, the target device can parse the second broadcast signal to obtain the status information of the first device. The target device can then establish a Bluetooth connection with the second device based on the Bluetooth connection command. After establishing a Bluetooth physical link with the first device, the target device can generate and output a second prompt message based on the status information.
[0116] Optionally, the first device may continuously send a second broadcast signal to the target device during the reconnection process. The process of establishing a Bluetooth connection between the target device and the first device may include two processes: establishing a Bluetooth physical link and establishing a Bluetooth protocol connection. This Bluetooth physical link may include an ACL (Asynchronous Connectionless) physical link, etc. In this embodiment, after successfully establishing a Bluetooth physical link with the first device, the target device can directly generate and output a second prompt message based on the battery information carried by the latest received second broadcast signal, without waiting for the Bluetooth connection to be established. This ensures the accuracy of the battery information contained in the second prompt message and improves the speed of the prompt.
[0117] Optionally, the status information may include battery level information, which indicates the remaining available battery power of the first device. The status information may also include other status information, such as the current wearing status of the smartwatch, the currently used operating system, and the battery level of the earphone charging case; however, this embodiment does not limit this information.
[0118] Optionally, the second prompt may include, but is not limited to, display prompts, voice prompts, vibration prompts, etc., and the display prompt may include text prompts, pop-up prompts, image prompts, etc. For example, Figure 6 This is a schematic diagram illustrating the output of a second prompt message by the target device in one embodiment. For example... Figure 6 As shown, the target device receives the Bluetooth connection command and the second broadcast signal sent by the earphone device. It can parse the second broadcast signal to obtain the earphone device's battery information. After the target device and the earphone device establish a Bluetooth physical link or after a successful Bluetooth connection, a second prompt message containing this battery information can be output. This second prompt message can be a pop-up window 620, which displays the earphone device's battery information, including the remaining battery power of the earphones and the charging case. The user of the target device can quickly obtain the first device's battery information through the second prompt message output by the target device, thus knowing that the first device has successfully reconnected to the target device.
[0119] Optionally, the second broadcast signal can be broadcast only during the first time period, or it can continue broadcasting beyond the first time period. The transmission duration of the second broadcast signal can be set to the first time period. If the first time period is reached, the first device can stop transmitting the second broadcast signal. Furthermore, if the first device successfully reconnects with the target device within the first time period, the transmission of the second broadcast signal can also be stopped directly.
[0120] In some embodiments, if the first device fails to successfully reconnect to the target device within a first time period, it sends a first broadcast signal. Upon receiving the first broadcast signal, the second device outputs a first prompt message. If it detects a triggered connection operation, it can send a pairing request to the first device. After successful pairing between the first and second devices, the first device can also send a second broadcast signal carrying status information to the second device. After successfully establishing a Bluetooth physical link with the first device, the second device can output a second prompt message containing this status information.
[0121] In some embodiments, while sending a Bluetooth connection command to the target device, the first device may send a second broadcast signal. After the first device and the target device establish a Bluetooth physical link, the target device may quickly output a second prompt message to ensure that the user is aware that the first device and the target device have successfully reconnected. This reduces the false alarm rate when the second device alerts the user to the discovery of the first device and also avoids the user being unable to accurately know the connection status of the first device without any prompt, thus better meeting the user's actual needs.
[0122] like Figure 7 As shown, in one embodiment, an information prompting method is provided, which can be applied to the second device described above. The information prompting method may include the following steps:
[0123] Step 710: If a broadcast signal sent by the first device is received, the broadcast signal is parsed to obtain the parsing result.
[0124] Step 720: If the broadcast signal is determined to be the first broadcast signal based on the analysis result, then a first prompt message is output based on the first broadcast signal. The first prompt message is used to indicate that the first device has been discovered. The first broadcast signal is sent when the first device fails to successfully reconnect to the target device within the first time period.
[0125] In one embodiment, the parsing result includes a broadcast identifier. Step 720 includes: if the broadcast identifier is a first identifier, then determining that the broadcast signal is a first broadcast signal; if the first identifier is a pairing identifier, then determining that the first device is in a paired state, and generating and outputting a first prompt message based on the device information of the first device.
[0126] In one embodiment, the parsing result includes a broadcast identifier. Step 720 includes: if the broadcast identifier is a first identifier, then determining that the broadcast signal is a first broadcast signal; if the first identifier is a backlink identifier, then determining that the first device is in a backlink state; if the second device does not store a pairing record corresponding to the first device, then outputting a first prompt message.
[0127] Optionally, if the second device stores a pairing record corresponding to the first device, it will not respond to the first broadcast signal and will not output the first prompt message.
[0128] It should be noted that the first identifier corresponding to the first broadcast signal can also be any identifier other than the pairing identifier and the reconnection identifier. For example, it can be a data packet name or other custom identifier, which can be composed of one or more of letters, numbers, symbols, etc. The first identifier only needs to be able to distinguish the first broadcast signal from other broadcast signals.
[0129] The descriptions of steps 710 to 720 can be found in the relevant descriptions of the signal transmission methods provided in the above embodiments, and will not be repeated here.
[0130] In this embodiment of the application, if the first device successfully reconnects with the target device within the first time period, it does not send the first broadcast signal. In the scenario where the first device reconnects with the target device, the first device does not immediately send the first broadcast signal. That is, the second device (the target device or other devices around the first device, etc.) will not immediately output the first prompt message of discovering the first device. The first prompt message is only output when the first device fails to reconnect with the target device within the first time period. This can reduce the false alarm rate of the second device reminding the first device to be discovered and avoid unnecessary prompt messages from interfering with the user.
[0131] In one embodiment, the second device may be the target device. After step 710, the information prompting method further includes: if the broadcast identifier included in the parsing result is a second identifier, then determining that the broadcast signal is a second broadcast signal; establishing a Bluetooth connection with the first device according to the Bluetooth connection command sent by the first device; and after establishing a Bluetooth physical link with the first device, outputting second prompt information containing status information. The second broadcast signal is sent by the first device in response to the target command, and the second broadcast signal carries the status information of the first device.
[0132] In this embodiment, while sending a Bluetooth connection command to the target device, the first device may also send a second broadcast signal. After the first device and the target device establish a Bluetooth physical link, the target device can quickly output a second prompt message to ensure that the user is aware that the first device and the target device have successfully reconnected. This reduces the false alarm rate when the second device alerts the user to the discovery of the first device and also avoids the user being unable to accurately know the connection status of the first device without any prompt, thus better meeting the user's actual needs.
[0133] like Figure 8 As shown, in one embodiment, another information prompting method is provided, which can be applied to the second device described above. This method may include the following steps:
[0134] Step 810: Receive the first broadcast signal sent by the first device.
[0135] Upon receiving the target instruction, the first device responds to the instruction and determines whether a pairing record is stored. If a pairing record is stored in the first device, it can send a Bluetooth connection command to the target device based on the pairing record to reconnect with the target device via the Bluetooth connection command. Simultaneously, the first device can respond to the target instruction by sending a first broadcast signal carrying a record flag, which indicates that a pairing record is stored in the first device.
[0136] If the first device does not store a pairing record, the first device can directly send a first broadcast signal without carrying a record flag.
[0137] Step 820: Analyze the first broadcast signal. If the analysis result includes a record flag, wait for a first time period. The record flag is used to indicate that a pairing record is stored in the first device.
[0138] If the second device receives the first broadcast signal sent by the first device, it can parse the first broadcast signal to obtain the parsing result. The second device can determine whether the parsing result includes a record flag. If the parsing result includes a record flag, it can be determined that the first device stores a pairing record, and the first device is currently likely to be reconnecting to the target device. Therefore, the second device can temporarily not respond to the first broadcast signal and wait for a first time period before determining whether to output the first prompt message.
[0139] Step 830: If the first broadcast signal is still received after waiting for the first time period, the first prompt information is output according to the first broadcast signal. The first prompt information is used to prompt the discovery of the first device.
[0140] If the first device successfully reconnects with the target device, it will stop sending the first broadcast signal. If the second device does not receive the first broadcast signal from the first device after waiting for the first time period, it indicates that the first device successfully reconnected with the target device within the first time period. In this case, the first prompt message does not need to be output to avoid unnecessary interference to the user of the second device.
[0141] If the second device still receives the first broadcast signal sent by the first device after waiting for the first time period, it means that the first device has not successfully reconnected to the target device within the first time period. In this case, the first prompt message can be output to indicate that the first device has been discovered. The user of the second device can make a selection operation based on the first prompt message. The second device determines whether to pair and connect with the first device via Bluetooth based on the selection operation.
[0142] In some embodiments, the second device may start a timer for recording a first time period and not respond to the received first broadcast signal during the timer's counting process. When the recording duration corresponding to the timer is reached, if the first broadcast signal sent by the first device can still be received, the second device will then respond to the first broadcast signal and output a first prompt message.
[0143] In some embodiments, after parsing the received first broadcast signal, if the parsing result does not include the record flag bit, the second device can determine that the first device does not store a pairing record, the first device is in the factory state and needs to be paired, and can directly output the first prompt information according to the first broadcast signal.
[0144] In this embodiment of the application, after the first device detects a Bluetooth connection operation, it can immediately send a first broadcast signal. After receiving the first broadcast signal, if the first broadcast signal carries a record flag, the second device will not respond to the first broadcast signal for the time being, and will wait for a first time period before determining whether to output the first prompt information. This can reduce the false alarm rate of the second device reminding the first device and avoid unnecessary prompt information from interfering with the user.
[0145] like Figure 9 As shown, in one embodiment, a signal transmission device 900 is provided, applied to the first device described above. The signal transmission device 900 includes a response module 910 and a broadcast transmission module 920.
[0146] The response module 910 is used to respond to the target instruction and send a Bluetooth connection command to the target device. This Bluetooth connection command is used to reconnect with the target device.
[0147] The broadcast sending module 920 is used to send a first broadcast signal if it fails to successfully reconnect to the target device within a first time period, and / or to not send the first broadcast signal if it successfully reconnects to the target device within the first time period; the first broadcast signal is used to trigger the second device that receives the first broadcast signal to output a first prompt message, the first prompt message being used to indicate that the first device has been discovered.
[0148] In this embodiment of the application, if the first device successfully reconnects with the target device within the first time period, it does not send the first broadcast signal. In the scenario where the first device reconnects with the target device, the first device does not immediately send the first broadcast signal. That is, the second device (the target device or other devices around the first device, etc.) will not immediately output the first prompt message of discovering the first device. The first prompt message is only output when the first device fails to reconnect with the target device within the first time period. This can reduce the false alarm rate of the second device reminding the first device to be discovered and avoid unnecessary prompt messages from interfering with the user.
[0149] In one embodiment, the response module 910 is further configured to respond to a target instruction, and if the first device stores a pairing record, send a Bluetooth connection command to the target device according to the pairing record.
[0150] In one embodiment, the broadcast transmission module 920 is further configured to transmit a first broadcast signal if no pairing record is stored in the first device.
[0151] In one embodiment, the first broadcast signal includes a pairing identifier, which is used to indicate that the first device is in a paired state. The first broadcast signal is used to trigger the second device to generate and output a first prompt message based on the device information of the first device when it determines that the first device is in a paired state according to the pairing identifier.
[0152] In one embodiment, the broadcast sending module 920 is further configured to, if it fails to successfully reconnect to the target device within a first time period, send a first broadcast signal carrying a reconnection identifier within a second time period. The reconnection identifier is used to indicate that the first device is in a reconnection state. The first broadcast signal is used to trigger the second device to output a first prompt message if the second device does not store a pairing record corresponding to the first device when it determines that the first device is in a reconnection state based on the reconnection identifier; and to send a first broadcast signal carrying a pairing identifier if the first device fails to establish a Bluetooth connection with the target device or other devices within the second time period.
[0153] In one embodiment, the signal transmission device 900 includes a response module 910 and a broadcast transmission module 920, as well as a reconnection result determination module.
[0154] The response module 910 is also used to respond to the target command, start a timer for recording a duration of the first time period, and send a Bluetooth connection command to the target device.
[0155] The reconnection result determination module is used to obtain the reconnection result with the target device if the recording duration of the timer is reached; if the reconnection result is a reconnection failure, it is determined that the reconnection with the target device was not successful within the first time period; and if the reconnection result is a reconnection success, it is determined that the reconnection with the target device was successful within the first time period.
[0156] In one embodiment, the reconnection result determination module is further configured to determine that the reconnection with the target device was successful within the first time period if a successful reconnection result with the target device is detected during the timing of the timer; and to determine that the reconnection with the target device was not successful within the first time period if no successful reconnection result with the target device is detected by the end of the timer's recording duration.
[0157] In one embodiment, the first time period is determined based on the reconnection speed of the first device and / or the level of environmental signal interference; the first broadcast signal is a Bluetooth Low Energy (BLE) broadcast signal.
[0158] In this embodiment, the first device only sends a first broadcast signal carrying a pairing identifier when pairing is actually required (in factory settings or when reconnection with the target device fails). This reduces the false alarm rate when the second device alerts the user to the discovery of the first device and avoids unnecessary prompts that may disturb the user.
[0159] In one embodiment, the broadcast sending module 920 is further configured to send a second broadcast signal to the target device after responding to the target instruction. The second broadcast signal carries the status information of the first device. The second broadcast signal is used to trigger the target device to output a second prompt message containing the status information after establishing a Bluetooth physical link with the first device.
[0160] In one embodiment, the status information includes battery level information, and the second broadcast signal is a BLE broadcast signal.
[0161] In this embodiment, while sending a Bluetooth connection command to the target device, the first device may also send a second broadcast signal. After the first device and the target device establish a Bluetooth physical link, the target device can quickly output a second prompt message to ensure that the user is aware that the first device and the target device have successfully reconnected. This reduces the false alarm rate when the second device alerts the user to the discovery of the first device and also avoids the user being unable to accurately know the connection status of the first device without any prompt, thus better meeting the user's actual needs.
[0162] like Figure 10 As shown, in one embodiment, an information prompting device 1000 is provided, applied to the second device described above. The information prompting device 1000 includes a receiving module 1010 and a prompting module 1020.
[0163] The receiving module 1010 is used to parse the broadcast signal and obtain the parsing result if it receives the broadcast signal sent by the first device.
[0164] The prompt module 1020 is used to output a first prompt message if the broadcast signal is determined to be a first broadcast signal according to the analysis result. The first prompt message is used to prompt the discovery of a first device. The first broadcast signal is sent when the first device fails to successfully reconnect to the target device within a first time period.
[0165] In one embodiment, the parsing result includes a broadcast identifier. The prompting module 1020 is further configured to determine that the broadcast signal is a first broadcast signal if the broadcast identifier is a first identifier, and determine that the first device is in a paired state if the first identifier is a pairing identifier, and generate and output a first prompt message based on the device information of the first device.
[0166] In one embodiment, the prompting module 1020 is further configured to determine that the broadcast signal is a first broadcast signal if the broadcast identifier is a first identifier, and determine that the first device is in a back-connection state if the first identifier is a back-connection identifier; and output a first prompt message if the second device does not store a pairing record corresponding to the first device.
[0167] In this embodiment of the application, if the first device successfully reconnects with the target device within the first time period, it does not send the first broadcast signal. In the scenario where the first device reconnects with the target device, the first device does not immediately send the first broadcast signal. That is, the second device (the target device or other devices around the first device, etc.) will not immediately output the first prompt message of discovering the first device. The first prompt message is only output when the first device fails to reconnect with the target device within the first time period. This can reduce the false alarm rate of the second device reminding the first device to be discovered and avoid unnecessary prompt messages from interfering with the user.
[0168] In one embodiment, the second device may be the target device. The prompting module 1020 is further configured to: if the broadcast identifier included in the parsing result is a second identifier, determine that the broadcast signal is a second broadcast signal, which is sent by the first device in response to a target instruction, and the second broadcast signal carries the status information of the first device; and to establish a Bluetooth connection with the first device according to the Bluetooth connection command sent by the first device, and after establishing a Bluetooth physical link with the first device, output a second prompting message containing the status information.
[0169] In this embodiment, while sending a Bluetooth connection command to the target device, the first device may also send a second broadcast signal. After the first device and the target device establish a Bluetooth physical link, the target device can quickly output a second prompt message to ensure that the user is aware that the first device and the target device have successfully reconnected. This reduces the false alarm rate when the second device alerts the user to the discovery of the first device and also avoids the user being unable to accurately know the connection status of the first device without any prompt, thus better meeting the user's actual needs.
[0170] like Figure 11 As shown, in one embodiment, an information prompting device 1100 is provided and applied to the second device described above. The information prompting device 1100 includes a receiving module 1110, a parsing module 1120, and a prompting module 1130.
[0171] The receiving module 1110 is used to receive a first broadcast signal sent by the first device, which is sent by the first device in response to a target instruction.
[0172] The parsing module 1120 is used to parse the first broadcast signal. If the parsing result includes a record flag, it waits for a first time period. The record flag is used to indicate that a pairing record is stored in the first device.
[0173] The prompt module 1130 is used to output a first prompt message if the first broadcast signal is still received after waiting for a first time period. The first prompt message is used to prompt the discovery of the first device.
[0174] In one embodiment, the prompting module 1130 is further configured to output a first prompting message based on the first broadcast signal if the parsing result does not include the record flag bit.
[0175] In this embodiment of the application, after the first device detects a Bluetooth connection operation, it can immediately send a first broadcast signal. After receiving the first broadcast signal, if the first broadcast signal carries a record flag, the second device will not respond to the first broadcast signal for the time being, and will wait for a first time period before determining whether to output the first prompt information. This can reduce the false alarm rate of the second device reminding the first device and avoid unnecessary prompt information from interfering with the user.
[0176] Figure 12 This is a structural block diagram of an electronic device in one embodiment. For example... Figure 12 As shown, the electronic device 1200 may include one or more of the following components: a processor 1210 and a memory 1220 coupled to the processor 1210, wherein the memory 1220 may store one or more computer programs, which may be configured to implement the signal transmission methods as described in the above embodiments when executed by one or more processors 1210.
[0177] Processor 1210 may include one or more processing cores. Processor 1210 connects to various parts within the electronic device 1200 using various interfaces and lines, and performs various functions and processes data of the electronic device 1200 by running or executing instructions, programs, code sets, or instruction sets stored in memory 1220, and by calling data stored in memory 1220. Optionally, processor 1210 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 1210 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 1210 and may be implemented separately using a communication chip.
[0178] The memory 1220 may include random access memory (RAM) or read-only memory (ROM). The memory 1220 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1220 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the electronic device 1200 during use.
[0179] Understandably, the electronic device 1200 may include more or fewer structural elements than those shown in the above block diagram, such as a power module, physical buttons, a Bluetooth module, sensors, etc., and may not be limited herein.
[0180] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the signal transmission method as described in the above embodiments.
[0181] This application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the signal transmission method described in the above embodiments.
[0182] In one embodiment, another electronic device is provided, the electronic device including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to implement the information prompting method as described in the above embodiments.
[0183] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the information prompting method as described in the above embodiments.
[0184] This application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the information prompting method as described in the above embodiments.
[0185] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, ROM, etc.
[0186] Any references to memory, storage, databases, or other media used herein may include non-volatile and / or volatile memory. Suitable non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache. By way of illustration and not limitation, RAM may take many forms, such as Static RAM (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus DRAM (RDRAM), and Direct Rambus DRAM (DRDRAM).
[0187] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0188] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0189] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0190] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0191] The foregoing has provided a detailed description of a signal transmission method, information prompting method, apparatus, and electronic device disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A signal transmission method, characterized in that, Applied to a first device, the method includes: In response to the target instruction, a Bluetooth connection command is sent to the target device, the Bluetooth connection command being used to reconnect to the target device; If a reconnection with the target device is not successfully established within the first time period, a first broadcast signal is sent, and / or, if a reconnection with the target device is successfully established within the first time period, the first broadcast signal is not sent; the first broadcast signal is used to trigger the second device that receives the first broadcast signal to output a first prompt message, the first prompt message being used to indicate that the first device has been discovered; the first device is in a reconnection state within the first time period; the second device includes the target device and / or other devices.
2. The method according to claim 1, characterized in that, The response to the target instruction, sending a Bluetooth connection command to the target device, includes: In response to a target instruction, if the first device stores a pairing record, a Bluetooth connection command is sent to the target device based on the pairing record.
3. The method according to claim 2, characterized in that, Following the response to the target instruction, the method further includes: If the first device does not store a pairing record, then the first broadcast signal is sent.
4. The method according to any one of claims 1 to 3, characterized in that, The first broadcast signal includes a pairing identifier, which indicates that the first device is in a paired state. The first broadcast signal is used to trigger the second device to generate and output the first prompt information based on the device information of the first device when it determines that the first device is in a paired state according to the pairing identifier.
5. The method according to claim 4, characterized in that, If a reconnection with the target device is not successfully established within the first time period, a first broadcast signal is sent, including: If the reconnection with the target device is not successful within the first time period, a first broadcast signal carrying a reconnection identifier is sent within the second time period. The reconnection identifier is used to indicate that the first device is in a reconnection state. The first broadcast signal is used to trigger the second device to output the first prompt information if the second device does not store a pairing record corresponding to the first device when it determines that the first device is in a reconnection state based on the reconnection identifier. If the first device fails to establish a Bluetooth connection with the target device or other devices within the second time period, it sends a first broadcast signal carrying the pairing identifier.
6. The method according to claim 1, characterized in that, Following the response to the target instruction, the method further includes: A second broadcast signal is sent to the target device. The second broadcast signal carries the status information of the first device. The second broadcast signal is used to trigger the target device to output a second prompt message containing the status information after establishing a Bluetooth physical link with the first device.
7. The method according to claim 6, characterized in that, The status information includes battery information, and the second broadcast signal is a Bluetooth Low Energy (BLE) broadcast signal.
8. The method according to any one of claims 1-3 and 5-7, characterized in that, The response to the target instruction, sending a Bluetooth connection command to the target device, includes: In response to the target command, start a timer for the first time period to record the duration, and send a Bluetooth connection command to the target device.
9. The method according to claim 8, characterized in that, After the timer for the startup record duration of the first time period starts counting and a Bluetooth connection command is sent to the target device, the method further includes: If the recorded duration of the timer is reached, then obtain the reconnection result with the target device; If the reconnection result is a failure, it is determined that the reconnection with the target device was not successful within the first time period. If the reconnection result is successful, then it is determined that the reconnection with the target device was successful within the first time period. or, After the timer for the startup record duration of the first time period starts counting and a Bluetooth connection command is sent to the target device, the method further includes: If a successful reconnection to the target device is detected during the timing of the timer, it is determined that a successful reconnection to the target device was achieved within the first time period. If no successful reconnection result with the target device is detected within the recorded duration of the timer, it is determined that a successful reconnection with the target device was not achieved within the first time period.
10. The method according to claim 1, characterized in that, The first time period is determined based on the reconnection speed of the first device and / or the degree of environmental signal interference; The first broadcast signal is a BLE broadcast signal.
11. An information prompting method, characterized in that, Applied to a second device, the method includes: If a broadcast signal is received from the first device, the broadcast signal is parsed to obtain the parsing result; If the broadcast signal is determined to be a first broadcast signal based on the analysis result, then a first prompt message is output based on the first broadcast signal. The first prompt message is used to indicate that the first device has been discovered. The first broadcast signal is sent when the first device fails to successfully reconnect with the target device within a first time period. During the first time period, the first device is in a reconnection state. The second device includes the target device and / or other devices.
12. The method according to claim 11, characterized in that, The parsing result includes a broadcast identifier. If the broadcast signal is determined to be a first broadcast signal based on the parsing result, then a first prompt message is output based on the first broadcast signal, including: If the broadcast identifier is the first identifier, then the broadcast signal is determined to be the first broadcast signal; If the first identifier is a pairing identifier, then the first device is determined to be in a paired state, and the first prompt message is generated and output based on the device information of the first device.
13. The method according to claim 11, characterized in that, The parsing result includes a broadcast identifier. If the broadcast signal is determined to be a first broadcast signal based on the parsing result, then a first prompt message is output based on the first broadcast signal, including: If the broadcast identifier is the first identifier, then the broadcast signal is determined to be the first broadcast signal; If the first identifier is a backlink identifier, then the first device is determined to be in a backlink state; If the second device does not store a pairing record corresponding to the first device, the first prompt message will be output.
14. The method according to any one of claims 11 to 13, characterized in that, After parsing the broadcast signal and obtaining the parsing result, the method further includes: If the broadcast identifier included in the parsing result is the second identifier, then the broadcast signal is determined to be the second broadcast signal, which is sent by the first device in response to the target instruction, and the second broadcast signal carries the status information of the first device; Based on the Bluetooth connection command sent by the first device, a Bluetooth connection is established with the first device, and after a Bluetooth physical link is established with the first device, a second prompt message containing the status information is output.
15. A signal transmission device, characterized in that, Applied to a first device, the device includes: The response module is used to respond to the target instruction and send a Bluetooth connection command to the target device, wherein the Bluetooth connection command is used to reconnect to the target device; A broadcast sending module is configured to send a first broadcast signal if it fails to successfully reconnect to the target device within a first time period, and / or not send the first broadcast signal if it successfully reconnects to the target device within the first time period; the first broadcast signal is used to trigger a second device that receives the first broadcast signal to output a first prompt message, the first prompt message being used to indicate that the first device has been discovered; the first device is in a reconnection state within the first time period; the second device includes the target device and / or other devices.
16. An information prompting device, characterized in that, Applied to a second device, the device includes: The receiving module is configured to parse the broadcast signal and obtain the parsing result if it receives a broadcast signal sent by the first device. The prompting module is configured to output a first prompting message based on the first broadcast signal if the broadcast signal is determined to be a first broadcast signal according to the parsing result. The first prompting message is used to indicate that the first device has been discovered. The first broadcast signal is sent when the first device fails to successfully reconnect to the target device within a first time period. During the first time period, the first device is in a reconnection state. The second device includes the target device and / or other devices.
17. An electronic device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 1 to 10.
18. An electronic device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 11 to 14.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 10.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 11 to 14.
Citation Information
Patent Citations
System and method for controlling earphones through charging bin
CN110830868A
Connection method, device and equipment and computer storage medium
CN113015065A
Short-distance wireless communication connection method and system, active pen, and touch screen
WO2020024273A1