WO2007003079A1 - Méthode de commande d’un dispositif primaire par entrée d’un dispositif esclave - Google Patents

Méthode de commande d’un dispositif primaire par entrée d’un dispositif esclave Download PDF

Info

Publication number
WO2007003079A1
WO2007003079A1 PCT/CN2005/002126 CN2005002126W WO2007003079A1 WO 2007003079 A1 WO2007003079 A1 WO 2007003079A1 CN 2005002126 W CN2005002126 W CN 2005002126W WO 2007003079 A1 WO2007003079 A1 WO 2007003079A1
Authority
WO
WIPO (PCT)
Prior art keywords
command
control information
master device
host
packet
Prior art date
Application number
PCT/CN2005/002126
Other languages
English (en)
Chinese (zh)
Inventor
Lin Xu
Gaoqiang Li
Xuan Hou
Original Assignee
Lenovo (Beijing) Limited
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 Lenovo (Beijing) Limited filed Critical Lenovo (Beijing) Limited
Publication of WO2007003079A1 publication Critical patent/WO2007003079A1/fr

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Definitions

  • the invention belongs to the technical field of consumer electronic products, and relates to a method for controlling a master device by inputting from a device, which can be applied to a function expansion of a USB mass storage device. Background technique
  • USB Universal Serial Bus
  • the method for implementing the user to send control information to the host through the slave device is generally through a button or a touch screen on the device, that is, through user input.
  • the key input mode is to feed back the change of the voltage value caused by the opening and closing of some switches to the control chip of the device, and when the control chip detects the corresponding voltage value to be sent to the host control information, the corresponding control information is sent.
  • the touch screen is that when the device controller detects that there is contact contact in the corresponding area on the screen in different modes, the corresponding control information is sent to the host.
  • Autorun technology is a technology that automatically runs a specified program in a device after it is plugged into a computer. Since Windows systems support self-running technology based on local disk or CD-ROM, the current self-running technology based on USB devices mainly implements USB mass storage (Mass-Storage) devices to simulate disk or CD-ROM.
  • Mass-Storage USB mass storage
  • USB flash drives that can be used by self-running technology to implement specific applications when the device is connected to a PC.
  • IP phones IP phones
  • encryption software applications that convert CD files to MP3, and more.
  • users often want to have a control over the execution of these applications on the USB device side (ie, from the device side).
  • the user can control the dialing of the IP phone through the touch screen, input the encryption software password, and convert the CD file to the start of the MP3 program by pressing the button.
  • users also want to implement control over other software running on the PC.
  • a method for controlling a master device by input from a device including: the slave device stores control information input by the user; in response to the received query command from the master device, The device transmits the stored user input control information to the master device; and the master device controls execution of the application associated with the user input control information based on the received user input control information.
  • the master device is a personal computer.
  • the slave device is a universal serial bus device.
  • the query command is a small computer system interface command.
  • the query command is included in a small computer system interface command packet to transmit and receive the query command between the master device and the slave device through the command packet.
  • the interrogation command is implemented using unused commands in a small computer system interface command packet.
  • the interrogation command is implemented by extending a command definition in a small computer system interface command packet.
  • the step of storing, by the slave device, the control information input by the user further comprises the step of: the user inputting the control information by using a button or a touch screen.
  • the step of transmitting, by the slave device, the stored user input control information to the master device is performed by using a command packet, a data packet, or a transmission manner of the command packet and the data packet combination.
  • the step of the slave device transmitting the stored user input control information to the master device comprises: after completing the sending, the slave device sends an acknowledgement to the master device indicating that the data has been sent out
  • FIG. 2 illustrates a message format containing SCSI commands transmitted between a USB device and a host in accordance with an embodiment of the present invention.
  • the slave device is a USB device and the master device is a PC (Personal Computer) and the two interact with each other, but The invention is not limited to this.
  • the master device can be any device other than a PC, such as a PDA and a laptop.
  • the slave device can be an MP3, an encrypted terminal, etc.
  • the slave device can be connected to the master device through a protocol other than the USB protocol.
  • the main idea of the present invention is: By designing the firmware on the USB device controller, it is possible to detect the pre-agreed button press information when the USB device is connected to the PC, and record it. To do this, you need to add the user's custom SCSI (Small Computer System Interface) command in the firmware of the USB device.
  • This command is not a command already defined in the SCSI command specification. It is in the case of the present invention.
  • a driver supporting this communication method is added to the application software of the PC side controlled by the USB device.
  • the main job of the driver is to send the above custom SCSI control command to the USB port with the USB device, and receive the command and control information fed back from the USB device, and then execute the PC based on the feedback command and control information. Perform the appropriate action.
  • the user can control the software running on the PC side by controlling the USB device.
  • the host instead of the USB device actively sending a control command to the host, the host first sends a special command to "query" the USB device. After receiving the command, the USB device "responds" the host with the response message, so that the host obtains the corresponding Control information to achieve control over itself, such as the control of the application running on it.
  • step 100 the USB device is inserted into the host, and the USB device is connected to the host.
  • the application on the USB can be started by the self-running technology or by the user through the host operation.
  • step 102 the user presses one or more specific keys on the USB device, or clicks on a corresponding area on the touch screen to input a user command, wherein as described above, the key input mode is by controlling the opening and closing of the middle switch of the switch circuit.
  • the touch screen input mode is to detect the position where the user touches the screen through the screen, and record the position information to obtain a user input command corresponding to the position information.
  • the controller of the USB device detects the key or touch screen information and records the command information entered by the user. Then, in step 106, upon receiving the "inquiry" message sent by the PC, the USB device sends the previously recorded recorded user command information to the PC host, the "pre-agreed” is the USB device and the corresponding host.
  • a convention for SCSI commands that is implemented by negotiation between drivers.
  • step 108 after receiving the user command information sent back by the USB device, performing a corresponding operation, for example, the specific operation of the activated application on the USB as described above.
  • FIG. 2 shows the message format containing the SCSI command transmitted between the USB device and the host.
  • Figure 2 shows the standard command packet format for USB mass storage devices and host communication.
  • the first byte of the command packet is an 8-bit opcode, and the opcode of the command represents the operation to be performed.
  • communication is mainly accomplished by means of host transmission and reception by a USB device with a predetermined operational identification code. The following is the specific implementation:
  • the SCSI commands carried in the CBW command packet sent by the host to the device provide a full range of functions. Not all of these functional devices will be used. Therefore, you can use commands that are not used by the device as commands to "query" device buttons or touch screen information.
  • the USB device can send the response message corresponding to the button or touch screen information to the host in advance. After receiving the response message, the host application responds in a pre-agreed manner.
  • the advantage of using this method is: It is relatively simple to implement, the host does not need to write a special driver to send a special SCSI command to the USB device, because the Window operating system generally supports the sea.
  • the storage protocol, and the SCSI commands we use are standard commands that are already defined. Therefore, when the USB device is connected to the host, the Windows operating system will actively send the command to the device.
  • the application only needs to directly call the function that sends the command, and the device only needs to answer the command in the agreed way after receiving the command.
  • This method also does not require the device side to add new custom SCSI commands.
  • the second approach can be used.
  • the communication process is accomplished by adding new custom SCSI commands.
  • This method requires writing a driver and installing it on the host side.
  • the driver is primarily responsible for sending custom SCSI commands to the USB device to query the status of the buttons on the control panel of the current USB device and to receive information about the button that the USB device has fed back.
  • the button information is sent to the application, the application responds accordingly based on the control information of the button.
  • the controller on the USB device side finds that the command is a custom command during the process of destructing the SCSI command sent by the host, the information of the button is included in the command packet and sent back to the host when the command packet is fed back to the host.
  • the second method solves the drawback that the first method affects the use of certain functions of the USB device.
  • the invention can be used on almost all USB devices, greatly expanding the scope of application of the present invention.
  • the second method has the following drawbacks: It can only send limited information to the host, which is more suitable for occasions where there is only a small amount of status information such as on and off. This is not possible with USB devices that have a large amount of input information such as IP phones and encrypted terminals.
  • the information sent to the host when they are connected to the host may not be as simple as the switch is closed or the button is pressed. Enter a long list of messages such as phone numbers or user passwords.
  • the implementation method of the second method can only feed back simple information to the host, and cannot send the above complex information to the host.
  • This method still uses the method of customizing SCSI commands in the second mode.
  • the host sends a pre-agreed SCSI command to the USB device, and the USB device is required to feed back the device control information. After the host sends the command, it waits to receive the information fed back from the USB device.
  • the information received at this time may be a command packet or a data packet.
  • the packet will contain a long list of information entered from the USB device.
  • Host is capturing After the information is received, the application is notified to complete the corresponding operation. If the command packet is received, there are two cases. In one case, the current USB device has no control information, and the application will not react. Another.
  • Another situation is to inform the host that the data packet has been sent. After receiving the notification that the data has been sent, the host can open the data in the data packet and use it. In the same way, the way of working on the USB device at this time is like this.
  • the USB device receives the pre-agreed SCSI command sent by the host, if the user has not operated the USB device before, the command packet with no control information is fed back to the host. If the user has operated the USB device, the user's operation information is recorded and after receiving the SCSI command, the operation information is packaged in a standard data packet and sent to the host. After the data transmission is completed, the command packet for transmitting the confirmation data is sent to the host to notify the host that the data transmission is completed.
  • the present invention has been described above in connection with the interaction between the USB device and the PC, the present invention is not limited thereto, and any host other than the PC and other slave devices other than the USB device may be used. Interaction to implement the method of the present invention. Further, the present invention is not limited to the use of the above SCSI command packet, and it is obvious that any command packet that satisfies the above operational functions can be used.
  • the SCSI command packet format described above is exemplary only. The application of this method will be described below by way of example.
  • the application on the host collects some song information from the CD or the computer hard disk. At this point, the application can be launched by pressing a key on the MP3 to copy the songs to the MP3. In the FLASH.
  • the invention can be used in some applications that require security protection and the use of computers. You can ask the user to enter a login or password from the encrypted terminal plugged into the USB port when logging in to the computer or application software. The host obtains password verification by using the method of the present invention, and then allows the user to log in or make Use, to achieve encrypted authentication directly through the encryption terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

La présente invention concerne un méthode de commande d’un dispositif primaire par entrée d’un dispositif esclave comprenant le stockage des informations de commande de l’utilisateur par le dispositif esclave. Les informations de commande sont alors envoyées au dispositif primaire par le dispositif esclave en réaction à la commande de requête du dispositif primaire. Le dispositif primaire commande alors l’exécution de l’application en fonction des informations de commande de l’utilisateur, l’application étant en relation avec les informations de commande fournies par l’utilisateur.
PCT/CN2005/002126 2005-06-30 2005-12-08 Méthode de commande d’un dispositif primaire par entrée d’un dispositif esclave WO2007003079A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200510012055.5 2005-06-30
CNB2005100120555A CN100389374C (zh) 2005-06-30 2005-06-30 通过从设备输入来控制主设备的方法

Publications (1)

Publication Number Publication Date
WO2007003079A1 true WO2007003079A1 (fr) 2007-01-11

Family

ID=37578293

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2005/002126 WO2007003079A1 (fr) 2005-06-30 2005-12-08 Méthode de commande d’un dispositif primaire par entrée d’un dispositif esclave

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014003895A1 (fr) 2012-06-28 2014-01-03 Dow Global Technologies Llc Étiquettes et rubans adhésifs sans doublure biodégradables

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587532B (zh) * 2008-05-20 2014-04-30 锐迪科微电子(上海)有限公司 一种专用存储卡控制器、存储卡控制系统以及控制方法
CN107463524A (zh) 2016-06-06 2017-12-12 华为终端(东莞)有限公司 一种访问数据的方法及相关设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002056154A2 (fr) * 2001-01-16 2002-07-18 Rainbow Technologies B V Clavier de moyeu de bus serie universel (hub usb)
CN1379337A (zh) * 2001-04-02 2002-11-13 华邦电子股份有限公司 直接存储器存取至通用串行总线的转换电路及传输方法
US20050210169A1 (en) * 2004-03-17 2005-09-22 Ming-Fu Chou Portable exercise data management device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10293641A (ja) * 1997-04-17 1998-11-04 Toshiba Corp コンピュータシステムおよびusbデバイス制御方法
EP1237090A1 (fr) * 2001-02-28 2002-09-04 Alcatel Appareil maitre d'interface périphérique sérielle, appareil sesclave d'interface périphérique sérielle et interface périphérique sérielle

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002056154A2 (fr) * 2001-01-16 2002-07-18 Rainbow Technologies B V Clavier de moyeu de bus serie universel (hub usb)
CN1379337A (zh) * 2001-04-02 2002-11-13 华邦电子股份有限公司 直接存储器存取至通用串行总线的转换电路及传输方法
US20050210169A1 (en) * 2004-03-17 2005-09-22 Ming-Fu Chou Portable exercise data management device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014003895A1 (fr) 2012-06-28 2014-01-03 Dow Global Technologies Llc Étiquettes et rubans adhésifs sans doublure biodégradables

Also Published As

Publication number Publication date
CN100389374C (zh) 2008-05-21
CN1889014A (zh) 2007-01-03

Similar Documents

Publication Publication Date Title
KR101454564B1 (ko) 복수의 호스트 디바이스 간에서의 무선 액세서리 디바이스 페어링 이전
WO2004046937A1 (fr) Methode d'envoi d'instructions et de donnees a une memoire mobile
JP6603240B2 (ja) アクセサリー装置用電源管理コントラクト
EP3654540B1 (fr) Procédé d'appariement, procédé de désappariement, dispositif terminal et dispositif connecté de façon externe
US8401588B2 (en) Dual mode human interface device
EP1971926B1 (fr) Appareil portable peripherique d'ordinateur comprenant un connecteur usb
WO2018001293A1 (fr) Procédé de partage de mot de passe wi-fi et terminal mobile
JP5834568B2 (ja) 情報処理装置、情報処理方法およびコンピュータプログラム
US20090100503A1 (en) Authentication for shared wireless peripherals having an internal memory store for sharing digital content across multiple hosts
EP3132621B1 (fr) Procédé, appareil et système de commande de terminal mobile
WO2003063440A1 (fr) Procede et systeme de communicaton de donnees sans fil dans un systeme de traitement de donnees
TWI463364B (zh) 觸控裝置之外部操作系統與方法
WO2018049971A1 (fr) Procédé de commutation de réseau à point d'accès sans fil et terminaux
WO2013174265A1 (fr) Procédé et dispositif de transmission de données
WO2008089692A1 (fr) Procédé et système de synchronisation de données
WO2010111942A1 (fr) Dispositif de traitement de données pour de multiples systèmes matériels, procédé de commutation et produit-programme d'ordinateur de ceux-ci
WO2007003079A1 (fr) Méthode de commande d’un dispositif primaire par entrée d’un dispositif esclave
KR100764646B1 (ko) 휴대용 무선 단말기를 이용한 컴퓨터 원격 제어 시스템 및컴퓨터 원격 제어 방법
TWI840288B (zh) 設備接入方法及其裝置、資料交換方法及其裝置、聯網設備、服務端及存儲介質
WO2019109987A1 (fr) Terminal mobile, procédé de traitement pour utilisation d'une empreinte digitale pour effectuer une opération d'enregistrement, et support de stockage
WO2017211260A1 (fr) Procédé d'accès à des donnés et dispositif associé
WO2003102795A1 (fr) Procede d'acces multiple a un reseau et dispositif electronique comprenant une fonction d'authentification d'informations biologiques pour l'acces multiple a un reseau
WO2013004175A1 (fr) Procédé et appareil de mise à niveau logicielle pour dispositifs électroniques
KR100758219B1 (ko) 유에스비 장치의 동작을 통제하는 방법
KR20060087758A (ko) 모바일 기기용 인터넷 디스크 시스템 및 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

122 Ep: pct application non-entry in european phase

Ref document number: 05818451

Country of ref document: EP

Kind code of ref document: A1