CN111885580B - Bluetooth device test method, device and storage medium - Google Patents

Bluetooth device test method, device and storage medium Download PDF

Info

Publication number
CN111885580B
CN111885580B CN202010664820.6A CN202010664820A CN111885580B CN 111885580 B CN111885580 B CN 111885580B CN 202010664820 A CN202010664820 A CN 202010664820A CN 111885580 B CN111885580 B CN 111885580B
Authority
CN
China
Prior art keywords
test
bluetooth
bulb lamp
determining
broadcast information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010664820.6A
Other languages
Chinese (zh)
Other versions
CN111885580A (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.)
Shanghai Mxchip Information Technology Co Ltd
Original Assignee
Shanghai Mxchip Information 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 Shanghai Mxchip Information Technology Co Ltd filed Critical Shanghai Mxchip Information Technology Co Ltd
Priority to CN202010664820.6A priority Critical patent/CN111885580B/en
Publication of CN111885580A publication Critical patent/CN111885580A/en
Application granted granted Critical
Publication of CN111885580B publication Critical patent/CN111885580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the invention discloses a method, a device and a system for testing Bluetooth equipment and a storage medium. The method comprises the following steps: scanning test equipment for sending Bluetooth broadcast information within first preset time after power-on; when the test equipment is scanned, executing a corresponding test process according to the received Bluetooth broadcast information; acquiring an execution result of the Bluetooth equipment executing the test flow; and determining the test result of the Bluetooth equipment according to the execution result. The technical scheme of the embodiment of the invention realizes the intelligent test of the connection function and performance of a plurality of Bluetooth devices by one test device, simplifies the test flow of the Bluetooth device product test, improves the test efficiency and reduces the test cost.

Description

Bluetooth device test method, device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of equipment performance testing, in particular to a method, a device, equipment and a storage medium for testing Bluetooth equipment.
Background
Bluetooth equipment need test its connection function and performance before dispatching from the factory, has a lot of smart machines that have Bluetooth function in the current market, and when making smart machines, the product test link is indispensable.
In the prior art, connection function and performance test of the bluetooth device are often performed by connecting a test box or an intelligent terminal APP, and after the pairing connection is successful, the test of all processes is performed through the test box, or performance test stages required to be performed by the bluetooth device are selected through the intelligent terminal APP.
But because the test box only can link to each other with a bluetooth equipment with intelligent terminal APP at every turn, and every test of going on just need for test box or intelligent terminal APP configuration tester, can't realize going on when a plurality of bluetooth equipment connection function and capability test to get into different test flows according to bluetooth equipment self state, make the test flow complicated, efficiency of software testing is low and test cost is higher.
Disclosure of Invention
The invention provides a test method, a test device and a storage medium of a Bluetooth device, which are used for intelligently testing the connection function and the performance of the Bluetooth device, simplifying the test flow of the Bluetooth device product test, improving the test efficiency and reducing the test cost.
In a first aspect, an embodiment of the present invention provides a method for testing a bluetooth device, including:
scanning test equipment for sending Bluetooth broadcast information within first preset time after power-on;
when the test equipment is scanned, executing a corresponding test flow according to the received Bluetooth broadcast information;
acquiring an execution result of a Bluetooth device executing a test flow;
and determining the test result of the Bluetooth equipment according to the execution result.
Further, the Bluetooth device is a bulb lamp; executing a corresponding test flow according to the received Bluetooth broadcast information, wherein the test flow comprises the following steps:
if the Bluetooth broadcast information carries a first key value, controlling the bulb lamp to flash for a second preset time according to a first set color sequence in a circulating mode, obtaining first light information when the bulb lamp flashes in each color, and determining the first light information as an execution result;
if the Bluetooth broadcast information carries a second key value, the bulb lamp is controlled to be turned on circularly according to a second set color sequence, and the bulb lamp is controlled to be turned on normally for a third set time length under each color; and acquiring second light information after the bulb lamp is circularly lightened according to the set color sequence, and determining the second light information as an execution result.
Further, if the first lighting information is determined as an execution result, determining a test result of the bluetooth device according to the execution result, including:
if the bulb lamps do not blink circularly according to the first set color sequence and/or the brightness of the bulb lamps blinking under any color is smaller than a preset threshold value, determining that the test result is a fault;
otherwise, executing to control the bulb lamp to circularly light according to a second set color sequence, and controlling the bulb lamp to normally light for a third preset time under each color; and acquiring second light information after the bulb lamp is circularly lightened according to a second set color sequence, and determining the second light information as an execution result.
Further, if the second lighting information is determined as an execution result, determining a test result of the bluetooth device according to the execution result, including:
if the bulb lamps are circularly lightened according to a second set color sequence and the second light information is normally lightened at a first preset brightness, determining that the test result is normal;
otherwise, determining the test result as a fault.
Further, after scanning the test device that sends the bluetooth broadcast information, the method further includes:
when the test device is not scanned, the second preset brightness and the preset color temperature are normally on.
Further, when the test device is scanned, the method further comprises the following steps:
and if the Bluetooth broadcast information is not received, controlling the bulb lamp to circularly light according to a third set color sequence so as to prompt the user that the Bluetooth equipment does not detect the Bluetooth broadcast information.
In a second aspect, an embodiment of the present invention further provides a testing apparatus for a bluetooth device, where the testing apparatus for the bluetooth device includes:
the device scanning module is used for scanning the test device for sending the Bluetooth broadcast information within a first preset time after the power-on;
the flow executing module is used for executing a corresponding test flow according to the received Bluetooth broadcast information when the test equipment is scanned;
the execution result acquisition module is used for acquiring the execution result of the Bluetooth equipment executing the test process;
and the test result determining module is used for determining the test result of the Bluetooth equipment according to the execution result.
Further, the Bluetooth device is a bulb lamp; a process execution module comprising:
the first process execution unit is used for controlling the bulb lamp to circularly flash for a second preset time according to a first set color sequence if the Bluetooth broadcast information carries a first key value, obtaining first light information when the bulb lamp flashes in each color, and determining the first light information as an execution result;
the second process execution unit is used for controlling the bulb lamp to be turned on circularly according to a second set color sequence if the Bluetooth broadcast information carries a second key value, and controlling the bulb lamp to be turned on normally for a third set time period under each color; and acquiring second light information of the bulb lamp after the bulb lamp is circularly lightened according to a second set color sequence, and determining the second light information as an execution result.
In a third aspect, an embodiment of the present invention further provides a test system for a bluetooth device, where the test system includes a test device and at least one bluetooth device, the test device is configured to send bluetooth broadcast information, and the test system for the bluetooth device is configured to execute a test method for the bluetooth device according to any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform a method for testing a bluetooth device as provided in any of the embodiments of the present invention.
In the embodiment of the invention, the test equipment for sending the Bluetooth broadcast information is scanned within the first preset time after being electrified; when the test equipment is scanned, executing a corresponding test flow according to the received Bluetooth broadcast information; acquiring an execution result of a Bluetooth device executing a test flow; and determining the test result of the Bluetooth equipment according to the execution result. The test equipment for scanning and sending the Bluetooth broadcast information at the first preset time after power-on is adopted, if the Bluetooth broadcast information can be received, the connection function of the Bluetooth equipment can be proved to be normal in a test mode, the corresponding test flows are executed according to different received Bluetooth broadcast information contents, the test results of the Bluetooth equipment are determined according to the execution results of different test flows, the problems that the connection functions and the performance test of a plurality of Bluetooth equipment cannot be carried out simultaneously and the test process needs test personnel to participate are solved, the intelligent test on the connection functions and the performance of the plurality of Bluetooth equipment through one test equipment is realized, the test flow of the Bluetooth equipment product test is simplified, the test efficiency is improved, and the test cost is reduced.
Drawings
Fig. 1 is a flowchart of a testing method of a bluetooth device according to a first embodiment of the present invention;
fig. 2 is a flowchart of a testing method of a bluetooth device in the second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a testing apparatus for bluetooth devices in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a test system of a bluetooth device in a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Example one
Fig. 1 is a flowchart of a testing method for a bluetooth device according to an embodiment of the present invention, where the embodiment is applicable to a case where one or more bluetooth devices perform product testing, and the method may be executed by a testing apparatus for the bluetooth device, where the testing apparatus for the bluetooth device may be implemented by software and/or hardware, and the testing apparatus for the bluetooth device may be configured on a computing device, and specifically includes the following steps:
s101, scanning the test equipment for sending the Bluetooth broadcast information in a first preset time after power-on.
The test equipment can be understood as hardware equipment which continuously sends specific Bluetooth broadcast information and is used for triggering the Bluetooth equipment to be tested to enter a test mode; the bluetooth broadcast message may be understood as a data packet containing Extended Inquiry Response information (EIR) including a magic number for marking a format of a file or protocol and a key value for determining a bluetooth detection device test procedure.
Specifically, in a first preset time after the bluetooth device is powered on, the bluetooth device continuously receives an external signal, identifies whether the received external signal contains a signal of a testing device for sending bluetooth broadcast information, establishes a connection with the testing device after identifying the signal of the testing device and considers that the bluetooth device needs to enter a state to be tested, and can consider that the bluetooth device does not need to be tested to continue normal work when the power-on time exceeds the first preset time and the bluetooth signal is not searched in the first preset time. Optionally, the first preset time may be set to 10s, and the set value may be directly set by factory settings, or may be adjusted again at a later stage, which is not limited in this embodiment of the present invention.
And S102, when the test equipment is scanned, executing a corresponding test flow according to the received Bluetooth broadcast information.
The test flow can be understood as the type of the test required when the bluetooth device performs the product test and the steps required for the type of the test, and optionally, multiple types and multiple aspects of tests need to be performed on the tested product in one product test, so that multiple corresponding test flows can be included in one product test.
Specifically, after the bluetooth device scans the test device, the bluetooth device establishes connection with the test device and enters a state to be tested, receives the bluetooth broadcast information sent by the test device, determines a test type to be tested according to field information, included in the bluetooth broadcast information, for representing the test type required by the test device, and controls the bluetooth device to execute a test flow corresponding to the test type.
S103, obtaining an execution result of the Bluetooth device executing the test flow.
Specifically, when the bluetooth device executes the corresponding test flow, corresponding feedback information, such as brightness change, color change, potential change, and the like, may be generated according to an instruction in the test flow, and the feedback information may be acquired by a sensor and the like, and the acquired feedback information of the bluetooth device is used as an execution result for executing the corresponding test flow.
And S104, determining the test result of the Bluetooth equipment according to the execution result.
The test result may include device failure and device health, among others.
Specifically, different test procedures executed by the bluetooth device correspond to different test standards, the corresponding test standards are determined according to the test procedures executed by the bluetooth device, an execution result is compared with the test standards, and if the execution result meets the test standards, the test result of the bluetooth device is considered to be normal; and if any one of the execution results does not meet the test standard, the test result of the Bluetooth equipment is considered to be a fault.
In the embodiment of the invention, the test equipment for sending the Bluetooth broadcast information is scanned within the first preset time after being electrified; when the test equipment is scanned, executing a corresponding test flow according to the received Bluetooth broadcast information; acquiring an execution result of a Bluetooth device executing a test flow; and determining the test result of the Bluetooth equipment according to the execution result. The test equipment for scanning and sending the Bluetooth broadcast information at the first preset time after power-on is adopted, if the Bluetooth broadcast information can be received, the connection function of the Bluetooth equipment can be proved to be normal in a test mode, the corresponding test flows are executed according to different received Bluetooth broadcast information contents, the test results of the Bluetooth equipment are determined according to the execution results of different test flows, the problems that the connection functions and the performance test of a plurality of Bluetooth equipment cannot be carried out simultaneously and the test process needs test personnel to participate are solved, the intelligent test on the connection functions and the performance of the plurality of Bluetooth equipment through one test equipment is realized, the test flow of the Bluetooth equipment product test is simplified, the test efficiency is improved, and the test cost is reduced.
Example two
Fig. 2 is a flowchart of a testing method for a bluetooth device according to a second embodiment of the present invention. The technical scheme of the embodiment is further refined on the basis of the technical scheme. In this embodiment, the bluetooth device is a bulb lamp, and further, the bulb lamp may include: in the embodiment, the bulb lamp of the corresponding type can execute the corresponding test flow according to the received Bluetooth broadcast information, obtain the feedback of the brightness and color information corresponding to the bulb lamp type as the execution result of the test flow, and determine whether the bulb lamp normally works according to the execution result.
Furthermore, the bulb lamp is a Bluetooth device which burns quintuple information and performs device authentication in a one-machine-one-secret mode. The one-machine-one-Secret method can be understood as an equipment authentication method that each equipment burns a unique equipment certificate, and when the equipment is connected with the Internet of things platform, the Internet of things platform authenticates equipment certificate information carried by the equipment, wherein the equipment certificate can comprise a Product identifier (Product Key), an equipment Name (Device Name) and an equipment Key (Device Secret).
Specifically, the five-tuple information may be understood as five parameters, including a Product identifier (Product Key), a Product type identifier (Product ID), and a Product Key (Product Secret) assigned to each Product type, and a Device Name (Device Name) and a Device Key (Device Secret) assigned to each Device.
The Product identification (Product Key) is a globally unique identification issued by the platform of the Internet of things for the Product; the Product type identifier (Product ID) is a globally unique ID issued by the Internet of things platform for a Product, and is used for identifying the Product type when a Bluetooth network is distributed; a Product Secret (Product Secret) is a Product Secret issued by the internet of things platform, usually appearing in pairs with the Product Key; the Device Name (Device Name) is a self-defined or system-generated Device Name when the Device is registered, and has uniqueness in product dimensions; the Device key (Device Secret) is a Device key issued by the internet of things platform for the Device, and appears in pair with the Device Name.
Furthermore, the burning of the bulb lamp quintuple can adopt serial port burning or wireless grid network Mesh burning. Specifically, aiming at the development board, burning can be carried out through a user serial port, commands are input through the serial port, and corresponding commands are sent in sequence to realize burning of the bulb lamp quintuple; in the development stage, five-tuple burning is carried out on the whole machine without leading out a serial port through opcode. Exemplarily, the quintuple burning through opcode may include the following steps: 1) Applying for quintuple in the backstage of the swallow; 2) Inputting and converting quintuple information into a hexadecimal form through a character conversion hex tool; 3) Adding the device into a mesh network by using nrf mesh, and binding an app key to a vendor model; 4) Entering a vendor model setting interface, and inputting opcode and converted quintuple hex data; 5) Clicking 'send' to set, if the setting is successful, the equipment immediately returns quintuple information through ILOP quadruplies Status; 6) Checking the quintuple information returned by the equipment, and if no error exists, indicating that the quintuple information of the equipment is successfully burned.
As shown in fig. 2, a second embodiment of the present invention provides a method for testing a bluetooth device, which specifically includes the following steps:
s201, scanning the test equipment for sending the Bluetooth broadcast information in a first preset time after power-on.
By way of example, bluetooth broadcast information may be understood as a data packet containing extended inquiry response information EIR, wherein the EIR information may be represented by the following table:
EIR Data Type Data
LOCAL_NAME_COMPLETE(0*09) “MXCHIP_MFG_TEST”
MANUFACTURER_SPECIFIC(0*FF) 0*20 0*20 0*03 0*13 0*00
the first 4 bytes in the MANUFACTURER self-defined subprotocol (mangacturer _ SPECIFIC) are magic numbers, the 5 th byte is used for determining a test flow to be entered by the bluetooth device receiving the bluetooth broadcast information, optionally, the test flow may include a normal mode and an aging mode, when the 5 th byte is 0, the bluetooth device under test enters the normal test mode, and when the 5 th byte is 1, the bluetooth device under test enters the aging test mode.
S202, judging whether the Bluetooth equipment scans the test equipment for sending the Bluetooth broadcast information.
If yes, go to step S203; if not, go to step S204.
S203, judging whether the Bluetooth device receives the Bluetooth broadcast information.
If yes, determining key value information carried in the Bluetooth broadcast information, if the Bluetooth broadcast information carries a first key value, executing step S205, and if the Bluetooth broadcast information carries a second key value, executing step S206; if not, go to step S207.
And S204, normally lighting with a second preset brightness and a preset color temperature.
Specifically, when the bluetooth device does not scan the test device sending the bluetooth broadcast information, the bluetooth device may be considered not to enter the test state, and should normally operate and be normally turned on in the initial operating mode at this time, where the initial operating mode may be understood as an operating state where the bulb lamp is turned on at preset brightness and color temperature and is normally turned on in the parameter. Optionally, the second preset brightness may be 50% of the maximum brightness of the bulb lamp, the preset color temperature may be 4000k of warm white, and the second preset brightness and the preset color temperature may be set directly from the factory, or may be manually adjusted after leaving the factory.
S205, if the Bluetooth broadcast information carries the first key value, the bulb lamp is controlled to flash circularly for a second preset time according to the first set color sequence, first light information when the bulb lamp flashes in each color is obtained, and the first light information is determined as an execution result.
Wherein the first key value may be understood to correspond to a byte in the bluetooth broadcast message that causes the bluetooth device to enter the normal test mode. The first set color sequence can be understood as a color cycle appearance sequence set according to the light color type of the bulb lamp, and optionally, when the bulb lamp is a CW bulb lamp, the first set color sequence can be warm white WW- > cool white CW; when the bulb lamp is an RGBCW bulb lamp, the first set color sequence may be red- > green- > blue- > cool white CW- > warm white WW.
The first light information can comprise flashing time, flashing color and flashing brightness information of the bulb lamp.
Specifically, after the bluetooth device receives the bluetooth broadcast information, the content carried in the bluetooth broadcast information is identified, if the content carries a first key value, a corresponding first set color sequence is determined according to the type of the bulb lamp, the bulb lamp is enabled to be sequentially lightened for a short time according to the first set color sequence, the lightening time of each color is enabled to be consistent to form a shining effect, circulation is repeatedly carried out after the circulation of the set color sequence is finished, the bulb lamp is enabled to be circularly lightened for a second preset time, the shining time information, the shining color information and the shining brightness information when the bulb lamp is lightened in each color are used as first light information, and the first light information is determined as an execution result. Alternatively, the second preset time may be 2 minutes, which is not limited in this embodiment of the present invention.
Illustratively, after the first key value carried in the bluetooth broadcast information is determined, if the type of the bulb lamp is an RGBCW bulb lamp, the bulb lamp is controlled to be lit for 1s from the colors of red- > green- > blue- > cold white CW- > warm white WW respectively with the maximum brightness, and the bulb lamp is controlled to be cycled again from red after one cycle is finished until the cycle time reaches 2 minutes, and the time information, the color information and the brightness information of the bulb lamp corresponding to each moment are used as the execution result of the test.
And S206, if the Bluetooth broadcast information carries a second key value, controlling the bulb lamp to be circularly lightened according to a second set color sequence, controlling the bulb lamp to be normally lightened for a third preset time under each color, acquiring second light information after the bulb lamp is circularly lightened according to the second set color sequence, and determining the second light information as an execution result.
Wherein the second key value may be understood to correspond to a byte in the bluetooth broadcast message that causes the bluetooth device to enter the burn-in test mode. The second set color sequence can be understood as a color cycle appearance sequence set according to the light color type of the bulb lamp, and optionally, when the bulb lamp is a CW bulb lamp, the second set color sequence can be cold white CW- > warm white WW; when the bulb lamp is an RGBCW bulb lamp, the second set color sequence can be cold white CW- > warm white WW- > red- > green- > blue.
The second light information may include brightness information and color information of the bulb lamp.
Specifically, when the received Bluetooth broadcast information carries a second key value, a corresponding second set color sequence is determined according to the type of the bulb lamp, the bulb lamp is sequentially lightened under each color according to the second set color sequence and is lightened for a third preset time, after the second set color sequence is circulated, the brightness information and the color information under the condition that the bulb lamp is lightened at the moment are obtained and are used as second light information, and meanwhile the second light information is determined as an execution result. Alternatively, the third preset time may be 20 minutes, which is not limited in the embodiment of the present invention.
Illustratively, after the bluetooth broadcast information is determined to carry the second key value, if the type of the bulb lamp is an RGBCW bulb lamp, the bulb lamp is controlled to be sequentially and normally lighted for 20 minutes in each color according to the sequence of cold white CW- > warm white WW- > red- > green- > blue with the maximum power, and the brightness information and the color information of the bulb lamp after the color cycle is finished are obtained as the execution result of the test.
And S207, controlling the bulb lamp to be circularly lightened according to a third set color sequence so as to prompt a user that the Bluetooth equipment does not detect the Bluetooth broadcast information.
Specifically, when the bluetooth device scans the test device but does not receive the bluetooth broadcast information, the signal value of the test device in the environment may be considered to be lower than the preset threshold, which may be caused by that the bulb lamp is far away from the test device and exceeds the distance range for receiving the bluetooth broadcast information, the distance between the bulb lamp and the test device should be adjusted, and at this time, the bulb lamp is controlled to circularly light according to the third set color sequence, and is circulated again after a cycle is finished, so as to achieve the purpose of reminding the bulb lamp that the bluetooth broadcast information is not detected.
Optionally, the third set color sequence cycle lighting process may be: with the breathing lamp (1.5 s, by darkest- > brightest) - > breathing lamp (1.5 s, by brightest- > darkest) - > maximum brightness (0.25 s) - > extinguishment (0.25 s).
And S208, if the first light information is determined as the execution result, judging whether the bulb lamp does not blink circularly according to the first set color sequence and/or whether the brightness of the bulb lamp blinking under any color is smaller than a preset threshold value.
Specifically, under the condition that the first light information is determined as the execution result, if the bulb lamp does not cyclically flash according to the first set color sequence, it can be considered that the color cycle control of the bulb lamp has an error, and the bulb lamp is a faulty product; if the brightness of the flashing of the bulb lamp in any color is smaller than a preset threshold value, the brightness of the bulb lamp in the color is considered to be wrong in brightness control, and the bulb lamp is a fault product. Therefore, if either of the above two problems occurs, step S209 is executed; if not, the result of the normal test mode of the bulb lamp is considered to be normal, and the aging test mode of the step S206 can be executed.
And S209, determining that the test result is a fault.
And S210, if the second light information is determined as an execution result, judging whether the bulb lamp is turned on circularly according to a second set color sequence and whether the second light information is turned on constantly at a first preset brightness.
Optionally, the first preset brightness may be the lowest brightness of the bulb lamp, which is not limited in the embodiment of the present invention.
Specifically, under the condition that the second light information is determined as the execution result, if the bulb lamp is not circularly turned on according to the second set color sequence, it can be considered that the color cycle control of the bulb lamp is wrong, and the bulb lamp is a failed product; if the second light information of the bulb lamp after the bulb lamp is circularly and normally on is not normally on at the lowest brightness, the aging test of the bulb lamp can be considered to fail, and the bulb lamp is a fault product. Therefore, if either of the above two problems occurs, step S209 is executed; if neither of the two problems occurs, step S211 is executed.
And S211, determining that the test result is normal.
Specifically, after the test result of the bulb is determined to be normal, the test process can be considered to be normally finished, and the bulb lamp is controlled to be powered off at the moment.
According to the technical scheme of the embodiment, the connection function of the Bluetooth device is determined according to the condition of the test device which scans and sends the Bluetooth broadcast information, and the corresponding test process is carried out according to the difference of key values carried in the received Bluetooth broadcast information under the condition that the Bluetooth connection function is determined to be normal. The Bluetooth bulb lamp test system has the advantages that the Bluetooth device is the bulb lamp, color cycle control of the bulb lamp can be detected in one test, brightness control and hardware states can be detected, aging test can be conducted, testers do not need to participate in the whole test process, the Bluetooth broadcast information is continuously sent by the test device, a plurality of bulb lamps to be tested can be supported to be tested simultaneously, the test flow of the bulb lamp with the Bluetooth function in the product test process is simplified, the test efficiency is improved, the test types are enriched, and meanwhile the labor cost of the test is reduced.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a testing apparatus for a bluetooth device according to a third embodiment of the present invention, where the testing apparatus for the bluetooth device includes: a device scanning module 31, a flow executing module 32, an execution result acquiring module 33 and a test result determining module 34.
The device scanning module 31 is configured to scan a test device that sends bluetooth broadcast information within a first preset time after power-on; a flow executing module 32, configured to execute a corresponding test flow according to the received bluetooth broadcast information when the test device is scanned; an execution result obtaining module 33, configured to obtain an execution result of a test procedure executed by the bluetooth device; and the test result determining module 34 is used for determining the test result of the bluetooth device according to the execution result.
According to the technical scheme, the problem that the connection function and the performance test of a plurality of Bluetooth devices can not be performed simultaneously and the test process needs the participation of testers is solved, the intelligent test of the connection function and the performance of the plurality of Bluetooth devices through one test device is realized, the test flow of the Bluetooth device product test is simplified, the test efficiency is improved, and the test cost is reduced.
Optionally, the testing apparatus for bluetooth device further includes:
and the normally-on module is used for normally lighting with a second preset brightness and a preset color temperature when the test equipment is not scanned.
And the prompting module is used for controlling the bulb lamp to circularly light according to a third set color sequence when the test equipment is scanned and the Bluetooth broadcast information is not received so as to prompt the user that the Bluetooth equipment does not detect the Bluetooth broadcast information.
Optionally, the bluetooth device is a bulb lamp, and the process execution module 32 includes:
and the first flow execution unit is used for controlling the bulb lamp to circularly flash for a second preset time according to the first set color sequence if the Bluetooth broadcast information carries the first key value, obtaining first light information when the bulb lamp flashes in each color, and determining the first light information as an execution result.
And the second process execution unit is used for controlling the bulb lamp to circularly light according to a second set color sequence if the Bluetooth broadcast information carries a second key value, controlling the bulb lamp to normally light for a third set time length under each color, acquiring second light information after the bulb lamp is circularly lighted according to the second set color sequence, and determining the second light information as an execution result.
Optionally, the test result determining module 34 includes:
when the first light information is determined as an execution result, if the bulb lamp does not flash circularly according to the first set color sequence and/or the brightness of the bulb lamp flashing in any color is smaller than a preset threshold value, determining that the test result is a fault; otherwise, executing to control the bulb lamp to circularly light according to a second set color sequence, and controlling the bulb lamp to normally light for a third set time length under each color; and acquiring second light information of the bulb lamps after the bulb lamps are circularly lightened according to the set color sequence, and determining the second light information as an execution result.
When the second light information is determined as an execution result, if the bulb lamps are circularly lightened according to a second set color sequence and the second light information is normally lightened at a first preset brightness, determining that the test result is normal; otherwise, determining that the test result is a fault.
The testing device of the Bluetooth equipment provided by the embodiment of the invention can execute the testing method of the Bluetooth equipment provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a test system for a bluetooth device according to a fourth embodiment of the present invention, as shown in fig. 4, the test system for the bluetooth device includes a test device 41 and at least one bluetooth device 42, the bluetooth device 42 is in communication connection with the test device 41, and two bluetooth devices 42 are taken as an example in fig. 4.
And a test device 41 for transmitting the bluetooth broadcast information.
The bluetooth device 42 is configured to scan a test device that sends bluetooth broadcast information within a first preset time after power-on; when the test equipment is scanned, executing a corresponding test flow according to the received Bluetooth broadcast information; acquiring an execution result of a Bluetooth device executing a test flow; and determining the test result of the Bluetooth equipment according to the execution result.
The test system of the Bluetooth device is used for executing the test method of the Bluetooth device provided by any embodiment of the invention.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for testing a bluetooth device, the method including:
scanning test equipment for sending Bluetooth broadcast information within first preset time after power-on;
when the test equipment is scanned, executing a corresponding test flow according to the received Bluetooth broadcast information;
acquiring an execution result of a Bluetooth device executing a test flow;
and determining the test result of the Bluetooth equipment according to the execution result.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the test method for the bluetooth device provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (9)

1. A method for testing a Bluetooth device, comprising:
scanning test equipment for sending Bluetooth broadcast information within first preset time after power-on;
when the test equipment is scanned, executing a corresponding test flow according to the received Bluetooth broadcast information;
acquiring an execution result of the Bluetooth equipment executing the test flow;
determining a test result of the Bluetooth equipment according to the execution result;
the Bluetooth device is a bulb lamp; the executing of the corresponding test process according to the received Bluetooth broadcast information includes:
if the Bluetooth broadcast information carries a first key value, controlling the bulb lamp to circularly flash for a second preset time according to a first set color sequence, obtaining first light information when the bulb lamp flashes in each color, and determining the first light information as the execution result;
correspondingly, the determining the test result of the bluetooth device according to the execution result includes:
if the bulb lamps do not flash circularly according to the first set color sequence and/or the brightness of the bulb lamps flashing in any color is smaller than a preset threshold value, determining that the test result is a fault;
otherwise, executing control of the bulb lamps to circularly light according to a second set color sequence, and controlling the bulb lamps to normally light for a third set time length under each color; and second light information after the bulb lamps are circularly lightened according to a set color sequence is obtained, and the second light information is determined as the execution result.
2. The method of claim 1, wherein the performing the corresponding test procedure according to the received bluetooth broadcast information further comprises:
if the Bluetooth broadcast information carries a second key value, controlling the bulb lamp to be turned on circularly according to a second set color sequence, and controlling the bulb lamp to be turned on normally for a third preset time under each color; and acquiring second light information of the bulb lamp after the bulb lamp is circularly lightened according to a second set color sequence, and determining the second light information as the execution result.
3. The method of claim 2, wherein if the second light information is determined as the execution result, determining a test result of the bluetooth device according to the execution result comprises:
if the bulb lamps are circularly lightened according to the second set color sequence and the second light information is normally lightened at a first preset brightness, determining that the test result is normal;
otherwise, determining the test result as a fault.
4. The method of claim 1, wherein after scanning test devices that transmit bluetooth broadcast information, further comprising:
and when the test equipment is not scanned, the test equipment is normally on at a second preset brightness and a preset color temperature.
5. The method of claim 1, wherein when the test device is scanned, further comprising:
and if the Bluetooth broadcast information is not received, controlling the bulb lamp to circularly light according to a third set color sequence so as to prompt the user that the Bluetooth equipment does not detect the Bluetooth broadcast information.
6. A testing apparatus for Bluetooth devices, comprising:
the device scanning module is used for scanning the test device for sending the Bluetooth broadcast information within a first preset time after power-on;
the flow executing module is used for executing a corresponding test flow according to the received Bluetooth broadcast information when the test equipment is scanned;
the execution result acquisition module is used for acquiring the execution result of the Bluetooth equipment executing the test process;
the test result determining module is used for determining the test result of the Bluetooth equipment according to the execution result;
the Bluetooth device is a bulb lamp; the flow executing module comprises:
the first flow execution unit is used for controlling the bulb lamp to circularly flash for a second preset time according to a first set color sequence if the Bluetooth broadcast information carries a first key value, obtaining first light information when the bulb lamp flashes in each color, and determining the first light information as the execution result;
correspondingly, the test result determining module is used for determining that the test result is a fault if the bulb lamp does not cyclically flash according to the first set color sequence and/or the brightness of the bulb lamp flashing in any color is smaller than a preset threshold value when the first light information is determined as the execution result; otherwise, executing to control the bulb lamp to circularly light according to a second set color sequence, and controlling the bulb lamp to normally light for a third set time length under each color; and acquiring second light information of the bulb lamps after the bulb lamps are circularly lightened according to the set color sequence, and determining the second light information as an execution result.
7. The apparatus of claim 6, wherein the process execution module further comprises:
the second process execution unit is used for controlling the bulb lamp to be turned on circularly according to a second set color sequence if the Bluetooth broadcast information carries a second key value, and controlling the bulb lamp to be turned on normally for a third set time period under each color; and acquiring second light information of the bulb lamp after the bulb lamp is circularly lightened according to a second set color sequence, and determining the second light information as the execution result.
8. A test system for bluetooth devices, comprising a test device for transmitting bluetooth broadcast information and at least one bluetooth device for performing a test method for a bluetooth device according to any one of claims 1 to 5.
9. A storage medium containing computer-executable instructions for performing a method of testing a bluetooth device according to any one of claims 1-5 when executed by a computer processor.
CN202010664820.6A 2020-07-10 2020-07-10 Bluetooth device test method, device and storage medium Active CN111885580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010664820.6A CN111885580B (en) 2020-07-10 2020-07-10 Bluetooth device test method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010664820.6A CN111885580B (en) 2020-07-10 2020-07-10 Bluetooth device test method, device and storage medium

Publications (2)

Publication Number Publication Date
CN111885580A CN111885580A (en) 2020-11-03
CN111885580B true CN111885580B (en) 2023-04-18

Family

ID=73151178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010664820.6A Active CN111885580B (en) 2020-07-10 2020-07-10 Bluetooth device test method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111885580B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564825B (en) * 2020-12-08 2022-11-04 北京华大智宝电子系统有限公司 Method, device, equipment and system for detecting Bluetooth equipment function
CN113194448B (en) * 2021-04-20 2023-04-25 歌尔股份有限公司 Bluetooth device testing method, testing terminal and readable storage medium
CN114040196B (en) * 2021-12-10 2023-11-07 国科海芯(上海)微电子有限公司 Bluetooth equipment testing method, testing control host and Bluetooth testing system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007340A (en) * 2014-05-21 2014-08-27 杭州互诚控制技术有限公司 Electronic product aging test system and aging test method
CN106850091A (en) * 2017-02-03 2017-06-13 珠海市杰理科技股份有限公司 Bluetooth equipment method of testing and system
CN108816801A (en) * 2018-07-24 2018-11-16 上海庆科信息技术有限公司 A kind of method, apparatus and system of the lamp tone testing of intelligent sphere bubble
CN108920311A (en) * 2018-06-07 2018-11-30 四川斐讯信息技术有限公司 A kind of test method and test equipment of Intelligent lamp
WO2018223513A1 (en) * 2017-06-07 2018-12-13 百富计算机技术(深圳)有限公司 Bluetooth testing method, terminal device, and computer readable storage medium
CN210899191U (en) * 2020-03-31 2020-06-30 四川爱联科技有限公司 Bluetooth equipment test system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205961497U (en) * 2016-05-30 2017-02-15 深圳市蚂蚁雄兵物联技术有限公司 Bluetooth ball bubble lamp

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007340A (en) * 2014-05-21 2014-08-27 杭州互诚控制技术有限公司 Electronic product aging test system and aging test method
CN106850091A (en) * 2017-02-03 2017-06-13 珠海市杰理科技股份有限公司 Bluetooth equipment method of testing and system
WO2018223513A1 (en) * 2017-06-07 2018-12-13 百富计算机技术(深圳)有限公司 Bluetooth testing method, terminal device, and computer readable storage medium
CN108920311A (en) * 2018-06-07 2018-11-30 四川斐讯信息技术有限公司 A kind of test method and test equipment of Intelligent lamp
CN108816801A (en) * 2018-07-24 2018-11-16 上海庆科信息技术有限公司 A kind of method, apparatus and system of the lamp tone testing of intelligent sphere bubble
CN210899191U (en) * 2020-03-31 2020-06-30 四川爱联科技有限公司 Bluetooth equipment test system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高光效LED灯丝球泡灯的光学性能研究;龚三三等;《半导体技术》;20150203(第02期);第1-5页 *

Also Published As

Publication number Publication date
CN111885580A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN111885580B (en) Bluetooth device test method, device and storage medium
CN111885579B (en) Bluetooth device testing method, device, equipment and storage medium
CN111641997B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
US10462881B1 (en) Quick setup of lighting control system
CN113138562A (en) Terminal control system and terminal control method based on Internet of things
CN108391340A (en) For creating and/or the lighting system of extended network, light source, sensor and method
CN104794034A (en) Acceptance check method and device for equipment
CN111654844A (en) Device pairing method and related device and device
CN106612530A (en) Control method, device and system for networking equipment
CN109803470B (en) Street lamp control method, street lamp and street lamp control system
CN108347362A (en) A kind of method and bridging device and devices in system finding new equipment
CN108432158A (en) Issue method, the method and device of access device of configuration information
CN111915601A (en) Intelligent terminal abnormity testing method, device and system
CN109068395B (en) Method and device for indicating state of bridging pairing, terminal equipment and medium
CN116707638A (en) Optical port communication test method and device
WO2021233477A1 (en) Wireless networking and communication method, system and apparatus for air conditioner, and medium
CN114900421A (en) Fault detection method and device, electronic equipment and readable storage medium
CN105207811B (en) Method and device for replacing non-AllJoyn equipment
US20170094035A1 (en) Management method and management device
CN110597677A (en) Test chip and test method of electronic equipment
KR102213312B1 (en) Lighting apparatus, terminal, lighting system, information terminal, pairing method of lighting apparatus and program
CN112564825A (en) Method, device, equipment and system for detecting functions of Bluetooth equipment
CN113759294A (en) Wi-Fi socket testing method and system
CN105306302A (en) Method and system for automatically testing Qinq function
CN115242579B (en) PWM signal acquisition system and method based on lamplight color temperature adjustment

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