CN100430895C - Method for executing preset instruction set in storage device - Google Patents

Method for executing preset instruction set in storage device Download PDF

Info

Publication number
CN100430895C
CN100430895C CNB2006100826178A CN200610082617A CN100430895C CN 100430895 C CN100430895 C CN 100430895C CN B2006100826178 A CNB2006100826178 A CN B2006100826178A CN 200610082617 A CN200610082617 A CN 200610082617A CN 100430895 C CN100430895 C CN 100430895C
Authority
CN
China
Prior art keywords
storage device
controller
electronic installation
interface
usb
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
CNB2006100826178A
Other languages
Chinese (zh)
Other versions
CN101075195A (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.)
ANGUO INTERNATIONAL SCI-TECH Co Ltd
Original Assignee
ANGUO INTERNATIONAL SCI-TECH 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 ANGUO INTERNATIONAL SCI-TECH Co Ltd filed Critical ANGUO INTERNATIONAL SCI-TECH Co Ltd
Priority to CNB2006100826178A priority Critical patent/CN100430895C/en
Publication of CN101075195A publication Critical patent/CN101075195A/en
Application granted granted Critical
Publication of CN100430895C publication Critical patent/CN100430895C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)
  • Stored Programmes (AREA)

Abstract

A method for presetting command set in execution-storage device includes connecting interface of storage unit to an electronic unit, judging form of storage unit by electronic unit through multiple interface command, responding information that storage unit is keyboard unit to electronic unit by controller, sending multiple specific sequence keyboard command to electronic unit by controller and changing code setting-value by controller, querying form of storage unit by electronic unit through code setting-value and responding information that storage unit is large-capacity storage unit back to electronic unit by controller.

Description

The method of preset instruction set in a kind of execution one storage device
Technical field
The invention relates to the method for preset instruction set in a kind of execution one storage device, refer to a kind of method of carrying out preset instruction set in the storage device by USB (universal serial bus) especially.
Background technology
Because the prosperity of electronics technology, and the consumer is increasing for the demand of portable memory device, the capacity of portable memory device is increasing at present, volume is more and more littler, especially by storage device on consumer electronics market the occupation rate joint joint promotion of USB (universal serial bus) as interface.
On known skill, some software installation procedures directly automatically perform in the time of can reading data of optical disk by CD-ROM drive.Actual operation is actual to be to finish the action that what is called automatically performs by the interior automatic executing function that is built in CD-ROM drive, therefore this mode is that automatic executing function is built in the hardware drive program basically, and the automatic executing function that this type of CD-ROM drive provides can be closed by the window system registering functional and be caused automatic executing function to lose efficacy or system's reopening machine.
Therefore, how to develop when device one storage device is on a main frame, the restriction that not automatically performed by above-mentioned Microsft Windows system, and can make the storage device can be directly interactive by the interior preset instruction set that is built in the storage device with main frame, increasing the service efficiency and the convenience of storage device, will be that the present invention desires actively to inquire into part.
Summary of the invention
The present invention proposes the method for preset instruction set in a kind of execution one storage device, and its fundamental purpose can be closed the problem that causes automatic executing function inefficacy or system's reopening machine by the window system registering functional for solving the built-in automatic executing function of known computer external device.
The invention provides the method for preset instruction set in a kind of execution one storage device, this storage device is provided with built-in one controller and an interface that can be connected USB (universal serial bus) that automatically performs program, and this method comprises:
(1) interface of described storage device is connected to the interface of the USB (universal serial bus) of an electronic installation;
(2) described electronic installation uses a plurality of interface instructions to judge the device form of described storage device;
(3) described controller starts the program that automatically performs, and to respond (response) described storage device be that an information of a key board unit is to described electronic installation;
(4) described controller sends a plurality of particular sequence keyboard instructions to described electronic installation by the described program that automatically performs;
(5) after described electronic installation receives these particular sequence keyboard instructions, described controller resets the interface arrangement kind code setting value in this controller;
(6) described electronic installation uses these interface instructions to inquire about described interface arrangement kind code setting value to confirm the device form of described storage device;
(7) described controller is responded described electronic installation, and described storage device is a mass storage.
For making the people who is familiar with this technology understand purpose of the present invention, feature and effect, now by following specific embodiment, and cooperate appended graphic, to the present invention illustrate in detail as after.
Description of drawings
Fig. 1 can use a system schematic of enforcement for the method for preset instruction set in a kind of execution one storage device of the present invention;
Fig. 2 is an a kind of embodiment process flow diagram of carrying out the method for preset instruction set in the storage device by USB (universal serial bus) of the present invention;
Fig. 3 is a kind of another embodiment process flow diagram of carrying out the method for preset instruction set in the storage device by USB (universal serial bus) of the present invention.
The primary clustering symbol description:
1 computing machine;
2 USB (universal serial bus);
3 USB (universal serial bus) plugs;
4 carry-on dish;
5 controllers;
11-17 a kind of embodiment flow chart step numbering of carrying out the method for preset instruction set in the storage device by USB (universal serial bus) of the present invention;
21-29 a kind of another embodiment flow chart step numbering of method of carrying out preset instruction set in the storage device by USB (universal serial bus) of the present invention.
Embodiment
Fig. 1 can use a system schematic of enforcement for the method for preset instruction set in a kind of execution one storage device of the present invention.As shown in Figure 1, carry-on dish 4 as storage device can be in order to implement the method for preset instruction set in a kind of execution one storage device of the present invention, wherein, with oneself on the dish 4 controller 5 and a USB (universal serial bus) plug 3 are being installed, controller 5 is built-in one to automatically perform the firmware of program.When implementing the method for preset instruction set in a kind of execution one storage device of the invention described above, USB (universal serial bus) plug 3 (USB plug) is connected with USB (universal serial bus) 2 (USB interface) as the computing machine 1 of above-mentioned electronic installation, computing machine 1 uses the USB (universal serial bus) instruction to judge the device form of carry-on dish 4, the controller 5 of dish 4 starts the program that automatically performs with oneself, with oneself dish 4 mode of utilizing interface arrangement kind category code (for example bInterfaceClass) to set respond 4 in carry-on dish as the information of a key board unit to computing machine 1, make computing machine 1 think that carry-on dish 4 is key board unit, with oneself the controller 5 of dish 4 sends a plurality of particular sequence keyboard instructions (for example Ctrl+a represents to read by automatically performing program, Ctrl+t represents to write ...) to computing machine 1, (for example Ctrl+a represents to read to receive above-mentioned a plurality of particular sequence keyboard instructions at computing machine 1 then, Ctrl+t represents to write ...) after, controller resets the interface arrangement kind code setting value of the controller of carry-on dish 4, computing machine 1 uses USB (universal serial bus) instruction query interface device kind code setting value to confirm the device form of carry-on dish 4, with oneself the controller of dish 4 is responded computing machine 1, and 4 in dish is as a mass storage with oneself.
Fig. 2 is an embodiment process flow diagram of the method for preset instruction set in a kind of execution one storage device of the present invention.As shown in Figure 2, the method for preset instruction set may further comprise the steps in a kind of execution one storage device of the present invention:
11. will be connected to a USB (universal serial bus) as a computing machine of electronic installation as the USB (universal serial bus) of the carry-on dish of storage device;
12. computing machine uses the USB (universal serial bus) instruction to judge the device form of carry-on dish;
13. with oneself the controller of dish starts the program that automatically performs, then controller respond carry-on dish this as the information of a key board unit to computing machine;
14. the controller of dish sends a plurality of particular sequence keyboard instructions by automatically performing program with oneself, for example Ctrl+a represents to read, and Ctrl+t represents to write ... to computing machine;
15. after computing machine received a plurality of particular sequence keyboard instructions, for example Ctrl+a represented to read then, Ctrl+t represents to write ..., reset the interface arrangement kind code setting value of the controller of carry-on dish;
16. computing machine uses USB (universal serial bus) instruction query interface device kind code setting value to confirm the device form of carry-on dish;
17. the controller of dish is responded computing machine with oneself, to confirm that carry-on dish is originally as a mass storage.
Please refer to shown in Figure 3ly, be another embodiment process flow diagram of the method for preset instruction set in a kind of execution one storage device of the present invention.Wherein this method may further comprise the steps:
21. the USB (universal serial bus) of carry-on dish is connected to interface as the USB (universal serial bus) of a computing machine of electronic installation;
22. computing machine uses the USB (universal serial bus) instruction to judge the device form of carry-on dish;
23. with oneself the controller of dish starts and automatically performs program, and respond carry-on dish this as the information of a key board unit to computing machine;
24. the controller of dish sends a plurality of particular sequence keyboard instructions by automatically performing program with oneself, for example Ctrl+a represents to read, and Ctrl ten t represent to write ... to computing machine;
25. these particular sequence keyboard instructions of computing machine decipher are also carried out these particular sequence keyboard instructions, for example Ctrl+a represents to read, and Ctrl+t represents to write ...;
26. then after computing machine receives these particular sequence keyboard instructions, for example Ctrl+a represents to start, Ctrl+t represents to stop ..., reset the interface arrangement kind code setting value of the controller of carry-on dish;
27. being the device form tables of data that is built in this computing machine in the basis, this interface arrangement kind code setting value does setting;
28. the interface arrangement kind code setting value in the computing machine use USB (universal serial bus) instruction inquiry unit form tables of data is to confirm the device form of this carry-on dish;
29. the controller of this carry-on dish is responded computing machine, this carry-on dish is originally as a mass storage.
Can clearly understand by above-described method step, in a kind of execution one storage device of the present invention in the method for preset instruction set, be that the automatic executing function that present computer peripheral device is built-in can be closed and cause automatic executing function inefficacy or system's reopening machine problem to be improved by the window system registering functional, characteristics of the present invention are when connecting a storage device in a computing machine, can make computing machine assert that earlier this storage device is a key board unit by the interior preset instruction set that is built in the storage device, make the storage device can be directly interactive with computing machine, and then inform that with interface arrangement kind code setting computing machine assert that again this storage device really is a storage device, to increase the service efficiency and the convenience of storage device.Therefore, the present invention has possessed novelty and progressive on the angle of patent, has more possessed the usability on the industry on the market.
Below patent application case of the present invention is described in detail, but the above only is the preferred embodiment of patent application case of the present invention, when not limiting the scope that patent application case of the present invention is implemented.Be that all equalizations of doing according to patent application case application range of the present invention change and modify etc., all should still belong in the patent covering scope of patent application case of the present invention.

Claims (2)

1. method of carrying out preset instruction set in the storage device, this storage device are provided with built-in one controller and an interface that can be connected USB (universal serial bus) that automatically performs program, it is characterized in that this method comprises:
(1) the described interface of described storage device is connected to the interface of the USB (universal serial bus) of an electronic installation;
(2) described electronic installation uses a plurality of interface instructions to judge the form of described storage device;
(3) described controller starts the described program that automatically performs, and to respond described storage device be that an information of a key board unit is to described electronic installation;
(4) described controller sends a plurality of particular sequence keyboard instructions to described electronic installation by the described program that automatically performs;
(5) after described electronic installation receives these particular sequence keyboard instructions, described controller resets an interface arrangement kind code setting value of this controller;
(6) described electronic installation uses these interface instructions to inquire about described interface arrangement kind code setting value to confirm the form of described storage device;
(7) described controller is responded described electronic installation, and this storage device is a mass storage.
2. the method for claim 1 is characterized in that, comprises the following steps: between described step (4) and the step (5)
(41) these particular sequence keyboard instructions of described electronic installation decipher and carry out these particular sequence keyboard instructions.
CNB2006100826178A 2006-05-19 2006-05-19 Method for executing preset instruction set in storage device Active CN100430895C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100826178A CN100430895C (en) 2006-05-19 2006-05-19 Method for executing preset instruction set in storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100826178A CN100430895C (en) 2006-05-19 2006-05-19 Method for executing preset instruction set in storage device

Publications (2)

Publication Number Publication Date
CN101075195A CN101075195A (en) 2007-11-21
CN100430895C true CN100430895C (en) 2008-11-05

Family

ID=38976262

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100826178A Active CN100430895C (en) 2006-05-19 2006-05-19 Method for executing preset instruction set in storage device

Country Status (1)

Country Link
CN (1) CN100430895C (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1069510A2 (en) * 1999-07-14 2001-01-17 GRUNDIG Aktiengesellschaft Method for recording a new component in a bus system
CN1567280A (en) * 2003-06-19 2005-01-19 瀚邦科技股份有限公司 Method and apparatus for using transmission line of universal serial bus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1069510A2 (en) * 1999-07-14 2001-01-17 GRUNDIG Aktiengesellschaft Method for recording a new component in a bus system
CN1567280A (en) * 2003-06-19 2005-01-19 瀚邦科技股份有限公司 Method and apparatus for using transmission line of universal serial bus

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Windows2000设备驱动程序即插即用的实现. 肖前香,金小艳.通信技术,第2003卷第12期. 2003
Windows2000设备驱动程序即插即用的实现. 肖前香,金小艳.通信技术,第2003卷第12期. 2003 *
Windows2000设备驱动程序的INF安装文件. 姚成虎,王磊.微型机与应用,第2003卷第11期. 2003
Windows2000设备驱动程序的INF安装文件. 姚成虎,王磊.微型机与应用,第2003卷第11期. 2003 *

Also Published As

Publication number Publication date
CN101075195A (en) 2007-11-21

Similar Documents

Publication Publication Date Title
CN102375786B (en) Automatic operating system identifying method and system for USB (Universal Serial Bus) equipment
US8745304B2 (en) USB to SD bridge
CN104423576A (en) Management Of Virtual Assistant Action Items
CN103247290A (en) Communication device and control method thereof
CN101110039A (en) Terminal unit self-installing and self-starting system and method thereof
CN102262434A (en) Method and apparatus for modifying a transition to an altered power state of an electronic device based on accelerometer output
CN104699408A (en) Operation method and device of touch screen and touch device
CN102279784A (en) Electronic equipment and method and system for reminding user of use condition of system resource of electronic equipment
CN101063962B (en) Methods and electronic devices for managing mass storage devices
CN103309827B (en) The device parameter reading/writing method of terminal and device
CN110515662B (en) Remote control method, system, equipment and readable storage medium for dual-system equipment
CN100430895C (en) Method for executing preset instruction set in storage device
CN104571856A (en) Terminal
CN104035900A (en) Method and device for sharing input device of PC (personal computer) with Android device
CN101311914B (en) Electronic device and peripheral device matching system and its matching method
CN213069764U (en) Touch control equipment
CN109164987A (en) A kind of control method of magnetic disc array card, device and electronic equipment
CN202101296U (en) Microwave oven with digital menu port
CN108363674B (en) Wireless USB data interaction system and method
CN201185008Y (en) Control device for computer interface
CN100592258C (en) Memory card supporting self start-up
US8209452B2 (en) External device having a virtual storage device
CN205507888U (en) Intelligent management system of house intermediary
CN201654764U (en) Embedded download-free USB game client
US20080126731A1 (en) Method of executing a default instruction set of a stroage device

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