CN103218232B - A kind of method of control engineering equipment operation command and device - Google Patents

A kind of method of control engineering equipment operation command and device Download PDF

Info

Publication number
CN103218232B
CN103218232B CN201310145522.6A CN201310145522A CN103218232B CN 103218232 B CN103218232 B CN 103218232B CN 201310145522 A CN201310145522 A CN 201310145522A CN 103218232 B CN103218232 B CN 103218232B
Authority
CN
China
Prior art keywords
engineering equipment
memory storage
usb flash
flash disk
operational order
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
Application number
CN201310145522.6A
Other languages
Chinese (zh)
Other versions
CN103218232A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201310145522.6A priority Critical patent/CN103218232B/en
Publication of CN103218232A publication Critical patent/CN103218232A/en
Application granted granted Critical
Publication of CN103218232B publication Critical patent/CN103218232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention relates to field of computer technology, disclose a kind of method of control engineering equipment operation command, comprise the following steps: S1, detection memory storage, to the operation of described engineering equipment, store the software package processing described operational order in described memory storage; S2, judge whether memory storage meets pre-conditioned to the sequence of operation of described engineering equipment according to the result of described detection, if meet, then call described software package and perform described operational order, otherwise return step S1 and proceed described detection.Present invention also offers a kind of device corresponding with said method.The present invention by the restriction such as network state, space, does not greatly reduce the requirement to engineering site operating environment, reduces operation complexity, improve engineering services quality.

Description

A kind of method of control engineering equipment operation command and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method and device of control engineering equipment operation command.
Background technology
In prior art, the mode of various engineering equipments (such as running the MCPAc veneer of the MontaVistaLinux operating system) operation command at control engineering scene has multiple, such as maintenance management station and engineering equipment are carried out network to be connected, operation interface by maintenance management station or the mode by Telnet send order to engineering equipment, thus control engineering equipment performs corresponding operation, and for example computer and engineering equipment are carried out serial ports to be connected, order is sent to engineering equipment by operating computer, thus control engineering equipment performs corresponding operational order.
Above-mentioned first kind of way is subject to the restriction of network state, such as, when network occurs connecting fault, can cause the consequence of uncontrollable engineering equipment operation command.The above-mentioned second way is directly connected with engineering equipment due to needs computer, therefore the restriction in space is subject to, operation inconvenience, such as, when engineering equipment is positioned at machine room, and machine room limited space or manage and limitedly cause being inconvenient to carrying computer when entering, also can cause the consequence of uncontrollable engineering equipment operation command.
Therefore, how to provide a kind of and do not become technical matters urgently to be resolved hurrily by the method for control engineering equipment operation command that facilitates of the restriction such as network state, space.
Summary of the invention
(1) technical matters that will solve
The technical matters that first the present invention will solve is: how to provide a kind of method and the device that facilitate control engineering equipment operation command.
(2) technical scheme
In order to solve the problems of the technologies described above, the invention provides a kind of method of control engineering equipment operation command, comprising the following steps:
S1, detection memory storage, to the operation of described engineering equipment, store the software package processing described operational order in described memory storage;
S2, judge whether memory storage meets pre-conditioned to the sequence of operation of described engineering equipment according to the result of described detection, if meet, then call described software package and perform described operational order, otherwise return step S1 and proceed described detection.
Preferably, described memory storage is USB flash disk, correspondingly, and the operation that the operation of described memory storage to described engineering equipment comprises the interface inserting described engineering equipment and the operation of extracting from described interface.
Preferably, step S1 is specially: arrange timer, and detect in timer setting-up time and whether have USB flash disk insert the interface of described engineering equipment or extract from interface, the described insertion detected in timer setting-up time or the operation of extracting form the described sequence of operation in chronological order.
Preferably, described engineering equipment is veneer or the main frame of moving calculation machine operating system.
Preferably, meeting the described pre-conditioned sequence of operation and described operational order is relation one to one.
Preferably, described USB flash disk is the USB flash disk containing specific identifier.
Preferably, described specific identifier comprises particular file name, specific file content or specific partitions of file information.
Preferably, in step S1 after detecting that memory storage is to engineering equipment executable operations, control described engineering equipment and provide and operate corresponding instruction with described.
Preferably, in step S1 when detect USB flash disk to engineering equipment perform insert or after extracting operation, the corresponding pilot lamp controlling described engineering equipment is bright.
Present invention also offers a kind of device of control engineering equipment operation command, comprising:
Detecting unit, for detecting the operation of memory storage to described engineering equipment, stores the software package processing described operational order in described memory storage;
According to the result of described detection, judging unit, for judging whether memory storage meets pre-conditioned to the sequence of operation of described engineering equipment;
Performance element, for meet in the described sequence of operation described pre-conditioned call described software package and perform described operational order.
(3) beneficial effect
Technique scheme tool has the following advantages: the present invention is by detecting the memory storage of the software package of stores processor operational order to the operation of engineering equipment, and the sequence of operation of memory storage to engineering equipment calls software package operation command when meeting pre-conditioned, the method only needs to preset the sequence of operation corresponding to operational order and the software package of process operational order is stored on the storage means in advance, then manual operation memory storage can realize the execution of operational order on engineering equipment, not by network state, the restrictions such as space, greatly reduce the requirement to engineering site operating environment, reduce operation complexity, improve engineering services quality.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention;
Fig. 2 is that USB flash disk insert-pulls out-insert sequence of operation time diagram;
Fig. 3 is that USB flash disk insert-pulls out-insert mode of operation transition graph;
Fig. 4 is apparatus structure schematic diagram of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples for illustration of the present invention, but are not used for limiting the scope of the invention.
The embodiment of the present invention provides the method for a kind of control engineering equipment execution to the operational order that data back up for the MCPAc veneer running MontaVistaLinux operating system as engineering equipment.Realize the method, first on MCPAc veneer, the script for detecting USB flash disk action can be disposed in advance, following steps are performed by this script, define its name in the present embodiment and be called daemon.sh, when MCPAc Board Power up starts, this script is adjusted by the operating system of MCPAc veneer, at running background, always residently not to exit.
As shown in Figure 1, the step that script performs specifically comprises:
S1, script detect USB flash disk to the insertion of the USB interface of described MCPAc veneer or extract operation by the file arranged under timer detection/proc/scsi/usb-storage, store the software package of processing said data backup in described USB flash disk; The described insertion detected in timer setting-up time or the operation of extracting form the sequence of operation in chronological order.
In this step, when detect USB flash disk to MCPAc veneer perform insert or after extracting operation, the corresponding pilot lamp of engineering equipment described in Script controlling is bright.
1), after USB flash disk inserts in Preset Time, MCPAc plate pilot lamp brightens;
2) if USB flash disk is extracted in Preset Time, then pilot lamp change is gone out;
3) if USB flash disk inserts again in Preset Time, then pilot lamp brightens;
4), USB flash disk insert-pulls out-inserts the time sequential routine and be identified, and after corresponding order is complete, pilot lamp becomes and goes out.
For MCPAc veneer, should/proc/scsi/usb-storage catalogue under general only there is " 4 " this file.When after insertion USB flash disk, USB driving can create new file under this catalogue; After extracting USB flash disk, USB driving can delete before USB flash disk insert time create file.
In the present embodiment, described USB flash disk can also replace with other storage medium, such as CD, floppy disk etc., as long as energy storing software program, and engineering equipment has the medium of this memory storage of access.In the present embodiment, MCPAc veneer can also replace with MCPAc main frame.
S2, judge whether the sequence of operation of USB flash disk to described MCPAc veneer meets pre-conditioned, i.e. timing requirements according to the result detected, if meet, then call described software package execution data backup, otherwise return step S1 and proceed described detection.
The described sequence of operation is such as shown in Fig. 2, and wherein T1, T2 are timer, and wherein, T1 is inserted into the maximum permission time of extracting USB flash disk first time, if exceed T1 time range, does not perform USB flash disk yet and extracts operation, then do not meet timing requirements; T2 is the maximum permission time that USB flash disk is extracted USB flash disk and again inserted, if exceed T2 time range, performs USB flash disk update not yet, does not then meet timing requirements.The USB flash disk of corresponding data backup command insert-pulls out-inserts the time sequential routine and can be described as: { insert-T1-to pull out-T2-and insert, T1=20s, T2=20s}.
When detecting that USB flash disk inserts or extracts, timer expiry time can change the running status of script, script status moves, and as shown in Figure 3, with reference to figure 3, specifically processes as follows under each state:
1), idle.When system is normally run, USB flash disk init state is " free time ", starting 10 seconds cycle timer T0, the file under detection/proc/scsi/usb-storage catalogue, when other file except " 4 " being detected, having illustrated that USB flash disk inserts.Then detect on USB flash disk first subregion and whether there is specific file udisktag.00000000, if exist, illustrate that USB flash disk satisfies condition, put veneer A TTN lamp bright, state is set to " waiting for that USB flash disk is extracted ", 20 seconds timer T1 are set simultaneously, be used for monitoring that USB flash disk extracts opportunity.
2), wait for that USB flash disk is extracted.Be the cycle carry out USB flash disk state-detection with 1s, when detecting that USB flash disk is extracted before T1 time-out, then put veneer A TTN lamp and go out, state is set to " waiting for that USB flash disk inserts ", 20 seconds timer T2 are set simultaneously, be used for monitoring that USB flash disk inserts opportunity.
3), wait for that USB flash disk inserts.Be the cycle carry out USB flash disk state-detection with 1s, when detecting that USB flash disk inserts before T2 time-out, then USB flash disk insert-pulls out-inserts the time sequential routine and satisfies condition, and is identified as performing data backup operation, puts veneer A TTN lamp bright, state be set to " data backup ".
4), data backup.From USB flash disk hdcopy bag to the arbitrary catalogue of hard disk, untie kit and perform data backup scripts, veneer data are backuped to USB flash disk, record USB flash disk is inserted-pulled out-journal file of inserting time sequential routine command recognition processing procedure copies on USB flash disk, put veneer A TTN lamp to go out, state is set to " free time ".
Timer expiry process:
T0: cycle timer, duration is 10 seconds or 1 second, and insert with USB flash disk or extract state change, being 10 seconds under idle condition, is 1 second under busy state.
T1: timer duration is 20 seconds, is used for monitoring that USB flash disk extracts opportunity.If T1 timer expiry, then illustrate that USB flash disk insert-pulls out-inserts the time sequential routine and do not meet derivation condition, put veneer A TTN lamp and go out, state is set to " free time ".
T2: timer duration is 20 seconds, is used for monitoring that USB flash disk inserts opportunity.If T2 timer expiry, illustrate that USB flash disk insert-pulls out-inserts the time sequential routine and do not meet derivation condition, resetting T0 is 10 seconds cycle timers, state is set to " free time ".
In this step, when judging that the sequence of operation of USB flash disk to described MCPAc veneer meets pre-conditioned, then the automatic software package from this operational order of copy process USB flash disk, and then call execution.In this way, customized command handling procedure can be needed according to engineering site, in advance command process software package be copied on USB flash disk, at engineering site, after insert-pulling out-insert time sequential routine operation by USB flash disk, be namely running in the script identification on veneer or main frame and Automatically invoked execution.Different USB flash disks inserts-pulls out-insert operational order corresponding to the sequence of operation, and form operation commands set, this command set needs constantly to expand according to practical application.By change slotting-to pull out-insert number of times, or change insert-pull out-insert the time interval, the USB flash disk that equal definable is new insert-pulls out-insert the time sequential routine.The following time sequential routine represents different orders respectively:
Order 1:{ inserts-T1-and pulls out, T1=10s}
Slotting-the T1-of order 2:{ pulls out-T2-and inserts, T1=20s, T2=10s}
Slotting-the T1-of order 3:{ pulls out-T2-and inserts, T1=20s, T2=20s}
Slotting-the T1-of order 4:{ pulls out the slotting-T3-of-T2-and pulls out, T1=20s, T2=30s, T3=10s}
Order 5:{ insert-T1-pull out-T2-insert-T3-pull out-T4-insert, T1=20s, T2=30s, T3=20s, T4=10s}.
Above-mentioned T1 ~ T4 represents timer.
In the present embodiment, USB flash disk is the USB flash disk containing specific identifier.Conflict in order to avoid producing when using with common U disk, only perform USB flash disk to the USB flash disk containing specific identifier and insert-pull out-insert time sequential routine command recognition process, this mark can be filename, file content or partitions of file information etc.; For the USB flash disk not containing specific identifier, be still used as common U disk and use.
As shown in Figure 4, present invention also offers a kind of device of control engineering equipment operation command, described device comprises:
Detecting unit 410, for detecting the operation of memory storage to described engineering equipment, stores the software package processing described operational order in described memory storage;
For the result detected according to described detecting unit 410, judging unit 420, judges whether memory storage meets pre-conditioned to the sequence of operation of described engineering equipment;
Performance element 430, for judge at described judging unit 420 sequence of operation meet described pre-conditioned call described software package and perform described operational order.
Specific descriptions to method above the function of the unit of said apparatus please refer to, do not repeat them here.
As can be seen from the above embodiments, the present invention is by detecting the memory storage of the software package of stores processor operational order to the operation of engineering equipment, and the sequence of operation of memory storage to engineering equipment calls software package operation command when meeting pre-conditioned, the method only needs to preset the sequence of operation corresponding to operational order and the software package of process operational order is stored on the storage means in advance, then manual operation memory storage can realize the execution of operational order on engineering equipment, not by network state, the restrictions such as space, greatly reduce the requirement to engineering site operating environment, reduce operation complexity, improve engineering services quality.
One of ordinary skill in the art will appreciate that the possible implementation of various aspects of the present invention or various aspects can be embodied as system, method or computer program.Therefore, the possible implementation of each aspect of the present invention or various aspects can adopt complete hardware embodiment, completely software implementation (comprising firmware, resident software etc.), or the form of the embodiment of integration software and hardware aspect, is all referred to as " circuit ", " module " or " system " here.In addition, the possible implementation of each aspect of the present invention or various aspects can adopt the form of computer program, and computer program refers to the computer readable program code be stored in computer-readable medium.
Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Computer-readable recording medium is including but not limited to electronics, magnetic, optics, electromagnetism, infrared or semiconductor system, equipment or device, or aforesaid appropriately combined arbitrarily, as random-access memory (ram), ROM (read-only memory) (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), optical fiber, portable ROM (read-only memory) (CD-ROM).
Processor in computing machine reads the computer readable program code be stored in computer-readable medium, makes processor can perform the function action specified in the combination of each step or each step in flow charts; Generate the device implementing the function action specified in the combination of each block of block diagram or each piece.
Computer readable program code can perform completely on the computing machine of user, part performs on the computing machine of user, as independent software package, part on the computing machine of user and part on the remote computer, or to perform on remote computer or server completely.Also it should be noted that in some alternate embodiment, in flow charts in each step or block diagram each piece the function that indicates may not according to occurring in sequence of indicating in figure.Such as, depend on involved function, in fact two steps illustrated in succession or two blocks may be executed substantially concurrently, or these blocks sometimes may be performed by with reverse order.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the prerequisite not departing from the technology of the present invention principle; can also make some improvement and replacement, these improve and replace and also should be considered as protection scope of the present invention.

Claims (10)

1. a method for control engineering equipment operation command, is characterized in that, comprises the following steps:
S1, detection memory storage are to the operation of described engineering equipment, the software package processing described operational order is stored in described memory storage, wherein, the operation of described memory storage to the described engineering equipment operation that comprises the interface inserting described engineering equipment and the operation of extracting from described interface;
S2, judge whether memory storage meets pre-conditioned to the sequence of operation of described engineering equipment according to the result of described detection, if meet, then call described software package and perform described operational order, otherwise return step S1 and proceed described detection.
2. the method for claim 1, is characterized in that, described memory storage is USB flash disk.
3. method as claimed in claim 2, it is characterized in that, step S1 is specially: arrange timer, and detect in timer setting-up time and whether have USB flash disk insert the interface of described engineering equipment or extract from interface, the described insertion detected in timer setting-up time or the operation of extracting form the described sequence of operation in chronological order.
4. the method for claim 1, is characterized in that, described engineering equipment is veneer or the main frame of moving calculation machine operating system.
5. the method for claim 1, is characterized in that, meeting the described pre-conditioned sequence of operation and described operational order is relation one to one.
6. method as claimed in claim 2, it is characterized in that, described USB flash disk is the USB flash disk containing specific identifier.
7. method as claimed in claim 6, it is characterized in that, described specific identifier comprises particular file name, specific file content or specific partitions of file information.
8. method as claimed in claim 2, is characterized in that, in step S1 after detecting that memory storage is to engineering equipment executable operations, controls described engineering equipment and provides and operate corresponding instruction with described.
9. method as claimed in claim 8, is characterized in that, to insert or after extracting operation, the corresponding pilot lamp controlling described engineering equipment is bright in step S1 when detecting that USB flash disk performs engineering equipment.
10. a device for control engineering equipment operation command, is characterized in that, comprising:
Detecting unit, for detecting the operation of memory storage to described engineering equipment, the software package processing described operational order is stored in described memory storage, wherein, the operation of described memory storage to the described engineering equipment operation that comprises the interface inserting described engineering equipment and the operation of extracting from described interface;
According to the result of described detection, judging unit, for judging whether memory storage meets pre-conditioned to the sequence of operation of described engineering equipment;
Performance element, for meet in the described sequence of operation described pre-conditioned call described software package and perform described operational order.
CN201310145522.6A 2013-04-24 2013-04-24 A kind of method of control engineering equipment operation command and device Active CN103218232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310145522.6A CN103218232B (en) 2013-04-24 2013-04-24 A kind of method of control engineering equipment operation command and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310145522.6A CN103218232B (en) 2013-04-24 2013-04-24 A kind of method of control engineering equipment operation command and device

Publications (2)

Publication Number Publication Date
CN103218232A CN103218232A (en) 2013-07-24
CN103218232B true CN103218232B (en) 2016-04-13

Family

ID=48816060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310145522.6A Active CN103218232B (en) 2013-04-24 2013-04-24 A kind of method of control engineering equipment operation command and device

Country Status (1)

Country Link
CN (1) CN103218232B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168257B (en) * 2017-05-22 2019-08-27 飞马智科信息技术股份有限公司 Production equipment sequence control method based on circulation sequence state
CN107220139A (en) * 2017-05-31 2017-09-29 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal and its EMMC command verification processing method and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304463A (en) * 2007-05-08 2008-11-12 夏普株式会社 Operation device, operating system, image processing device, information display device and external equipment connecting device of electronic apparatus
CN101382904A (en) * 2008-09-28 2009-03-11 北京飞天诚信科技有限公司 Method and system for implementing automatic installation of intelligent cipher key equipment
CN102541547A (en) * 2011-12-22 2012-07-04 华为技术有限公司 Processing method and device for realizing control of target equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100836617B1 (en) * 2006-12-26 2008-06-10 삼성전자주식회사 Apparatus and method for remote control in portable communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304463A (en) * 2007-05-08 2008-11-12 夏普株式会社 Operation device, operating system, image processing device, information display device and external equipment connecting device of electronic apparatus
CN101382904A (en) * 2008-09-28 2009-03-11 北京飞天诚信科技有限公司 Method and system for implementing automatic installation of intelligent cipher key equipment
CN102541547A (en) * 2011-12-22 2012-07-04 华为技术有限公司 Processing method and device for realizing control of target equipment

Also Published As

Publication number Publication date
CN103218232A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
CN103842968B (en) A kind of moving method of internal storage data, computing machine and device
CN102880527B (en) Data recovery method of baseboard management controller
CN104714863A (en) Method for completely storing Raid card logs on basis of Linux operation system after system crashes
CN107656705B (en) Computer storage medium and data migration method, device and system
CN110377456A (en) A kind of management method and device of virtual platform disaster tolerance
CN104010022A (en) Management apparatus and method of managing server node
CN105183521A (en) Method for installing computing operation system and USB port storage device
CN106055440A (en) Testing method and system for realizing abnormal power failure of server through BMC
CN103198122A (en) Method and device for restarting in-memory database
CN101673230A (en) Method for automatically backing up and recovering configuration data of embedded system by using a U-disk
CN103218232B (en) A kind of method of control engineering equipment operation command and device
CN110399171A (en) A kind of hard disk management method, system and associated component
CN104516796A (en) Command set based network element backup and recovery method and device
WO2017148271A1 (en) Linux system reset processing method and device, and computer storage medium
WO2017020460A1 (en) Method and apparatus for integrating plugin
US10296218B2 (en) Update control method, update control apparatus, and storage medium
US10514988B2 (en) Method and system of migrating applications to a cloud-computing environment
US20180338007A1 (en) System and method for providing extensible communication gateway with session pooling
CN104111862A (en) Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
JP2014006772A (en) Failure monitoring type communication apparatus, failure monitoring recording method for communication apparatus, and program therefor
JP2018180982A (en) Information processing device and log recording method
CN111090537A (en) Cluster starting method and device, electronic equipment and readable storage medium
CN109117277B (en) Method and device for simulating synchronous blocking in asynchronous environment, storage medium, server and terminal
CN101369238A (en) Exception monitoring and reset processing method for USB equipment
CN106708541A (en) Version upgrading processing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant