CN111106883A - Test method and Bluetooth equipment, control method and test device, and test system - Google Patents

Test method and Bluetooth equipment, control method and test device, and test system Download PDF

Info

Publication number
CN111106883A
CN111106883A CN201911251265.8A CN201911251265A CN111106883A CN 111106883 A CN111106883 A CN 111106883A CN 201911251265 A CN201911251265 A CN 201911251265A CN 111106883 A CN111106883 A CN 111106883A
Authority
CN
China
Prior art keywords
test
bluetooth
testing
identification code
received
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911251265.8A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Topband Electronic Technology Co Ltd
Original Assignee
Huizhou Topband Electronic 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 Huizhou Topband Electronic Technology Co Ltd filed Critical Huizhou Topband Electronic Technology Co Ltd
Priority to CN201911251265.8A priority Critical patent/CN111106883A/en
Publication of CN111106883A publication Critical patent/CN111106883A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/15Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/29Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The invention is suitable for the Bluetooth field, and provides a test method of Bluetooth equipment, which comprises the following steps: sending connection information containing the address identification code to the testing device so that the testing device establishes communication connection according to the address identification code; judging whether the communication connection with the testing device is successful; when the communication connection with the testing device is successful, sending first testing data to the testing device so that the testing device sends second testing data corresponding to the first testing data; and determining a test result with the test device according to whether the second test data is received. In the embodiment of the invention, the Bluetooth equipment is accurately connected with the testing device and is tested, the whole testing process is automatically and intelligently carried out, manual work does not need to participate excessively, the process is simple, time and labor are saved, the testing precision is higher, and the testing efficiency is improved.

Description

