A bluetooth broadcast monitoring method, electronic device and storage medium

CN116887196BActive Publication Date: 2026-09-18SHANGHAI INGEEK CYBER SECURITY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311037453.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-16
Publication Date
2026-09-18
Estimated Expiration
2043-08-16

AI Technical Summary

Technical Problem

[0002]手机等智能设备可以通过与车载蓝牙进行连接以作为数字钥匙打开车门等车上的部件,在车载蓝牙广播异常无法与手机等设备连接时,通常的做法是通过蓝牙定时复位,这种方式不能够主动监测异常及时发现问题,由此不能真正解决问题(如复位蓝牙后广播异常,需要等到下一次复位才能复位),做法相对比较粗暴,掩盖了问题,不利于后续持续改进,因此,亟需一种蓝牙广播监听方法以解决上述问题

Benefits of technology

[0016] According to another aspect of the present invention, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions for causing a processor to execute and implement the Bluetooth broadcast monitoring method described in any embodiment of the present invention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116887196B_ABST
    Figure CN116887196B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a Bluetooth broadcast monitoring method, an electronic device and a storage medium. The method is applied to a slave node, and comprises: in response to an instruction that a Bluetooth master node is not connected by a terminal device, starting monitoring and determining target broadcast parameters issued by the Bluetooth master node from the monitored broadcast parameters; determining broadcast signal representation information corresponding to the Bluetooth master node according to the target broadcast parameters; and determining a monitoring result of the Bluetooth master node according to the broadcast signal representation information. According to the embodiments of the present application, the target broadcast parameters issued by the Bluetooth master node are determined from the monitored broadcast parameters, the broadcast signal representation information corresponding to the Bluetooth master node is determined according to the target broadcast parameters, and the monitoring result of the Bluetooth master node is determined based on the broadcast signal representation information, so that the stability and reliability of the detected master broadcast signal can be improved, the misjudgment rate can be reduced, the Bluetooth master node is actively monitored, and the problem can be found and solved in time, so that the stability is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle technology, and more particularly to a Bluetooth broadcast monitoring method, electronic device, and storage medium. Background Technology

[0002] Smart devices such as mobile phones can connect to the vehicle's Bluetooth system to act as digital keys to unlock car doors and other vehicle components. When the vehicle's Bluetooth broadcast malfunctions and cannot connect to mobile phones or other devices, the usual practice is to reset the Bluetooth system periodically. This method cannot actively monitor the anomaly and detect the problem in time, thus failing to truly solve the problem (e.g., if the broadcast malfunctions after resetting Bluetooth, it needs to wait until the next reset to resolve the issue). This approach is relatively crude, masks the problem, and is not conducive to subsequent continuous improvement. Therefore, there is an urgent need for a Bluetooth broadcast monitoring method to solve the above problems. Summary of the Invention

[0003] In view of this, the present invention provides a Bluetooth broadcast monitoring method, electronic device and storage medium, which can improve the stability and reliability of detecting the broadcast signal of the master node, reduce the false judgment rate, and actively monitor the Bluetooth master node for abnormal connection by terminal devices to promptly detect and handle problems, thus ensuring stability.

[0004] According to one aspect of the present invention, an embodiment of the present invention provides a Bluetooth broadcast monitoring method, applied to a slave node, the method comprising:

[0005] When a Bluetooth master node is not connected to a terminal device, the system starts listening and determines the target broadcast parameters sent by the Bluetooth master node from the listening broadcast parameters.

[0006] The broadcast signal characterization information corresponding to the Bluetooth master node is determined based on the target broadcast parameters; wherein, the broadcast signal characterization information includes at least: signal strength, signal quality, and frequency offset.

[0007] The monitoring results of the Bluetooth master node are determined based on the broadcast signal characterization information.

[0008] According to another aspect of the present invention, embodiments of the present invention also provide a Bluetooth broadcast monitoring device, applied to a slave node, the device comprising:

[0009] The parameter determination module is used to start listening and determine the target broadcast parameters sent by the Bluetooth master node from the listening broadcast parameters when the Bluetooth master node is not connected to the terminal device.

[0010] The information determination module is used to determine the broadcast signal characterization information corresponding to the Bluetooth master node based on the target broadcast parameters; wherein, the broadcast signal characterization information includes at least: signal strength, signal quality, and frequency offset.

[0011] The result determination module is used to determine the monitoring result of the Bluetooth master node based on the broadcast signal characterization information.

[0012] According to another aspect of the present invention, embodiments of the present invention also provide an electronic device, the electronic device comprising:

[0013] At least one processor; and

[0014] A memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the Bluetooth broadcast monitoring method according to any embodiment of the present invention.

[0016] According to another aspect of the present invention, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions for causing a processor to execute and implement the Bluetooth broadcast monitoring method described in any embodiment of the present invention.

[0017] The technical solution of this invention determines the target broadcast parameters sent by the Bluetooth master node from the monitoring broadcast parameters, determines the broadcast signal characterization information corresponding to the Bluetooth master node based on the target broadcast parameters, and determines the monitoring result of the Bluetooth master node based on the broadcast signal characterization information. This can improve the stability and reliability of detecting the master node's broadcast signal, reduce the false judgment rate, and actively monitor the Bluetooth master node for abnormal connection by terminal devices to promptly detect and handle problems, thus ensuring stability.

[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 A flowchart of a Bluetooth broadcast monitoring method provided in an embodiment of the present invention;

[0021] Figure 2 A flowchart illustrating another Bluetooth broadcast monitoring method provided in an embodiment of the present invention;

[0022] Figure 3 This is an architecture diagram of a Bluetooth broadcast monitoring method provided in an embodiment of the present invention;

[0023] Figure 4 This is a structural block diagram of a Bluetooth broadcast monitoring device provided in an embodiment of the present invention;

[0024] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0025] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0027] In one embodiment, Figure 1 This is a flowchart of a Bluetooth broadcast monitoring method according to an embodiment of the present invention. This embodiment is applicable to the situation where the vehicle Bluetooth master node is not connected to the terminal device and the Bluetooth master node is being monitored. The method can be executed by a Bluetooth broadcast monitoring device, which can be implemented in hardware and / or software and can be configured in an electronic device.

[0028] like Figure 1 As shown, the Bluetooth broadcast monitoring method in this embodiment is applied to a slave node, and the specific steps of the method include:

[0029] S110. In response to an instruction that the Bluetooth master node is not connected to by the terminal device, start listening and determine the target broadcast parameters sent by the Bluetooth master node from the listening broadcast parameters.

[0030] In this context, the Bluetooth master node refers to the in-vehicle Bluetooth master node, and the terminal device refers to the device connected to the Bluetooth master node in the vehicle. This terminal device can be a mobile phone, iPad, or other Bluetooth-enabled device. The target broadcast parameters can be understood as the broadcast parameters used by the Bluetooth master node when broadcasting.

[0031] In this embodiment, the broadcast listening parameters can be understood as the relevant broadcast parameters listened to by the slave node within its listening range. These broadcast listening parameters may include, but are not limited to, the Bluetooth master node's transmit power, master node broadcast period, Bluetooth master node's public service address, and Bluetooth master node's random resolvable private address identity resolution key (IRK). Of course, in addition to the Bluetooth master node's broadcast parameters, it may also include broadcast listening parameters from other devices or Bluetooth devices; this embodiment does not impose any restrictions. It should be noted that the target broadcast parameters are the broadcast parameters when the Bluetooth master node broadcasts, i.e., the broadcast parameters that need to be parsed.

[0032] In this embodiment, the Bluetooth master node can include two working states: one where the Bluetooth master node is connected to the terminal device, and the other where the Bluetooth master node is not connected to the terminal device. In this embodiment, when the Bluetooth master node is connected to the terminal device, it is assumed that the Bluetooth master node and the terminal device can communicate normally. This can be understood as the user being able to use the terminal device to control the vehicle Bluetooth master node to perform operations such as opening the vehicle door. When the Bluetooth master node is not connected to the terminal device, the slave node needs to perform a health check on the Bluetooth master node. This can be understood as the Bluetooth master node needing to broadcast messages, transmitting the broadcast parameters of the Bluetooth master node to the slave node. The slave node starts listening to monitor the broadcast status of the Bluetooth master node. This broadcast status can include the Bluetooth master node being in a normal broadcast state and the Bluetooth master node not broadcasting. If the Bluetooth master node is not broadcasting or has a broadcast problem, the slave node will not receive the broadcast message from the Bluetooth master node.

