CN103455450B - USB (universal serial bus) device communication method - Google Patents

USB (universal serial bus) device communication method Download PDF

Info

Publication number
CN103455450B
CN103455450B CN201310431362.1A CN201310431362A CN103455450B CN 103455450 B CN103455450 B CN 103455450B CN 201310431362 A CN201310431362 A CN 201310431362A CN 103455450 B CN103455450 B CN 103455450B
Authority
CN
China
Prior art keywords
usb
computer
storage device
equipment
usb storage
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
CN201310431362.1A
Other languages
Chinese (zh)
Other versions
CN103455450A (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.)
SHANDONG ZHONGFU INFORMATION INDUSTRY Co Ltd
Original Assignee
SHANDONG ZHONGFU INFORMATION INDUSTRY 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 SHANDONG ZHONGFU INFORMATION INDUSTRY Co Ltd filed Critical SHANDONG ZHONGFU INFORMATION INDUSTRY Co Ltd
Priority to CN201310431362.1A priority Critical patent/CN103455450B/en
Publication of CN103455450A publication Critical patent/CN103455450A/en
Application granted granted Critical
Publication of CN103455450B publication Critical patent/CN103455450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention provides a technical scheme of a USB (universal serial bus) device communication method. By the method, data exchange of a computer and a USB device can be performed through a USB interface under a real mode, a system which is started up under the real mode can communicate with the USB device, and the USB device is enumerated into USB storage devices, so that the USB device is taken as one USB storage device by the computer during POST; a control program is interrupted through a BIOS (basic input/output system), so that a computer software can obtain disk sector information of the USB storage device. Interaction with the USB device can be performed by means of reading and writing a disk sector, and thus the communication problem of the USB device under the condition of having no operating system is solved.

Description

A kind of usb device talk method
Technical field
The present invention relates to a kind of main method that computer is interacted with usb device talk in real mode, it is applied to computer and usb device talk every field.
Background technology
In the prior art, known technology is secured physical xegregating unit is well-known physical isolation safety product, it meets " information security technology network and terminal unit isolated part safety specifications " in " National Standard of the People's Republic of China ", but it is a kind of passive physical security Protection Product, it is arranged on the secured physical xegregating unit on every main frame, the pcie interface of machine is also less and less now, the pcie slot of each producer of pc machine controls disunity, and there is compatibility issue in the display card that the physical isolation equipment for network safety of pcie communication interface and machine are joined.
Similar products on the market, or starting-up interface running software is under an operating system, is vulnerable to the attack of viral wooden horse and speed are slower, or realizing complicated usb equipment bottom layer driving, compatibility is poor.This is the weak point existing for prior art.
Content of the invention
The purpose of the present invention is aiming at the deficiency existing for prior art, and a kind of technical scheme of usb device talk method is provided, with usb device talk under the real pattern that the method for the program can be implemented in during system start-up, solve the usb device talk difficult problem in the case of no operating system.
This programme is achieved by the following technical measures: a kind of usb device talk method, realizes being the exchange that under pattern, computer and usb equipment carry out data by usb interface, comprises the steps:
1) pre-install startup program in a computer;
2) start computer, load startup program under computer real pattern, and check whether usb interface connects equipment, if connecting usb equipment, entering step 3), not connecting equipment, then terminate this program, normally start computer;
3) usb device enumeration is become usb storage device by computer;
4) computer issues read write command to usb storage device, and usb storage device is effectively communicated by intercepting read write command;
5) inquiry of usb storage device intercepts usb read-write packet, carries out data check ratio, after verification is correct, carries out data exchange;Check errors, terminate communication, and computer normally starts.
The beneficial effect of this programme can be learnt according to the narration of such scheme, due to being communicated with usb equipment in real mode in this scenario, usb device enumeration is become usb storage type equipment, thus computer is during post, usb equipment is thought into a usb storage device.By bios interrupt control routine, under real pattern, computer software just can get the disk sector information of usb storage device, carries out interacting with usb equipment by the method reading and writing disk sector.
As can be seen here, the present invention compared with prior art, has prominent substantive distinguishing features and significantly improves, and the beneficial effect that it is implemented is also obvious.
Specific embodiment
For the technical characterstic of this programme can be clearly described, below by a specific embodiment, this programme is illustrated.
The usb device talk method of this programme, realizes being the exchange that under pattern, computer and usb equipment carry out data by usb interface, comprises the steps:
1) pre-install startup program in a computer;
2) when starting computer, load startup program under the real pattern of computer, and calculate whether machine check usb interface connects equipment, if connecting usb equipment, entering step 3), not connecting usb equipment, then computer normally starts;
3) usb device enumeration is become usb storage device by computer;
4) read write command is issued by computer software usb storage device, usb equipment is effectively communicated by intercepting read write command;
5) inquiry of usb storage device intercepts usb read-write packet, carries out data check ratio, after verification is correct, carries out data exchange;Check errors, terminate communication, and computer normally starts.
The present invention is not limited in above-mentioned specific embodiment, change, remodeling, interpolation or replacement that those of ordinary skill in the art make in the essential scope of the present invention, also should belong to protection scope of the present invention.

Claims (1)

1. a kind of usb device talk method, realizes, by usb interface, the exchange that computer and usb equipment under real pattern carry out data, comprises the steps:
1) pre-install startup program in a computer;
2) start computer, load startup program under computer real pattern, and check whether usb interface connects equipment, if connecting usb equipment, entering step 3), not connecting equipment, then terminate this program, normally start computer;
3) during post, usb device enumeration is become usb storage device to computer by computer;
4) under real pattern, computer software just can get the disk sector information of usb storage device, carry out interacting with usb equipment by the method reading and writing disk sector, computer issues read write command to usb storage device, and usb storage device is effectively communicated by intercepting read write command;
5) inquiry of usb storage device intercepts usb read-write packet, carries out data check ratio, after verification is correct, carries out data exchange;Check errors, terminate communication, and computer normally starts.
CN201310431362.1A 2013-09-22 2013-09-22 USB (universal serial bus) device communication method Active CN103455450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310431362.1A CN103455450B (en) 2013-09-22 2013-09-22 USB (universal serial bus) device communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310431362.1A CN103455450B (en) 2013-09-22 2013-09-22 USB (universal serial bus) device communication method

Publications (2)

Publication Number Publication Date
CN103455450A CN103455450A (en) 2013-12-18
CN103455450B true CN103455450B (en) 2017-01-18

Family

ID=49737841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310431362.1A Active CN103455450B (en) 2013-09-22 2013-09-22 USB (universal serial bus) device communication method

Country Status (1)

Country Link
CN (1) CN103455450B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9311504B2 (en) 2014-06-23 2016-04-12 Ivo Welch Anti-identity-theft method and hardware database device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101187876A (en) * 2007-12-11 2008-05-28 铁道第三勘测设计院集团有限公司 Parasitic DOS operation system manufacture and its usage method
CN101222697A (en) * 2007-01-09 2008-07-16 上海晨兴电子科技有限公司 Method for using mobile terminal as computer extended application
CN101490645A (en) * 2006-07-10 2009-07-22 Vm设备有限公司 Method and apparatus for virtualization of appliances
CN101571804A (en) * 2008-04-29 2009-11-04 苏州宇达电通有限公司 Universal serial bus (USB) input device system with disk operation system (DOS) starting command and starting method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101490645A (en) * 2006-07-10 2009-07-22 Vm设备有限公司 Method and apparatus for virtualization of appliances
CN101222697A (en) * 2007-01-09 2008-07-16 上海晨兴电子科技有限公司 Method for using mobile terminal as computer extended application
CN101187876A (en) * 2007-12-11 2008-05-28 铁道第三勘测设计院集团有限公司 Parasitic DOS operation system manufacture and its usage method
CN101571804A (en) * 2008-04-29 2009-11-04 苏州宇达电通有限公司 Universal serial bus (USB) input device system with disk operation system (DOS) starting command and starting method thereof

Also Published As

Publication number Publication date
CN103455450A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN101980235B (en) Safe computing platform
US20090313391A1 (en) Computer system, device sharing method, and device sharing program
US20200177381A1 (en) Trusted measuring method, apparatus, system, storage medium, and computing device
WO2005089139A3 (en) Remote usb port system and method
US8151017B2 (en) Multiplexing application and debug channels on a single USB connection
CN102375786B (en) Automatic operating system identifying method and system for USB (Universal Serial Bus) equipment
CN102622136B (en) A kind of multi-point touch system data processing method and device
TW200625099A (en) Redundant storage virtualization computer system
CN102622313B (en) The method of the port switching method of USB device, system and differentiation operating system
CN103593622A (en) FPGA-based design method of safe and trusted computer
US9411603B2 (en) Chip and starting method thereof
CN204374963U (en) A kind of server for encrypting module based on TCM chip
CN103150188A (en) Quick initialization method for x86 compatible display card of non-x86 instruction set computer
CN105468390A (en) BOOT online upgrade apparatus and method
CN101923505A (en) Test system and method of peripheral component interconnection rapid slot
EP2990956B1 (en) Usb device and method thereof for automatically recognizing microsoft windowing operating system version
CN103455450B (en) USB (universal serial bus) device communication method
CN102314574A (en) HID (human interface device)-based method for setting access rights of host machine
CN102981675B (en) A kind of multiple point touching data processing method and system thereof
CN101739284B (en) Computer and information processing method
CN206684646U (en) A kind of RAID memory planes based on double SD cards
CN207281670U (en) A kind of desktop computer of soaring for supporting fingerprint identification function
WO2012040069A3 (en) Root hub virtual transaction translator
CN101488177A (en) BIOS based computer security control system and method thereof
CN206441175U (en) A kind of isolator of movable storage 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
CB02 Change of applicant information

Address after: Xinluo Avenue high tech Zone of Ji'nan City, Shandong province 250101 orsus No. 1166 building 15-16

Applicant after: Shandong Zhongfu Information Industry Co., Ltd.

Address before: 250101 Shandong city of Ji'nan province high tech Zone Shun Road No. 2000 Shun Tai Plaza No. 9 Building 8 layer

Applicant before: Shandong Zhongfu Information Industry Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant