Equipment scanning abnormity detection method and device and electronic equipment

By identifying and repairing target events that cause low-power Bluetooth device scanning to fail, it solves problems that cannot be discovered between devices, improves the success rate of interconnection and interoperability between devices in the smart cockpit, and improves user experience.

CN118574154APending Publication Date: 2024-08-30XIAOMI EV TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410852731.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In smart cockpit application scenarios, low-power Bluetooth devices may not be able to discover each other, causing interconnection and interoperability between devices to fail and affecting user experience.

Method used

By logging in according to the account information of the BLE device and scanning the broadcast information of the associated device, the target event that caused the scanning failure is determined, and corresponding repair operations are performed to improve the device connection success rate.

Benefits of technology

Improved the connection success rate of low-power Bluetooth devices and improved user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574154A
    Figure CN118574154A
Patent Text Reader

Abstract

The invention relates to an equipment scanning abnormity detection method and device and electronic equipment, and relates to the technical field of intelligent cabins. The method specifically comprises the following steps: logging in a first low-power Bluetooth BLE device according to account information of the first BLE device, and scanning broadcast information of a second BLE device associated with the account information; in response to the scanning failure of the first BLE equipment, determining a plurality of to-be-detected events causing the scanning failure of the first BLE equipment; and executing a detection process on the plurality of to-be-detected events, and determining a target event causing the scanning failure of the first BLE equipment from the plurality of to-be-detected events, so that the target event causing the scanning failure of the low-power Bluetooth equipment can be determined, and automatic repair is performed based on the target event causing the scanning failure. The success rate of connection establishment of the low-power Bluetooth device is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of smart cockpits, and in particular to a method, device and electronic equipment for detecting abnormalities in device scanning. Background Art

[0002] Bluetooth Low Energy (BLE) is also called low-power Bluetooth. Compared with classic Bluetooth, low-power Bluetooth aims to significantly reduce power consumption and cost while maintaining the same communication range. In the daily use scenarios of BLE, for example: in the application scenarios of BLE in smart cockpits, devices may not be able to discover each other, which affects the interconnection between devices and thus affects the user experience. Summary of the invention

[0003] The present disclosure provides a method, an apparatus and an electronic device for detecting device scanning anomalies.

[0004] The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a method for detecting device scanning abnormalities is provided, the method comprising: logging in to a first low-power Bluetooth BLE device according to account information of the first BLE device, and scanning broadcast information of a second BLE device associated with the account information; in response to a scanning failure of the first BLE device, determining a plurality of events to be detected that caused the scanning failure of the first BLE device; executing a detection process for the plurality of events to be detected, and determining a target event that caused the scanning failure of the first BLE device from the plurality of events to be detected.

[0006] According to a second aspect of an embodiment of the present disclosure, a method for detecting device scanning abnormalities is provided, the method comprising: logging in to account information and sending broadcast information, the broadcast information comprising device information of the second BLE device; receiving scanning abnormality indication information sent by the first BLE device, the second BLE device being associated with the first BLE device with the same account information; and detecting whether the broadcast function of the second BLE device is normal based on the scanning abnormality indication information.

[0007] According to a third aspect of an embodiment of the present disclosure, a device for detecting device scanning abnormalities is provided, the device comprising: a scanning module, used to log in to a first low-power Bluetooth BLE device according to account information of the first BLE device, and scan broadcast information of a second BLE device associated with the account information; a first determination module, used to determine, in response to a scanning failure of the first BLE device, a plurality of events to be detected that caused the scanning failure of the first BLE device; and a second determination module, used to execute a detection process on the plurality of events to be detected, and determine, from the plurality of events to be detected, a target event that caused the scanning failure of the first BLE device.

[0008] According to the fourth aspect of an embodiment of the present disclosure, a device for detecting device scanning abnormalities is provided, the device comprising: a sending module for logging in account information and sending broadcast information, the broadcast information comprising device information of the second BLE device; a receiving module for receiving scanning abnormality indication information sent by the first BLE device, the second BLE device being associated with the first BLE device with the same account information; a detection module for detecting whether the broadcast function of the second BLE device is normal according to the scanning abnormality indication information.

[0009] According to the fifth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement a method for detecting device scanning anomalies as provided in the first or second aspect of the present disclosure.

[0010] According to the sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute a method for detecting device scanning anomalies as provided in the first or second aspect of the present disclosure.

[0011] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements a method for detecting device scanning anomalies as provided in the first aspect or the second aspect of the present disclosure.