[0033] In this embodiment, the monitoring broadcast parameters within the preset reception signal coverage area can be monitored. From these monitoring broadcast parameters, the target broadcast parameters can be extracted based on the random resolvable private address identity resolution code (IRK) of the Bluetooth master node. In some embodiments, the broadcast content can also be monitored according to the media access control address in the broadcast information, and a corresponding monitoring message of the Bluetooth master node can be generated based on the monitored broadcast content. The target broadcast parameters of the Bluetooth master node can then be determined from the monitoring message. This embodiment does not impose any limitations on this.

[0034] S120. Determine the broadcast signal characterization information corresponding to the Bluetooth master node based on the target broadcast parameters; wherein, the broadcast signal characterization information includes at least: signal strength, signal quality and frequency offset.

[0035] Among them, the broadcast signal characterization information can be understood as the signal characterization parameters when the Bluetooth master node broadcasts. The broadcast signal characterization information can be used to characterize whether the broadcast signal of the Bluetooth master node is within the standard range.

[0036] In this embodiment, the Bluetooth master node sends broadcast listening parameters to the slave node via CAN / LIN. When the master node is not connected to a terminal device, the slave node receives the broadcast listening parameters within its signal coverage area and initiates listening. It can analyze the target broadcast parameters corresponding to the Bluetooth master node to determine the broadcast signal characterization information based on the analysis results. This can be understood as the slave node analyzing and processing the monitored broadcast information, including decoding broadcast packet data, measuring signal strength, and parsing broadcast packet data. It should be noted that the broadcast signal characterization information corresponding to the Bluetooth master node in this embodiment can characterize the quality of the Bluetooth master node's broadcast signal. For example, signal strength can characterize whether the measured broadcast signal strength of the Bluetooth master node is within the normal range; frequency offset can characterize whether the frequency of the Bluetooth master node during broadcasting is deviated. This embodiment does not impose limitations on this.

[0037] S130. Determine the monitoring results of the Bluetooth master node based on the broadcast signal characterization information.

[0038] In this embodiment, when the slave node detects the broadcast signal of the Bluetooth master node, it immediately records the target broadcast parameters corresponding to the Bluetooth master node, including the master node's Bluetooth address, broadcast packet data, and signal strength. Based on the recorded processing results, the broadcast signal status of the Bluetooth master node can be determined, and the master node's signal strength, signal quality, and frequency offset can be sent to the user terminal along with the corresponding fault cause. This allows the user to take appropriate action based on the fault cause. In other words, the monitoring result of the Bluetooth master node can be determined based on any one of the signal strength, signal quality, and frequency offset information in the broadcast signal characterization information.

[0039] The technical solution of this invention determines the target broadcast parameters sent by the Bluetooth master node from the monitoring broadcast parameters, determines the broadcast signal characterization information corresponding to the Bluetooth master node based on the target broadcast parameters, and determines the monitoring result of the Bluetooth master node based on the broadcast signal characterization information. This can improve the stability and reliability of detecting the master node's broadcast signal, reduce the false judgment rate, and actively monitor the Bluetooth master node for abnormal connection by terminal devices to promptly detect and handle problems, thus ensuring stability.

[0040] In one embodiment, the method further includes:

[0041] When a Bluetooth master node is not connected to by a terminal device, if the target broadcast parameters of the Bluetooth master node are not detected within a preset first time period, the microcontroller unit in the vehicle is notified to reset the Bluetooth master node and record the event. If the target broadcast parameters of the Bluetooth master node are still not detected after the Bluetooth master node is reset, the listening result of the Bluetooth master node is determined to be that the Bluetooth master node did not broadcast.

[0042] The preset first duration refers to the preset duration for monitoring the Bluetooth master node. This preset duration can be customized based on experience, experiments, etc., and this embodiment does not impose any restrictions on it.

[0043] In this embodiment, in response to an instruction that the Bluetooth master node is not connected to by a terminal device, if the target broadcast parameters of the Bluetooth master node are not detected within a preset first time period, it indicates that the Bluetooth master node may be failing to broadcast. After the preset first time period, the microcontroller unit in the vehicle can be notified to reset the Bluetooth master node and record the event. If the target broadcast parameters of the Bluetooth master node are still not detected after the reset, it is determined that the Bluetooth master node has not broadcast, and there may be a problem with the Bluetooth master node hardware or software. It should be noted that recording this event allows for subsequent review and fault analysis, etc., based on the recorded event; this embodiment does not impose any limitations on this.

[0044] In one embodiment, after determining the monitoring result of the Bluetooth master node based on the broadcast signal characterization information, the process includes:

[0045] The monitoring results are fed back to the user terminal so that the user terminal can take appropriate action based on the cause.

[0046] In this embodiment, after determining the monitoring result of the Bluetooth master node based on the broadcast signal characterization information, the monitoring result can also be fed back to the user terminal so that the user terminal can take appropriate action based on the cause. For example, if the broadcast signal of the Bluetooth master node is weak, the user is prompted to go offline for replacement or repair.

[0047] In one embodiment, Figure 2 This is a flowchart of another Bluetooth broadcast monitoring method provided in an embodiment of the present invention. Based on the above embodiments, this embodiment further refines the following steps: determining the target broadcast parameters sent by the Bluetooth master node from the monitoring broadcast parameters; determining the broadcast signal characterization information corresponding to the Bluetooth master node based on the target broadcast parameters; and determining the monitoring results of the Bluetooth master node based on the broadcast signal characterization information.

[0048] like Figure 2As shown, the Bluetooth broadcast monitoring method in this embodiment may specifically include the following steps:

[0049] S210, In response to a command that the Bluetooth master node is not connected to the terminal device, start listening and receive listening broadcast parameters within the preset signal coverage area.

[0050] In this embodiment, in response to the instruction that the Bluetooth master node is not connected to the terminal device, the slave node starts listening and receives the listening broadcast parameters within the preset receiving signal coverage range. This can be understood as the slave node starting the Bluetooth module according to the master node's listening parameters and starting to listen to the master node's broadcast signal.

[0051] S220: Extract the target broadcast parameters from the listening broadcast parameters based on the random resolvable private address identity resolution code (IRK) of the Bluetooth master node.

[0052] The random resolvable private address identity resolution code can be generated using IRK and a randomly generated 24-bit random number.

[0053] In this embodiment, since the signal coverage area of ​​the slave node includes not only the broadcast signal of the Bluetooth master node, but also the broadcast signals of other Bluetooth devices, after the slave node starts up, it will listen to all the broadcast signals in the air interface within the preset signal coverage area. Therefore, the target broadcast parameters can be extracted from the broadcast listening parameters based on the random resolvable private address identity code (IRK) of the Bluetooth master node. It should be noted that the random resolvable private address identity code (IRK) of the Bluetooth master node is the unique identifier of the Bluetooth master node. This unique identifier is agreed upon in advance by the slave node and the Bluetooth master node, and the target broadcast parameters of the Bluetooth master node can be extracted from the broadcast listening parameters.

[0054] S230. Determine the signal strength corresponding to the Bluetooth master node based on the transmission power.

[0055] In this embodiment, upon receiving the transmission power of the Bluetooth master node, the signal strength corresponding to the Bluetooth master node can be determined based on the transmission power. This signal strength includes strong, normal, and weak signals. In some embodiments, the target broadcast parameters include at least: the transmission power corresponding to the Bluetooth master node, the broadcast period, and the channel frequency of the broadcast channel.

[0056] S240. Determine the signal quality corresponding to the Bluetooth master node based on the broadcast period and the preset broadcast period threshold.

[0057] In this embodiment, the signal quality of the Bluetooth master node is determined based on the broadcast period of the Bluetooth Low Energy master node and a preset broadcast period threshold. For example, the Bluetooth Low Energy master node broadcasts once every 100ms. Under normal circumstances, 10 broadcasts can be heard per second. Assuming that 8 broadcasts are heard within 1 second is considered normal, the signal quality is considered normal. If only 1 broadcast is heard per second or none are heard, it definitely indicates a signal quality problem, which can be used as a basis for diagnosis.

[0058] S250. Determine the frequency offset of the Bluetooth master node based on the channel frequencies of at least three broadcast channels and a preset channel frequency range.

[0059] In this embodiment, when the Bluetooth master node broadcasts, it can broadcast through at least three broadcast channels. The frequency offset of the Bluetooth master node can be determined based on the channel frequencies of at least three broadcast channels and a preset channel frequency range. For example, the preset channel frequency range is about 2402. If there is an offset (while still broadcasting) that is outside the range, the broadcast information from the Bluetooth master node will not be received.

[0060] S260. Signal strength, signal quality, and frequency offset are used as broadcast signal characterization information for the Bluetooth master node.

[0061] In this embodiment, the signal strength, signal quality, and frequency offset of the Bluetooth master node are used as the broadcast signal characterization information of the Bluetooth master node.

[0062] S270. Determine the monitoring result of the Bluetooth master node based on one of the following information in the broadcast signal characterization information: signal strength, signal quality, and frequency offset.

[0063] In this embodiment, the monitoring result of the Bluetooth master node can be determined based on any one of the information in the broadcast signal characterization information, namely signal strength, signal quality, and frequency offset. Specifically, the monitoring result of the Bluetooth master node can be determined by comparing the signal strength of the Bluetooth master node with a preset signal strength threshold, comparing the number of broadcasts of the Bluetooth master node to be greater than or equal to a preset broadcast number threshold, and comparing the channel frequency of the Bluetooth master node with a preset channel frequency range.

[0064] In one embodiment, S270 may include S2701-S2702:

[0065] S2701. If the number of times the signal strength is less than or equal to the preset signal strength threshold within the preset second time period is less than the preset number, then it is determined that the monitoring result of the Bluetooth master node is that the received signal is weakened due to environmental problems; wherein, environmental problems include at least electromagnetic interference and obstacle interference.

[0066] In this embodiment, if the number of times the signal strength is less than or equal to a preset signal strength threshold within a preset second time period is less than a preset number, then the monitoring result of the Bluetooth master node is determined to be that the received signal is weakened due to environmental problems; wherein, environmental problems include at least electromagnetic interference and obstacle interference; it can be understood that when the signal strength of the slave node monitoring the master node occasionally falls below or equal to a preset received signal threshold, the master node is notified to temporarily adjust the transmission power, which may be due to environmental problems that cause the received signal to weaken, such as: (1) Electromagnetic interference: The operation of other electronic devices or wireless devices may generate electromagnetic interference, interfering with surrounding wireless signals, including Bluetooth signals. This interference may cause the received signal strength to decrease. (2) Obstacle interference: If there are physical obstacles (such as walls, building structures, furniture, etc.) between the device and the signal source, these obstacles will affect the propagation of the signal, resulting in a decrease in signal strength. The signal will undergo attenuation and reflection when passing through the obstacle, thereby weakening the received signal.

[0067] S2702. If the signal strength is less than or equal to a preset signal strength threshold within a preset third duration, then the monitoring result of the Bluetooth master node is determined to be a device problem causing the received signal to weaken; wherein, the device problem includes at least: hardware failure of the device, aging or damage of the signal receiver, and antenna problem; wherein, the preset third duration is longer than the preset second duration.

[0068] In this embodiment, if the signal strength is less than or equal to a preset signal strength threshold within a preset third duration, it is determined that the monitoring result of the Bluetooth master node indicates a device problem causing the weak received signal. The device problem includes at least: hardware failure, aging or damage to the signal receiver, and antenna issues. The preset third duration is longer than a preset second duration. This can be understood as follows: if the slave node monitors the master node's signal strength for an extended period that is less than the preset received signal strength threshold, it determines that the master node's broadcast signal is weak, prompting the user to have it replaced or repaired offline. Hardware failure, aging or damage to the signal receiver, and antenna issues can all lead to a decrease in received signal strength.

[0069] In one embodiment, S270 may further include S2703-S2705:

[0070] S2703. Determine the number of times the Bluetooth master node broadcasts within a preset broadcast time interval;

[0071] S2704. If the number of broadcasts by the Bluetooth master node is greater than or equal to the preset broadcast number threshold, determine that the monitoring result of the Bluetooth master node is that the signal quality is normal.

[0072] S2705. If the broadcast period of the Bluetooth master node is less than the preset broadcast count threshold, determine that the monitoring result of the Bluetooth master node is due to environmental problems causing weak signal quality.

[0073] In this embodiment, the number of times the Bluetooth master node broadcasts within a preset broadcast time interval is determined. If the number of broadcasts by the Bluetooth master node is greater than or equal to a preset broadcast number threshold, the monitoring result of the Bluetooth master node is determined to be that the signal quality is normal. If the broadcast period of the Bluetooth master node is less than the preset broadcast number threshold, the monitoring result of the Bluetooth master node is determined to be that the signal quality is weak due to environmental problems.

[0074] In one embodiment, S270 may further include S2706-S2707:

[0075] S2706. If the channel frequency of the Bluetooth master node is not within the preset channel frequency range, and it is determined that the monitoring result of the Bluetooth master node is that the frequency shift is caused by the temperature rise, notify the Bluetooth master node to perform frequency compensation.

[0076] S2707. When the channel frequency of the Bluetooth master node is within the preset channel frequency range, determine that the monitoring result of the Bluetooth master node is normal.

[0077] In this embodiment, if the channel frequency of the Bluetooth master node is not within the preset channel frequency range, the monitoring result of the Bluetooth master node is determined to be a frequency shift caused by temperature rise, and the Bluetooth master node is notified to perform frequency compensation; if the channel frequency of the Bluetooth master node is within the preset channel frequency range, the monitoring result of the Bluetooth master node is determined to be a normal frequency.

[0078] The technical solution described in this invention determines the signal strength of the Bluetooth master node by transmitting power; determines the signal quality of the Bluetooth master node based on the broadcast period and a preset broadcast period threshold; determines the frequency offset of the Bluetooth master node based on the channel frequencies of at least three broadcast channels and a preset channel frequency range; and uses the signal strength, signal quality, and frequency offset as broadcast signal characterization information of the Bluetooth master node. The monitoring result of the Bluetooth master node is determined based on one of these three information components. This further improves the stability and reliability of detecting the master node's broadcast signal, reduces the false positive rate, and proactively monitors the Bluetooth master node for abnormal connection to terminal devices, promptly identifying and addressing problems to ensure stability.

[0079] In one embodiment, to facilitate a better understanding of the Bluetooth broadcast monitoring method, Figure 3This is an architecture diagram of a Bluetooth broadcast monitoring method according to an embodiment of the present invention. The architecture includes a terminal device (e.g., a mobile phone), a low-power Bluetooth master node in a vehicle, and slave nodes. The master node and slave nodes are connected via a CAN / LIN bus. The master node sends broadcast monitoring parameters to the slave nodes via CAN / LIN. In response to the master node not being connected to a terminal device, the slave node receives the broadcast monitoring parameters within its signal coverage area and initiates monitoring. It then parses the broadcast monitoring parameters based on the master node's identity to obtain a parsing result. The parsing result includes at least: the broadcast period and signal power when the master node sent the broadcast monitoring parameters. The process involves: determining the channel frequency and unique Bluetooth address of the broadcast channel; analyzing and processing the parsing results from the slave node and recording the results; specifically, this step may include: determining the signal strength based on the master node's signal power; determining the signal quality based on the master node's broadcast period and broadcast period threshold; determining the frequency offset based on the channel frequencies of at least three broadcast channels and a preset channel frequency range; judging the broadcast signal status of the master node based on the recorded processing results; sending the master node's signal strength, signal quality, and frequency offset to the user terminal and indicating the corresponding fault cause for the signal strength, signal quality, and frequency offset, so that the user can take appropriate action based on the fault cause.

[0080] In one embodiment, Figure 4 This is a structural block diagram of a Bluetooth broadcast monitoring device according to an embodiment of the present invention. This device is suitable for monitoring a vehicle-mounted Bluetooth master node when it is not connected to a terminal device. The device can be implemented in hardware or software. It can be configured in an electronic device to implement a Bluetooth broadcast monitoring processing method according to an embodiment of the present invention.

[0081] like Figure 4 As shown, the device includes: a parameter determination module 410, an information determination module 420, and a result determination module 430.

[0082] The parameter determination module 410 is used to start listening and determine the target broadcast parameters sent by the Bluetooth master node from the listening broadcast parameters when the Bluetooth master node is not connected to the terminal device.

[0083] The information determination module 420 is used to determine the broadcast signal characterization information corresponding to the Bluetooth master node based on the target broadcast parameters; wherein, the broadcast signal characterization information includes at least: signal strength, signal quality, and frequency offset.

[0084] The result determination module 430 is used to determine the monitoring result of the Bluetooth master node based on the broadcast signal characterization information.

[0085] In this embodiment of the invention, the information determination module determines the target broadcast parameters sent by the Bluetooth master node from the monitored broadcast parameters, and determines the broadcast signal characterization information corresponding to the Bluetooth master node based on the target broadcast parameters. The result determination module determines the monitoring result of the Bluetooth master node based on the broadcast signal characterization information. This can improve the stability and reliability of detecting the master node's broadcast signal, reduce the false judgment rate, and actively monitor the Bluetooth master node for abnormal connection by terminal devices to promptly detect and handle problems, ensuring stability.

[0086] In one embodiment, the device further includes:

[0087] The second result determination module is used to respond to the instruction that the Bluetooth master node is not connected by the terminal device. If the target broadcast parameters of the Bluetooth master node are not detected within a preset first time period, the module notifies the microcontroller unit in the vehicle to reset the Bluetooth master node and record the event. If the target broadcast parameters of the Bluetooth master node are still not detected after the Bluetooth master node is reset, the module determines that the Bluetooth master node has not broadcast.

[0088] In one embodiment, the device further includes:

[0089] The feedback module is used to feed back the monitoring result to the user terminal after determining the monitoring result of the Bluetooth master node based on the broadcast signal characterization information, so that the user terminal can perform corresponding processing according to the reason.

[0090] In one embodiment, the parameter determination module 410 includes:

[0091] The receiving unit is used to receive monitoring broadcast parameters within a preset signal coverage area;

[0092] The extraction unit is used to extract the target broadcast parameters from the listening broadcast parameters based on the random resolvable private address identity resolution code (IRK) of the Bluetooth master node.

[0093] In one embodiment, the target broadcast parameters include at least: the transmit power corresponding to the Bluetooth master node, the broadcast period, and the channel frequency of the broadcast channel; the information determination module 420 includes:

[0094] A strength determination unit is used to determine the signal strength corresponding to the Bluetooth master node based on the transmission power.

[0095] A quality determination unit is used to determine the signal quality corresponding to the Bluetooth master node based on the broadcast period and a preset broadcast period threshold.

[0096] The frequency offset determination unit is used to determine the frequency offset of the Bluetooth master node based on the channel frequencies of at least three broadcast channels and a preset channel frequency range.

[0097] The information determination unit is used to use the signal strength, the signal quality, and the frequency offset as broadcast signal characterization information of the Bluetooth master node.

[0098] In one embodiment, the result determination module 430 includes:

[0099] The result determination unit is used to determine the monitoring result of the Bluetooth master node based on one of the following information in the broadcast signal characterization information: signal strength, signal quality, and frequency offset.

[0100] In one embodiment, the result determination unit includes:

[0101] The first result determination subunit is configured to determine, if the number of times the signal strength is less than or equal to a preset signal strength threshold within a preset second time period is less than a preset number, that the monitoring result of the Bluetooth master node is that the received signal is weakened due to environmental problems; wherein, the environmental problems include at least electromagnetic interference and obstacle interference.

[0102] The second result determination subunit is used to determine that if the signal strength is less than or equal to a preset signal strength threshold within a preset third duration, the monitoring result of the Bluetooth master node is a device problem causing the received signal to weaken; wherein the device problem includes at least: hardware failure of the device, aging or damage of the signal receiver, and antenna problem; wherein the preset third duration is longer than the preset second duration.

[0103] In one embodiment, the result determination unit further includes:

[0104] The third determining subunit is used to determine the number of times the Bluetooth master node broadcasts within a preset broadcast time interval;

[0105] The fourth determining subunit is used to determine that the monitoring result of the Bluetooth master node is that the signal quality is normal when the number of broadcasts of the Bluetooth master node is greater than or equal to the preset broadcast number threshold.

[0106] The fifth determining subunit is used to determine, when the broadcast period of the Bluetooth master node is less than the preset broadcast count threshold, that the monitoring result of the Bluetooth master node is due to environmental problems causing weak signal quality.

[0107] In one embodiment, the result determination unit further includes:

[0108] The sixth determining subunit is used to determine, when the channel frequency of the Bluetooth master node is not within the preset channel frequency range, that the monitoring result of the Bluetooth master node is that the frequency shift is caused by the temperature rise, and to notify the Bluetooth master node to perform frequency compensation.

[0109] The seventh determining subunit is used to determine that the monitoring result of the Bluetooth master node is normal when the channel frequency of the Bluetooth master node is within the preset channel frequency range.

[0110] The Bluetooth broadcast monitoring device provided in this embodiment of the invention can execute the Bluetooth broadcast monitoring processing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.

[0111] In one embodiment, Figure 5 This is a schematic diagram of an electronic device provided for an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0112] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0113] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0114] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the Bluetooth broadcast listening method.

[0115] In some embodiments, the Bluetooth broadcast listening processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the Bluetooth broadcast listening method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the Bluetooth broadcast listening method by any other suitable means (e.g., by means of firmware).

[0116] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0117] Computer programs used to implement the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable Bluetooth broadcast monitoring device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a standalone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0118] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0119] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0120] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0121] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0122] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0123] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A Bluetooth broadcast monitoring method, characterized in that, Applied to a slave node, the method includes: When a Bluetooth master node is not connected to by a terminal device, the system starts listening and determines the target broadcast parameters sent by the Bluetooth master node from the listening broadcast parameters. The broadcast signal characterization information corresponding to the Bluetooth master node is determined based on the target broadcast parameters; wherein, the broadcast signal characterization information includes at least: signal strength, signal quality, and frequency offset. The monitoring results of the Bluetooth master node are determined based on the broadcast signal characterization information; Determining the target broadcast parameters sent by the Bluetooth master node from the monitored broadcast parameters includes: Receive monitoring broadcast parameters within the preset signal coverage area; The target broadcast parameters are extracted from the listening broadcast parameters based on the random resolvable private address identity code (IRK) of the Bluetooth master node; wherein, the random resolvable private address identity code (IRK) is a unique identifier of the Bluetooth master node agreed upon in advance by the Bluetooth master node and the slave node.

2. The method according to claim 1, characterized in that, The method further includes: In response to an instruction that the Bluetooth master node is not connected to the terminal device, if the target broadcast parameters of the Bluetooth master node are not detected within a preset first time period, the microcontroller unit in the vehicle is notified so that the microcontroller unit resets the Bluetooth master node and records the event. If the target broadcast parameters of the Bluetooth master node are still not detected after the Bluetooth master node is reset, the listening result of the Bluetooth master node is determined to be that the Bluetooth master node did not broadcast.

3. The method according to claim 1, characterized in that, The target broadcast parameters include at least: the transmit power, broadcast period, and channel frequency of the broadcast channel corresponding to the Bluetooth master node; determining the broadcast signal characterization information corresponding to the Bluetooth master node based on the target broadcast parameters includes: The signal strength corresponding to the Bluetooth master node is determined based on the transmission power. The signal quality corresponding to the Bluetooth master node is determined based on the broadcast period and the preset broadcast period threshold. The frequency offset of the Bluetooth master node is determined based on the channel frequencies of at least three broadcast channels and a preset channel frequency range. The signal strength, signal quality, and frequency offset are used as the broadcast signal characterization information of the Bluetooth master node.

4. The method according to claim 1, characterized in that, The step of determining the listening results between the Bluetooth master node and the terminal device based on the broadcast signal characterization information includes: The monitoring result of the Bluetooth master node is determined based on one of the following information in the broadcast signal characterization information: signal strength, signal quality, and frequency offset.

5. The method according to claim 4, characterized in that, Determining the monitoring result of the Bluetooth master node based on the signal strength in the broadcast signal characterization information includes: If the number of times the signal strength is less than or equal to a preset signal strength threshold within a preset second time period is less than a preset number, then the monitoring result of the Bluetooth master node is determined to be that the received signal is weakened due to environmental problems; wherein, the environmental problems include at least electromagnetic interference and obstacle interference; If the signal strength is less than or equal to a preset signal strength threshold within a preset third duration, then the monitoring result of the Bluetooth master node is determined to be a device problem causing the received signal to weaken; wherein the device problem includes at least: hardware failure of the device, aging or damage of the signal receiver, and antenna problem; wherein the preset third duration is longer than the preset second duration.

6. The method according to claim 4, characterized in that, Determining the monitoring results of the Bluetooth master node based on the signal quality in the broadcast signal characterization information includes: Determine the number of times the Bluetooth master node broadcasts within a preset broadcast time interval; If the number of broadcasts by the Bluetooth master node is greater than or equal to a preset broadcast number threshold, the monitoring result of the Bluetooth master node is determined to be that the signal quality is normal. If the broadcast period of the Bluetooth master node is less than the preset broadcast count threshold, the monitoring result of the Bluetooth master node is determined to be a weak signal quality caused by environmental issues.

7. The method according to claim 4, characterized in that, Determining the monitoring results between the Bluetooth master node and the terminal device based on the frequency offset in the broadcast signal characterization information includes: If the channel frequency of the Bluetooth master node is not within the preset channel frequency range, and it is determined that the monitoring result of the Bluetooth master node is that the frequency shift is caused by the temperature rise, the Bluetooth master node is notified to perform frequency compensation. If the channel frequency of the Bluetooth master node is within the preset channel frequency range, the monitoring result of the Bluetooth master node is determined to be that the frequency is normal.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the Bluetooth broadcast monitoring method according to any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the Bluetooth broadcast monitoring method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Bluetooth equipment fault detection method, storage medium and terminal equipment

    CN115460573A

  • Positioning method, device and system, electronic equipment and storage medium

    CN116055998A