CN115168189A - DMI software automatic control method and system based on virtual serial port - Google Patents

DMI software automatic control method and system based on virtual serial port Download PDF

Info

Publication number
CN115168189A
CN115168189A CN202210718245.2A CN202210718245A CN115168189A CN 115168189 A CN115168189 A CN 115168189A CN 202210718245 A CN202210718245 A CN 202210718245A CN 115168189 A CN115168189 A CN 115168189A
Authority
CN
China
Prior art keywords
virtual
control
serial port
software
dmi
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
CN202210718245.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.)
CRSC Research and Design Institute Group Co Ltd
Original Assignee
CRSC Research and Design Institute Group 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 CRSC Research and Design Institute Group Co Ltd filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202210718245.2A priority Critical patent/CN115168189A/en
Publication of CN115168189A publication Critical patent/CN115168189A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Landscapes

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

Abstract

The invention relates to a DMI software automatic control method and a system based on a virtual serial port, wherein the control method comprises virtual key control, and the virtual key control comprises the following steps: completing information acquisition through the virtual keys, and transmitting the acquired information to the control software; the control software receives the information sent by the virtual keys and processes and calculates the information; and the control software controls the DMI software through the virtual serial port group. The control system comprises a virtual key control module, and the virtual key control module comprises: the device comprises a virtual acquisition unit, an information processing unit and a control unit. According to the invention, a testing person does not need to operate the DMI man-machine interface in a manual mode, so that on one hand, the testing efficiency can be improved, and favorable conditions are created for realizing automatic testing, on the other hand, the testing person controls the testing person on the PC, the situation that the body health is influenced by radiation when the testing person directly controls DMI software can be avoided, and the safety of the testing person is ensured.

Description

