Universal communication method of special low-speed USB equipment
2015
The invention discloses a universal communication method of special low-speed USB equipment. The universal communication method for the special low-speed USB equipment comprises the following steps: firstly, obtaining the information set of all the special low-speed USB equipment which is currently connected with a host; then enumerating one special low-speed USB equipment in the set, comparing the ID value of the enumerated special low-speed USB equipment with that of one special low-speed USB equipment to be loaded, and loading the currently enumerated special low-speed USB equipment if the ID value of the enumerated special low-speed USB equipment is the same as that of the special low-speed USB equipment to be loaded; establishing and maintaining a reading equipment thread and a writing equipment thread if the currently enumerated special low-speed USB equipment is loaded successfully; stopping the reading equipment thread before obtaining data inputted into the loaded special low-speed USB equipment, and operating the reading equipment thread after obtaining the data; stopping the writing equipment thread before obtaining data written into the loaded special low-speed USB equipment, and operating the writing equipment thread after obtaining the data. The special low-speed USB equipment integrates the recognizing function with the reading and writing functions, can respond quickly, can be loaded and unloaded flexibly and can be applied to different operation systems.
- Correction
- Source
- Cite
- Save
- Machine Reading By IdeaReader
0
References
0
Citations
NaN
KQI