CN111918260A - 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
CN111918260A
CN111918260A CN202010809457.2A CN202010809457A CN111918260A CN 111918260 A CN111918260 A CN 111918260A CN 202010809457 A CN202010809457 A CN 202010809457A CN 111918260 A CN111918260 A CN 111918260A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth device
information
detection information
electric quantity
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.)
Granted
Application number
CN202010809457.2A
Other languages
Chinese (zh)
Other versions
CN111918260B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Selective Calling Equipment (AREA)
  • Mobile Radio Communication Systems (AREA)

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 a Bluetooth signal within a first preset duration 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 the first Bluetooth device detects self state information at a first preset time, and the first Bluetooth signal comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises a first Bluetooth device 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, and 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 communications technologies, and in particular, to a bluetooth device management method, a bluetooth device, a terminal device, and a storage medium.
Background
The appearance of the shared bicycle provides a new travel mode and brings great convenience. However, many users park the bicycle freely after using the bicycle, which affects public environments. In particular, as the number of shared bicycle drops increases, the impact on public order becomes more prominent.
In order to identify and guide the parking position of the user, a designated parking spot is defined in some areas. These areas are called regulated areas, and the designated parking spots are called parkable areas. Simultaneously, set up two kinds of bluetooth equipment respectively in two regions, outwards broadcast different bluetooth signal to carry out electronic identification to regional nature, the cooperation bicycle realizes intelligent the guide of parking.
The Bluetooth devices are arranged in a large number, and the daily management and maintenance difficulty is high.
Disclosure of Invention
The embodiment of the disclosure provides a Bluetooth device management method, a Bluetooth device, a terminal device and a storage medium, which are used for monitoring the working state of the Bluetooth device, finding out a fault in time and solving the fault as soon as possible, so that the management and maintenance efficiency of a plurality of Bluetooth devices is improved.
In a first aspect, an embodiment of the present disclosure provides a bluetooth device management method, which is applied to a second bluetooth device, and the method includes: scanning a Bluetooth signal within a first preset duration after a first preset time; if a 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 the first Bluetooth signal comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises the first Bluetooth device identification; and sending the first detection information to a terminal device, so that the terminal device determines the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first detection information.
In a second aspect, an embodiment of the present disclosure provides a bluetooth device management method, applied to a first bluetooth device, the method including: detecting self electric quantity information and voltage information at a first preset moment; generating a first Bluetooth signal according to the electric quantity information, the voltage information and the Bluetooth device identification of the Bluetooth device; broadcasting the first Bluetooth signal.
In a third aspect, an embodiment of the present disclosure provides a bluetooth device management method, including: when first detection information sent by second Bluetooth equipment is received, determining the working state of the first Bluetooth equipment according to the first detection information; wherein 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, sending abnormal prompt information; and the abnormal prompt message comprises the Bluetooth equipment identification of the abnormal equipment.
In a fourth aspect, an embodiment of the present disclosure provides a bluetooth device, including: the scanning module is used for scanning the Bluetooth signal within a first preset time after a first preset time; the processing module is used for generating first detection information according to a 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 the first Bluetooth signal comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises the first Bluetooth device identification; and the sending module is used for 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 a fifth aspect, an embodiment of the present disclosure provides a bluetooth device, including: the detection module is used for detecting the electric quantity information and the voltage information of the detection module at a first preset moment; the processing module is used for generating a first Bluetooth signal according to the electric quantity information, the voltage information and the Bluetooth device identification of the processing module; and the broadcasting module is used for broadcasting the first Bluetooth signal.
In a sixth aspect, an embodiment of the present disclosure provides a bluetooth device management device, including: the processing module is used for determining the working state of the first Bluetooth device according to first detection information when the first detection information sent by the second Bluetooth device is received; wherein the first detection information comprises a first Bluetooth device identifier; the sending module is used for sending an abnormal prompt message if the first detection information indicates that the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier is abnormal; and the abnormal prompt message comprises the Bluetooth equipment identification of the abnormal equipment.
In a seventh aspect, an embodiment of the present disclosure provides a bluetooth device, including: a memory and a processor. The memory is to store program instructions; the processor is configured to invoke program instructions in the memory to perform the method of the first aspect.
In an eighth aspect, an embodiment of the present disclosure provides a bluetooth device, including: a memory and a processor. The memory is to store program instructions; the processor is configured to invoke program instructions in the memory to perform the method of the second aspect.
In a ninth aspect, an embodiment of the present disclosure provides a terminal device, including: a memory and a processor. The memory is to store 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; which when executed performs the method of the first aspect.
In an eleventh aspect, embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon; which when executed performs the method of the second aspect.
In a twelfth aspect, embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon; which when executed performs the method of 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 a Bluetooth signal within a first preset duration after a first preset time; if a 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 the first Bluetooth signal comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises the first Bluetooth device identification; and sending the first detection information to a terminal device, so that the terminal device determines the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first detection information. According to the embodiment of the disclosure, the second Bluetooth device collects and forwards the state information of the first Bluetooth device, and the terminal device determines the working state of the first Bluetooth device, so that the state monitoring and management of the first Bluetooth device are realized. First bluetooth equipment does not directly communicate with terminal equipment, can reduce its self consumption, prolongs battery live time under the same electric quantity, reduces the change frequency of battery. Meanwhile, the working state of the first Bluetooth device can be effectively monitored, so that the fault conditions of insufficient electric quantity, unstable voltage and the like 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, and the efficiency of managing a plurality of first Bluetooth devices is improved.
Various possible embodiments of the present disclosure and technical advantages thereof will be described in detail below.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present 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 by 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 self-status 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.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
First, terms related to embodiments of the present disclosure are explained:
parking control area: refers to an area having specific requirements for a parking location of a vehicle;
parking available area: the method comprises the steps of indicating a designated vehicle parking area in a parking control area;
bluetooth equipment: the terminal equipment with the Bluetooth transmission function comprises a Bluetooth spike.
To standardize parking of shared vehicles, the concept of "electronic fences" is proposed. The electronic fence actually performs invisible division on a vehicle parking area by means of coverage of wireless signals.
Bluetooth, as a small-range wireless connection technology, can implement convenient, fast, flexible, safe, low-cost, low-power data communication between devices, and is therefore one of the mainstream technologies for implementing wireless personal area network communication at present.
In the building process of the electronic fence of the shared vehicle, Bluetooth communication is also adopted. Specifically, the bluetooth device can be installed in an area with special requirements for parking the vehicle, and the coverage area of the bluetooth device can meet the requirements of the parking area. The Bluetooth device broadcasts a specific Bluetooth signal to the outside in a predetermined manner for indicating specific parking indication information. After the terminal device carried by the user or the terminal device 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 information indicated by the terminal device. In this way, a fence-like function is achieved.
In order to ensure coverage of bluetooth signals, multiple bluetooth devices may be provided in the same parking area. Meanwhile, there are many parking areas in one city. And the setting position of these bluetooth equipments is outdoor, and weather factor, human factor all can cause the damage to bluetooth equipment. And in case the bluetooth equipment damages, unable normal work, its rail function will also receive the influence.
Therefore, how to efficiently and accurately determine and manage and maintain the faulty devices in a large number of bluetooth devices is a technical problem to be solved at present.
How the bluetooth device is in operation can be roughly determined by analyzing parameters such as power, voltage, etc. For example, when the power is lower than a certain value, the device may not work properly due to insufficient power supply. For another example, when the device is operating normally, the voltage is stabilized within a certain range, and when the voltage exceeds the certain range, the device may be out of order. And the bluetooth device itself generally has functions of scanning for bluetooth signals and broadcasting bluetooth signals.
Based on this, the embodiment of the present disclosure proposes a solution, that is, the bluetooth device collects its own parameters that can be used to identify the status information, and adds these parameters to the bluetooth signal for broadcasting. The bluetooth device having the function of communicating with the terminal device is responsible for sending the corresponding parameters to the terminal device after scanning the bluetooth signals. And the terminal equipment judges the equipment state, and sends prompt information to operation and maintenance personnel after abnormality is found so as to process the fault equipment in time.
The bluetooth device management method provided by the embodiment of the disclosure can be applied to the management of the bluetooth spikes in the parking control area shown in fig. 1. As shown in fig. 1, a parking available area is defined in the parking control area. A plurality of Bluetooth spikes are arranged in a parking control area in a dispersed manner and are divided into two categories according to functions. One type is distributed in the parking available area, and the A type signal is broadcasted outwards and is called as an A spike for distinguishing. The other type is distributed in the whole parking control area and broadcasts a B type signal outwards, which is called a B spike. The specific arrangement position and the distance of the Bluetooth spikes can be different according to specific conditions, but in effect, the whole coverage range of the broadcast signals of the A spikes is infinitely close to the range of a parking available area, and the whole coverage range of the broadcast signals of the B spikes is infinitely close to the range of the whole parking control area.
After the user finishes using the vehicle, if the user happens to be in the parking control area, the shared vehicle should be parked into the parking available area according to the rule. The vehicle terminal or the user terminal may determine whether to enter the parkable area by scanning the bluetooth signal. When only the B-type signal is scanned, the parking control area is in the parking control area but the parking control area is not entered into the parking available area, and the parking is not available; when the A-type signal and the B-type signal are scanned simultaneously, the parking available area is entered, and the vehicle can be parked.
The execution of the parking rules described above relies on the proper functioning of the a and B spikes. Therefore, the state of the Bluetooth spike needs to be monitored regularly.
Specifically, the state information of the A-spike and the B-spike can be uploaded by the communication between the B-spike and the server. The state information of the A spike is detected at regular time, corresponding parameters are added into the Bluetooth signal to be broadcast outwards, and the B spike scans the Bluetooth signal to obtain the state information parameters of the A spike. Meanwhile, the B-spike can also detect the self state information at regular time.
The relative arrangement positions of the A-track spike and the B-track spike may be different according to specific situations, but in effect, the signal scanning range of the B-track spike covers the signal broadcasting range of the A-track spike.
The following describes in detail the technical solutions of the embodiments of the present disclosure and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated 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 subject of the method according to this embodiment is a bluetooth device that can communicate with a terminal device. As shown in fig. 2, the method of the present embodiment includes:
s201, scanning the Bluetooth signal within a first preset time after a first preset time.
In the embodiment of the present 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 the 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 moment is preferably a moment 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 third hour, etc. The first preset time may also be a fixed time, such as 8 am and/or 6 pm of each day, etc. The broadcast may also be performed at other set times, for example, according to a preset schedule. The broadcast may be made before the morning and evening peak periods to avoid major effects from malfunctioning equipment.
The scanning duration can be a first preset duration, and 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 a first Bluetooth device after the first Bluetooth device detects self state information at a first preset time, and the first Bluetooth signal comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises a first Bluetooth device identification.
After the first Bluetooth device detects the state information of the first Bluetooth device at a first preset moment, the first Bluetooth device generates a first Bluetooth signal according to the state information parameter and sends the first Bluetooth signal. The status information parameters may include power and voltage, etc. The first bluetooth signal comprises 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 identification of the first Bluetooth device.
The broadcast range and the scanning range of the bluetooth signal are sectors with 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, the corresponding "jurisdiction" relationship between the second bluetooth device and the first bluetooth device may be set by technical means.
For example, the first bluetooth devices 11, 12, 13, 14 are set within the scanning range of the second bluetooth device 21. And the device identifications corresponding to the four first bluetooth devices may be preset in the second bluetooth device. The scanning result of the second bluetooth device 21 may then be the following:
1) scanning four first Bluetooth signals, and determining whether the first Bluetooth signals belong to four first Bluetooth devices respectively according to the device identifications;
2) 1-3 first Bluetooth signals are scanned, and the absence of signals of one or more first Bluetooth devices can be determined according to the device identification;
3) the first bluetooth signal is not scanned. There may be other bluetooth signals in the scan result, but not belonging to the four second bluetooth devices.
Correspondingly, the following types of the generated first detection information may be possible:
1) only the first Bluetooth equipment identifier in the scanned Bluetooth signal and the state parameter information are contained;
2) the first Bluetooth equipment identifier in the scanned Bluetooth signal and the state parameter information are contained; and a device identification of the first bluetooth device that is not scanned;
3) the first Bluetooth equipment identification in the scanned Bluetooth signal and the state parameter information thereof are contained; and the device identification of the first bluetooth device that was not scanned, and its status parameter information (which may be null).
S203, sending the first detection information to the terminal device, so that the terminal device determines the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first detection information.
Because the first detection information contains the first bluetooth device identifier, the terminal device can determine the working state of each first bluetooth device.
The bluetooth device management method provided by the embodiment of the present disclosure is applied to a second bluetooth device that can communicate with a terminal device, and includes: scanning a Bluetooth signal within a first preset duration 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 the first Bluetooth device detects self state information at a first preset time, and the first Bluetooth signal comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises a first Bluetooth device 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 second Bluetooth device collects and forwards the state information of the first Bluetooth device, and the terminal device determines the working state of the first Bluetooth device, so that the state monitoring and management of the first Bluetooth device are realized. First bluetooth equipment does not directly communicate with terminal equipment, can reduce its self consumption, prolongs battery live time under the same electric quantity, reduces the change frequency of battery. Meanwhile, the working state of the first Bluetooth device can be effectively monitored, so that the fault conditions of insufficient electric quantity, unstable voltage and the like 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, and the efficiency of managing a plurality of first Bluetooth devices is improved.
For the above step S202 of generating the first detection information according to the first bluetooth signal, the following detection information may be formed:
1) the first detection information includes: the device comprises a first Bluetooth device identification, first electric quantity information and first voltage information.
The second bluetooth device directly extracts the first bluetooth device identifier, the first electric quantity information, the first voltage information and other information contained in the first bluetooth information to form first detection information and send the first detection information to the terminal device.
After receiving the first detection information, the terminal device may call a first preset electric quantity threshold value and a first preset voltage value preset in the terminal device, and compare the first electric quantity information and the first voltage information in the first detection information, so as to determine the 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 may send its device identifier (and abnormal performance, insufficient power or unstable voltage, etc.) to the operation and maintenance terminal, so as to prompt the operation and maintenance personnel to perform 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 device identification, the first electric quantity state and the first voltage state.
That is, the second bluetooth device calls a first preset electric quantity threshold 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 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, and if not, 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 large, the voltage state of the first Bluetooth device is considered to be abnormal, and if not, the voltage state is normal. And forming first detection information by information such as a first Bluetooth device identifier, a first judged electric quantity state, a first voltage state and the like contained in the first Bluetooth information, and sending the first detection information to the terminal device.
After receiving the first detection information, the terminal device can judge the working state of the first bluetooth device 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 when the two are normal, the state of the first bluetooth device is considered to be normal.
For the first bluetooth device with abnormal state, the terminal device may send its device identifier (and abnormal performance, insufficient power or unstable voltage, etc.) to the operation and maintenance terminal, so as to prompt the operation and maintenance personnel to perform 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 device identification and the working state of the first Bluetooth device corresponding to the first Bluetooth device identification.
That is, the second bluetooth device calls 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 judged working state of the first Bluetooth device and other information, and sending the first detection information to the terminal device.
After receiving the first detection information, the terminal device may directly determine whether the operating state of the first bluetooth device is abnormal.
For the first bluetooth device with abnormal state, the terminal device may send its device identifier (and abnormal performance, insufficient power or unstable voltage, etc.) to the operation and maintenance terminal, so as to prompt the operation and maintenance personnel to perform targeted maintenance.
The terminal device may 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 damaged severely, it may not be possible to broadcast the bluetooth signal at all. Therefore, for the device which is not scanned, the state abnormality can be directly determined. One mode is that after the terminal device receives the first detection information, the terminal device determines the first bluetooth device that is not scanned according to the first bluetooth device identifier contained therein, and determines that the working state of the terminal device is abnormal. Another way is that after the second bluetooth device scans the first bluetooth signal, the first bluetooth device that is not scanned is determined according to the first bluetooth device identifier contained therein, and the corresponding device identifier is added to the first detection information and sent to the terminal device.
Specifically, the device identifier of the first bluetooth device that is not scanned may 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: and the status parameters of the first Bluetooth equipment which are not scanned are marked as null values or abnormal.
In addition to assisting in monitoring the status of the first bluetooth device, the second bluetooth device may also detect its own operating status.
Fig. 3 is a flowchart of a method for detecting a self-status 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 the state information of the user at a second preset time.
Similar to the first preset time, the second preset time may be a periodic time, for example, every other hour or every third hour, etc. The second preset time may also be a fixed time, such as 8 am and/or 6 pm of each day, etc. The second predetermined time may be other set time, for example, broadcasting according to a predetermined schedule. The broadcast may be made before the morning and evening peak periods to avoid major effects from malfunctioning equipment.
The second preset time may be the same time as the first preset time, may be a related time, or may be an unrelated time.
S302, second detection information is generated according to the state information and the equipment identification of the second detection information.
The state information of itself may include: own electric quantity information, voltage information, and the like.
And S303, sending the second detection information to the terminal equipment so that the terminal equipment determines the working state of the second Bluetooth equipment according to the second detection information.
According to the state information and the device identifier of the user, the following ways of generating the second detection information are possible:
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, electric quantity information of the electric quantity state and voltage information of the electric quantity state; and generating second detection information according to the equipment identifier, the second electric quantity state and the second voltage state of the equipment.
That is, the second bluetooth device calls a second preset electric quantity threshold value and a second preset voltage value preset in the second bluetooth device to compare with the indicated electric quantity information and voltage information so as to determine the electric quantity state and 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, and if not, the electric quantity state is normal; if the deviation of the self voltage information and the second preset voltage value is large, the voltage state of the second Bluetooth device is considered to be abnormal, and if not, the voltage state is normal. And forming second detection information by the equipment identifier of the second Bluetooth equipment, the judged second electric quantity state, the second voltage state and other information, and sending the second detection 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; and only when the two are normal, the state of the second Bluetooth device is considered to be normal.
For the second bluetooth device with abnormal state, the terminal device may send its device identifier (and abnormal performance, insufficient power or unstable voltage, etc.) to the operation and maintenance terminal to prompt the operation and maintenance personnel to perform targeted maintenance.
2) Determining the working state of the self-body according to a second preset electric quantity threshold value, a second preset voltage value, the electric quantity information and the voltage information of the self-body; and generating second detection information according to the equipment identification and the working state of the equipment.
Namely, the second bluetooth device calls a second preset electric quantity threshold value and a second preset voltage value preset in the second bluetooth device to compare with the electric quantity information and the voltage information of the second bluetooth device, so as to determine the working state of the second bluetooth device. And forming second detection information by the equipment identifier of the second Bluetooth equipment, the judged working state of the second Bluetooth equipment and other information, and sending the second detection information to the terminal equipment.
After receiving the first detection information, the terminal device may directly determine whether the operating state of the first bluetooth device is abnormal.
For the second bluetooth device with abnormal state, the terminal device may send its device identifier (and abnormal performance, insufficient power or unstable voltage, etc.) to the operation and maintenance terminal to prompt the operation and maintenance personnel to perform 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, it may not be able to transmit signals at all. Therefore, if the terminal device does not receive the second detection information within a second preset time after the second preset time, it may be determined that the operating state of the second bluetooth device is abnormal.
The status detection of the second bluetooth device and the status detection process of the first bluetooth device may be synchronized or unsynchronized. If the two parts are not synchronized, it is preferable that the state detection frequency of the second bluetooth device may be higher than the state detection frequency of the first bluetooth device. Since the second bluetooth device, once failed, may also affect the status detection of the first bluetooth device.
The scanning process of the second bluetooth device for the first bluetooth signal and the detection process for the self status information, that is, the execution processes of S201 and S301 may be performed simultaneously or may not be performed simultaneously.
The process of the second bluetooth device transmitting the first detection information and the process of the second bluetooth device transmitting the second detection information, that is, the execution processes of S203 and S303 may be performed simultaneously or may not be performed simultaneously.
The specific implementation 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 execution body of the method of the 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 moment.
S402, generating a first Bluetooth signal according to the electric quantity information, the voltage information and the Bluetooth device identification of the Bluetooth device.
And S403, broadcasting the first Bluetooth signal.
The electric quantity information, the voltage information and the Bluetooth device identification of the first Bluetooth device are the first electric quantity information, the first voltage information and the first Bluetooth device identification.
Fig. 5 is a flowchart of a bluetooth device management method according to an embodiment of the present disclosure. The main execution body of the method of the embodiment is the terminal equipment. As shown in fig. 5, the method of the present embodiment includes:
s501, when first detection information sent by second Bluetooth equipment is received, determining the working state of the first Bluetooth equipment according to the first detection information; wherein the first detection information includes 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, sending abnormal prompt information; wherein, the abnormal prompt message includes the Bluetooth device identification of the abnormal device.
In some embodiments, the terminal device of the execution main body in this embodiment is an operation and maintenance terminal, and at this time, sending the exception prompt information actually means outputting the exception prompt information 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, comprising: 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 state of voltage; determining the working state of the first Bluetooth device according to the first detection information, comprising: 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, comprising: and determining that the working state of the first non-scanned Bluetooth device is abnormal according to the non-scanned Bluetooth device identification of the first Bluetooth device.
In some embodiments, the method further comprises: when second detection information sent by second Bluetooth equipment is received, determining the working state of the second Bluetooth equipment according to the second detection information; the second detection information comprises a device identification of the second Bluetooth device; if the second detection information indicates that the working state of the second Bluetooth device is abnormal, sending abnormal prompt information; the abnormal prompt information includes the device identifier of the abnormal device.
In some embodiments, the second detection information further comprises: electric quantity information and voltage information 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 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 electric quantity state and the 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: and if the second detection information is not received within a second preset time after the second preset time, determining that the working state of the second Bluetooth device is abnormal.
For a specific implementation manner of the method of this embodiment, reference may be made to the description in the foregoing embodiments, and the technical effects are similar and will not be described herein again.
Fig. 6 is a flowchart of a bluetooth device management method according to an embodiment of the present disclosure, where an execution subject of the method according to this 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 the electric quantity information and the voltage information of the first Bluetooth device at a first preset moment.
S602, the first Bluetooth device generates a first Bluetooth signal according to the electric quantity information, the voltage information and the Bluetooth device identification of the first Bluetooth device.
S603, the first Bluetooth device broadcasts the first Bluetooth signal.
S604, the second Bluetooth device scans the Bluetooth signals within a first preset time after the first preset time.
S605, if the second Bluetooth device scans the first Bluetooth signal, generating first detection information according to the first Bluetooth signal.
And 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 device determines the working state of the first Bluetooth device according to the first detection information.
Wherein the first detection information includes a first bluetooth device identifier.
S608, the terminal device sends an abnormal prompt message to the operation and maintenance terminal when determining that the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier is abnormal.
Wherein, the abnormal prompt message includes the Bluetooth device identification of the abnormal device.
And S609, the second Bluetooth device detects the state information of the second Bluetooth device at a second preset moment.
S610, the second Bluetooth device generates second detection information according to the state information and the device identification of the second Bluetooth device.
And 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.
And 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.
And S613, the terminal equipment sends an abnormal prompt message to the operation and maintenance terminal when determining that the working state of the second Bluetooth equipment is abnormal.
The abnormal prompt information includes the device identifier of the abnormal device.
The implementation manner of each step in this embodiment may refer to the description of the above embodiments, and the technical effects achieved by the implementation manner are the same, which are not described herein again.
In the scenario corresponding to fig. 1, all the B-spikes may be used as the second bluetooth devices to communicate with the terminal device, and all the a-spikes may be used as the first bluetooth devices. At this time, only a part of the B-spike may scan the bluetooth signal of the a-spike, and there may be repeated uploads of the same bluetooth signal of the a-spike detected by the B-spike.
In another implementation manner, part of the B-spikes may be used as the second bluetooth device to communicate with the terminal device, and another part of the B-spikes and all the a-spikes may be used as the first bluetooth device. The part of the B-spike can scan the Bluetooth signals of the A-spike and/or the other part of the B-spike, the spikes scanned by each of the part of the B-spike are different from each other, and the part of the B-spike can scan the Bluetooth signals of all the first Bluetooth devices. Therefore, less second equipment can be used for communicating with the terminal equipment, and the electric quantity of the equipment is further saved.
The above is merely an example of the selection manner of the first bluetooth device and the second bluetooth device, and other setting manners may be selected according to different actual 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 this embodiment may be a bluetooth spike disposed in a parking control area, as shown in fig. 7, a bluetooth device 700 according to this embodiment includes: a scanning module 701, a processing module 702 and a sending module 703.
The scanning module 701 is configured to scan a bluetooth signal within a first preset duration after a first preset time;
a processing module 702, configured to generate first detection information according to a first bluetooth signal when the first bluetooth signal is scanned; the first Bluetooth signal is sent by a first Bluetooth device after the first Bluetooth device detects self state information at a first preset time, and the first Bluetooth signal comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises a first Bluetooth device identifier;
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 device comprises a first Bluetooth device identification, first electric quantity information and first voltage information.
In some embodiments, the processing module 702, when generating the first detection information according to 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 device identification, 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, it 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 device identification and the working state of the first Bluetooth device corresponding to the first Bluetooth device identification.
In some embodiments, when the processing module 702 generates the first detection information according to the first bluetooth signal, it is specifically configured to: determining the device identifier of the first Bluetooth device which is not scanned 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.
In some embodiments, bluetooth device 700 further comprises: and the detecting module 704 is configured to detect the state information of the mobile terminal at a second preset time. The processing module 702 is further configured to generate second detection information according to the state information of the processing module and the device identifier. The sending module 703 is further configured to send the second detection information to the terminal device, so that the terminal device determines the operating state of the second bluetooth device according to the second detection information.
In some embodiments, the state information of itself includes: the electric quantity information and the voltage information of the self-body; the processing module 702, when generating the second detection information according to the state information and the device identifier of itself, is specifically configured to: 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, electric quantity information of the electric quantity state and voltage information of the electric quantity state; and generating second detection information according to the equipment identifier, the second electric quantity state and the second voltage state of the equipment.
In some embodiments, when the processing module 702 generates the second detection information according to its own state information and device identifier, it is specifically configured to: determining the working state of the self-body according to a second preset electric quantity threshold value, a second preset voltage value, the electric quantity information and the voltage information of the self-body; and generating second detection information according to the equipment identification and the working state of the equipment.
The device of this embodiment may be configured to perform the method of the second bluetooth device in any of the above embodiments, and the implementation principle and the technical effect are similar, which 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 this embodiment may be a bluetooth spike disposed in a parking control area, as shown in fig. 8, a bluetooth device 800 according to this embodiment includes: a detection module 801, a processing module 802 and a broadcast module 803.
The detection module 801 is configured to detect power information and voltage information of the detection module at a first preset time;
the processing module 802 is configured to generate a first bluetooth signal according to the electric quantity information, the voltage information, and the bluetooth device identifier of the processing module;
a broadcasting module 803, configured to broadcast the first bluetooth signal.
The device of this embodiment may be configured to perform the method of the first bluetooth device in any of the above embodiments, and the implementation principle and the technical effect are similar, which 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, a terminal device 900 in this embodiment includes: a processing module 901 and a sending module 902.
A processing module 901, configured to determine, when first detection information sent by a second bluetooth device is received, a working state of the first bluetooth device according to the first detection information; the first detection information comprises a first Bluetooth device identification;
a sending module 902, configured to send an exception prompt message if the first detection information indicates that the working state of the first bluetooth device corresponding to the first bluetooth device identifier is abnormal; wherein, the abnormal prompt message includes the Bluetooth device identification of the abnormal device.
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: a device identification of the first bluetooth device that is 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 non-scanned Bluetooth device is abnormal according to the non-scanned Bluetooth device identification of the first Bluetooth device.
In some embodiments, the processing module 901 is further configured to: when second detection information sent by second Bluetooth equipment is received, determining the working state of the second Bluetooth equipment according to the second detection information; the second detection information comprises a device identification of the second Bluetooth device; a sending module 902, further configured to: if the second detection information indicates that the working state of the second Bluetooth device is abnormal, sending abnormal prompt information; the abnormal prompt information includes the device identifier of the abnormal device.
In some embodiments, the second detection information further comprises: electric quantity information and 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 and the 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 configured to: and if the second detection information is not received within a second preset time after the second preset time, determining that the working state of the second Bluetooth device is abnormal.
The device of this embodiment may be configured to execute the method of the terminal device in any of the above embodiments, and the implementation principle and the technical effect are similar, which 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 this embodiment may be a bluetooth spike disposed in a parking control area, as shown in fig. 10, the bluetooth device 1000 according to this embodiment includes: a memory 1001 and a processor 1002.
The memory 1001 is used to store program instructions;
the processor 1002 is configured to call a program instruction in the memory 1001 to execute scanning of a bluetooth signal within a first preset duration after a first preset time; when 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 the first Bluetooth device detects self state information at a first preset time, and the first Bluetooth signal comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises a first Bluetooth device 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 device comprises a first Bluetooth device identification, first electric quantity information and first voltage information.
In some embodiments, when the processor 1002 generates the first detection information according to the first bluetooth signal, it 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 device identification, 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, it 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 device identification and the working state of the first Bluetooth device corresponding to the first Bluetooth device identification.
In some embodiments, when the processor 1002 generates the first detection information according to the first bluetooth signal, it is specifically configured to: determining the device identifier of the first Bluetooth device which is not scanned 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.
In some embodiments, the processor 1002 is further configured to detect the state information of itself at a second preset time; generating second detection information according to the state information and the equipment identification of the second detection information; and sending the second detection information to the terminal equipment so that the terminal equipment determines the working state of the second Bluetooth equipment according to the second detection information.
In some embodiments, the state information of itself includes: the electric quantity information and the voltage information of the self-body; when the processor 1002 generates the second detection information according to the state information and the device identifier of itself, it is specifically configured to: 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, electric quantity information of the electric quantity state and voltage information of the electric quantity state; and generating second detection information according to the equipment identifier, the second electric quantity state and the second voltage state of the equipment.
In some embodiments, when the processor 1002 generates the second detection information according to the state information and the device identifier of itself, it is specifically configured to: determining the working state of the self-body according to a second preset electric quantity threshold value, a second preset voltage value, the electric quantity information and the voltage information of the self-body; and generating second detection information according to the equipment identification and the working state of the equipment.
The device of this embodiment may be configured to perform the method of the second bluetooth device in any of the above embodiments, and the implementation principle and the technical effect are similar, which 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 the method of the second bluetooth device as in any of the above embodiments.
Fig. 11 is a schematic structural diagram of a bluetooth device according to an embodiment of the present disclosure, where the device according to this embodiment may be a bluetooth spike disposed in a parking control area, as shown in fig. 11, a bluetooth device 1100 according to this embodiment includes: a memory 1101 and a processor 1102.
The memory 1101 is used to store program instructions.
The processor 1102 is configured to call a program instruction in the memory 1101 to execute detection of power information and voltage information of the processor at a first preset time; generating a first Bluetooth signal according to the electric quantity information, the voltage information and the Bluetooth device identification of the Bluetooth device; a first bluetooth signal is broadcast.
The device of this embodiment may be configured to perform the method of the first bluetooth device in any of the above embodiments, and the implementation principle and the technical effect are similar, which 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 the method of the first bluetooth device as in any of the above embodiments.
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, 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 configured to invoke the execution of program instructions in the memory 1201: when first detection information sent by second Bluetooth equipment is received, determining the working state of the first Bluetooth equipment according to the first detection information; the first detection information comprises a first Bluetooth device identification; if the first detection information indicates that the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier is abnormal, sending abnormal prompt information; wherein, the abnormal prompt message includes the Bluetooth device identification of the abnormal device.
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 processor 1202 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 processor 1202 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: a device identification of the first bluetooth device that is not scanned. When determining the working state of the first bluetooth device according to the first detection information, the processor 1202 is specifically configured to: and determining that the working state of the first non-scanned Bluetooth device is abnormal according to the non-scanned Bluetooth device identification of the first Bluetooth device.
In some embodiments, the processor 1202 is further configured to: when second detection information sent by second Bluetooth equipment is received, determining the working state of the second Bluetooth equipment according to the second detection information; the second detection information comprises a device identification of the second Bluetooth device; if the second detection information indicates that the working state of the second Bluetooth device is abnormal, sending abnormal prompt information; the abnormal prompt information includes the device identifier of the abnormal device.
In some embodiments, the second detection information further comprises: electric quantity information and voltage information of the second Bluetooth device. When determining the working state of the second bluetooth device according to the second detection information, the processor 1202 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 and the voltage state of the second Bluetooth device. When determining the working state of the second bluetooth device according to the second detection information, the processor 1202 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 processor 1202 is further configured to: and if the second detection information is not received within a second preset time after the second preset time, determining that the working state of the second Bluetooth device is abnormal.
The device of this embodiment may be configured to execute the method of the terminal device in any of the above embodiments, and the implementation principle and the technical effect are similar, which 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 above in any of the embodiments of the terminal device.
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 disclosure are intended to cover any variations, uses, or adaptations of the disclosure following, in general, the 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (23)

1. A Bluetooth device management method applied to a second Bluetooth device, the method comprising:
scanning a Bluetooth signal within a first preset duration after a first preset time;
if a 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 the first Bluetooth signal comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises the first Bluetooth device identification;
and sending the first detection information to a terminal device, so that the terminal device determines the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier according to the first detection information.
2. The method of claim 1, wherein the first detection information comprises: the first Bluetooth device identification, the first electric quantity information and the first voltage information.
3. The method of claim 2, wherein the generating 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 device identification, the first electric quantity state and the first voltage state.
4. The method of claim 2, wherein the generating 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 any of claims 1-4, wherein generating first detection information from the first Bluetooth signal comprises:
determining the device identifier of the first Bluetooth device which is not scanned 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 identifier of the first Bluetooth device which is not scanned.
6. The method according to any one of claims 1-4, further comprising:
detecting self state information at a second preset moment;
generating second detection information according to the state information and the equipment identification of the second detection information;
and sending the second detection information to a terminal device, so that the terminal device determines the working state of the second Bluetooth device according to the second detection information.
7. The method of claim 6, wherein the self status information comprises: the electric quantity information and the voltage information of the self-body;
generating second detection information according to the state information and the equipment identification of the second detection information 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, electric quantity information of the electric quantity state and voltage information of the electric quantity state;
and generating second detection information according to the equipment identification of the user, the second electric quantity state and the second voltage state.
8. The method according to claim 7, wherein the generating second detection information according to the own status information and the device identifier comprises:
determining the working state of the self-body according to a second preset electric quantity threshold value, a second preset voltage value, the electric quantity information and the voltage information of the self-body;
and generating second detection information according to the own equipment identification and the own working state.
9. A Bluetooth device management method applied to a first Bluetooth device, the method comprising:
detecting self electric quantity information and voltage information at a first preset moment;
generating a first Bluetooth signal according to the electric quantity information, the voltage information and the Bluetooth device identification of the Bluetooth device;
broadcasting the first Bluetooth signal.
10. A Bluetooth device management method is applied to a terminal device, and comprises the following steps:
when first detection information sent by second Bluetooth equipment is received, determining the working state of the first Bluetooth equipment according to the first detection information; wherein 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, sending abnormal prompt information; and the abnormal prompt message comprises the Bluetooth equipment identification of the abnormal equipment.
11. The method of claim 10, 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.
12. The method of claim 10, wherein the first detection information further comprises: a first state of charge, a first state of voltage;
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.
13. The method according to any one of claims 10-12, wherein the first detection information further comprises: 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.
14. The method of any one of claims 10-12, further comprising:
when second detection information sent by second Bluetooth equipment is received, determining the working state of the second Bluetooth equipment according to the second detection information; wherein the second detection information comprises a device identification of the second Bluetooth device;
if the second detection information indicates that the working state of the second Bluetooth device is abnormal, sending abnormal prompt information; and the abnormal prompt information comprises the equipment identification of the abnormal equipment.
15. The method of claim 14, wherein the second detection information further comprises: electric quantity information and voltage information 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 a second preset electric quantity threshold value, a second preset voltage value, electric quantity information and voltage information of the second Bluetooth device.
16. The method of claim 14, wherein the second detection information further comprises: the electric quantity state and the 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.
17. The method of any one of claims 10-12, further comprising:
and if the second detection information is not received within a second preset time after the second preset time, determining that the working state of the second Bluetooth device is abnormal.
18. A bluetooth device, comprising:
the scanning module is used for scanning the Bluetooth signal within a first preset time after a first preset time;
the processing module is used for generating first detection information according to a 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 the first Bluetooth signal comprises a first Bluetooth device identifier, first electric quantity information and first voltage information; the first detection information comprises the first Bluetooth device identification;
and the sending module is used for 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.
19. A bluetooth device, comprising:
the detection module is used for detecting the electric quantity information and the voltage information of the detection module at a first preset moment;
the processing module is used for generating a first Bluetooth signal according to the electric quantity information, the voltage information and the Bluetooth device identification of the processing module;
and the broadcasting module is used for broadcasting the first Bluetooth signal.
20. A terminal device, comprising:
the processing module is used for determining the working state of the first Bluetooth device according to first detection information when the first detection information sent by the second Bluetooth device is received; wherein the first detection information comprises a first Bluetooth device identifier;
the sending module is used for sending an abnormal prompt message if the first detection information indicates that the working state of the first Bluetooth device corresponding to the first Bluetooth device identifier is abnormal; and the abnormal prompt message comprises the Bluetooth equipment identification of the abnormal equipment.
21. A bluetooth device, comprising: a memory and a processor;
the memory is to store program instructions;
the processor is configured to invoke program instructions in the memory to perform the method of any of claims 1-9.
22. A terminal device, comprising: a memory and a processor;
the memory is to store program instructions;
the processor is configured to invoke program instructions in the memory to perform the method of any of claims 10-17.
23. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program; the computer program, when executed, implementing the method of any one of claims 1-17.
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 true CN111918260A (en) 2020-11-10
CN111918260B 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 (10)

* 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
US20170289787A1 (en) * 2015-12-02 2017-10-05 Huizhou Tcl Mobile Communication Co., Ltd. Bluetooth-based method and system for automatically connecting wearable device with mobile terminal
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

Patent Citations (10)

* 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
US20170289787A1 (en) * 2015-12-02 2017-10-05 Huizhou Tcl Mobile Communication Co., Ltd. Bluetooth-based method and system for automatically connecting wearable device with mobile terminal
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
CN111918260B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
RU2569314C2 (en) System and method of analysing radio-frequency spectrum of access point and wireless sensor network device
RU2538766C2 (en) Method and system for receiving information via radio access network in cellular communication
EP2351410B1 (en) Apparatuses, methods and program providing a confidence estimation of coverage hole detection
CN101189858B (en) In a wireless local area network for detecting the method for the existence of unwarranted equipment
CN110646699A (en) Charging pile fault identification method, storage medium, charging pile and electronic equipment
CN101395868B (en) Clear channel reporting and assisting orphaned nodes in a wireless network
EP3549895B1 (en) Elevator service request and offline authentication of the elevator service request
CN101730136A (en) Processing method and system for M2M terminal call
WO2016152307A1 (en) Communication device, communication method and program
US20060270412A1 (en) System and method for resilient coverage in a wireless environment
CN114208130B (en) Managing interrupt detection and reporting
CN105223949A (en) Electric equipment and communication failure diagnostic method thereof and device
US20210218274A1 (en) Distribution transformer terminal and method for monitoring a state of a distribution transformer court device
US20180183511A1 (en) Frequency-sharing radio communication system and satellite terminal
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
US9867121B2 (en) Network accessing method
CN108600966A (en) A kind of position-recognizing system based on narrowband Internet of Things and low-power consumption bluetooth
CN111918260A (en) Bluetooth device management method, Bluetooth device, terminal device, and storage medium
CN101873179B (en) Monitoring method and monitoring device of indoor covering system
CN102387571A (en) Communication establishing method, system and device for wireless sensor network
US8655347B2 (en) Measuring macrocell quality using femtocell
CN112860499B (en) Passive distributed system monitoring method, device, equipment, medium and program product
Yang et al. Motion sensor and camera placement design for in-home wireless video monitoring systems
KR101905187B1 (en) Method for telecommunication between construction machinery and remote management server
EP3410765A1 (en) Access point monitoring

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