DMI software automatic control method and system based on virtual serial port
Technical Field
The invention belongs to the technical field of automatic software control, and particularly relates to a DMI software automatic control method and system based on a virtual serial port.
Background
In the field of rail transit, a Driver Machine Interface (DMI), also called a Driver-vehicle device Interface, is a platform for communication between a Driver and a vehicle device. Through the DMI man-machine interface, a driver can acquire a series of driving information such as running speed, alarm speed, distance from a pattern drawing point and the like; on the other hand, the driver also needs to send control commands to the ATP (automatic train protection) through the DMI human machine interface.
In order to ensure safe and reliable train running, potential errors or defects are found, and test work is carried out. As shown in fig. 1, the conventional detection mode is usually realized through hardware key control, the hardware key control includes manual control and mechanical arm control, the hardware key sends the acquired information to the serial port, and the serial port sends the information to the DMI software. But the hardware key control speed is slow, the automatic test is difficult to realize, and the test efficiency is not high; when the DMI human-computer interface is controlled and information is recorded, because the DMI human-computer interface has radiation, a tester needs to manually control the keys for a long time in the operation process, and the long-time radiation irradiation can influence the health of the tester; and the mechanical arm is large in size and difficult to realize desktop-level test.
Through retrieval, a Chinese patent with publication number CN113542087A discloses a vehicle-mounted human-computer interaction system of a digital tram and a communication control method thereof, which comprises three subsystems of a data communication system, a human-computer interaction platform and a human-computer interaction interface software system. The man-machine interaction interface software system consists of a button response system and an interface display system, wherein the button response system comprises a vehicle-mounted man-machine interface and two controllable keyboards. When the digital tram vehicle-mounted man-machine interaction system is in an input state, the fixed function key is operated by a driving program, and the input information of the driving program is displayed in an input frame by a vehicle-mounted man-machine interface; the expandable function keys are divided into three levels of menus: pressing keys in the first-level menu to enter a second-level menu; pressing a key in the second-level menu to enter a third-level menu; for example, when the train is in a stop state, the driver presses a 'data' key in the first-level menu of the extensible function keys to enter the second-level menu; then pressing a 'train data' key in the second-level menu to enter a third-level menu; in the third level menu, there are three keys, "confirm", "delete", and "cancel". The driver inputs a new train length by operating the fixed function key and then presses the "ok" button in the three-level menu of the extensible function key. In conclusion, in the application, when the vehicle-mounted human-computer interaction system of the train is controlled, the driver needs to manually press the operable keyboard, and automatic interaction cannot be realized.
Chinese patent publication No. CN103257925A discloses an automatic test system for train operation monitoring recording software, which includes: the automatic test device for the train operation monitoring recording software, the CAN controller, the simulation test equipment and the train operation monitoring recording device carry out automatic test and regression test on the software test of the train operation monitoring recording device, thereby improving the test efficiency and reducing the test cost. However, the problem mainly solved in this application is that the manual test mode has a large workload and high cost, and the problem of influence of radiation and the like caused when the DMI software is manually controlled cannot be solved.
In order to solve the above problems, it is necessary to design a method and a system for automatically controlling DMI software based on a virtual serial port.
Disclosure of Invention
Aiming at the problems, the invention provides a DMI software automatic control method based on a virtual serial port,
the control method comprises virtual key control, wherein the virtual key control comprises the following steps:
information acquisition is completed through the virtual keys, and the acquired information is transmitted to the control software;
the control software receives the information sent by the virtual keys and processes and calculates the information;
and the control software controls the DMI software through the virtual serial port group.
Preferably, the information collection through the virtual key comprises manual control and automatic execution.
Preferably, the control method further comprises hardware key control, and the hardware key control comprises:
information collection is completed through hardware keys, and information is sent to control software through a hardware serial port 1;
the control software receives the information sent by the hardware key and processes and calculates the information;
and the control software controls the DMI software through the virtual serial port group.
Preferably, the information acquisition completed through hardware keys comprises manual control and mechanical arm control.
Preferably, the virtual serial port group comprises a serial port 2 and a serial port 3.
Preferably, the control software is capable of adjusting the priority of the virtual key control and the hardware key control.
The invention also provides a DMI software automatic control system based on the virtual serial port,
the control system includes a virtual key control module, the virtual key control module including: the system comprises a virtual acquisition unit, an information processing unit and a control unit;
the virtual acquisition unit is used for acquiring information and sending the acquired information to the information processing unit;
the information processing unit is used for processing and calculating the received information;
and the control unit is used for controlling the DMI software according to the processed and calculated information.
Preferably, the virtual acquisition unit comprises a virtual key.
Preferably, the information acquisition mode of the virtual key comprises manual control and automatic execution.
Preferably, the information processing unit includes control software.
Preferably, the control unit includes a virtual serial port group.
Preferably, the virtual serial port group comprises a serial port 2 and a serial port 3.
Preferably, the control system further comprises a hardware key control module, and the hardware key control module comprises a hardware acquisition unit.
Preferably, the hardware acquisition unit and the virtual acquisition unit share the information processing unit and the control unit.
Preferably, the hardware acquisition unit includes a hardware key and a serial port 1.
Preferably, the manner of acquiring information by the hardware acquisition unit includes manual control and mechanical arm control.
The invention has the following beneficial effects:
(1) The invention adds a virtual key control mode on the basis of the traditional hardware key control, the virtual keys are integrated on the PC, and the virtual key control realizes the automatic control of DMI human-computer interface software through a virtual serial port group, and a tester does not need to operate the DMI human-computer interface in a manual mode, so that on one hand, the testing efficiency can be improved, and favorable conditions are created for the realization of automatic testing, on the other hand, the tester controls on the PC, the situation that the body health is influenced by radiation when the tester directly controls the DMI software can be avoided, and the safety of the tester is ensured;
(2) Compared with the mode of controlling the DMI software through the mechanical arm, the control method disclosed by the application does not need to arrange the mechanical arm additionally when controlling the DMI software, so that the overall floor area of the equipment is smaller, and the arrangement of the device and the desktop-level test are facilitated;
(3) In the invention, the control software can adjust the priority of the virtual key control and the hardware key control, and can adjust the priority of the hardware key control of the virtual key control box according to the actual requirement, thereby improving the flexibility of the system;
(4) The control software controls the DMI software through the virtual serial port group, does not change the original DMI code, only modifies the running environment of the DMI, such as an operating system, ensures the independence of the DMI software, and does not influence the function of the DMI software.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 illustrates a control diagram for a conventional DMI software in an embodiment of the present invention;
fig. 2 is a flowchart illustrating a control method of a virtual serial port-based DMI software automatic control method according to an embodiment of the present invention;
fig. 3 shows a flow chart of a control system of a virtual serial port-based DMI software automatic control system according to an embodiment of the present invention;
fig. 4 is a diagram illustrating a virtual serial port-based device for automatic control of DMI software according to an embodiment of the present invention;
fig. 5 illustrates a DMI operation key menu diagram in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 2, the present invention provides a method for automatically controlling DMI software based on a virtual serial port, where the method includes virtual key control, and the virtual key control includes: information acquisition is completed through the virtual keys, and the acquired information is transmitted to the control software; the control software receives the information sent by the virtual keys and processes and calculates the information, including but not limited to comparing the priorities of the virtual keys and the hardware keys, such as decomposing one instruction into a plurality of instructions; and the control software controls the DMI software through the virtual serial port group. The control method also comprises hardware key control, wherein the hardware key control comprises the following steps: information collection is completed through hardware keys, and information is sent to control software through a hardware serial port 1; the control software receives the information sent by the hardware key and processes and calculates the information; the control software controls the DMI software through the virtual serial port group; the control software can adjust the priority of the virtual key control and the hardware key control, thereby improving the flexibility of the system.
In summary, the invention adds a virtual key control mode on the basis of the traditional hardware key control, realizes the automatic control of the DMI human-computer interface software through the virtual serial port group in the virtual key control, and the automatic execution is specifically the automatic execution through the script, so that a tester does not need to operate the DMI human-computer interface in a manual mode, on one hand, the test efficiency can be improved, and favorable conditions are created for the realization of the automatic test, on the other hand, the tester controls on the PC, the condition that the body health is influenced by radiation when the tester directly controls the DMI software can be avoided, and the safety of the tester is ensured.
In addition, when the DMI software is controlled in the control method disclosed by the application, no additional mechanical arm is needed, so that the overall occupied area of the equipment is smaller, and the arrangement of the device and the desktop-level test are facilitated.
As shown in fig. 3, the present invention further provides a DMI software automatic control system based on a virtual serial port, where the control system includes a virtual key control module, and the virtual key control module includes: the system comprises a virtual acquisition unit, an information processing unit and a control unit; the virtual acquisition unit is used for acquiring information and sending the acquired information to the information processing unit, the virtual acquisition unit comprises virtual keys, the virtual keys can be integrated on a PC (personal computer), a tester can directly control the PC, and the information acquisition mode of the virtual keys comprises manual control and automatic execution; the information processing unit is used for processing and calculating the received information and comprises control software; the control unit is used for controlling the DMI software according to the processed and calculated information, and comprises a virtual serial port group, wherein the virtual serial port group comprises a serial port 2 and a serial port 3.
The control system further comprises a hardware key control module, the hardware key control module comprises a hardware acquisition unit, the hardware acquisition unit and the virtual acquisition unit share an information processing unit and a control unit, the hardware acquisition unit comprises hardware keys and a serial port 1, and the mode of acquiring information by the hardware acquisition unit comprises manual control and mechanical arm control.
As shown in fig. 4, the control on the DMI software includes hardware key control and virtual key control, the hardware key completes information acquisition including manual control and mechanical arm control, when the hardware key control is used, the hardware key receives an instruction and then sends the information to the control software through the serial port 1, the control software can adjust the priority of the virtual key control and the hardware key control, and further improve the flexibility of the system, the control software processes and calculates the acquired information and then sends the information to the DMI software through the serial port 3 and the serial port 2, the serial port 2 and the serial port 3 form a virtual serial port group, the serial port 3 is connected with the control software, the serial port 2 is connected with the DMI software, the DMI software executes corresponding action according to the processed and calculated information, and the traditional effect of controlling the DMI software through the hardware key can be realized through the above processes.
The virtual key finishes information collection including manual control and automatic execution, when the virtual key is used for control, the virtual key receives an instruction and then sends information to control software, the control software can adjust the priority of virtual key control and hardware key control, the flexibility of the system is further improved, the control software processes and calculates the collected information and then sends the information to DMI software through a serial port 3 and a serial port 2 in sequence, the serial port 2 and the serial port 3 form a virtual serial port group, the serial port 3 is connected with the control software, the serial port 2 is connected with the DMI software, the DMI software executes corresponding actions according to the processed and calculated information, and the effect of automatic control of the DMI software through the virtual serial port can be achieved through the process. In this embodiment, the virtual keys may be integrated on an existing control device, such as a PC, a mobile phone, a pad, and the like, and a tester controls the control device and may automatically control and execute the virtual keys.
Serial communication is a communication means, and serial communication is to send and receive bytes by using serial bits. The serial port can transmit data by using one wire and receive data by using the other wire, and the serial port 2 and the serial port 3 are realized by software simulation, such as a virtual terminal under a Linux system.
As shown in fig. 5, there are 2 keyboards on the DMI software, which are an expandable function keyboard and a fixed function keyboard, respectively, the expandable function keyboard is located on the right side of the DMI software, the fixed function keyboard is located on the lower side of the DMI software, and the expandable function keyboard includes 8 keys, which are F1 to F8, respectively, where F1 is a data key, and checks text information or enters a next-level menu to modify information such as driver number, train data, and the like; f2 is a mode key, which allows a driver to manually select a control mode of the train control vehicle-mounted equipment, wherein the selectable modes comprise: visually observing a driving mode, a shunting mode and a locomotive signal mode; f3 is a carrier frequency key, and an upper frequency and a lower frequency are selected; f4 is a grade key and is used for switching CTCS-3, CTCS-2 and CTCS-3D grades of train operation by a driver; f5 is other keys, and special operations such as braking test, DMI screen brightness adjustment, volume adjustment and the like are executed; f6 is a start key and is used for switching from a standby state to a normal operation state when driving; f7 is a link bond; f8 is an alert key.
The fixed function keys comprise 11 keys and only need to be operated according to the functions marked at the upper left corner of the keys.
It should be noted that the testing of the DMI software is only one of the application scenarios in the present application, and other scenarios that require the control of the DMI software are also applicable.
Those of ordinary skill in the art will understand that: although the present invention has been described in detail with reference to the foregoing embodiments, modifications may be made to the technical solutions described in the foregoing embodiments, or some technical features may be replaced with equivalents; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (16)

1. A DMI software automatic control method based on virtual serial port is characterized in that,
the control method comprises virtual key control, wherein the virtual key control comprises the following steps:
completing information acquisition through the virtual keys, and transmitting the acquired information to the control software;
the control software receives the information sent by the virtual keys and processes and calculates the information;
and the control software controls the DMI software through the virtual serial port group.
2. The DMI software automatic control method based on virtual serial port of claim 1, wherein,
the information acquisition completed through the virtual keys comprises manual control and automatic execution.
3. The DMI software automatic control method based on the virtual serial port of claim 1,
the control method further comprises hardware key control, wherein the hardware key control comprises the following steps:
information collection is completed through hardware keys, and information is sent to control software through a hardware serial port 1;
the control software receives the information sent by the hardware key and processes and calculates the information;
and the control software controls the DMI software through the virtual serial port group.
4. The DMI software automatic control method based on virtual serial port of claim 3, wherein,
the information acquisition completed through the hardware keys comprises manual control and mechanical arm control.
5. The DMI software automatic control method based on the virtual serial port of claim 1,
the virtual serial port group comprises a serial port 2 and a serial port 3.
6. The DMI software automatic control method based on the virtual serial port of claim 3 or 4, wherein,
the control software can adjust the priority of the virtual key control and the hardware key control.
7. A DMI software automatic control system based on a virtual serial port is characterized in that,
the control system comprises a virtual key control module, and the virtual key control module comprises: the system comprises a virtual acquisition unit, an information processing unit and a control unit;
the virtual acquisition unit is used for acquiring information and sending the acquired information to the information processing unit;
the information processing unit is used for processing and calculating the received information;
and the control unit is used for controlling the DMI software according to the processed and calculated information.
8. The DMI software automatic control system based on virtual serial port of claim 7,
the virtual acquisition unit comprises a virtual key.
9. The DMI software automatic control system based on the virtual serial port of claim 8,
the information acquisition mode of the virtual key comprises manual control and automatic execution.
10. The DMI software automatic control system based on virtual serial port of claim 7,
the information processing unit includes control software.
11. The DMI software automatic control system based on the virtual serial port of claim 7,
the control unit comprises a virtual serial port group.
12. The DMI software automatic control system based on the virtual serial port of claim 11,
the virtual serial port group comprises a serial port 2 and a serial port 3.
13. The DMI software automatic control system based on the virtual serial port of any one of claims 7 to 12,
the control system further comprises a hardware key control module, and the hardware key control module comprises a hardware acquisition unit.
14. The DMI software automatic control system based on virtual serial port of claim 13,
the hardware acquisition unit and the virtual acquisition unit share the information processing unit and the control unit.
15. The DMI software automatic control system based on the virtual serial port of claim 13,
the hardware acquisition unit comprises hardware keys and a serial port 1.
16. The DMI software automatic control system based on the virtual serial port of claim 13,
the mode of the hardware acquisition unit for acquiring information comprises manual control and mechanical arm control.
CN202210718245.2A 2022-06-21 2022-06-21 DMI software automatic control method and system based on virtual serial port Pending CN115168189A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210718245.2A CN115168189A (en) 2022-06-21 2022-06-21 DMI software automatic control method and system based on virtual serial port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210718245.2A CN115168189A (en) 2022-06-21 2022-06-21 DMI software automatic control method and system based on virtual serial port

Publications (1)

Publication Number Publication Date
CN115168189A true CN115168189A (en) 2022-10-11

Family

ID=83487767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210718245.2A Pending CN115168189A (en) 2022-06-21 2022-06-21 DMI software automatic control method and system based on virtual serial port

Country Status (1)

Country Link
CN (1) CN115168189A (en)

Similar Documents

Publication Publication Date Title
US6216095B1 (en) Automated in situ testing of railroad telemetry radios
US6550586B1 (en) Display operating device for elevator
CN104442925B (en) The redundancy display methods of display in a kind of train operation monitoring device
WO2023125852A1 (en) Remote diagnosis method and apparatus, and electronic device and storage medium
CN107745727A (en) A kind of high-speed railway case of emergency processing system
CN111007837A (en) Test system and method for testing TCMS
CN102476638A (en) Vehicular information supply system and method
CN107526353A (en) A kind of automotive diagnostic system and method
CN104890684B (en) Automatic train speed restricting and speed restriction removing method based on TCMS (train control and management system)
CN115168189A (en) DMI software automatic control method and system based on virtual serial port
CN113715854A (en) Method, device, storage medium, and program product for controlling train driver station
CN111960208A (en) Elevator remote data acquisition method and system
CN109116760B (en) Control method and control system of parking device
EP1126640A1 (en) Automated in situ testing of railroad telemetry radios
CN114253246B (en) Device and method for testing automatic train driving system
CN114740814A (en) Finished automobile control method based on cloud control system, cloud control system and electric framework
CN111645722A (en) Locomotive signal application state on-vehicle analysis method and device
CN111968354A (en) Automatic debugging system of fire alarm system of motor train unit
CN111248572A (en) Detection method based on intelligent safety helmet and intelligent safety helmet
CN113428192B (en) Vehicle control method, device, equipment and readable storage medium
CN110161402A (en) A kind of monitoring of track circuit failure and diagnostic system
CN220305682U (en) Portable intelligent detector of special type vehicle management combination
US20240149886A1 (en) Vehicle-mounted device and system
CN113085822B (en) Minimum safety system, control method and device for intelligent driving mine car and storage medium
CN114296422B (en) CTC 3.0-based station yard centralized display and control method, equipment and medium

Legal Events

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