CN102063389A - Driving and switching method for intelligent safety equipment and intelligent safety equipment - Google Patents
Driving and switching method for intelligent safety equipment and intelligent safety equipment Download PDFInfo
- Publication number
- CN102063389A CN102063389A CN 201010266840 CN201010266840A CN102063389A CN 102063389 A CN102063389 A CN 102063389A CN 201010266840 CN201010266840 CN 201010266840 CN 201010266840 A CN201010266840 A CN 201010266840A CN 102063389 A CN102063389 A CN 102063389A
- Authority
- CN
- China
- Prior art keywords
- equipment
- computer system
- host computer
- driving
- agreement
- 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
Images
Landscapes
- Safety Devices In Control Systems (AREA)
Abstract
The invention discloses a driving and switching method for intelligent safety equipment. The driving and switching method for the intelligent safety equipment comprises the following steps that: the intelligent safety equipment is connected with the other equipment or a host system, the intelligent safety equipment reports to the other equipment or the host system that the intelligent safety equipment is first driving protocol type equipment according to a preset first driving protocol; when a request command packet related to the first driving protocol is not received in a preset period of time, the intelligent safety equipment triggers enumeration to the other equipment or the host system; and the intelligent safety equipment reports to the other equipment or the host system that the intelligent safety equipment is second driving protocol type equipment according to a preset second driving protocol. The invention also provides corresponding intelligent safety equipment. In the invention, various driving protocols are preset in the intelligent safety equipment, and a re-enumeration trigger mechanism is established in the intelligent safety equipment; and the driving protocol can be switched into the driving protocol which is supported by the other equipment or the host system for the other equipment or the host system to match and connect aiming at different application environments and the support capacities of the driving protocols, so that abnormal connection caused by the different driving support capacities of the other equipment or the host system is avoided.
Description
Technical field
The present invention relates to communication technical field, specially refer to a kind of intelligent and safe device drives changing method and intelligent and safe equipment.
Background technology
When intelligent and safe equipment is connected communication with other equipment or host computer system, need drives agreement (SCSI or HID etc.) according to certain and finish communication.
In specific implementation process, intelligent and safe equipment of the prior art uses a certain driving agreement (among SCSI or the HID etc. a kind of) and other equipment or host computer system communication, in the time can not using this kind driving agreement on other equipment or the host computer system, then between the two can not communication, cause and use inconvenience.
Summary of the invention
Main purpose of the present invention for providing a kind of intelligent safety equipment driving changing method and intelligent safety equipments that agreement connects that drive that are fit to more.
The present invention proposes a kind of intelligent and safe device drives changing method, comprising:
After connecting miscellaneous equipment or host computer system, intelligent safety equipment drives agreement according to default first and reports that to miscellaneous equipment or host computer system it is the first driving protocol type equipment;
When not receiving with the protocol-dependent request command bag of first driving in the predetermined amount of time, trigger enumerating to other equipment or host computer system;
Drive agreement according to default second and report that to miscellaneous equipment or host computer system it is the second driving protocol type equipment.
Further, connect miscellaneous equipment or host computer system after, intelligent safety equipment drives agreement according to default first and reports that to miscellaneous equipment or host computer system it is first to comprise after driving protocol type equipment:
When receiving with the protocol-dependent request command bag of first driving in the predetermined amount of time, use first driving other equipment of agreement or host computer system to finish communication initialization;
After the communication initialization success, use the first driving agreement and other equipment or host computer system to finish subsequent communications.
Further, after described connection miscellaneous equipment or the host computer system, intelligent safety equipment drives agreement according to default first and reports that to miscellaneous equipment or host computer system it is that the first driving protocol type equipment is specially:
After connecting miscellaneous equipment or host computer system, intelligent safety equipment drives agreement according to default SCSI and reports that to miscellaneous equipment or host computer system it is that SCSI drives protocol type equipment.
Further, described basis default second drives agreement and reports that to miscellaneous equipment or host computer system it is that the second driving protocol type equipment is specially:
Drive agreement according to default HID and report that to miscellaneous equipment or host computer system it is that HID drives protocol type equipment.
The present invention also provides a kind of intelligent and safe equipment, comprising:
First informs module, after being used for connecting miscellaneous equipment or host computer system, drives agreement according to default first and reports that to miscellaneous equipment or host computer system it is the first driving protocol type equipment;
Enumerate trigger module, be used for when do not receive in the predetermined amount of time other equipment or host computer system drive protocol-dependent request command bag with first the time, triggering enumerating to other equipment or host computer system;
Second informs module, drives agreement according to default second and reports that to miscellaneous equipment or host computer system it is the second driving protocol type equipment.
Further, described intelligent and safe equipment also comprises:
The communication initialization module is used for using first driving other equipment of agreement or host computer system to finish communication initialization when receiving with the protocol-dependent request command bag of first driving in the predetermined amount of time;
Communication module is used for using first to drive agreement and other equipment or host computer system communication after the communication initialization success.
Further, described first informs module specifically for after connecting miscellaneous equipment or host computer system, and intelligent safety equipment drives agreement according to default SCSI and reports that to miscellaneous equipment it is SCSI driving protocol type equipment.
Further, described second inform that module specifically is used for driving agreement according to default HID and reports that to miscellaneous equipment or host computer system it is that HID drives protocol type equipment.
The present invention is by presetting multiple driving agreement in intelligent safety equipment, for miscellaneous equipment or the host computer system of using different agreement, intelligent safety equipment can call different driving agreements and mate connection, has avoided because of can not normally connecting that the difference that drives agreement causes.
Description of drawings
Fig. 1 is the process flow diagram of a kind of intelligent and safe device drives of the present invention changing method one embodiment;
Fig. 2 is the structural drawing of a kind of intelligent and safe equipment one embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage are described further with reference to accompanying drawing in connection with embodiment.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
With reference to Fig. 1, be the process flow diagram of a kind of intelligent and safe device drives of the present invention changing method one embodiment.In intelligent and safe equipment, preset a plurality of driving agreements in the embodiment of the invention, for example set in advance disc drives agreement SCSI and USB and drive agreement HID.The embodiment of the invention is roughly: connect computer as example take intelligent safety equipment, after intelligent safety equipment is connected to computer, drive agreement according to default first and report that to computer it is the first driving protocol type equipment, waits for that the computer transmission drives protocol-dependent request command bag with first; When do not receive in the predetermined amount of time that computer sends over first when driving agreement request order bag, intelligent safety equipment triggers again to the computer enumerating mechanism, and drive agreement according to default second and report that to computer it is second to drive protocol type equipment, wait for that computer sends with second to drive protocol-dependent request command bag; When not receiving the second driving agreement request order bag that computer sends in the scheduled time, automatically trigger re-enumeration mechanism, the rest may be inferred.
Step S101, intelligent and safe equipment are connected with miscellaneous equipment or host computer system;
Concrete, for example when the plug in computing machine USB interface of intelligent and safe equipment.
Step S102, intelligent safety equipment drive agreement according to default first and report that to miscellaneous equipment or host computer system it is the first driving protocol type equipment;
After intelligent safety equipment inserts USB interface, a kind of in the driving agreement that Automatically invoked presets.The concrete acquiescence that can manually or fixedly install drives agreement, and driving agreement with SCSI in embodiments of the present invention serves as that acquiescence drives agreement.When intelligent safety equipment is connected with computer, will report that to computer it is as the scsi device type take the standard that SCSI drives agreement.After being reported as the scsi device type, intelligent and safe equipment will be waited for a Preset Time section, when not receiving in the Preset Time section when driving protocol-dependent request command bag with first, continues step S103; When receiving with the first driving agreement association requests order bag,, continue step S105.
Step S103, triggering enumerating again to miscellaneous equipment or host computer system;
When intelligent safety equipment within a predetermined period of time do not receive that miscellaneous equipment or host computer system send drive protocol-dependent request command bag with first the time, judge that miscellaneous equipment or host computer system impracticable first drives agreement; Intelligent safety equipment can trigger automatically to the enumerating of miscellaneous equipment or host computer system, and is understandable to the enumerating triggering and also can take non-automaticly of miscellaneous equipment or host computer system, just again triggers when namely receiving user command and enumerates.
Step S104, basis default second drive agreement and report that to miscellaneous equipment or host computer system it is the second driving protocol type equipment.
When intelligent safety equipment does not receive with the protocol-dependent request command bag of first driving within a predetermined period of time, after triggering miscellaneous equipment or host computer system re-enumeration, report that to miscellaneous equipment or host computer system it is the second driving protocol type equipment, drives consensus standard with HID in embodiments of the present invention and initiates connection request.Certainly, when if the default second driving agreement also fails normally to connect, drive agreement then drive protocol report according to the 3rd it is the 3rd to drive protocol type equipment if be preset with the 3rd, the rest may be inferred, all attempted up to successful connection or all default agreements that drives.
Step S105, use first drive agreement and other equipment or host computer system and finish communication initialization.
When receiving when driving protocol-dependent request command bag with first, judgement can be used this driving agreement and computing machine communication, thereby finishes the subsequent communications request, and uses the driving agreement of this driving agreement as subsequent communications.
Step S106, after communication initialization success, use first to drive agreement and other equipment or host computer system communication.
Understandable, if behind the step S104, when intelligent and safe equipment receives and drives protocol-dependent request command bag with second, adopt the second driving agreement and other equipment or host computer system to finish communication initialization, and finish the subsequent communications request and use the driving agreement of this agreement as subsequent communications.
The present invention is by presetting multiple driving agreement in intelligent safety equipment, for miscellaneous equipment or the host computer system of using different agreement, intelligent safety equipment can call different driving agreements and mate connection, has avoided because of can not normally connecting of driving the different of agreement or do not support to cause.
With reference to Fig. 2, be the structural drawing of a kind of intelligent and safe equipment one embodiment of the present invention.
The intelligent and safe equipment that the embodiment of the invention provides comprises:
A kind of intelligent and safe equipment is characterized in that, comprising:
Enumerate trigger module 22, be used for when do not receive in the predetermined amount of time other equipment or host computer system drive protocol-dependent request command bag with first the time, triggering enumerating to other equipment or host computer system;
Further, described intelligent and safe equipment can also comprise:
Further, described first informs that module 21 is concrete is used for after miscellaneous equipment or host computer system are connected, and intelligent safety equipment drives agreement according to default SCSI and reports that to miscellaneous equipment or host computer system it is SCSI driving protocol type equipment.
Further, described second inform that module 22 is concrete for reporting that to miscellaneous equipment or host computer system it is that HID drives protocol type equipment according to default HID driving agreements.After intelligent and safe equipment inserted USB interface, first informed that module 21 calls a kind of in the driving agreement that presets automatically.The concrete acquiescence that can manually or fixedly install drives agreement, and driving agreement with SCSI in embodiments of the present invention serves as that acquiescence drives agreement.When intelligent safety equipment was connected with other equipment or host computer system, first informed that module 21 reports that to miscellaneous equipment or host computer system it is that SCSI drives protocol type equipment.
When intelligent safety equipment does not receive when driving protocol-dependent request command bag with SCSI within a predetermined period of time, judge that this computer can not drive agreement with SCSI and connect; Enumerate then trigger module 22 and can automatically trigger to the enumerating of miscellaneous equipment or host computer system, understandable to the enumerating triggering and also can take non-automaticly of miscellaneous equipment or host computer system, just again trigger when namely receiving user command or operation and enumerate.
Again enumerate finish after, second informs that module 23 reports that to miscellaneous equipment or host computer system it is second to drive protocol type equipment, drives agreement with HID in embodiments of the present invention and drives agreement as second.Certainly, when if the default second driving agreement also fails normally to connect, drive agreement then first inform that module 21 or second informs that module 23 reports that to miscellaneous equipment or host computer system it is the 3rd to drive protocol type equipment if be preset with the 3rd, the rest may be inferred drives agreement up to successful connection or all and is all attempted.Understandable, first in the embodiment of the invention informs that module 21 and second informs that module 23 can be same module.
Drive agreement and HID drives agreement as example take SCSI in embodiments of the present invention, but be understandable that in the intelligent safety equipment that the embodiment of the invention provides, can preset and drive agreement like the multiple types and reach adaptive purpose in order to switching.
The present invention is by presetting multiple driving agreement in intelligent safety equipment, for miscellaneous equipment or the host computer system of using different agreement, intelligent safety equipment can call different driving agreements and mate connection, has avoided because of can not normally connecting of driving the different of agreement or do not support to cause.
The above only is the preferred embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.
Claims (8)
1. an intelligent and safe device drives changing method is characterized in that, comprising:
After connecting miscellaneous equipment or host computer system, intelligent safety equipment drives agreement according to default first and reports that to miscellaneous equipment or host computer system it is the first driving protocol type equipment;
When not receiving with the protocol-dependent request command bag of first driving in the predetermined amount of time, trigger enumerating to other equipment or host computer system;
Drive agreement according to default second and report that to miscellaneous equipment or host computer system it is the second driving protocol type equipment.
2. method according to claim 1 is characterized in that, connect miscellaneous equipment or host computer system after, intelligent safety equipment drives agreement according to default first and reports that to miscellaneous equipment or host computer system it is first to comprise after driving protocol type equipment:
When receiving with the protocol-dependent request command bag of first driving in the predetermined amount of time, use the first driving agreement and other equipment or host computer system to finish communication initialization;
After the communication initialization success, use the first driving agreement and other equipment or host computer system to finish subsequent communications.
3. method according to claim 1 and 2 is characterized in that, after described connection miscellaneous equipment or the host computer system, intelligent safety equipment drives agreement according to default first and reports that to miscellaneous equipment or host computer system it is that the first driving protocol type equipment is specially:
After connecting miscellaneous equipment or host computer system, intelligent safety equipment drives agreement according to default SCSI and reports that to miscellaneous equipment or host computer system it is that SCSI drives protocol type equipment.
4. method according to claim 1 and 2 is characterized in that, described basis default second drives agreement and reports that to miscellaneous equipment or host computer system it is that the second driving protocol type equipment is specially:
Drive agreement according to default HID and report that to miscellaneous equipment or host computer system it is that HID drives protocol type equipment.
5. an intelligent and safe equipment is characterized in that, comprising:
First informs module, after being used for connecting miscellaneous equipment or host computer system, drives agreement according to default first and reports that to miscellaneous equipment or host computer system it is the first driving protocol type equipment;
Enumerate trigger module, be used for when do not receive in the predetermined amount of time other equipment or host computer system drive protocol-dependent request command bag with first the time, triggering enumerating to other equipment or host computer system;
Second informs module, drives agreement according to default second and reports that to miscellaneous equipment or host computer system it is the second driving protocol type equipment.
6. intelligent and safe equipment according to claim 5 is characterized in that, described intelligent and safe equipment also comprises:
The communication initialization module is used for using first driving other equipment of agreement or host computer system to finish communication initialization when receiving with the protocol-dependent request command bag of first driving in the predetermined amount of time;
Communication module is used for using first to drive agreement and other equipment or host computer system communication after the communication initialization success.
7. according to claim 5 or 6 described intelligent and safe equipment, it is characterized in that, described first inform that module specifically is used to connect miscellaneous equipment or host computer system after, intelligent and safe equipment drives agreement according to default SCSI and reports that to miscellaneous equipment it is that SCSI drives protocol type equipment.
8. according to claim 5 or 6 described intelligent and safe equipment, it is characterized in that described second informs that module specifically is used for driving agreement according to default HID and reports that to miscellaneous equipment or host computer system it is that HID drives protocol type equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010266840 CN102063389A (en) | 2010-08-30 | 2010-08-30 | Driving and switching method for intelligent safety equipment and intelligent safety equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010266840 CN102063389A (en) | 2010-08-30 | 2010-08-30 | Driving and switching method for intelligent safety equipment and intelligent safety equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102063389A true CN102063389A (en) | 2011-05-18 |
Family
ID=43998674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010266840 Pending CN102063389A (en) | 2010-08-30 | 2010-08-30 | Driving and switching method for intelligent safety equipment and intelligent safety equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102063389A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591839A (en) * | 2012-01-15 | 2012-07-18 | 北京深思洛克软件技术股份有限公司 | USB (universal serial bus) multiprotocol self-adaptive method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100422992C (en) * | 2005-08-08 | 2008-10-01 | 扬智科技股份有限公司 | Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device |
CN101587519A (en) * | 2008-05-21 | 2009-11-25 | 北京飞天诚信科技有限公司 | System and method for realizing multifunctional information security device |
CN101814037A (en) * | 2010-03-12 | 2010-08-25 | 青岛海信宽带多媒体技术有限公司 | Drive method compatible with various smart cards |
-
2010
- 2010-08-30 CN CN 201010266840 patent/CN102063389A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100422992C (en) * | 2005-08-08 | 2008-10-01 | 扬智科技股份有限公司 | Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device |
CN101587519A (en) * | 2008-05-21 | 2009-11-25 | 北京飞天诚信科技有限公司 | System and method for realizing multifunctional information security device |
CN101814037A (en) * | 2010-03-12 | 2010-08-25 | 青岛海信宽带多媒体技术有限公司 | Drive method compatible with various smart cards |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591839A (en) * | 2012-01-15 | 2012-07-18 | 北京深思洛克软件技术股份有限公司 | USB (universal serial bus) multiprotocol self-adaptive method |
CN102591839B (en) * | 2012-01-15 | 2015-02-25 | 北京深思洛克软件技术股份有限公司 | USB (universal serial bus) multiprotocol self-adaptive method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20090011738A1 (en) | Mobile communication apparatus | |
US8875141B2 (en) | Execute or cancel a scheduled task execution that missed execution condition on a device based on rule and execution condition received from a management server | |
CN101409606A (en) | Device and method for rebuilding connection in mobile communication system environment | |
CN101916200B (en) | The method of terminal staging, the method for backoff of terminal upgrading and upgrading management center | |
CN101826984A (en) | Log information processing method and device thereof | |
US20150169484A1 (en) | Active USB device and switching method for operating mode thereof | |
CN104572564A (en) | Method for realizing communication of Android mobile equipment and USB OTG (On-The-Go) host computer | |
CN101980482B (en) | Method for monitoring network connection and system thereof | |
CN101217436A (en) | Ethernet port and its rate setting method | |
CN104503814A (en) | Firmware program automatically downloading method of USB 3.0 data acquisition module | |
CN102710629B (en) | Method for connecting network and system | |
US9634890B2 (en) | Powering off and rebooting method, device and system | |
CN102004535B (en) | Electronic system and resetting method thereof | |
CN102426558A (en) | Communication method of terminal and computer through universal serial bus (USB), terminal, and computer | |
US20070155422A1 (en) | Method for controlling mobile data connection through USB Ethernet management of mobile station | |
WO2012041239A1 (en) | System and method for input tool invocation and proxy device | |
CN102063389A (en) | Driving and switching method for intelligent safety equipment and intelligent safety equipment | |
EP2536067B1 (en) | Apparatus and method for implementing point to point protocol data service link-disconnect | |
EP2515601B1 (en) | Dial-up connection method and device of mobile data terminal | |
CN101853177A (en) | Driving device of M2M (machine to machine) module with USB (Universal Serial Bus) interface | |
CN103530159A (en) | Upgrading method and system of wireless communication module | |
CN101090511B (en) | Release method for death resource | |
CN102591839B (en) | USB (universal serial bus) multiprotocol self-adaptive method | |
CN102025565A (en) | I2C bus communication detection method used among multiple devices | |
CN112637086B (en) | Communication method, system and medium based on module automatic compiling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110518 |