CN109460355B - Universal MCU wireless debugger - Google Patents
Universal MCU wireless debugger Download PDFInfo
- Publication number
- CN109460355B CN109460355B CN201811211971.5A CN201811211971A CN109460355B CN 109460355 B CN109460355 B CN 109460355B CN 201811211971 A CN201811211971 A CN 201811211971A CN 109460355 B CN109460355 B CN 109460355B
- Authority
- CN
- China
- Prior art keywords
- program
- function
- mcu controller
- debugging
- list
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3648—Software debugging using additional hardware
- G06F11/3656—Software debugging using additional hardware using a specific debug interface
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0426—Programming the control sequence
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Debugging And Monitoring (AREA)
Abstract
A universal MCU wireless debugger belongs to MCU technology; the system comprises an MCU controller, a wireless communication module based on UART communication protocol and a mobile terminal, wherein an API user interface for supporting a debugging function is shifted in the MCU controller program, the API user interface comprises an editable variable list, a zone bit list, an observable variable list, an executable function list, a UART communication program interface and a debugging protocol analyzing and executing program, and the mobile terminal comprises an editing variable function, an editing zone bit function, a waveform display function, a numerical display function, a remote function running function, a Bluetooth communication and WIFI communication program and a debugging protocol analyzing and processing program; the debugger has the advantages of strong universality, simplified debugging process, improved software development efficiency of the MCU controller, wide application, easy transplanting, convenient connection and use, simple operation and portability.
Description
Technical Field
The invention belongs to the technical field of MCU (micro control Unit), and mainly relates to a universal MCU wireless debugger.
Background
With the continuous development of MCUs, MCUs have been applied to various fields. In the development process of the MCU control system, a quite complicated debugging stage can be carried out. At this stage, the data needs to be repeatedly changed, different schemes are tried, and some data needs to be observed sometimes. At present, the main debugging tools include J-LINK, ST-LINK, ULINK and the like, but the existing debugging tools are all connected through wires and repeatedly download programs to realize partial debugging functions, so that the debugging tools have a plurality of limitations in application in certain development occasions, such as a control system in continuous motion and the like. In these occasions, the display, change and storage of the internal variables of the MCU program, the calling of a certain section of program, the selection of program schemes and the compiling of the program are very frequent, the program development efficiency is reduced, and meanwhile, the wired operation is very inconvenient. At present, there are some special debugging upper computers in the market, but the upper computers have pertinence and are developed specifically for a certain product, and the service performance is single, so that the development of a universal MCU line without a debugger is necessary.
Disclosure of Invention
The invention aims to solve the problems of the prior art, and provides a universal MCU wireless debugger, so as to solve the problems of inconvenient wired debugging of an MCU controller, low efficiency of repeatedly modifying a compiling program, strong pertinence of a common upper computer and single use performance.
In order to solve the problems, the invention adopts the following technical scheme: the universal MCU wireless debugger comprises an MCU controller, a wireless communication module based on a UART communication protocol and a mobile terminal, wherein the MCU controller is connected with the wireless communication module based on the UART communication protocol through a UART, the wireless communication module based on the UART communication protocol is in wireless connection with the mobile terminal, and the wireless communication module based on the UART communication protocol comprises a Bluetooth module or a WIFI module and is used for supporting the UART communication protocol to communicate with the MCU controller; an API user interface for supporting a debugging function is transplanted into an MCU controller program, wherein the API user interface comprises an editable variable list, a zone bit list, an observable variable list, an executable function list, a UART communication program interface and a debugging protocol analysis and execution program, the editable variable list is used for adding variables which need to be debugged in the MCU controller program, the variables are of any type, the zone bit list is used for adding zone bits which need to be debugged in the MCU controller program, the observable variable list is used for adding variables which need to be checked in the MCU controller program, the executable function list is used for adding functions which need to be operated by manual remote operation in the MCU controller program, the UART communication program interface receives an interrupt processing program and a sending data program, the debugging protocol analysis and execution program is used for supporting functions of a debugging protocol, and the debugging protocol analysis and execution program respectively exchanges data with the editable variable list, the zone bit list, the observable variable list, the executable function list and the UART communication program interface; the APP of the mobile terminal comprises an editing variable function, an editing zone bit function, a waveform display function, a numerical value display function, a remote operation function, a Bluetooth communication program, a WIFI communication program and a debugging protocol analysis and processing program, wherein the editing variable function is used for modifying the value of an editable variable in the MCU controller program, the editing zone bit function is used for editing the state of a zone bit in the MCU controller program, the waveform display function is used for displaying the value of the observable variable in a waveform display mode, the numerical value display function is used for displaying the value of the observable variable in a numerical value display mode, the remote operation function is used for manually and remotely operating the operation function in the MCU controller, the Bluetooth communication program and the WIFI communication program are used for communicating with the MCU controller, the debugging protocol analysis and processing program is used for supporting the debugging protocol, and the debugging protocol analysis and processing program is used for exchanging data with the Bluetooth communication program and the WIFI communication program, the editing variable function, the editing zone bit function, the waveform display function, the numerical value display function and the remote operation function.
The beneficial effects of the invention are as follows: 1. when the wired debugging of the MCU controller program is inconvenient or even impractical, the problem can be solved by using a wireless debugging function; 2. when the MCU controller program is debugged, when the variable value is modified, the flag bit is modified, the variable value is observed, and the user-defined function is manually executed very frequently, the debugging process can be simplified by using the debugger, and the software development efficiency of the MCU controller is improved; 3. the system can be used as an upper computer of various MCU control equipment, and is not required to be independently developed; 4. the user only needs to complete a simple function interface, the transplanting is easy, 5, the communication module only needs to occupy one UART interface of the MCU controller, the connection is convenient, and the resources occupied by the MCU controller are less; 6. the wireless debugger selects the mobile terminal for use, and has the advantages of convenient carrying, convenient use, simple operation and the like.
Drawings
FIG. 1 is a general design block diagram of the present invention;
FIG. 2 is a diagram of the API of the MCU controller of the present invention;
fig. 3 is an APP structure diagram of the mobile terminal of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The universal MCU wireless debugger comprises an MCU controller 1, a wireless communication module 2 based on a UART communication protocol and a mobile terminal 3, wherein the MCU controller 1 is connected with the wireless communication module 2 based on the UART communication protocol through a UART, the wireless communication module 2 based on the UART communication protocol is in wireless connection with the mobile terminal 3, and the wireless communication module 2 based on the UART communication protocol comprises a Bluetooth module or a WIFI module and is used for supporting the UART communication protocol and the communication with the MCU controller 1; an API user interface for supporting a debugging function is transplanted into a program of an MCU controller 1, wherein the API user interface comprises an editable variable list 1-1, a flag bit list 1-2, an observable variable list 1-3, an executable function list 1-4, a UART communication program interface 1-5 and a debugging protocol analyzing and executing program 1-6, the editable variable list 1-1 is used for adding a variable which needs to be debugged in the program of the MCU controller 1, the variable is of any type, the flag bit list 1-2 is used for adding a flag bit which needs to be debugged in the program of the MCU controller 1, the observable variable list 1-3 is used for adding a variable which needs to be checked in the program of the MCU controller 1, the executable function list 1-4 is used for adding a function which needs to be operated manually and remotely, the UART communication program interface 1-5 receives an interrupt processing program and a transmitting data program, the debugging protocol analyzing and executing program 1-6 is used for supporting the function of the debugging protocol, and the debugging protocol analyzing and executing program 1-6 is respectively exchanged with the editable variable 1-1, the flag bit list 1-2, the observable variable list 1-3, the executable function list 1-4 and the UART communication program interface 1-4; the APP of the mobile terminal 3 comprises an editing variable function 3-1, an editing zone bit function 3-2, a waveform display function 3-3, a numerical value display function 3-4, a remote operation function 3-5, a Bluetooth communication and WIFI communication program 3-6 and a debugging protocol analysis and processing program 3-7, wherein the editing variable function 3-1 is used for modifying the value of an editable variable in the MCU controller 1 program, the editing zone bit function 3-2 is used for editing the state of a zone bit in the MCU controller 1 program, the waveform display function 3-3 is used for displaying the value of the observable variable in a waveform display mode, the numerical value display function 3-4 is used for displaying the value of the observable variable in a numerical value display mode, the remote operation function 3-5 is used for manually and remotely operating the executable function in the MCU controller 1, the Bluetooth communication and WIFI communication program 3-6 is used for communicating with the MCU controller 1, the debugging protocol analysis and processing program 3-7 is used for supporting the debugging protocol program, and the debugging protocol and processing program 3-7 is respectively exchanged with the Bluetooth communication and WIFI communication program 3-6, the editing zone bit function 3-1, the editing zone bit 3-2, the waveform display function 3-4, the remote operation function 3-4 and the remote operation function 3-4 are used for displaying the numerical value of the observable variable.
When in use, firstly, the wireless communication module 2 based on the UART communication protocol is connected to the UART interface of the debugged MCU controller 1 through the UART interface.
And then the API is transplanted into the MCU controller 1 program of the user, the user completes the UART communication program interface, then the variable to be modified is added into the editable variable list 1-1, the zone bit to be regulated is added into the zone bit list 1-2, the variable to be observed value is added into the observable variable list 1-3, the function to be manually and remotely controlled to operate is added into the executable function list 1-4, the API program analyzes the content in the list, and analyzes and executes the debugging protocol through the UART communication interface.
And finally, opening the APP of the mobile terminal 3, connecting to the wireless communication module 2 based on the UART communication protocol through Bluetooth communication or WIFI communication, receiving and transmitting data by software through Bluetooth or WIFI communication programs, analyzing and processing a debugging protocol, modifying editable variables and flag bits in the program of the MCU controller 1 by the mobile terminal 3, checking the observable variable values, and remotely operating the MCU custom function.
Claims (1)
1. The universal MCU wireless debugger comprises an MCU controller (1), a wireless communication module (2) based on a UART communication protocol and a mobile terminal (3), wherein the MCU controller (1) is connected with the wireless communication module (2) based on the UART communication protocol through a UART, the wireless communication module (2) based on the UART communication protocol is in wireless connection with the mobile terminal (3), and the wireless communication module (2) based on the UART communication protocol comprises a Bluetooth module or a WIFI module and is used for supporting the UART communication protocol to communicate with the MCU controller (1); the method is characterized in that: an API user interface for supporting debugging functions is transplanted into an MCU controller (1) program, the API user interface comprises an editable variable list (1-1), a flag bit list (1-2), an observable variable list (1-3), an executable function list (1-4), a UART communication program interface (1-5) and a debugging protocol analysis and execution program (1-6), wherein the editable variable list (1-1) is used for adding variables which need to be debugged in the MCU controller (1) program, the variables are of any type, the flag bit list (1-2) is used for adding flag bits which need to be debugged in the MCU controller (1) program, the observable variable list (1-3) is used for adding variables which need to be checked in the MCU controller (1) program, the executable function list (1-4) is used for adding functions which need to be manually operated and run remotely in the MCU controller (1) program, the UART communication program interface (1-5) receives interrupt processing programs and sends data programs, the debugging protocol and the execution program (1-6) is used for supporting functions of the debugging protocols, the analysis and the debugging protocol (1-6) and the debugging protocol analysis and the execution program (1-6) are used for adding the variables which need to be debugged in the MCU controller (1-1) program, the observable variable list (1-3) is used for adding variables which need to be checked in the program, and the observable function list (1-4) needs to be checked by the observable function (1-4) is used for adding the variables which need to be checked to be operated by the manual operation in the program, and the debugging function (1-5, UART communication program interfaces (1-5) exchange data; the APP of the mobile terminal (3) comprises an editing variable function (3-1), an editing zone bit function (3-2), a waveform display function (3-3), a numerical display function (3-4), a remote operation function (3-5), a Bluetooth communication and WIFI communication program (3-6) and a debugging protocol analysis and processing program (3-7), wherein the editing variable function (3-1) is used for modifying the value of an editable variable in the MCU controller (1) program, the editing zone bit function (3-2) is used for editing the state of a zone bit in the MCU controller (1) program, the waveform display function (3-3) is used for displaying the value of an observable variable in a waveform display mode, the numerical display function (3-4) is used for displaying the value of the observable variable in a numerical display mode, the remote operation function (3-5) is used for manually and remotely operating the executable function in the MCU controller (1), the Bluetooth communication and WIFI communication program (3-6) is used for communicating with the MCU controller (1), the program of the Bluetooth communication and the debugging protocol analysis and processing program (3-7) is used for supporting the debugging protocol analysis and processing program (3-7), the Bluetooth communication and the processing program (3-7) is used for supporting the debugging protocol analysis and the debugging protocol (3-7) is used for displaying the value of the observable variable in the program (3-6) in the debugging protocol, the observable function is used for displaying the observable value, the waveform display function (3-3), the numerical display function (3-4) and the remote operation function (3-5) exchange data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811211971.5A CN109460355B (en) | 2018-10-18 | 2018-10-18 | Universal MCU wireless debugger |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811211971.5A CN109460355B (en) | 2018-10-18 | 2018-10-18 | Universal MCU wireless debugger |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109460355A CN109460355A (en) | 2019-03-12 |
CN109460355B true CN109460355B (en) | 2023-05-30 |
Family
ID=65607838
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811211971.5A Active CN109460355B (en) | 2018-10-18 | 2018-10-18 | Universal MCU wireless debugger |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109460355B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111177002A (en) * | 2019-12-27 | 2020-05-19 | 西北工业大学 | System and method for wireless analysis and debugging of controller parameters |
CN112652155A (en) * | 2020-09-29 | 2021-04-13 | 江苏德高物联技术有限公司 | Multimode storage and data remote transmission communication system applied to environment detection |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103268288A (en) * | 2013-06-18 | 2013-08-28 | 北京云测信息技术有限公司 | Remote real machine debugging method and system of mobile terminal application software |
CN106568168A (en) * | 2016-10-27 | 2017-04-19 | 珠海格力电器股份有限公司 | Debugging method, debugger and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8589887B2 (en) * | 2010-10-20 | 2013-11-19 | International Business Machines Corporation | Registration-based remote debug watch and modify |
US20170286254A1 (en) * | 2016-03-30 | 2017-10-05 | Intel Corporation | Method and apparatus for using target or unit under test (uut) as debugger |
-
2018
- 2018-10-18 CN CN201811211971.5A patent/CN109460355B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103268288A (en) * | 2013-06-18 | 2013-08-28 | 北京云测信息技术有限公司 | Remote real machine debugging method and system of mobile terminal application software |
CN106568168A (en) * | 2016-10-27 | 2017-04-19 | 珠海格力电器股份有限公司 | Debugging method, debugger and system |
Non-Patent Citations (1)
Title |
---|
集成微控制器功能的新型DSP架构;JOSEPHP.GERGENDSP,PHIL HOANG,EPHREM A.CHEMALY;世界电子元器件(第06期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109460355A (en) | 2019-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109460355B (en) | Universal MCU wireless debugger | |
CN102902624B (en) | A kind of software debugging system and method | |
CN103729288A (en) | Application program debugging method under embedded multi-core environment | |
CN106776174B (en) | Display screen parameter debugging method and server | |
CN101482848A (en) | Dynamic debugging method and system in embedded software running state | |
CN103714190B (en) | Simple efficient on-line simulation method and simple efficient on-line simulation interface circuit | |
CN204813790U (en) | Wireless optometry system based on synthesize refractometer | |
CN102141929B (en) | Application program running method, simulator, host machine and system | |
CN204117134U (en) | A kind of electric-controlled plate wireless transmission programmer | |
JP2014102821A (en) | Programming device | |
CN202748786U (en) | Multifunctional electric level converter | |
CN201548951U (en) | Analog device for set-top-box interface | |
CN105843659B (en) | Method and system for implementing embedded C compiler | |
WO2022111703A1 (en) | Method, device and system for acquiring hardware performance data | |
CN210109593U (en) | Control system of TACAN navigation equipment | |
KR101338153B1 (en) | Middleware technology based on Device model | |
CN201742445U (en) | Wireless data transmission system based on GSM protocol | |
CN109977042A (en) | A kind of USB on-line debugging system and method | |
CN112148340A (en) | Real-time wireless program burner for unmanned ship and implementation method | |
CN111459736A (en) | Plate electrode debugging method of video processing chip | |
CN107817776B (en) | Secondary development system for serial port screen | |
CN219418117U (en) | Micro-control keyboard and mouse | |
KR100682667B1 (en) | Dtv simulation system based on pc window | |
CN103247195B (en) | Sound-and-light and vibration information reminding device for class seat | |
CN210534768U (en) | Air conditioner debugging system based on it is wireless programmable |
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 |