CN111885579B - Bluetooth device testing method, device, equipment and storage medium - Google Patents

Bluetooth device testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111885579B
CN111885579B CN202010664814.0A CN202010664814A CN111885579B CN 111885579 B CN111885579 B CN 111885579B CN 202010664814 A CN202010664814 A CN 202010664814A CN 111885579 B CN111885579 B CN 111885579B
Authority
CN
China
Prior art keywords
test
information
bluetooth
lamplight
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010664814.0A
Other languages
Chinese (zh)
Other versions
CN111885579A (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 CN202010664814.0A priority Critical patent/CN111885579B/en
Publication of CN111885579A publication Critical patent/CN111885579A/en
Application granted granted Critical
Publication of CN111885579B publication Critical patent/CN111885579B/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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Fire Alarms (AREA)

Abstract

The embodiment of the invention discloses a method, a device, a system and a storage medium for testing Bluetooth equipment. The method comprises the following steps: scanning test equipment for transmitting Bluetooth broadcast information in a first preset time after power-on; the Bluetooth equipment is a single-fire switch; when the test equipment is scanned, entering a test flow according to the received Bluetooth broadcast information; and determining the test result of the Bluetooth equipment according to the execution result of the test flow. According to the technical scheme, the problem that the connection function and performance test of a plurality of Bluetooth devices cannot be performed simultaneously and a plurality of testers are needed to participate in the test process is solved, intelligent test on the connection function and performance of the plurality of Bluetooth devices through one test device is achieved, the test efficiency of the Bluetooth device product test is improved, and the cost of the Bluetooth device product test is reduced.

Description

Bluetooth device testing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of equipment performance test, in particular to a test method, a test device, test equipment and a storage medium of Bluetooth equipment.
Background
The bluetooth equipment needs to test its connection function and performance before dispatching from the factory, has many intelligent devices that have bluetooth function in the current market, and when manufacturing intelligent device, the product test link is indispensable.
In the prior art, the connection function and performance test of the Bluetooth equipment are often required to be carried out by connecting a test box or an intelligent terminal APP, and after the pairing connection is successful, the test of the whole flow is carried out through the test box, or the performance test stage required to be carried out on the Bluetooth equipment is selected through the intelligent terminal APP.
However, the test box and the intelligent terminal APP can be connected with only one Bluetooth device each time, and a tester is required to be configured for the test box or the intelligent terminal APP each time, so that the connection function and performance test of a plurality of Bluetooth devices cannot be realized, and the test is completed according to the state of the Bluetooth devices, so that the test flow is complex, the test efficiency is low, and the test cost is high.
Disclosure of Invention
The invention provides a testing method, a device, equipment and a storage medium of Bluetooth equipment, which are used for realizing intelligent performance testing and connection functions of the Bluetooth equipment, simplifying the testing flow of the Bluetooth equipment product testing, improving the testing efficiency and reducing the testing cost.
In a first aspect, an embodiment of the present invention provides a method for testing a bluetooth device, including:
scanning test equipment for transmitting Bluetooth broadcast information in a first preset time after power-on; the Bluetooth equipment is a single-fire switch;
when the test equipment is scanned, entering a test flow according to the received Bluetooth broadcast information;
and determining the test result of the Bluetooth equipment according to the execution result of the test flow.
Further, the single fire switch is connected with a test lamp; entering a test flow according to the received Bluetooth broadcast information, including:
controlling the single fire switch to enter a first test state, and acquiring first light information of an indicator lamp of the single fire switch and second light information of a test lamp in the first test state;
receiving key information;
controlling the single-fire switch to enter a second test state according to the key information, and acquiring third light information of an indicator lamp of the single-fire switch and fourth light information of a test lamp in the second test state;
and determining at least one of the first lamplight information, the second lamplight information, the third lamplight information and the fourth lamplight information as an execution result.
Further, the first light information includes flashing or non-flashing; the second lamplight information comprises a lighting preset time length, a non-lighting time length or a non-lighting time length which is not matched with the preset time length; the third lamplight information comprises stopping flashing and synchronously lighting with the test lamp, and not stopping flashing or stopping flashing and not synchronously lighting with the test lamp; the fourth light information comprises the preset lighting times or the lighting times are not matched with the preset times.
Further, determining a test result of the bluetooth device according to the execution result of the test flow includes:
if the first lamplight information is flashing, the second lamplight information is a preset lighting duration, the third lamplight information is stopping flashing and is synchronously lightened with the test lamp, and the fourth lamplight information is a preset lighting frequency, the test result is determined to be successful;
otherwise, determining the test result as failure.
Further, after the test equipment for transmitting the Bluetooth broadcast information is scanned, if the test equipment is not scanned, the indicator lamp for controlling the single fire switch is always on and controls the single fire switch to enter a normal working state.
In a second aspect, an embodiment of the present invention further provides a testing apparatus for a bluetooth device, where the testing apparatus for a bluetooth device includes:
the device scanning module is used for scanning test devices for transmitting Bluetooth broadcast information in a first preset time after power-on; the Bluetooth equipment is a single-fire switch;
the flow execution module is used for entering a test flow according to the received Bluetooth broadcast information when the test equipment is scanned;
and the test result determining module is used for determining the test result of the Bluetooth device according to the execution result of the test flow.
Further, the flow execution module includes:
the first test execution unit is used for controlling the single-fire switch to enter a first test state and acquiring first lamplight information of an indicator lamp of the single-fire switch and second lamplight information of a test lamp in the first test state;
the key information receiving unit is used for receiving key information;
the second test execution unit is used for controlling the single-fire switch to enter a second test state according to the key information and acquiring third lamplight information of the indicator lamp of the single-fire switch and fourth lamplight information of the test lamp in the second test state;
and the execution result determining unit is used for determining at least one of the first lamplight information, the second lamplight information, the third lamplight information and the fourth lamplight information as an execution result.
Further, the testing device of the bluetooth device further includes:
and the working module is used for controlling the indicator lamp of the single-fire switch to be always on and controlling the single-fire switch to enter a normal working state when the test equipment is not scanned.
In a third aspect, an embodiment of the present invention further provides a test system for a bluetooth device, including a test device and at least one bluetooth device, where the test device is configured to send bluetooth broadcast information, and the test system for a bluetooth device is configured to execute the test method for a 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 that, when executed by a computer processor, are used to perform a method of testing a bluetooth device as provided by any of the embodiments of the present invention.
According to the embodiment of the invention, the test equipment for transmitting the Bluetooth broadcast information is scanned in the first preset time after power-on; the Bluetooth equipment is a single-fire switch; when the test equipment is scanned, entering a test flow according to the received Bluetooth broadcast information; and determining the test result of the Bluetooth equipment according to the execution result of the test flow. Through the test equipment of the first preset time scanning transmission bluetooth broadcast information after the power-on, if scan test equipment and receive bluetooth broadcast information and succeed, then the bluetooth connection function of bluetooth equipment is normal, and get into the test procedure according to bluetooth broadcast information received automatically, can test by a plurality of bluetooth equipment of simultaneous control, the problem that a plurality of bluetooth equipment connection functions and performance test can't go on simultaneously, the test in-process needs a plurality of testers to participate in has been solved, the intelligent test is carried out to the connection function and the performance of a plurality of bluetooth equipment through a test equipment, bluetooth equipment product test's test efficiency has been improved and bluetooth equipment product test's cost has been 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 a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a testing device of a bluetooth device in a third embodiment of the invention;
fig. 4 is a schematic structural diagram of a test system of a bluetooth device according to a fourth embodiment of the invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.
Example 1
Fig. 1 is a flowchart of a testing method of a bluetooth device according to a first embodiment of the present invention, where the method may be applicable to a case where one or more bluetooth devices perform product testing, and the method may be performed by a testing apparatus of a bluetooth device, where the testing apparatus of a bluetooth device may be implemented by software and/or hardware, and the testing apparatus of a bluetooth device may be configured on a computing device, and specifically includes the following steps:
s101, scanning test equipment for transmitting Bluetooth broadcast information within a first preset time after power-on, wherein the Bluetooth equipment is a single-fire switch.
The test device can be understood as a hardware device which continuously transmits specific bluetooth broadcast information, and is used for enabling the bluetooth device to be tested which receives the bluetooth broadcast information to enter a test mode; bluetooth broadcast information may be understood as a packet containing extended inquiry response information (EIR, extended Inquiry Response) including a magic number for marking the format of a file or protocol and a key for triggering the bluetooth detection device to enter a test procedure; the single fire switch can be understood as a switch which is connected with a power grid after being connected with a lamp in series in the intelligent home and is used for supplying power to an intelligent circuit in the single fire switch by sharing a fire wire with the lamp, and is used for controlling the on-off of the lamp.
Specifically, in a first preset time after the single fire switch with the Bluetooth function is powered on, the single fire switch starts a Bluetooth mode to continuously scan and receive peripheral Bluetooth signals, identifies received external signals, judges whether signals of test equipment for transmitting Bluetooth broadcast information signals exist in the received external signals, establishes connection with the test equipment when the signals of the test equipment are identified, can be considered to have normal Bluetooth connection function, and can be considered to continuously work normally without entering the test mode when the signals of the test equipment are not scanned after the first preset time is exceeded after the single fire switch is powered on. Alternatively, the first preset time may be set to 10s, where the set value may be set directly by factory setting, or may be adjusted again according to actual conditions at a later stage, which is not limited in the embodiment of the present invention.
S102, when the test equipment is scanned, entering a test flow according to the received Bluetooth broadcast information.
The test flow may be understood as the type of test required when the bluetooth device performs the product test and the steps required for the type of test, and optionally, when the bluetooth device is a single fire switch with a bluetooth function, the test flow may include the function measurement steps of the bluetooth connection function, the power driving function, the indicator light, the key and the relay of the single fire switch.
Illustratively, bluetooth broadcast information may be understood as a data packet containing extended inquiry response information EIR, where 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 custom sub-protocol (MANUFACTURE_SPECIFIC) are the magic number, the 5 th byte is used for determining the test flow which the Bluetooth device receiving the Bluetooth broadcast information should enter, optionally, the test flow can comprise a normal mode and an aging mode, when the 5 th byte is 0, the Bluetooth device performing the test enters the normal test mode, and when the 5 th byte is 1, the Bluetooth device performing the test enters the aging test mode. Furthermore, since the single fire switch does not need to perform the aging test, the Bluetooth broadcast information is tested when being received and enters a normal test mode, and other Bluetooth devices needing to perform the aging test, such as a five-way bulb lamp, can enter a corresponding test mode according to the byte content carried in the Bluetooth broadcast information after receiving the Bluetooth broadcast information, so that the same test device transmitting the Bluetooth broadcast information can simultaneously perform product test on different types of Bluetooth devices.
Specifically, after the single fire switch scans the test equipment, connection is established with the test equipment and enters a state to be tested, after Bluetooth broadcast information sent by the test equipment is received, the test equipment enters a test mode, corresponding test steps in a test flow are sequentially executed, and a power supply driving function, an indicator lamp, a key and a relay function in the single fire switch are respectively tested.
S103, determining the test result of the Bluetooth device according to the execution result of the test flow.
The execution result of the test flow may be understood as corresponding feedback information generated by each device in the bluetooth device according to an instruction in the test flow when executing the corresponding function test in the process of executing the test. In the embodiment of the invention, taking the single fire switch with the Bluetooth function as an example, the execution result can comprise the display condition of the indication lamp of the single fire switch, the lighting condition of the test lamp connected with the single fire switch and the like. The test results may include equipment failure and equipment normal, and the equipment failure may include relay failure, key failure, indicator light failure, and the like.
Specifically, when a single fire switch with a Bluetooth function executes a corresponding step in a test flow, corresponding feedback information is generated according to an instruction in the test flow, the acquired feedback information is used as an execution result of the test flow, the execution result is compared with a standard for performing functional test on each device in the test flow, and if the execution result meets the test standard, the test result of the Bluetooth device is considered to be normal; if any one of the execution results does not meet the test standard, the test result of the Bluetooth device is considered to be a fault, and the fault type of the Bluetooth device can be determined through the specific execution result.
According to the embodiment of the invention, the test equipment for transmitting the Bluetooth broadcast information is scanned in the first preset time after power-on; the Bluetooth equipment is a single-fire switch; when the test equipment is scanned, entering a test flow according to the received Bluetooth broadcast information; and determining the test result of the Bluetooth equipment according to the execution result of the test flow. Through the test equipment of the first preset time scanning transmission bluetooth broadcast information after the power-on, if scan test equipment and receive bluetooth broadcast information and succeed, then the bluetooth connection function of bluetooth equipment is normal, and get into the test procedure according to bluetooth broadcast information received automatically, can test by a plurality of bluetooth equipment of simultaneous control, the problem that a plurality of bluetooth equipment connection functions and performance test can't go on simultaneously, the test in-process needs a plurality of testers to participate in has been solved, the intelligent test is carried out to the connection function and the performance of a plurality of bluetooth equipment through a test equipment, bluetooth equipment product test's test efficiency has been improved and bluetooth equipment product test's cost has been reduced.
Example two
Fig. 2 is a flowchart of a testing method of 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, and specifically comprises the following steps:
s201, scanning test equipment for transmitting Bluetooth broadcast information within a first preset time after power-on, wherein the Bluetooth equipment is a single-fire switch.
The single-fire switch is a Bluetooth device with Bluetooth function, five-tuple information is burnt, and device authentication is performed in the Internet of things platform in a one-machine one-secret mode. The one-machine-one-password can be understood as a Device authentication method that each Device burns a unique Device certificate, and when the Device establishes a connection with the internet of things platform, the internet of things platform authenticates the Device certificate information carried by the Device, wherein the Device certificate can comprise a Product identifier (Product Key), a Device Name (Device Name) and a Device Secret Key (Device Secret).
Specifically, the five-tuple information can be understood as five parameters, including a Product identifier (Product Key) allocated for each Product type, a Product type identifier (Product ID) and a Product Key (Product Secret), and a Device Name (Device Name) and a Device Key (Device Secret) allocated for each Device.
The Product Key is a global unique identifier issued by the Internet of things platform for the Product; the Product type identifier (Product ID) is a global unique ID issued by the Internet of things platform for the Product, and is used for identifying the Product type when Bluetooth network allocation is performed; the Product Key (Product Secret) is a Product Key issued by the internet of things platform, and usually appears in pairs with the Product Key; when registering a Device, the Device Name (Device Name) is a custom or system-generated Device Name, and has uniqueness in a product dimension; the Device key (Device Secret) is a Device key issued by the internet of things platform for a Device, and appears in pairs with the Device Name.
Further, the single fire switch can adopt serial port burning or wireless Mesh network Mesh burning in the five-tuple burning. Specifically, aiming at the development board, the burning can be performed through a user serial port, and the burning of the five-tuple of the single-fire switch can be realized by inputting commands through the serial port and sequentially sending the corresponding commands; in the development stage, five-tuple burning is carried out through opcodes aiming at the whole machine without leading out the serial port. Illustratively, the five-tuple burning by opcode may include the steps of: 1) Applying for five-tuple in the background of the Feiyan; 2) Inputting and converting quintuple information into 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 opcodes and converted quintuple hex data; 5) Clicking 'send' to set, if the setting is successful, the device returns five-tuple information immediately through ILOP Quadruples Status; 6) Checking the quintuple information returned by the equipment, if no error exists, indicating that the quintuple information of the equipment is successfully burnt.
S202, judging whether the Bluetooth device scans to test equipment for transmitting Bluetooth broadcast information.
If yes, go to step S204; if not, step S203 is performed.
S203, the indicator lamp for controlling the single-fire switch is always on and controls the single-fire switch to enter a normal working state.
Specifically, when the single fire switch with the bluetooth function does not scan the test device for transmitting bluetooth broadcast information, the single fire switch can be considered to be in a normal working state without entering a test state, wherein in order to indicate that the single fire switch is in the normal working state, an indicator lamp of the single fire switch is controlled to be always on, and the indicator lamp is enabled to be switched on and off along with the on and off of the switch, and the on and off of a lamp controlled by the single fire switch are switched on and off.
S204, controlling the single fire switch to enter a first test state, and acquiring first light information of an indicator lamp of the single fire switch and second light information of a test lamp in the first test state.
The single fire switch is connected with a test lamp, and the working state of the single fire switch is determined according to the opening and closing conditions of the test lamp. The first test state can be understood as a step of testing the power driving state and the indicator light state after the single fire switch detects that the Bluetooth connection is successful. The first lamplight information can be understood as the lighting state of the indicator lamp of the single-fire switch, and can comprise a flashing state and normally-on and normally-off non-flashing states; the second light information may be understood as a lighting state of the test lamp connected to the single fire switch, and may include a state of being turned off after a preset time period is lighted, being turned off, and the lighting time period being not matched with the preset time period.
Specifically, when the single-fire switch receives bluetooth broadcast information and enters a test state, all indicator lamps in the single-fire switch enter a flashing state, the test lamps connected with the single-fire switch are enabled to be lighted, the test lamps are enabled to be extinguished after a preset time period is lighted, the lighting state of the indicator lamps in the process is determined to be first lamplight information, the lighting state of the test lamps is determined to be second lamplight information, the first lamplight information is recorded to be flashing or non-flashing, and the second lamplight information is recorded to be a preset time period, non-lighting time period or a time period which is not matched with the preset time period. Optionally, the preset duration may be 1s, where the duration may be set directly by factory, or may be adjusted again according to actual conditions at a later stage, which is not limited in the embodiment of the present invention.
S205, receiving key information.
Specifically, because the single fire switch comprises devices such as an indicator lamp, a switch key and a relay, wherein the switch key is used for receiving external trigger to regulate and control the relay, so that the relay controls the test lamp connected with the single fire switch to be on or off, and after the single fire switch completely enters a first test state, key information is received to trigger the single fire switch to enter a second test state. The key information may be triggered manually by an external person, or may be triggered by a preset time set in advance after the single fire switch enters the first test state, which is not limited in the embodiment of the present invention.
S206, controlling the single-fire switch to enter a second test state according to the key information, and acquiring third light information of an indicator lamp of the single-fire switch and fourth light information of a test lamp in the second test state.
The second test state can be understood as a step of testing the case state, the relay state and the indicator lamp state after the single fire switch receives the key information. The third light information may be understood as a lighting state of the indication lamp of the single fire switch in the second test state, and may include a lighting state in which lighting is stopped and synchronized with the test lamp, lighting is not stopped and lighting is stopped and unsynchronized with the test lamp; the fourth light information may be understood as a lighting state of the test lamp connected to the single fire switch in the second test state, and may include a preset number of lighting times, a state in which the number of lighting times is not matched with the preset number of times, and the like.
Specifically, after the single fire switch receives the key information, the single fire switch enters a second test state, all the indicator lamps in the single fire switch stop flashing, the indicator lamps connected with the single fire switch are turned off after the preset number of times of lighting, the lighting state of the indicator lamps in the process is determined to be first light information, the lighting state of the indicator lamps in the process is determined to be second light information, under the normal condition of the single fire switch test, the lighting times and the lighting time of the indicator lamps are the same as those of the test lamps, the third light information is recorded to be stopped flashing and synchronously lighting with the test lamps, the lighting is not stopped or stopped flashing and is not synchronously lighting with the test lamps, and the fourth light information is recorded to be the preset number of times of lighting or the lighting times is not matched with the preset number of times. Optionally, the preset number of times may be 3, which may be set directly by factory, or may be adjusted again according to actual conditions at a later stage, which is not limited in the embodiment of the present invention.
S207, determining at least one of the first lamplight information, the second lamplight information, the third lamplight information and the fourth lamplight information as an execution result.
S208, judging whether the first lamplight information is flashing, the second lamplight information is a preset lighting duration, the third lamplight information is stopping flashing and is synchronously lighted with the test lamp, and the fourth lamplight information is a preset lighting frequency.
If yes, go to step S209; if not, step S210 is performed.
S209, determining that the test result is successful.
Specifically, after the test result of the single fire switch is determined to be successful, the test process of the single fire switch can be considered to be normally ended, and the single fire switch is controlled to be powered off at the moment.
S210, determining that the test result is failure.
Specifically, if the single fire switch fails to be powered on, the single fire switch can be considered to have abnormal power supply driving and the test result is determined to be failed; if the single-fire switch is powered on and receives Bluetooth broadcasting information and enters a first test state, the first lamplight information is in an unlit state, and then the indicator lamp of the single-fire switch can be considered to be abnormal and the test result is determined to be failed; if the single-fire switch is powered on and receives Bluetooth broadcasting information and enters a first test state, the first lamplight information is in a flashing state, and the lighting time length of a test lamp in the second lamplight information is not matched with the preset time length, the power supply driving of the single-fire switch can be considered to be abnormal or the control of a relay is abnormal, and the test result is determined to be failed; if the first light information and the second light information of the single-fire switch in the first test state meet the normal standard, key information is received to enter the second test state, and if the lighting state of the indicator lamp is still the lighting state in the first light information after the key information is received and the test lamp is not lighted, the key of the single-fire switch can be considered to be abnormal, and the test result is determined to be failed; if the lighting times of the test lamp in the fourth lamplight information in the second test state of the single-fire switch are not matched with the preset times, the relay of the single-fire switch can be considered to be abnormal, and the test result is determined to be failed; if the fourth lamplight information of the single-fire switch is on for a preset number of times in the second test state and the indicator light in the third lamplight information is not stopped to flash or is not synchronously on with the test light after the flashing is stopped, the indicator light of the single-fire switch can be considered to be abnormal, and the test result is determined to be failed.
According to the technical scheme of the embodiment, the power supply driving function of the single fire switch is determined according to the power-on condition, the connection function of the Bluetooth device is determined according to the condition of scanning the test device for transmitting the Bluetooth broadcast information after the power-on is successful, and corresponding steps in the test flow are performed under the condition that the Bluetooth connection function is determined to be normal. According to the single fire switch and the lamplight information of the test lamp connected with the single fire switch under each test state, the power supply driving, the keys, the indicator lamp and the relay working states in the single fire switch are tested, a plurality of single fire switches to be detected can be supported to be tested simultaneously, meanwhile, bluetooth devices of different types can be supported to be tested simultaneously, the test flow of the device with the Bluetooth function in the product test 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 device for a bluetooth device according to a third embodiment of the present invention, where the testing device for a bluetooth device includes: a device scanning module 31, a flow execution module 32 and a test result determination module 33.
The device scanning module 31 is configured to scan, in a first preset time after power-up, a test device that sends bluetooth broadcast information, where the bluetooth device is a single fire switch; a flow execution module 32, configured to enter a test flow according to the received bluetooth broadcast information when the test device is scanned; the test result determining module 33 is configured to determine a test result of the bluetooth device according to an execution result of the test procedure.
According to the technical scheme, the problem that a plurality of Bluetooth equipment connection functions and performance tests cannot be performed simultaneously and a plurality of testers are needed to participate in the test process is solved, intelligent test is performed on the connection functions and the performances of the plurality of Bluetooth equipment through one test device, the test efficiency of the Bluetooth equipment product test is improved, and the cost of the Bluetooth equipment product test is reduced.
Optionally, the testing device of the bluetooth device further includes:
and the working module is used for controlling the indicator lamp of the single-fire switch to be always on and controlling the single-fire switch to enter a normal working state when the test equipment is not scanned.
Optionally, the flow execution module 32 includes:
the first test execution unit is used for controlling the single fire switch to enter a first test state and acquiring first lamplight information of the indicator lamp of the single fire switch and second lamplight information of the test lamp in the first test state.
And the key information receiving unit is used for receiving the key information.
The second test execution unit is used for controlling the single-fire switch to enter a second test state according to the key information and acquiring third lamplight information of the indication lamp of the single-fire switch and fourth lamplight information of the test lamp in the second test state.
And the execution result determining unit is used for determining at least one of the first lamplight information, the second lamplight information, the third lamplight information and the fourth lamplight information as an execution result.
Optionally, the test result determining module 33 is specifically configured to: if the first lamplight information is flashing, the second lamplight information is a preset lighting duration, the third lamplight information is stopping flashing and is synchronously lightened with the test lamp, and the fourth lamplight information is a preset lighting frequency, the test result is determined to be successful; otherwise, determining the test result as failure.
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 executing method.
Example IV
Fig. 4 is a schematic structural diagram of a test system of a bluetooth device according to a fourth embodiment of the present invention, where, as shown in fig. 4, the test system of a bluetooth device includes a test device 41 and at least one bluetooth device 42, and the bluetooth device 42 is communicatively connected to the test device 41, and two bluetooth devices 42 are exemplified in fig. 4.
And a test device 41 for transmitting bluetooth broadcast information.
The bluetooth device 42 is configured to scan a test device that transmits bluetooth broadcast information within a first preset time after power-up; when the test equipment is scanned, entering a test flow according to the received Bluetooth broadcast information; and determining the test result of the Bluetooth equipment according to the execution result of the test flow. Alternatively, the Bluetooth device 42 may be a single fire switch.
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
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a method of testing a bluetooth device, the method comprising:
scanning test equipment for transmitting Bluetooth broadcast information in a first preset time after power-on; the Bluetooth equipment is a single-fire switch;
when the test equipment is scanned, entering a test flow according to the received Bluetooth broadcast information;
and determining the test result of the Bluetooth equipment according to the execution result of the test flow.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the above-described method operations, and may also perform the related operations in the testing method of the bluetooth device provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the above-mentioned embodiments of the search apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. A method for testing a bluetooth device, comprising:
scanning test equipment for transmitting Bluetooth broadcast information in a first preset time after power-on; the Bluetooth equipment is a single-fire switch;
when the test equipment is scanned, entering a test flow according to the received Bluetooth broadcast information;
determining a test result of the Bluetooth equipment according to the execution result of the test flow;
wherein, the single fire switch is connected with a test lamp; the step of entering a test flow according to the received Bluetooth broadcast information comprises the following steps:
controlling the Shan Huo switch to enter a first test state, and acquiring first light information of an indicator lamp of the single-fire switch and second light information of the test lamp in the first test state;
receiving key information;
controlling the Shan Huo switch to enter a second test state according to the key information, and acquiring third light information of the indicator lamp of the single-fire switch and fourth light information of the test lamp in the second test state;
and determining at least one of the first lamplight information, the second lamplight information, the third lamplight information and the fourth lamplight information as the execution result.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the first lamplight information comprises shining or non-shining; the second lamplight information comprises a preset lighting time length, a non-lighting time length or a non-lighting time length which is not matched with the preset time length; the third lamplight information comprises stopping flashing and synchronously lighting with the test lamp, and not stopping flashing or stopping flashing and not synchronously lighting with the test lamp; the fourth lamplight information comprises the preset lighting times or the fact that the preset lighting times are not matched with the preset lighting times.
3. The method according to claim 2, wherein determining the test result of the bluetooth device according to the execution result of the test procedure comprises:
if the first lamplight information is flashing, the second lamplight information is a preset lighting duration, the third lamplight information is flashing stopped and is synchronously lightened with the test lamp, and the fourth lamplight information is a preset lighting frequency, the test result is determined to be successful;
otherwise, determining the test result as failure.
4. The method of claim 1, wherein after the scanning the test device transmitting the bluetooth broadcast information, further comprising:
and if the test equipment is not scanned, controlling the indicator lamp of the single-fire switch to be always on and controlling the Shan Huo switch to enter a normal working state.
5. A test apparatus for a bluetooth device, comprising:
the device scanning module is used for scanning test devices for transmitting Bluetooth broadcast information in a first preset time after power-on; the Bluetooth equipment is a single-fire switch;
the flow execution module is used for entering a test flow according to the received Bluetooth broadcast information when the test equipment is scanned;
the test result determining module is used for determining the test result of the Bluetooth device according to the execution result of the test flow;
wherein, single fire switch is connected with the test lamp, the flow execution module includes:
the first test execution unit is used for controlling the Shan Huo switch to enter a first test state and acquiring first light information of the indication lamp of the single-fire switch and second light information of the test lamp in the first test state;
the key information receiving unit is used for receiving key information;
the second test execution unit is used for controlling the Shan Huo switch to enter a second test state according to the key information and acquiring third light information of the indication lamp of the single-fire switch and fourth light information of the test lamp in the second test state;
and the execution result determining unit is used for determining at least one of the first lamplight information, the second lamplight information, the third lamplight information and the fourth lamplight information as the execution result.
6. The apparatus of claim 5, wherein the apparatus further comprises:
and the working module is used for controlling the indicator lamp of the single-fire switch to be always on and controlling the Shan Huo switch to enter a normal working state when the test equipment is not scanned.
7. A test system for a bluetooth device, comprising a test device for transmitting bluetooth broadcast information and at least one bluetooth device for performing the test method for a bluetooth device according to any of claims 1-4.
8. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the method of testing a bluetooth device according to any of claims 1-4.
CN202010664814.0A 2020-07-10 2020-07-10 Bluetooth device testing method, device, equipment and storage medium Active CN111885579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010664814.0A CN111885579B (en) 2020-07-10 2020-07-10 Bluetooth device testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010664814.0A CN111885579B (en) 2020-07-10 2020-07-10 Bluetooth device testing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111885579A CN111885579A (en) 2020-11-03
CN111885579B true CN111885579B (en) 2023-05-09

Family

ID=73150356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010664814.0A Active CN111885579B (en) 2020-07-10 2020-07-10 Bluetooth device testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111885579B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194397A (en) * 2021-04-26 2021-07-30 歌尔股份有限公司 Control method and device of Bluetooth equipment and computer readable storage medium
CN113179492B (en) * 2021-04-28 2022-06-17 江铃汽车股份有限公司 Vehicle offline detection system and method for detecting Bluetooth key function
CN114286363A (en) * 2021-11-16 2022-04-05 宁波小匠物联网科技有限公司 Off-line production testing method based on Bluetooth serial port
CN114390572B (en) * 2021-12-23 2024-01-23 上海庆科信息技术有限公司 Firmware detection method, device, storage medium, processor and equipment
CN115190520A (en) * 2022-07-19 2022-10-14 长虹美菱股份有限公司 Bluetooth refrigerator product testing method, refrigerator and testing terminal
CN115696269A (en) * 2022-10-26 2023-02-03 四川虹美智能科技有限公司 Method capable of carrying out factory test in batch

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN111885579B (en) Bluetooth device testing method, device, equipment and storage medium
CN108270883B (en) Can automatic dispensing device address code method, breaker and storage medium
CN110601871B (en) Virtual equipment testing method and device
CN111885580B (en) Bluetooth device test method, device and storage medium
CN101584152B (en) Network communication system
CN109654666B (en) Method, device and equipment for debugging unit
CN105306318A (en) Intelligent scene configuration method and device and server
JP2017208673A (en) Electrical apparatus, electrical apparatus control system, electrical apparatus control method, and program
CN115470165A (en) Address allocation method, battery management system and electronic equipment
CN109803470B (en) Street lamp control method, street lamp and street lamp control system
WO2024078191A1 (en) Load setting method, apparatus and system
WO2021233477A1 (en) Wireless networking and communication method, system and apparatus for air conditioner, and medium
CN110597677B (en) Test chip and test method of electronic equipment
CN110225634B (en) Bidirectional communication-based lamp equipment identification method and device
US20070297407A1 (en) Communication Apparatus and Communication System
CN102460531A (en) Network communication system
CN112351566B (en) Program recording method, device, lamp and storage medium
CN105207811B (en) Method and device for replacing non-AllJoyn equipment
TWI483582B (en) Network device test system and network device test method
CN112423291B (en) WIFI module detection and number burning method, controller, WIFI module and electrical equipment
CN109462423B (en) Method, device, equipment and medium for checking data transmission unit
US20220236723A1 (en) Production assisting device, production system, and recording medium
CN114363210A (en) Startup and shutdown testing method, device, system and medium for distributed router
CN113438040B (en) Single carrier radio frequency performance test method, device and computer readable storage medium
JP2007013423A (en) Exchange system, key telephone set, and exchange unit

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