Test method and Bluetooth equipment, control method and test device, and test system
Technical Field
The invention belongs to the technical field of Bluetooth, and particularly relates to a test method, Bluetooth equipment, a control method, a test device and a test system.
Background
With the continuous development of science and technology, the door lock is not limited to the traditional form of opening the door by using a mechanical key any more, and intelligent locks are selected to be used on more and more occasions, such as communities, hotels, apartments, office buildings and the like. The intelligent lock can avoid the trouble caused by carrying a key by people, and does not need to worry about the influence on normal life caused by forgetting the key or losing the key, and the unlocking process is more convenient and faster, so that the intelligence and convenience of life of people are improved.
The bluetooth lock is one of the intelligence lock, and along with the renewal of bluetooth, the effective range of bluetooth constantly increases, postpones constantly to reduce for the intelligent degree of bluetooth lock is higher and higher, and the security performance is also better and better, and it obtains more and more consumers' favor gradually.
Before the bluetooth lock is put into the market formally, the bluetooth function of the bluetooth lock needs to be tested, that is, the bluetooth connected with the bluetooth lock is used for testing whether the bluetooth lock can work normally. The bluetooth that needs the manual bluetooth lock of opening of tester is connected to current bluetooth, and corresponding bluetooth name is look for to rethread test equipment, selects the back reconnection, and whole testing process relates to information transfer and verification many times, and the artifical consumption is great, the process is comparatively loaded down with trivial details, consuming time longer to when a plurality of bluetooth locks are tested simultaneously, probably have the wrong condition such as even, leak even, lead to the precision not high, consume test time scheduling problem again.
Disclosure of Invention
The embodiment of the invention provides a testing method, and aims to solve the problems of high labor consumption, complex process, low precision and long consumed time of the conventional Bluetooth equipment in the process of adopting manual testing.
The embodiment of the invention is realized in such a way that a test method is applied to Bluetooth equipment, and the method comprises the following steps: sending connection information containing address identification codes to a testing device so that the testing device establishes communication connection according to the address identification codes; judging whether the communication connection with the test device is successful; when the communication connection with the testing device is successful, sending first testing data to the testing device so that the testing device sends second testing data corresponding to the first testing data; and determining a test result between the test device and the test device according to whether the second test data is received or not.
The embodiment of the invention also provides a control method applied to the testing device, and the method comprises the following steps: judging whether connection information containing an address identification code sent by the Bluetooth equipment is received or not; when the connection information containing the address identification code and sent by the Bluetooth equipment is received, establishing communication connection with the Bluetooth equipment according to the address identification code so that the Bluetooth equipment sends first test data; judging whether first test data sent by the Bluetooth equipment is received or not; when the first test data sent by the Bluetooth equipment is received, sending second test data corresponding to the first test data to the Bluetooth equipment; and when the first test data sent by the Bluetooth equipment is not received, the Bluetooth equipment is kept started until the first test data sent by the Bluetooth equipment is received.
An embodiment of the present invention further provides a bluetooth device, which includes: the first sending module is used for sending connection information containing an address identification code to a testing device so that the testing device establishes communication connection according to the address identification code; the first judgment module is used for judging whether the communication connection with the test device is successful or not; the second sending module is used for sending first test data to the testing device when the communication connection with the testing device is successful so that the testing device sends second test data corresponding to the first test data; and the second judging module is used for determining a test result between the test device and the second judging module according to whether the second test data is received or not.
An embodiment of the present invention further provides a testing apparatus, which includes: the third judging module is used for judging whether connection information containing the address identification code sent by the Bluetooth equipment is received or not; the first connection module is used for carrying out communication connection with the Bluetooth equipment according to the address identification code when receiving the connection information which is sent by the Bluetooth equipment and contains the address identification code so as to enable the Bluetooth equipment to send first test data; the fourth judging module is used for judging whether the first test data sent by the Bluetooth equipment is received or not; the third sending module is used for sending second test data corresponding to the first test data to the Bluetooth equipment when receiving the first test data sent by the Bluetooth equipment; and the first control module is used for keeping starting until the first test data sent by the Bluetooth equipment is received when the first test data sent by the Bluetooth equipment is not received.
An embodiment of the present invention further provides a test system, which includes: the bluetooth device described in the above embodiment; and, the testing device of the above embodiment, the bluetooth device is connected with the testing device in a serial port manner.
The embodiment of the invention has the advantages that the Bluetooth equipment sends the connection information to the testing device, the testing device can establish communication connection with the Bluetooth equipment according to the address identification code in the connection information, and finally obtains the testing result of the Bluetooth equipment through information interaction between the Bluetooth equipment and the testing device, the Bluetooth equipment is accurately connected with the testing device and tested, the whole testing process is automatically and intelligently carried out, manual work does not need to participate too much, the process is simple, time and labor are saved, the testing precision is higher, and the testing efficiency is improved.
Drawings
Fig. 1 to 6 are schematic flow charts of a testing method of a bluetooth device according to an embodiment of the present invention;
FIGS. 7 to 10 are schematic flow charts illustrating a control method of a test apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a bluetooth device according to an embodiment of the present invention;
FIG. 12 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention;
FIG. 13 is a schematic structural diagram of a test system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Bluetooth equipment is when the test, and its bluetooth is connected and needs the manual bluetooth of opening Bluetooth equipment of tester, and corresponding bluetooth name is look for to rethread test equipment, selects the back reconnection, and whole testing process relates to information transfer and verification many times, and the manual work consumption is great, the process is comparatively loaded down with trivial details, consuming time longer to when a plurality of Bluetooth equipment are tested simultaneously, probably have the misconnection, leak the condition such as even, lead to the precision not high, consume test time scheduling problem again.
According to the embodiment of the invention, the connection information is sent to the testing device through the Bluetooth equipment, the testing device can establish communication connection with the Bluetooth equipment according to the address identification code, and finally the testing result of the Bluetooth equipment is obtained through information interaction between the Bluetooth equipment and the testing device.
Example one
Referring to fig. 1, a testing method according to an embodiment of the present invention is applied to a bluetooth device, and the method includes the steps of:
s01: sending connection information containing the address identification code to the testing device so that the testing device establishes communication connection according to the address identification code;
s02: judging whether the communication connection with the testing device is successful;
s03: when the communication connection with the testing device is successful, sending first testing data to the testing device so that the testing device sends second testing data corresponding to the first testing data;
s04: and determining a test result with the test device according to whether the second test data is received.
In the embodiment of the invention, the Bluetooth equipment sends the connection information containing the address identification code to the testing device, the testing device establishes communication connection with the Bluetooth equipment according to the address identification code, the Bluetooth equipment sends first test data to the testing device under the condition that the connection between the Bluetooth equipment and the testing device is successful, when the testing device obtains the first test data, second test data corresponding to the first test data is sent to the Bluetooth equipment, and after the Bluetooth equipment receives the second test data, the Bluetooth equipment is tested successfully, namely the Bluetooth equipment can work normally. The interactive process between the Bluetooth equipment and the testing device does not need manual participation, the testing personnel only need to electrify the Bluetooth equipment and the testing device, the Bluetooth equipment and the testing device can be automatically tested, the whole testing process is simple, manual operation is omitted, and the testing time is saved.
The bluetooth device may be a bluetooth lock, a bluetooth earphone, a bluetooth sound box or a related device with a bluetooth function, a test program for providing a test function and an application program for normal use are provided in the bluetooth device, when the bluetooth device needs to be tested, the test program is run to perform the test, when the test is finished or the test is not needed, the test program is closed and the normal application program is opened, so that the bluetooth lock performs normal work, that is, data transceiving of the bluetooth device can be controlled and realized through the test program, the bluetooth device is taken as the bluetooth lock in the embodiment of the present invention for illustration, in other embodiments, the bluetooth device may be other, and no specific limitation is made herein;
the test device can be a special device for testing the Bluetooth device or a general device provided with test software for testing the Bluetooth device, the test device is connected with and tests the Bluetooth device through the test software, and when the test program of the Bluetooth device is sensed to run, the test software can be automatically triggered to correspondingly test the Bluetooth device, that is, data receiving and sending of the test device can be realized through the test software; in the embodiment of the invention, the testing device is a universal device provided with testing software.
Illustratively, the Bluetooth device sends connection information containing an address identification code to the testing device, the testing device establishes communication connection with the Bluetooth device according to the address identification code, after the communication connection is successfully established, the Bluetooth device sends data A to the testing device, after the testing device obtains the data A, data B corresponding to the data A is sent to the Bluetooth device, and after the Bluetooth device obtains the data B, the Bluetooth device can receive the data, namely the Bluetooth device can work normally.
The Address identification code may be a common computer MAC (Media Access Control Address, local area network Address), a character string, a number, an alphabet, or a code formed by freely combining the character string, the number, and the alphabet. In the embodiment of the present invention, the address identifier is taken as an example of the MAC, and in other embodiments, the address identifier may also be in other forms, which is not limited herein.
In the embodiment of the invention, the communication connection between the Bluetooth equipment and the testing device refers to Bluetooth connection, and the testing method is mainly used for testing the Bluetooth connection and transmission functions of the Bluetooth equipment, so that the purpose of testing the connection and transmission functions is achieved by the Bluetooth connection between the Bluetooth equipment and the testing device and transmitting set data. It is understood that in other embodiments, the communication connection may not only be a bluetooth connection, but specifically, different connection modes may be selected according to different situations. For example, in other embodiments, the communication connection may also be an infrared connection, a WIFI (Wireless Fidelity) connection, or the like.
Furthermore, in the embodiment of the present invention, the communication connection between the testing apparatus and the bluetooth device is that the testing apparatus can send data to the bluetooth device and the bluetooth device can receive the data sent by the testing apparatus, and the bluetooth device can send data to the testing apparatus and the testing apparatus can receive the data sent by the bluetooth device, that is, the bluetooth device and the testing apparatus can perform normal communication, data transmission, and the like.
In other embodiments, the communication link between the test apparatus and the bluetooth device may also contain other data to verify other functions.
For example, the bluetooth device is controlled to perform an unlocking operation, in this embodiment, the bluetooth device may include a first password data, the testing apparatus stores a second password data corresponding to the first password data, after the bluetooth device sends the first password data to the testing apparatus, the testing apparatus compares the obtained first password data with the second password data stored by the testing apparatus, and in case of successful comparison, that is, in case that the first password data is the same as the second password data or meets some conditions, the bluetooth device is controlled to perform the unlocking operation;
for another example, the bluetooth device is controlled to perform the voice reporting operation, in this embodiment, the bluetooth device may include a first voice data, the testing apparatus stores a second voice data corresponding to the first voice data, after the bluetooth device sends the first voice data to the testing apparatus, the testing apparatus compares the obtained first voice data with the second voice data stored by the testing apparatus, and in a case that the comparison is successful, that is, in a case that the first voice data is the same as the second voice data or meets some conditions, the bluetooth device is controlled to perform the voice reporting.
In one embodiment, a display screen may be disposed on the bluetooth device, and the display screen may be used to display the test result. For example, in the case that the bluetooth device receives the second test data, that is, the test is successful, at this time, a text of "test successful" can be displayed on the display screen to inform the user that the bluetooth device can work normally. When the Bluetooth equipment does not receive the second test data, the test is failed, and at the moment, characters of 'test failure' can be displayed on the display screen to inform a user that the Bluetooth equipment cannot work normally;
in yet another embodiment, a voice player (e.g., a speaker, etc.) may be disposed on the bluetooth device, and the voice player may be used to play the test result. For example, in the case that the bluetooth device receives the second test data, that is, the test is successful, at this time, the voice player plays "test successful" to inform the user that the bluetooth device can work normally. Under the condition that the Bluetooth equipment does not receive the second test data, namely the test fails, at the moment, the voice player plays 'test fails' to inform a user that the Bluetooth equipment cannot work normally;
in another embodiment, both the display screen and the voice player can be arranged on one bluetooth device, and the display screen and the voice player work together to inform the user of the test result of the bluetooth device more variously.
It is understood that, in other embodiments, an indicator light may be further disposed on the bluetooth device, or the bluetooth device may be capable of connecting with an external communication device (e.g., an electronic device with a communication function such as a mobile phone, a computer, a tablet, a smart watch, etc.), and then the bluetooth device directly sends the test result to the external communication device to inform the external communication device of the test result of the bluetooth device.
Example two
Referring to fig. 2, further, step S04 includes the steps of:
s041: when second test data are received, judging that the test is successful and sending a first prompt signal representing that the test is successful; and
s042: and when the second test data is not received, judging that the test fails and sending a second prompt signal for representing the test failure.
The first prompt signal and the second prompt signal can be voice signals, light signals or a combination of the voice signals and the light signals. Therefore, the user can receive the prompt message conveniently, and the user can be informed of the test result more intuitively and clearly.
In one embodiment, an indicator light may be provided on the bluetooth device. After the test is judged to be successful, the indicator lamp displays a first prompt signal (green light), and after the test is judged to be failed, the indicator lamp displays a second prompt signal (red light); or after the test is judged to be successful, the indicator lamp displays a first prompt signal (red light), and after the test is judged to be failed, the indicator lamp displays a second prompt signal (green light) so as to clearly prompt the current test result of the tester through the clearly distinguished indicator signals; in another embodiment, a voice player may be provided on the bluetooth device. After the test is judged to be successful, the voice player plays the first prompt signal in a voice playing mode (the test is successful), and after the test is judged to be failed, the voice player plays the second prompt signal in a voice playing mode (the test is failed).
The above description merely illustrates, by way of example, the different types of first cue signal and second cue signal. Of course, in other embodiments, the types of the first prompt signal and the second prompt signal do not include only the two types, and the specific types of the first prompt signal and the second prompt signal may be set according to different situations. And are not limited herein.
In another embodiment, the bluetooth device may be provided with a voice player and an indicator light, after the test is determined to be successful, the indicator light displays a green light, and the voice player plays the voice which is successfully tested in a voice playing manner; after the test failure is judged, the red light is displayed by the indicator light, and meanwhile, the voice player plays the voice failing to test in a voice playing mode. Wherein, in this embodiment, the indicator light shows a green light indicating that the test was successful; the indicator light shows a red light, which indicates that the test failed. Of course, in other embodiments, the green light may be indicated by the indicator light, and the successful test may be indicated by the indicator light. The design is carried out according to specific conditions, and is not limited herein.
EXAMPLE III
Referring to fig. 3, further, before step S01, the method includes the steps of:
s011: the testing device is connected with the testing device in a serial port mode;
step S01 includes the steps of:
s012: and sending the connection information containing the address identification code to the testing device in a serial port mode so that the testing device establishes communication connection according to the address identification code.
That is to say, bluetooth equipment and testing arrangement have all seted up serial interface (like RS485 interface, RS232 interface etc.), and rethread cable connection bluetooth equipment and the serial interface between the testing arrangement to carry out preliminary data interaction between messenger's bluetooth equipment and the testing arrangement, bluetooth equipment can be converted the connection information who contains the address identification code into serial data stream and send to testing arrangement, and testing arrangement can convert the connection information of the serial data stream who obtains into the address identification code.
Furthermore, the serial communication line is simple, and only one pair of transmission lines can realize bidirectional communication (for example, telephone lines can be directly used as transmission lines), thereby reducing the cost. Of course, in other embodiments, the bluetooth device may be connected to the test apparatus not only by using a serial port, but also by using other manners, for example, in other embodiments, the bluetooth device may be connected to the test apparatus by using NFS (Network file system), GDB (Global Data Base), and the like. On the premise of meeting the requirement of realizing communication connection between the Bluetooth equipment and the testing device, the connection mode between the Bluetooth equipment and the testing device is specifically set.
It can be understood that a plurality of serial ports can be opened and established on same testing arrangement, a plurality of serial ports and a plurality of bluetooth equipment's serial ports of connecting testing arrangement respectively through many cables, or testing arrangement sets up a serial ports, and the cable of being connected with this serial ports can be equipped with a plurality of interfaces, every interface all can with the serial ports connection of a plurality of bluetooth equipment. After the testing device acquires the address information of one Bluetooth device, a stable connection relation is established with the current Bluetooth device, the address information of other Bluetooth devices can be continuously received and connection testing can be carried out, connection and testing between a plurality of Bluetooth devices and the testing device are independently carried out without mutual interference, so that the purpose that one testing device is connected with and tests a plurality of Bluetooth devices at the same time is achieved, the testing precision and accuracy are guaranteed, the workload of testing personnel is reduced, and the testing efficiency is accelerated.
In the embodiment of the invention, the testing device is one, a serial port is arranged on the testing device, the cable with a plurality of interfaces is connected with the serial port, and the plurality of interfaces are respectively connected with the serial ports of the plurality of Bluetooth devices, so that the structural complexity of the testing device is reduced, and the accuracy of connection and testing is ensured.
Example four
Referring to fig. 4, further, step S01 further includes the steps of:
s013: judging whether response information sent by the testing device according to the address identification code is received or not; and
s014: and when response information sent by the testing device according to the address identification code is received, starting the Bluetooth broadcast according to the response information so that the testing device performs communication connection according to the Bluetooth broadcast.
Specifically, after the Bluetooth device and the testing device are powered on, the Bluetooth device runs a testing program to start a testing process, then sends the connection information of the address identification code to the testing device, when the testing device receives the connection information of the address identification code, the testing device returns a response message to the Bluetooth device, and after the Bluetooth device acquires the response message, the Bluetooth device starts Bluetooth broadcast to enable the testing device to carry out communication connection according to the Bluetooth broadcast; if the test device does not receive the response information sent by the address identification code or does not establish communication connection with the Bluetooth equipment for other reasons, the test device quits the test program to close the test process and runs other programs to continue the normal work of the Bluetooth equipment, thereby avoiding occupying other functions of the Bluetooth equipment and reducing energy consumption.
The response information can be response data, the response data indicates that the test device receives the connection information containing the address identification code, the Bluetooth device can start the Bluetooth broadcast under the condition that the Bluetooth device receives the response data, and the Bluetooth device cannot start the Bluetooth broadcast under the condition that the Bluetooth device does not receive the response data, namely the test device does not receive the connection information containing the address identification code, so that the accurate connection between the Bluetooth device and the test device can be ensured.
In one embodiment, when the test apparatus does not receive the connection information of the address identification code, the test apparatus does not return a response message to the bluetooth device, and at this time, the bluetooth device remains in an on state, and then continuously sends the connection information containing the address identification code to the test apparatus until the test apparatus can receive the connection information of the address identification code and return a response message to the bluetooth device; that is, when the test apparatus does not receive the connection information of the address identifier, the bluetooth device will automatically and continuously transmit the connection information containing the address identifier to the test apparatus, and the bluetooth device will not stop transmitting the connection information to the test apparatus until the test apparatus can receive the connection information and return a response message to the bluetooth device.
Specifically, when the test apparatus does not receive the connection information including the address identification code, the bluetooth device may intermittently transmit the connection information to the test apparatus, for example, the bluetooth device may transmit the connection information to the test apparatus at intervals of 1 second, 2 seconds, or 3 seconds or longer, that is, when the test apparatus does not receive the connection information, the bluetooth device transmits the connection information to the test apparatus at intervals of 1 second, or the bluetooth device transmits the connection information to the test apparatus at intervals of 2 seconds, or the bluetooth device transmits the connection information to the test apparatus at intervals of 3 seconds, so that the consumption of bluetooth can be reduced. Of course, in other embodiments, the bluetooth device may also continuously send the connection information to the test apparatus, and the information sending time between the bluetooth device and the test apparatus may be set according to a specific embodiment, which is not limited herein.
EXAMPLE five
Referring to fig. 5, further, step S02 further includes the steps of:
s021: judging whether the communication connection with the testing device is successful within a first preset time;
step S04 further includes the steps of:
s043: determining a test result between the test device and the test device according to whether second test data is received within second preset time;
step S013 further includes the steps of:
s0131: and judging whether response information sent by the testing device according to the address identification code is received within a third preset time.
The problem that the test process is influenced due to the fact that the Bluetooth equipment and/or the test device are always started in a waiting and continuous mode when the Bluetooth equipment and the test device cannot be connected in time is solved through time limitation of the first preset time, the second preset time and the third preset time.
In the embodiment of the present invention, the durations of the first preset time, the second preset time and the third preset time may be the same. For example, in one embodiment, the first preset time, the second preset time and the third preset time may all be 2 seconds; for another example, in another embodiment, the duration of the first preset time, the duration of the second preset time, and the duration of the third preset time may all be 3 seconds.
It is understood that, in other embodiments, the durations of the first preset time, the second preset time and the third preset time may be different. Two of the first preset time, the second preset time and the third preset time may be the same, and the other time is different, for example, the first preset time may be 1 second, and the second preset time and the third preset time may be 2 seconds; or, the three durations in the first preset time, the second preset time and the third preset time are different, for example, the first preset time may be 1 second, the second preset time may be 2 seconds, the third preset time may be 3 seconds, and the like.
EXAMPLE six
Referring to fig. 6, further, step S02 further includes the steps of:
s022: and when the communication connection with the testing device fails, judging that the test fails and sending a third prompt signal for representing the test failure.
Specifically, in the case that the test apparatus is not successfully connected to the bluetooth device, the bluetooth device may send a third prompt signal to notify the user that the test apparatus is not successfully connected to the bluetooth device. Therefore, the user can check or maintain the testing device and the Bluetooth equipment in time, so that the testing device and the Bluetooth equipment can recover to work normally as soon as possible.
In an embodiment, a further indicator light may be disposed on the bluetooth device, the indicator light of this embodiment is different from the indicator light mentioned in the second embodiment, and the indicator light of this embodiment is used for sending a third prompt signal (yellow light) when the test apparatus and the bluetooth device are unsuccessful in communication connection; in another embodiment, the bluetooth device may be provided with another voice player, the voice player of this embodiment is different from the voice player mentioned in the second embodiment, and the voice player of this embodiment is configured to send a third prompt signal when the communication connection between the testing apparatus and the bluetooth device is unsuccessful (the communication connection between the testing apparatus and the bluetooth device is failed); in another embodiment, the above mentioned indicator light and the voice player can be simultaneously installed on a bluetooth device, and when the communication connection between the testing device and the bluetooth device is unsuccessful, the indicator light turns on the yellow light and simultaneously plays the voice of "communication connection failure between the testing device and the bluetooth device" to inform the user that the communication connection between the testing device and the bluetooth device is unsuccessful.
Of course, the indicator light and the voice player mentioned in the above embodiments may also be the same as the indicator light and the voice player mentioned in the second embodiment, and only different prompt signals are sent to indicate different situations, so as to reduce the structural complexity of the bluetooth device.
EXAMPLE seven
Referring to fig. 7, a control method according to an embodiment of the present invention is applied to a test apparatus, and the method includes the steps of:
s10: judging whether connection information containing an address identification code sent by the Bluetooth equipment is received or not;
s11: when connection information containing the address identification code and sent by the Bluetooth equipment is received, establishing communication connection with the Bluetooth equipment according to the address identification code so that the Bluetooth equipment sends first test data;
s12: judging whether first test data sent by the Bluetooth equipment is received or not;
s13: when first test data sent by the Bluetooth equipment is received, second test data corresponding to the first test data are sent to the Bluetooth equipment; and
s14: and when the first test data sent by the Bluetooth equipment is not received, the starting is kept until the first test data sent by the Bluetooth equipment is received.
Specifically, under the condition that the test device receives connection information containing an address identification code sent by the Bluetooth device, the test device establishes communication connection with the Bluetooth device, under the condition that the Bluetooth device is in communication connection with the test device, the Bluetooth device sends first test data to the test device, and the test device sends second test data corresponding to the first test data to the Bluetooth device after receiving the first test data. And under the condition that the test device does not acquire the connection information containing the address identification code sent by the Bluetooth device, the test device can keep the starting state, so that the test device can be kept in the state of receiving external data until the test device receives the connection information. That is to say, under the condition that the test device has not received the connection information sent by the bluetooth device all the time, the test device will be in the working state all the time, thus preventing the test device from missing.
In the embodiment of the present invention, the first test data and the second test data are the same as the first test data and the second test data in the first embodiment, and are not described herein again.
Example eight
Referring to fig. 8, further, step S10 is preceded by the steps of:
s101: is connected with the Bluetooth device in a serial port mode.
Step S10 further includes:
s102: and judging whether the address identification code sent by the Bluetooth device is received in a serial port mode.
That is to say, bluetooth equipment and testing arrangement have all seted up serial interface (like RS485 interface, RS232 interface etc.), and rethread cable connection bluetooth equipment and the serial interface between the testing arrangement to carry out preliminary data interaction between messenger's bluetooth equipment and the testing arrangement, bluetooth equipment can be converted into the serial data stream with the connection information who contains the address identification code and send to testing arrangement, and testing arrangement can convert the serial data stream who obtains into the connection information who contains the address identification code.
The serial communication line is simple, and bidirectional communication can be realized only by one pair of transmission lines (for example, a telephone line can be directly used as the transmission line), so that the cost is reduced. Of course, in other embodiments, the bluetooth device may not only be connected to the testing apparatus in a serial port manner, but also be connected to the testing apparatus in other manners, for example, in other embodiments, the bluetooth device may be connected to the testing apparatus in a manner of NFS (Network File System), GDB (Global Data Base), and the like. On the premise of meeting the requirement of realizing communication connection between the Bluetooth equipment and the testing device, the connection mode between the Bluetooth equipment and the testing device is specifically set.
Example nine
Referring to fig. 9, further, step S11 further includes the steps of:
s111: sending response information to the Bluetooth equipment according to the address identification code so that the Bluetooth equipment starts Bluetooth broadcasting; and
s112: and searching the Bluetooth equipment corresponding to the address identification code according to the Bluetooth broadcast, and performing communication connection.
Specifically, after the Bluetooth device and the testing device are powered on, the Bluetooth device runs a testing program, the testing device runs testing software, the Bluetooth device sends connection information of an address identification code to the testing device, when the testing device receives the connection information of the address identification code, the testing device returns response information to the Bluetooth device through the testing software, and after the Bluetooth device obtains the response information, Bluetooth broadcasting is started so that the testing device can carry out communication connection according to the Bluetooth broadcasting; when the test device does not receive the connection information of the address identification code, the test device does not return response information to the Bluetooth equipment, and the test program of the Bluetooth equipment stops running and starts a program with normal functions so as to ensure the normal running of the Bluetooth equipment and reduce energy consumption.
The response information may be response data, the response data indicates that the test apparatus has received the connection information including the address identification code, the bluetooth device may start the bluetooth broadcast only when the bluetooth device has received the response data, and the bluetooth device may not start the bluetooth broadcast when the bluetooth device has not received the response data, that is, the test apparatus has not received the connection information including the address identification code. Therefore, the accurate connection between the Bluetooth equipment and the testing device can be ensured.
Wherein, the above-mentioned bluetooth broadcast that starts means that bluetooth equipment opens the bluetooth, can send bluetooth signal to around after the bluetooth is opened to make near testing arrangement can establish communication connection with bluetooth equipment.
In one embodiment, when the test apparatus does not receive the connection information of the address identifier, the test apparatus does not return a response message to the bluetooth device, and the bluetooth device remains turned on, and then continuously sends the connection information containing the address identifier to the test apparatus until the test apparatus can receive the connection information of the address identifier and return a response message to the bluetooth device.
That is, when the test apparatus does not receive the connection information of the address identifier, the bluetooth device will automatically and continuously transmit the connection information containing the address identifier to the test apparatus, and the bluetooth device will not stop transmitting the connection information to the test apparatus until the test apparatus can receive the connection information and return a response message to the bluetooth device.
Specifically, when the test apparatus does not receive the connection information including the address identification code, the bluetooth device may intermittently transmit the connection information to the test apparatus, for example, the bluetooth device may transmit the connection information to the test apparatus at intervals of 1 second, 2 seconds, or 3 seconds or longer, that is, when the test apparatus does not receive the connection information, the bluetooth device transmits the connection information to the test apparatus at intervals of 1 second, or the bluetooth device transmits the connection information to the test apparatus at intervals of 2 seconds, or the bluetooth device transmits the connection information to the test apparatus at intervals of 3 seconds, so that the consumption of bluetooth can be reduced. Of course, in other embodiments, the bluetooth device may also continuously send the connection information to the test apparatus, and the information sending time between the bluetooth device and the test apparatus may be set according to a specific embodiment, which is not limited herein.
Example ten
Referring to fig. 10, further, the step S10 is followed by the steps of:
s103: and when the connection information containing the address identification code and sent by the Bluetooth equipment is not received, the connection information is kept opened until the connection information containing the address identification code and sent by the Bluetooth equipment is received.
Specifically, under the condition that the Bluetooth device and the testing device are powered on, the Bluetooth device sends connection information containing the address identification code to the testing device, and the testing device receives the connection information and establishes communication connection with the Bluetooth device according to the connection information. Under the condition that the Bluetooth equipment sends the connection information to the testing device and the testing device does not receive the connection information, the testing device is always in a working state, so that the testing device can receive the connection information sent by the Bluetooth equipment and can ensure that the testing device and the Bluetooth equipment are in communication connection.
EXAMPLE eleven
Referring to fig. 11, in the bluetooth device 10 according to the embodiment of the present invention, the bluetooth device 10 includes:
a first sending module 11, configured to send connection information including the address identification code to the testing apparatus, so that the testing apparatus establishes a communication connection according to the address identification code;
the first judging module 12 is used for judging whether the communication connection with the testing device is successful;
a second sending module 13, configured to send the first test data to the testing apparatus when the communication connection with the testing apparatus is successful, so that the testing apparatus sends second test data corresponding to the first test data;
the second determining module 14 is configured to determine a test result with the testing apparatus according to whether the second test data is received.
For a brief description, reference may be made to the corresponding contents in the first testing method embodiment for a point where the eleventh embodiment of the bluetooth device 10 is not mentioned.
For a brief description, reference may be made to the corresponding contents in the first testing method embodiment for a point where the eleventh embodiment of the bluetooth device 10 is not mentioned.
Example twelve
Referring to fig. 12, in the testing apparatus 20 according to the embodiment of the present invention, the testing apparatus 20 includes:
a third judging module 21, configured to judge whether an address identifier sent by the bluetooth device is received;
the first connection module 22 is configured to, when receiving connection information that includes an address identifier and is sent by the bluetooth device, perform communication connection with the bluetooth device according to the address identifier, so that the bluetooth device sends first test data;
the fourth judging module 23 is configured to judge whether the first test data sent by the bluetooth device is received;
a third sending module 24, configured to send, when receiving the first test data sent by the bluetooth device, second test data corresponding to the first test data to the bluetooth device; and
the first control module 25 is configured to keep starting until the first test data sent by the bluetooth device is received when the first test data sent by the bluetooth device is not received.
For a brief description, reference may be made to the corresponding contents in the seventh embodiment of the control method for a point where the twelfth embodiment of the test apparatus 20 is not mentioned.
EXAMPLE thirteen
Referring to fig. 13, a test system 100 according to an embodiment of the present invention includes:
the bluetooth device 10 of the above embodiment; and, the testing device 20 of the above embodiment, the bluetooth apparatus 10 and the testing device 20 are connected in a serial port manner.
The Bluetooth device 10 and the testing device 20 are connected in a serial port mode, the Bluetooth device 10 sends connection information containing an address identification code to the testing device 20 in the serial port mode, the testing device 20 can establish communication connection with the Bluetooth device 10 according to the address identification code, and finally obtains a testing result of the Bluetooth device 10 through information interaction between the Bluetooth device 10 and the testing device 20, the Bluetooth device 10 and the testing device 20 are accurately connected and tested, the whole testing process is automatically and intelligently carried out, manual work does not need to participate too much, the process is simple, time and labor are saved, testing precision is high, and testing efficiency is improved.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

