CN111010317A - Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol - Google Patents
Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol Download PDFInfo
- Publication number
- CN111010317A CN111010317A CN201911306871.5A CN201911306871A CN111010317A CN 111010317 A CN111010317 A CN 111010317A CN 201911306871 A CN201911306871 A CN 201911306871A CN 111010317 A CN111010317 A CN 111010317A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- tested
- serial port
- energy consumption
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses bluetooth production and measurement method based on serial port and bluetooth low energy consumption dual protocol, including: the upper computer sends a medium access control address to be tested to the equipment to be tested through the first serial port; the upper computer sends the medium access control address to be tested to the Bluetooth host through a second serial port; the Bluetooth host and the equipment to be tested establish Bluetooth low energy consumption communication through the media access control address to be tested; the upper computer sends test information to the Bluetooth host through the second serial port; and the Bluetooth host sends the test information to the equipment to be tested through the Bluetooth low energy consumption communication. Compared with the prior art, the method has the following advantages: the upper computer and the equipment to be tested can communicate through uart and ble protocols; the problem that the Bluetooth host dongle cannot be connected with the specified device to be tested is solved; the test items are represented by json files and are configurable.
Description
Technical Field
The application relates to the field of Bluetooth product testing, in particular to a Bluetooth production testing method based on a serial port and Bluetooth low-energy consumption dual protocol.
Background
Bluetooth is used as a low-power-consumption and low-cost wireless communication mode, the usage amount is large, and once research and development and production of related products are related, a reliable and efficient product testing system becomes important.
Conventional bluetooth product test systems are mostly based on uart (serial port) protocol, which is feasible for product testing in pcba (printedcutit Board assembly) stage and reserving test points. However, in many cases, the product is already provided with a housing, and many peripheral devices (such as a lamp, a buzzer or other sensors) of the product still need to be tested, and the current scheme is to perform limited testing on the limited peripheral devices based on the logic of the product service itself, and this test mode limited to the service logic cannot guarantee the reliability of the product, and also makes the test flow complicated. And at this time, because the product shell is already installed, the test system based on the uart protocol cannot be implemented.
Disclosure of Invention
The main purpose of the present application is to provide a bluetooth production and measurement method based on serial port and bluetooth low energy consumption dual protocol, including:
the upper computer sends a medium access control address to be tested to the equipment to be tested through the first serial port;
the upper computer sends the medium access control address to be tested to the Bluetooth host through a second serial port;
the Bluetooth host and the equipment to be tested establish Bluetooth low energy consumption communication through the media access control address to be tested;
the upper computer sends test information to the Bluetooth host through the second serial port;
and the Bluetooth host sends the test information to the equipment to be tested through the Bluetooth low energy consumption communication.
Optionally, the computer upper computer supports the json file analysis capability, and the user selects the required test item according to the defined json file format.
Optionally, the bluetooth host directly tests the RSSI value of bluetooth.
Optionally, the upper computer sends the test data to the device to be tested through the first serial port.
According to another aspect of the present application, a bluetooth production and measurement system based on serial port and bluetooth low energy consumption dual protocol is provided, which includes: the system comprises an upper computer, a Bluetooth host and equipment to be tested;
the upper computer sends a medium access control address to be tested to the equipment to be tested through a first serial port; the upper computer sends the medium access control address to be tested to the Bluetooth host through a second serial port; the Bluetooth host and the equipment to be tested establish Bluetooth low energy consumption communication through the media access control address to be tested; the upper computer sends test information to the Bluetooth host through the second serial port; and the Bluetooth host sends the test information to the equipment to be tested through the Bluetooth low energy consumption communication.
The application also discloses a computer device, which comprises a memory, a processor and a computer program stored in the memory and capable of being executed by the processor, wherein the processor realizes the method of any one of the above items when executing the computer program.
The application also discloses a computer-readable storage medium, a non-volatile readable storage medium, having stored therein a computer program which, when executed by a processor, implements the method of any of the above.
The present application also discloses a computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method of any of the above.
Compared with the prior art, the method has the following advantages:
the upper computer and the equipment to be tested can communicate through uart and ble protocols;
the problem that the Bluetooth host dongle cannot be connected with the specified device to be tested is solved;
the test items are represented by json files and are configurable.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a schematic flowchart of a Bluetooth production test method based on a serial port and Bluetooth low energy consumption dual protocol according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a computer device according to one embodiment of the present application; and
FIG. 3 is a schematic diagram of a computer-readable storage medium according to one embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1, an embodiment of the present application provides a bluetooth production and test method based on a serial port and bluetooth low energy consumption dual protocol, including:
s2: the upper computer sends a medium access control address to be tested to the equipment to be tested through the first serial port;
s4: the upper computer sends the medium access control address to be tested to the Bluetooth host through a second serial port;
s6: the Bluetooth host and the equipment to be tested establish Bluetooth low energy consumption communication through the media access control address to be tested;
s8: the upper computer sends test information to the Bluetooth host through the second serial port;
s10: and the Bluetooth host sends the test information to the equipment to be tested through the Bluetooth low energy consumption communication.
The computer host computer needs to support the communication capability of the double serial ports, the serial port 1 is responsible for communicating with the Bluetooth host computer dongle, and the serial port 2 is responsible for communicating with the equipment to be tested. The upper computer of the computer also needs to support the analysis capability of the json file, and a user can independently select required test items according to a defined json file format.
The Bluetooth host dongle only provides a wireless communication mode and is responsible for Bluetooth wireless communication between the computer upper computer and the equipment to be tested, so the Bluetooth host dongle needs to realize a data transparent transmission function, and serial port data issued by the computer upper computer can be transmitted to the equipment to be tested through a ble protocol, which is equivalent to a transfer station of data. In addition, the bluetooth host dongle can also directly test the basic bluetooth performance, such as the RSSI value of bluetooth.
The device to be tested needs to support two communication modes of a serial port and a ble protocol at the same time, and the corresponding test items selected in the json file are realized on the device to be tested. At the moment, the device to be tested only needs to support the notify function of the role of the Bluetooth slave machine, and does not need to support the scan function of the role of the Bluetooth host machine, so that the Bluetooth communication role can be simplified, and the resource occupation of the RAM and the Flash by the device to be tested is reduced.
Before the tested device is installed with the shell, the computer upper computer writes a Mac (Media Access Control) address to be tested into the tested device through the serial port 2, and simultaneously performs a test item (optional) based on a serial port communication mode;
the computer upper computer sends the Mac address written in the step to the Bluetooth host dongle through the serial port 1, and controls the Bluetooth host dongle to be connected with the equipment to be tested (at the moment, the equipment to be tested is in a Bluetooth broadcast state);
the method comprises the steps that ble communication is established between a Bluetooth host dongle and equipment to be tested, and as the Bluetooth host dongle is inserted into a computer and only provides a transparent transmission function, the ble communication can be established between an upper computer of the computer and the equipment to be tested indirectly;
and carrying out a test item based on a ble communication mode between the computer upper computer and the equipment to be tested.
In an embodiment of the application, the computer upper computer supports the json file analysis capability, and a user selects a required test item according to a defined json file format.
In an embodiment of the present application, the bluetooth host directly tests the RSSI value of bluetooth.
In an embodiment of the application, the upper computer sends the test data to the device to be tested through the first serial port.
According to another aspect of the present application, there is also provided a bluetooth production and measurement system based on serial port and bluetooth low energy consumption dual protocol, including: the system comprises an upper computer, a Bluetooth host and equipment to be tested;
the upper computer sends a medium access control address to be tested to the equipment to be tested through a first serial port; the upper computer sends the medium access control address to be tested to the Bluetooth host through a second serial port; the Bluetooth host and the equipment to be tested establish Bluetooth low energy consumption communication through the media access control address to be tested; the upper computer sends test information to the Bluetooth host through the second serial port; and the Bluetooth host sends the test information to the equipment to be tested through the Bluetooth low energy consumption communication.
Compared with the prior art, the method has the following advantages:
the upper computer and the equipment to be tested can communicate through uart and ble protocols;
the problem that the Bluetooth host dongle cannot be connected with the specified device to be tested is solved;
the test items are represented by json files and are configurable.
Referring to fig. 2, the present application further provides a computer device including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method of any one of the above methods when executing the computer program.
Referring to fig. 3, a computer-readable storage medium, a non-volatile readable storage medium, having stored therein a computer program which, when executed by a processor, implements any of the methods described above.
A computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method of any of the above.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (8)
1. A Bluetooth production and test method based on a serial port and Bluetooth low energy consumption dual protocol is characterized by comprising the following steps:
the upper computer sends a medium access control address to be tested to the equipment to be tested through the first serial port;
the upper computer sends the medium access control address to be tested to the Bluetooth host through a second serial port;
the Bluetooth host and the equipment to be tested establish Bluetooth low energy consumption communication through the media access control address to be tested;
the upper computer sends test information to the Bluetooth host through the second serial port;
and the Bluetooth host sends the test information to the equipment to be tested through the Bluetooth low energy consumption communication.
2. The serial port and bluetooth low energy consumption dual protocol-based bluetooth production and test method according to claim 1, wherein the computer upper computer supports json file parsing capability, and a user selects a required test item according to a defined json file format.
3. The serial port and bluetooth low energy consumption dual protocol-based bluetooth production and test method according to claim 2, wherein the bluetooth host directly tests the RSSI value of bluetooth.
4. The serial port and bluetooth low energy consumption dual protocol-based bluetooth production and test method according to claim 3, wherein the upper computer sends the test data to the device under test through the first serial port.
5. The utility model provides a bluetooth is produced and is surveyed system based on serial ports and bluetooth low energy consumption dual protocol which characterized in that includes: the system comprises an upper computer, a Bluetooth host and equipment to be tested;
the upper computer sends a medium access control address to be tested to the equipment to be tested through a first serial port; the upper computer sends the medium access control address to be tested to the Bluetooth host through a second serial port; the Bluetooth host and the equipment to be tested establish Bluetooth low energy consumption communication through the media access control address to be tested; the upper computer sends test information to the Bluetooth host through the second serial port; and the Bluetooth host sends the test information to the equipment to be tested through the Bluetooth low energy consumption communication.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the method of any one of claims 1-4 when executing the computer program.
7. A computer-readable storage medium, a non-transitory readable storage medium, having stored therein a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any one of claims 1-4.
8. A computer program product comprising computer readable code that, when executed by a computer device, causes the computer device to perform the method of any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911306871.5A CN111010317A (en) | 2019-12-18 | 2019-12-18 | Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911306871.5A CN111010317A (en) | 2019-12-18 | 2019-12-18 | Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111010317A true CN111010317A (en) | 2020-04-14 |
Family
ID=70116398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911306871.5A Pending CN111010317A (en) | 2019-12-18 | 2019-12-18 | Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111010317A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111726795A (en) * | 2020-06-30 | 2020-09-29 | 展讯通信(上海)有限公司 | Method and equipment for testing intelligent terminal |
CN112165705A (en) * | 2020-09-24 | 2021-01-01 | 深圳市拓普泰克电子有限公司 | Bluetooth circuit jointed board testing device and method, readable storage medium and system |
CN112564825A (en) * | 2020-12-08 | 2021-03-26 | 北京华大智宝电子系统有限公司 | Method, device, equipment and system for detecting functions of Bluetooth equipment |
CN113163382A (en) * | 2021-04-20 | 2021-07-23 | 深圳市绘王动漫科技有限公司 | Bluetooth device and Bluetooth USB receiver pairing method and Bluetooth handwriting device |
CN113518334A (en) * | 2021-06-10 | 2021-10-19 | 中电海康集团有限公司 | Method for realizing Bluetooth beacon and app uart dual services |
CN114499700A (en) * | 2022-01-25 | 2022-05-13 | 上海市共进通信技术有限公司 | Method, device, processor and storage medium for realizing Bluetooth module production test verification through serial port communication by AP intelligent terminal |
CN115086855A (en) * | 2022-07-20 | 2022-09-20 | 荣耀终端有限公司 | Test system, method and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105205976A (en) * | 2015-08-19 | 2015-12-30 | 合肥乾润钢塑有限公司 | Household intelligent monitoring system based on Internet of things |
CN204993865U (en) * | 2015-05-29 | 2016-01-20 | 东莞泰升音响科技有限公司 | Bluetooth headset and general testing arrangement of stereo set function |
CN105808212A (en) * | 2014-12-28 | 2016-07-27 | 金蝶软件(中国)有限公司 | Extension method and system of product support tool |
EP3288292A1 (en) * | 2013-03-15 | 2018-02-28 | Starkey Laboratories, Inc. | Hearing aid using wireless test modes as diagnostic tool |
CN110022243A (en) * | 2019-02-21 | 2019-07-16 | 上海华虹集成电路有限责任公司 | A kind of system and method for low-power consumption bluetooth chip performance parameter adjust automatically |
CN110493079A (en) * | 2019-08-14 | 2019-11-22 | 长园深瑞继保自动化有限公司 | The production automation test method of industrial ethernet switch |
-
2019
- 2019-12-18 CN CN201911306871.5A patent/CN111010317A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3288292A1 (en) * | 2013-03-15 | 2018-02-28 | Starkey Laboratories, Inc. | Hearing aid using wireless test modes as diagnostic tool |
CN105808212A (en) * | 2014-12-28 | 2016-07-27 | 金蝶软件(中国)有限公司 | Extension method and system of product support tool |
CN204993865U (en) * | 2015-05-29 | 2016-01-20 | 东莞泰升音响科技有限公司 | Bluetooth headset and general testing arrangement of stereo set function |
CN105205976A (en) * | 2015-08-19 | 2015-12-30 | 合肥乾润钢塑有限公司 | Household intelligent monitoring system based on Internet of things |
CN110022243A (en) * | 2019-02-21 | 2019-07-16 | 上海华虹集成电路有限责任公司 | A kind of system and method for low-power consumption bluetooth chip performance parameter adjust automatically |
CN110493079A (en) * | 2019-08-14 | 2019-11-22 | 长园深瑞继保自动化有限公司 | The production automation test method of industrial ethernet switch |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111726795A (en) * | 2020-06-30 | 2020-09-29 | 展讯通信(上海)有限公司 | Method and equipment for testing intelligent terminal |
CN112165705A (en) * | 2020-09-24 | 2021-01-01 | 深圳市拓普泰克电子有限公司 | Bluetooth circuit jointed board testing device and method, readable storage medium and system |
CN112564825A (en) * | 2020-12-08 | 2021-03-26 | 北京华大智宝电子系统有限公司 | Method, device, equipment and system for detecting functions of Bluetooth equipment |
CN113163382A (en) * | 2021-04-20 | 2021-07-23 | 深圳市绘王动漫科技有限公司 | Bluetooth device and Bluetooth USB receiver pairing method and Bluetooth handwriting device |
CN113518334A (en) * | 2021-06-10 | 2021-10-19 | 中电海康集团有限公司 | Method for realizing Bluetooth beacon and app uart dual services |
CN113518334B (en) * | 2021-06-10 | 2023-06-13 | 中电海康集团有限公司 | Method for realizing Bluetooth beacon and app uart dual services |
CN114499700A (en) * | 2022-01-25 | 2022-05-13 | 上海市共进通信技术有限公司 | Method, device, processor and storage medium for realizing Bluetooth module production test verification through serial port communication by AP intelligent terminal |
CN114499700B (en) * | 2022-01-25 | 2023-06-02 | 上海市共进通信技术有限公司 | Method, device, processor and storage medium for realizing Bluetooth module production test and verification by AP intelligent terminal through serial port communication |
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 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111010317A (en) | Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol | |
CN108540965B (en) | Internet of things communication method and device based on LoRa technology and storage medium | |
CN108632858B (en) | Method for providing sharing service and electronic device supporting the same | |
US20180234294A1 (en) | System and method for configuring iot devices | |
CN101883446A (en) | Wireless internet equipment, secure digital (SD) control chip and data communication method | |
CN105376107A (en) | Terminal test method and proxy server | |
CN105472534A (en) | Switching method and switching system of NFC working mode and terminal | |
CN113672441B (en) | Method and device for testing intelligent equipment | |
CN101996148A (en) | Instrument test board configuration method for a plurality of communication protocols | |
CN103609034B (en) | NFC device communication means, device and NFC device | |
CN109582458A (en) | Resource information loading method, device, storage medium and processor | |
EP2592875A1 (en) | Method and apparatus to select an access point | |
CN105278339B (en) | Method and device for generating and controlling sub-device description information of composite household appliance | |
CN107404752A (en) | Frequency choosing method and internet-of-things terminal based on signal intensity | |
CN106651650A (en) | Joint debugging measurement and control device and electric power Internet of things joint debugging measurement and control system applying same | |
US9727509B2 (en) | GPIB bus to ZigBee interconnection | |
KR101599905B1 (en) | Wireless communication module and method for providing automatic configuration of network | |
CN109933562A (en) | Server architecture, resource assemblage method and the method for obtaining server sensing data | |
CN111541589B (en) | Method, device and equipment for testing expansion module interface of intelligent terminal | |
CN210377919U (en) | LoRa training experiment box | |
CN107086957A (en) | Ad Hoc Routing Protocol verification methods based on BeagleBone Black | |
CN114640897A (en) | Extensible modular artificial intelligence Internet of things equipment and Internet of things system | |
CA2972719A1 (en) | Development platform for multi-wireless transmission capabilities | |
CN103873514A (en) | Application installation file obtaining method, system and user equipment | |
CN108076094B (en) | Dictionary protocol terminal equipment |
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: 20200414 |