CN107341079A - A kind of serial ports automatic debugging system and method - Google Patents

A kind of serial ports automatic debugging system and method Download PDF

Info

Publication number
CN107341079A
CN107341079A CN201710529665.5A CN201710529665A CN107341079A CN 107341079 A CN107341079 A CN 107341079A CN 201710529665 A CN201710529665 A CN 201710529665A CN 107341079 A CN107341079 A CN 107341079A
Authority
CN
China
Prior art keywords
debugging
feedback information
information
control module
system control
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
Application number
CN201710529665.5A
Other languages
Chinese (zh)
Other versions
CN107341079B (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.)
Leihua Electronic Technology Research Institute Aviation Industry Corp of China
Original Assignee
Leihua Electronic Technology Research Institute Aviation Industry Corp of China
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 Leihua Electronic Technology Research Institute Aviation Industry Corp of China filed Critical Leihua Electronic Technology Research Institute Aviation Industry Corp of China
Priority to CN201710529665.5A priority Critical patent/CN107341079B/en
Publication of CN107341079A publication Critical patent/CN107341079A/en
Application granted granted Critical
Publication of CN107341079B publication Critical patent/CN107341079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • 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/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention discloses a kind of serial ports automatic debugging system and method, belongs to embedded system AccessPort technical field.VxWorks system control module is connected by intensive connector with the debugging bottom plate;The side of debugging bottom plate is connected by RS232 Serial Port Lines and netting twine with the PC respectively;The opposite side of debugging bottom plate is connected by power line with power supply;PC is provided with serial port setting module, and serial port setting module includes:Port selecting unit and baud rate selecting unit, and being capable of control port closing or opening;PC is provided with receiving module, receives the echo data message from VxWorks system control module, and automatic decision and can select the display pattern and sending mode of information.The present invention can be automatically performed above-mentioned debugging task, be not in input error, mitigate debugging work load significantly, after the completion of have eye-catching reminder flag.

Description

A kind of serial ports automatic debugging system and method
Technical field
The invention belongs to embedded system AccessPort technical field, and in particular to a kind of serial ports automatic debugging system and side Method.
Background technology
The operating system that Power PC Processor is run in certain electronic equipment main control module is VxWorks 6.8, before debugging Debugging computer is connected with PowerPC hardware systems with RS232 Serial Port Lines and netting twine, connection block diagram is shown in Fig. 1.Then burning CPLD With FPGA configuration file and FLASH BootROM programs, then FTP networks loading tool, RS232 AccessPort works are set Have and re-power, after Power PC Processor brings into operation, debugging computer can pass through network interface and FTP tool loads VxWorks System file starts the AccessPort of the system of VxWorks 6.8 to on-line operation on PowerPC, at this moment can.
VxWorks system information and transmission instruction are received by debugging computer RS232 serial port terminals, completes FALSH storages The debugging tasks such as space formatted, system information is checked, the modification of VxWorks file copy, start-up parameter.Complete these debugging The various English instructions up to 20 that task needs to be manually entered altogether, character format complicated difficult note, the defects of being manually entered, are as follows:
1), character inputs are big, are also easy to produce visual fatigue, error-prone;
2), debug time is grown, low production efficiency;
3) prompting of nothing " debugging has been completed ", has been debugged.
The content of the invention
The purpose of the present invention:In order to solve the above problems, the present invention proposes a kind of serial ports automatic debugging system and method, Above-mentioned debugging task can be automatically performed, be not in input error, mitigate debugging work load significantly, after the completion of have it is eye-catching remind mark Will.
Technical scheme:A kind of serial ports automatic debugging system, including:VxWorks system control module, debugging bottom Plate, RS232 Serial Port Lines, netting twine PC, power supply and power line;
The VxWorks system control module is connected by intensive connector with the debugging bottom plate;
The side of the debugging bottom plate is connected by RS232 Serial Port Lines and netting twine with the PC respectively;
The opposite side of the debugging bottom plate is connected by power line with the power supply;
The PC is provided with serial port setting module, and the serial port setting module includes:Port selecting unit and baud rate Selecting unit, and being capable of control port closing or opening;
The PC is provided with receiving module, and the receiving module receives the feedback from VxWorks system control module Information, and being capable of automatic decision, the display pattern and sending mode of selection information.
Preferably, the receiving module display mode information is additional pattern or covering pattern.
Preferably, the receiving module when continuously receive VxWorks system control module feedback information it is identical with last time when, The order different from last time transmission is then sent to VxWorks system control module.
A kind of automatic adjustment method of serial ports, comprises the following steps:
Step 1: serial port setting module is initialized, including port and Configuration of baud rate;
Step 2: receiving module receives the order feedback information of VxWorks system control module automatically;
Step 3: order feedback information of the receiving module to VxWorks system control module is analyzed;
Key search is carried out to feedback information, the information that keyword is expert at if keyword occurs will be covered and shown; Otherwise, additional display;
Key search is carried out to feedback information, it is automatic if keyword occurs to send the corresponding command information;
Step 4: when the keyword for retrieving end mark, system gives tacit consent to completion debugging and gives to debug automatically have been completed Prompting.
Preferably, in the step 3, feedback information is retrieved, if n-th receives the letter with the N-1 times reception Manner of breathing is same, then is sent after being received to VxWorks system control module n-th and send different orders after being received from the N-1 times.
Preferably, in the step 3, if the feedback information received has multirow, the keyword is located at feedback information The end of last column;
If the feedback information received only has a line, this feedback information is all retrieved;
If the feedback information deficiency a line received, retrieve the existing information of current line.
Preferably, the feedback information detection judges correct to corresponding keyword, then feedback information.
The beneficial effect of technical solution of the present invention:A kind of serial ports automatic debugging system of the present invention and method are opened using C# language Hair, it is more efficient, cost is lower, with better function;The input of instruction is not that timing is sent, but the letter returned according to master control borad Breath, only return information correctly just can be performed down, it is ensured that complete the correct of result;It is a large amount of to reduce commissioning staff's operation element Amount, no input error, improve debugging production efficiency.
Brief description of the drawings
Fig. 1 is a kind of composition schematic diagram of a preferred embodiment of serial ports automatic debugging system of the present invention;
Fig. 2 is a kind of schematic flow sheet of a preferred embodiment of the automatic adjustment method of serial ports of the present invention;
Wherein, 1-VxWorks system control modules, 2- debugging bottom plates, 3- netting twines, 4-RS232 Serial Port Lines, 5-PC machines, 6- Power supply, 7- power lines.
Embodiment
To make the purpose, technical scheme and advantage that the present invention is implemented clearer, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is further described in more detail.In the accompanying drawings, identical from beginning to end or class As label represent same or similar element or the element with same or like function.Described embodiment is the present invention Part of the embodiment, rather than whole embodiments.The embodiments described below with reference to the accompanying drawings are exemplary, it is intended to uses It is of the invention in explaining, and be not considered as limiting the invention.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.Under Embodiments of the invention are described in detail with reference to accompanying drawing for face.
In the description of the invention, it is to be understood that term " " center ", " longitudinal direction ", " transverse direction ", "front", "rear", The orientation or position relationship of the instruction such as "left", "right", " vertical ", " level ", " top ", " bottom " " interior ", " outer " is based on accompanying drawing institutes The orientation or position relationship shown, it is for only for ease of the description present invention and simplifies description, rather than instruction or the dress for implying meaning Put or element there must be specific orientation, with specific azimuth configuration and operation, therefore it is not intended that the present invention is protected The limitation of scope.
Embodiments of the invention are described in detail below in conjunction with the accompanying drawings, refer to Fig. 1 to Fig. 2;
A kind of serial ports automatic debugging system, including:VxWorks system control module 1, debugging bottom plate 2, RS232 Serial Port Lines 3rd, netting twine 4, PC 5, power supply 6 and power line 7;
PC 5 is provided with serial port setting module, and serial port setting module includes:Port selecting unit and baud rate selection are single Member, and being capable of control port closing or opening;
PC 5 is provided with receiving module, and receiving module receives the feedback information from VxWorks system control module, and Automatic decision and the display pattern and sending mode of information can be selected;
Receiving module display mode information is additional pattern or covering pattern, when reception VxWorks system control module When feedback information is identical with last time receive information, then the order different from last time transmission is sent to VxWorks system control module;
VxWorks system control module 1 is connected by intensive connector with debugging bottom plate 2, the side point of debugging bottom plate 2 It is not connected by RS232 Serial Port Lines 3 and netting twine 4 with PC 5, the opposite side of debugging bottom plate 2 is connected by power line 7 with power supply 6.
A kind of automatic adjustment method of serial ports, comprises the following steps:
Step 1: being initialized to serial port setting module, corresponding port is set and selects corresponding baud rate;
Step 2: receiving module receives the order feedback information of VxWorks system control module automatically;
Step 3: order feedback information of the receiving module to VxWorks system control module is analyzed;
Key search is carried out to feedback information, the information that keyword is expert at if keyword occurs will be covered and shown; Otherwise, additional display;
Key search is carried out to feedback information, it is automatic if keyword occurs to send the corresponding command information;
Step 4: when the keyword for retrieving end mark, system is given tacit consent to completion debugging and given automatically to be prompted.
In the present embodiment, feedback information is retrieved, if the information that n-th receives with the N-1 times receives is identical, Sent after being received to VxWorks system control module n-th and send different orders after being received from the N-1 times;
If the feedback information received has multirow, the keyword is located at the end of last column of feedback information;
If the feedback information received only has a line, this feedback information is all retrieved;
If the feedback information deficiency a line received, retrieve the existing information of current line.
It is appreciated that:If feedback information detection judges correct to corresponding keyword, feedback information.
This debugging system application method is as follows:
This debugging system interface includes:Serial port setting area, comprising port and baud rate choice box, " opening port " with " closing Closed end mouth " button;Serial ports " transmission " button;Serial ports reception area;Serial ports sends area;
Step 1: the externally fed power supply 6 of debugging is ready to, equipped with this debugging system and FTP network loading tools PC 5, VxWorks system control panel 1, and its debugging bottom plate 2, are connected on PC ends and Target Board with RS232 Serial Port Lines 4 RS232 serial ports, and connect the network interface on PC ends and Target Board with netting twine 3.
Step 2: open FTP (FTP path is the path for the VxWorks file that need to be replicated) and this serial ports tune in PC 5 Trial work has;
Step 3: selection debugging acid corresponds to serial port (baud rate is acquiescence 9600) and clicks on " opening port " button;
Step 4: VxWorks system operation information is received automatically to electricity, serial ports reception area on VxWorks Target Board, automatically Detection judges information correctness, correctly then sends the corresponding command automatically, and commissioning staff only needs to wait for it and is automatically performed, such as:Return Writing in reply, breath is received by VxWorks protocol requirement automatically, VxWorks are System Formatted, file replicates, system parameters are checked, are opened Dynamic parameter modification etc., after the completion of instrument page center jump out prompting frame " VxWorks system debug has been completed ", by confirming back Car completes debugging.
This method serial port setting is simple, and debug time was foreshortened to 10 minutes by more than 30 minutes, removes from cumbersome artificial Input through keyboard operates, and both ensures quality, improves debugging production efficiency again.
A kind of serial ports automatic debugging system of the present invention and method are more efficient, cost is lower, function using C# language exploitation It is more powerful;The input of instruction is not that timing is sent, but the information returned according to master control borad, and only return information correctly just can be past Lower execution, it is ensured that complete the correct of result;It is a large amount of to reduce commissioning staff's operation element amount, input error is occurred without, improves and adjusts Produce efficiency as a trial.
It is last it is to be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations.To the greatest extent The present invention is described in detail with reference to the foregoing embodiments for pipe, it will be understood by those within the art that:It is still Technical scheme described in foregoing embodiments can be modified, or which part technical characteristic is equally replaced Change;And these modifications or replacement, the essence of appropriate technical solution is departed from the essence of various embodiments of the present invention technical scheme God and scope.

Claims (7)

  1. A kind of 1. serial ports automatic debugging system, it is characterised in that:Including:VxWorks system control module (1), debugging bottom plate (2), RS232 Serial Port Lines (3), netting twine (4), PC (5) and power supply (6) and power line (7);
    The VxWorks system control module (1) is connected by intensive connector with the debugging bottom plate (2);
    The side of the debugging bottom plate (2) is connected by RS232 Serial Port Lines (3) and netting twine (4) with the PC (5) respectively;
    The opposite side of the debugging bottom plate (2) is connected by power line with the power supply (6);
    The PC (5) is provided with serial port setting module, and the serial port setting module includes:Port selecting unit and baud rate choosing Unit is selected, and being capable of control port closing or opening;
    The PC (5) is provided with receiving module, and the receiving module receives the echo number from VxWorks system control module It is believed that breath, and it is capable of the display pattern and sending mode of automatic decision selection information.
  2. 2. serial ports automatic debugging system according to claim 1, it is characterised in that:The receiving module display mode information For additional pattern or covering pattern.
  3. 3. serial ports automatic debugging system according to claim 1, it is characterised in that:The receiving module is when reception When VxWorks system control module feedback information is identical with last time, then VxWorks system control module is sent and sent with last time Different orders.
  4. A kind of 4. automatic adjustment method of serial ports, it is characterised in that:Comprise the following steps:
    Step 1: serial port setting module is initialized, including port and Configuration of baud rate;
    Step 2: receiving module receives the order feedback information of VxWorks system control module automatically;
    Step 3: order feedback information of the receiving module to VxWorks system control module is analyzed;
    Key search is carried out to feedback information, the information that keyword is expert at if keyword occurs will be covered and shown;Otherwise, Additional display;
    Key search is carried out to feedback information, it is automatic if keyword occurs to send the corresponding command information;
    Step 4: when the keyword for retrieving end mark, system is given tacit consent to completion debugging and given automatically debugs completed carry Show.
  5. 5. the automatic adjustment method of serial ports according to claim 4, it is characterised in that:In the step 3, to feedback information Retrieved, if the information that n-th receives with the N-1 times receives is identical, VxWorks system control module n-th is connect Sent after receipts and send different orders after being received from the N-1 times.
  6. 6. the automatic adjustment method of serial ports according to claim 4, it is characterised in that:In the step 3, if what is received is anti- Feedforward information has multirow, then the keyword is located at the end of last column of feedback information;
    If the feedback information received only has a line, the full line feedback information is all retrieved;
    If the feedback information deficiency a line received, retrieve the existing information of current line.
  7. 7. the automatic adjustment method of serial ports according to claim 6, it is characterised in that:The feedback information retrieves accordingly Keyword, then feedback information judgement is correct.
CN201710529665.5A 2017-07-02 2017-07-02 Automatic serial port debugging system and method Active CN107341079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710529665.5A CN107341079B (en) 2017-07-02 2017-07-02 Automatic serial port debugging system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710529665.5A CN107341079B (en) 2017-07-02 2017-07-02 Automatic serial port debugging system and method

Publications (2)

Publication Number Publication Date
CN107341079A true CN107341079A (en) 2017-11-10
CN107341079B CN107341079B (en) 2021-06-18

Family

ID=60219313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710529665.5A Active CN107341079B (en) 2017-07-02 2017-07-02 Automatic serial port debugging system and method

Country Status (1)

Country Link
CN (1) CN107341079B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566953A (en) * 2009-02-12 2009-10-28 山东超越数控电子有限公司 Method for transplanting VXWORKS operating system
CN102495781A (en) * 2011-11-30 2012-06-13 青岛海信信芯科技有限公司 Debugging method and debugging system of SOC chip
CN102541709A (en) * 2010-12-27 2012-07-04 佛山市顺德区顺达电脑厂有限公司 Serial port debugging tool and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566953A (en) * 2009-02-12 2009-10-28 山东超越数控电子有限公司 Method for transplanting VXWORKS operating system
CN102541709A (en) * 2010-12-27 2012-07-04 佛山市顺德区顺达电脑厂有限公司 Serial port debugging tool and method
CN102495781A (en) * 2011-11-30 2012-06-13 青岛海信信芯科技有限公司 Debugging method and debugging system of SOC chip

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李涛: "基于ARM的嵌入式电阻层析成像测量系统设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
谢李李: "VxWorks下的串口调试", 《2004年全国第五届嵌入式系统学术交流会论文集》 *

Also Published As

Publication number Publication date
CN107341079B (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN105306298B (en) Long distance wireless test macro and test method based on vehicle network
CN105095817B (en) Intelligent robot method for diagnosing faults, apparatus and system based on artificial intelligence
Wilson et al. The aggregate level simulation protocol: an evolving system
US20080103737A1 (en) Simulation system for facts connected online to scada system
DE102012109829A1 (en) Method and device for controlling street lamps
CN106060066A (en) Embedded linux-based method for realizing terminal maintenance and information release
CN108965293B (en) Message analysis method and device and electronic equipment
CN109660399A (en) A kind of method and system of remote debugging
CN110472856A (en) Automated network cutover management method based on self-service displaying process layout
CN107911227A (en) A kind of breakpoint data follow-up method, electronic device and computer-readable recording medium
CN109598427A (en) Management method, device and the electronic equipment of robot
CN109873867A (en) Express cabinet information transmission method, device and system, express cabinet and storage medium
CN104407898A (en) Software remote upgrade system and method for photovoltaic array smart junction box
CN109064810A (en) A kind of operation notification method and device based on education operating system
CN107341079A (en) A kind of serial ports automatic debugging system and method
CN109861833A (en) A kind of express delivery cabinet remote reboot system and method
CN104063227B (en) A kind of instruction learning method based on Internet of Things
US20040019397A1 (en) Method and configurator for creating a plant concept from a number of plant components
CN206075033U (en) A kind of intelligent substation sequence debugging emulation equipment based on anti-misoperation locking
CN105843120B (en) It is a kind of can dynamic programming signal deteching circuit and method
CN106652416B (en) A kind of debugging output method suitable for centralized automatic meter-reading terminal
CN201556402U (en) Network mixed-screen display system
CN102339051B (en) Automatic control system and method for wire rope cutting command
CN205121274U (en) Serial ports stipulations message signal testing terminal row
CN105159212B (en) Mobile handling machinery state point examines maintenance monitoring system and method

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