[0012] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0013] A method for detecting device scanning anomalies in an embodiment of the present disclosure logs in to a first low-power Bluetooth BLE device according to the account information of the first BLE device, and scans the broadcast information of a second BLE device associated with the account information. In response to a scan failure of the first BLE device, a plurality of events to be detected that cause the scan failure of the first BLE device are determined, a detection process is performed on the plurality of events to be detected, and a target event that causes the scan failure of the first BLE device is determined from the plurality of events to be detected. Thus, the present disclosure can determine the target event of the scan failure of the low-power Bluetooth device, and automatically repair the target event based on the scan failure, thereby improving the success rate of establishing a connection between the low-power Bluetooth device and improving the user experience.

[0014] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0016] Figure 1 The present invention is a flowchart of a method for detecting abnormality in device scanning according to an exemplary embodiment.

[0017] Figure 2 The figure is a flowchart of another method for detecting abnormality in device scanning according to an exemplary embodiment.

[0018] Figure 3 The figure is a flowchart of another method for detecting abnormality in device scanning according to an exemplary embodiment.

[0019] Figure 4 The figure is a flowchart of another method for detecting abnormality in device scanning according to an exemplary embodiment.

[0020] Figure 5 The figure is a flowchart of another method for detecting abnormality in device scanning according to an exemplary embodiment.

[0021] Figure 6 The invention is a block diagram of a device for detecting abnormality in device scanning according to an exemplary embodiment.

[0022] Figure 7 The invention is a block diagram of a device for detecting abnormality in device scanning according to an exemplary embodiment.

[0023] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0024] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0026] Figure 1 A flowchart of a method for detecting device scanning anomalies provided in an embodiment of the present disclosure.

[0027] like Figure 1 As shown, the device scanning abnormality detection method includes the following steps:

[0028] S101, logging into a first low-power Bluetooth BLE device according to the account information of the first BLE device, and scanning broadcast information of a second BLE device associated with the account information.

[0029] In an embodiment of the present disclosure, after logging in to the first BLE device according to the account information of the first BLE device, the account information and the device information of the first BLE device are sent to the cloud server, wherein the device information of the first BLE device is written into the BLE device list where the account information is located, and the BLE device list also includes the device information of the second BLE device having the same account as the first BLE device, and the second BLE device pulls the BLE device list from the cloud server.

[0030] It should be noted that, by logging into the first BLE device through the account information, the second BLE device associated with the account information can be determined based on the account information, and the broadcast information of the second BLE device can be scanned.

[0031] Optionally, the device information and account information of the BLE device may be put into the broadcast information, and the broadcast parameters may be set to scan the broadcast information.

[0032] S102: In response to a scan failure of the first BLE device, determine a plurality of events to be detected that cause the scan failure of the first BLE device.

[0033] In an embodiment of the present disclosure, in response to not scanning a BLE device, it is determined that the scanning of the first BLE device has failed.

[0034] For example, a scanning duration threshold of the first BLE device scan may be obtained. If no BLE device is scanned within the scanning duration threshold, it is determined that the scanning of the first BLE device has failed.

[0035] It should be noted that the present disclosure does not limit the setting of the scanning time threshold, for example, the scanning time threshold may be 60 seconds.

[0036] In an embodiment of the present disclosure, in response to scanning a BLE device, it is determined whether the device information of the scanned BLE device exists in the BLE device list. If the scanned BLE device does not exist in the BLE device list, it is determined that the scan of the first BLE device has failed.

[0037] In an embodiment of the present disclosure, after determining that the first BLE device scan fails, a detection process for abnormal scanning of the first BLE device may be executed, that is, a plurality of events to be detected that cause the first BLE device scan failure may be determined.

[0038] It should be noted that the multiple events to be detected include whether the scanning function of the first BLE device is normal, whether the position relationship between the first BLE device and the second BLE device meets the scanning requirements, and whether the broadcast function of the second BLE device is abnormal.

[0039] S103, executing a detection process for multiple events to be detected, and determining a target event that causes the scanning failure of the first BLE device from the multiple events to be detected.

[0040] It should be noted that when the detection process is executed for multiple events to be detected, the execution order of the multiple events to be detected can be determined in advance, and the detection process of the events to be detected is executed according to the execution order.

[0041] For example, it is possible to first detect whether the scanning function of the first BLE device is normal, then detect whether the positional relationship between the first BLE device and the second BLE device meets the scanning requirements, and finally detect whether the broadcasting function of the second BLE device is abnormal.

[0042] In an embodiment of the present disclosure, by executing the detection process of the events to be detected in the execution order of the multiple events to be detected, the target event that causes the scanning failure of the first BLE device can be determined from the multiple detection events, and accordingly, the repair operation corresponding to the target event that causes the scanning failure of the first BLE device can be performed.

[0043] A method for detecting device scanning anomalies in an embodiment of the present disclosure logs in to the first BLE device according to the account information of the first low-power Bluetooth BLE device, and scans the broadcast information of the second BLE device associated with the account information, in response to the scanning failure of the first BLE device, determines multiple events to be detected that cause the scanning failure of the first BLE device, executes a detection process for the multiple events to be detected, and determines a target event that causes the scanning failure of the first BLE device from the multiple events to be detected. Therefore, the present disclosure improves the reliability and efficiency of the device scanning anomaly detection process, and by determining the target event of the scanning failure of the low-power Bluetooth device, a repair operation can be performed based on the target event of the scanning failure, which is beneficial to improving the success rate of low-power Bluetooth devices in establishing connections and improving the user experience.

[0044] Figure 2 is a flow chart of a method for detecting abnormal device scanning according to an embodiment of the present disclosure. Based on the above embodiment, further combined with Figure 2 If the event to be detected is whether the scanning function of the first BLE device is normal, the specific process of the detection process of the event to be detected is explained, including the following steps:

[0045] S201, detecting whether the scanning firmware of the first BLE device is turned on.

[0046] In the embodiment of the present disclosure, if the event to be detected is whether the scanning function of the first BLE device is normal, it can be first detected whether the scanning firmware of the first BLE device is turned on.

[0047] S202: Determine scanning parameters configured for the first BLE device according to device information of one or more second BLE devices associated with the account information.

[0048] In an embodiment of the present disclosure, the scanning parameters configured for the first BLE device may be determined based on the device information of one or more second BLE devices associated with the account information.

[0049] It should be noted that the scanning parameters configured by the first BLE device include but are not limited to scanning strategy, scanning duration, scanning filter parameters, scanning filter strategy, etc.

[0050] S203: Determine whether the configuration of the scan filter in the first BLE device is correct according to the scan parameters.

[0051] In the embodiment of the present disclosure, after the scanning parameters are acquired, it can be determined whether the configuration of the scanning filter in the first BLE device is correct according to the scanning parameters.

[0052] Optionally, configuration parameters of the scan filter may be obtained, and the scan parameters may be compared with the configuration parameters to determine whether the configuration of the scan filter in the first BLE device is correct.

[0053] S204: In response to the scanning function of the first BLE device being abnormal, performing a scanning function repair operation on the first BLE device.

[0054] It should be noted that, in response to detecting that the scanning firmware of the first BLE device is not turned on, it is determined that the scanning function of the first BLE device is abnormal; in response to detecting that the scanning firmware of the first BLE device is turned on and the configuration of the scanning filter in the first BLE device is incorrect, it is determined that the scanning function of the first BLE device is abnormal.

[0055] In an embodiment of the present disclosure, in response to an abnormality in the scanning function of the first BLE device, a repair operation of the scanning function is performed on the first BLE device.

[0056] A method for detecting device scanning anomalies in an embodiment of the present disclosure detects whether the scanning firmware of a first BLE device is turned on, determines the scanning parameters configured for the first BLE device based on the device information of one or more second BLE devices associated with the account information, and judges whether the configuration of the scanning filter in the first BLE device is correct based on the scanning parameters. In response to an abnormality in the scanning function of the first BLE device, a repair operation of the scanning function of the first BLE device is performed. Therefore, when the present disclosure determines that the scanning function of a low-power Bluetooth device is abnormal, the repair operation of the scanning function of the low-power Bluetooth device is performed, thereby improving the success rate of establishing a connection with the low-power Bluetooth device, which is beneficial to improving the user experience.

[0057] Figure 3 is a flow chart of a method for detecting abnormal device scanning according to an embodiment of the present disclosure. Based on the above embodiment, further combined with Figure 3 If the event to be detected is whether the position relationship between the first BLE device and the second BLE device meets the scanning requirements, the specific process of the detection process of the event to be detected is explained, including the following steps:

[0058] S301, obtaining first positioning information of a first BLE device.

[0059] When the scanning process of the first BLE device is normal, the first positioning information of the first BLE device can be obtained.

[0060] S302, sending a location information request of the second BLE device to the cloud server, and receiving second positioning information of the second BLE device sent by the cloud server.

[0061] In an embodiment of the present disclosure, the first BLE device sends a location information request for the second BLE device to a cloud server, the cloud server receives the location information request for the second BLE device, and sends the second positioning information of the second BLE device to the first BLE device. Accordingly, the first BLE device can receive the second positioning information of the second BLE device sent by the cloud server.

[0062] S303: Determine a positional relationship between the first BLE device and the second BLE device according to the first positioning information and the second positioning information, where the positional relationship at least includes a relative distance between the first BLE device and the second BLE device.

[0063] S304: Determine, based on the relative distance, whether the position relationship between the first BLE device and the second BLE device meets the scanning requirement.

[0064] In the embodiment of the present disclosure, after the relative distance is acquired, it can be determined whether the positional relationship between the first BLE device and the second BLE device meets the scanning requirements based on the relative distance and a set distance threshold.

[0065] It should be noted that the present disclosure does not limit the specific setting of the distance threshold, and it can be set according to actual conditions. Optionally, the distance threshold can be set to 10m.

[0066] Optionally, if the relative distance is less than or equal to a set distance threshold, it is determined that the position relationship between the first BLE device and the second BLE device meets the scanning requirement.

[0067] For example, if the relative distance is 5m and the distance threshold is set to 10m, the relative distance is less than the set distance threshold, and it is determined that the position relationship between the first BLE device and the second BLE device meets the scanning requirement.

[0068] Optionally, if the relative distance is greater than a set distance threshold, it is determined that the position relationship between the first BLE device and the second BLE device does not meet the scanning requirement.

[0069] For example, if the relative distance is 12m and the distance threshold is set to 10m, the relative distance is greater than the set distance threshold, and it is determined that the position relationship between the first BLE device and the second BLE device does not meet the scanning requirement.

[0070] Optionally, if the positional relationship between the first BLE device and the second BLE device does not meet the scanning requirement, corresponding prompt information may be generated on the interactive interface and displayed to the user.

[0071] In an embodiment of the present disclosure, by determining whether the positional relationship between the first BLE device and the second BLE device meets the scanning requirements, in response to the positional relationship not meeting the scanning requirements, a detection result of the positional relationship is sent to a cloud server, and the detection result includes respective device information of the first BLE device and the second BLE, as well as an error type code.

[0072] The device information of the first BLE device and the second BLE device includes but is not limited to their respective account (Identity document, ID for short) information.

[0073] It should be noted that the present disclosure can pre-set different error type codes according to different events to be detected.

[0074] For example, if the event to be detected is whether the position relationship between the first BLE device and the second BLE device meets the scanning requirements, if it is determined that the position relationship between the first BLE device and the second BLE device does not meet the scanning requirements, the error type code can be set to 0x0004.

[0075] A method for detecting device scanning anomalies in an embodiment of the present disclosure obtains first positioning information of a first BLE device, sends a location information request for a second BLE device to a cloud server, and receives second positioning information of the second BLE device sent by the cloud server, and determines the position relationship between the first BLE device and the second BLE device according to the first positioning information and the second positioning information, wherein the position relationship includes at least a relative distance between the first BLE device and the second BLE device, and determines whether the position relationship between the first BLE device and the second BLE device meets the scanning requirements according to the relative distance. Therefore, the present disclosure determines whether the position relationship between the first BLE device and the second BLE device meets the scanning requirements, and can perform corresponding operations on the low-power Bluetooth device according to the judgment result, so that the position relationship between the first BLE device and the second BLE device meets the scanning requirements, thereby improving the success rate of establishing a connection between low-power Bluetooth devices and helping to improve the user experience.

[0076] Figure 4 is a flow chart of a method for detecting abnormal device scanning according to an embodiment of the present disclosure. Based on the above embodiment, further combined with Figure 4 If the event to be detected is whether the broadcast function of the second BLE device is abnormal, the specific process of the detection process of the event to be detected is explained, including the following steps:

[0077] S401, sending scanning abnormality indication information to the second BLE device, where the scanning abnormality indication information is used to instruct the second BLE device to detect whether a broadcast function is abnormal.

[0078] In an embodiment of the present disclosure, the first BLE device can send an indication message of scanning abnormality to the second BLE device, and the indication message of scanning abnormality is used to instruct the second BLE device to detect whether the broadcast function is abnormal, that is, a detection request for the second BLE device to detect whether the broadcast function is abnormal can be generated based on the indication message.

[0079] S402, obtaining a detection result of the broadcast function of the second BEL device from the cloud server.

[0080] It should be noted that, for detecting whether the broadcast function of the second BLE device is abnormal, the second BLE device can perform an automatic detection process, for example: if the broadcast function is not turned on, that is, the detection result of the broadcast function of the second BLE device is that the broadcast function of the second BEL device is not turned on, and the detection result is reported to the cloud server, for example: if the broadcast function is turned on but the broadcast function is wrong, that is, the detection result of the broadcast function of the second BEL device is that the broadcast function of the second BEL device is turned on, but the broadcast function is wrong, and the detection result is reported to the cloud server, wherein the detection result includes an error type code.

[0081] Optionally, if the broadcast function of the second BEL device is turned on, but the broadcast function fails, the second BLE device may be restarted, and the broadcast function of the second BEL device may be restarted.

[0082] In the disclosed embodiment of the present disclosure, the detection result of whether the broadcast function of the second BLE device is abnormal can be sent to the cloud server, and accordingly, the first BLE device can obtain the detection result of the broadcast function of the second BLE device from the cloud server.

[0083] It should be noted that if the broadcast function of the second BEL device is not enabled, the error type code may be set to 0x0001, and if the broadcast function of the second BEL device fails to start, the error type code may be set to 0x0002.

[0084] Optionally, if the broadcast function of the second BLE device is abnormal, a corresponding prompt message can be generated on the interactive interface and displayed to the user.

[0085] A method for detecting device scanning abnormality in an embodiment of the present disclosure sends indication information of scanning abnormality to a second BLE device, and the indication information of scanning abnormality is used to instruct the second BLE device to detect whether the broadcast function is abnormal, and obtains the detection result of the broadcast function of the second BEL device from the cloud server. Therefore, the present disclosure obtains the detection result of the broadcast function of the second BEL device, and can perform corresponding operations on the low-power Bluetooth device according to the detection result, so that the broadcast function of the second BEL device is normal, thereby improving the success rate of low-power Bluetooth devices in establishing connections, which is beneficial to improving the user experience.

[0086] Figure 5 A flowchart of a method for detecting device scanning anomalies provided in an embodiment of the present disclosure.

[0087] like Figure 5 As shown, the device scanning abnormality detection method includes the following steps:

[0088] S501, log in account information and send broadcast information, the broadcast information includes device information of the second BLE device.

[0089] In an embodiment of the present disclosure, the second BLE device can send account information and device information of the second BLE device to the cloud server, wherein the device information of the second BLE device is written into the BLE device list where the account information is located, and the BLE device list also includes the device information of the first BLE device, and the BLE device list is pulled from the cloud server.

[0090] It should be noted that, in response to successful pairing with the first BLE device, it is determined whether the device information of the first BLE device exists in the BLE device list. If the scanned BLE device exists in the BLE device list, it is determined to establish a communication link with the first BLE device.

[0091] S502, receiving scanning abnormality indication information sent by the first BLE device, and associating the second BLE device with the first BLE device with the same account information.

[0092] It should be noted that the first BLE device can send scanning abnormality indication information to the second BLE device, and the scanning abnormality indication information is used to instruct the second BLE device to detect whether the broadcast function is abnormal. Correspondingly, the second BLE device can receive the scanning abnormality indication information sent by the first BLE device.

[0093] It should be noted that, by receiving the same account information associated with the second BLE device and the first BLE device, the second BLE device and the first BLE device log in to the same account information to achieve information interaction with the cloud server.

[0094] S503: Detect whether the broadcast function of the second BLE device is normal according to the indication information of the scanning abnormality.

[0095] In the embodiment of the present disclosure, after receiving the indication information of the scanning abnormality, it is possible to detect whether the broadcast function of the second BLE device is normal according to the indication information of the scanning abnormality.

[0096] It should be noted that, in response to the broadcast function of the second BLE device being abnormal, a repair operation of the broadcast function of the second BLE device may be performed.

[0097] In an embodiment of the present disclosure, after detecting whether the broadcast function of the second BLE device is normal based on the indication information of the scanning abnormality, the detection result of the broadcast function of the second BLE device can be sent from the cloud server, and accordingly, the first BLE device can obtain the detection result of the broadcast function of the second BLE device from the cloud server.

[0098] A method for detecting device scanning anomalies in an embodiment of the present disclosure logs in to account information and sends broadcast information, the broadcast information includes device information of a second BLE device, receives scanning anomaly indication information sent by a first BLE device, the second BLE device is associated with the first BLE device with the same account information, and detects whether the broadcast function of the second BLE device is normal based on the scanning anomaly indication information. As a result, the present disclosure improves the reliability and efficiency of the device scanning anomaly detection process, and by determining a target event in which a low-power Bluetooth device fails to scan, a repair operation can be performed based on the target event in which the scan fails, which is beneficial to improving the success rate of low-power Bluetooth devices in establishing connections and improving the user experience.

[0099] Figure 6 The invention is a block diagram of a device for detecting abnormality in device scanning according to an exemplary embodiment.

[0100] like Figure 6 As shown, the device 1000 for detecting device scanning anomalies includes: a scanning module 110 , a first determining module 120 and a second determining module 130 .

[0101] The scanning module 110 is used to log in to the first low-power Bluetooth BLE device according to the account information of the first BLE device, and scan the broadcast information of the second BLE device associated with the account information;

[0102] A first determination module 120, configured to determine, in response to a scan failure of the first BLE device, a plurality of events to be detected that cause the scan failure of the first BLE device;

[0103] The second determination module 130 is configured to execute a detection process on the multiple events to be detected, and determine a target event that causes the scanning failure of the first BLE device from the multiple events to be detected.

[0104] Furthermore, the multiple events to be detected include: whether the scanning function of the first BLE device is normal; whether the position relationship between the first BLE device and the second BLE device meets the scanning requirements; and whether the broadcasting function of the second BLE device is abnormal.

[0105] Furthermore, the event to be detected is whether the scanning function of the first BLE device is normal, and the second determination module 130 is also used to: detect whether the scanning firmware of the first BLE device is turned on; determine the scanning parameters configured for the first BLE device based on the device information of one or more second BLE devices associated with the account information; determine whether the configuration of the scanning filter in the first BLE device is correct based on the scanning parameters; and perform a repair operation on the scanning function of the first BLE device in response to an abnormality in the scanning function of the first BLE device.

[0106] Furthermore, the event to be detected is whether the positional relationship between the first BLE device and the second BLE device meets the scanning requirements. The second determination module 130 is also used to: obtain first positioning information of the first BLE device; send a location information request for the second BLE device to the cloud server, and receive second positioning information of the second BLE device sent by the cloud server; determine the positional relationship between the first BLE device and the second BLE device based on the first positioning information and the second positioning information, the positional relationship including at least the relative distance between the first BLE device and the second BLE device; and determine whether the positional relationship between the first BLE device and the second BLE device meets the scanning requirements based on the relative distance.

[0107] Furthermore, the second determination module 130 is also used to: if the relative distance is less than or equal to a set distance threshold, determine that the position relationship between the first BLE device and the second BLE device meets the scanning requirements; if the relative distance is greater than the set distance threshold, determine that the position relationship between the first BLE device and the second BLE device does not meet the scanning requirements.

[0108] Furthermore, the device 1000 is also used to: in response to the position relationship not meeting the scanning requirements, send the detection result of the position relationship to the cloud server, and the detection result includes the respective device information of the first BLE device and the second BLE, and an error type code.

[0109] Furthermore, the event to be detected is whether the broadcast function of the second BLE device is abnormal. The second determination module 130 sends an indication message of scanning abnormality to the second BLE device, and the indication message of scanning abnormality is used to instruct the second BLE device to detect whether the broadcast function is abnormal; and obtain the detection result of the broadcast function of the second BEL device from the cloud server.

[0110] Furthermore, the device 1000 is also used to: determine the execution order of the multiple events to be detected, and execute the detection process of the events to be detected according to the execution order.

[0111] Furthermore, the device 1000 is also used to: send the account information and the device information of the first BLE device to the cloud server, wherein the device information of the first BLE device is written into the BLE device list where the account information is located, and the BLE device list also includes the device information of the second BLE device; and pull the BLE device list from the cloud server.

[0112] Furthermore, the device 1000 is also used to: in response to not scanning a BLE device, determine that the scan of the first BLE device has failed; or, in response to scanning a BLE device, determine whether the device information of the scanned BLE device exists in the BLE device list, if the scanned BLE device does not exist in the BLE device list, determine that the scan of the first BLE device has failed.

[0113] According to a device scanning anomaly detection device of an embodiment of the present disclosure, the first BLE device is logged in according to the account information of the first low-power Bluetooth BLE device, and the broadcast information of the second BLE device associated with the account information is scanned. In response to the scanning failure of the first BLE device, multiple events to be detected that caused the scanning failure of the first BLE device are determined, and a detection process is performed on the multiple events to be detected. From the multiple events to be detected, a target event that caused the scanning failure of the first BLE device is determined. As a result, the present disclosure improves the reliability and efficiency of the device scanning anomaly detection process. By determining the target event of the scanning failure of the low-power Bluetooth device, a repair operation can be performed based on the target event of the scanning failure, which is beneficial to improving the success rate of the low-power Bluetooth device in establishing a connection and improving the user experience.

[0114] Figure 7 The invention is a block diagram of a device for detecting abnormality in device scanning according to an exemplary embodiment.

[0115] like Figure 7 As shown, the device 2000 for detecting anomalies in device scanning includes: a sending module 210 , a receiving module 220 and a detecting module 230 .

[0116] A sending module 210, configured to log in the account information and send broadcast information, wherein the broadcast information includes device information of the second BLE device;

[0117] The receiving module 220 is used to receive the scanning abnormality indication information sent by the first BLE device, and the second BLE device is associated with the first BLE device with the same account information;

[0118] The detection module 230 is used to detect whether the broadcast function of the second BLE device is normal according to the indication information of the scanning abnormality.

[0119] Furthermore, the apparatus 2000 is also used to: send the detection result of the broadcast function of the second BEL device from the cloud server.

[0120] Furthermore, the apparatus 2000 is also used to: in response to an abnormality in the broadcast function of the second BLE device, perform a repair operation on the broadcast function of the second BLE device.

[0121] Furthermore, the apparatus 2000 is also used to: in response to an abnormality in the broadcast function of the second BLE device, perform a repair operation on the broadcast function of the second BLE device.

[0122] Furthermore, the device 2000 is also used to: send the account information and the device information of the second BLE device to the cloud server, wherein the device information of the second BLE device is written into the BLE device list where the account information is located, and the BLE device list also includes the device information of the first BLE device; and pull the BLE device list from the cloud server.

[0123] Furthermore, the device 2000 is also used to: in response to successful pairing with the first BLE device, determine whether the device information of the first BLE device exists in the BLE device list; if the scanned BLE device exists in the BLE device list, determine to establish a communication link with the first BLE device.

[0124] According to a device scanning anomaly detection device of an embodiment of the present disclosure, by logging in to account information and sending broadcast information, the broadcast information includes device information of a second BLE device, receiving scanning anomaly indication information sent by the first BLE device, the second BLE device is associated with the first BLE device with the same account information, and according to the scanning anomaly indication information, whether the broadcast function of the second BLE device is normal is detected. As a result, the present disclosure improves the reliability and efficiency of the device scanning anomaly detection process, and by determining the target event of the scanning failure of the low-power Bluetooth device, a repair operation can be performed based on the target event of the scanning failure, which is beneficial to improving the success rate of the low-power Bluetooth device in establishing a connection and improving the user experience.

[0125] In order to implement the above embodiments, the present disclosure also provides an electronic device, such as Figure 8As shown, the electronic device 3000 includes: a processor 301; one or more memories 302 for storing executable instructions of the processor 301; wherein the processor 301 is configured to execute the device scanning abnormality detection method described in the above embodiment. The processor 301 and the memory 302 are connected via a communication bus.

[0126] In order to implement the above embodiments, the present disclosure further provides a computer-readable storage medium including instructions, such as a memory 302 including instructions, and the above instructions can be executed by the processor 301 of the device 3000 to complete the above method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0127] In order to implement the above embodiments, the present disclosure further provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, the method for detecting device scanning anomalies described in the above embodiments is implemented.

[0128] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0129] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for detecting device scanning anomalies, It is characterized in that The method comprises: Log in to the first low-power Bluetooth BLE device according to the account information of the first BLE device, and scan the broadcast information of the second BLE device associated with the account information; In response to a scan failure of the first BLE device, determining a plurality of events to be detected that cause the scan failure of the first BLE device; A detection process is performed on the multiple events to be detected, and a target event that causes the first BLE device to fail to scan is determined from the multiple events to be detected.

2. The method according to claim 1, It is characterized in that The multiple events to be detected include: Whether the scanning function of the first BLE device is normal; Whether the position relationship between the first BLE device and the second BLE device meets the scanning requirement; Whether the broadcast function of the second BLE device is abnormal.

3. The method according to claim 2, It is characterized in that The event to be detected is whether the scanning function of the first BLE device is normal, and the detection process of the event to be detected includes: Detecting whether the scanning firmware of the first BLE device is turned on; Determine, according to device information of one or more second BLE devices associated with the account information, scanning parameters configured for the first BLE device; Determining, according to the scanning parameters, whether the configuration of the scanning filter in the first BLE device is correct; In response to the scanning function of the first BLE device being abnormal, a scanning function repair operation is performed on the first BLE device.

4. The method according to claim 2, It is characterized in that The event to be detected is whether the position relationship between the first BLE device and the second BLE device meets the scanning requirement. The detection process of the event to be detected includes: Acquire first positioning information of the first BLE device; Sending a location information request of the second BLE device to a cloud server, and receiving second positioning information of the second BLE device sent by the cloud server; Determine, according to the first positioning information and the second positioning information, a positional relationship between the first BLE device and the second BLE device, wherein the positional relationship includes at least a relative distance between the first BLE device and the second BLE device; It is determined, according to the relative distance, whether a positional relationship between the first BLE device and the second BLE device meets a scanning requirement.

5. The method according to claim 4, It is characterized in that The determining, according to the relative distance, whether the positional relationship between the first BLE device and the second BLE device meets a scanning requirement includes: If the relative distance is less than or equal to the set distance threshold, determining that the position relationship between the first BLE device and the second BLE device meets the scanning requirement; If the relative distance is greater than the set distance threshold, it is determined that the position relationship between the first BLE device and the second BLE device does not meet the scanning requirement.

6. The method according to claim 4, It is characterized in that The method further comprises: In response to the position relationship not meeting the scanning requirement, a detection result of the position relationship is sent to the cloud server, the detection result including respective device information of the first BLE device and the second BLE, and an error type code.

7. The method according to claim 2, It is characterized in that The event to be detected is whether the broadcast function of the second BLE device is abnormal, and the detection process of the event to be detected includes: Sending scanning abnormality indication information to the second BLE device, where the scanning abnormality indication information is used to instruct the second BLE device to detect whether the broadcast function is abnormal; The detection result of the broadcast function of the second BEL device is obtained from the cloud server.

8. The method according to claim 2, It is characterized in that The method further comprises: Determine the execution order of the multiple events to be detected, and execute the detection process of the events to be detected according to the execution order.

9. The method according to any one of claims 1 to 8, It is characterized in that After logging in the account information associated with the first BLE device, the method further includes: Sending the account information and the device information of the first BLE device to the cloud server, wherein the device information of the first BLE device is written into the BLE device list where the account information is located, and the BLE device list also includes the device information of the second BLE device; Pull the BLE device list from the cloud server.

10. The method according to claim 9, It is characterized in that The method further comprises: In response to not scanning any BLE device, determining that the scanning of the first BLE device fails; or, In response to scanning a BLE device, it is determined whether device information of the scanned BLE device exists in the BLE device list. If the scanned BLE device does not exist in the BLE device list, it is determined that the scan of the first BLE device has failed.

11. A method for detecting abnormalities in device scanning, It is characterized in that The method comprises: Log in the account information and send broadcast information, where the broadcast information includes the device information of the second BLE device; Receiving scanning abnormality indication information sent by the first BLE device, the second BLE device and the first BLE device are associated with the same account information; Whether the broadcast function of the second BLE device is normal is detected according to the indication information of the scanning abnormality.

12. The method according to claim 11, It is characterized in that After detecting whether the broadcast function of the second BLE device is normal according to the indication information of the scanning abnormality, the method further includes: The detection result of the broadcast function of the second BEL device is sent from the cloud server.

13. The method according to claim 11, It is characterized in that The method further comprises: In response to the broadcast function of the second BLE device being abnormal, a repair operation of the broadcast function of the second BLE device is performed.

14. The method according to any one of claims 11 to 13, It is characterized in that The method further comprises: Sending the account information and the device information of the second BLE device to the cloud server, wherein the device information of the second BLE device is written into the BLE device list where the account information is located, and the BLE device list also includes the device information of the first BLE device; Pull the BLE device list from the cloud server.

15. The method according to claim 14, It is characterized in that The method further comprises: In response to successful pairing with the first BLE device, determine whether the device information of the first BLE device exists in the BLE device list; if the scanned BLE device exists in the BLE device list, determine to establish a communication link with the first BLE device.

16. A device for detecting abnormalities in equipment scanning, It is characterized in that The method comprises: the device comprises: A scanning module, configured to log in to the first low-power Bluetooth BLE device according to the account information of the first BLE device, and scan the broadcast information of the second BLE device associated with the account information; A first determining module, configured to determine, in response to a scan failure of the first BLE device, a plurality of events to be detected that cause the scan failure of the first BLE device; The second determination module is used to perform a detection process on the multiple events to be detected, and determine a target event that causes the first BLE device to fail to scan from the multiple events to be detected.

17. A device for detecting abnormalities in device scanning, It is characterized in that The device comprises: A sending module, used to log in account information and send broadcast information, wherein the broadcast information includes device information of the second BLE device; A receiving module, configured to receive scanning abnormality indication information sent by the first BLE device, wherein the second BLE device is associated with the first BLE device with the same account information; The detection module is used to detect whether the broadcast function of the second BLE device is normal according to the indication information of the scanning abnormality.

18. An electronic device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for detecting device scanning anomalies as described in any one of claims 1-10 or claims 11-15 is implemented.

19. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method for detecting device scanning anomalies according to any one of claims 1-10 or claims 11-15 is implemented.