1. A test method applied to Bluetooth equipment is characterized by comprising the following steps:
sending connection information containing address identification codes to a testing device so that the testing device establishes communication connection according to the address identification codes;
judging whether the communication connection with the test device is successful;
when the communication connection with the testing device is successful, sending first testing data to the testing device so that the testing device sends second testing data corresponding to the first testing data; and
and determining a test result with the test device according to whether the second test data is received.
2. The method of claim 1, wherein determining the test result with the testing device based on whether the second test data is received comprises:
when the second test data is received, judging that the test is successful and sending a first prompt signal representing that the test is successful; and
and when the second test data is not received, judging that the test fails and sending a second prompt signal for representing the test failure.
3. The method of claim 1, wherein prior to sending the connection information including the address identification code to the testing device to cause the testing device to establish the communication connection based on the address identification code, comprising:
the testing device is connected with the testing device in a serial port mode;
the sending of connection information containing an address identification code to a testing device to enable the testing device to establish a communication connection according to the address identification code comprises:
and sending connection information containing the address identification code to a testing device in a serial port mode so that the testing device establishes communication connection according to the address identification code.
4. The method of claim 1, wherein said causing the testing device to establish a communication connection based on the address identification code comprises:
judging whether response information sent by the testing device according to the address identification code is received or not; and
and when the response information sent by the test device according to the address identification code is received, starting Bluetooth broadcast according to the response information so that the test device performs communication connection according to the Bluetooth broadcast.
5. The method of claim 4, wherein the determining whether the communication connection with the testing device is successful comprises:
judging whether the communication connection with the testing device is successful within a first preset time;
the determining the test result with the test device according to whether the second test data is received comprises:
determining a test result between the test device and the test device according to whether the second test data is received within a second preset time;
the judging whether the response information sent by the testing device according to the address identification code is received or not comprises the following steps:
and judging whether response information sent by the testing device according to the address identification code is received within a third preset time.
6. The method of claim 1, wherein after determining whether the communication connection with the testing device is successful, further comprising:
and when the communication connection with the testing device fails, judging that the testing fails and sending a third prompt signal for representing the testing failure.
7. A control method is applied to a test device, and is characterized by comprising the following steps:
judging whether connection information containing an address identification code sent by the Bluetooth equipment is received or not;
when the connection information containing the address identification code and sent by the Bluetooth equipment is received, establishing communication connection with the Bluetooth equipment according to the address identification code so that the Bluetooth equipment sends first test data;
judging whether first test data sent by the Bluetooth equipment is received or not;
when the first test data sent by the Bluetooth equipment is received, sending second test data corresponding to the first test data to the Bluetooth equipment; and
and when the first test data sent by the Bluetooth equipment is not received, the Bluetooth equipment is kept started until the first test data sent by the Bluetooth equipment is received.
8. The method of claim 7, wherein prior to said determining whether the address identifier transmitted by the bluetooth device is received, comprising:
the Bluetooth device is connected with the Bluetooth device in a serial port mode;
the judging whether the connection information containing the address identification code sent by the Bluetooth device is received or not comprises the following steps:
and judging whether the connection information containing the address identification code sent by the Bluetooth equipment is received in a serial port mode.
9. The method as claimed in claim 7, wherein when receiving the connection information containing the address identification code sent by the bluetooth device, performing communication connection with the bluetooth device according to the address identification code to enable the bluetooth device to send first test data, comprises:
sending response information to the Bluetooth equipment according to the address identification code so that the Bluetooth equipment starts Bluetooth broadcasting; and
and searching the Bluetooth equipment corresponding to the address identification code according to the Bluetooth broadcast, and performing communication connection.
10. The method of claim 7, wherein after determining whether the connection information containing the address identifier sent by the bluetooth device is received, the method further comprises:
and when the connection information containing the address identification code and sent by the Bluetooth equipment is not received, the connection information is kept opened until the connection information containing the address identification code and sent by the Bluetooth equipment is received.
11. A bluetooth device, comprising:
the first sending module is used for sending connection information containing an address identification code to a testing device so that the testing device establishes communication connection according to the address identification code;
the first judgment module is used for judging whether the communication connection with the test device is successful or not;
the second sending module is used for sending first test data to the testing device when the communication connection with the testing device is successful so that the testing device sends second test data corresponding to the first test data; and
and the second judging module is used for determining a test result between the test device and the second judging module according to whether the second test data is received or not.
12. A test apparatus, comprising:
the third judging module is used for judging whether connection information containing the address identification code sent by the Bluetooth equipment is received or not;
the first connection module is used for carrying out communication connection with the Bluetooth equipment according to the address identification code when receiving the connection information which is sent by the Bluetooth equipment and contains the address identification code so as to enable the Bluetooth equipment to send first test data;
the fourth judging module is used for judging whether the first test data sent by the Bluetooth equipment is received or not;
the third sending module is used for sending second test data corresponding to the first test data to the Bluetooth equipment when receiving the first test data sent by the Bluetooth equipment; and
and the first control module is used for keeping starting until the first test data sent by the Bluetooth equipment is received when the first test data sent by the Bluetooth equipment is not received.
13. A test system, comprising:
the bluetooth device of claim 11; and
the test apparatus of claim 12, wherein the bluetooth device is connected to the test apparatus via a serial port.
CN201911251265.8A 2019-12-09 2019-12-09 Test method and Bluetooth equipment, control method and test device, and test system Pending CN111106883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911251265.8A CN111106883A (en) 2019-12-09 2019-12-09 Test method and Bluetooth equipment, control method and test device, and test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911251265.8A CN111106883A (en) 2019-12-09 2019-12-09 Test method and Bluetooth equipment, control method and test device, and test system

Publications (1)

Publication Number Publication Date
CN111106883A true CN111106883A (en) 2020-05-05

Family

ID=70422395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911251265.8A Pending CN111106883A (en) 2019-12-09 2019-12-09 Test method and Bluetooth equipment, control method and test device, and test system

Country Status (1)

Country Link
CN (1) CN111106883A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194448A (en) * 2021-04-20 2021-07-30 歌尔股份有限公司 Bluetooth device testing method, testing terminal and readable storage medium
CN115086855A (en) * 2022-07-20 2022-09-20 荣耀终端有限公司 Test system, method and related device
CN116318270A (en) * 2023-02-16 2023-06-23 惠州市乐亿通科技有限公司 Bluetooth-written serial port tool

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833021A (en) * 2012-09-11 2012-12-19 Tcl通力电子(惠州)有限公司 Bluetooth pairing method and system in test
US8823494B1 (en) * 2010-11-19 2014-09-02 Logitech Europe S.A. Systems and methods for wireless device connection and pairing
CN107980233A (en) * 2017-03-06 2018-05-01 深圳大趋智能科技有限公司 Automatic test approach, the apparatus and system of Bluetooth POS terminal
CN109525971A (en) * 2018-10-29 2019-03-26 四川爱联科技有限公司 Bluetooth mould group production test system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8823494B1 (en) * 2010-11-19 2014-09-02 Logitech Europe S.A. Systems and methods for wireless device connection and pairing
CN102833021A (en) * 2012-09-11 2012-12-19 Tcl通力电子(惠州)有限公司 Bluetooth pairing method and system in test
CN107980233A (en) * 2017-03-06 2018-05-01 深圳大趋智能科技有限公司 Automatic test approach, the apparatus and system of Bluetooth POS terminal
CN109525971A (en) * 2018-10-29 2019-03-26 四川爱联科技有限公司 Bluetooth mould group production test system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194448A (en) * 2021-04-20 2021-07-30 歌尔股份有限公司 Bluetooth device testing method, testing terminal and readable storage medium
CN115086855A (en) * 2022-07-20 2022-09-20 荣耀终端有限公司 Test system, method and related device
CN115086855B (en) * 2022-07-20 2022-12-27 荣耀终端有限公司 Test system, method and related device
CN116318270A (en) * 2023-02-16 2023-06-23 惠州市乐亿通科技有限公司 Bluetooth-written serial port tool

Similar Documents

Publication Publication Date Title
CN111106883A (en) Test method and Bluetooth equipment, control method and test device, and test system
CN104954990B (en) A kind of tourist's Geographic mapping communications management system and positioning and communicating management method
US7254418B2 (en) System, method, apparatus, control method thereof and computer program for wireless communications
CN110167192A (en) Bluetooth connection management method and device, electronic equipment and non-transient storage media
CN102619561B (en) Scheduling control method of IP (Internet protocol) broadband network-based coal mine underground scheduling system adopting coal mine multifunctional terminal
CN107819487A (en) A kind of portable transponder message reads instrument and method
CN102480560A (en) PND (portable navigation device), mobile terminal, information synchronization system and information synchronization method
CN104247484B (en) Terminal installation, communication means, computer-readable recording medium and communication system
CN102497443A (en) Vehicle-mounted station based on Internet, system and communication method thereof
CN103838159A (en) Control method and device and electronic equipment
CN106851198A (en) Web camera operation method and web camera
TWI698096B (en) Connected system for outdoor activity groups
CN205959254U (en) Intelligence system of patrolling and examining
CN203840376U (en) Device for call positioning of community
CN111556229A (en) Intelligent law enforcement system and control method thereof
CN110853421A (en) Intelligent examination terminal and oral examination system
CN211959195U (en) Device supporting extended communication and portable communication equipment supporting extended communication
CN212181292U (en) Intelligent engineering business trip terminal of indoor outer integration
CN108901005A (en) A kind of method and system of automatic briefing
CN111525971B (en) Emergency communication broadcast receiving method, system, intelligent terminal and storage medium
CN107727094A (en) A kind of air navigation aid and terminal
CN208079068U (en) A kind of day T unit all
CN101478833B (en) Method for implementing conventional and cluster communication system network connecting based on GSM/CDMA
CN207976269U (en) A kind of optical fiber alignment device
US20190266881A1 (en) System and method for an alert and crisis/emergency management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200505