CN107220090A - Start the method and apparatus of embedded software in external equipment - Google Patents
Start the method and apparatus of embedded software in external equipment Download PDFInfo
- Publication number
- CN107220090A CN107220090A CN201710418284.XA CN201710418284A CN107220090A CN 107220090 A CN107220090 A CN 107220090A CN 201710418284 A CN201710418284 A CN 201710418284A CN 107220090 A CN107220090 A CN 107220090A
- Authority
- CN
- China
- Prior art keywords
- external equipment
- control terminal
- keyboard
- equipment
- instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/765—Interface circuits between an apparatus for recording and another apparatus
Abstract
The embodiment of the invention discloses a kind of method and apparatus for starting embedded software in external equipment.Methods described includes:The external equipment that external equipment is sent according to control terminal, which is recognized, to be instructed, and is sent equipment response message to control terminal, is connected with being set up with control terminal, wherein, equipment response message includes device interface types, and interface type includes keyboard interface;If external equipment is successfully connected with control terminal, default keyboard control instruction is sent to control terminal by keyboard interface, control terminal is manipulated and opens application software built-in in external equipment.The technical scheme of the embodiment of the present invention overcomes USB in the prior art and passes screen equipment passes that shield can not automatic start after terminal is connected with required, even if or automatically starting, also the defect of process need to be resident for a long time on the required operating system backstage for passing screen terminal, biography screen software progress biography screen can be started by realizing USB and passing screen equipment and insert, without being resident process for a long time on the required operating system backstage for passing screen terminal.
Description
Technical field
The present embodiments relate to data communication technology, more particularly to a kind of method for starting embedded software in external equipment
And device.
Background technology
Pass screen technology, it is not strange for us, it can by mobile phone, the display content of apparatus such as computer and
The sound of broadcasting is synchronously passed to the terminals such as TV and is shown and played by wired or wireless mode.
It is soft that USB (Universal Serial Bus, USB) passes startup biography screen after screen equipment is connected with computer
Part has two ways:The first is to need to search the biography screen software stored in USB biography screen equipments in computer, then clicks on and opens
It can just start to pass screen operation after the software;Second is to be connected when USB passes screen equipment with computer, starts USB for the first time and passes screen
After the biography screen software stored in equipment, a background process can be installed and activated in computer, the process resides in operation system for a long time
The backstage of system, passes after screen equipment accesses again once detecting above-mentioned USB, will automatically open up this by above-mentioned background process
USB passes the biography screen software stored in screen equipment.
The mode that above two starts biography screen software has the defect of itself:Screen is passed in first way in each USB to set
For after being connected with computer, it is required for manual unlocking USB to pass the biography screen software stored in screen equipment, operates relatively complicated, it is impossible to is real
Now pass the automatic start of screen software;Although in the second way when USB passes second of screen equipment and is connected afterwards with computer,
It can realize that computer automatic start USB passes screen equipment, but this mode can stay a background process for a long time in computer, not only
Occupying system resources, and some antivirus softwares may kill such process automatically, cause automatic pass to shield disabler.
The content of the invention
In view of this, the embodiments of the invention provide a kind of method and apparatus for starting embedded software in external equipment, with
Overcome in the prior art USB pass screen equipment with it is required pass shield terminal be connected after can not automatic start, even if or can with automatic start,
Also the defect of a process need to be resident for a long time on the required operating system backstage for passing screen terminal.
In a first aspect, the embodiments of the invention provide it is a kind of start external equipment in embedded software method, including:
The external equipment that external equipment is sent according to control terminal, which is recognized, to be instructed, and equipment response is sent to the control terminal
Information, is connected with being set up with the control terminal, wherein, the equipment response message includes device interface types, the interface
Type includes keyboard interface;
It is whole to the control by the keyboard interface if the external equipment is successfully connected with the control terminal
End sends default keyboard control instruction, manipulates the control terminal and opens application software built-in in the external equipment.
In the above-mentioned methods, it is preferred that the external equipment identification sent in the external equipment according to control terminal refers to
Order, after sending equipment response message to the control terminal, in addition to:
The external equipment recognizes the data characteristics of instruction according to the external equipment, determines the operation of the control terminal
System type;
The external equipment sends default keyboard control instruction by the keyboard interface to the control terminal, manipulates institute
Stating application software built-in in the control terminal unlatching external equipment includes:
The external equipment obtains target keyboard control instruction corresponding with the operating system of the control terminal, and passes through
The keyboard interface sends the target keyboard control instruction to the control terminal;
Wherein, the different operating system of different target keyboard control instructions correspondence, for making the control terminal
Open application software built-in in the external equipment.
In the above-mentioned methods, it is preferred that the external equipment recognizes the data characteristics of instruction according to the external equipment,
Determine that the OS Type of the control terminal is specifically included:
The external equipment recognizes the reception order of instruction according at least two external equipments, and/or it is described at least
Data content in two external equipment identification instructions, determines the OS Type of the control terminal.
In the above-mentioned methods, it is preferred that the operating system of the control terminal includes:Windows operating system;
Target keyboard control instruction corresponding with the Windows operating system includes:
Open the first Keyboard Control instruction of the control terminal operation menu;
Under the operation menu, the second Keyboard Control instruction of open command line program;
In the order line program, according to storage location of the application software in the external equipment, institute is opened
State the 3rd Keyboard Control instruction of application software.
In the above-mentioned methods, it is preferred that the first Keyboard Control instruction includes:Win function keys and word are inputted simultaneously
Accord with R;
The second Keyboard Control instruction includes:Sequentially input character string cmd and carriage return function key;
The 3rd Keyboard Control instruction includes:Sequentially input character string Wmic logicaldisk where
VolumeName=" label name " get name findstr ":”〉c:// filename .bat&c:// filename .bat& is using soft
Part name .exe and carriage return function key.
In the above-mentioned methods, it is preferred that the external equipment is the application built in passing in screen equipment, the external equipment
Software shields software to pass.
In second aspect, the embodiments of the invention provide a kind of device for starting embedded software in external equipment, including:
Link block is set up, the external equipment sent for external equipment according to control terminal, which is recognized, to be instructed, to the control
Terminal processed sends equipment response message, is connected with being set up with the control terminal, wherein, the equipment response message includes equipment
Interface type, the interface type includes keyboard interface;
Software starting module, if be successfully connected for the external equipment with the control terminal, passes through the key
Disk interface sends default keyboard control instruction to the control terminal, manipulates the control terminal and opens in the external equipment
The application software put.
In said apparatus, it is preferred that also include:
Operating system identification module, the external equipment identification for being sent in the external equipment according to control terminal refers to
Order, after sending equipment response message to the control terminal, the external equipment recognizes instruction according to the external equipment
Data characteristics, determines the OS Type of the control terminal;
The software starting module includes:
Keyboard control command transmitting element, obtains corresponding with the operating system of the control terminal for the external equipment
Target keyboard control instruction, and the target keyboard control instruction is sent to the control terminal by the keyboard interface;
Wherein, the different operating system of different target keyboard control instructions correspondence, for making the control terminal
Open application software built-in in the external equipment.
In said apparatus, it is preferred that the operating system identification module specifically for:
The external equipment recognizes the reception order of instruction according at least two external equipments, and/or it is described at least
Data content in two external equipment identification instructions, determines the OS Type of the control terminal.
In said apparatus, it is preferred that the operating system of the control terminal includes:Windows operating system;
Target keyboard control instruction corresponding with the Windows operating system includes:
Open the first Keyboard Control instruction of the control terminal operation menu;
Under the operation menu, the second Keyboard Control instruction of open command line program;
In the order line program, according to storage location of the application software in the external equipment, institute is opened
State the 3rd Keyboard Control instruction of application software.
In said apparatus, it is preferred that the first Keyboard Control instruction includes:Win function keys and word are inputted simultaneously
Accord with R;
The second Keyboard Control instruction includes:Sequentially input character string cmd and carriage return function key;
The 3rd Keyboard Control instruction includes:Sequentially input character string Wmic logicaldisk where
VolumeName=" label name " get name findstr ":”〉c:// filename .bat&c:// filename .bat& is using soft
Part name .exe and carriage return function key.
In said apparatus, it is preferred that the external equipment is the application built in passing in screen equipment, the external equipment
Software shields software to pass.
The method and apparatus of embedded software in startup external equipment provided in an embodiment of the present invention, by external equipment according to
The external equipment identification instruction that control terminal is sent, sends equipment response message to control terminal, is connected with being set up with control terminal
Connect, wherein, equipment response message include device interface types, interface type include keyboard interface, if then external equipment with
Control terminal is successfully connected, then sends default keyboard control instruction to control terminal by keyboard interface, manipulate control terminal and open
Application software built-in in external equipment is opened, USB in the prior art is overcome and passes nothing after screen equipment is connected with required biography screen terminal
Method automatic start, even if or need to yet can for a long time be resident one on the required operating system backstage for passing screen terminal with automatic start
The defect of process, biography screen software progress biography screen can be started by realizing USB biographies screen equipment and inserting, without in required biography screen terminal
Process is resident for a long time in operating system backstage.
Brief description of the drawings
Fig. 1 is the flow chart of the method for embedded software in a kind of startup external equipment that the embodiment of the present invention one is provided;
Fig. 2 is the flow chart of the method for embedded software in a kind of startup external equipment that the embodiment of the present invention two is provided;
Fig. 3 is the flow chart of the method for embedded software in a kind of startup external equipment that the embodiment of the present invention three is provided;
Fig. 4 is the structure chart of the device of embedded software in a kind of startup external equipment that the embodiment of the present invention four is provided.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings to specific reality of the invention
Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention,
Rather than limitation of the invention.
It also should be noted that, for the ease of description, illustrate only in accompanying drawing part related to the present invention rather than
Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail
Into the processing or method described as flow chart.Although operations (or step) are described as the processing of order by flow chart,
It is that many of which operation can be by concurrently, concomitantly or while implement.In addition, the order of operations can be by again
Arrange.The processing can be terminated when its operations are completed, it is also possible to the additional step being not included in accompanying drawing.
The processing can correspond to method, function, code, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the flow chart of the method for embedded software in a kind of startup external equipment that the embodiment of the present invention one is provided, this
The method of embodiment the device of embedded software can be performed in startup external equipment, and the device can be by hardware and/or soft
The mode of part is realized, and can be typically integrated in external equipment, for example, passing screen equipment.The method of the present embodiment is specifically included:
The external equipment that step 110, external equipment are sent according to control terminal, which is recognized, to be instructed, and equipment is sent to control terminal
Response message, is connected with being set up with control terminal, wherein, equipment response message includes device interface types, and interface type includes
Keyboard interface.
In the present embodiment, external equipment specifically refers to interface and supports usb protocol, as from setting after be connected with control terminal
The standby equipment being operated, can be typically:USB passes the external equipments such as screen equipment.Wherein, the interface tool of usb protocol is supported
Body can be USB interface, Micro USB interfaces or Type-C interfaces etc., and the present embodiment is not limited to this.Control terminal has
Body refers to the intelligent terminal for being provided with operating system, can be typically:The control such as computer, tablet personal computer and mobile phone is eventually
End.
In this embodiment, external equipment identification instruction specifically refers to the external equipment of interface support usb protocol with controlling eventually
When carrying out USB enumeration process between end, the request that control terminal is sent to external equipment.It will be appreciated by those skilled in the art that
It is that, when interface supports that the external equipment of usb protocol is connected as terminals such as slave unit and computers, computer can be with controlling transmission
Mode, sends various requests, external equipment, which is received, can reply corresponding information after the request that main frame is sent, to enter to external equipment
Row enumeration operation.
In the present embodiment, can be to control after the external equipment that external equipment receives control terminal transmission recognizes instruction
Terminal sends equipment response message, is connected with being set up with control terminal.Wherein, equipment response message specifically refers to set for outside
The made return information of standby identification instruction.It will be appreciated by persons skilled in the art that during USB enumeration, control is eventually
End can send the standard request for obtaining configures descriptor to external equipment, to obtain the configuration set of external equipment, configuration set
Include the special descriptor of configures descriptor, interface descriptor, class and endpoint descriptor etc..That is, whole to control
When the standard request for the acquisition configures descriptor that end is sent is replied, the equipment response message that external equipment is replied includes
The interface descriptor of external equipment, is made with the numbering of this interface for informing control terminal itself, the number of endpoint of interface, interface
Class, subclass and agreement etc., thus, control terminal are known that the total interface type of external equipment.
In the present embodiment, external apparatus interface type cited in equipment response message includes keyboard interface, also
To say, after external equipment is connected with control terminal, external equipment can as external connection keyboard equipment to control terminal send keyboard
Data, meanwhile, control terminal can make operation corresponding with keyboard data.In addition, outside cited in equipment response message
The interface type of equipment can also include HID interfaces and MSC interface etc..
If step 120, external equipment are successfully connected with control terminal, send pre- to control terminal by keyboard interface
If Keyboard Control is instructed, manipulate control terminal and open application software built-in in external equipment.
In the present embodiment, when external equipment is successfully connected with control terminal, i.e., after USB enumeration process is successfully completed, outside
Portion's equipment will be sent to control terminal by keyboard interface and preset keyboard control instruction.Wherein, keyboard control instruction tool is preset
Body refers to be stored in advance in the setting storage region of external equipment, with operating system (for example:Windows operating system,
(SuSE) Linux OS, MAC operation system and Android operation system etc.) corresponding keyboard data, specifically for manipulating control eventually
Open (being stored in setting storage region) application software built-in in external equipment in end.Wherein, application software is typical
Can pass screen software etc..
Specifically, preset keyboard control instruction can be only for a kind of keyboard data of specific operation system (i.e.
Have one group of keyboard data) or for the keyboard data (i.e. including multigroup different keyboard data) of several operation systems,
The present embodiment is not limited to this.
The first situation, when default keyboard control instruction is only the keyboard data for a kind of specific operation system, only
When having the operating system in control terminal with specific operation system for same operating system, it can just be referred to by default Keyboard Control
Order is correct to open application software built-in in external equipment, that is to say, that acquiescence is only worked as in control terminal in such cases
Operating system is that same operating system is just necessary to open application software built-in in external equipment with specific operation system.
Second of situation, when default keyboard control instruction is the keyboard data for several operation systems (i.e. including multigroup
Different keyboard datas) when, the mode that default keyboard control instruction is sent to control terminal can refer to default Keyboard Control
The different keyboard data of each group is sent to control terminal successively in order, until the correct application opened built in external equipment is soft
Part.In this case, it is nothing when the default keyboard control instruction that the operating system in control terminal is received is not matched that
Method correctly opens application software built-in in external equipment.Certainly, if presetting all keyboard numbers in keyboard control instruction
If it all can not correctly open application software built-in in external equipment, then it is assumed that the existing operating system in control terminal
Under need not open the application software.
The method of embedded software in startup external equipment provided in an embodiment of the present invention, it is whole according to control by external equipment
The external equipment identification instruction that end is sent, sends equipment response message to control terminal, is connected with being set up with control terminal, its
In, equipment response message includes device interface types, and interface type includes keyboard interface, if if then external equipment and control
Terminal processed is successfully connected, then sends default keyboard control instruction to control terminal by keyboard interface, manipulate control terminal and open
Built-in application software in external equipment, overcoming USB biography screen equipments in the prior art can not after screen terminal is connected with required pass
Automatic start, even if or need to also can for a long time be resident a process on the required operating system backstage for passing screen terminal with automatic start
Defect, realize USB pass screen equipment i.e. insert can start biography screen software carry out biography screen, without it is required pass screen terminal operation
System background is resident process for a long time.
Embodiment two
Fig. 2 is the flow chart of the method for embedded software in a kind of startup external equipment that the embodiment of the present invention two is provided.This
Embodiment is optimized based on above-described embodiment, in the present embodiment, external equipment is optimized for pass screen equipment, by outside
Built-in application software is optimized for passing screen software in equipment.
The external equipment sent in external equipment according to control terminal, which is recognized, to be instructed, and sending equipment response to control terminal believes
After breath, in addition to:External equipment recognizes the data characteristics of instruction according to external equipment, determines the operating system class of control terminal
Type.
Correspondingly, external equipment is sent into default keyboard control instruction to control terminal by keyboard interface, manipulates control
Terminal opens application software built-in in external equipment, is optimized for:External equipment obtains corresponding with the operating system of control terminal
Target keyboard control instruction, and by keyboard interface to control terminal send target keyboard control instruction;Wherein, different institute
The different operating system of target keyboard control instruction correspondence is stated, it is built-in in the external equipment for opening the control terminal
Application software.
Accordingly, the method for the present embodiment is specifically included:
The external equipment that step 210, biography screen equipment are sent according to control terminal, which is recognized, to be instructed, and equipment is sent to control terminal
Response message, is connected with being set up with control terminal, wherein, equipment response message includes device interface types, and interface type includes
Keyboard interface.
In the present embodiment and embodiment three, external equipment is embodied as passing screen equipment illustrated, set outside other
It is standby to be applied to the present embodiment and embodiment three.
In this embodiment, pass screen equipment and specifically refer to interface support usb protocol, storage inside has biography screen software and is directed to
The data such as the display data and voice data of control terminal can be sent to another terminal by the keyboard data of different operating system
Equipment.
Deposited it will be appreciated by persons skilled in the art that passing the terminals such as screen equipment and computer and being connected and open to pass in screen equipment
After the biography screen software of storage, the data such as the video data of the display in computer, the voice data played can be transmitted by passing screen equipment
Shown and played into another terminal.
Step 220, biography screen equipment recognize the data characteristics of instruction according to external equipment, determine the operating system of control terminal
Type.
In the present embodiment, the data characteristics of external equipment identification instruction specifically refers to external equipment and recognizes that instruction (is controlled
The various requests that terminal processed is sent to external equipment) content, quantity and order etc. information.
Those skilled in the art is it can also be appreciated that use different operating system (different operating system here
Include the different editions of same operating system) the number of request from USB enumeration to external equipment that sent during of control terminal
Amount, order and content are incomplete same, and therefore, the data characteristics of instruction can be recognized according to external equipment by passing screen equipment
To determine the OS Type of control terminal.
In a specific example, using the control terminal of MAC operation system during USB enumeration, it can shield to passing
Equipment continuously transmits two external equipment identification instructions and sends device descriptor to ask to pass screen equipment, and is grasped using MAC10.11
Make the control terminal of system during USB enumeration, can only be asked to one external equipment identification instruction of screen equipment transmission is passed
Pass screen equipment and send device descriptor.
Step 230, biography screen equipment obtain target keyboard control instruction corresponding with the operating system of control terminal, and passed through
Keyboard interface sends target keyboard control instruction to control terminal.
In the present embodiment, target keyboard control instruction is specifically a kind of instruction included in default keyboard control instruction,
The different operating system of different target keyboard control instruction correspondences, to make control terminal open built-in in external equipment answer
Use software.
In the present embodiment, when it is determined that after OS Type in control terminal, passing screen equipment can be in default keyboard control
Target keyboard control instruction corresponding with identified OS Type is searched in system instruction, then should by keyboard interface
Target keyboard control instruction is sent to control terminal.
In the present embodiment, keyboard interface specifically refers to pass the interface of the support usb protocol in screen equipment.Screen equipment is passed to lead to
Cross keyboard interface target keyboard control instruction is sent to after control terminal, control terminal refers to according to the target Keyboard Control received
Make and being operated, final correct opening passes the biography screen software stored in screen equipment.
The method of embedded software, passes through what is sent according to control terminal in startup external equipment provided in an embodiment of the present invention
External equipment identification instruction, passes screen equipment and sends equipment response message to control terminal, wherein, the equipment in equipment response message
Interface type includes keyboard interface, is connected with being set up with control terminal, then passes screen equipment and recognizes instruction according to external equipment
Data characteristics, determines the OS Type of control terminal, finally passes screen equipment and obtains corresponding with the operating system of control terminal
Target keyboard control instruction, and by keyboard interface to control terminal send target keyboard control instruction, overcome existing skill
In art USB pass screen equipment with it is required pass shield terminal be connected after can not automatic start, even if or can be with automatic start, need to also be required
Pass screen terminal operating system backstage for a long time be resident a process defect, realize USB pass screen equipment i.e. insert can be according to institute
The operating system that screen terminal need to be passed quickly and accurately starts biography screen software progress biography screen, without in the required operation for passing screen terminal
System background is resident process for a long time.
Embodiment three
Fig. 3 is the flow chart of the method for embedded software in a kind of startup external equipment that the embodiment of the present invention three is provided.This
Embodiment is optimized based on above-described embodiment, in the present embodiment, and external equipment is recognized according to external equipment and instructed
Data characteristics, determine the OS Type of control terminal, be optimized for:External equipment is recognized according at least two external equipments
Data content in the reception order of instruction, and/or at least two external equipment identification instructions, determines the operation system of control terminal
System type.
It is by the operating system optimization of control terminal:Windows operating system;
Correspondingly, target keyboard control instruction corresponding with Windows operating system is optimized for:
Open the first Keyboard Control instruction of control terminal operation menu;
Under operation menu, the second Keyboard Control instruction of open command line program;
In the order line program, according to storage location of the application software in the external equipment, institute is opened
State the 3rd Keyboard Control instruction of application software.
Accordingly, the method for the present embodiment is specifically included:
The external equipment that step 310, biography screen equipment are sent according to control terminal, which is recognized, to be instructed, and equipment is sent to control terminal
Response message, is connected with being set up with control terminal, wherein, equipment response message includes device interface types, and interface type includes
Keyboard interface.
Step 320, biography screen equipment recognize the reception order of instruction, and/or at least two according at least two external equipments
Data content in external equipment identification instruction, the operating system for determining control terminal is Windows operating system.
Because operating system is different, the quantity of the various requests that control terminal is sent during USB enumeration, order and interior
Hold be not quite similar (i.e. quantity, order and the content of external equipment identification instruction are not quite similar), therefore, in the present embodiment, pass
Screen equipment can recognize that the reception order of instruction, and/or at least two external equipment identifications refer to according at least two external equipments
Data content in order determines the operating system of control terminal.
In a specific example, by this 5 different behaviour of WinXP, Win7, Win8, MAC and MAC10.11
Make the content and order of the multiple packets for the request biography screen equipment transmission device descriptor that system is sent during USB enumeration
It is compared, only Win8 and MAC the two operating systems, which can continuously transmit two requests and pass screen equipments, sends device descriptors
Request, and WinXP, Win7 and MAC10.11 can only send one request pass screen equipment send device descriptor request, because
This, when biography screen equipment, which continuously receives two requests, sends the request of device descriptor, can determine that the operation in control terminal
System is Win8 or MAC.By Win8 and MAC two requests continuously transmitted pass the request that screen equipment sends device descriptor
The content of packet be not identical, therefore continuous two requests can be contrasted pass screen equipment and send device descriptor
The content of the packet of request is Win8 or MAC come the operating system judged in control terminal.
In addition, in the present embodiment, it is determined that the operating system of control terminal be Windows operating system.
330th, pass screen equipment and obtain target keyboard control instruction corresponding with Windows operating system, and connect by keyboard
Mouthful to control terminal target keyboard control instruction.
In the present embodiment, after it is determined that the operating system in control terminal is Windows operating system, screen equipment meeting is passed
Target keyboard control instruction corresponding with Windows operating system is searched in default keyboard control instruction, then passes through keyboard
The target keyboard control instruction is sent to control terminal by interface, and the biography screen software stored in screen equipment is passed to open.
In the present embodiment, the corresponding target keyboard control instruction of Windows operating system is:Open control terminal operation
The first Keyboard Control instruction of menu;Under operation menu, the second Keyboard Control instruction of open command line program;In order line
In program, according to storage location of the application software in external equipment, the 3rd Keyboard Control instruction of application software is opened.
Further, in the present embodiment, the first Keyboard Control, which is instructed, is:Win function keys and character R are inputted simultaneously;The
Two Keyboard Controls are instructed:Sequentially input character string cmd and carriage return function key;3rd Keyboard Control is instructed:Sequentially input
Character string Wmic logicaldisk where VolumeName=" label name " get name findstr ":”〉c:// file
Name .bat&c:// filename .bat& application software name .exe and carriage return function key.
Wherein, in Windows operating system, while inputting Win function keys and character R can open in control terminal
Run menu;After character string cmd is inputted in operation menu and carriage return function key is pressed, the order stroke in control terminal can be opened
Sequence;In order line program, input character string Wmic logicaldisk where VolumeName=" label name " get
name findstr“:”〉c:// filename .bat&c:// filename .bat& application software name .exe and carriage return function key, can
The biography screen software stored in screen equipment is passed to open.
Specifically, " the label name " in the instruction of the 3rd Keyboard Control specifically refers to pass the title of screen equipment, and the title is pre-
It is first stored in the setting storage region for passing screen equipment;" filename " specifically refers to the script for storing the drive for passing screen equipment
The title of file, file name can arbitrarily be set, wherein, the drive for passing screen equipment specifically refers to pass screen equipment and control terminal company
After connecing, control terminal is to the drive for passing screen equipment distribution;The biography screen that " application software name " specifically refers to store in biography screen equipment is soft
The title of part.
Above-mentioned 3rd Keyboard Control instruction " sequentially inputs character string Wmic logicaldisk where VolumeName
=" label name " get name findstr ":”〉c:// filename .bat&c:// filename .bat& application software name .exe with
And carriage return function key " concrete meaning be:Lookup names and " label name " the identical disk for passing screen equipment, by the disk of the disk
Symbol is stored in the script file of entitled " filename ", is run the script file and is entered biography screen equipment, opens and pass in screen equipment
The software of entitled " application software name ".
The method of embedded software, passes through what is sent according to control terminal in startup external equipment provided in an embodiment of the present invention
External equipment identification instruction, passes screen equipment and sends equipment response message to control terminal, wherein, the equipment in equipment response message
Interface type includes keyboard interface, is connected with being set up with control terminal, then passes screen equipment and is known according at least two external equipments
Data content in the reception order not instructed, and/or at least two external equipment identification instructions, determines the operation of control terminal
System is Windows operating system, finally passes screen equipment acquisition target Keyboard Control corresponding with Windows operating system and refers to
Order, and by keyboard interface to control terminal target keyboard control instruction, overcome USB in the prior art pass screen equipment with it is required
Pass after screen terminal connection can not automatic start, even if or can be with automatic start, need to also be after the required operating system for passing screen terminal
Director's phase is resident the defect of a process, and the operating system of terminal can be shielded according to required biography by realizing USB and passing screen equipment and insert
Quickly and accurately start and pass screen software progress biography screen, without being resident process for a long time on the required operating system backstage for passing screen terminal.
Example IV
Fig. 4 is the structure chart of the device of embedded software in a kind of startup external equipment that the embodiment of the present invention four is provided.Such as
Shown in Fig. 4, described device includes:Set up link block 101 and software starting module 102.Wherein:
Link block 101 is set up, the external equipment sent for external equipment according to control terminal, which is recognized, to be instructed, to control
Terminal sends equipment response message, is connected with being set up with control terminal, wherein, equipment response message includes device interface types,
Interface type includes keyboard interface;
Software starting module 102, if be successfully connected for external equipment with control terminal, by keyboard interface to control
Terminal processed sends default keyboard control instruction, manipulates control terminal and opens application software built-in in external equipment.
The device of embedded software in startup external equipment provided in an embodiment of the present invention, it is whole according to control by external equipment
The external equipment identification instruction that end is sent, sends equipment response message to control terminal, is connected with being set up with control terminal, its
In, equipment response message includes device interface types, and interface type includes keyboard interface, if if then external equipment and control
Terminal processed is successfully connected, then sends default keyboard control instruction to control terminal by keyboard interface, manipulate control terminal and open
Built-in application software in external equipment, overcoming USB biography screen equipments in the prior art can not after screen terminal is connected with required pass
Automatic start, even if or need to also can for a long time be resident a process on the required operating system backstage for passing screen terminal with automatic start
Defect, realize USB pass screen equipment i.e. insert i.e. start pass screen, without it is required pass shield terminal operating system backstage stay for a long time
Stay process.
On the basis of the various embodiments described above, it can also include:
Operating system identification module, the external equipment identification for being sent in the external equipment according to control terminal refers to
Order, after sending equipment response message to the control terminal, external equipment recognizes the data characteristics of instruction according to external equipment,
Determine the OS Type of control terminal;
Software starting module includes:
Keyboard control command transmitting element, object key corresponding with the operating system of control terminal is obtained for external equipment
Disk control instruction, and target keyboard control instruction is sent to control terminal by keyboard interface;
Wherein, the different operating system of different target keyboard control instructions correspondence, for making the control terminal
Open application software built-in in the external equipment.
On the basis of the various embodiments described above, operating system identification module specifically can be used for:
External equipment recognizes the reception order of instruction, and/or at least two external equipments according at least two external equipments
Data content in identification instruction, determines the OS Type of control terminal.
On the basis of the various embodiments described above, the operating system of control terminal can include:Windows operating system;
Target keyboard control instruction corresponding with Windows operating system can include:
Open the first Keyboard Control instruction of control terminal operation menu;
Under operation menu, the second Keyboard Control instruction of open command line program;
In the order line program, according to storage location of the application software in the external equipment, institute is opened
State the 3rd Keyboard Control instruction of application software.
On the basis of the various embodiments described above, the instruction of the first Keyboard Control can include:Win function keys and word are inputted simultaneously
Accord with R;
The instruction of second Keyboard Control can include:Sequentially input character string cmd and carriage return function key;
The instruction of 3rd Keyboard Control can include:Sequentially input character string Wmic logicaldisk where
VolumeName=" label name " get name findstr ":”〉c:// filename .bat&c:// filename .bat& is using soft
Part name .exe and carriage return function key.
On the basis of the various embodiments described above, external equipment can be soft to pass application built-in in screen equipment, external equipment
Part can shield software to pass.
The device for starting embedded software in external equipment that the embodiment of the present invention is provided can be used for performing the present invention arbitrarily
The method for starting embedded software in external equipment that embodiment is provided, possesses corresponding functional module, realizes the beneficial effect of identical
Really.
Obviously, it will be understood by those skilled in the art that above-mentioned each module of the invention or each step can be by as above
Described server implementation.Alternatively, the embodiment of the present invention can be realized with the executable program of computer installation, so as to
Performed with being stored in storage device by processor, described program can be stored in a kind of computer-readable storage
In medium, storage medium mentioned above can be read-only storage, disk or CD etc.;Or be fabricated to them respectively each
Individual integrated circuit modules, or the multiple modules or step in them are fabricated to single integrated circuit module to realize.So,
The present invention is not restricted to the combination of any specific hardware and software.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for those skilled in the art
For, the present invention can have various changes and change.It is all any modifications made within spirit and principles of the present invention, equivalent
Replace, improve etc., it should be included in the scope of the protection.
Claims (12)
1. a kind of method for starting embedded software in external equipment, it is characterised in that including:
The external equipment that external equipment is sent according to control terminal, which is recognized, to be instructed, and sending equipment response to the control terminal believes
Breath, is connected with being set up with the control terminal, wherein, the equipment response message includes device interface types, the interface class
Type includes keyboard interface;
If the external equipment is successfully connected with the control terminal, sent out by the keyboard interface to the control terminal
Default keyboard control instruction is sent, the control terminal is manipulated and opens application software built-in in the external equipment.
2. according to the method described in claim 1, it is characterised in that the outside sent in the external equipment according to control terminal
Equipment identification instruction, after sending equipment response message to the control terminal, in addition to:
The external equipment recognizes the data characteristics of instruction according to the external equipment, determines the operating system of the control terminal
Type;
The external equipment sends default keyboard control instruction by the keyboard interface to the control terminal, manipulates the control
Terminal processed, which opens application software built-in in the external equipment, to be included:
The external equipment obtains target keyboard control instruction corresponding with the operating system of the control terminal, and by described
Keyboard interface sends the target keyboard control instruction to the control terminal;
Wherein, the different operating system of different target keyboard control instructions correspondence, for opening the control terminal
Built-in application software in the external equipment.
3. method according to claim 2, it is characterised in that the external equipment is recognized according to the external equipment and instructed
Data characteristics, determine that the OS Type of the control terminal is specifically included:
The external equipment recognizes the reception order of instruction, and/or described at least two according at least two external equipments
Data content in external equipment identification instruction, determines the OS Type of the control terminal.
4. method according to claim 2, it is characterised in that the operating system of the control terminal includes:Windows is grasped
Make system;
Target keyboard control instruction corresponding with the Windows operating system includes:
Open the first Keyboard Control instruction of the control terminal operation menu;
Under the operation menu, the second Keyboard Control instruction of open command line program;
In the order line program, according to storage location of the application software in the external equipment, described answer is opened
Instructed with the 3rd Keyboard Control of software.
5. method according to claim 4, it is characterised in that the first Keyboard Control instruction includes:Win is inputted simultaneously
Function key and character R;
The second Keyboard Control instruction includes:Sequentially input character string cmd and carriage return function key;
The 3rd Keyboard Control instruction includes:Sequentially input character string Wmic logicaldisk where VolumeName
=" label name " get name findstr ":”〉c:// filename .bat&c:// filename .bat& application software name .exe with
And carriage return function key.
6. the method according to claim any one of 1-5, it is characterised in that the external equipment is described to pass screen equipment
Built-in application software shields software to pass in external equipment.
7. a kind of device for starting embedded software in external equipment, it is characterised in that including:
Link block is set up, the external equipment sent for external equipment according to control terminal, which is recognized, to be instructed, to the control eventually
End sends equipment response message, is connected with being set up with the control terminal, wherein, the equipment response message includes equipment interface
Type, the interface type includes keyboard interface;
Software starting module, if be successfully connected for the external equipment with the control terminal, is connect by the keyboard
Mouth sends default keyboard control instruction to the control terminal, manipulates the control terminal and opens built in the external equipment
Application software.
8. device according to claim 1, it is characterised in that also include:
Operating system identification module, the external equipment for being sent in the external equipment according to control terminal, which is recognized, to be instructed, to
The control terminal is sent after equipment response message, and the external equipment recognizes that the data of instruction are special according to the external equipment
Levy, determine the OS Type of the control terminal;
The software starting module includes:
Keyboard control command transmitting element, mesh corresponding with the operating system of the control terminal is obtained for the external equipment
Keyboard Control instruction is marked, and the target keyboard control instruction is sent to the control terminal by the keyboard interface;
Wherein, the different operating system of different target keyboard control instructions correspondence, for opening the control terminal
Built-in application software in the external equipment.
9. device according to claim 8, it is characterised in that the operating system identification module specifically for:
The external equipment recognizes the reception order of instruction, and/or described at least two according at least two external equipments
Data content in external equipment identification instruction, determines the OS Type of the control terminal.
10. device according to claim 8, it is characterised in that the operating system of the control terminal includes:Windows
Operating system;
Target keyboard control instruction corresponding with the Windows operating system includes:
Open the first Keyboard Control instruction of the control terminal operation menu;
Under the operation menu, the second Keyboard Control instruction of open command line program;
In the order line program, according to storage location of the application software in the external equipment, described answer is opened
Instructed with the 3rd Keyboard Control of software.
11. device according to claim 10, it is characterised in that the first Keyboard Control instruction includes:Input simultaneously
Win function keys and character R;
The second Keyboard Control instruction includes:Sequentially input character string cmd and carriage return function key;
The 3rd Keyboard Control instruction includes:Sequentially input character string Wmic logicaldisk where VolumeName
=" label name " get name findstr ":”〉c:// filename .bat&c:// filename .bat& application software name .exe with
And carriage return function key.
12. the device according to claim any one of 6-11, it is characterised in that the external equipment is biography screen equipment, institute
Application software built-in in external equipment is stated to pass screen software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710418284.XA CN107220090A (en) | 2017-06-06 | 2017-06-06 | Start the method and apparatus of embedded software in external equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710418284.XA CN107220090A (en) | 2017-06-06 | 2017-06-06 | Start the method and apparatus of embedded software in external equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107220090A true CN107220090A (en) | 2017-09-29 |
Family
ID=59948771
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710418284.XA Pending CN107220090A (en) | 2017-06-06 | 2017-06-06 | Start the method and apparatus of embedded software in external equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107220090A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107943529A (en) * | 2017-10-20 | 2018-04-20 | 广州视源电子科技股份有限公司 | Device pairing method, apparatus, readable storage medium storing program for executing and interactive intelligence equipment |
CN111314097A (en) * | 2020-04-08 | 2020-06-19 | 上海明我信息技术有限公司 | Data transmission method, transmission equipment and display equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090172219A1 (en) * | 2007-12-30 | 2009-07-02 | Sandisk Il Ltd. | Device and method for automatically launching applications residing on usb flash drives |
CN101853170A (en) * | 2010-04-30 | 2010-10-06 | 北京坚果比特科技有限公司 | Method for automatically running software on computer and USB equipment |
CN102253904A (en) * | 2011-06-08 | 2011-11-23 | 广州视睿电子科技有限公司 | Method and device for identifying computer operating system by utilizing USB equipment |
CN102799457A (en) * | 2012-07-24 | 2012-11-28 | 广州视睿电子科技有限公司 | Portable terminal and method for automatically operating software program by portable terminal |
-
2017
- 2017-06-06 CN CN201710418284.XA patent/CN107220090A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090172219A1 (en) * | 2007-12-30 | 2009-07-02 | Sandisk Il Ltd. | Device and method for automatically launching applications residing on usb flash drives |
CN101853170A (en) * | 2010-04-30 | 2010-10-06 | 北京坚果比特科技有限公司 | Method for automatically running software on computer and USB equipment |
CN102253904A (en) * | 2011-06-08 | 2011-11-23 | 广州视睿电子科技有限公司 | Method and device for identifying computer operating system by utilizing USB equipment |
CN102799457A (en) * | 2012-07-24 | 2012-11-28 | 广州视睿电子科技有限公司 | Portable terminal and method for automatically operating software program by portable terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107943529A (en) * | 2017-10-20 | 2018-04-20 | 广州视源电子科技股份有限公司 | Device pairing method, apparatus, readable storage medium storing program for executing and interactive intelligence equipment |
CN107943529B (en) * | 2017-10-20 | 2020-12-22 | 广州视源电子科技股份有限公司 | Equipment pairing method and device, readable storage medium and interactive intelligent equipment |
CN111314097A (en) * | 2020-04-08 | 2020-06-19 | 上海明我信息技术有限公司 | Data transmission method, transmission equipment and display equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107566226B (en) | Method, device and system for controlling smart home | |
CN106559688B (en) | The upgrading test method and apparatus of remote controler | |
KR101680826B1 (en) | Multi-screen interaction method, devices, and system | |
WO2017165105A1 (en) | Universal internet of things (iot) smart translator | |
CN102595226A (en) | Wireless control method and set-top box | |
CN108769175B (en) | Remote real machine access control method and device, storage medium and electronic equipment | |
WO2021169495A1 (en) | Network configuration method for intelligent device, and related apparatuses | |
US10165611B2 (en) | Bluetooth pairing system and operating method thereof | |
CN105450643A (en) | Network access authentication method, apparatus and system | |
CN103902339A (en) | Application installation method, terminal and server | |
WO2022242324A1 (en) | Network distribution method, apparatus and device, and computer-readable storage medium | |
CN103533164A (en) | Method and device for controlling document display by utilizing wireless terminal | |
CN107220090A (en) | Start the method and apparatus of embedded software in external equipment | |
CN106060619A (en) | Method for controlling Bluetooth signal response in television and related device | |
US20090080011A1 (en) | Network port setup for printer driver for a networked printer | |
CN106791982B (en) | Account management method and device | |
KR102646271B1 (en) | Information processing methods, devices and storage media | |
CN112788576A (en) | Equipment offline processing method and system, storage medium and electronic device | |
CN105915975B (en) | The asynchronous control system and method for LED screen content are updated with mobile device | |
CN108132767A (en) | Application widget method for previewing and system | |
CN112416829A (en) | Method for transmitting data to HMI (human machine interface) and USB HID (Universal Serial bus) equipment | |
JP7475476B2 (en) | Information processing method, device and storage medium | |
US20230308533A1 (en) | Streaming method and system for mobile electronic device diagnostics | |
CN107179892B (en) | Control method, device and system of spliced screen, storage medium and processor | |
CN115079885A (en) | System control method and device for double-window display, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170929 |
|
RJ01 | Rejection of invention patent application after publication |