CN111400208A - Serial port debugging system - Google Patents

Serial port debugging system Download PDF

Info

Publication number
CN111400208A
CN111400208A CN202010192908.2A CN202010192908A CN111400208A CN 111400208 A CN111400208 A CN 111400208A CN 202010192908 A CN202010192908 A CN 202010192908A CN 111400208 A CN111400208 A CN 111400208A
Authority
CN
China
Prior art keywords
program
parameters
external controller
module
communication module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010192908.2A
Other languages
Chinese (zh)
Inventor
韩晓宇
吴迪
朱威
杨艳东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Shenhao Information Technology Co ltd
Original Assignee
Ningbo Shenhao Information 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 Ningbo Shenhao Information Technology Co ltd filed Critical Ningbo Shenhao Information Technology Co ltd
Priority to CN202010192908.2A priority Critical patent/CN111400208A/en
Publication of CN111400208A publication Critical patent/CN111400208A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a serial port debugging system, which relates to the field of serial port communication and comprises a communication module, a data transmission module and a data transmission module, wherein the communication module is used for communicating with an external controller and transmitting data; the parameter modification module is used for acquiring original parameters of a program in the external controller chip through the communication module, receiving program parameters to be modified input by a user, writing the program parameters to be modified into the external controller chip through the communication module, and completing the replacement of the original program parameters; and the debugging module is used for carrying out online debugging on the external equipment controlled by the external controller according to the replaced program parameters. The invention realizes the free change of the relevant control parameters in the program under the condition of no power failure, and omits the trouble of changing the program by power failure back and forth.

Description

Serial port debugging system
Technical Field
The invention relates to the field of serial port communication, in particular to a serial port debugging system.
Background
With the development of computer network application and industrial communication, the serial port communication function is more important, and how to directly modify parameters by a serial port in the debugging process is more widely researched.
The prior art has the defects that power needs to be cut off every time a program is modified, then the program is connected with a PC (personal computer) end for program burning, and the testing efficiency is low.
Disclosure of Invention
In order to overcome the problems in the prior art, the invention provides a serial port debugging system, which realizes the free change of relevant control parameters in a program under the condition of no power failure and omits the trouble of changing the program by power failure back and forth.
The technical scheme of the invention is as follows:
a serial port debugging system comprises:
the communication module is used for communicating with an external controller and transmitting data;
the parameter modification module is used for acquiring original parameters of a program in the external controller chip through the communication module, receiving program parameters to be modified input by a user, writing the program parameters to be modified into the external controller chip through the communication module, and finishing the replacement of the original program parameters;
and the debugging module is used for carrying out online debugging on the external equipment controlled by the external controller according to the replaced program parameters.
Compared with the prior art, the invention has the beneficial effects that: compared with the prior art, the method is more convenient, quicker and safer, realizes the free change of the relevant control parameters in the program under the condition of no power failure, and saves the trouble of modifying the program by power failure back and forth.
Drawings
Fig. 1 is a schematic block diagram of the present invention.
Detailed Description
The technical solutions of the embodiments of the present invention are clearly and completely described below with reference to the drawings in the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
As shown in fig. 1, the serial port debugging system provided by the present invention includes:
the communication module is used for communicating with an external controller and transmitting data;
the parameter modification module is used for acquiring original parameters of a program in the external controller chip through the communication module, receiving program parameters to be modified input by a user, writing the program parameters to be modified into the external controller chip through the communication module, and finishing the replacement of the original program parameters;
and the debugging module is used for carrying out online debugging on the external equipment controlled by the external controller according to the replaced program parameters.
Taking the external controller to control the brushless motor as an example, the serial port debugging system of the invention is installed in an intelligent mobile terminal such as a smart phone, a computer, etc. The use method of the serial port debugging system comprises the following steps:
step 1, connecting the intelligent mobile terminal Bluetooth with the Bluetooth on the external controller, opening the serial port debugging system, searching and pairing the Bluetooth on the external controller, and executing step 2 after pairing is successful.
And 2, acquiring and displaying original program parameters (original control parameters of the brushless motor, such as line resistance, inductance, motor pole pair number and the like) in the external controller through the serial port debugging system.
And 3, inputting relevant brushless motor parameters to be modified on line by a user through the serial port debugging system, storing the parameters, and writing the program parameters to be modified into an external controller chip through the communication module to finish the replacement of the original program parameters.
And 4, performing system online debugging on the program with the replaced parameters by the user through the serial port debugging system, thereby realizing the online debugging of the controlled brushless motor.
The above disclosure is only for the preferred embodiments of the present invention, but the embodiments of the present invention are not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (1)

1. A serial port debugging system is characterized by comprising:
the communication module is used for communicating with an external controller and transmitting data;
the parameter modification module is used for acquiring original parameters of a program in the external controller chip through the communication module, receiving program parameters to be modified input by a user, writing the program parameters to be modified into the external controller chip through the communication module, and finishing the replacement of the original program parameters;
and the debugging module is used for carrying out online debugging on the external equipment controlled by the external controller according to the replaced program parameters.
CN202010192908.2A 2020-03-18 2020-03-18 Serial port debugging system Pending CN111400208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010192908.2A CN111400208A (en) 2020-03-18 2020-03-18 Serial port debugging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010192908.2A CN111400208A (en) 2020-03-18 2020-03-18 Serial port debugging system

Publications (1)

Publication Number Publication Date
CN111400208A true CN111400208A (en) 2020-07-10

Family

ID=71436497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010192908.2A Pending CN111400208A (en) 2020-03-18 2020-03-18 Serial port debugging system

Country Status (1)

Country Link
CN (1) CN111400208A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201177812Y (en) * 2008-01-03 2009-01-07 广州视源电子科技有限公司 Serial port debugging tool
CN101710821A (en) * 2009-12-28 2010-05-19 南昌大学 DC asynchronous motor universal vector control method and controller
CN102305999A (en) * 2011-06-24 2012-01-04 吉林大学 Online debugging system for electric power-assisted steering control parameter
CN103926901A (en) * 2014-04-22 2014-07-16 太仓市同维电子有限公司 Industrial control field debugging method based on Modbus communication protocol
US20160299859A1 (en) * 2013-11-22 2016-10-13 Freescale Semiconductor, Inc. Apparatus and method for external access to core resources of a processor, semiconductor systems development tool comprising the apparatus, and computer program product and non-transitory computer-readable storage medium associated with the method
CN206932410U (en) * 2017-06-07 2018-01-26 赛尔通信服务技术股份有限公司 A kind of low-power consumption bluetooth transparent transmission serial port device
CN108280037A (en) * 2017-01-05 2018-07-13 厦门雅迅网络股份有限公司 A kind of method and apparatus that preemptive type multiplexing serial port automatically switches
CN110668271A (en) * 2019-08-30 2020-01-10 浙江阿尔法电气有限公司 Elevator control system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201177812Y (en) * 2008-01-03 2009-01-07 广州视源电子科技有限公司 Serial port debugging tool
CN101710821A (en) * 2009-12-28 2010-05-19 南昌大学 DC asynchronous motor universal vector control method and controller
CN102305999A (en) * 2011-06-24 2012-01-04 吉林大学 Online debugging system for electric power-assisted steering control parameter
US20160299859A1 (en) * 2013-11-22 2016-10-13 Freescale Semiconductor, Inc. Apparatus and method for external access to core resources of a processor, semiconductor systems development tool comprising the apparatus, and computer program product and non-transitory computer-readable storage medium associated with the method
CN103926901A (en) * 2014-04-22 2014-07-16 太仓市同维电子有限公司 Industrial control field debugging method based on Modbus communication protocol
CN108280037A (en) * 2017-01-05 2018-07-13 厦门雅迅网络股份有限公司 A kind of method and apparatus that preemptive type multiplexing serial port automatically switches
CN206932410U (en) * 2017-06-07 2018-01-26 赛尔通信服务技术股份有限公司 A kind of low-power consumption bluetooth transparent transmission serial port device
CN110668271A (en) * 2019-08-30 2020-01-10 浙江阿尔法电气有限公司 Elevator control system and method

Similar Documents

Publication Publication Date Title
CN102523052B (en) Testing method and testing device
CN107135124B (en) Method and system for multi-Bluetooth communication parallel test
CN102118508A (en) Terminal profile switching method and terminal
CN103249061A (en) Method and system for testing voice quality
CN103313430A (en) WiFi (wireless fidelity) connecting method using mobile terminal to configure network access equipment through WiFi and related equipment
Pandya et al. Gsm modem based data acquisition system
CN106791207A (en) The method for controlling dialing and mobile terminal of a kind of mobile terminal
WO2015188529A1 (en) Method and system for managing embedded monitoring device
CN102339248A (en) On-line debugging system and method for embedded terminal
CN111400208A (en) Serial port debugging system
CN204539155U (en) A kind of testing apparatus of Bluetooth RF circuit
CN103279265A (en) Terminal and system for displaying network information interface and interface generating method
CN101650686A (en) Developing and using method of intelligent mobile phone based on Ethernet Over USB
CN107480026A (en) Endpoint crashes processing method, terminal and the device with store function
CN105592572A (en) Bluetooth connection control method and terminal
CN212515457U (en) Industrial computer Internet of things intelligent system
CN104267809A (en) Information processing method and first electronic device
CN211786734U (en) PLC controller supporting deterministic data transmission
CN105025183B (en) The method that switching at runtime wireless network card realizes dial-up connection and its information processing storage
CN113765749A (en) Electric port module, method for acquiring working state of electric port module and computer storage medium
CN103428745A (en) Test system and test method of Cu interface between UICC (Universal Integrated Circuit Card) and WCDMA (Wideband Code Division Multiple Access) mobile terminal
CN210075559U (en) External extension interface for automobile DSP power amplifier
US20020193098A1 (en) Method for management of a communications module and device comprising such a module
CN210166649U (en) Remote monitoring system for frequency converter
CN106211054A (en) Search the method for contact person, system, server and user terminal

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