CN113760235B - BLE development and debugging system and method - Google Patents

BLE development and debugging system and method Download PDF

Info

Publication number
CN113760235B
CN113760235B CN202111060769.9A CN202111060769A CN113760235B CN 113760235 B CN113760235 B CN 113760235B CN 202111060769 A CN202111060769 A CN 202111060769A CN 113760235 B CN113760235 B CN 113760235B
Authority
CN
China
Prior art keywords
ble
upper computer
module
script
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111060769.9A
Other languages
Chinese (zh)
Other versions
CN113760235A (en
Inventor
奉强
刘金鑫
首召兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Time Yaa Electronic Technology Co ltd
Original Assignee
Shenzhen Time Yaa 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 Shenzhen Time Yaa Electronic Technology Co ltd filed Critical Shenzhen Time Yaa Electronic Technology Co ltd
Priority to CN202111060769.9A priority Critical patent/CN113760235B/en
Publication of CN113760235A publication Critical patent/CN113760235A/en
Application granted granted Critical
Publication of CN113760235B publication Critical patent/CN113760235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention relates to a BLE development and debugging system and method. In the system, a BLE equipment module is communicated with an APP and an upper computer communication module; the upper computer communication module is communicated with the upper computer script analysis module; the upper computer communication module sends the received data of the BLE equipment module to the upper computer script analysis module, and receives the data sent by the upper computer script analysis module; the upper computer script analysis module receives a user-defined script of a user and sends the received data of the BLE equipment module to the user-defined script; the user calls an interface provided by the script analysis module of the upper computer through the custom script, and controls and transmits data to the BLE equipment module; the upper computer log recording module records the data interaction log of the whole system and stores the data interaction log in a position appointed by a user. The invention can improve the convenience and synchronism of developing and debugging APP and BLE equipment.

Description

BLE development and debugging system and method
Technical Field
The invention relates to the field of electronics, in particular to a BLE development and debugging system and method.
Background
At present, intelligent hardware is more and more, the ratio of Bluetooth BLE is very large, in BLE APP development, data interaction between the APP and BLE equipment is required, at present, generally, the BLE equipment uses debugging software, development is completed firstly, and then APP developers use the developed BLE equipment to develop the APP; such limitations make APP and BLE devices unable to proceed simultaneously, affecting development efficiency; in the process of directly using real equipment for debugging, the data is transmitted in the APP and BLE equipment, so that the record is inconvenient, and when a problem occurs, the log is difficult to analyze.
Therefore, there is a need for a BLE development and debugging system or method to improve the convenience and synchronization of APP and BLE device development and debugging.
Disclosure of Invention
The invention aims to provide a BLE development and debugging system and method, which can improve the convenience and synchronism of data transmission of APP and BLE equipment.
In order to achieve the above object, the present invention provides the following solutions:
a BLE development and debugging system, comprising: the system comprises a BLE equipment module, an upper computer communication module, an upper computer log recording module and an upper computer script analyzing module;
the BLE equipment module is communicated with the APP and the upper computer communication module; the BLE equipment module is used for sending the received data of the APP to the upper computer communication module; the system is also used for receiving data sent by the upper computer communication module;
the upper computer communication module is communicated with the upper computer script analysis module; the upper computer communication module is used for sending the received data of the BLE equipment module to the upper computer script analysis module; the system is also used for receiving data sent by the script analysis module of the upper computer;
the upper computer script analysis module is used for receiving a user-defined script of a user and sending the received data of the BLE equipment module to the user-defined script; the user calls an interface provided by the script analysis module of the upper computer through the custom script, and controls and transmits data to the BLE equipment module;
the upper computer log recording module is respectively communicated with the BLE equipment module, the upper computer communication module and the upper computer script analysis module; the upper computer log recording module is used for recording the data interaction log of the whole system and storing the data interaction log to a position appointed by a user.
Optionally, the BLE device module comprises a plurality of BLE devices;
each BLE device USB-HID protocol is connected with the computer and completes data interaction with the computer.
Optionally, the data is received or transmitted via HID protocol.
Optionally, the custom script includes: JS script or python script.
Optionally, the interface provided by the script parsing module of the upper computer includes: BLE broadcast packet data set, BLE name set, BLE on, BLE off, BLE Service set, BLE Characteristic set, BLE data reception, and BLE data transmission.
A BLE development and debugging method is applied to a BLE development and debugging system, and comprises the following steps:
when a user debugs BLE equipment, the BLE equipment is connected with a computer and upper computer software;
the user determines a custom script; determining an interface provided by a script analysis module of the upper computer through a custom script;
the upper computer script analysis module checks the custom script;
the data is sent to the user-defined script of the user through the BLE equipment module, the upper computer communication module and the upper computer script analysis module, and the user-defined script of the user processes the data to complete data simulation.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
according to the BLE development and debugging system and method provided by the invention, the script is analyzed by the script analysis module of the upper computer, so that BLE data interaction is completed; recording a data interaction log of the whole system through the upper computer log recording module, and storing the data interaction log to a position appointed by a user; the user calls an interface provided by the script analysis module of the upper computer through the custom script, controls and transmits data to the BLE equipment module, and finishes BLE data interaction logic custom development; the invention can improve the convenience and the synchronism of the data transmission of the APP and the BLE equipment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a BLE development and debugging system according to the present invention;
fig. 2 is a schematic flow chart of a BLE development and debugging method provided by the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention aims to provide a BLE development and debugging system and method, which can improve the convenience and synchronism of data transmission of APP and BLE equipment.
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Fig. 1 is a schematic structural diagram of a BLE development and debugging system provided by the present invention, as shown in fig. 1, where the BLE development and debugging system provided by the present invention includes: the system comprises a BLE equipment module 101, an upper computer communication module 102, an upper computer log recording module 104 and an upper computer script analyzing module 103;
the BLE equipment module 101 is communicated with the APP and the upper computer communication module 102; the BLE device module 101 is configured to send the received data of the APP to the upper computer communication module 102; the device is also used for receiving data sent by the upper computer communication module 102;
the upper computer communication module 102 is communicated with the upper computer script analysis module 103; the upper computer communication module 102 is configured to send the received data of the BLE device module 101 to the upper computer script parsing module 103; the device is also used for receiving data sent by the script analysis module 103 of the upper computer;
the upper computer script parsing module 103 is configured to receive a user-defined script of a user, and send received data of the BLE device module 101 to the user-defined script; the user invokes an interface provided by the script analysis module 103 of the upper computer through a custom script to control and send data to the BLE equipment module 101;
the upper computer log recording module 104 is respectively communicated with the BLE equipment module 101, the upper computer communication module 102 and the upper computer script analysis module 103; the upper computer log recording module 104 is used for recording the data interaction log of the whole system and storing the data interaction log to a position appointed by a user.
The BLE device module 101 comprises a plurality of BLE devices;
each BLE device USB-HID protocol is connected with the computer and completes data interaction with the computer.
After receiving the data of the APP, the BLE device sends the data to the upper computer communication module 102 through the HID, and at the same time, receives the data from the HID and sends the data to the APP through the BLE.
The upper computer communication module 102 is responsible for communication with the BLE device, receives data from the BLE device through the HID protocol, and forwards the data to the upper computer script parsing module 103, and at the same time, receives data from the upper computer script parsing module 103 and sends the data out through the HID.
The custom script comprises: JS script or python script.
The interface provided by the script parsing module 103 of the upper computer includes: BLE broadcast packet data set, BLE name set, BLE on, BLE off, BLE Service set, BLE Characteristic set, BLE data reception, and BLE data transmission.
Fig. 2 is a schematic flow chart of a BLE development and debugging method provided by the present invention, and the BLE development and debugging method shown in fig. 2 is applied to a BLE development and debugging system, and includes:
s201, when a user debugs BLE equipment, the BLE equipment is connected with a computer and upper computer software;
s202, a user determines a custom script (script writing is completed by JS or python); the interface provided by the script analysis module 103 of the upper computer is determined through the custom script;
s203, the upper computer script analysis module 103 checks the user-defined script; and when the script has a problem, reporting errors.
S204, the data are sent to the user-defined script of the user through the BLE equipment module 101, the upper computer communication module 102 and the upper computer script analysis module 103, and the user-defined script of the user processes the data to complete data simulation.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to assist in understanding the methods of the present invention and the core ideas thereof; also, it is within the scope of the present invention to be modified by those of ordinary skill in the art in light of the present teachings. In view of the foregoing, this description should not be construed as limiting the invention.

Claims (5)

1. A BLE development and debugging system, comprising: the system comprises a BLE equipment module, an upper computer communication module, an upper computer log recording module and an upper computer script analyzing module;
the BLE equipment module is communicated with the APP and the upper computer communication module; the BLE equipment module is used for sending the received data of the APP to the upper computer communication module; the system is also used for receiving data sent by the upper computer communication module;
the upper computer communication module is communicated with the upper computer script analysis module; the upper computer communication module is used for sending the received data of the BLE equipment module to the upper computer script analysis module; the system is also used for receiving data sent by the script analysis module of the upper computer;
the upper computer script analysis module is used for receiving a user-defined script of a user and sending the received data of the BLE equipment module to the user-defined script; the user calls an interface provided by the script analysis module of the upper computer through the custom script, and controls and transmits data to the BLE equipment module;
the upper computer log recording module is respectively communicated with the BLE equipment module, the upper computer communication module and the upper computer script analysis module; the upper computer log recording module is used for recording the data interaction log of the whole system and storing the data interaction log to a position appointed by a user;
the interface that the script analysis module of said upper computer provided includes: BLE broadcast packet data set, BLE name set, BLE on, BLE off, BLE Service set, BLE
Characacteristic settings, BLE data reception, BLE data transmission.
2. The BLE development and debugging system of claim 1, wherein the BLE device module comprises a plurality of BLE devices;
each BLE device USB-HID protocol is connected with the computer and completes data interaction with the computer.
3. A BLE development and debug system according to claim 2, wherein the reception or transmission of data is performed by HID protocol.
4. The BLE development and debugging system of claim 1, wherein the custom script comprises: JS script or python script.
5. A BLE development and debugging method applied to a BLE development and debugging system according to any one of claims 1 to 4, comprising:
when a user debugs BLE equipment, the BLE equipment is connected with a computer and upper computer software;
the user determines a custom script; determining an interface provided by a script analysis module of the upper computer through a custom script;
the upper computer script analysis module checks the custom script;
the data is sent to the user-defined script of the user through the BLE equipment module, the upper computer communication module and the upper computer script analysis module, and the user-defined script of the user processes the data to complete data simulation.
CN202111060769.9A 2021-09-10 2021-09-10 BLE development and debugging system and method Active CN113760235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111060769.9A CN113760235B (en) 2021-09-10 2021-09-10 BLE development and debugging system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111060769.9A CN113760235B (en) 2021-09-10 2021-09-10 BLE development and debugging system and method

Publications (2)

Publication Number Publication Date
CN113760235A CN113760235A (en) 2021-12-07
CN113760235B true CN113760235B (en) 2023-12-19

Family

ID=78794692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111060769.9A Active CN113760235B (en) 2021-09-10 2021-09-10 BLE development and debugging system and method

Country Status (1)

Country Link
CN (1) CN113760235B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050165597A1 (en) * 2004-01-27 2005-07-28 Arm Limited Apparatus and method for performing hardware and software co-verification testing
CN102981956A (en) * 2012-11-30 2013-03-20 华为技术有限公司 Method, and device for establishing overlay symbol table, method and device and program modulation system for establishing and searching overlay symbol table, and program modulation system
CN109564539A (en) * 2016-08-03 2019-04-02 英特尔公司 Remote debugging and management
CN110750437A (en) * 2018-07-23 2020-02-04 阿里巴巴集团控股有限公司 Equipment debugging method, device, equipment and system
CN111723002A (en) * 2020-05-18 2020-09-29 五八有限公司 Code debugging method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050165597A1 (en) * 2004-01-27 2005-07-28 Arm Limited Apparatus and method for performing hardware and software co-verification testing
CN102981956A (en) * 2012-11-30 2013-03-20 华为技术有限公司 Method, and device for establishing overlay symbol table, method and device and program modulation system for establishing and searching overlay symbol table, and program modulation system
CN109564539A (en) * 2016-08-03 2019-04-02 英特尔公司 Remote debugging and management
CN110750437A (en) * 2018-07-23 2020-02-04 阿里巴巴集团控股有限公司 Equipment debugging method, device, equipment and system
CN111723002A (en) * 2020-05-18 2020-09-29 五八有限公司 Code debugging method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113760235A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
CN103023708B (en) The method of testing of communication protocol interface and system
CA2931150C (en) Automatic inspection and monitoring method based on time domain slotting control
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
WO2007060094A3 (en) Software application interfacing testing
CN105354118B (en) Automatic test approach, the apparatus and system of intelligent terminal
CN107239398B (en) Postman-based automatic interface test case generation system and method
CN111124919A (en) User interface testing method, device, equipment and storage medium
CN106354629A (en) Construction method of iOS system mobile application automatic test system based on multiple stages of servers
CN110941563A (en) Automatic script testing method and device
WO2007061241A1 (en) Error test method for mobile communication terminals
CN111782530B (en) Remote debugging method, device, system, electronic equipment and storage medium
CN111917603A (en) Client test method and device, computer equipment and storage medium
CN112631937A (en) Automatic CAN operation testing method and device for T-Box
KR100794130B1 (en) Automatic Function Testing Equipment for Application Software and Additional Service of Mobile Communication Terminal
CN107844486B (en) Method and system for analyzing webpage problems for client
CN106294119B (en) Test scheduling system and method and terminal equipment
CN105677689B (en) Log recording method and device
CN113760235B (en) BLE development and debugging system and method
CN107172013B (en) Data transmission method and system
CN116627850B (en) Function debugging method and device, storage medium and electronic equipment
CN101296462A (en) Method and system for batch execution of mobile terminal software automatic test
CN116545891A (en) Automatic distribution network testing method based on intelligent equipment
CN110750453A (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN113626321B (en) Bridging test method, device, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant