CN100389374C - Method for controlling main equipment by inputting via equipment - Google Patents

Method for controlling main equipment by inputting via equipment Download PDF

Info

Publication number
CN100389374C
CN100389374C CN 200510012055 CN200510012055A CN100389374C CN 100389374 C CN100389374 C CN 100389374C CN 200510012055 CN200510012055 CN 200510012055 CN 200510012055 A CN200510012055 A CN 200510012055A CN 100389374 C CN100389374 C CN 100389374C
Authority
CN
China
Prior art keywords
command
device
control information
master device
host
Prior art date
Application number
CN 200510012055
Other languages
Chinese (zh)
Other versions
CN1889014A (en
Inventor
轩 侯
琳 徐
李高强
Original Assignee
联想(北京)有限公司
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 联想(北京)有限公司 filed Critical 联想(北京)有限公司
Priority to CN 200510012055 priority Critical patent/CN100389374C/en
Publication of CN1889014A publication Critical patent/CN1889014A/en
Application granted granted Critical
Publication of CN100389374C publication Critical patent/CN100389374C/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/34User authentication involving the use of external additional devices, e.g. dongles or smart cards

Abstract

根据本发明,提出了一种通过从设备输入来控制主设备的方法,包括:从设备存储用户在其上输入的控制信息;响应接收到的来自主设备的询问命令,从设备向主设备发送所存储的用户输入控制信息;以及主设备根据所接收到的用户输入控制信息,控制与所述用户输入控制信息相关的应用程序的执行。 According to the present invention, a method is proposed, by a method comprising controlling the input device from the master device: a storage device from which the user input control information; receiving a response to the inquiry command from the master device, the slave device transmits to the master device the stored user input control information; and a master device according to the received control information to user input, control information related to the application program execution with the user input.

Description

通过从设备输入来控制主设备的方法 By a method to control the input device from the master device

技术领域 FIELD

本发明属于消费电子产品技术领域,涉及通过从设备输入来控制 The present invention belongs to the technical field of consumer electronics products, to be controlled by the input device from

主设备的方法,可应用于USB海量存储设备功能扩展。 The method of the master device, USB mass storage device can be applied to a function expansion. 背景技术 Background technique

目前,很多便携设备都配有USB标准端口以便于PC通过USB (通用串行总线)标准通信,从而达到数据交换和控制的目的。 Currently, many portable devices are equipped with a standard USB port to the PC via a USB (Universal Serial Bus) standard communication, so as to achieve the exchange of data and control. 但目前的控制都是由主机(主设备)去控制与其连接的从设备(在此情况下为USB 设备),很少有实现从设备(USB设备)通过其输入发送控制信息给主机来控制主设备并进而实现其操作的设备。 However, the current control is to control the device connected thereto by the host (master) (in this case a USB device), there is little realized from the device (USB device) through which the input transmission information to the host control to control the main equipment and thus achieve its equipment operations. 在USB通信的情况下,这是由于受到了USB协议中规定的PC与USB设备的主从通信模式的限制。 In the case of USB communication, which is limited due to the host PC and the USB device from the communication mode specified in USB protocol.

实现用户通过从设备(USB设备)向主机发送控制信息的方法一般不外乎通过按键或者设备上的触摸屏,即通过用户输入。 Achieved by a method of transmitting from the user device (USB device) to the host by no more than the control information is typically a touch screen or buttons on the device, i.e. by user input. 其中按键输入方式是通过将一些开关的开合所引起的电压值的变化反馈给设备的控制芯片,当控制芯片检测到对应的要发送给主机控制信息的电压值时就将相应的控制信息发送给主机。 Wherein the key input is by some changes in the voltage value caused by opening and closing the switch back to the control chip device, when the control chip is detected to be sent to the corresponding host control voltage value information corresponding to the control information will be transmitted to the host. 同理,触摸屏的方式是设备控制器检测到屏幕上在不同模式下相应的区域有触点接触时,就发送相应的控制信息给主机。 Similarly, the embodiment is a device touch screen controller detects the contact with the contacts on the screen, sends corresponding control information to the host in a region corresponding to the different modes.

目前,自运行(Autorun)技术已经得到广泛地应用,这是-一种在USB设备插入计算机后,可以自动运行设备中的指定程序的技术。 Currently, self-running (Autorun) technology has been widely used, it is - a technical procedure specified in the USB device into your computer, you can automatically run the device. 由于Windows系统支持基于本地磁盘或CD-R0M的自运行技术,所以目前基于USB设备的自运行技术主要是把USB海量存储(Mass-Storage)设备模拟成本地磁盘或CD-ROM实现的。 Because Windows-based system to support self-running technology local disk or CD-R0M, it is currently running from a USB device-based technology mainly to USB mass storage (Mass-Storage) device to simulate the cost of the disk or CD-ROM implementation.

现在,有很多mp3或者U盘可以通过自运行技术来实现当设备与PC 相连时执行一些特定的应用程序。 Now, there are a lot of mp3 or U disk can be achieved through self-running technique when performing some specific applications when the device is connected to the PC. 例如IP电话、加密软件、转换CD文 Such as IP phones, encryption software, CD text conversion

件到MP3的应用程序等等。 Pieces to MP3 application, and so on. 在这些程序的执行过程中,用户往往会希望在USB设备端(即从设备端)对这些应用程序的执行有一个控制。 During the execution of these programs, users tend to want the USB device side (i.e., from the device side) having a control execution of these application programs. 例如用户可以通过触摸屏控制IP电话的拨号、加密软件密码的输入,通过按键转换CD文件到MP3程序的幵始运行等。 For example, the user can control the IP phone by dialing touch screen input, password encryption software through a key convert MP3 files to CD program starts its operation and so on. 同样地,用户也希望实现对PC上运行的其它软件的控制。 Likewise, users also want to achieve the control of other software running on your PC.

如上所述,需要一种通过从设备输入来控制主设备的方法。 As described above, the method to control the main device from the device through the need for an input.

发明内容 SUMMARY

本发明的目的就是提供一种实现从设备向主设备发送控制信息的方法,从而通过该控制信息来控制主设备上运行的应用的操作。 Object of the present invention is to provide a method for transmitting from a master device to realize the device control information, so as to control the operation of an application running on the host device by the control information. 因此,通过本发明,能够满足一些用户对于USB设备和PC交互的一些特殊的要求,使其得以方便的实现。 Accordingly, by the present invention, it is possible for some users to meet special requirements of the USB device and the PC interactive, so as to facilitate the realization.

为了实现上述目的,根据本发明,提出了一种通过从设备输入来 To achieve the above object, according to the present invention, a method is proposed by an input device from

控制主设备的方法,包括:从设备存储用户在其上输入的控制信息; 响应接收到的来自主设备的询问命令,从设备向主设备发送所存储的用户输入控制信息;以及主设备根据所接收到的用户输入控制信息, 控制与所述用户输入控制信息相关的应用程序的执行。 Control of the main device, comprising: a slave device stores the user control information on which input; in response to inquiry command received from the master device, a user input sent from the device to the master device stores control information; and a master device according to the receiving a user input to the control information, control information related to the application program execution with the user input. 优选地,所述主设备是个人计算机。 Preferably, the master device is a personal computer. 优选地,所述从设备是通用串行总线设备。 Preferably, the universal serial bus device from devices Yes. 优选地,所述询问命令是小型计算机系统接口命令。 Preferably, the inquiry command is a Small Computer System Interface command. 优选地,将所述询问命令包含在小型计算机系统接口命令包中, 以便通过所述命令包在所述主设备和从设备之间发送和接收所述询问命令。 Preferably, the interrogation command includes the Small Computer System Interface command packet, the command packet to the master device and the transmission and reception of the interrogation command to the slave device.

优选地,所述询问命令是利用小型计算机系统接口命令包中的未使用命令来实现的。 Preferably, the inquiry command is a command using a Small Computer System Interface package with a command to achieve.

优选地,所述询问命令是通过在小型计算机系统接口命令包进行扩展命令定义来实现的。 Preferably, the inquiry command is a command defined by extending the Small Computer System Interface command packet to achieve.

优选地,所述从设备存储用户在其上输入的控制信息的步骤还包括步骤:用户釆用按键或触摸屏输入所述控制信息。 Preferably, the step of controlling information from the storage device on which the user input further comprises the step of: preclude the use of user input keys or a touch screen the control information.

优选地,所述从设备向主设备发送所存储的用户输入控制信息的步骤是采用命令包、数据包、或命令包与数据包组合的发送方式来实现的。 Preferably, the step of the control information to the apparatus transmitting the stored user input from the master device is the use of a command packet, a data packet or a command packet to the packet transmission method implemented in combination.

优选地,所述从设备向主设备发送所存储的用户输入控制信息的步骤包括:在完成所述发送之后,所述从设备向主设备发送用于指不数据已发完的确认消息。 Preferably, the step of the control information stored in a user input device to the master device from transmitting comprising: after completion of the transmission, the means of data has been completed without an acknowledgment message sent from the device transmits to the master device.

附图说明 BRIEF DESCRIPTION

通过参考以下结合附图所釆用的优选实施例的详细描述,本发明的上述目的、优点和特征将变得显而易见,其中: The detailed description preclude the use of the accompanying drawings by reference to the following preferred embodiments, the above-described objects, advantages and features of the invention will become apparent, wherein:

图1示出了根据本发明实施例的通过USB设备输入来控制PC设备的操作的流程图;以及 FIG 1 shows a flowchart of an operation to control the PC via the input apparatus according to an embodiment of the USB device of the present invention; and

图2示出了根据本发明实施例,在USB设备和主机之间传送的包含SCSI命令的消息格式。 Figure 2 shows a message format comprising a SCSI command according to an embodiment of the present invention, the transfer between the host and the USB device.

具体实施方式 Detailed ways

下面,将描述根据本发明的实施例,应该注意,为了便于理解本发明,在从设备为USB设备而主设备为PC (个人计算机)且两者进行交互的情况下对本发明进行了描述,但是本发明并不局限于此。 Will be described below according to embodiments of the present invention, it should be noted that, in order to facilitate understanding of the present invention, in the case where the master device to interact with one PC (personal computer) and both from the device to the USB device of the present invention has been described, The present invention is not limited thereto. 主设备可以是除了PC之外的任意设备,例如PDA和笔记本电脑等。 The master device may be any device other than the PC, such as PDA and notebook computers. 从设备可以是MP3、加密端子等,当然,相应地,从设备可以通过除了USB协议之外的其他协议与主设备相连。 Slave device may be MP3, encryption and other terminals, of course, accordingly, may be connected to the device via the USB protocol in addition to other protocols with the master device.

因此,在以下描述中,将针对USB设备和PC交互的情况来描述本发明。 Thus, in the following description, the invention will be described for the case of a USB device and the PC interactive.

本发明的主要思想在于:通过对USB设备控制器上的固件进行设计,实现当USB设备与PC相连时、能够检测到事先约定的按键按下的信息,并且将其记录下来。 The main idea of ​​the present invention is that: The firmware on the USB device controller designed to achieve when the USB device is connected to the PC, the information can be detected prior agreement of the key depression, and record it. 为此,在USB设备端的固件中需要添加用户自定义的SCSI (小型计算机系统接口)命令,该命令不属于SCSI命令规范中已经定义好的命令,它是在本发明的情况下,针对USB设备专门定义的命令。 To this end, the firmware in the USB device side need to add SCSI (Small Computer System Interface) user-defined command, the command does not belong to the SCSI command specification command has been defined, it is in the case of the present invention, for the USB device special commands defined. 在定义完SCSI命令以后,还要在USB设备的固件中添加用f In the definition of the SCSI command after completion, but also added in the firmware f with USB devices

接收该命令、并在接收到该命令以后发送反馈命令和信息给PC软件的 Receives the command and sends commands and feedback information after receiving the command to the PC software

程序,如稍后进一步说明的,也可以利用SCSI命令包中的未使用命令 Procedures, as further explained later, can also use the SCSI command packet with a command

来实现上述操作。 To achieve the above operation.

在受USB设备控制的PC端的应用软件中添加支持这种通信方法的驱动程序。 Add drivers to support this communication method in application software by USB device control PC end. 该驱动程序的主要工作就是向插有该USB设备的USB端口发送上述自定义SCSI控制命令,并且接收从USB设备反馈回来的命令和控制信息,然后根据反馈回来的命令和控制信息来执行PC端执行相应的操作。 The main work of the driver is to plug a USB port of the USB device transmits the custom SCSI control command, and receives the USB device fed back command and control information, and then performs the PC-side feedback back command and control information the appropriate action.

通过上述本发明的方法,可以使使用者通过对USB设备的控制来实现对PC端上运行的软件的控制。 By the method of the present invention, a user can make to achieve control of software running on the PC side by the control of the USB device. 在具体操作中,并非USB设备首先主动发送控制命令给主机,而是主机首先发送专门命令来"询问"USB 设备,USB设备在接收到该命令以后用响应信息"应答"主机,使主机获得相应的控制信息来实现对自身的控制,例如对其上所运行的应用程序的控制。 In actual operation, the first USB device is not actively transmit a control command to the host, but the host first sends a special command to "ask" the USB device, the USB device after receiving the response message command "reply" host, cause the host to obtain the corresponding control information to achieve control of their own, such as control applications running on them.

下面将参考图1来描述根据本发明实施例的通过USB设备输入来控制PC设备的操作的流程图。 1 will now be described with a flowchart of controlling the PC via the input apparatus according to an embodiment of the USB device of the present invention with reference to the operation of FIG.

操作开始之后,在步骤100,将USB设备插入主机,并使USB设备与主机相连,此时,在相连之后,可以通过自运行技术或由用户通过主机操作来启动USB上的应用。 After the operation starts, at step 100, the USB devices plugged into the host, and host USB device is connected, this time, after connected, via a self-running technology or to start the application by the user on the USB host operation. 在步骤102,用户按下USB设备上的某个或某些特定键,或者点击触摸屏上的相应区域以输入用户命令,其中如上所述,按键输入方式是通过控制开关电路的中开关的开合从而改变输入给控制器特定引脚的电压,控制器通过目前引脚上的电压来判断目前开关的开合状态,从而判断出事先约定的要给主机发送信息的按键(一个或多个)是否已经按下;而触摸屏输入方式是通过屏幕检测到用户接触屏幕的位置,将这些位置信息记录下来,从而得到与该位置信息相对应的用户输入命令。 In step 102, the user presses a certain button or on the USB device, or click on the corresponding region on the touch screen to enter a user command, which as described above, the key input mode by the switching control of the opening and closing of the switching circuit thereby changing the voltage input to a specific pin of the controller, the voltage on the pin by the controller to determine the current state of the opening and closing current switch, to determine the master key previously agreed to give transmission information (s) is has been depressed; and touch-screen input is detected by way of the screen to the position of the user touching the screen, the position information will be recorded, whereby the input command corresponding to the user location information.

接下来,在步骤104, USB设备的控制器检测到按键或触摸屏信息并记录此用户输入的命令信息。 Next, at step 104, USB device controller detects a touch screen button or recording information and command information input by the user of this. 之后,在步骤106,在接收到PC发送来的"询问"消息时,USB设备将事先约定的已记录的用户命令信息发送给PC主机,所述"事先约定"是USB设备和相应主机驱动程序之间通过协商而实现的针对SCSI命令的约定。 Thereafter, in step 106 the user, upon receiving the transmitted PC "query" message, the USB device has been pre-agreed information recorded commands sent to the host PC, the "prior agreement" is a USB host device and a corresponding driver conventions for SCSI commands through consultations between achieved.

最后,在步骤108,在接收到USB设备发送回的用户命令信息之后, 执行相应的操作,例如,如前所述的已启动的USB上应用的具体操作。 Finally, at step 108, after receiving the USB device sends information back to a user command, performs a corresponding operation, for example, the specific application operation of the USB powered as previously described.

需要注意的是,USB设备和主机之间主要是通过发送和应答包含SCSI命令的消息来完成通信和信息交互的。 It should be noted that between the USB device and the host is primarily included in the response message and sends the SCSI command to complete the communication and information exchange. 图2示出了USB设备和主机之间传送的包含SCSI命令的消息格式。 Figure 2 shows a message format transmitted between a host and a USB device comprising a SCSI command.

图2为USB海量存储设备和主机通信的标准命令包格式。 FIG 2 is a standard USB mass storage device and host communication command packet format. 命令包的第一个字节是一个8位的操作码,命令的操作码代表将要进行的操作。 The first byte of the command packet is an 8-bit operation code, a command operation code representative of the operation to be performed. 在本发明中,主要是通过主机发送和USB设备接收带有预定的操作识别码的方式来完成通信的。 In the present invention, primarily by sending host and the USB device receives the operation with a predetermined identification code in a manner to complete the communication. 如下为具体的实现方式: To achieve specific follows:

在第一种方式中,由主机发送到设备的CBW命令包中所携带的SCSI命令所提供的功能很全。 In a first aspect, CBW command sent from the host to the device package carried SCSI command functions provided very wide. 并非所有这些功能设备都会用到。 Not all of these functions of the device will be used. 所以我们可以使用其中设备不会用到的命令作为"询问"设备按键或者触摸屏信息的命令。 So we can use the command where the device will not be used as an "inquiry" command button or touch screen device information. 当主机发送该命令给USB设备时,USB设备按照我们事先约定好的与按键或触摸屏信息相对应的应答信息给主机即可。 When the host sends the command to the USB device, USB devices in accordance with our agreed in advance response information corresponding to the key or touch-screen information to the host can be. 主机应用程序在收到应答信息以后按照事先约定好的方式去响应。 The host application in accordance with pre-agreed good way to respond after receiving the response message.

使用这种方法的优点在于:实现起来比较简单主机不用编写专门的驱动程序去实现发送专门的SCSI命令给l)SB设备,因为Window操作系统一般都支持海量存储协议,而我们所采用的SCSI命令属于实现已经有定义的标准命令,所以当USB设备与主机相连时,Windows操作系统会主动的发送该命令给设备。 The advantage of using this method is: simple to implement host without writing special drivers to achieve a special SCSI commands sent to l) SB devices because Window operating system generally supports mass storage protocol, and we use SCSI commands is an implementation of the standard has been defined command, when the USB device is connected to the host, Windows operating system will take the initiative to send the command to the device. 应用程序只需直接调用发送命令的函数即可,而设备在收到该命令以后只需按事先约定好的方式去应答命令即可。 Application simply calls the function you can send commands directly, and equipment after receiving the order simply press a pre-agreed good way to reply command. 这种方式也不需要设备端去添加新的自定义SCSI命令。 In this way you do not need to add new equipment end custom SCSI commands.

由上述可见这种方式实现起来还是相当简便的。 To implement the above can be seen in this way is quite simple. 但是这种方式所受的局限性较大,无法适用于所有的USB设备,对于一些功能较齐全或者正好用到特定功能的USB设备这一种方法就束手无策了。 However, this approach suffered a great limitation can not be applied to all USB devices, for some function is complete or just use a particular function USB devices this kind of method loss what to do.

为了克服第一种方式的缺陷,可以采用第二种方式,在第二种方式中,通过增加新的自定义SCSI命令的方法来完成通信过程。 In order to overcome the drawbacks of the first embodiment, the second embodiment may be employed, in the second mode, the communication process is accomplished by adding new custom SCSI commands method. 此方式需要编写驱动程序并安装在主机端。 This approach requires the preparation of the driver and install on the host side. 该驱动程序主要负责向USB设备发送自定义的SCSI命令来询问目前USB设备上控制主机的按键的状态,并且负责接收USB设备反馈回来的关于该按键的信息。 The driver responsible for the USB device to send custom SCSI commands to query the current state of the control button on the device host USB, and is responsible for receiving information about the USB device key fed back. 当按键信息被发送 When the key information is transmitted

给应用程序以后,应用程序会根据按键的控制信息做出相应的响应。 Subsequent to the application, the application will respond accordingly based on control information of the button.

在USB设备端的控制器在对主机发送的SCSI命令析构的过程中如果发现该命令是自定义的命令,则在反馈命令包给主机时将按键的信 In the process of the USB device port controller SCSI command sent by the host to the destructor if the command is found to custom channel command, a command packet to the host when the feedback of the key

息包含在命令包中发送回主机。 Information contained in the command packet sent back to the host.

第二种方式解决了第一种方式会对USB设备某些功能的使用造成影响的缺陷。 The second way to solve the shortcomings of the first way would affect the use of USB devices certain functions. 使本发明可以使用在几乎所有的USB设备上,大大扩展了本发明的应用范围。 Of the present invention can be used in almost all USB devices, greatly expanding the range of applications of the present invention. 但是第二种方式的缺陷在于:只能发送有限的信息给主机,比较适合按键这种只有开和关等少数状态信息的场合。 However, the second method is that defects: only limited information transmitted to the host, this is suitable only on and off buttons and a few occasions status information. 对于像IP电话、加密端子这种输入信息量较大的USB设备便无法采用这种方式。 For as IP phones, encryption input terminals of this large amount of information USB device can not be this way. 例如,在某些应用场合,比如说像IP电话、加密端子这种USB 设备,当他们与主机相连时发送给主机的信息有可能不只是开关闭合或者按键按下弹起这么简单,他们往往会输入一长串比如电话号码或者用户密码等一长串的信息。 For example, in some applications, such as IP phones, USB devices such terminal encryption, when they send information to the host connected to the host is not only possible to press the pop-up button or switch is closed so simple, they tend to enter a long list of information such as phone number or a long list of user passwords. 而采用第二种方式的实现方法只能反馈简单的信息给主机,无法实现发送上述复杂的信息给主机。 The second approach is to achieve a simple method can only feedback information to the host, unable to achieve the complex information is sent to the host.

为了解决上述问题,我们采用如下第三种方式来完成USB设备和主机之间的通信。 To solve the above problem, we use a third way as to complete the communication between the USB device and the host. 本方式仍然采用第二种方式中自定义SCSI命令的方法。 This second method is still way way custom SCSI commands. 由主机发送事先约定的SCSI命令给USB设备,要求USB设备反馈设备控制信息。 Prior agreement sent by the host SCSI commands to the USB device, the USB device requires feedback information control device. 主机发送完命令以后就开始等待接收从USB设备反馈的信息。 After the Host send commands began to wait to receive feedback information from the USB device. 此时接收到的信息有可能是命令包,也有可能是数据包。 At this time, the received information may be the command packet, there may be packets. 数据包中将包含从USB设备输入的一长串的信息。 Information in the packet contains data from a long list of USB device input. 主机在捕获到这些信息以后通知应用程序完成相应操作。 Host notifies applications to capture information after completion of the corresponding operation. 如果接收到的是命令包,会是两种情况, —种情况是目前USB设备没有控制信息,则应用程序将不做任何反应。 If the received packet is a command, it will be two cases - case is the USB device is not control information, the application will not do any reaction. 另外一种情况是通知主机数据包已经发送完毕。 Another is to inform the host data packet has been sent. 主机在接收到数据发送完毕的通知以后就可以打开数据包中的数据并使用。 Host can open the data packet after receiving the notification and use of data transmission is completed. 同理,此时在USB设备端的工作方式是这样的。 Similarly, this time at the end of the USB device works like this. 当USB设备接收到主机发送的事先约定的SCSI命令时,如果之前用户没有操作过USB设备则反馈无控制伯—息的命令包给主机。 When the USB device receives the host sends SCSI command prior agreement, if the user does not operate until the USB device through the feedback control without primary - the command message packet to the host. 如果用户有操作过USB设备则记录下来用户的操作倍息并在接收到该SCSI命令以后将操作信息打包在标准数据包中发送给主机。 If the user has operated the USB device recorded information and a user operation times after receiving the SCSI command operation information package sent to the host in the standard packet. 当完成数据发送以后发送确认数据发送完成的命令包给主机通知主机数据发送完毕。 When the completion of the data transmission transmits the transmission data confirmation command complete notification packet to the host the host data transmission is completed. 需要再次强调,尽管以上结合USB设备和PC之间的交互描述了本发明,但是本发明并不局限于此,可以采用除了PC之外的任意主机与除了USB设备之外的其他从设备之间的交互来实现本发明的方法。 It is emphasized again, while the above binding interaction between the PC and the USB device of the present invention is described, but the present invention is not limited thereto, any host may be employed other than the addition between the PC and the USB device in addition to the other slave devices interaction to implement the method of the present invention. 另外,本发明并不局限于使用上述SCSI命令包,明显地,可以使用满足上述操作功能的任意命令包。 Further, the present invention is not limited to using the SCSI command packet, obviously, any command can be used to satisfy the above operation function package. 以上所述的SCSI命令包格式仅是示例性的。 SCSI command packet according to the above format is only exemplary.

下面将举例描述该方法的应用MP3—键复制 Examples of the method will be described below to copy the key application MP3-

当MP3与主机相连时,主机上的应用程序会从光盘或电脑硬盘上收集到一些歌曲信息,此时可以通过按下MP3上某个键的方式启动应用程序,从而将这些歌曲陆续拷贝到MP3的FLASH中。 When MP3 is connected with the host application on the host will be collected from a compact disc or computer hard drive to some of the song information, then you can start the application by pressing a key on the MP3 mode, which will continue to copy the songs to MP3 the FLASH.

IP电话 IP Phone

目前各种网络电话的盛行,通常其外形有如一个小型的电话机-样,其一端通过USB端口与PC相连。 Various prevailing telephone network, which is usually a small telephone like shape - like, having one end connected through the USB port to the PC. 需要拨打电话时可以在小电话机上拨号,所拨打的号码可以通过USB端口发送给主机,进而发起呼叫,如同电话控制主机那样。 May need to call when dialing in on a small phone, dialed number can be sent to the host computer via the USB port, and then initiate the call, as did a host telephone control.

加密端子 Encryption terminal

本发明可以用在一些需要安全保护的应用软件以及电脑的使用上。 The present invention can be used in some applications need security software, and computer use. 可以在登陆电脑或者应用软件时,要求用户从插在USB端口的加密端子上输入登陆或使用密码。 May landing computer or software application, it requires the user from the terminal inserted in the USB port to the input encrypted login or password. 主机通过使用本发明的方法获得密码验证通过以后才允许用户登陆或使用,从而直接通过加密端子来实现加密认证。 Host password authentication obtained by the process of the present invention after the user is allowed to log in or by the use of such directly encrypted encryption authentication terminal.

尽管以上已经结合本发明的优选实施例示出了本发明,但是本领域的技术人员将会理解,在不脱离本发明的精神和范围的情况下,「】丁以对本发明进行各种修改、替换和改变。因此,本发明不应由上述实施例来限定,而应由所附权利要求及其等价物来限定。 Although the above in connection with preferred embodiments of the invention illustrating the present invention, those skilled in the art will appreciate that, without departing from the spirit and scope of the present invention, "] butyrate various modifications of the present invention, replacing and changes. Accordingly, the present invention should not be limited by the above embodiments but by the appended claims and equivalents thereof.

Claims (8)

1.一种通过从设备输入来控制主设备的方法,包括: 从设备存储用户在其上输入的控制信息; 响应接收到的来自主设备的询问命令,从设备向主设备发送所存储的用户输入控制信息;以及主设备根据所接收到的用户输入控制信息,控制与所述用户输入控制信息相关的应用程序的执行, 其中,所述从设备向主设备发送所存储的用户输入控制信息的步骤包括:当控制信息较少或无控制信息时,仅向主设备发送命令包;而当控制信息较大时,则先向主设备发送数据包,并发送用于确认发送数据完成的命令包。 1. A method of controlling the input device from the master device, comprising: a storage device from which a user input control information; receiving a response to the inquiry command from the host device, the user device transmits to the master device from the stored input control information; and a master device according to a user input received by the control information, performs the control input and the control information related to the user application, wherein the device transmits to the master device stores the user input control information comprising the step of: when there is less or no control information is control information, only the packet to the master device transmits a command; when the control information is large, the Xianxiang master device sends a packet, and sends a command complete acknowledgment for packet data transmission .
2、 根据权利要求l所述的方法,其特征在于所述主设备是个人计算机。 2. The method according to claim l, wherein said master device is a personal computer.
3、 根据权利要求1或2所述的方法,其特征在于所述从设备是通用串行总线设备。 3. The method of claim 1 or claim 2, wherein said slave device is a Universal Serial Bus devices.
4、 根据权利要求l所述的方法,其特征在于所述询问命令是小型计算机系统接口命令。 4. The method according to claim l, characterized in that the inquiry command is a Small Computer System Interface command.
5、 根据权利要求4所述的方法,其特征在于将所述询问命令包含在小型计算机系统接口命令包中,以便通过所述命令包在所述主设备和从设备之间发送和接收所述询问命令。 5. The method according to claim 4, wherein the interrogation command includes the Small Computer System Interface command packet, the command packet to the master device and the slave device transmitting and receiving via the query command.
6、 根据权利要求5所述的方法,其特征在于所述询问命令是利用小型计算机系统接口命令包中的未使用命令来实现的。 6. The method according to claim 5, characterized in that the inquiry command is a command using a Small Computer System Interface package with a command to achieve.
7、 根据权利要求5所述的方法,其特征在于所述询问命令是通过在小型计算机系统接口命令包进行扩展命令定义来实现的。 7. The method according to claim 5, characterized in that the inquiry command is a command defined by a Small Computer System Interface command packet extended to achieve.
8、 根据权利要求l所述的方法,其特征在于所述从设备存储用户在其上输入的控制信息的步骤还包括:用户采用按键或触摸屏输入所述控制信息。 8. The method according to claim l, wherein said step of controlling the information from the storage device on which the user input further comprises: using a user key or touch screen input the control information.
CN 200510012055 2005-06-30 2005-06-30 Method for controlling main equipment by inputting via equipment CN100389374C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510012055 CN100389374C (en) 2005-06-30 2005-06-30 Method for controlling main equipment by inputting via equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200510012055 CN100389374C (en) 2005-06-30 2005-06-30 Method for controlling main equipment by inputting via equipment
PCT/CN2005/002126 WO2007003079A1 (en) 2005-06-30 2005-12-08 Method of controlling primary device through input from slave device

Publications (2)

Publication Number Publication Date
CN1889014A CN1889014A (en) 2007-01-03
CN100389374C true CN100389374C (en) 2008-05-21

Family

ID=37578293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510012055 CN100389374C (en) 2005-06-30 2005-06-30 Method for controlling main equipment by inputting via equipment

Country Status (2)

Country Link
CN (1) CN100389374C (en)
WO (1) WO2007003079A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100574284C (en) 2007-09-24 2009-12-23 中兴通讯股份有限公司 Operation control method of distributed router system
CN101587532B (en) 2008-05-20 2014-04-30 锐迪科微电子(上海)有限公司 Controller special for storage card, and control method and control system for storage card
RU2633566C2 (en) 2012-06-28 2017-10-13 ДАУ ГЛОБАЛ ТЕКНОЛОДЖИЗ ЭлЭлСи Biodegradable insert-free adhesive tapes or labels
CN107463524A (en) * 2016-06-06 2017-12-12 华为终端(东莞)有限公司 Data access method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067589A (en) 1997-04-17 2000-05-23 Kabushiki Kaisha Toshiba USB legacy support system
CN1373428A (en) 2001-02-28 2002-10-09 阿尔卡塔尔公司 Serial peripheral interface main apparatus, serial peripheral interface slave apparatus and serial peripheral interface

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7111324B2 (en) * 1999-01-15 2006-09-19 Safenet, Inc. USB hub keypad
CN1153154C (en) * 2001-04-02 2004-06-09 华邦电子股份有限公司 Converter and transmission network from DMA to general-purpose serial bus
TWM256975U (en) * 2004-03-17 2005-02-11 King I Tech Corp Face-panel control device of portable exercise information management device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067589A (en) 1997-04-17 2000-05-23 Kabushiki Kaisha Toshiba USB legacy support system
CN1373428A (en) 2001-02-28 2002-10-09 阿尔卡塔尔公司 Serial peripheral interface main apparatus, serial peripheral interface slave apparatus and serial peripheral interface

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于USB接口的数字电话的设计与实现. 曹玖新,丁会宁,熊光安,翟亚辉,张德运.计算机工程与设计,第24卷第10期. 2003

Also Published As

Publication number Publication date
WO2007003079A1 (en) 2007-01-11
CN1889014A (en) 2007-01-03

Similar Documents

Publication Publication Date Title
US7305506B1 (en) Method and system for transferring status information between a media player and an accessory
US8594568B2 (en) Method of transferring application data from a first device to a second device, and a data transfer system
EP1469650A1 (en) Method and system for wireless data communication in data processing system
CN1596535B (en) Information communication system, information communication device and information communication method
US20140351901A1 (en) Systems and methods for pairing bluetooth devices
US20040004603A1 (en) Portable computer-based device and computer operating method
US7436300B2 (en) Wireless device support for electronic devices
US9009374B2 (en) Portable, computer-peripheral apparatus including a universal serial bus (USB) connector
US6372974B1 (en) Method and apparatus for sharing music content between devices
US20050216620A1 (en) KVM and USB peripheral switch
EP1571557A1 (en) A method of sending command and data to movable storage device
CN1327661C (en) Radio communication apparatus and method therefor ,wireless radio system
KR20120027233A (en) External touch-screen for a mobile device
CN100568158C (en) System for connecting computer body to wirless opripheral, computer, and wireless peripheral
US6505159B1 (en) Apparatus and method for providing speech input to a speech recognition system
CN101632270A (en) Method and system for pairing of wireless devices using physical presence
JP2002312298A (en) Peripheral equipment for managing upload of application to computer device
JP2002329180A (en) Memory card having radio communication function and its data communication method
WO2013086930A1 (en) Cross-device file transmission method, apparatus, transit server and device
CN1675852A (en) Compound portable computing device with dual portion keyboard coupled over a wireless link
CN102243590A (en) Method for communicating between applications on an external device and vehicle systems
JP2000035881A (en) Quick network access computer system
JP2004164537A (en) Device and method for matching household electrical appliance function by personal computer
CN1866258A (en) Data-sharing system and data-sharing method
US20070254588A1 (en) Supporting use of connection via electrical interface

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted