CN107748671A - A kind of auxiliary program realizes the method that application program updating and failure logging are downloaded - Google Patents

A kind of auxiliary program realizes the method that application program updating and failure logging are downloaded Download PDF

Info

Publication number
CN107748671A
CN107748671A CN201710954221.6A CN201710954221A CN107748671A CN 107748671 A CN107748671 A CN 107748671A CN 201710954221 A CN201710954221 A CN 201710954221A CN 107748671 A CN107748671 A CN 107748671A
Authority
CN
China
Prior art keywords
flash disk
usb flash
usb device
failure logging
created
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
CN201710954221.6A
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.)
CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Original Assignee
CRRC Qingdao Sifang Rolling Stock Research Institute 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 CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd filed Critical CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Priority to CN201710954221.6A priority Critical patent/CN107748671A/en
Publication of CN107748671A publication Critical patent/CN107748671A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • G07C5/085Registering performance data using electronic data carriers
    • G07C5/0858Registering performance data using electronic data carriers wherein the data carrier is removable

Abstract

The present invention provides a kind of method that auxiliary program realizes that application program updating and failure logging are downloaded, and includes the USB flash disk insert state of detection device, loads USB flash disk, uploads application program to equipment specified path, downloads the failure logging of equipment specified path to USB flash disk, unload USB flash disk.The present invention realizes the upgrading of appliance applications and the download of failure logging by USB flash disk, alleviates the working strength of attendant.

Description

A kind of auxiliary program realizes the method that application program updating and failure logging are downloaded
Technical field
The invention belongs to locomotive or the brake control art of vehicle, more particularly to a kind of auxiliary program to realize and answer The method downloaded with program upgrading and failure logging, is mainly used in the braking control system of locomotive or vehicle.
Background technology
Braking display screen is the monitor terminal of locomotive braking system, main to be responsible for initialization locomotive brake control system, reality When monitoring system working condition and fault diagnosis and store function.
At present, it is domestic with locomotive brake display screen problems be present:Brake display screen application program update and System failure record is downloaded to be realized, it is necessary to by ethernet netting twine, PC and PC ends software, complex operation by Ethernet.
Therefore, the prior art is defective, it is necessary to improve.
The content of the invention
The technical problems to be solved by the invention are in view of the shortcomings of the prior art, there is provided a kind of auxiliary program realizes application The method that program upgrades and failure logging is downloaded.
Technical scheme is as follows:
A kind of method that assisted process realizes program upgrading and failure logging, comprises the following steps:
The first step, application object is created, go to second step;
Second step, create window object;Create a QDBUS HAL management interfaces, association USB device into and out Signal;By the click signal associated slots function of " software upgrading ", " failure download " and " exiting " three buttons;Display window pair As;Go to the 3rd step;
3rd step, into application program main event circulate;When USB device inserts, the 4th step is gone to;When USB device pulls out When going out, the 5th step is gone to;When " software upgrading " button is pressed, the 6th step is gone to;When " failure download " button is pressed, Go to the 7th step;When " exiting " button is pressed, the 8th step is gone to;
4th step, the USB flash disk of identification insertion;If identifying USB device, preserve and export USB device path udi;It is no Then, fault cues information is exported;Go to the 4th step;
The USB flash disk that 5th step, identification are extracted;If identifying USB device, prompt message is exported;Otherwise, output error carries Show information;Go to the 3rd step;
Application program in 6th step, renewal display screen;If be updated successfully, successfully prompt message is exported;If renewal Failure, output error prompt message;Go to the 4th step;
7th step, failure logging in display screen is downloaded to USB flash disk;If downloaded successfully, successfully prompt message is exported;If Failed download, output error prompt message;Go to the 4th step;
8th step, unloading USB flash disk;User is prompted to extract USB flash disk;Restart display screen.
It is above-mentioned, in the first step:The detailed process for creating application object is as follows:Initial window system, with life Order row structure application object.
It is above-mentioned, in the second step:The detailed process for creating window object is as follows:Top layer desktop example is created, by top layer Desktop example generates window object, sets window object title and resolution ratio, window object is moved into center Screen.
It is above-mentioned, in the 4th step:Identify that the detailed process of the USB flash disk of insertion is as follows:When USB device inserts, signal can be taken The udi parameters of carrying device, the HAL interfaces of the equipment are created to obtain association attributes.
It is above-mentioned, in the 5th step:Identify that the detailed process for the USB flash disk extracted is as follows:When USB device is extracted, signal can be taken The udi parameters of carrying device;If this udi is identical with the udi preserved before, show that USB device has been extracted.
It is above-mentioned, in the 6th step:The detailed process for updating the application program in display screen is as follows:If the non-carry of USB flash disk, A process object is created, carry order is performed, USB device is mapped into local directory;A process object is created, searches U New application program in disk;If searched successfully, a process object is created, copy command is performed, with new in USB device The old edition application program in version application program coverage goal path.
It is above-mentioned, in the 7th step:The detailed process for downloading failure logging to the USB flash disk in display screen is as follows:If USB flash disk is not Carry, a process object is created, perform carry order, USB device is mapped into local directory;A process object is created, Search the failure logging in display screen specified path;If searched successfully, a process object is created, performs copy command, will The failure logging of specified path is copied to the local directory of USB device mapping.
It is above-mentioned, in the 8th step:The detailed process for unloading USB flash disk is as follows:A process object is created, performs unloading life Order, departs from mapping path by USB device;The detailed process for restarting display screen is as follows:A process object is created, performs system System reset command, restarting braking display screen.
It is above-mentioned, the Booting sequence of auxiliary program is also performed before the first step, is comprised the following steps:
Step 101:" system maintenance " button is added in the window object of application program, when this button is clicked, goes to step Rapid 102;
Step 102:A process object is created, performs and starts auxiliary program order;Go to step 103;
Step 103:Exit application program.
Using such scheme, the upgrading of braking display applications program is realized by USB interface and failure logging is downloaded, is subtracted The light working strength of attendant.
Brief description of the drawings
Fig. 1 is the auxiliary program operational process schematic diagram of the present invention.
Fig. 2 is the auxiliary program Booting sequence schematic diagram of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment
As shown in figure 1, to realize that the method that application program and failure logging are downloaded includes following for the auxiliary program of the present embodiment Step:
1) operational process of auxiliary program
The first step, application object is created, go to second step;
Wherein, the detailed process for creating application object is as follows:Initial window system, journey is applied with order line structure Ordered pair as.
Second step, create window object;Create a QDBUS HAL management interfaces, association USB device into and out Signal;By the click signal associated slots function of " software upgrading ", " failure download " and " exiting " three buttons;Display window pair As;Go to the 3rd step;
Wherein, the detailed process for creating window object is as follows:Top layer desktop example is created, window is generated by top layer desktop example Mouth object, sets window object title and resolution ratio, window object is moved into center Screen.
3rd step, into application program main event circulate;When USB device inserts, the 4th step is gone to;When USB device pulls out When going out, the 5th step is gone to;When " software upgrading " button is pressed, the 6th step is gone to;When " failure download " button is pressed, Go to the 7th step;When " exiting " button is pressed, the 8th step is gone to;
4th step, the USB flash disk of identification insertion;If identifying USB device, preserve and export USB device path udi;It is no Then, fault cues information is exported;Go to the 4th step;
Wherein, identify that the detailed process of the USB flash disk of insertion is as follows:When USB device inserts, the udi ginsengs of signal meeting Portable device Number, the HAL interfaces of the equipment are created to obtain association attributes;
The USB flash disk that 5th step, identification are extracted;If identifying USB device, prompt message is exported;Otherwise, output error carries Show information;Go to the 3rd step;
Wherein, identify that the detailed process of the USB flash disk of extraction is as follows:When USB device is extracted, the udi ginsengs of signal meeting Portable device Number;If this udi is identical with the udi preserved before, show that USB device has been extracted;
Application program in 6th step, renewal display screen;If be updated successfully, successfully prompt message is exported;If renewal Failure, output error prompt message;Go to the 4th step;
Wherein, the detailed process for updating the application program in display screen is as follows:If the non-carry of USB flash disk, a process is created Object, carry order is performed, USB device is mapped into local directory;A process object is created, the new edition searched in USB flash disk should Use program;If searched successfully, a process object is created, copy command is performed, is covered with the new application program in USB device The old edition application program of lid destination path;
7th step, failure logging in display screen is downloaded to USB flash disk;If downloaded successfully, successfully prompt message is exported;If Failed download, output error prompt message;Go to the 4th step;
Wherein, the detailed process for downloading failure logging to the USB flash disk in display screen is as follows:If the non-carry of USB flash disk, one is created Process object, carry order is performed, USB device is mapped into local directory;A process object is created, display screen is searched and specifies Failure logging in path;If searched successfully, a process object is created, copy command is performed, by the failure of specified path The local directory that record copies map to USB device;
8th step, unloading USB flash disk;User is prompted to extract USB flash disk;Restart display screen;
Wherein, the detailed process for unloading USB flash disk is as follows:A process object is created, unloading order is performed, USB device is taken off From mapping path;
Wherein, the detailed process for restarting display screen is as follows:One process object of establishment, execution system reset command, Restarting braking display screen.
As shown in Fig. 2 also needing to perform the Booting sequence of auxiliary program before the first step, comprise the following steps:
Step 101:" system maintenance " button is added in the window object of application program, when this button is clicked, goes to step Rapid 102;
Step 102:A process object is created, performs and starts auxiliary program order;Go to step 103;Step 103:Move back Go out application program.
Using such scheme, the upgrading of braking display applications program is realized by USB interface and failure logging is downloaded, is subtracted The light working strength of attendant.
It should be appreciated that for those of ordinary skills, can according to the above description be improved or converted, And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.

Claims (9)

1. a kind of method that assisted process realizes program upgrading and failure logging, it is characterised in that:Comprise the following steps:
The first step, application object is created, go to second step;
Second step, create window object;Create a QDBUS HAL management interfaces, association USB device into and out letter Number;By the click signal associated slots function of " software upgrading ", " failure download " and " exiting " three buttons;Display window object; Go to the 3rd step;
3rd step, into application program main event circulate;When USB device inserts, the 4th step is gone to;When USB device is extracted, Go to the 5th step;When " software upgrading " button is pressed, the 6th step is gone to;When " failure download " button is pressed, go to 7th step;When " exiting " button is pressed, the 8th step is gone to;
4th step, the USB flash disk of identification insertion;If identifying USB device, preserve and export USB device path udi;Otherwise, it is defeated Be out of order prompt message;Go to the 4th step;
The USB flash disk that 5th step, identification are extracted;If identifying USB device, prompt message is exported;Otherwise, output error prompting letter Breath;Go to the 3rd step;
Application program in 6th step, renewal display screen;If be updated successfully, successfully prompt message is exported;If renewal failure, Output error prompt message;Go to the 4th step;
7th step, failure logging in display screen is downloaded to USB flash disk;If downloaded successfully, successfully prompt message is exported;If download Failure, output error prompt message;Go to the 4th step;
8th step, unloading USB flash disk;User is prompted to extract USB flash disk;Restart display screen.
2. the method that assisted process as claimed in claim 1 realizes program upgrading and failure logging, it is characterised in that:Described In one step:The detailed process for creating application object is as follows:Initial window system, application program pair is built with order line As.
3. the method that assisted process as claimed in claim 1 realizes program upgrading and failure logging, it is characterised in that:Described In two steps:The detailed process for creating window object is as follows:Top layer desktop example is created, window pair is generated by top layer desktop example As setting window object title and resolution ratio, window object being moved into center Screen.
4. the method that assisted process as claimed in claim 1 realizes program upgrading and failure logging, it is characterised in that:Described In four steps:Identify that the detailed process of the USB flash disk of insertion is as follows:When USB device inserts, the udi parameters of signal meeting Portable device, create The HAL interfaces of the equipment are to obtain association attributes.
5. the method that assisted process as claimed in claim 1 realizes program upgrading and failure logging, it is characterised in that:Described In five steps:Identify that the detailed process for the USB flash disk extracted is as follows:When USB device is extracted, the udi parameters of signal meeting Portable device;If This udi is identical with the udi preserved before, then shows that USB device has been extracted.
6. the method that assisted process as claimed in claim 1 realizes program upgrading and failure logging, it is characterised in that:Described In six steps:The detailed process for updating the application program in display screen is as follows:If the non-carry of USB flash disk, a process object is created, is held Row carry order, local directory is mapped to by USB device;A process object is created, searches the new application program in USB flash disk; If searched successfully, a process object is created, copy command is performed, with the new application program coverage goal in USB device The old edition application program in path.
7. the method that assisted process as claimed in claim 1 realizes program upgrading and failure logging, it is characterised in that:Described In seven steps:The detailed process for downloading failure logging to the USB flash disk in display screen is as follows:If the non-carry of USB flash disk, a process pair is created As performing carry order, USB device being mapped into local directory;A process object is created, is searched in display screen specified path Failure logging;If searched successfully, a process object is created, copy command is performed, the failure logging of specified path is copied The local directory that shellfish maps to USB device.
8. the method that assisted process as claimed in claim 1 realizes program upgrading and failure logging, it is characterised in that:Described In eight steps:The detailed process for unloading USB flash disk is as follows:Process object is created, unloading order is performed, USB device is departed from and mapped Path;The detailed process for restarting display screen is as follows:Create a process object, execution system reset command, restarting Brake display screen.
9. the method that assisted process as claimed in claim 1 realizes program upgrading and failure logging, it is characterised in that:Described The Booting sequence of auxiliary program is also performed before the first step, is comprised the following steps:
Step 101:" system maintenance " button is added in the window object of application program, when this button is clicked, goes to step 102;
Step 102:A process object is created, performs and starts auxiliary program order;Go to step 103;
Step 103:Exit application program.
CN201710954221.6A 2017-10-13 2017-10-13 A kind of auxiliary program realizes the method that application program updating and failure logging are downloaded Pending CN107748671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710954221.6A CN107748671A (en) 2017-10-13 2017-10-13 A kind of auxiliary program realizes the method that application program updating and failure logging are downloaded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710954221.6A CN107748671A (en) 2017-10-13 2017-10-13 A kind of auxiliary program realizes the method that application program updating and failure logging are downloaded

Publications (1)

Publication Number Publication Date
CN107748671A true CN107748671A (en) 2018-03-02

Family

ID=61253676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710954221.6A Pending CN107748671A (en) 2017-10-13 2017-10-13 A kind of auxiliary program realizes the method that application program updating and failure logging are downloaded

Country Status (1)

Country Link
CN (1) CN107748671A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090076628A1 (en) * 2007-09-18 2009-03-19 David Mark Smith Methods and apparatus to upgrade and provide control redundancy in process plants
CN104423993A (en) * 2013-09-03 2015-03-18 比亚迪股份有限公司 Automotive electronic equipment software updating method and terminal and automotive electronic system
CN106293806A (en) * 2016-07-27 2017-01-04 中航华东光电有限公司 Mirror image based on USB flash disk interface and the upgrade method of application program in road system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090076628A1 (en) * 2007-09-18 2009-03-19 David Mark Smith Methods and apparatus to upgrade and provide control redundancy in process plants
CN104423993A (en) * 2013-09-03 2015-03-18 比亚迪股份有限公司 Automotive electronic equipment software updating method and terminal and automotive electronic system
CN106293806A (en) * 2016-07-27 2017-01-04 中航华东光电有限公司 Mirror image based on USB flash disk interface and the upgrade method of application program in road system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YUZEZE: "x86下linux qt检测U盘插拔(一)-------HAL与UDISKS", 《CSDN博客 转自HTTP://BLOG.CSDN.NET/YANZI1225627/ARTICLE/DETAILS/7889613》 *

Similar Documents

Publication Publication Date Title
Chacon et al. Pro git
CN104156414B (en) A kind of method for cleaning of garbage files, device and terminal
US9647885B1 (en) System and method for server customization
US20180004577A1 (en) Methods and systems for managing interconnection of virtual network functions
US10055415B2 (en) Methods and systems for deploying hardware files to a computer
US20100042929A1 (en) Verification of software applications
US20050055690A1 (en) System and method for communication between computers via an integrated hardware device
WO2013191458A1 (en) License verification method and apparatus, and computer readable storage medium storing program therefor
CN108399072A (en) Five application page update method and device
JP2011013729A (en) Virtual machine management program and method for managing virtual machine
US11144292B2 (en) Packaging support system and packaging support method
CN108182129A (en) A kind of digital evidence obtaining system and method based on mobile terminal mirror image restoring data information
CN106371881A (en) Method and system for updating program versions in servers
CN109683880A (en) Webpage exchange method, device, equipment and storage medium
CN109614203B (en) Android application cloud data evidence obtaining and analyzing system and method based on application data simulation
CN105867962A (en) System upgrading method and device
US9047248B2 (en) Logical domain recovery
CN101833496B (en) Detection device based on host anti-object reusability of hard disk and detection method thereof
CN104200164B (en) Loader virus searching and killing method, device and terminal
CN107748671A (en) A kind of auxiliary program realizes the method that application program updating and failure logging are downloaded
TW200843458A (en) Data updating method and electric device using the same
CN109634690A (en) Data clearing method, device, terminal and storage medium based on WinPE system
CN115604256A (en) Mobile phone APP evidence obtaining method and system based on source data simulation and storage medium
CN103530151B (en) Customization method of Linux operating system capable of switching service software systems
CN106708558A (en) Method and device for closing application program

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180302