CN103116547B - A kind of control method and device - Google Patents

A kind of control method and device Download PDF

Info

Publication number
CN103116547B
CN103116547B CN201310058849.XA CN201310058849A CN103116547B CN 103116547 B CN103116547 B CN 103116547B CN 201310058849 A CN201310058849 A CN 201310058849A CN 103116547 B CN103116547 B CN 103116547B
Authority
CN
China
Prior art keywords
instruction
holds
file
unit
identification information
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
CN201310058849.XA
Other languages
Chinese (zh)
Other versions
CN103116547A (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.)
SHENZHEN LINGQI ELECTRONIC CO Ltd
Original Assignee
SHENZHEN LINGQI ELECTRONIC 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 SHENZHEN LINGQI ELECTRONIC CO Ltd filed Critical SHENZHEN LINGQI ELECTRONIC CO Ltd
Priority to CN201310058849.XA priority Critical patent/CN103116547B/en
Publication of CN103116547A publication Critical patent/CN103116547A/en
Application granted granted Critical
Publication of CN103116547B publication Critical patent/CN103116547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

This application discloses a kind of control method and device, be applied to WinCE application development system, described WinCE application development system comprises PC end and CE end, described method holds the teledata between holding with described CE to be connected by setting up described PC, after the steering order that the described PC termination of acquisition receives, if judge, described steering order is management of process instruction, obtain the identification information that described CE holds current operation process, and carry out list display by holding the identification information obtained to transfer to described PC end at described CE, and then by PC hold long-range to CE end carry out management of process and other debugging control.The application holds Long-distance Control CE to hold process by PC, carries out the scheme of debugging control, simplifies operation steps, improve debugging efficiency relative to directly holding equipment to be connected with CE in prior art, development efficiency is improved, reduces cost of development.

Description

A kind of control method and device
Technical field
The application relates to software design technology field, particularly a kind of control method and device.
Background technology
At present, WinCE client is mainstream applications system in car machine industry, and it is lower to hardware requirement, cost is lower, because WinCE system architecture function is comparatively simple, needs staff to carry out stand-alone development for difference in functionality based on WinCE systematic difference.
On stream, in common debugging plan, general direct employing debugging acid and CE hold equipment connection to carry out the debugging control such as management of process.But above-mentioned control program needs directly to connect between equipment, operation is comparatively complicated, affects debugging efficiency, makes development efficiency lower, increases cost of development.
Summary of the invention
Technical problems to be solved in this application are to provide a kind of control method and device, in order to solve in prior art the scheme directly connecting debugging acid and hold equipment to be connected with CE, complicated operation, affects debugging efficiency, make development efficiency lower, increase the technical matters of cost of development.
This application provides a kind of control method, described method is applied to WinCE application development system, and described WinCE application development system comprises PC end and CE end, and described method comprises:
Setting up described PC holds the teledata between holding with described CE to be connected;
Obtain the steering order that described PC termination receives;
Judge whether described steering order is management of process instruction, if so, obtain the identification information that described CE holds current operation process;
The identification information obtained at described CE end is transferred to described PC end and carries out list display.
Said method, preferably, the described CE of described acquisition holds the identification information of current operation process, comprising:
Trigger the monitor thread starting described CE end, obtain the process coding that described CE holds each current operation process successively;
Resolve described process coding, obtain the absolute path value that described CE holds each current operation process;
The identification information that described CE holds each current operation process is obtained according to described absolute path value.
Said method, preferably, to be transferred to by the identification information obtained at described CE end after described PC end carries out list display described, described method also comprises:
Obtain the process editing instruction that described PC termination receives, described process editing instruction comprises target process mark and editing type;
Described target process mark and described editing type are transferred to described CE hold;
Determine that identifying corresponding target process with described target process encode at described CE end, to encode the operation that corresponding process performs and described editing type is corresponding to described target process.
Said method, preferably, if described steering order is operating file instruction, described method also comprises:
Travel through file and the file of described CE end, determine the file destination corresponding with instruction file type in described operating file instruction;
Described file destination is run at described PC end.
Said method, preferably, after the teledata between the described PC of foundation end is held with CE is connected, described method also comprises:
Obtain the keyboard click information that described PC termination receives;
Resolve described keyboard click information, generate key assignments or message value, convert described key assignments or message value to character mark;
According to the transmission instruction that described PC termination receives, the bid value corresponding with described character mark is transferred to described CE and holds.
Present invention also provides a kind of control device, described application of installation is in WinCE application development system, and described WinCE application development system comprises PC end and CE end, and described device comprises:
Connection establishment unit, holds the teledata between holding with described CE to be connected for setting up described PC;
First instruction fetch unit, for obtaining the steering order that described PC termination receives;
Instruction identifying unit, for judging whether described steering order is management of process instruction, if so, trigger message acquiring unit;
Described information acquisition unit, holds the identification information of current operation process for obtaining described CE;
Information display unit, carries out list display for the identification information obtained at described CE end is transferred to described PC end.
Said apparatus, preferably, described information acquisition unit comprises:
Coding obtains subelement, for triggering the monitor thread starting described CE end, obtains the process coding that described CE holds each current operation process successively;
Code parsing subelement, for resolving described process coding, obtains the absolute path value that described CE holds each current operation process;
Acquisition of information subelement, holds the identification information of each current operation process for obtaining described CE according to described absolute path value.
Said apparatus, preferably, described device also comprises:
Second instruction fetch unit, for obtaining the process editing instruction that described PC termination receives, described process editing instruction comprises target process mark and editing type;
Information transmission unit, holds for described target process mark and described editing type are transferred to described CE;
Process editing unit, for determining that identifying corresponding target process with described target process encode at described CE end, to encode the operation that corresponding process performs and described editing type is corresponding to described target process.
Said apparatus, preferably, if described instruction identifying unit judges that described steering order is operating file instruction, described device also comprises:
Running paper unit, for traveling through file and the file of described CE end, determines the file destination corresponding with instruction file type in described operating file instruction, runs described file destination at described PC end.
Said apparatus, preferably, described device also comprises:
Keypad information acquiring unit, for obtaining the keyboard click information that described PC termination receives;
Information conversion unit, for resolving described keyboard click information, generating key assignments or message value, converting described key assignments or message value to character mark;
Bid value transmission unit, for the transmission instruction received according to described PC termination, transfers to described CE by the bid value corresponding with described character mark and holds.
From such scheme, a kind of control method that the application provides and device, be applied to WinCE application development system, described WinCE application development system comprises PC end and CE end, the teledata between holding with described CE is held to be connected by setting up described PC, after the steering order that the described PC termination of acquisition receives, if judge, described steering order is management of process instruction, obtain the identification information that described CE holds current operation process, and carry out list display by holding the identification information obtained to transfer to described PC end at described CE, and then by PC hold long-range to CE end carry out management of process and other debugging control.The application holds Long-distance Control CE to hold process by PC, carries out the scheme of debugging control, simplifies operation steps, improve debugging efficiency relative to directly holding equipment to be connected with CE in prior art, development efficiency is improved, reduces cost of development.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of a kind of control method embodiment one that Fig. 1 provides for the application;
The partial process view of a kind of control method embodiment two that Fig. 2 provides for the application;
The partial process view of a kind of control method embodiment three that Fig. 3 provides for the application;
The partial process view of a kind of control method embodiment four that Fig. 4 provides for the application;
The structural representation of a kind of control device embodiment five that Fig. 5 provides for the application;
Fig. 6 is the idiographic flow exemplary plot that the embodiment of the present application five is run;
The part-structure schematic diagram of a kind of control device embodiment six that Fig. 7 provides for the application;
Fig. 8 is the flow example figure that the embodiment of the present application six carries out management of process;
The part-structure schematic diagram of a kind of control device embodiment seven that Fig. 9 provides for the application;
Figure 10 is the idiographic flow exemplary plot that the embodiment of the present application seven is run;
The structural representation of a kind of control device embodiment eight that Figure 11 provides for the application;
Figure 12 is the idiographic flow exemplary plot that the embodiment of the present application eight is run;
The part-structure schematic diagram of a kind of control device embodiment nine that Figure 13 provides for the application;
Figure 14 is the idiographic flow exemplary plot that the embodiment of the present application nine is run;
Figure 15 is another idiographic flow exemplary plot that the embodiment of the present application nine is run.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
With reference to figure 1, it illustrates the process flow diagram of a kind of control method embodiment one that the application provides, described method is applied to WinCE application development system, and described WinCE application development system comprises PC end and CE end, and described method can comprise the following steps:
Step 101: set up described PC and hold the teledata between holding with described CE to be connected.
Preferably, described step 101 can specific implementation in the following manner:
At described PC end and described CE end, remote application programming (long-range ApplicationProgrammingInterface, RAPI) interface is set;
Setting up described PC by described RAPI interface holds the teledata between holding with described CE to be connected.
Wherein, described RAPI interface can be understood as long-range api function.
It should be noted that, the embodiment of the present application, after bringing into operation, namely after described PC end brings into operation the embodiment of the present application, understands the connection status of holding display current and described CE of window display hold at described PC.And when setting up described PC end and being connected with the teledata that described CE hold, first establishment thread Real-Time Monitoring connection status (as every 5 seconds to as described in PC hold with as described in CE hold between teledata be connected judge).Wherein, the judgement prerequisite of connection status is CeRapiInitEx function initialization success and can finds its file stored at described CE end by CeFindFirstFile function.
Step 102: obtain the steering order that described PC termination receives.
Preferably, described step 102 performs at the PC end of described WinCE application development system, that is, after the input-output device input control order that user is held by described PC, the embodiment of the present application obtains the steering order that described PC termination receives at described PC end.
Preferably, the embodiment of the present application comprises two parts program, and the PC being in PC end holds program and is in the CE client-side program that CE holds.Wherein, after the teledata connection establishment that described PC end and described CE are held, the CE client-side program being in described PC end can be copied to described CE and hold by the embodiment of the present application, the primary responsibility of described CE client-side program with carry out Socket between PC end program and communicate, receive the data such as the teleinstruction of PC end.
Step 103: judge whether described steering order is management of process instruction, if so, obtains the identification information that described CE holds current operation process.
Wherein, described identification information comprises the name information of process.
Preferably, after successful connection in described step 101, in the window of PC end, display device connects, and occurs at least one button, as management of process button can show, thus after getting the steering order that described PC termination receives, judge that whether described steering order is the clicking operation instruction to management of process button, if so, obtain the identification information that described CE holds current operation process, now, window by changing interface to management of process interface.
Step 104: the identification information obtained at described CE end is transferred to described PC end and carries out list display.
Wherein, after described step 104, user manages or other operations process according to the process list in the display of described PC end.
From such scheme, a kind of control method embodiment one that the application provides, be applied to WinCE application development system, described WinCE application development system comprises PC end and CE end, the teledata between holding with described CE is held to be connected by setting up described PC, after the steering order that the described PC termination of acquisition receives, if judge, described steering order is management of process instruction, obtain the identification information that described CE holds current operation process, and carry out list display by holding the identification information obtained to transfer to described PC end at described CE, and then by PC hold long-range to CE end carry out management of process and other debugging control.The embodiment of the present application holds Long-distance Control CE to hold process by PC, carries out the scheme of debugging control, simplifies operation steps, improve debugging efficiency relative to directly holding equipment to be connected with CE in prior art, development efficiency is improved, reduces cost of development.
Preferably, with reference to figure 2, it illustrates the partial process view of a kind of control method embodiment two that the application provides, wherein, obtain described CE in described step 103 and hold the identification information of current operation process specifically can be realized by following steps:
Step 201: trigger the monitor thread starting described CE end, obtains the process coding that described CE holds each current operation process successively.
Preferably, described step 201 specifically can realize in the following manner:
Monitor thread is started at described CE end, in described monitor thread, enumerate described CE hold the Process Window (EnumWindow) of current operation process and obtain Process Window handle corresponding to each Process Window, then obtain process coding (process ID) according to described window handle by GetWindowThreadProcessId.
Preferably, in the process of above-mentioned enumeration process window, can by describing the scanning carrying out window next time, until find all Process Windows every 3.
Step 202: resolve described process coding, obtains the absolute path value that described CE holds each current operation process;
Preferably, described step 202 specifically can realize in the following manner:
Obtained the absolute path value (absolute path) of process by GetModuleFileName according to described process ID.
Step 203: obtain the identification information that described CE holds each current operation process according to described absolute path value.
Preferably, described step 203 can specific implementation in the following manner:
Filter the identification information that described absolute path retains process.
Preferably, with reference to figure 3, it illustrates the partial process view of a kind of control method embodiment three that the application provides, after described step 104, described method can also comprise the following steps:
Step 301: obtain the process editing instruction that described PC termination receives, described process editing instruction comprises target process mark and editing type.
Preferably, described target carries out identifying the name information comprising target process.
Preferably, described editing type comprises the action types such as deletion.
Step 302: described target process mark and described editing type are transferred to described CE and holds.
Step 303: determine that identifying corresponding target process with described target process encode at described CE end, to encode the operation that corresponding process performs and described editing type is corresponding to described target process.
Such as, when described PC holds list to show the process identification (PID) of described CE end operation, user can click list by input-output device, list can be shown in list list focus, after described PC termination receives process editing instruction (namely user clicks conclusion button in described list), the embodiment of the present application is by obtaining the current list focus index and index being sent to CE client-side program, CE client-side program searches the process ID obtaining target process in process list before by index, process ID according to target process terminates process by TerminateProcess.
From such scheme, a kind of control method embodiment three that the application provides, by PC hold long-range to CE end carry out management of process editor, as deleted (end) a certain process, the embodiment of the present application holds Long-distance Control CE to hold process by PC, carries out the scheme of debugging control relative to directly holding equipment to be connected with CE in prior art, simplify operation steps, improve debugging efficiency, development efficiency is improved, reduces cost of development.
Preferably, in each embodiment above-mentioned, in described step 103, if described steering order is operating file instruction, described method also comprises:
Travel through file and the file of described CE end, determine the file destination corresponding with instruction file type in described operating file instruction, run described file destination at described PC end.
Preferably, described operating file instruction comprises browsing file instruction and running paper instruction.
Such as, the embodiment of the present application is after getting operating file instruction, namely after described PC termination receives the press key message of browsing file, PC program of holding enumerates file under described CE end system root directory and file by CeFindFirstFile and CeFindNextFile, its each self-corresponding icon and file type is shown according to the file enumerating out and file, and when traveling through file and file, by judging that the character in browsing file instruction is browsed.As after receiving list and double-clicking click message, what PC program of holding judged current click is file or file, if file then determines whether the file (file destination corresponding with described command file type) of exe suffix, if, run at described PC end by CeCreateProcess, if file, then continue through CeFindFirstFile and CeFindNextFile enumerate current file folder under file and file, by that analogy, until the viewed file completing or run exe suffix of file.
Preferably, with reference to figure 4, it illustrates the partial process view of a kind of control method embodiment four that the application provides, wherein, after described step 101, described method can also comprise the following steps:
Step 401: obtain the keyboard click information that described PC termination receives.
Step 402: resolve described keyboard click information, generates key assignments or message value, converts described key assignments or message value to character mark.
Preferably, described step 402 specifically can realize in the following manner:
Judge current focus position in described keyboard click information, if described current focus position is user-defined press key value edit box, generate key assignments, converting described key assignments to character mark is presented on the interface of window, if described current focus position is self-defined message edit box, generating messages value, converts described message value to character mark and is presented on the interface of window.
Step 403: the transmission instruction received according to described PC termination, transfers to described CE by the bid value corresponding with described character mark and holds.
Wherein, described transmission instruction refers to, user is by the transmission button message of described PC end input.After conversion generates character mark, bid value corresponding for described character mark is sent to described CE client-side program, is sent to by described CE client-side program in the window of described CE end, thus simulation third party software sends message.
From such scheme, by carrying out the self-defined editor of bid value to key assignments and message in the embodiment of the present application, held by PC and be sent to CE end, thus complete simulation third party software transmission message, reach the partial code that fast verification coordinates with third party, develop debugging, improve debugging efficiency, Speeding up development speed, saves cost.
With reference to figure 5, it illustrates the structural representation of a kind of control device embodiment five that the application provides, described application of installation is in WinCE application development system, and described WinCE application development system comprises PC end and CE end, and described device comprises:
Connection establishment unit 501, holds the teledata between holding with described CE to be connected for setting up described PC.
Preferably, described connection establishment unit 501 can its function of specific implementation in the following manner:
At described PC end and described CE end, remote application programming (long-range ApplicationProgrammingInterface, RAPI) interface is set;
Setting up described PC by described RAPI interface holds the teledata between holding with described CE to be connected.
Wherein, described RAPI interface can be understood as long-range api function.
It should be noted that, the embodiment of the present application, after bringing into operation, namely after described PC end brings into operation the embodiment of the present application, understands the connection status of holding display current and described CE of window display hold at described PC.And when setting up described PC end and being connected with the teledata that described CE hold, first establishment thread Real-Time Monitoring connection status (as every 5 seconds to as described in PC hold with as described in CE hold between teledata be connected judge).Wherein, the judgement prerequisite of connection status is CeRapiInitEx function initialization success and can finds its file stored at described CE end by CeFindFirstFile function.
First instruction fetch unit 502, for obtaining the steering order that described PC termination receives.
Preferably, described first instruction fetch unit 502 is run at the PC end of described WinCE application development system, namely, after the input-output device input control order that user is held by described PC, described first instruction fetch unit 502 obtains the steering order that described PC termination receives at described PC end.
Preferably, in the embodiment of the present application, described PC end carries out Socket between holding with described CE and communicates.
Instruction identifying unit 503, for judging whether described steering order is management of process instruction, if so, trigger message acquiring unit 504.
Described information acquisition unit 504, holds the identification information of current operation process for obtaining described CE.
Wherein, described identification information comprises the name information of process.
Preferably, after the successful connection of described connection establishment unit 501, in the window of PC end, display device connects, and there is at least one button, as management of process button can show, thus after the first instruction fetch unit 502 gets the steering order that described PC termination receives, described instruction identifying unit 503 judges that whether described steering order is the clicking operation instruction to management of process button, if, trigger described information acquisition unit 504 and obtain the identification information that described CE holds current operation process, now, window by changing interface to management of process interface.
Information display unit 505, carries out list display for the identification information obtained at described CE end is transferred to described PC end.
Such as, with reference to figure 6, it illustrates idiographic flow exemplary plot when the embodiment of the present application five is run, wherein:
Initialization: described PC end and described CE are held and carries out teledata and be connected (holding the teledata between holding with described CE to be connected to described PC in each 5 seconds to judge);
Management of process/analogue-key and self-defined message: hold at described PC end and described CE and set up after teledata is connected, hold long-range to hold described CE to manage or analogue-key and self-defined message operate by PC;
Release debugging.
From such scheme, a kind of control device embodiment five that the application provides, be applied to WinCE application development system, described WinCE application development system comprises PC end and CE end, the teledata between holding with described CE is held to be connected by setting up described PC, after the steering order that the described PC termination of acquisition receives, if judge, described steering order is management of process instruction, obtain the identification information that described CE holds current operation process, and carry out list display by holding the identification information obtained to transfer to described PC end at described CE, and then by PC hold long-range to CE end carry out management of process and other debugging control.The embodiment of the present application holds Long-distance Control CE to hold process by PC, carries out the scheme of debugging control, simplifies operation steps, improve debugging efficiency relative to directly holding equipment to be connected with CE in prior art, development efficiency is improved, reduces cost of development.
With reference to figure 7, it illustrates the part-structure schematic diagram of a kind of control device embodiment six that the application provides, wherein, described information acquisition unit 504 comprises:
Coding obtains subelement 541, for triggering the monitor thread starting described CE end, obtains the process coding that described CE holds each current operation process successively.
Preferably, described coding acquisition subelement 541 specifically can realize in the following manner:
Monitor thread is started at described CE end, in described monitor thread, enumerate described CE hold the Process Window (EnumWindow) of current operation process and obtain Process Window handle corresponding to each Process Window, then obtain process coding (process ID) according to described window handle by GetWindowThreadProcessId.
Preferably, in the process of above-mentioned enumeration process window, can by describing the scanning carrying out window next time, until find all Process Windows every 3.
Code parsing subelement 542, for resolving described process coding, obtains the absolute path value that described CE holds each current operation process;
Preferably, described code parsing subelement 542 specifically can realize in the following manner:
Obtained the absolute path value (absolute path) of process by GetModuleFileName according to described process ID.
Acquisition of information subelement 543, holds the identification information of each current operation process for obtaining described CE according to described absolute path value.
Preferably, described acquisition of information subelement 543 can specific implementation in the following manner:
Filter the identification information that described absolute path retains process.
Such as, with reference to figure 8, it illustrates the flow example figure that the embodiment of the present application six carries out management of process, wherein:
Enter management of process interface;
Monitoring process: by the monitor thread starting described CE end;
Enumerate and search window: describe the scanning carrying out window next time, until find all Process Windows every 3;
After finding window, obtain process ID;
The name information of acquisition process;
Add value process list shows, and returns and search next window.
With reference to figure 9, it illustrates the part-structure schematic diagram of a kind of control device embodiment seven that the application provides, wherein, described device also comprises:
Second instruction fetch unit 506, for obtaining the process editing instruction that described PC termination receives, described process editing instruction comprises target process mark and editing type.
Preferably, described target carries out identifying the name information comprising target process.
Preferably, described editing type comprises the action types such as deletion.
Information transmission unit 507, holds for described target process mark and described editing type are transferred to described CE.
Process editing unit 508, for determining that identifying corresponding target process with described target process encode at described CE end, to encode the operation that corresponding process performs and described editing type is corresponding to described target process.
Such as, when described PC holds list to show the process identification (PID) of described CE end operation, user can click list by input-output device, list can be shown in list list focus, after described PC termination receives process editing instruction (namely user clicks conclusion button in described list), the embodiment of the present application is by obtaining the current list focus index and index being sent to CE client-side program, CE client-side program searches the process ID obtaining target process in process list before by index, process ID according to target process terminates process by TerminateProcess, as shown in Figure 10.
From such scheme, a kind of control device embodiment seven that the application provides, by PC hold long-range to CE end carry out management of process editor, as deleted (end) a certain process, the embodiment of the present application holds Long-distance Control CE to hold process by PC, carries out the scheme of debugging control relative to directly holding equipment to be connected with CE in prior art, simplify operation steps, improve debugging efficiency, development efficiency is improved, reduces cost of development.
With reference to Figure 11, it illustrates the structural representation of a kind of control device embodiment eight that the application provides, wherein, if described instruction identifying unit 503 judges that described steering order is operating file instruction, described device also comprises:
Running paper unit 509, for traveling through file and the file of described CE end, determines the file destination corresponding with instruction file type in described operating file instruction, runs described file destination at described PC end.
Preferably, described operating file instruction comprises browsing file instruction and running paper instruction.
Such as, the embodiment of the present application is after getting operating file instruction, namely after described PC termination receives the press key message of browsing file, PC program of holding enumerates file under described CE end system root directory and file by CeFindFirstFile and CeFindNextFile, its each self-corresponding icon and file type is shown according to the file enumerating out and file, and when traveling through file and file, by judging that the character in browsing file instruction is browsed.As after receiving list and double-clicking click message, what PC program of holding judged current click is file or file, if file then determines whether the file (file destination corresponding with described command file type) of exe suffix, if, run at described PC end by CeCreateProcess, if file, then continue through CeFindFirstFile and CeFindNextFile enumerate current file folder under file and file, by that analogy, until the viewed file completing or run exe suffix of file, as shown in figure 12.
With reference to Figure 13, it illustrates the part-structure schematic diagram of a kind of control device embodiment nine that the application provides, wherein, described device also comprises:
Keypad information acquiring unit 510, for obtaining the keyboard click information that described PC termination receives.
Information conversion unit 511, for resolving described keyboard click information, generating key assignments or message value, converting described key assignments or message value to character mark.
Preferably, described information conversion unit 511 specifically can realize in the following manner:
Judge current focus position in described keyboard click information, if described current focus position is user-defined press key value edit box, generate key assignments, converting described key assignments to character mark is presented on the interface of window, if described current focus position is self-defined message edit box, generating messages value, converts described message value to character mark and is presented on the interface of window.
Bid value transmission unit 512, for the transmission instruction received according to described PC termination, transfers to described CE by the bid value corresponding with described character mark and holds.
Wherein, described transmission instruction refers to, user is by the transmission button message of described PC end input.After conversion generates character mark, bid value corresponding for described character mark is sent to described CE client-side program, is sent to by described CE client-side program in the window of described CE end, thus simulation third party software sends message.
As shown in Figure 14 and Figure 15, it is the idiographic flow exemplary plot that the embodiment of the present application is run.
From such scheme, by carrying out the self-defined editor of bid value to key assignments and message in the embodiment of the present application, held by PC and be sent to CE end, thus complete simulation third party software transmission message, reach the partial code that fast verification coordinates with third party, develop debugging, improve debugging efficiency, Speeding up development speed, saves cost.
Be noted that each embodiment in this instructions all adopts the mode of going forward one by one to describe, what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Above a kind of control method provided by the present invention and device are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.

Claims (6)

1. a control method, is characterized in that, described method is applied to WinCE application development system, and described WinCE application development system comprises PC end and CE end, and described method comprises:
Setting up described PC holds the teledata between holding with described CE to be connected;
Obtain the steering order that described PC termination receives;
Judge whether described steering order is management of process instruction, if so, obtain the identification information that described CE holds current operation process;
The identification information obtained at described CE end is transferred to described PC end and carries out list display;
Wherein, the described CE of described acquisition holds the identification information of current operation process, comprising:
Trigger the monitor thread starting described CE end, obtain the process coding that described CE holds each current operation process successively;
Resolve described process coding, obtain the absolute path value that described CE holds each current operation process;
The identification information that described CE holds each current operation process is obtained according to described absolute path value;
To be transferred to by the identification information obtained at described CE end after described PC end carries out list display described, described method also comprises:
Obtain the process editing instruction that described PC termination receives, described process editing instruction comprises target process mark and editing type;
Described target process mark and described editing type are transferred to described CE hold;
Determine that identifying corresponding target process with described target process encode at described CE end, to encode the operation that corresponding process performs and described editing type is corresponding to described target process.
2. method according to claim 1, is characterized in that, if described steering order is operating file instruction, described method also comprises:
Travel through file and the file of described CE end, determine the file destination corresponding with instruction file type in described operating file instruction;
Described file destination is run at described PC end.
3. method according to claim 1, is characterized in that, after the teledata between the described PC of foundation end is held with CE is connected, described method also comprises:
Obtain the keyboard click information that described PC termination receives;
Resolve described keyboard click information, generate key assignments or message value, convert described key assignments or message value to character mark;
According to the transmission instruction that described PC termination receives, the bid value corresponding with described character mark is transferred to described CE and holds.
4. a control device, is characterized in that, described application of installation is in WinCE application development system, and described WinCE application development system comprises PC end and CE end, and described device comprises:
Connection establishment unit, holds the teledata between holding with described CE to be connected for setting up described PC;
First instruction fetch unit, for obtaining the steering order that described PC termination receives;
Instruction identifying unit, for judging whether described steering order is management of process instruction, if so, trigger message acquiring unit;
Described information acquisition unit, holds the identification information of current operation process for obtaining described CE;
Information display unit, carries out list display for the identification information obtained at described CE end is transferred to described PC end;
Wherein, described information acquisition unit comprises:
Coding obtains subelement, for triggering the monitor thread starting described CE end, obtains the process coding that described CE holds each current operation process successively;
Code parsing subelement, for resolving described process coding, obtains the absolute path value that described CE holds each current operation process;
Acquisition of information subelement, holds the identification information of each current operation process for obtaining described CE according to described absolute path value;
Described device also comprises:
Second instruction fetch unit, for obtaining the process editing instruction that described PC termination receives, described process editing instruction comprises target process mark and editing type;
Information transmission unit, holds for described target process mark and described editing type are transferred to described CE;
Process editing unit, for determining that identifying corresponding target process with described target process encode at described CE end, to encode the operation that corresponding process performs and described editing type is corresponding to described target process.
5. device according to claim 4, is characterized in that, if described instruction identifying unit judges that described steering order is operating file instruction, described device also comprises:
Running paper unit, for traveling through file and the file of described CE end, determines the file destination corresponding with instruction file type in described operating file instruction, runs described file destination at described PC end.
6. device according to claim 4, is characterized in that, described device also comprises:
Keypad information acquiring unit, for obtaining the keyboard click information that described PC termination receives;
Information conversion unit, for resolving described keyboard click information, generating key assignments or message value, converting described key assignments or message value to character mark;
Bid value transmission unit, for the transmission instruction received according to described PC termination, transfers to described CE by the bid value corresponding with described character mark and holds.
CN201310058849.XA 2013-02-25 2013-02-25 A kind of control method and device Active CN103116547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310058849.XA CN103116547B (en) 2013-02-25 2013-02-25 A kind of control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310058849.XA CN103116547B (en) 2013-02-25 2013-02-25 A kind of control method and device

Publications (2)

Publication Number Publication Date
CN103116547A CN103116547A (en) 2013-05-22
CN103116547B true CN103116547B (en) 2016-04-20

Family

ID=48414927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310058849.XA Active CN103116547B (en) 2013-02-25 2013-02-25 A kind of control method and device

Country Status (1)

Country Link
CN (1) CN103116547B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375372B (en) * 2016-08-23 2019-12-06 东方网力科技股份有限公司 big data resource allocation method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8898620B2 (en) * 2007-07-09 2014-11-25 Nolio Ltd. System and method for application process automation over a computer network
CN101957746A (en) * 2009-07-13 2011-01-26 中兴通讯股份有限公司 Task management system and method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SQlite在远程管理Wince智能设备中的应用;颜昌青等;《计算机系统应用》;20100630;第19卷(第6期);第216-218页 *
WinCE下的远程控制;wince.he;《http://www.cnblogs.com/we-hjb/archive/2008/08/02/1258995.html》;20080802;第1-3页 *
如何通过当前窗口的窗口句柄得到它所属进程的进程名;cnzdgs;《http://bbs.csdn.net/topics/300105764》;20090306;第1页 *

Also Published As

Publication number Publication date
CN103116547A (en) 2013-05-22

Similar Documents

Publication Publication Date Title
JP7268077B2 (en) Automatic driving test data storage method and device, electronic device, storage medium, and computer program
CN111752843B (en) Method, apparatus, electronic device and readable storage medium for determining influence surface
CN101119517B (en) Method of automatic downloading software from network server
EP3862723A2 (en) Method and apparatus for detecting map quality
CN102004952B (en) Measuring resource control system and measuring resource control method
CN102131308A (en) Method for operating Android mobile phone file system at PC (Personal Computer) terminal
CN104717095A (en) Multiple controllers integrated visualized SDN management method
CN105138603A (en) Oracle database migration tool for migrating from HPUX platform to KUX platform
CN105760289A (en) Debugging method and device of embedded system
CN111752572B (en) Compiling method, device, equipment and storage medium
CN114995816A (en) Business process configuration method and device, electronic equipment and readable storage medium
CN103116547B (en) A kind of control method and device
CN104899140A (en) Test method for mobile terminal assembly
CN103294532B (en) The method of rapid implementation of matrix switch graphical control system
CN103888297A (en) Interchanger network management method and system
CN112181882B (en) Signal conversion method and device, electronic equipment and storage medium
CN117149406A (en) Resource scheduling method, device, system, computer equipment and storage medium
CN115134427B (en) Communication protocol coordination method, device, computer equipment and storage medium
CN105677331A (en) Task execution method and device
CN107273102A (en) The generation method and device of mobile applications
CN109446146A (en) A kind of state transition sequence generation method of application layer communication protocol
CN111694637B (en) Online full-automatic multi-agent control simulation compiling system
CN114020741A (en) Vehicle mileage information storage method and device, vehicle electronic system and vehicle
CN105335153A (en) Dynamic script automatic-generating method
CN113448689A (en) Dubbo protocol conversion device and method in operation period

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