CN110083358B - Tool for modifying switch number of traction automatic switching device based on scripting language - Google Patents
Tool for modifying switch number of traction automatic switching device based on scripting language Download PDFInfo
- Publication number
- CN110083358B CN110083358B CN201910354845.3A CN201910354845A CN110083358B CN 110083358 B CN110083358 B CN 110083358B CN 201910354845 A CN201910354845 A CN 201910354845A CN 110083358 B CN110083358 B CN 110083358B
- Authority
- CN
- China
- Prior art keywords
- switch number
- file
- switch
- automatic switching
- python
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a tool for modifying the switch number of a traction automatic switching device based on a scripting language, which is characterized by comprising four aspects, namely an interface designed based on a Python scripting language; FTP login of Python scripting language; processing a switch number configuration file; and configuring a user login password. The invention realizes the modification of the switch number of the WBT-661 microcomputer automatic switching device, simplifies the modification steps, avoids the device fault caused by the modification error when the user operates the device file, and has the characteristics of usability, flexibility, cross-platform property and the like.
Description
Technical Field
The invention relates to an automatic switching device of a traction substation of a railway, which comprises the aspects of single machine debugging, screen assembly debugging, field operation maintenance and the like of the automatic switching device.
Background
Along with the development of the script language and the development of the Python language, the development is rapid and convenient, the development time is greatly shortened, and the WBT-661 microcomputer automatic switching protection device is largely used, the switch number of the automatic switching protection device is modified directly on the configuration file in the past, the system configuration file syscfg. Sci in the device is required to be manually deleted, the operation is relatively complex, and the safety of the device program cannot be ensured. For those devices which are already operated on site, the number of the automatic switching device needs to be modified, and a professional is required to modify the device, so that the cost is increased. Engineering personnel, debugging personnel and field maintenance personnel are urgent to need a modification tool for the automatic switching device.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides a tool for modifying the switch number of a traction automatic switching device based on a scripting language, which realizes the modification work of the switch number of the WBT-661 microcomputer automatic switching protection device, uniformly modifies a plurality of variables such as the switch number, the remote signaling amount, the switch amount, the protection action information, the wave recording switch amount and the like, simplifies the operation means, improves the safety of the WBT-661 microcomputer automatic switching protection device and improves the debugging efficiency; the cost is saved for the modification of the switch number of the WBT-661 microcomputer automatic switching protection device in field operation.
The technical scheme of the invention is as follows: the tool for modifying switch number of traction automatic switching device based on script language includes interface module designed based on Python script language, FTP login module of Python script language, switch number configuration file processing module and flexible user login password configuration module,
interfaces designed based on Python scripting language:
the library file of the Python script language third party GUI is used for manufacturing a visual user interface, so that the manufacturing is quick, flexible and convenient, and interfaces such as a switch modification interface, an FTP login interface, a loading parameter and the like are integrated;
FTP login of Python scripting language:
logging in the WBT-661 microcomputer automatic switching protection device by using the Python script language FTP method, reading the corresponding switch number file in the device, analyzing the switch number, modifying, and updating the corresponding file of the switch number by using the FTP method to finish the switch number updating;
switch number profile processing:
the switch number configuration file processing module is used for processing a switch number file of the WBT-661 microcomputer automatic switching protection device, wherein the switch number in the file relates to a plurality of variables such as an opening amount, a remote signaling amount, an opening amount, protection action information, a wave recording switching amount and the like, and the module realizes unified modification of the plurality of variables and updates the switch number file;
configuring a user login password:
the user login password configuration module is used for configuring an FTP login password function.
The above-mentioned instrument of automatic switching device switch numbering, its further characterized in that: the wxPython graphic library of Python script language is utilized, wxPython is a set of excellent GUI graphic library of Python language, so that Python programmers can conveniently create a complete and functional GUI user interface, integrate a main modification picture and a prompt box of CMD, and integrate modification of a main modification picture switch, selection of an IP address and four functional keys.
And the FTP login using the Python script language is used for updating the transmission file by adopting a 3-time reconnection retransmission mechanism, so that the reliability of the updated file is ensured.
The processing of the real-time load data adopts a self-description and dynamically-increased historical load data file structure.
The switch number configuration file processing is to use file reading to analyze the corresponding switch number according to the original file structure; and the modified switch number is related to a plurality of variables such as the opening amount, the remote signaling amount, the opening amount, the protection action information, the wave recording switching amount and the like according to the original file structure, so that the unified modification of the plurality of variables is realized.
And the configuration file is used for configuring the password of the user logging in the WBT-661 microcomputer automatic switching protection device.
The invention has the beneficial effects that: the tool for modifying and dragging the switch number of the automatic switching device based on the scripting language designs a main interface by using a wxPython graphic library of the Python scripting language, simplifies the operation means, improves the safety of the WBT-661 microcomputer automatic switching protection device and improves the debugging efficiency; the cost is saved for the modification of the switch number of the WBT-661 microcomputer automatic switching protection device in field operation.
Drawings
Fig. 1 is a flow chart of the switch number modification of the traction automatic switching device.
Detailed Description
The invention will be described in further detail with reference to the drawings and the specific embodiments.
The tool for modifying and pulling the switch number of the automatic switching device based on the scripting language comprises an interface module designed based on the Python scripting language, an FTP login module of the Python scripting language, a switch number configuration file processing module and a configuration user login password module. The main constitution and data flow are shown in fig. 1.
1. Interface module designed based on Python script language
The library file of the Python script language third party GUI is used for manufacturing a visual user interface, and a switch modification interface, an FTP login IP setting frame and four function keys are integrated:
the switch modification interface mainly displays the current numbers of eighteen switches and fills in the eighteen switch numbers which are modified in advance;
the FTP logs in the IP setting frame, is mainly used for filling in the IP of the WBT-661 microcomputer automatic switching protection device of which the switch number needs to be modified, and then logs in all devices.
Four function keys. Including connect and read parameters, save and download parameters, read configuration files, and save configuration files. The keys for connecting and reading the parameters and storing and downloading the parameters are used for operating when the device is connected, and the configuration file is read and stored as offline operation.
FTP login module of Python script language
Five functions of connecting a login function, interrupting an exit function, uploading a file function, downloading the file function, searching the file function and the like are written by using an ftp.lib library of a Python script language.
The connecting and logging function has the function of completing the connection and logging with the WBT-661 microcomputer automatic switching device, ensuring that the connected and logged device is the WBT-661 microcomputer automatic switching device and ensuring the logging accuracy.
The interrupt exit function has the function of releasing the login of the FTP when the modification is completed, and ensuring the stability of the WBT-661 microcomputer automatic switching device after the switch number is modified.
The uploading file function is the most important function of the whole FTP module and is used for finishing updating and checking of the switch file of the WBT-661 microcomputer automatic switching device; the function uses the attribute of error_temp in the ftp.lib library to judge the correctness of file transmission; considering the complexity of network environment and the performance of WBT-661 microcomputer automatic switching device, the function adopts a triple-retransmission mechanism for judging the value of error_temp in the ftp.lib library, thereby ensuring the correctness of file transmission and improving the file transmission efficiency.
The function of downloading files is to download the switch number file from the configuration file of WBT-661 microcomputer automatic switching device, and complete the local zero-time file storage work, so as to ensure the reading work of the switch number.
The function of searching the file is that the configuration file of the syscfg.sci system is searched out from the configuration file of the WBT-661 microcomputer automatic switching device, and the file is regenerated after the switch number is modified and then deleted; the function is to find out the syscfg.sci system configuration file, so that the main program is convenient to delete.
3. And the switch number configuration file processing module.
The switch number configuration file processing module is composed of two parts, namely a file storage part and a switch number indexing part. The file storage part is used for storing a switch number configuration file downloaded from the WBT-661 microcomputer automatic switching device and a file modified by modifying the switch number of the main picture; the function of the switch number index part is: (1) reading information of the switch number from the switch number configuration file, and displaying on a modified main picture; (2) the switch information of the main picture is modified, and the switch number is updated uniformly to relate to a plurality of variables such as the opening amount, the remote signaling amount, the opening amount, the protection action information, the wave recording switch amount and the like.
4. And configuring a user login password module.
The configuration user login password module has the advantages that login WBT-661 microcomputer automatic switching device passwords can be set, the efficiency of single machine debugging and screen cabinet debugging can be improved, and the safety of modifying switch numbers during operation of a field device can be improved.
Typical application: the tool for modifying the switch number of the traction self-casting device based on the scripting language is successfully applied to products of the applicant in experiments and is used for modifying the switch numbers of a plurality of engineering project devices, including modifying the switch numbers of the WBT-661 microcomputer self-casting protection device.
While the invention has been described in terms of preferred embodiments, the embodiments and drawings are not intended to limit the invention, but rather, various modifications can be made therein without departing from the spirit and scope of the invention as defined by the appended claims. The scope of the invention should, therefore, be determined with reference to the appended claims.
Claims (4)
1. The tool comprises an interface module designed based on Python script language, an FTP login module of Python script language, a switch number configuration file processing module and a flexible configuration user login password module,
interfaces designed based on Python scripting language:
the library file of the Python script language third party GUI is used for manufacturing a visual user interface, so that the manufacturing is quick, flexible and convenient, and a switch modification interface, an FTP login interface and an uploading and downloading parameter interface are integrated;
FTP login of Python scripting language:
logging in the WBT-661 microcomputer automatic switching protection device by using the Python script language FTP method, reading the corresponding switch number file in the device, analyzing the switch number, modifying, and updating the corresponding file of the switch number by using the FTP method to finish the switch number updating;
switch number profile processing:
the switch number configuration file processing module is used for processing a switch number file of the WBT-661 microcomputer automatic switching protection device, wherein the switch number in the file relates to a plurality of variables of the starting quantity, the remote signaling quantity, the starting quantity, the protection action information and the wave recording switching quantity, and the module realizes unified modification of the plurality of variables and updates the switch number file;
configuring a user login password:
the user login password configuration module is used for configuring an FTP login password function;
the switch number configuration file processing is to use file reading to analyze the corresponding switch number according to the original file structure; and modifying the switch number by using the modified switch number according to the original file structure, wherein the modified switch number relates to the opening amount, the remote signaling amount, the opening amount, the protection action information and the wave recording switch amount, so as to realize unified modification of a plurality of variables.
2. The tool for automatic switching device switch numbering according to claim 1, wherein: using the wxPython graphic library of Python scripting language, wxPython is an excellent set of GUI graphic libraries of Python language, allowing Python programmers to easily create complete, functionally sound GUI user interfaces.
3. The tool for automatic switching device switch numbering according to claim 1, wherein: and the FTP login using the Python script language is used for updating the transmission file by adopting a 3-time reconnection retransmission mechanism, so that the reliability of the updated file is ensured.
4. The tool for automatic switching device switch numbering according to claim 1, wherein: the user login password module is configured, and the configuration file is used for configuring passwords of the user login WBT-661 microcomputer automatic switching protection device so as to meet the requirements of different users and ensure the modification permission of the device in a delivery stage, a debugging stage and an operation stage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910354845.3A CN110083358B (en) | 2019-04-29 | 2019-04-29 | Tool for modifying switch number of traction automatic switching device based on scripting language |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910354845.3A CN110083358B (en) | 2019-04-29 | 2019-04-29 | Tool for modifying switch number of traction automatic switching device based on scripting language |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110083358A CN110083358A (en) | 2019-08-02 |
CN110083358B true CN110083358B (en) | 2023-06-20 |
Family
ID=67417696
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910354845.3A Active CN110083358B (en) | 2019-04-29 | 2019-04-29 | Tool for modifying switch number of traction automatic switching device based on scripting language |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110083358B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951321A (en) * | 2014-03-27 | 2015-09-30 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for modifying of system configuration |
CN105117215A (en) * | 2015-08-05 | 2015-12-02 | 深圳市元征科技股份有限公司 | Development method and device of automobile function |
CN106600123A (en) * | 2016-12-01 | 2017-04-26 | 西安电子工程研究所 | Design file number management system design method |
CN106775896A (en) * | 2017-01-10 | 2017-05-31 | 环球智达科技(北京)有限公司 | A kind of method for changing configuration file |
CN107077141A (en) * | 2014-09-16 | 2017-08-18 | 爱维欧视觉公司 | For calculating the system of aeroplane performance and method for performing the calculating |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101264615B1 (en) * | 2011-06-17 | 2013-05-27 | (주)네오위즈게임즈 | Device and method for executing and managing job file of game server |
CN107300860A (en) * | 2017-06-09 | 2017-10-27 | 南京航空航天大学 | A kind of Simulation of Aeroengine Control System platform courses object online change method |
-
2019
- 2019-04-29 CN CN201910354845.3A patent/CN110083358B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951321A (en) * | 2014-03-27 | 2015-09-30 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for modifying of system configuration |
CN107077141A (en) * | 2014-09-16 | 2017-08-18 | 爱维欧视觉公司 | For calculating the system of aeroplane performance and method for performing the calculating |
CN105117215A (en) * | 2015-08-05 | 2015-12-02 | 深圳市元征科技股份有限公司 | Development method and device of automobile function |
CN106600123A (en) * | 2016-12-01 | 2017-04-26 | 西安电子工程研究所 | Design file number management system design method |
CN106775896A (en) * | 2017-01-10 | 2017-05-31 | 环球智达科技(北京)有限公司 | A kind of method for changing configuration file |
Also Published As
Publication number | Publication date |
---|---|
CN110083358A (en) | 2019-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7958488B2 (en) | Virtual testing in a development environment | |
CN110147317B (en) | Code testing method and device, electronic device and storage medium | |
US20200356465A1 (en) | Automatic testing method and apparatus, storage medium and electronic device | |
EP1504347B1 (en) | Automated software testing system and method | |
US7496815B2 (en) | Method and apparatus for automatic generation of system test libraries | |
US7533347B2 (en) | Creating a graphical user interface for selected parameters of a graphical program | |
CN103365770A (en) | Mobile terminal software testing system and software testing method | |
CN108304326B (en) | Automatic testing system and method for android intelligent terminal | |
CN115658529A (en) | Automatic testing method for user page and related equipment | |
US7647578B2 (en) | Programmatic creation and management of tasks in a graphical program | |
CN106126414A (en) | Application software testing method and system | |
US20070271282A1 (en) | Translator software for monitoring, automation, testing and control | |
CN111679982A (en) | Automatic testing method for REST API (representational State transfer) interface software | |
CN110865941A (en) | Interface test case generation method, device and system | |
CN110083358B (en) | Tool for modifying switch number of traction automatic switching device based on scripting language | |
US20050049814A1 (en) | Binding a GUI element to a control in a test executive application | |
CN110096442A (en) | Code debugging method, user equipment, storage medium and device | |
CN112416805A (en) | Test management cloud platform and method | |
CN117539178A (en) | Instrument intelligent detection platform system based on custom script | |
CN114925516B (en) | Automatic modeling and simulating method and device | |
CN108563564B (en) | Terminal man-machine interface testing method and system | |
CN112530615A (en) | Variable forcing method and system suitable for nuclear power station equipment | |
CN108418699B (en) | Communication point-to-point system and method for substation automation equipment | |
CN112350879B (en) | Data communication equipment test management method, device, system and storage medium | |
CN111078531B (en) | Test control system capable of being customized |
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 |