CN111756412A - Bluetooth device detection method and device - Google Patents

Bluetooth device detection method and device Download PDF

Info

Publication number
CN111756412A
CN111756412A CN202010581495.7A CN202010581495A CN111756412A CN 111756412 A CN111756412 A CN 111756412A CN 202010581495 A CN202010581495 A CN 202010581495A CN 111756412 A CN111756412 A CN 111756412A
Authority
CN
China
Prior art keywords
bluetooth device
bluetooth
detection
determining
judging whether
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.)
Pending
Application number
CN202010581495.7A
Other languages
Chinese (zh)
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.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent 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 Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN202010581495.7A priority Critical patent/CN111756412A/en
Publication of CN111756412A publication Critical patent/CN111756412A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/73Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for taking measurements, e.g. using sensing coils
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B7/00Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00
    • G08B7/06Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00 using electric transmission, e.g. involving audible and visible signalling through the use of sound and light sources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Emergency Management (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method and a device for detecting Bluetooth equipment, wherein the method comprises the following steps: a1: after a key of the Bluetooth device is triggered to successfully start up, scanning an identity code attached to the outside of the Bluetooth device, reading the identity code comprising an MAC address of the Bluetooth device and an SN (serial number) of the Bluetooth device, judging whether the SN meets a preset standard or not, if so, executing step A2, and if not, determining that the Bluetooth device fails to detect; a2: establishing connection with the Bluetooth device according to the MAC address, judging whether the received signal intensity value of the Bluetooth device is qualified, if so, executing the step A3, and if not, determining that the Bluetooth device fails to be detected; a3: detecting the software version number and the writing function of the Bluetooth equipment, judging whether the detection is passed, if so, executing the step A4, and if not, determining that the Bluetooth equipment fails to detect; a4: and judging whether the buzzer and the indicator lamp of the Bluetooth device can normally operate or not, and if so, determining that the detection of the Bluetooth device is qualified. The scheme of the invention can more conveniently detect the Bluetooth equipment.

Description

Bluetooth device detection method and device
Technical Field
The invention relates to the technical field of detection, in particular to a method and a device for detecting Bluetooth equipment.
Background
Bluetooth technology is currently widely used in consumer electronics, and recently, due to the advent of low power bluetooth technology, bluetooth devices will be used in a wider range of fields. In order to ensure the quality of the Bluetooth product, the Bluetooth device needs to be produced and detected before leaving the factory, and the Bluetooth device can normally complete the work after leaving the factory.
When the existing scheme monitors the Bluetooth equipment, the detection machine is required to be connected through a serial port line, the attenuator is arranged to simulate the actual use environment, the signal intensity of the Bluetooth equipment to be detected is monitored through the detection machine and the Bluetooth adapter, and then the detection of the Bluetooth equipment is realized. However, when the bluetooth device is detected by using this method, it is necessary to arrange devices such as a serial port line, a shielding box, and an attenuator before the detection, which is very inconvenient.
The invention discloses a finished Bluetooth product performance detection system, particularly a finished Bluetooth product performance detection system, wherein a Bluetooth adapter is arranged in a first shielding box, a finished Bluetooth product to be detected and an antenna are arranged in a second shielding box, the Bluetooth adapter is connected with the antenna through an RF (radio frequency) line, and meanwhile, a detection device comprising an attenuator, a detection tool and the like is provided, so that the whole detection process is complicated.
Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting Bluetooth equipment, which can detect the Bluetooth equipment more conveniently.
In a first aspect, an embodiment of the present invention provides a bluetooth device detection method, including:
a1: after a key of the Bluetooth device is triggered to successfully start up, scanning an identity code attached to the outside of the Bluetooth device, reading the identity code comprising an MAC address of the Bluetooth device and an SN (serial number) of the Bluetooth device, and judging whether the SN meets a preset standard or not, if so, executing step A2, otherwise, determining that the Bluetooth device fails to detect;
a2: establishing connection with the Bluetooth device according to the MAC address, judging whether the received signal intensity value of the Bluetooth device is qualified, if so, executing the step A3, and if not, determining that the Bluetooth device fails to be detected;
a3: detecting the software version number and the writing function of the Bluetooth equipment, judging whether the detection is passed, if so, executing the step A4, and if not, determining that the Bluetooth equipment fails to detect;
a4: and judging whether the buzzer and the indicator lamp of the Bluetooth equipment can normally operate or not, and if so, determining that the detection of the Bluetooth equipment is qualified.
Preferably, the first and second electrodes are formed of a metal,
in step a1, the determining whether the SN number meets a preset standard includes:
and determining the data length of the SN, judging whether the data length meets the preset qualified data length, and if so, determining that the SN meets the preset standard.
Preferably, the first and second electrodes are formed of a metal,
the step A2 includes: searching the Bluetooth equipment with the MAC address as the identification and establishing connection with the Bluetooth equipment; the method comprises the steps of establishing a corresponding relation between at least one distance value range and a signal strength value in advance, determining a target signal strength value corresponding to the distance value range where a target distance value of the Bluetooth device is located, determining whether the received signal strength value of the Bluetooth device is not smaller than the target signal strength value, if so, executing a step A3, and if not, determining that the Bluetooth device fails to detect.
Preferably, the first and second electrodes are formed of a metal,
the step A3 includes: sending a first detection instruction containing the SN number to the Bluetooth equipment so that the Bluetooth equipment returns the current software version number of the Bluetooth equipment and writes the SN number into a memory of the Bluetooth equipment when receiving the first detection instruction; and receiving the current version number returned by the Bluetooth device, judging whether the current software version number is the same as the preset latest software version number, if so, judging whether the SN number is written into the memory of the Bluetooth device by the Bluetooth device, and if so, executing the step A4.
Preferably, the first and second electrodes are formed of a metal,
the step A4 includes: sending a second detection instruction which is used for enabling a buzzer of the Bluetooth device to send a prompt tone to the Bluetooth device, and disconnecting the Bluetooth device after sending the second detection instruction, so that an indicator lamp of the Bluetooth device is switched to a flashing state when the indicator lamp is disconnected according to preset switching logic;
and judging whether the buzzer of the Bluetooth equipment normally sends out the prompt tone and whether the indicator lamp is switched to the flashing state, if so, determining that the Bluetooth equipment is qualified in detection.
In a second aspect, an embodiment of the present invention provides a bluetooth device detection apparatus, including: the device comprises a scanning unit, a signal detection unit, a detection unit and a judgment unit;
the scanning unit is connected with the signal detection unit, the signal detection unit is connected with the detection unit, and the detection unit is connected with the judgment unit;
the scanning unit is used for scanning an identity code attached to the outside of the Bluetooth device after a key of the Bluetooth device is triggered to be started successfully, reading the identity code comprising an MAC address of the Bluetooth device and an SN (serial number) of the Bluetooth device, and judging whether the SN meets a preset standard or not;
the signal detection unit is used for establishing connection with the Bluetooth equipment according to the MAC address and judging whether the received signal strength value of the Bluetooth equipment is qualified or not when the scanning unit determines that the SN number meets a preset standard;
the detection unit is used for detecting the software version number and the write-in function of the Bluetooth equipment and judging whether the detection is qualified or not when the signal detection unit determines that the received signal intensity value of the Bluetooth equipment is qualified;
and the judging unit is used for judging whether the buzzer and the indicator lamp of the Bluetooth device can normally run or not when the detecting unit determines that the software version number and the writing function of the Bluetooth device are qualified, and if so, determining that the Bluetooth device is qualified.
Preferably, the first and second electrodes are formed of a metal,
when the scanning unit executes the judgment whether the SN number meets the preset standard, the scanning unit specifically executes:
and determining the data length of the SN, and judging whether the data length meets the preset qualified data length.
Preferably, the first and second electrodes are formed of a metal,
the signal detection unit is used for searching the Bluetooth equipment identified by the MAC address and establishing connection with the Bluetooth equipment when the scanning unit determines that the data length of the SN meets the preset qualified data length; the method comprises the steps of establishing a corresponding relation between at least one distance value range and a signal strength value in advance, determining a target signal strength value corresponding to the distance value range where a target distance value of the Bluetooth device is located, and determining whether the received signal strength value of the Bluetooth device is not smaller than the target signal strength value.
Preferably, the first and second electrodes are formed of a metal,
the detection unit is used for sending a first detection instruction containing the SN number to the Bluetooth device when the signal detection unit determines that the received signal intensity value of the Bluetooth device is not smaller than the target signal intensity value, so that the Bluetooth device returns the current software version number of the Bluetooth device and writes the SN number into a memory of the Bluetooth device when receiving the first detection instruction; and receiving the current version number returned by the Bluetooth equipment, judging whether the current software version number is the same as the preset latest software version number, and if so, judging whether the SN number is written into the memory of the Bluetooth equipment by the Bluetooth equipment.
Preferably, the first and second electrodes are formed of a metal,
the judgment unit is used for sending a second detection instruction by using an identifier to enable a buzzer of the Bluetooth device to send a prompt tone when the detection unit determines that the SN number is written into the memory of the Bluetooth device by the Bluetooth device, and disconnecting the Bluetooth device after sending the second detection instruction so as to enable an indicator lamp of the Bluetooth device to be switched to a flashing state when the Bluetooth device is disconnected according to a preset switching logic;
and judging whether the buzzer of the Bluetooth equipment normally sends out the prompt tone and whether the indicator lamp is switched to the flashing state, if so, determining that the Bluetooth equipment is qualified in detection.
The embodiment of the invention provides a method and a device for detecting Bluetooth equipment, wherein the method for detecting the Bluetooth equipment comprises the following steps: firstly, the Bluetooth device is successfully started through a key triggering the Bluetooth device, after the Bluetooth device is started, an identity code attached to the outside of the Bluetooth device is scanned, the identity code comprises an MAC address used for connecting the Bluetooth device and an identity SN number of the Bluetooth device, whether the SN number meets a preset standard or not is judged, if the SN number meets the standard, connection is established with the Bluetooth device through the MAC address, whether the received signal strength is qualified or not is judged, if the SN number is qualified, the software version number and the writing function of the Bluetooth device are detected, if the SN number passes the detection, whether a buzzer and an indicator lamp of the Bluetooth device can normally operate or not is judged, and if the SN number can normally operate, the detection of the Bluetooth device is determined to be qualified. Therefore, according to the scheme provided by the invention, the MAC address of the Bluetooth device is acquired for connection, so that the Bluetooth device does not need to be connected by using a serial port line, and whether the signal intensity value is qualified or not is directly judged, so that the hardware of the Bluetooth device, including the keys, the buzzer and the indicator lamp, can be detected under the condition that a shielding box and an attenuator are not needed to be arranged to simulate an actual use environment, and the Bluetooth device can be detected more conveniently.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a bluetooth device detection method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a bluetooth device detection apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a connection between a bluetooth device and a bluetooth device detection apparatus according to an embodiment of the present invention;
fig. 4 is a flowchart of another bluetooth device detection method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As mentioned before, when the existing scheme monitors the bluetooth device, the detection machine needs to be connected through the serial port line, the attenuator is arranged to simulate the actual use environment, the signal intensity of the bluetooth device to be detected is monitored through the detection machine and the bluetooth adapter, and then the detection of the bluetooth device is realized. However, when the bluetooth device is detected by using this method, it is necessary to arrange devices such as a serial port line, a shielding box, and an attenuator before the detection, which is very inconvenient.
In the embodiment of the invention, firstly, a button of the Bluetooth device is triggered to successfully start the Bluetooth device, after the Bluetooth device is started, an identity code attached to the outside of the Bluetooth device is scanned, the identity code comprises an MAC address used for connecting the Bluetooth device and an identity SN number of the Bluetooth device, whether the SN number meets a preset standard or not is judged, if the SN number meets the standard, connection is established with the Bluetooth device through the MAC address, whether the received signal strength is qualified or not is judged, if the SN number is qualified, a software version number and a writing function of the Bluetooth device are detected, if the SN number is passed, whether a buzzer and an indicator lamp of the Bluetooth device can normally operate or not is judged, and if the SN number can normally operate, the detection of the. Therefore, according to the scheme provided by the invention, the MAC address of the Bluetooth device is acquired for connection, so that the Bluetooth device does not need to be connected by using a serial port line, and whether the signal intensity value is qualified or not is directly judged, so that the hardware of the Bluetooth device, including the keys, the buzzer and the indicator lamp, can be detected under the condition that a shielding box and an attenuator are not needed to be arranged to simulate an actual use environment, and the Bluetooth device can be detected more conveniently.
The following describes a method and an apparatus for detecting a bluetooth device according to an embodiment of the present invention in detail with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present invention provides a bluetooth device detection method, which includes the following steps:
step 101: after the key of the Bluetooth device is triggered to be started successfully, scanning an identity code attached to the outside of the Bluetooth device, reading the identity code including an MAC address of the Bluetooth device and an SN (serial number) of the Bluetooth device, judging whether the SN meets a preset standard or not, if so, executing step 102, and if not, executing step 105.
Step 102: and establishing connection with the Bluetooth device according to the MAC address, and judging whether the received signal intensity value of the Bluetooth device is qualified, if so, executing step 103, and if not, executing step 105.
Step 103: and detecting the software version number and the writing function of the Bluetooth equipment, and judging whether the detection is passed, if so, executing step 104, and if not, executing step 105.
Step 104: judging whether a buzzer and an indicator light of the Bluetooth device can normally operate or not, if so, executing step 106; if not, go to step 105.
Step 105: determining that the Bluetooth device detection fails.
Step 106: and determining that the Bluetooth equipment is qualified for detection.
Specifically, before the detection of the bluetooth device, the bluetooth device needs to be powered on. The Bluetooth device is powered on by triggering a key of the Bluetooth device. After the Bluetooth equipment is successfully started, scanning an identity code attached to the outside of the Bluetooth equipment in advance, reading an MAC address of the Bluetooth equipment and an SN (serial number) of the Bluetooth equipment in the identity code, judging whether the SN meets a preset standard or not, and if so, detecting a next item. The step is to detect whether the Bluetooth device can be normally started and whether the SN number in the identity code attached to the Bluetooth device meets the preset standard. And then, establishing connection with the Bluetooth equipment according to the MAC address included in the identity code, judging whether the received signal intensity value of the Bluetooth equipment is qualified, and if so, detecting the next item. And detecting the software version number and the writing function of the Bluetooth equipment, and finally detecting a buzzer and an indicator light of the Bluetooth equipment if the software version number and the writing function of the Bluetooth equipment pass the detection, and determining that the Bluetooth equipment is qualified after all items pass the detection.
In an embodiment of the present invention, the determining whether the SN number meets a preset standard in step 101 includes:
and determining the data length of the SN, judging whether the data length meets the preset qualified data length, and if so, determining that the SN meets the preset standard.
Specifically, the SN number, i.e., the serial number, is a unique identifier of the bluetooth device, and each bluetooth device may establish a correspondence with one SN number during production, and use the SN number that has established a correspondence with itself as its unique identifier, and in the production process, may generate a corresponding identifier according to the SN number, and attach the identifier in which the SN number is written to the outer surface of the corresponding bluetooth device. When detecting a bluetooth device, the attached two-dimensional code is scanned to obtain an SN number included in the two-dimensional code, because generally, the SN number of a class of devices has a fixed data length and a fixed qualified data length, and if the data length obtained from the identity code is different from the qualified data length, the SN number may have an error when generating the two-dimensional code or an error when establishing a corresponding relationship between the SN number and the bluetooth device. Once the above problem occurs, it is determined that the bluetooth device detection fails.
In an embodiment of the present invention, step 102 includes: searching the Bluetooth equipment with the MAC address as the identification and establishing connection with the Bluetooth equipment; the method comprises the steps of establishing a corresponding relation between at least one distance value range and a signal strength value in advance, determining a target signal strength value corresponding to the distance value range where a target distance value of the Bluetooth device is located, determining whether the received signal strength value of the Bluetooth device is not smaller than the target signal strength value, if so, executing a step 103, and if not, determining that the Bluetooth device fails to be detected.
Specifically, after the bluetooth device is used, before the bluetooth device is bound with the smart device of the user, the MAC address is defaulted as the identified bluetooth hotspot, and the MAC address can also be used to distinguish different bluetooth devices. Like the SN number, when the Bluetooth equipment is produced, the ID code is generated by the MAC address of the Bluetooth equipment and is attached to the surface of the Bluetooth equipment. Generally, the MAC address includes more symbols, letters or numbers, and the SN number is usually composed of a string of numbers, and for the sake of easy distinction, the MAC address is usually attached to the bluetooth device in the form of a two-dimensional code, and the SN number is attached to the bluetooth device in the form of a barcode. Both bar codes and two-dimensional codes can be acquired by scanning through a code scanning gun. After the MAC address is obtained, the Bluetooth device with the MAC address as the identification is searched, and the Bluetooth device establishes connection. And after the connection is successful, the Bluetooth signal sent by the Bluetooth equipment can be acquired. Since the propagation attenuation of bluetooth signals increases with the propagation distance, the signal strength of the received bluetooth signals varies according to the distance from the bluetooth device. By measuring the signal intensity values at different distance value positions for multiple times, a mathematical model of the distance value range and the signal intensity value can be established, and the corresponding relation between the distance value range and the signal intensity value is obtained through the mathematical model. And determining the range of the distance value to which the target distance value of the Bluetooth device under test belongs, and determining the target signal strength value corresponding to the range of the distance value according to the corresponding relation after determining the range of the distance value. And confirming the received signal intensity value of the Bluetooth equipment, comparing the signal intensity value with a target signal intensity value, and if the signal intensity value is not less than the target signal intensity value, indicating that the performance of the Bluetooth equipment is qualified. If the signal strength value is less than the target signal strength value, the performance of the bluetooth device is not qualified, which may affect the practical use.
At present, a bluetooth device which is widely applied is a bluetooth anti-lost device. Bluetooth anti-lost device: small size, key ring shape and portability. When in use, the mobile phone APP binding device is bound with the mobile phone APP, and is widely suitable for preventing loss and searching other valuables such as children, pets, luggage dragging boxes and the like. The working principle of the Bluetooth anti-lost device is that whether articles are controlled within the safety range of a user or not is judged mainly through distance change, when the relative distance between the mobile phone and the Bluetooth anti-lost device exceeds the warning range, an alarm is given immediately, the articles connected with the Bluetooth anti-lost device can be found through the mobile phone, and the mobile phone can also be found through the Bluetooth anti-lost device. Therefore, the working of the bluetooth equipment needs to keep a certain standard signal intensity value at a certain distance, if the signal intensity value cannot be reached, the bluetooth equipment cannot achieve the effect expected by a user, if the bluetooth equipment is applied to a bluetooth anti-lost device, if the performance is unqualified, the alarm function cannot be normally realized if the performance exceeds a safety range, and the normal use of the user is influenced.
In an embodiment of the present invention, the step 103 includes: sending a first detection instruction containing the SN number to the Bluetooth equipment so that the Bluetooth equipment returns the current software version number of the Bluetooth equipment and writes the SN number into a memory of the Bluetooth equipment when receiving the first detection instruction; and receiving the current version number returned by the Bluetooth device, judging whether the current software version number is the same as the preset latest software version number, if so, judging whether the SN number is written into a memory of the Bluetooth device by the Bluetooth device, and if so, executing the step 104.
This step is for example to test the write performance and software version number of the bluetooth device. First, a first detection instruction is generated according to the SN number acquired in the above embodiment, the first detection instruction is sent to the bluetooth device, when the bluetooth device receives the first detection instruction, the bluetooth device returns the current software version number of the currently installed software, receives the current software version number returned by the bluetooth device, and determines whether the current software version number is the same as the latest software version number, because the latest software version is likely to include some new functions that are not included in the old software version or repair some errors, in order to prevent function loss and execution errors, the bluetooth device can only be used if the software of the latest version is installed, and the bluetooth device installed with the old version software is unqualified in detection, and needs to be returned to the factory to update the software. When the Bluetooth device is determined to be installed with the latest software version, the Bluetooth device starts to write the SN number contained in the first detection instruction into the memory of the Bluetooth device, and the purpose of the step is to detect the writing function of the Bluetooth device. If the writing is successful, the next step of detection is performed. After the SN number is written into the Bluetooth equipment by the Bluetooth equipment, a user is connected with the Bluetooth equipment through a mobile phone in subsequent use, the SN number written into the connected Bluetooth equipment can be seen from the mobile phone, and the SN number can be used as a unique identifier of anti-counterfeiting inquiry and can be used for checking the warranty state and used as a warranty certificate.
In an embodiment of the present invention, the step 104 includes: sending a second detection instruction which is used for enabling a buzzer of the Bluetooth device to send a prompt tone to the Bluetooth device, and disconnecting the Bluetooth device after sending the second detection instruction, so that an indicator lamp of the Bluetooth device is switched to a flashing state when the indicator lamp is disconnected according to preset switching logic;
and judging whether the buzzer of the Bluetooth equipment normally sends out the prompt tone and whether the indicator lamp is switched to the flashing state, if so, determining that the Bluetooth equipment is qualified in detection.
Specifically, this step is the detection of the hardware of the bluetooth device. The hardware of the Bluetooth device comprises a key, an indicator light and a buzzer. Wherein, the pilot lamp possesses three kinds of display states:
slow flashing: the Bluetooth equipment is in a state of waiting for connection;
flashing: the Bluetooth device is in a connection state;
normally bright: the Bluetooth device is in a connected state;
the key has the following three operation logics:
short press for 1 second: when the buzzer makes a 'dripping' sound, the buzzer is closed;
long press for 3 seconds: when the Bluetooth equipment is in an open state, the Bluetooth equipment is powered off, and when the Bluetooth equipment is in a closed state, the Bluetooth equipment is powered on;
press 2 times quickly: after the computer is started, if the state of the indicator light is not in slow flashing, the indicator light is adjusted to be in a slow flashing state;
therefore, when the Bluetooth device is detected, the Bluetooth device needs to be started up by pressing for three seconds, and the detection of the key is also completed in the step of starting up. In order to test whether the buzzer can normally perform the corresponding function, it is necessary to make the bluetooth device perform an operation that makes the buzzer sound. At the moment, a second detection instruction is sent to the Bluetooth device, when the Bluetooth device receives the second detection instruction, the buzzer can execute the operation of sending a 'dripping' sound, and if the buzzer sends the sound normally, the detection of the buzzer is qualified. After the second detection instruction is sent, in order to test the indicator lamp of the Bluetooth device, the connection with the Bluetooth device is disconnected, and then the Bluetooth device is switched from the connected state to the connecting state, and the display state of the indicator lamp can be known, the indicator lamp of the Bluetooth device is switched from the normal lighting of the connected state to the flash state, whether the indicator lamp functions normally is judged by judging that the indicator lamp can be correctly switched to the flash state, if the indicator lamp can be successfully switched to the flash state, the indicator lamp of the Bluetooth device is qualified in detection, all tests are finished, and the Bluetooth device is qualified in detection. And then, the buzzer of the Bluetooth device stops sounding by pressing the key of the Bluetooth device for 1 second, and the whole detection is finished. The whole process carries out function detection on an indicator lamp, a button and a buzzer of the Bluetooth device, and detects the writing function, the software version and the Bluetooth performance of the Bluetooth device.
In addition, if the result of the detection of the bluetooth device is a failure in the above-mentioned detection processes, the detection process may be executed again from step 101, and multiple detection verifications may be performed to find out the problem of the bluetooth device. The test standards of different manufacturers are different, and each manufacturer can repeatedly detect the Bluetooth equipment according to actual test requirements by repeating the method.
As shown in fig. 2, an embodiment of the present invention provides a bluetooth device detection apparatus, including:
a scanning unit 201, a signal detection unit 202, a detection unit 203, and a judgment unit 204;
the scanning unit 201 is connected with the signal detection unit 202, the signal detection unit 202 is connected with the detection unit 203, and the detection unit 203 is connected with the judgment unit 204;
the scanning unit 201 is configured to scan an identity code attached to the outside of the bluetooth device after a key of the bluetooth device is triggered to successfully start up, read the identity code including an MAC address of the bluetooth device and an SN number of the bluetooth device, and determine whether the SN number meets a preset standard;
the signal detection unit 202 is configured to establish a connection with the bluetooth device according to the MAC address when the scanning unit 201 determines that the SN number meets a preset standard, and determine whether a received signal strength value of the bluetooth device is qualified;
the detecting unit 203 is configured to detect the software version number and the write function of the bluetooth device when the signal detecting unit 202 determines that the received signal strength value of the bluetooth device is qualified, and determine whether the detection is qualified;
the judging unit 204 is configured to judge whether the buzzer and the indicator lamp of the bluetooth device can operate normally when the detecting unit 203 determines that the software version number and the write-in function of the bluetooth device are detected to be qualified, and if so, determine that the detection of the bluetooth device is qualified.
In an embodiment of the present invention, when the scanning unit 201 performs the determination whether the SN number meets a preset standard, the following steps are specifically performed:
and determining the data length of the SN, and judging whether the data length meets the preset qualified data length.
In an embodiment of the present invention, the signal detecting unit 202 is configured to search the bluetooth device identified by the MAC address and establish a connection with the bluetooth device when the scanning unit 201 determines that the data length of the SN matches a preset qualified data length; the method comprises the steps of establishing a corresponding relation between at least one distance value range and a signal strength value in advance, determining a target signal strength value corresponding to the distance value range where a target distance value of the Bluetooth device is located, and determining whether the received signal strength value of the Bluetooth device is not smaller than the target signal strength value.
In an embodiment of the present invention, the detecting unit 203 is configured to send a first detection instruction including the SN number to the bluetooth device when the signal detecting unit 202 determines that the received signal strength value of the bluetooth device is not less than the target signal strength value, so that the bluetooth device returns its current software version number when receiving the first detection instruction and writes the SN number into its memory; and receiving the current version number returned by the Bluetooth equipment, judging whether the current software version number is the same as the preset latest software version number, and if so, judging whether the SN number is written into the memory of the Bluetooth equipment by the Bluetooth equipment.
In an embodiment of the present invention, the determining unit 204 is configured to, when the detecting unit 203 determines that the bluetooth device writes the SN number into the memory of the bluetooth device, send a second detection instruction, where the identifier enables a buzzer of the bluetooth device to send a prompt tone, and disconnect the bluetooth device after sending the second detection instruction, so that an indicator light of the bluetooth device is switched to a flashing state when the indicator light is disconnected according to a preset switching logic;
and judging whether the buzzer of the Bluetooth equipment normally sends out the prompt tone and whether the indicator lamp is switched to the flashing state, if so, determining that the Bluetooth equipment is qualified in detection.
Fig. 3 is a schematic diagram of the connection between the bluetooth device 301 and the bluetooth device detection apparatus 305. The Bluetooth device 301 comprises an indicator light 302, a buzzer 303 and a key 304, the Bluetooth device detection device 305 is connected with the Bluetooth device 301, a USB interface is installed on the Bluetooth device detection device 305, and a Bluetooth adapter is inserted into the USB interface, so that the Bluetooth device can be searched through Bluetooth. And searching and connecting the Bluetooth equipment by using the Bluetooth adapter to perform data interaction with the Bluetooth equipment.
It is to be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation to the bluetooth device detection apparatus. In other embodiments of the present invention, the bluetooth device detection apparatus may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
As shown in fig. 4, an embodiment of the present invention provides a bluetooth device detecting method based on the bluetooth device detecting apparatus in the foregoing embodiment, including the following steps:
step 401: the Bluetooth equipment detection device is configured with a Bluetooth adapter, test software is started and relevant settings are completed, and the latest software version number is prestored.
Step 402: the Bluetooth device to be tested is started up by pressing the key for 3 seconds for long time, whether the Bluetooth device is in a mode to be connected is judged, and if the Bluetooth device is not in the mode, the Bluetooth device to be tested is switched to the mode to be tested by pressing the key for two times for short time.
Step 403: a code scanning gun of the Bluetooth equipment detection device scans the MAC two-dimensional code identification and the SN bar code identification on the Bluetooth equipment to be detected in sequence, searches the Bluetooth equipment with the MAC address as the identification and establishes connection with the Bluetooth equipment.
Step 404: and interacting with the connected Bluetooth equipment, detecting the performance of the Bluetooth equipment, enabling the Bluetooth equipment to detect the write-in function by writing SN, and detecting whether the software version number is latest.
Step 405: judge whether bluetooth equipment pilot lamp glimmered, whether buzzer makes sound, press the button for a short time 1 second and finish the test.
Various embodiments of the invention include at least the following advantages:
1. in the embodiment of the invention, the MAC address of the Bluetooth device is acquired for connection, so that the Bluetooth device does not need to be connected by using a serial port line, and whether the signal intensity value is qualified or not is directly judged, so that the hardware of the Bluetooth device, including a key, a buzzer and an indicator lamp, can be detected under the condition that an actual use environment is simulated without arranging a shielding box and an attenuator, and the Bluetooth device can be detected more conveniently.
2. In the embodiment of the invention, the Bluetooth equipment is detected without using equipment such as a shielding box, a serial port line, an attenuator and the like, so that the cost for detecting the Bluetooth equipment is reduced.
3. In the embodiment of the invention, different from the existing scheme that only the performance of the Bluetooth equipment can be tested, the performance of the Bluetooth equipment can be detected, and whether the functions of each hardware of the Bluetooth equipment are normal can be detected.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the embodiments disclosed, and it will be apparent to those skilled in the art that various combinations of the code auditing means in the various embodiments described above may be used to obtain further embodiments of the invention, which are also within the scope of the invention.

Claims (10)

1. The Bluetooth device detection method is characterized by comprising the following steps:
a1: after a key of the Bluetooth device is triggered to successfully start up, scanning an identity code attached to the outside of the Bluetooth device, reading the identity code comprising an MAC address of the Bluetooth device and an SN (serial number) of the Bluetooth device, and judging whether the SN meets a preset standard or not, if so, executing step A2, otherwise, determining that the Bluetooth device fails to detect;
a2: establishing connection with the Bluetooth device according to the MAC address, judging whether the received signal intensity value of the Bluetooth device is qualified, if so, executing the step A3, and if not, determining that the Bluetooth device fails to be detected;
a3: detecting the software version number and the writing function of the Bluetooth equipment, judging whether the detection is passed, if so, executing the step A4, and if not, determining that the Bluetooth equipment fails to detect;
a4: and judging whether the buzzer and the indicator lamp of the Bluetooth equipment can normally operate or not, and if so, determining that the detection of the Bluetooth equipment is qualified.
2. The method of claim 1,
in step a1, the determining whether the SN number meets a preset standard includes:
and determining the data length of the SN, judging whether the data length meets the preset qualified data length, and if so, determining that the SN meets the preset standard.
3. The method of claim 1,
the step A2 includes: searching the Bluetooth equipment with the MAC address as the identification and establishing connection with the Bluetooth equipment; the method comprises the steps of establishing a corresponding relation between at least one distance value range and a signal strength value in advance, determining a target signal strength value corresponding to the distance value range where a target distance value of the Bluetooth device is located, determining whether the received signal strength value of the Bluetooth device is not smaller than the target signal strength value, if so, executing a step A3, and if not, determining that the Bluetooth device fails to detect.
4. The method of claim 2,
the step A3 includes: sending a first detection instruction containing the SN number to the Bluetooth equipment so that the Bluetooth equipment returns the current software version number of the Bluetooth equipment and writes the SN number into a memory of the Bluetooth equipment when receiving the first detection instruction; and receiving the current version number returned by the Bluetooth device, judging whether the current software version number is the same as the preset latest software version number, if so, judging whether the SN number is written into the memory of the Bluetooth device by the Bluetooth device, and if so, executing the step A4.
5. The method of claim 1,
the step A4 includes: sending a second detection instruction which is used for enabling a buzzer of the Bluetooth device to send a prompt tone to the Bluetooth device, and disconnecting the Bluetooth device after sending the second detection instruction, so that an indicator lamp of the Bluetooth device is switched to a flashing state when the indicator lamp is disconnected according to preset switching logic;
and judging whether the buzzer of the Bluetooth equipment normally sends out the prompt tone and whether the indicator lamp is switched to the flashing state, if so, determining that the Bluetooth equipment is qualified in detection.
6. Bluetooth equipment detection device, its characterized in that includes:
the device comprises a scanning unit, a signal detection unit, a detection unit and a judgment unit;
the scanning unit is connected with the signal detection unit, the signal detection unit is connected with the detection unit, and the detection unit is connected with the judgment unit;
the scanning unit is used for scanning an identity code attached to the outside of the Bluetooth device after a key of the Bluetooth device is triggered to be started successfully, reading the identity code comprising an MAC address of the Bluetooth device and an SN (serial number) of the Bluetooth device, and judging whether the SN meets a preset standard or not;
the signal detection unit is used for establishing connection with the Bluetooth equipment according to the MAC address and judging whether the received signal strength value of the Bluetooth equipment is qualified or not when the scanning unit determines that the SN number meets a preset standard;
the detection unit is used for detecting the software version number and the write-in function of the Bluetooth equipment and judging whether the detection is qualified or not when the signal detection unit determines that the received signal intensity value of the Bluetooth equipment is qualified;
and the judging unit is used for judging whether the buzzer and the indicator lamp of the Bluetooth device can normally run or not when the detecting unit determines that the software version number and the writing function of the Bluetooth device are qualified, and if so, determining that the Bluetooth device is qualified.
7. The apparatus of claim 6,
when the scanning unit executes the judgment whether the SN number meets the preset standard, the scanning unit specifically executes:
and determining the data length of the SN, and judging whether the data length meets the preset qualified data length.
8. The apparatus of claim 7,
the signal detection unit is used for searching the Bluetooth equipment identified by the MAC address and establishing connection with the Bluetooth equipment when the scanning unit determines that the data length of the SN meets the preset qualified data length; the method comprises the steps of establishing a corresponding relation between at least one distance value range and a signal strength value in advance, determining a target signal strength value corresponding to the distance value range where a target distance value of the Bluetooth device is located, and determining whether the received signal strength value of the Bluetooth device is not smaller than the target signal strength value.
9. The apparatus of claim 7,
the detection unit is used for sending a first detection instruction containing the SN number to the Bluetooth device when the signal detection unit determines that the received signal intensity value of the Bluetooth device is not smaller than the target signal intensity value, so that the Bluetooth device returns the current software version number of the Bluetooth device and writes the SN number into a memory of the Bluetooth device when receiving the first detection instruction; and receiving the current version number returned by the Bluetooth equipment, judging whether the current software version number is the same as the preset latest software version number, and if so, judging whether the SN number is written into the memory of the Bluetooth equipment by the Bluetooth equipment.
10. The apparatus of claim 9,
the judgment unit is used for sending a second detection instruction by using an identifier to enable a buzzer of the Bluetooth device to send a prompt tone when the detection unit determines that the SN number is written into the memory of the Bluetooth device by the Bluetooth device, and disconnecting the Bluetooth device after sending the second detection instruction so as to enable an indicator lamp of the Bluetooth device to be switched to a flashing state when the Bluetooth device is disconnected according to a preset switching logic;
and judging whether the buzzer of the Bluetooth equipment normally sends out the prompt tone and whether the indicator lamp is switched to the flashing state, if so, determining that the Bluetooth equipment is qualified in detection.
CN202010581495.7A 2020-06-23 2020-06-23 Bluetooth device detection method and device Pending CN111756412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010581495.7A CN111756412A (en) 2020-06-23 2020-06-23 Bluetooth device detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010581495.7A CN111756412A (en) 2020-06-23 2020-06-23 Bluetooth device detection method and device

Publications (1)

Publication Number Publication Date
CN111756412A true CN111756412A (en) 2020-10-09

Family

ID=72676989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010581495.7A Pending CN111756412A (en) 2020-06-23 2020-06-23 Bluetooth device detection method and device

Country Status (1)

Country Link
CN (1) CN111756412A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383906A (en) * 2020-10-29 2021-02-19 四川虹美智能科技有限公司 System and method for detecting WiFi and Bluetooth performance of intelligent module
CN112564825A (en) * 2020-12-08 2021-03-26 北京华大智宝电子系统有限公司 Method, device, equipment and system for detecting functions of Bluetooth equipment
CN113872704A (en) * 2021-09-26 2021-12-31 深圳市芯中芯科技有限公司 General Bluetooth module production test system and method based on small program
CN114325013A (en) * 2021-11-29 2022-04-12 煜邦电力智能装备(嘉兴)有限公司 Electric energy meter Bluetooth function detection device and detection method thereof
CN115150921A (en) * 2022-07-01 2022-10-04 合肥美菱物联科技有限公司 Production test method of wireless communication module with Bluetooth

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1432816A (en) * 2002-01-18 2003-07-30 联想(北京)有限公司 PDA mainboard producing and testing process
CN1959352A (en) * 2005-11-02 2007-05-09 鸿富锦精密工业(深圳)有限公司 System and method for testing buzzer
CN102081826A (en) * 2009-09-25 2011-06-01 北京理工大学 Invisible intelligent anti-theft alarm device of notebook computer and anti-theft alarm method thereof
US20120238301A1 (en) * 2010-07-22 2012-09-20 Shipsin Llc Systems and methods for networked radio systems and coordinated broadcasting
CN103887089A (en) * 2014-02-26 2014-06-25 广东电网公司茂名供电局 Integral illumination insulating bar and circuit system thereof
CN104967972A (en) * 2015-06-29 2015-10-07 上海卓易科技股份有限公司 Method and device for testing wearable Bluetooth device through BLE protocol
CN105517676A (en) * 2015-07-31 2016-04-20 深圳市元征科技股份有限公司 Whole-machine testing method and device of smart bracelets, and mobile terminal
CN107980233A (en) * 2017-03-06 2018-05-01 深圳大趋智能科技有限公司 Automatic test approach, the apparatus and system of Bluetooth POS terminal
CN109861880A (en) * 2019-01-23 2019-06-07 四川虹美智能科技有限公司 A kind of production detection method and device of wireless communication module

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1432816A (en) * 2002-01-18 2003-07-30 联想(北京)有限公司 PDA mainboard producing and testing process
CN1959352A (en) * 2005-11-02 2007-05-09 鸿富锦精密工业(深圳)有限公司 System and method for testing buzzer
CN102081826A (en) * 2009-09-25 2011-06-01 北京理工大学 Invisible intelligent anti-theft alarm device of notebook computer and anti-theft alarm method thereof
US20120238301A1 (en) * 2010-07-22 2012-09-20 Shipsin Llc Systems and methods for networked radio systems and coordinated broadcasting
CN103887089A (en) * 2014-02-26 2014-06-25 广东电网公司茂名供电局 Integral illumination insulating bar and circuit system thereof
CN104967972A (en) * 2015-06-29 2015-10-07 上海卓易科技股份有限公司 Method and device for testing wearable Bluetooth device through BLE protocol
CN105517676A (en) * 2015-07-31 2016-04-20 深圳市元征科技股份有限公司 Whole-machine testing method and device of smart bracelets, and mobile terminal
CN107980233A (en) * 2017-03-06 2018-05-01 深圳大趋智能科技有限公司 Automatic test approach, the apparatus and system of Bluetooth POS terminal
CN109861880A (en) * 2019-01-23 2019-06-07 四川虹美智能科技有限公司 A kind of production detection method and device of wireless communication module

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383906A (en) * 2020-10-29 2021-02-19 四川虹美智能科技有限公司 System and method for detecting WiFi and Bluetooth performance of intelligent module
CN112383906B (en) * 2020-10-29 2022-09-06 四川虹美智能科技有限公司 System and method for detecting WiFi and Bluetooth performance of intelligent module
CN112564825A (en) * 2020-12-08 2021-03-26 北京华大智宝电子系统有限公司 Method, device, equipment and system for detecting functions of Bluetooth equipment
CN113872704A (en) * 2021-09-26 2021-12-31 深圳市芯中芯科技有限公司 General Bluetooth module production test system and method based on small program
CN114325013A (en) * 2021-11-29 2022-04-12 煜邦电力智能装备(嘉兴)有限公司 Electric energy meter Bluetooth function detection device and detection method thereof
CN115150921A (en) * 2022-07-01 2022-10-04 合肥美菱物联科技有限公司 Production test method of wireless communication module with Bluetooth

Similar Documents

Publication Publication Date Title
CN111756412A (en) Bluetooth device detection method and device
CN1959699B (en) Method and system of determining failure of an RFID label reader
CN111372232B (en) Method and system for first connection pairing of electric energy meter and Bluetooth circuit breaker
CN104268075B (en) A kind of method, device and mobile terminal of entrance test pattern
CN104811524B (en) A kind of terminal radio frequency performance test methods and its device
CN105407453A (en) Bluetooth pairing method and device
US20200142756A1 (en) Adapter with instrument control function, instrument control system and instrument control method
CN111238320B (en) On-site detection method and device for electronic detonator
CN103067550A (en) Mobile phone test tool detection method
CN110362434B (en) Object testing method and device
CN108093118A (en) The test method of device, test device and computer readable storage medium on mainboard
CN111245527B (en) Performance detection system and detection method thereof
US20240104313A1 (en) Method, apparatus, and system for testing terminal
CN112903308A (en) Performance detection method and device for automobile equipment, electronic equipment and storage medium
CN110134116B (en) Lock control plate testing method, device and tool
CN110232881A (en) Front board measuring method
CN110825637A (en) Robot testing method and device
CN112511602B (en) NB-IOT equipment detection method, intelligent terminal and storage medium
CN111356169B (en) Mobile terminal test device and test case extraction method thereof
JPH0278330A (en) Id-rom emulator for mca radio equipment
CN114527440A (en) Performance test method and device
CN113569586A (en) Vehicle-mounted unit testing system and method
CN106817631B (en) Automatic detection method for wireless communication module
CN112564825A (en) Method, device, equipment and system for detecting functions of Bluetooth equipment
CN110198548A (en) A kind of LORA module test method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201009

RJ01 Rejection of invention patent application after publication