CN109460355A - The universal wireless debugger of MCU - Google Patents
The universal wireless debugger of MCU Download PDFInfo
- Publication number
- CN109460355A CN109460355A CN201811211971.5A CN201811211971A CN109460355A CN 109460355 A CN109460355 A CN 109460355A CN 201811211971 A CN201811211971 A CN 201811211971A CN 109460355 A CN109460355 A CN 109460355A
- Authority
- CN
- China
- Prior art keywords
- function
- program
- variable
- list
- mcu controller
- 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.)
- Granted
Links
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
The universal wireless debugger of MCU belongs to MCU technology;Including MCU controller, wireless communication module and mobile terminal based on UART communications protocol, it will be used to support the API user interface shifting value of debugging function in MCU director demon, API user interface includes editable variable list, flag bit list, observable variable list, function list can be run, UART communication program interface and debugging protocol analysis and execution program, mobile terminal includes editor's variable function, edit cue bit function, waveform display function, numerical value display function, long-range operation function performance, bluetooth communication and WIFI communication program and debugging protocol analysis and processing routine;This debugger is versatile, simplifies debugging process, improves MCU controller software development efficiency, and widely used, transplanting is easy, and connection is easy to use, easy to operate, easy to carry.
Description
Technical field
The invention belongs to MCU technical fields, relate generally to the wireless debugger of universal MCU a kind of.
Background technique
As MCU is continued to develop, MCU has had been applied to every field.It, can be through during MCU control system's development
Spend the quite cumbersome debugging stage.In this stage, change data repeatedly are needed, different schemes is attempted, also needs to one sometimes
A little data are observed.Currently, the debugging tool of mainstream has J-LINK, ST-LINK, ULINK etc., but existing debugging tool is all
By wired connection, program is downloaded repeatedly and realizes part debugging function, therefore gets up to have much in certain exploitation applications
Limitation, such as the control system etc. constantly in movement.In these occasions, to the display of MCU program built-in variable, change,
Storage, to the calling of certain section of program, selection to program option and to program compiling all very frequently, reduce program development effect
Rate, meanwhile, cable operator has very big inconvenience.Currently, there are also some dedicated debugging host computers in the market, but these are upper
Machine all has specific aim, develops specifically for some product, and service performance is single, therefore develops a general MCU line
It is necessary without debugger.
Summary of the invention
The purpose of the present invention is to the above-mentioned problems of the prior art, a kind of universal MCU is provided and is wirelessly debugged
Device solves the wired inconvenient debugging of MCU controller and repeatedly modification compiler inefficiency, universal upper eedle pair to reach
The problem that property is strong, service performance is single.
To solve the above-mentioned problems, the invention adopts the following technical scheme: a kind of wireless debugger of universal MCU includes
MCU controller, wireless communication module and mobile terminal based on UART communications protocol, the MCU controller pass through UART and base
It is connected in the wireless communication module of UART communications protocol, wireless communication module and mobile terminal based on UART communications protocol are wireless
Connection, the wireless communication module based on UART communications protocol includes bluetooth module or WIFI module, for supporting UART to communicate
Agreement and with MCU controller communication;The API user interface for being used to support debugging function is implanted in MCU director demon, institute
API user interface is stated to include editable variable list, flag bit list, observable variable list, function list, UART can be run
Communication program interface and debugging protocol analysis and execution program, wherein editable variable list is for adding MCU director demon
The middle variable for needing to debug, variable are any type, and flag bit list is for adding the mark for needing to debug in MCU director demon
Will position, observable variable list can run function list and be used for for adding the variable for needing to check value in MCU director demon
The function for needing manual-remote operation to run in addition MCU director demon, UART communication program interface interrupt processing journey
Sequence and transmission data program debug protocol analysis and execute the function that program is used to support debugging agreement, the debugging agreement solution
Analysis and execute program respectively with editable variable list, flag bit list, observable variable list, can run function list,
UART communication program interface carries out data exchange;The APP of the mobile terminal includes editor's variable function, edit cue position function
Energy, waveform display function, numerical value display function remotely run function, bluetooth communication and WIFI communication program, debugging protocol analysis
And processing routine, wherein editor's variable function is used to modify the value of editable variable in MCU director demon, edit cue position
Function is used to edit the state of flag bit in MCU director demon, and waveform display function can for being shown with waveform display mode
The value of observation variable, numerical value display function is used to show the value of observable variable with numerical value display mode, long-range to run function function
It can be used to run function in manual-remote operation operation MCU controller, bluetooth communication and WIFI communication program is used for and MCU
The program of controller communication, debugs protocol analysis and processing routine is used to support the program of debugging agreement, the debugging agreement solution
Analysis and processing routine are shown with bluetooth communication and WIFI communication program, editor's variable function, edit cue bit function, waveform respectively
Function, numerical value display function, long-range operation function performance carry out data exchange.
The beneficial effects of the present invention are: 1, when wired debugging MCU director demon is inconvenient can not even to be realized, use
Wireless debugging function can solve this problem;2, when debugging MCU director demon, when modification variate-value, dirty bit, sight
When examining variate-value, manually performing custom function and frequently operate very much, debugging process can simplify using this debugger, improve
MCU controller software development efficiency;3, the host computer that can be used as various MCU control equipment, does not need individually to develop for it;4, make
User it is only necessary to complete simple function interface, transplanting is easy, 5, communication module only need to occupy one of MCU controller
UART interface, it is easy to connect, it is few to occupy MCU controller resource;6, wireless debugger selection uses mobile terminal, has convenient for taking
Band, easy to use, simple operation and other advantages.
Detailed description of the invention
Fig. 1 is master-plan structure chart of the invention;
Fig. 2 is MCU controller API structure chart of the invention;
Fig. 3 is the APP structure chart of mobile terminal of the invention.
Specific embodiment
Embodiment of the present invention is described in detail with reference to the accompanying drawing.A kind of wireless debugger of universal MCU includes
MCU controller 1, wireless communication module 2 and mobile terminal 3 based on UART communications protocol, the MCU controller 1 pass through UART
It is connect with the wireless communication module 2 based on UART communications protocol, the wireless communication module 2 based on UART communications protocol and movement are eventually
End 3 is wirelessly connected, and the wireless communication module 2 based on UART communications protocol includes bluetooth module or WIFI module, for supporting
UART communications protocol and with MCU controller 1 communicate;The API user interface for being used to support debugging function is implanted in MCU controller
In 1 program, the API user interface include editable variable list 1-1, flag bit list 1-2, observable variable list 1-3,
Function list 1-4, UART communication program interface 1-5 and debugging protocol analysis can be run and execute program 1-6, wherein editable
For variable list 1-1 for adding the variable for needing to debug in 1 program of MCU controller, variable is any type, flag bit list 1-
2 for adding the flag bit for needing to debug in 1 program of MCU controller, and observable variable list 1-3 is for adding MCU controller 1
It needs to check the variable of value in program, function list 1-4 can be run for adding in 1 program of MCU controller and need manual-remote
The function of operation is operated, UART communication program interface 1-5 receives interrupt handling routine and sends data program, debugs protocol analysis
And execute program 1-6 be used for supports debugging agreement function, the debugging protocol analysis and execution program 1-6 respectively with editable
Variable list 1-1, it flag bit list 1-2, observable variable list 1-3, function list 1-4, UART communication program can be run connects
Mouth 1-5 carries out data exchange;The APP of the mobile terminal 3 includes editor variable function 3-1, edit cue bit function 3-2, wave
Shape display function 3-3, numerical value display function 3-4, long-range operation function 3-5, bluetooth communication and WIFI communication program 3-6, debugging
Protocol analysis and processing routine 3-7, wherein editor variable function 3-1 is for modifying editable variable in 1 program of MCU controller
Value, edit cue bit function 3-2 is used to edit the state of flag bit in 1 program of MCU controller, and waveform display function 3-3 is used
In the value for showing observable variable with waveform display mode, numerical value display function 3-4 is considerable for being shown with numerical value display mode
The value of variable is examined, the long-range function performance 3-5 that runs is blue for the function that runs in manual-remote operation operation MCU controller 1
The program that tooth communication and WIFI communication program 3-6 are used to communicate with MCU controller 1, debugs protocol analysis and processing routine 3-7 is used
In the program for supporting debugging agreement, the debugging protocol analysis and processing routine 3-7 respectively with bluetooth communication and WIFI communication journey
It is sequence 3-6, editor variable function 3-1, edit cue bit function 3-2, waveform display function 3-3, numerical value display function 3-4, long-range
It runs function performance 3-5 and carries out data exchange.
In use, the wireless communication module 2 based on UART communications protocol is connected to by UART interface first debugged
MCU controller 1 UART interface on.
Then API is transplanted in 1 program of MCU controller of user, user completes UART communication program interface, connects
The variable modified will be needed to be added in editable variable list 1-1, the flag bit adjusted will be needed to be added to mark and ranked
In table 1-2, the variable for needing observed value is added in observable variable list 1-3, manual-remote control operation will be needed
Function, which is added to, can run in function list 1-4, and api routine can parse the content in list, and pass through UART communication interface, solution
It analyses and executes debugging agreement.
Finally, opening the APP of mobile terminal 3, it is connected to communicate based on UART by bluetooth communication or WIFI communication and assists
The wireless communication module 2 of view, software first pass through bluetooth or WIFI communication program sending and receiving data, using the parsing of debugging agreement
And processing, it realizes editable variable, the flag bit modified in 1 program of MCU controller in mobile terminal 3, checks observable variable
Value, the long-range function of running MCU custom function.
Claims (1)
1. a kind of wireless debugger of universal MCU, including MCU controller (1), the wireless communication module based on UART communications protocol
(2) and mobile terminal (3), the MCU controller (1) pass through UART and the wireless communication module (2) based on UART communications protocol
Connection, wireless communication module (2) and mobile terminal (3) based on UART communications protocol are wirelessly connected, and are based on UART communications protocol
Wireless communication module (2) include bluetooth module or WIFI module, for support UART communications protocol and with MCU controller
(1) it communicates;It is characterized by: the API user interface for being used to support debugging function is implanted in MCU controller (1) program, institute
API user interface is stated to include editable variable list (1-1), flag bit list (1-2), observable variable list (1-3), can transport
Line function list (1-4), UART communication program interface (1-5) and debugging protocol analysis and execution program (1-6), wherein can compile
Variable list (1-1) is collected for adding the variable for needing to debug in MCU controller (1) program, variable is any type, flag bit
List (1-2) is for adding the flag bit for needing to debug in MCU controller (1) program, and observable variable list (1-3) is for adding
Add the variable for needing to check value in MCU controller (1) program, function list (1-4) can be run for adding MCU controller (1)
The function for needing manual-remote operation to run in program, UART communication program interface (1-5) receive interrupt handling routine and transmission
Data program, debug protocol analysis and execute program (1-6) be used for supports debug agreement function, the debugging protocol analysis and
Execute program (1-6) respectively with editable variable list (1-1), flag bit list (1-2), observable variable list (1-3), can
Run function list (1-4), UART communication program interface (1-5) carries out data exchange;The APP of the mobile terminal (3) includes
It edits variable function (3-1), edit cue bit function (3-2), waveform display function (3-3), numerical value display function (3-4), remote
Cheng Yun line function (3-5), bluetooth communication and WIFI communication program (3-6), debugging protocol analysis and processing routine (3-7), wherein
Editor variable function (3-1) is used to modify the value of editable variable in MCU controller (1) program, edit cue bit function (3-2)
For editing the state of flag bit in MCU controller (1) program, waveform display function (3-3) is used for aobvious with waveform display mode
Show the value of observable variable, numerical value display function (3-4) is used to show the value of observable variable with numerical value display mode, long-range to transport
Line function function (3-5) is for running function, bluetooth communication and WIFI in manual-remote operation operation MCU controller (1)
Communication program (3-6) is used for the program communicated with MCU controller (1), debugs protocol analysis and processing routine (3-7) for supporting
Debug the program of agreement, the debugging protocol analysis and processing routine (3-7) respectively with bluetooth communication and WIFI communication program (3-
6), edit variable function (3-1), edit cue bit function (3-2), waveform display function (3-3), numerical value display function (3-4),
Long-range operation function performance (3-5) carries out data exchange.
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 true CN109460355A (en) | 2019-03-12 |
CN109460355B 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) |
Cited By (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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120102468A1 (en) * | 2010-10-20 | 2012-04-26 | International Business Machines Corporation | Registration-based remote debug watch and modify |
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 |
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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120102468A1 (en) * | 2010-10-20 | 2012-04-26 | International Business Machines Corporation | Registration-based remote debug watch and modify |
CN103268288A (en) * | 2013-06-18 | 2013-08-28 | 北京云测信息技术有限公司 | Remote real machine debugging method and system of mobile terminal application software |
US20170286254A1 (en) * | 2016-03-30 | 2017-10-05 | Intel Corporation | Method and apparatus for using target or unit under test (uut) as debugger |
CN106568168A (en) * | 2016-10-27 | 2017-04-19 | 珠海格力电器股份有限公司 | Debugging method, debugger and system |
Non-Patent Citations (1)
Title |
---|
JOSEPHP.GERGENDSP,PHIL HOANG,EPHREM A.CHEMALY: "集成微控制器功能的新型DSP架构", 世界电子元器件 * |
Cited By (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 |
Also Published As
Publication number | Publication date |
---|---|
CN109460355B (en) | 2023-05-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105679366B (en) | Portable multifunctional off-line recorder | |
CN109460355A (en) | The universal wireless debugger of MCU | |
CN102902624B (en) | A kind of software debugging system and method | |
CN104503898A (en) | Method and system for checking embedded software debugging parameter in real time | |
CN104836877A (en) | Method for debugging and detecting mobile phone | |
CN203134324U (en) | Mobile phone controlled LED display device | |
CN104950153A (en) | Wireless virtual oscilloscope realization system | |
CN204117134U (en) | A kind of electric-controlled plate wireless transmission programmer | |
JP2014102821A (en) | Programming device | |
CN205174858U (en) | Realize WIFI data interchange's water heater | |
CN204010286U (en) | A kind of automatic data collection device based on NFC | |
CN101551748A (en) | Optimized compiling method | |
CN105352197A (en) | Water heater capable of achieving WIFI data exchange | |
CN204945658U (en) | A kind of household electrical appliances upgrade-system and household electrical appliances updating apparatus | |
CN209654854U (en) | Improve the expanding device of pipe robot adaptability | |
CN208707048U (en) | A kind of silk fabrics weave data line | |
CN209471357U (en) | A kind of electronic door control module for supporting wirelessly to debug and debugging system | |
CN204556741U (en) | Frequency converter debugging acid | |
CN207704640U (en) | A kind of Bluetooth communication system based on Arduino | |
CN207833287U (en) | A kind of industrial wireless formula hand-hold programmer | |
CN112148340A (en) | Real-time wireless program burner for unmanned ship and implementation method | |
CN104750582A (en) | A debugger | |
CN207752481U (en) | A kind of nfc card cd-rom recorder | |
CN207281493U (en) | Internet of Things development kit based on IOTWIFI | |
CN203882112U (en) | Control logic hardware-in-loop simulator |
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 |