CN111918260B - Bluetooth device management method, bluetooth device, terminal device and storage medium - Google Patents

Bluetooth device management method, bluetooth device, terminal device and storage medium Download PDF

Info

Publication number
CN111918260B
CN111918260B CN202010809457.2A CN202010809457A CN111918260B CN 111918260 B CN111918260 B CN 111918260B CN 202010809457 A CN202010809457 A CN 202010809457A CN 111918260 B CN111918260 B CN 111918260B
Authority
CN
China
Prior art keywords
bluetooth
information
detection information
bluetooth device
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010809457.2A
Other languages
Chinese (zh)
Other versions
CN111918260A (en
Inventor
陈明星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qisheng Technology Co Ltd
Original Assignee
Beijing Qisheng Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qisheng Technology Co Ltd filed Critical Beijing Qisheng Technology Co Ltd
Priority to CN202010809457.2A priority Critical patent/CN111918260B/en
Publication of CN111918260A publication Critical patent/CN111918260A/en
Application granted granted Critical
Publication of CN111918260B publication Critical patent/CN111918260B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Abstract

The embodiment of the disclosure provides a Bluetooth device management method, a Bluetooth device, a terminal device and a storage medium. The method comprises the following steps: scanning Bluetooth signals within a first preset time period after a first preset time; if the first Bluetooth signal is scanned, generating first detection information according to the first Bluetooth signal; the first Bluetooth signal is sent by the first Bluetooth device after detecting the state information of the first Bluetooth device at a first preset moment, and comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises a first Bluetooth equipment identifier; and sending the first detection information to the terminal equipment so that the terminal equipment determines the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier according to the first detection information. In the embodiment of the disclosure, the first Bluetooth device does not directly communicate with the terminal device, so that the power consumption of the first Bluetooth device can be reduced. Meanwhile, the working state of the first Bluetooth device can be effectively monitored.

Description

Bluetooth device management method, bluetooth device, terminal device and storage medium
Technical Field
Embodiments of the present disclosure relate to communication technologies, and in particular, to a bluetooth device management method, a bluetooth device, a terminal device, and a storage medium.
Background
The appearance of sharing bicycle provides a new travel mode and brings great convenience. Many users can park the bicycle at will after use, affecting the public environment. In particular, as the amount of shared bicycle put in increases, this effect on public order is more prominent.
In order to identify and guide the parking location of the user, a designated parking spot is defined in some areas. These areas are referred to as regulated areas and the designated parking spots are referred to as parkable areas. Meanwhile, two kinds of Bluetooth devices are respectively arranged in the two areas, different Bluetooth signals are broadcast outwards, so that electronic identification is carried out on the properties of the areas, and intelligent parking guidance is realized by matching with a bicycle.
The number of the Bluetooth devices is large, and the daily management and maintenance difficulty is high.
Disclosure of Invention
The embodiment of the disclosure provides a Bluetooth device management method, bluetooth device, terminal device and storage medium, which are used for monitoring the working state of the Bluetooth device, discovering fault problems in time and solving the fault problems as soon as possible, and improving the management and maintenance efficiency of a plurality of Bluetooth devices.
In a first aspect, embodiments of the present disclosure provide a bluetooth device management method, applied to a second bluetooth device, the method including: scanning Bluetooth signals within a first preset time period after a first preset time; if the first Bluetooth signal is scanned, generating first detection information according to the first Bluetooth signal; the first Bluetooth signal is sent by a first Bluetooth device after detecting self state information at a first preset moment, and comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises the first Bluetooth equipment identifier; and sending the first detection information to terminal equipment so that the terminal equipment determines the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier according to the first detection information.
In a second aspect, embodiments of the present disclosure provide a bluetooth device management method, applied to a first bluetooth device, the method including: detecting own electric quantity information and voltage information at a first preset moment; generating a first Bluetooth signal according to the self electric quantity information, the voltage information and the Bluetooth equipment identifier; broadcasting the first bluetooth signal.
In a third aspect, an embodiment of the present disclosure provides a bluetooth device management method, including: when receiving first detection information sent by second Bluetooth equipment, determining the working state of the first Bluetooth equipment according to the first detection information; the first detection information comprises a first Bluetooth equipment identifier; if the first detection information indicates that the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier is abnormal, abnormal prompt information is sent; the abnormal prompt information comprises Bluetooth equipment identifiers of abnormal equipment.
In a fourth aspect, embodiments of the present disclosure provide a bluetooth device, comprising: the scanning module is used for scanning the Bluetooth signal within a first preset duration after a first preset moment; the processing module is used for generating first detection information according to the first Bluetooth signal when the first Bluetooth signal is scanned; the first Bluetooth signal is sent by a first Bluetooth device after detecting self state information at a first preset moment, and comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises the first Bluetooth equipment identifier; and the sending module is used for sending the first detection information to the terminal equipment so that the terminal equipment can determine the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier according to the first detection information.
In a fifth aspect, embodiments of the present disclosure provide a bluetooth device, comprising: the detection module is used for detecting own electric quantity information and voltage information at a first preset moment; the processing module is used for generating a first Bluetooth signal according to the self electric quantity information, the voltage information and the Bluetooth equipment identifier; and the broadcasting module is used for broadcasting the first Bluetooth signal.
In a sixth aspect, embodiments of the present disclosure provide a bluetooth device management apparatus, including: the processing module is used for determining the working state of the first Bluetooth device according to the first detection information when the first detection information sent by the second Bluetooth device is received; the first detection information comprises a first Bluetooth equipment identifier; the sending module is used for sending abnormal prompt information if the first detection information indicates that the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier is abnormal; the abnormal prompt information comprises Bluetooth equipment identifiers of abnormal equipment.
In a seventh aspect, embodiments of the present disclosure provide a bluetooth device, comprising: memory and a processor. The memory is used for storing program instructions; the processor is configured to invoke program instructions in the memory to perform the method according to the first aspect.
In an eighth aspect, embodiments of the present disclosure provide a bluetooth device, comprising: memory and a processor. The memory is used for storing program instructions; the processor is configured to invoke program instructions in the memory to perform the method according to the second aspect.
In a ninth aspect, embodiments of the present disclosure provide a terminal device, including: memory and a processor. The memory is used for storing program instructions; the processor is configured to invoke program instructions in the memory to perform the method according to the third aspect.
In a tenth aspect, embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon; the computer program, when executed, implements the method as described in the first aspect.
In an eleventh aspect, embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon; the computer program, when executed, implements the method as described in the second aspect.
In a twelfth aspect, embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon; the computer program, when executed, implements a method as described in the third aspect.
The embodiment of the disclosure provides a Bluetooth device management method, a Bluetooth device, a terminal device and a storage medium. The method can be applied to a second Bluetooth device and comprises the following steps: scanning Bluetooth signals within a first preset time period after a first preset time; if the first Bluetooth signal is scanned, generating first detection information according to the first Bluetooth signal; the first Bluetooth signal is sent by a first Bluetooth device after detecting self state information at a first preset moment, and comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises the first Bluetooth equipment identifier; and sending the first detection information to terminal equipment so that the terminal equipment determines the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier according to the first detection information. According to the embodiment of the disclosure, the state information of the first Bluetooth device is collected and forwarded through the second Bluetooth device, and the working state of the first Bluetooth device is determined by the terminal device, so that the state monitoring and management of the first Bluetooth device are realized. The first Bluetooth device does not directly communicate with the terminal device, so that the power consumption of the first Bluetooth device can be reduced, the service time of the battery can be prolonged under the same electric quantity, and the replacement frequency of the battery can be reduced. Meanwhile, the working state of the first Bluetooth device can be effectively monitored, so that fault conditions such as insufficient electric quantity and unstable voltage can be timely found and timely processed. By the method, one second Bluetooth device can manage a plurality of first Bluetooth devices at the same time, so that the efficiency of managing the plurality of first Bluetooth devices is improved.
Various possible embodiments of the present disclosure and their technical advantages are described in detail below.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present disclosure;
fig. 2 is a flowchart of a bluetooth device management method according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for detecting a state of a second bluetooth device according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a bluetooth device management method according to an embodiment of the present disclosure;
fig. 5 is a flowchart of a bluetooth device management method according to an embodiment of the present disclosure;
fig. 6 is a flowchart of a bluetooth device management method according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a bluetooth device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a bluetooth device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a bluetooth device according to an embodiment of the present disclosure;
Fig. 11 is a schematic structural diagram of a bluetooth device according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
First, terms involved in embodiments of the present disclosure will be explained:
parking control area: refers to an area where there is a specific requirement for a vehicle parking location;
Parking area: refers to a designated vehicle parking area within a parking control area;
bluetooth device: the terminal equipment with the Bluetooth transmission function comprises a Bluetooth spike.
To normalize the parking of the shared vehicle, the concept of "electronic fence" is proposed. The electronic fence is actually used for stealth division of a vehicle parking area by means of coverage of wireless signals.
Bluetooth is used as a small-range wireless connection technology, and can realize convenient, quick, flexible, safe, low-cost and low-power consumption data communication among devices, so that the Bluetooth is one of the mainstream technologies for realizing wireless personal area network communication at present.
Bluetooth communication is also commonly used in the construction of electronic fences for shared vehicles. Specifically, bluetooth devices may be installed in areas where special requirements are placed on parking of the vehicle and have coverage areas that meet the parking area requirements. The bluetooth device broadcasts a specific bluetooth signal outwardly in a predetermined manner for indicating specific parking indication information. After the terminal equipment carried by the user or the terminal equipment arranged on the vehicle scans the corresponding Bluetooth signal, whether the vehicle can be parked in the current area can be determined by determining the indicated information. In this way, a similar function to a fence is achieved.
To ensure coverage of bluetooth signals, multiple bluetooth devices may be provided in the same parking area. At the same time, there are many parking areas in a city. And the setting positions of the Bluetooth devices are outdoor, and weather factors and human factors can damage the Bluetooth devices. And once the Bluetooth equipment is damaged, the Bluetooth equipment cannot work normally, and the fence function of the Bluetooth equipment is also affected.
Therefore, how to efficiently and accurately determine and pertinently manage and maintain fault devices in a large number of bluetooth devices is a technical problem to be solved currently.
How the working state of the bluetooth device is can be determined by analyzing parameters such as electric quantity, voltage and the like. For example, after the power is below a certain value, the device may not work properly due to insufficient power. For another example, when the device is operating normally, the voltage is stable within a certain range, and when the voltage exceeds a certain range, the device may be abnormal. And the bluetooth device itself generally has the functions of scanning for bluetooth signals and broadcasting bluetooth signals.
Based on this, embodiments of the present disclosure propose a solution where the bluetooth device collects its own parameters that can be used to identify status information and adds these parameters to the bluetooth signal for broadcasting. The bluetooth device having a communication function with the terminal device is responsible for transmitting the corresponding parameters to the terminal device after scanning the bluetooth signals. The terminal equipment judges the equipment state, and sends prompt information to operation and maintenance personnel after abnormality is found, and fault equipment is processed in time.
The Bluetooth equipment management method provided by the embodiment of the disclosure can be suitable for the management of Bluetooth spikes in the parking control area shown in fig. 1. As shown in fig. 1, a parkable region is defined in the parking control region. A plurality of Bluetooth spikes are arranged in the parking control area in a scattered manner, and the Bluetooth spikes are divided into two main types according to functions. One type is distributed only in the parkable region, and a type a signal is broadcast outwards, which is called a spike herein for distinguishing. Another type is distributed throughout the parking control area, broadcasting out a type B signal, referred to herein as a B spike. The specific setting position and spacing of the bluetooth spike may be different according to the specific situation, but in effect, the overall coverage of the broadcast signal of the a spike is infinitely close to the range of the parkable area, and the overall coverage of the broadcast signal of the B spike is infinitely close to the range of the whole parking control area.
After the end of the vehicle, the user should park the shared vehicle into the parkable area according to the rules if the shared vehicle is just in the parking control area. The vehicle terminal or user terminal may determine whether to enter a parkable region by scanning for a bluetooth signal. When only B-type signals are scanned, the parking control area is indicated to be in but not enter the parkable area, and parking is not possible; when the A-type signal and the B-type signal are scanned at the same time, the parking-possible area is indicated to be entered, and parking is possible.
The execution of the above-described parking rules depends on the normal operation of the a spike and the B spike. It is therefore necessary to monitor the state of the bluetooth spike at regular intervals.
Specifically, the B spike can communicate with the server, and the state information of the A spike and the B spike is uploaded. The spike A detects the state information of the spike A at fixed time, adds the corresponding parameters into a Bluetooth signal and broadcasts the Bluetooth signal outwards, and the spike B scans the Bluetooth signal to obtain the state information parameters of the spike A. Meanwhile, the B spike can also detect the state information of the B spike at regular time.
The relative setting positions of the a spike and the B spike may be different according to the specific situation, but in effect, the signal scanning range of the B spike covers the signal broadcasting range of the a spike.
The following describes in detail, with specific embodiments, a technical solution of an embodiment of the present disclosure and how the technical solution of the embodiment of the present disclosure solves the foregoing technical problems. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a bluetooth device management method according to an embodiment of the present disclosure, where an execution body of the method according to the embodiment is a bluetooth device capable of communicating with a terminal device. As shown in fig. 2, the method of the present embodiment includes:
S201, scanning Bluetooth signals within a first preset time period after a first preset time.
In the embodiment of the disclosure, a bluetooth device that can directly communicate with a terminal device is referred to as a second bluetooth device, and a bluetooth device that cannot directly communicate with a terminal device is referred to as a first bluetooth device. The second Bluetooth device scans the Bluetooth signals at regular time to receive the first Bluetooth signals sent by the first Bluetooth device.
The first preset time is preferably a time when the first bluetooth device broadcasts the first bluetooth signal. The first preset time may be a periodic time, for example, every other hour or every second hour, etc. The first preset time may also be a fixed time, e.g. 8 a.m. and/or 6 a.m. each day, etc. Other times of the setting may also be used, such as broadcasting according to a preset schedule. Broadcast may be performed before the early-late peak hours to avoid major impact of malfunctioning devices.
The scanning duration can be a first preset duration, so that scanning failure caused by interference of part of Bluetooth signals is avoided.
S202, if the first Bluetooth signal is scanned, first detection information is generated according to the first Bluetooth signal.
The first Bluetooth signal is sent by the first Bluetooth device after detecting the state information of the first Bluetooth device at a first preset moment, and comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises a first Bluetooth device identifier.
After the first Bluetooth device detects the state information of the first Bluetooth device at the first preset moment, the state information parameters are generated to generate a first Bluetooth signal to be sent out. The status information parameters may include power and voltage, etc. The first bluetooth signal includes the device identifier of the first bluetooth device, so that the second bluetooth device can determine which device corresponds to the parameter information in the signal after scanning the first bluetooth signal. Meanwhile, the generated first detection information also comprises the device identifier of the first Bluetooth device.
The broadcast range and the scanning range of the bluetooth signal are sectors of a certain radius, and a plurality of first bluetooth devices may exist in the scanning range of the second bluetooth device. Of course, before the bluetooth device is set, a corresponding "jurisdictional" relationship between the second bluetooth device and the first bluetooth device may be set by a technical means.
For example, the first bluetooth devices 11, 12, 13, 14 are set in the scanning range of the second bluetooth device 21. And device identifications corresponding to the four first bluetooth devices may be preset in the second bluetooth device. The scan result of the second bluetooth device 21 may thus be as follows:
1) Scanning four first Bluetooth signals, and determining whether the four first Bluetooth devices belong to the four first Bluetooth devices according to the device identification;
2) 1-3 first Bluetooth signals are scanned, and the signals lacking one or a plurality of first Bluetooth devices can be determined according to the device identification;
3) The first bluetooth signal is not scanned. Other bluetooth signals may be present in the scan result but not belonging to the four second bluetooth devices.
Correspondingly, the generated first detection information may have the following types:
1) Only the first Bluetooth equipment identifier and the state parameter information in the scanned Bluetooth signals are contained;
2) The method comprises the steps of including a first Bluetooth device identifier and state parameter information in scanned Bluetooth signals; and a device identification of the first bluetooth device that is not scanned;
3) The method comprises the steps of including a first Bluetooth device identifier in a scanned Bluetooth signal and state parameter information thereof; and the device identification of the first bluetooth device that is not scanned, and its state parameter information (which may be a null value).
And S203, the first detection information is sent to the terminal equipment, so that the terminal equipment determines the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier according to the first detection information.
Because the first detection information includes the first bluetooth device identifiers, the terminal device can determine the working state of each first bluetooth device.
The Bluetooth device management method provided by the embodiment of the disclosure is applied to a second Bluetooth device capable of communicating with a terminal device, and comprises the following steps: scanning Bluetooth signals within a first preset time period after a first preset time; if the first Bluetooth signal is scanned, generating first detection information according to the first Bluetooth signal; the first Bluetooth signal is sent by the first Bluetooth device after detecting the state information of the first Bluetooth device at a first preset moment, and comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises a first Bluetooth equipment identifier; and sending the first detection information to the terminal equipment so that the terminal equipment determines the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier according to the first detection information. According to the embodiment of the disclosure, the state information of the first Bluetooth device is collected and forwarded through the second Bluetooth device, and the working state of the first Bluetooth device is determined by the terminal device, so that the state monitoring and management of the first Bluetooth device are realized. The first Bluetooth device does not directly communicate with the terminal device, so that the power consumption of the first Bluetooth device can be reduced, the service time of the battery can be prolonged under the same electric quantity, and the replacement frequency of the battery can be reduced. Meanwhile, the working state of the first Bluetooth device can be effectively monitored, so that fault conditions such as insufficient electric quantity and unstable voltage can be timely found and timely processed. By the method, one second Bluetooth device can manage a plurality of first Bluetooth devices at the same time, so that the efficiency of managing the plurality of first Bluetooth devices is improved.
For the generation of the first detection information based on the first bluetooth signal in the above step S202, the detection information may be formed as follows:
1) The first detection information includes: the Bluetooth device comprises a first Bluetooth device identifier, first electric quantity information and first voltage information.
The second Bluetooth device directly extracts information such as a first Bluetooth device identifier, first electric quantity information, first voltage information and the like contained in the first Bluetooth information to form first detection information and sends the first detection information to the terminal device.
After receiving the first detection information, the terminal device may invoke a first preset power threshold value and a first preset voltage value preset in the terminal device, and compare the first power information and the first voltage information in the first detection information, so as to determine a working state of the first bluetooth device corresponding to the first bluetooth device identifier.
When the first electric quantity information is smaller than or equal to a first preset electric quantity threshold value, the electric quantity of the first Bluetooth device is considered to be insufficient, and the state is considered to be abnormal; or when the deviation between the first voltage information and the first preset voltage value is large, the voltage of the first Bluetooth device is considered to be unstable, and the state is considered to be abnormal.
For the first Bluetooth device with abnormal state, the terminal device can send the device identification (and abnormal performance, insufficient electric quantity or unstable voltage and the like) to the operation and maintenance terminal so as to prompt the operation and maintenance personnel to conduct targeted maintenance.
2) Determining a first electric quantity state and a first voltage state according to a first preset electric quantity threshold value, a first preset voltage value, first electric quantity information and first voltage information; and generating first detection information according to the first Bluetooth equipment identifier, the first electric quantity state and the first voltage state.
The second Bluetooth device invokes a first preset electric quantity threshold value and a first preset voltage value which are preset in the second Bluetooth device, and compares the first electric quantity information and the first voltage information in the first detection information so as to determine the electric quantity state and the voltage state of the first Bluetooth device corresponding to the first Bluetooth device identifier. If the first electric quantity information is smaller than or equal to a first preset electric quantity threshold value, the electric quantity state of the first Bluetooth device is considered to be abnormal, otherwise, the electric quantity state of the first Bluetooth device is considered to be normal; if the deviation between the first voltage information and the first preset voltage value is larger, the voltage state of the first Bluetooth device is considered to be abnormal, otherwise, the voltage state is considered to be normal. And the first detection information is formed by the information such as the first Bluetooth equipment identifier, the determined first electric quantity state, the first voltage state and the like contained in the first Bluetooth information and is sent to the terminal equipment.
After receiving the first detection information, the terminal equipment can judge the working state of the first Bluetooth equipment through the first electric quantity state and the first voltage state. If one of the two is abnormal, the state of the first Bluetooth device is considered to be abnormal; only if both are normal, the state of the first bluetooth device is considered normal.
For the first Bluetooth device with abnormal state, the terminal device can send the device identification (and abnormal performance, insufficient electric quantity or unstable voltage and the like) to the operation and maintenance terminal so as to prompt the operation and maintenance personnel to conduct targeted maintenance.
3) Determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first preset electric quantity threshold value, the first preset voltage value, the first electric quantity information and the first voltage information; and generating first detection information according to the first Bluetooth equipment identifier and the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier.
The second Bluetooth device invokes a first preset electric quantity threshold value and a first preset voltage value preset in the second Bluetooth device, and compares the first electric quantity information and the first voltage information in the first detection information to determine the working state of the first Bluetooth device. And forming first detection information by the first Bluetooth device identification, the determined working state of the first Bluetooth device and the like, and sending the first detection information to the terminal device.
After receiving the first detection information, the terminal device can directly determine whether the working state of the first bluetooth device is abnormal.
For the first Bluetooth device with abnormal state, the terminal device can send the device identification (and abnormal performance, insufficient electric quantity or unstable voltage and the like) to the operation and maintenance terminal so as to prompt the operation and maintenance personnel to conduct targeted maintenance.
The terminal device can determine the working state of the scanned first bluetooth device by using the first detection information generated according to the scanned first bluetooth signal.
In some cases, if the first bluetooth device is severely damaged, the broadcasting of the bluetooth signal may not be performed at all. Thus, for an unscanned device, its state anomaly can be determined directly. The method is that after the terminal equipment receives the first detection information, the first Bluetooth equipment which is not scanned is determined according to the first Bluetooth equipment identifier contained in the first detection information, and the working state of the first Bluetooth equipment is determined to be abnormal. In another mode, after the second bluetooth device scans the first bluetooth signal, the first bluetooth device which is not scanned is determined according to the first bluetooth device identifier contained in the first bluetooth signal, and the corresponding device identifier is added into the first detection information and is sent to the terminal device.
Specifically, the device identifier of the first bluetooth device which is not scanned can be determined according to the first bluetooth device identifier in the scanned first bluetooth signal and at least one preset first bluetooth device identifier; and generating first detection information according to the first Bluetooth signal and the device identification of the first Bluetooth device which is not scanned.
The first detection information may further include: the status parameter of the first bluetooth device that is not scanned is marked as null or abnormal.
In addition to assisting in monitoring the status of the first bluetooth device, the second bluetooth device may also detect its own operational status.
Fig. 3 is a flowchart of a method for detecting a state of a second bluetooth device according to an embodiment of the present disclosure. As shown in fig. 3, the method of the present embodiment includes:
s301, detecting own state information at a second preset time.
Similar to the first preset time instant, the second preset time instant may be a periodic time instant, e.g. every other hour or every second hour, etc. The second preset time may also be a fixed time, e.g. 8 a.m. and/or 6 a.m. each day, etc. The second preset time may also be other time of setting, for example broadcasting according to a preset schedule. Broadcast may be performed before the early-late peak hours to avoid major impact of malfunctioning devices.
The second preset time and the first preset time may be the same time, may be related time, or may be unrelated time.
S302, generating second detection information according to the state information and the equipment identifier of the device.
The state information of the self may include: power information of the battery, voltage information and the like.
And S303, sending the second detection information to the terminal equipment so that the terminal equipment can determine the working state of the second Bluetooth equipment according to the second detection information.
The second detection information may be generated according to the state information and the device identifier of the second detection information in the following ways:
1) Determining a second electric quantity state and a second voltage state according to a second preset electric quantity threshold value, a second preset voltage value, own electric quantity information and voltage information; and generating second detection information according to the equipment identification, the second electric quantity state and the second voltage state.
The second Bluetooth device invokes a second preset electric quantity threshold value and a second preset voltage value preset in the second Bluetooth device, and compares the second preset electric quantity threshold value and the indicated electric quantity information and the indicated voltage information to determine the electric quantity state and the voltage state of the second Bluetooth device. If the self electric quantity information is smaller than or equal to a second preset electric quantity threshold value, the electric quantity state of the second Bluetooth device is considered to be abnormal, otherwise, the electric quantity state of the second Bluetooth device is considered to be normal; if the deviation between the self voltage information and the second preset voltage value is larger, the voltage state of the second Bluetooth device is considered to be abnormal, otherwise, the second Bluetooth device is considered to be normal. And transmitting the second detection information formed by the equipment identification of the second Bluetooth equipment, the determined second electric quantity state, the second voltage state and other information to the terminal equipment.
After receiving the second detection information, the terminal device can judge the working state of the second Bluetooth device through the second electric quantity state and the second voltage state. If one of the two is abnormal, the state of the second Bluetooth device is considered to be abnormal; only if both are normal, the state of the second bluetooth device is considered normal.
For the second Bluetooth device with abnormal state, the terminal device can send the device identification (and abnormal performance, insufficient electric quantity or unstable voltage and the like) to the operation and maintenance terminal so as to prompt the operation and maintenance personnel to conduct targeted maintenance.
2) Determining the working state of the self according to the second preset electric quantity threshold value, the second preset voltage value, the self electric quantity information and the voltage information; and generating second detection information according to the equipment identification and the working state of the equipment.
The second Bluetooth device invokes a second preset electric quantity threshold value and a second preset voltage value preset in the second Bluetooth device, and compares the second preset electric quantity threshold value and the electric quantity information and the voltage information of the second Bluetooth device to determine the working state of the second Bluetooth device. And forming second detection information by the equipment identification of the second Bluetooth equipment, the determined working state of the second Bluetooth equipment and the like, and sending the second detection information to the terminal equipment.
After receiving the first detection information, the terminal device can directly determine whether the working state of the first bluetooth device is abnormal.
For the second Bluetooth device with abnormal state, the terminal device can send the device identification (and abnormal performance, insufficient electric quantity or unstable voltage and the like) to the operation and maintenance terminal so as to prompt the operation and maintenance personnel to conduct targeted maintenance.
The terminal device can determine the working state of the second bluetooth device by using the second detection information.
In some cases, if the second bluetooth device is severely damaged, signal transmission may not be possible at all. Therefore, if the terminal device does not receive the second detection information within a second preset time period after the second preset time, it may be determined that the working state of the second bluetooth device is abnormal.
The state detection for the second bluetooth device and the state detection process for the first bluetooth device may be synchronized or unsynchronized. If the two parts are not synchronized, it is preferred that the status detection frequency for the second bluetooth device may be higher than the status detection frequency for the first bluetooth device. As the second bluetooth device may also affect the status detection of the first bluetooth device upon failure.
The scanning process of the second bluetooth device on the first bluetooth signal and the detection process of the second bluetooth device on the state information of the second bluetooth device may be performed simultaneously or may not be performed simultaneously.
The process of sending the first detection information by the second bluetooth device and the process of sending the second detection information, that is, the above-mentioned executing processes of S203 and S303 may be performed simultaneously or may not be performed simultaneously.
The specific execution steps can be adjusted according to actual conditions.
Fig. 4 is a flowchart of a bluetooth device management method according to an embodiment of the present disclosure. The main implementation body of the method of this embodiment is the first bluetooth device. As shown in fig. 4, the method of the present embodiment includes:
s401, detecting own electric quantity information and voltage information at a first preset time.
S402, generating a first Bluetooth signal according to self electric quantity information, voltage information and Bluetooth equipment identification.
S403, broadcasting a first Bluetooth signal.
The electric quantity information, the voltage information and the Bluetooth equipment identification of the first Bluetooth equipment are the first electric quantity information, the first voltage information and the first Bluetooth equipment identification.
Fig. 5 is a flowchart of a bluetooth device management method according to an embodiment of the present disclosure. The execution subject of the method of the embodiment is a terminal device. As shown in fig. 5, the method of the present embodiment includes:
s501, when first detection information sent by a second Bluetooth device is received, determining the working state of the first Bluetooth device according to the first detection information; the first detection information comprises a first Bluetooth device identifier.
S502, if the first detection information indicates that the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier is abnormal, abnormal prompt information is sent; the abnormality prompt information comprises Bluetooth equipment identifiers of abnormal equipment.
In some embodiments, the terminal device of the execution body of the embodiment is an operation and maintenance terminal, and at this time, the sending of the abnormality prompting information actually means that the abnormality prompting information is output through an output device on the terminal device.
In some embodiments, the first detection information further comprises: first electric quantity information and first voltage information; determining the working state of the first bluetooth device according to the first detection information, including: and determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first preset electric quantity threshold value, the first preset voltage value, the first electric quantity information in the first detection information and the first voltage information.
In some embodiments, the first detection information further comprises: a first state of charge, a first voltage state; determining the working state of the first bluetooth device according to the first detection information, including: and determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first electric quantity state and the first voltage state.
In some embodiments, the first detection information further comprises: a device identification of the first bluetooth device that is not scanned; determining the working state of the first bluetooth device according to the first detection information, including: and determining that the working state of the first unscanned Bluetooth device is abnormal according to the Bluetooth device identification of the first unscanned Bluetooth device.
In some embodiments, the method further comprises: when receiving second detection information sent by the second Bluetooth device, determining the working state of the second Bluetooth device according to the second detection information; the second detection information comprises a device identifier of a second Bluetooth device; if the second detection information indicates that the working state of the second Bluetooth device is abnormal, abnormal prompt information is sent; the abnormality prompt information comprises equipment identification of abnormal equipment.
In some embodiments, the second detection information further comprises: the electric quantity information and the voltage information of the second Bluetooth equipment; determining the working state of the second bluetooth device according to the second detection information, including: and determining the working state of the second Bluetooth device according to the second preset electric quantity threshold value, the second preset voltage value, the electric quantity information and the voltage information of the second Bluetooth device.
In some embodiments, the second detection information further comprises: the state of charge, voltage state of the second bluetooth device; determining the working state of the second bluetooth device according to the second detection information, including: and determining the working state of the second Bluetooth device according to the electric quantity state and the voltage state of the second Bluetooth device.
In some embodiments, the method further comprises: if the second detection information is not received within a second preset time period after the second preset time, determining that the working state of the second Bluetooth device is abnormal.
The specific implementation manner of the method of this embodiment may refer to the description in the foregoing embodiment, and the technical effects thereof are similar, and will not be repeated herein.
Fig. 6 is a flowchart of a bluetooth device management method according to an embodiment of the present disclosure, where an execution body of the method according to the present embodiment is a first bluetooth device, a second bluetooth device, and a terminal device. As shown in fig. 6, the method of the present embodiment includes:
s601, the first Bluetooth device detects own electric quantity information and voltage information at a first preset time.
S602, the first Bluetooth device generates a first Bluetooth signal according to the self electric quantity information, the voltage information and the Bluetooth device identification.
S603, the first Bluetooth device broadcasts a first Bluetooth signal.
S604, the second Bluetooth device scans Bluetooth signals in a first preset duration after a first preset time.
S605, if the second Bluetooth device scans the first Bluetooth signal, first detection information is generated according to the first Bluetooth signal.
S606, the second Bluetooth device sends the first detection information to the terminal device. Correspondingly, the terminal equipment receives the first detection information sent by the second Bluetooth equipment.
S607, the terminal equipment determines the working state of the first Bluetooth equipment according to the first detection information.
The first detection information comprises a first Bluetooth device identifier.
And S608, if the terminal equipment determines that the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier is abnormal, the terminal equipment sends abnormality prompt information to the operation and maintenance terminal.
The abnormality prompt information comprises Bluetooth equipment identifiers of abnormal equipment.
S609, the second Bluetooth device detects own state information at a second preset time.
S610, the second Bluetooth device generates second detection information according to the state information and the device identification of the second Bluetooth device.
S611, the second Bluetooth device sends the second detection information to the terminal device. Correspondingly, the terminal equipment receives second detection information sent by the second Bluetooth equipment.
S612, the terminal equipment determines the working state of the second Bluetooth equipment according to the second detection information.
Wherein the second detection information includes a device identification of the second bluetooth device.
S613, if the terminal equipment determines that the working state of the second Bluetooth equipment is abnormal, abnormal prompt information is sent to the operation and maintenance terminal.
The abnormality prompt information comprises equipment identification of abnormal equipment.
The implementation manner of each step in this embodiment may refer to the description of the above embodiment, and the technical effects achieved by the implementation manner are the same, and are not repeated herein.
In the scenario corresponding to fig. 1, all the B spikes may be used as the second bluetooth device, to communicate with the terminal device, and all the a spikes may be used as the first bluetooth device. At this time, only a part of the B spike may scan the bluetooth signal of the a spike, and there may be repeated uploading of the same bluetooth signal of the a spike detected by the B spike.
In another implementation, a portion of the B spike may be used as a second bluetooth device to communicate with the terminal device, and another portion of the B spike and all of the a spike may be used as a first bluetooth device. The part of the B spike can scan Bluetooth signals of the A spike and/or the other part of the B spike, the spikes which can be scanned by each part of the B spike are different from each other, and the part of the B spike can scan Bluetooth signals of all first Bluetooth devices. In this way, fewer second devices can be used for communicating with the terminal device, and the electric quantity of the device is saved.
The foregoing is merely an example of the selection manners of the first bluetooth device and the second bluetooth device, and other setting manners may be selected according to different practical situations, which is not limited herein.
Fig. 7 is a schematic structural diagram of a bluetooth device according to an embodiment of the present disclosure, where the device according to the present embodiment may be a bluetooth spike set in a parking control area, as shown in fig. 7, a bluetooth device 700 according to the present embodiment includes: a scanning module 701, a processing module 702 and a transmitting module 703.
A scanning module 701, configured to scan a bluetooth signal for a first preset duration after a first preset time;
the processing module 702 is configured to generate first detection information according to the first bluetooth signal when the first bluetooth signal is scanned; the first Bluetooth signal is sent by the first Bluetooth device after detecting the state information of the first Bluetooth device at a first preset moment, and comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises a first Bluetooth equipment identifier;
and the sending module 703 is configured to send the first detection information to the terminal device, so that the terminal device determines, according to the first detection information, an operating state of the first bluetooth device corresponding to the first bluetooth device identifier.
In some embodiments, the first detection information includes: the Bluetooth device comprises a first Bluetooth device identifier, first electric quantity information and first voltage information.
In some embodiments, the processing module 702 is specifically configured to, when generating the first detection information according to the first bluetooth signal: determining a first electric quantity state and a first voltage state according to a first preset electric quantity threshold value, a first preset voltage value, first electric quantity information and first voltage information; and generating first detection information according to the first Bluetooth equipment identifier, the first electric quantity state and the first voltage state.
In some embodiments, when the processing module 702 generates the first detection information according to the first bluetooth signal, the processing module is specifically configured to: determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first preset electric quantity threshold value, the first preset voltage value, the first electric quantity information and the first voltage information; and generating first detection information according to the first Bluetooth equipment identifier and the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier.
In some embodiments, when the processing module 702 generates the first detection information according to the first bluetooth signal, the processing module is specifically configured to: determining the equipment identification of the first Bluetooth equipment which is not scanned according to the first Bluetooth equipment identification in the scanned first Bluetooth signal and at least one preset first Bluetooth equipment identification; and generating first detection information according to the first Bluetooth signal and the device identification of the first Bluetooth device which is not scanned.
In some embodiments, bluetooth device 700 further comprises: and the detection module 704 is configured to detect own state information at a second preset time. The processing module 702 is further configured to generate second detection information according to the status information and the device identifier of the processing module. The sending module 703 is further configured to send the second detection information to the terminal device, so that the terminal device determines the working state of the second bluetooth device according to the second detection information.
In some embodiments, the own state information includes: own electric quantity information and voltage information; the processing module 702 is specifically configured to, when generating the second detection information according to the state information and the device identifier of the processing module itself: determining a second electric quantity state and a second voltage state according to a second preset electric quantity threshold value, a second preset voltage value, own electric quantity information and voltage information; and generating second detection information according to the equipment identification, the second electric quantity state and the second voltage state.
In some embodiments, the processing module 702 is specifically configured to, when generating the second detection information according to the state information of the processing module and the device identifier: determining the working state of the self according to the second preset electric quantity threshold value, the second preset voltage value, the self electric quantity information and the voltage information; and generating second detection information according to the equipment identification and the working state of the equipment.
The device of the present embodiment may be used to execute the method of the second bluetooth device in any of the foregoing embodiments, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 8 is a schematic structural diagram of a bluetooth device according to an embodiment of the present disclosure, where the device according to the present embodiment may be a bluetooth spike set in a parking control area, as shown in fig. 8, a bluetooth device 800 according to the present embodiment includes: a detection module 801, a processing module 802, and a broadcasting module 803.
The detection module 801 is configured to detect own power information and voltage information at a first preset time;
the processing module 802 is configured to generate a first bluetooth signal according to self power information, voltage information, and bluetooth device identifier;
a broadcasting module 803 for broadcasting the first bluetooth signal.
The device of the present embodiment may be used to execute the method of the first bluetooth device in any of the foregoing embodiments, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 9 is a schematic structural diagram of a terminal device provided in an embodiment of the present disclosure, where the device in this embodiment may be a server, a mobile phone, a computer, or other terminal devices, as shown in fig. 9, and a terminal device 900 in this embodiment includes: a processing module 901 and a transmitting module 902.
The processing module 901 is configured to determine, when receiving first detection information sent by the second bluetooth device, an operating state of the first bluetooth device according to the first detection information; the first detection information comprises a first Bluetooth device identifier;
a sending module 902, configured to send an abnormality indication message if the first detection message indicates that the working state of the first bluetooth device corresponding to the first bluetooth device identifier is abnormal; the abnormality prompt information comprises Bluetooth equipment identifiers of abnormal equipment.
In some embodiments, the first detection information further comprises: first electric quantity information and first voltage information. When determining the working state of the first bluetooth device according to the first detection information, the processing module 901 is specifically configured to: and determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first preset electric quantity threshold value, the first preset voltage value, the first electric quantity information in the first detection information and the first voltage information.
In some embodiments, the first detection information further comprises: a first state of charge, a first voltage state. When determining the working state of the first bluetooth device according to the first detection information, the processing module 901 is specifically configured to: and determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first electric quantity state and the first voltage state.
In some embodiments, the first detection information further comprises: device identification of the first bluetooth device that was not scanned. When determining the working state of the first bluetooth device according to the first detection information, the processing module 901 is specifically configured to: and determining that the working state of the first unscanned Bluetooth device is abnormal according to the Bluetooth device identification of the first unscanned Bluetooth device.
In some embodiments, the processing module 901 is further for: when receiving second detection information sent by the second Bluetooth device, determining the working state of the second Bluetooth device according to the second detection information; the second detection information comprises a device identifier of a second Bluetooth device; the sending module 902 is further configured to: if the second detection information indicates that the working state of the second Bluetooth device is abnormal, abnormal prompt information is sent; the abnormality prompt information comprises equipment identification of abnormal equipment.
In some embodiments, the second detection information further comprises: and the electric quantity information and the voltage information of the second Bluetooth device. When determining the working state of the second bluetooth device according to the second detection information, the processing module 901 is specifically configured to: and determining the working state of the second Bluetooth device according to the second preset electric quantity threshold value, the second preset voltage value, the electric quantity information and the voltage information of the second Bluetooth device.
In some embodiments, the second detection information further comprises: the power state, voltage state of the second bluetooth device. When determining the working state of the second bluetooth device according to the second detection information, the processing module 901 is specifically configured to: and determining the working state of the second Bluetooth device according to the electric quantity state and the voltage state of the second Bluetooth device.
In some embodiments, the processing module 901 is further for: if the second detection information is not received within a second preset time period after the second preset time, determining that the working state of the second Bluetooth device is abnormal.
The device of the present embodiment may be used to execute the method of the terminal device in any of the foregoing embodiments, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 10 is a schematic structural diagram of a bluetooth device according to an embodiment of the present disclosure, where the device according to the present embodiment may be a bluetooth spike disposed in a parking control area, as shown in fig. 10, a bluetooth device 1000 according to the present embodiment includes: a memory 1001 and a processor 1002.
Memory 1001 is used to store program instructions;
the processor 1002 is configured to invoke the program instructions in the memory 1001 to perform scanning for bluetooth signals for a first preset duration after a first preset time; generating first detection information according to the first Bluetooth signal when the first Bluetooth signal is scanned; the first Bluetooth signal is sent by the first Bluetooth device after detecting the state information of the first Bluetooth device at a first preset moment, and comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises a first Bluetooth equipment identifier; and sending the first detection information to the terminal equipment so that the terminal equipment determines the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier according to the first detection information.
In some embodiments, the first detection information includes: the Bluetooth device comprises a first Bluetooth device identifier, first electric quantity information and first voltage information.
In some embodiments, the processor 1002, when generating the first detection information from the first bluetooth signal, is specifically configured to: determining a first electric quantity state and a first voltage state according to a first preset electric quantity threshold value, a first preset voltage value, first electric quantity information and first voltage information; and generating first detection information according to the first Bluetooth equipment identifier, the first electric quantity state and the first voltage state.
In some embodiments, when the processor 1002 generates the first detection information according to the first bluetooth signal, the processor is specifically configured to: determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first preset electric quantity threshold value, the first preset voltage value, the first electric quantity information and the first voltage information; and generating first detection information according to the first Bluetooth equipment identifier and the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier.
In some embodiments, when the processor 1002 generates the first detection information according to the first bluetooth signal, the processor is specifically configured to: determining the equipment identification of the first Bluetooth equipment which is not scanned according to the first Bluetooth equipment identification in the scanned first Bluetooth signal and at least one preset first Bluetooth equipment identification; and generating first detection information according to the first Bluetooth signal and the device identification of the first Bluetooth device which is not scanned.
In some embodiments, the processor 1002 is further configured to detect, at a second preset time, own status information; generating second detection information according to the state information and the equipment identifier of the device; and sending the second detection information to the terminal equipment so that the terminal equipment can determine the working state of the second Bluetooth equipment according to the second detection information.
In some embodiments, the own state information includes: own electric quantity information and voltage information; the processor 1002 is specifically configured to, when generating the second detection information according to the self state information and the device identifier: determining a second electric quantity state and a second voltage state according to a second preset electric quantity threshold value, a second preset voltage value, own electric quantity information and voltage information; and generating second detection information according to the equipment identification, the second electric quantity state and the second voltage state.
In some embodiments, the processor 1002 is specifically configured to, when generating the second detection information according to the state information of the processor, the device identifier: determining the working state of the self according to the second preset electric quantity threshold value, the second preset voltage value, the self electric quantity information and the voltage information; and generating second detection information according to the equipment identification and the working state of the equipment.
The device of the present embodiment may be used to execute the method of the second bluetooth device in any of the foregoing embodiments, and its implementation principle and technical effects are similar, and are not described herein again.
Embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored thereon; the computer program, when executed, implements a method of the second bluetooth device as in any of the embodiments described above.
Fig. 11 is a schematic structural diagram of a bluetooth device according to an embodiment of the present disclosure, where the device according to the present embodiment may be a bluetooth spike set in a parking control area, as shown in fig. 11, a bluetooth device 1100 according to the present embodiment includes: a memory 1101 and a processor 1102.
The memory 1101 is used to store program instructions.
The processor 1102 is configured to invoke a program instruction in the memory 1101 to execute detecting electric quantity information and voltage information of the processor at a first preset time; generating a first Bluetooth signal according to the self electric quantity information, the voltage information and the Bluetooth equipment identifier; the first bluetooth signal is broadcast.
The device of the present embodiment may be used to execute the method of the first bluetooth device in any of the foregoing embodiments, and its implementation principle and technical effects are similar, and are not described herein again.
Embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored thereon; the computer program, when executed, implements a method as described in any of the above embodiments for the first bluetooth device.
Fig. 12 is a schematic structural diagram of a terminal device provided in an embodiment of the present disclosure, where the terminal device in this embodiment may be a server, a mobile phone, a computer, or other terminal devices, and as shown in fig. 12, a terminal device 1200 in this embodiment includes: a memory 1201 and a processor 1202.
The memory 1201 is used to store program instructions.
The processor 1202 is operative to invoke execution of program instructions in the memory 1201: when receiving first detection information sent by second Bluetooth equipment, determining the working state of the first Bluetooth equipment according to the first detection information; the first detection information comprises a first Bluetooth device identifier; if the first detection information indicates that the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier is abnormal, abnormal prompt information is sent; the abnormality prompt information comprises Bluetooth equipment identifiers of abnormal equipment.
In some embodiments, the first detection information further comprises: first electric quantity information and first voltage information. The processor 1202 is specifically configured to, when determining the operating state of the first bluetooth device according to the first detection information: and determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first preset electric quantity threshold value, the first preset voltage value, the first electric quantity information in the first detection information and the first voltage information.
In some embodiments, the first detection information further comprises: a first state of charge, a first voltage state. The processor 1202 is specifically configured to, when determining the operating state of the first bluetooth device according to the first detection information: and determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first electric quantity state and the first voltage state.
In some embodiments, the first detection information further comprises: device identification of the first bluetooth device that was not scanned. The processor 1202 is specifically configured to, when determining the operating state of the first bluetooth device according to the first detection information: and determining that the working state of the first unscanned Bluetooth device is abnormal according to the Bluetooth device identification of the first unscanned Bluetooth device.
In some embodiments, the processor 1202 is further configured to: when receiving second detection information sent by the second Bluetooth device, determining the working state of the second Bluetooth device according to the second detection information; the second detection information comprises a device identifier of a second Bluetooth device; if the second detection information indicates that the working state of the second Bluetooth device is abnormal, abnormal prompt information is sent; the abnormality prompt information comprises equipment identification of abnormal equipment.
In some embodiments, the second detection information further comprises: and the electric quantity information and the voltage information of the second Bluetooth device. The processor 1202 is specifically configured to, when determining the operating state of the second bluetooth device according to the second detection information: and determining the working state of the second Bluetooth device according to the second preset electric quantity threshold value, the second preset voltage value, the electric quantity information and the voltage information of the second Bluetooth device.
In some embodiments, the second detection information further comprises: the power state, voltage state of the second bluetooth device. The processor 1202 is specifically configured to, when determining the operating state of the second bluetooth device according to the second detection information: and determining the working state of the second Bluetooth device according to the electric quantity state and the voltage state of the second Bluetooth device.
In some embodiments, the processor 1202 is further configured to: if the second detection information is not received within a second preset time period after the second preset time, determining that the working state of the second Bluetooth device is abnormal.
The device of the present embodiment may be used to execute the method of the terminal device in any of the foregoing embodiments, and its implementation principle and technical effects are similar, and are not described herein again.
Embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored thereon; when executed, the computer program implements the method of the terminal device in any of the embodiments described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. The embodiments of the present disclosure are intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (17)

1. A bluetooth device management method, applied to a second bluetooth device, the method comprising:
scanning Bluetooth signals within a first preset time period after a first preset time;
if the first Bluetooth signal is scanned, generating first detection information according to the first Bluetooth signal; the first Bluetooth signal is sent by a first Bluetooth device after detecting self state information at a first preset moment, and comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises the first Bluetooth device identifiers, the first Bluetooth devices are located in a parkable area, the second Bluetooth devices are located in areas except the parkable area in a parking control area, a plurality of first Bluetooth devices are preset in the scanning range of the second Bluetooth devices, and the device identifiers corresponding to the plurality of first Bluetooth devices are preset in the second Bluetooth devices;
The first detection information is sent to terminal equipment, so that the terminal equipment determines the working state of first Bluetooth equipment corresponding to the first Bluetooth equipment identifier according to the first detection information;
further comprises:
detecting own state information at a second preset moment;
generating second detection information according to the state information and the equipment identifier of the device;
the second detection information is sent to terminal equipment, so that the terminal equipment determines the working state of the second Bluetooth equipment according to the second detection information;
the first detection information further includes: the device identification of the first bluetooth device that was not scanned,
correspondingly, the generating the first detection information according to the first bluetooth signal includes:
determining the equipment identification of the first Bluetooth equipment which is not scanned according to the first Bluetooth equipment identification in the scanned first Bluetooth signal and at least one preset first Bluetooth equipment identification;
and generating first detection information according to the first Bluetooth signal and the equipment identifier of the first unscanned Bluetooth equipment.
2. The method of claim 1, wherein the first detection information comprises: the first Bluetooth device identifier, the first electric quantity information and the first voltage information.
3. The method of claim 2, wherein generating the first detection information from the first bluetooth signal comprises:
determining a first electric quantity state and a first voltage state according to a first preset electric quantity threshold value, a first preset voltage value, the first electric quantity information and the first voltage information;
and generating first detection information according to the first Bluetooth equipment identifier, the first electric quantity state and the first voltage state.
4. The method of claim 2, wherein generating the first detection information from the first bluetooth signal comprises:
determining the working state of a first Bluetooth device corresponding to the first Bluetooth device identifier according to a first preset electric quantity threshold value, a first preset voltage value, the first electric quantity information and the first voltage information;
and generating first detection information according to the first Bluetooth equipment identifier and the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier.
5. The method of claim 1, wherein the self state information comprises: own electric quantity information and voltage information;
the generating the second detection information according to the state information and the equipment identifier of the device comprises the following steps:
Determining a second electric quantity state and a second voltage state according to a second preset electric quantity threshold value, a second preset voltage value, own electric quantity information and voltage information;
and generating second detection information according to the equipment identification, the second electric quantity state and the second voltage state.
6. The method of claim 5, wherein generating the second detection information according to the status information of the second detection information and the device identifier includes:
determining the working state of the self according to the second preset electric quantity threshold value, the second preset voltage value, the self electric quantity information and the voltage information;
and generating second detection information according to the self equipment identification and the self working state.
7. A bluetooth device management method, applied to a terminal device, the method comprising:
when receiving first detection information sent by second Bluetooth equipment, determining the working state of the first Bluetooth equipment according to the first detection information; the first detection information comprises a first Bluetooth device identifier, the first Bluetooth device is located in a parkable area, the second Bluetooth device is located in an area except the parkable area in a parking control area, a plurality of first Bluetooth devices are preset in a scanning range of the second Bluetooth device, and device identifiers corresponding to the plurality of first Bluetooth devices are preset in the second Bluetooth device;
If the first detection information indicates that the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier is abnormal, abnormal prompt information is sent; the abnormal prompt information comprises Bluetooth equipment identifiers of abnormal equipment;
further comprises:
when receiving second detection information sent by second Bluetooth equipment, determining the working state of the second Bluetooth equipment according to the second detection information; the second detection information comprises a device identifier of a second Bluetooth device;
if the second detection information indicates that the working state of the second Bluetooth device is abnormal, abnormal prompt information is sent; the abnormality prompt information comprises equipment identifiers of abnormal equipment;
the first detection information further includes: a device identification of the first bluetooth device that is not scanned;
the determining the working state of the first bluetooth device according to the first detection information includes:
and determining that the working state of the first unscanned Bluetooth device is abnormal according to the Bluetooth device identification of the first unscanned Bluetooth device.
8. The method of claim 7, wherein the first detection information further comprises: first electric quantity information and first voltage information;
The determining the working state of the first bluetooth device according to the first detection information includes:
and determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to a first preset electric quantity threshold value, a first preset voltage value, first electric quantity information in the first detection information and first voltage information.
9. The method of claim 7, wherein the first detection information further comprises: a first state of charge, a first voltage state;
the determining the working state of the first bluetooth device according to the first detection information includes:
and determining the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first electric quantity state and the first voltage state.
10. The method of claim 7, wherein the second detection information further comprises: the electric quantity information and the voltage information of the second Bluetooth equipment;
the determining the working state of the second bluetooth device according to the second detection information includes:
and determining the working state of the second Bluetooth device according to the second preset electric quantity threshold value, the second preset voltage value, the electric quantity information and the voltage information of the second Bluetooth device.
11. The method of claim 7, wherein the second detection information further comprises: the state of charge, voltage state of the second bluetooth device;
the determining the working state of the second bluetooth device according to the second detection information includes:
and determining the working state of the second Bluetooth device according to the electric quantity state and the voltage state of the second Bluetooth device.
12. The method according to any one of claims 7-9, further comprising:
if the second detection information is not received within a second preset time period after the second preset time, determining that the working state of the second Bluetooth device is abnormal.
13. A bluetooth device, comprising:
the scanning module is used for scanning the Bluetooth signal within a first preset duration after a first preset moment;
the processing module is used for generating first detection information according to the first Bluetooth signal when the first Bluetooth signal is scanned; the first Bluetooth signal is sent by a first Bluetooth device after detecting self state information at a first preset moment, and comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises the first Bluetooth device identifiers, the first Bluetooth devices are located in a parkable area, the second Bluetooth devices are located in areas except the parkable area in a parking control area, a plurality of first Bluetooth devices are preset in the scanning range of the second Bluetooth devices, and the device identifiers corresponding to the plurality of first Bluetooth devices are preset in the second Bluetooth devices;
The sending module is used for sending the first detection information to the terminal equipment so that the terminal equipment can determine the working state of the first Bluetooth equipment corresponding to the first Bluetooth equipment identifier according to the first detection information;
the bluetooth device further includes:
the detection module is used for detecting the state information of the detection module at a second preset moment;
the processing module is also used for generating second detection information according to the state information and the equipment identifier of the processing module;
the sending module is further configured to send the second detection information to the terminal device, so that the terminal device determines the working state of the second bluetooth device according to the second detection information;
the first detection information further includes: the device identification of the first bluetooth device that was not scanned,
correspondingly, the processing module is specifically configured to:
determining the equipment identification of the first Bluetooth equipment which is not scanned according to the first Bluetooth equipment identification in the scanned first Bluetooth signal and at least one preset first Bluetooth equipment identification;
and generating first detection information according to the first Bluetooth signal and the equipment identifier of the first unscanned Bluetooth equipment.
14. A terminal device, comprising:
the processing module is used for determining the working state of the first Bluetooth device according to the first detection information when the first detection information sent by the second Bluetooth device is received; the first detection information comprises a first Bluetooth device identifier, the first Bluetooth device is located in a parkable area, the second Bluetooth device is located in an area except the parkable area in a parking control area, a plurality of first Bluetooth devices are preset in a scanning range of the second Bluetooth device, and device identifiers corresponding to the plurality of first Bluetooth devices are preset in the second Bluetooth device;
the sending module is used for sending abnormal prompt information if the first detection information indicates that the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier is abnormal; the abnormal prompt information comprises Bluetooth equipment identifiers of abnormal equipment;
the processing module is further configured to: when receiving second detection information sent by the second Bluetooth device, determining the working state of the second Bluetooth device according to the second detection information; wherein the second detection information includes a device identifier of the second bluetooth device;
The sending module is further configured to send an abnormality prompt message if the second detection information indicates that the working state of the second bluetooth device is abnormal; the abnormality prompt information comprises equipment identifiers of abnormal equipment;
the first detection information further includes: a device identification of the first bluetooth device that is not scanned;
the processing module is specifically configured to:
and determining that the working state of the first unscanned Bluetooth device is abnormal according to the Bluetooth device identification of the first unscanned Bluetooth device.
15. A bluetooth device, comprising: a memory and a processor;
the memory is used for storing program instructions;
the processor is configured to invoke program instructions in the memory to perform the method of any of claims 1-6.
16. A terminal device, comprising: a memory and a processor;
the memory is used for storing program instructions;
the processor is configured to invoke program instructions in the memory to perform the method of any of claims 7-12.
17. A computer readable storage medium having a computer program stored thereon; the computer program, when executed, implements the method of any of claims 1-12.
CN202010809457.2A 2020-08-12 2020-08-12 Bluetooth device management method, bluetooth device, terminal device and storage medium Active CN111918260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010809457.2A CN111918260B (en) 2020-08-12 2020-08-12 Bluetooth device management method, bluetooth device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010809457.2A CN111918260B (en) 2020-08-12 2020-08-12 Bluetooth device management method, bluetooth device, terminal device and storage medium

Publications (2)

Publication Number Publication Date
CN111918260A CN111918260A (en) 2020-11-10
CN111918260B true CN111918260B (en) 2024-04-12

Family

ID=73284874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010809457.2A Active CN111918260B (en) 2020-08-12 2020-08-12 Bluetooth device management method, bluetooth device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN111918260B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888548A (en) * 2014-04-18 2014-06-25 重庆金瓯科技发展有限责任公司 Bluetooth beacon monitoring and management system
CN107196921A (en) * 2017-04-28 2017-09-22 成都新橙北斗智联有限公司 A kind of cruising inspection system and method based on Bluetooth beacon equipment
KR20170132455A (en) * 2016-05-24 2017-12-04 (주)프라임소프트 Bluetooth beacon signal transmission and reception apparauts and system
CN107820226A (en) * 2017-11-23 2018-03-20 广州神勇科技有限公司 Shared bicycle vehicle scan system, method and end of scan equipment
CN108260109A (en) * 2016-12-27 2018-07-06 中国电信股份有限公司 Monitoring method, system and the equipment of beacon Bluetooth base. station
CN108848486A (en) * 2018-06-28 2018-11-20 芜湖施乐智能科技有限公司 One kind being based on internet bluetooth equipment electricity based reminding method
CN110264700A (en) * 2019-06-28 2019-09-20 上海钧正网络科技有限公司 A kind of BLE beacon networking fence and vehicle supervision method
CN110853337A (en) * 2019-11-20 2020-02-28 北京一通智能科技有限公司 Shared bicycle parking system and method and electronic fence
CN111107531A (en) * 2019-12-13 2020-05-05 珠海格力电器股份有限公司 Method, device and storage medium for controlling Bluetooth equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450268A (en) * 2015-12-02 2016-03-30 惠州Tcl移动通信有限公司 Bluetooth-based method and system for automatically connecting wearable device with mobile terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888548A (en) * 2014-04-18 2014-06-25 重庆金瓯科技发展有限责任公司 Bluetooth beacon monitoring and management system
KR20170132455A (en) * 2016-05-24 2017-12-04 (주)프라임소프트 Bluetooth beacon signal transmission and reception apparauts and system
CN108260109A (en) * 2016-12-27 2018-07-06 中国电信股份有限公司 Monitoring method, system and the equipment of beacon Bluetooth base. station
CN107196921A (en) * 2017-04-28 2017-09-22 成都新橙北斗智联有限公司 A kind of cruising inspection system and method based on Bluetooth beacon equipment
CN107820226A (en) * 2017-11-23 2018-03-20 广州神勇科技有限公司 Shared bicycle vehicle scan system, method and end of scan equipment
CN108848486A (en) * 2018-06-28 2018-11-20 芜湖施乐智能科技有限公司 One kind being based on internet bluetooth equipment electricity based reminding method
CN110264700A (en) * 2019-06-28 2019-09-20 上海钧正网络科技有限公司 A kind of BLE beacon networking fence and vehicle supervision method
CN110853337A (en) * 2019-11-20 2020-02-28 北京一通智能科技有限公司 Shared bicycle parking system and method and electronic fence
CN111107531A (en) * 2019-12-13 2020-05-05 珠海格力电器股份有限公司 Method, device and storage medium for controlling Bluetooth equipment

Also Published As

Publication number Publication date
CN111918260A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
US20200178105A1 (en) Method of mdt information logging and reporting
CN101189858B (en) In a wireless local area network for detecting the method for the existence of unwarranted equipment
KR101450774B1 (en) Duplicated ssid detecting method and system through self scan in wireless lan
CN110646699A (en) Charging pile fault identification method, storage medium, charging pile and electronic equipment
US7437127B2 (en) Method and system for determining existence of a predetermined wireless network coverage condition in a wireless network
CN104137600A (en) Method and apparatus for logging
CN114208130B (en) Managing interrupt detection and reporting
US11296547B2 (en) Distribution transformer terminal and method for monitoring a state of a distribution transformer court device
CN102378184B (en) For the method carrying out channel switch within a wireless communication network
JP2012523193A (en) Method and system for obtaining radio access network (RAN) information of a cellular telecommunication network
US9693298B2 (en) Method and system of analyzing a plurality of cells of a cellular telecommunication network
CN103650566B (en) Neighbouring relations are managed
CN104640098A (en) Auxiliary D2D (device to device) link resource managing method, auxiliary D2D link resource managing device, D2D link resource managing method and D2D link resource managing device
EP1361703A2 (en) Wireless data collecting system, base station thereof, and wireless terminal thereof
CN102404060A (en) Detecting method and detecting equipment for antenna as well as equipment to be detected
CN111918260B (en) Bluetooth device management method, bluetooth device, terminal device and storage medium
CN112860499B (en) Passive distributed system monitoring method, device, equipment, medium and program product
CN116887324B (en) Detection method and device of HPLC (high performance liquid chromatography) and RF (radio frequency) dual-mode network, communication equipment and power system
CN104540165A (en) Communication network monitoring system
CN112636461B (en) Remote restart method and system for fault recorder
CN109725591B (en) Monitoring device and method thereof
CN110621062A (en) Paging method and system of NB-IoT (NB-IoT) terminal
CN117078325A (en) Dual-power electricity charging method, device, equipment and storage medium
CN117979280A (en) Roaming control method, roaming control device, network equipment and storage medium
CN103701668B (en) A kind of energy-consumption monitoring method and system based on Power Control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant