US20050251596A1
2005-11-10
10/521,228
2003-07-15
A system comprises a main device and an auxiliary device arranged to co-operate with each other. The auxiliary device is arranged to effect a core functionality. The auxiliary device comprises descriptors. The system is characterised in that the auxiliary device comprises at least one descriptor that defines a functionality that is different from the core functionality.
Get notified when new applications in this technology area are published.
G06F9/4411 » CPC main
Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs; Arrangements for executing specific programs; Bootstrapping Configuring for operating with peripheral devices; Loading of device drivers
G06F13/10 » CPC further
Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units Program control for peripheral devices
1. Field of the Invention
The invention relates to a system comprising a main device arranged to communicate with an auxiliary device. The main device can be, for example, a USB host. The auxiliary device can be, for example, a USB device, which communicates with the USB host via a USB bus using the USB protocol.
2. Background Art
The system comprises a USB host, which is connected to various USB devices via a USB bus. The USB host communicates with the USB devices with the USB protocol. The USB protocol allows connecting several USB devices on the same USB bus using a system of time-sharing based on addressed devices. The USB protocol is organized as a master/slave architecture, the USB host is thus responsible of the time-sharing management.
The USB host may comprise various applications. One or several services may be needed to run an application. An application uses one or several drivers to access and use the associated services. The drivers may be on the USB host.
The USB device may comprise various services, in particular those, which are needed by the applications of the USB host. A service may be offered, for example, at the device level (standard USB device), or at the interface level (composite USB device).
The USB device is organized into several levels a device level, a configuration level, an interface level and an endpoint level. Each level is represented by different USB descriptors.
In a plugging step, the USB device is plugged onto a USB port of the USB host.
In an enumeration step, all the USB descriptors are then retrieved from the USB device to the host device. The enumeration step is triggered off with the modification of the voltage level on the line D+ or Dβ (depending on the USB device speed) due to a pull-up resistor present in the USB device on one of the lines.
In a loading step, the USB Host then uses the descriptors to load all the drivers of the USB device. The number of drivers loaded depends on the number of different services present in the USB device. For example, if the USB device is at the same time a scanner and a printer the USB device will have to present two interfaces during the enumeration step. In that case, two drivers, one associated to the scanner interface, and the other one associated to the printer interface, will be loaded. A main driver associated to the device itself could also be loaded.
SUMMARY OF INVENTIONAn object of the invention is to reduce the costs and to enhance the security.
According to one aspect of the invention, a system comprising a main device and an auxiliary device arranged to co-operate with each other, the auxiliary device being arranged to effect a core functionality, the auxiliary device comprising descriptors, characterised in that at least one descriptor defines a functionality that is different from the core functionality.
The auxiliary device can be for, example, a USB device in the form of a smart card. The main device can be, for example, a USB host, in particular a computer. The smart card may comprise as a core functionality, for example, an internet login application. The functionality that is different from the core functionality can be, for example, a mass storage functionality.
Thanks to the invention, the Smart Card (USB device) is seen as a mass storage. It is then possible to install a driver and/or an application from the USB device by simulating that the USB device is a mass storage. The USB device can thus be used in any USB host, even if the driver(s) are not installed nor available, since the driver(s) is(are) available in the USB device itself. A user can thus use, for example, the login application directly from the USB device.
In addition, an Internet Service Provider can, for example, define its own proprietary login application and store it on the Smart Card itself (USB device). The risk of hacking the login application is therefore reduced.
The invention thus enables an enhanced security and a reduction of the cost.
BRIEF DESCRIPTION OF DRAWINGSFIG. 1 illustrates a system comprising a USB host and a USB device;
FIG. 2 illustrates the structure of the USB device;
FIG. 3 illustrates a method of using the system;
FIG. 4 illustrates a system comprising a USB host and a USB device;
FIG. 5 illustrates a method of using the system; and
FIG. 6 illustrates a particular mode of realization.
DETAILED DESCRIPTIONThe invention will be explained in the context of a system using the USB protocol.
As illustrated in FIG. 1, the system comprises a USB host, which is connected to a USB device via a USB bus. The USB host communicates with the USB devices with the USB protocol.
The communication between the USB host and the USB device can be made according four different transfer modes:
Two of these four modes require a bandwidth reservation, which is accorded or not by the USB host after an enumeration phase, depending on the bandwidth already reserved by other USB devices, which are plugged onto the USB bus.
As illustrated in FIG. 1, the USB host comprises various applications (A0, A1).
One or several services (S1, S3) are needed to run an application (A1). The application A1 needs, for example, to use the service S1 and the service S3. The services (S1, S2, S3, S4) are located on the USB device. To use a specific service S1, an application A1 uses a driver D1. The USB host also comprises a standard application (A0) associated with a standard driver (D0). Advantageously the standard application (A0) is implemented on a big number of USB hosts.
The USB device comprises various services (S1, S2, S3 and S4) in particular those (S0, S1, S3), which are needed by the applications (A0, A1) of the USB host. The USB device also comprises two applications, (A21) and (A22). Each of these applications is arranged to run the service (S2) using respectively a driver D21 and a driver D22. The application (A21) is, for example, an application arranged to be used on a first type of computer provided with a first type of Operating System. The application (A22) is, for example, the same application than (A21) but arranged to be used on a second type of computer provided with a second type of Operating System.
The USB device is, for example, a Smart Card. The USB host is, for example, a Personal Computer (PC) using a specific Operating System (OS). The services (S2, S3, S4) can be any Vendor Specific services. The service (S2) can be a service associated, for example, to an Internet Service Provider login application, (A21) or (A22). Advantageously, the service (S1) is a mass storage service. Thus driver(s) and/or application(s) contained on the USB device can be installed by simulating that the USB device is a mass storage.
As illustrated in FIG. 2, a service (S) can be offered, for example, at the device level, or at the interface level (S1,S2,S3,S4). The USB device also comprises a standard service (SO). Advantageously the standard service (S0) is implemented on a big number of USB devices.
As illustrated in FIG. 3, in a connecting step CON, the USB device is connected to a USB port of a USB host.
In a first checking step CHECK1, the USB device checks whether a negotiation flag is activated or not.
If not:
In an flag activating step ACTIV, the negotiation flag is activated.
In an initialization step INIT, the USB device removes its pull-up resistor in order to detach itself and then re-attach itself.
In a second checking step CHECK2, the USB device checks whether the negotiation flag is activated or not
If yes:
The Smart Card (USB device) is now ready for use.
Thanks to the invention, from the user point of view, the Smart Card (USB device) is seen as a mass storage. It is then possible to install a driver (D21 or D22) and/or an application (A21 or A22) from the USB device by simulating that the USB device is a mass storage. The USB device can thus be used in any USB host, even if the driver(s) are not installed nor available, since the driver(s) is(are) available in the USB device itself.
The user can thus use the Internet Service Provider login application, (A21) or (A22), directly from the USB device to access the login service (S2).
Thanks to the invention, an Internet Service Provider can, for example, define its own proprietary login application (A21). In addition this proprietary application (A21) is stored on the Smart Card itself (USB device) and not on the computer. The risk of hacking the application (A21) is therefore reduced. The invention thus enables an enhanced security.
Note that, if a new service has to be added on the USB device, the standard service (S0) does not change and therefore the standard application (A0) does not change
As illustrated in FIGS. 4 and 5, if the USB device is already plugged, and the user starts a new application (A3), which requires a new service (S4), which is not activated in the USB device, the standard application (A0) can negotiate the activation of the new service (S4) in a new negotiating step.
In an opening step OPEN, user opens a new application (A3) requiring a service (S4), which is not available in the current configuration of the USB device
In a negotiating step NEGO, the USB host activates the service (S4).
In a flag activating step ACTIV, the USB device activates the negotiation flag.
In an initialization step INIT, the USB device removes its pull-up resistor in order to detach itself and then re-attach.
In a checking step CHECK, the USB device checks whether the negotiation flag is activated or not.
If yes:
In the above-mentioned example, the service (S4) was first hidden from the USB host point of view. But one can imagine that once the USB device is inserted in the USB host, all the services are automatically enumerated. Some drivers will not be available and the corresponding application will be marked as not correctly installed. In this case, after the enumeration step, the user will have to update the drivers from the USB device.
FIG. 6 illustrates another example wherein the smartcard (USB device) comprises a loudspeaker service, a microphone service and a decryption service.
When the smartcard (USB device) is plugged into a computer (USB host) the loudspeaker service is activated by the computer. The computer first considers the smartcard (USB device) as a loudspeaker and sends an encrypted music file (1). The loudspeaker service receives the music file and sends it (2) to the decryption service for decrypting the music file. Then the decrypted music file is sent (2) to the microphone service so that the computer (USB host) believes now (3) that the smartcard (USB device) is a microphone wherein someone is speaking. The computer then sends the decrypted music file to the real loudspeaker (4).
The description hereinbefore illustrates the following features:
A system comprising a main device and an auxiliary device arranged to co-operate with each other, the auxiliary device being arranged to effect a core functionality, the auxiliary device comprising descriptors, characterised in that the auxiliary device comprises at least one descriptor that defines a functionality that is different from the core functionality.
According to another aspect of the invention, the main device is, for example, a USB host and the auxiliary device is, for example, a USB device. It should be clear that the invention is not limited to devices communicating using the USB protocol. Other protocol like, for example, firewire based protocol may be used.
According to another aspect of the invention, the functionality that is different from the core functionality is, for example, a mass storage functionality.
According to another aspect of the invention, the functionality that is different from the core functionality is, for example, a microphone functionality.
According to another aspect of the invention, the functionality that is different from the core functionality is, for example, a loudspeaker functionality or any other functionality that is different from the core functionality, and that can be effected by the auxiliary device
According to another aspect of the invention, the auxiliary device, when it is coupled to the main device, initially presents the descriptor that defines a functionality that is different from the core functionality
According to another aspect of the invention, the USB device comprises a driver for the USB host to be installed by simulating that the USB device is a mass storage.
According to another aspect of the invention, the USB device is a smartcard or any other portable object arranged to use the USB protocol, like, for example, a Personal Digital Assistant (PDA) or a cellular phone.
1. A system comprising a main device and an auxiliary device arranged to co-operate with each other, the auxiliary device being arranged to effect a core functionality, the auxiliary device comprising descriptors, characterised in that at least one descriptor defines a functionality that is different from the core functionality.
2. The system according to claim 1, wherein the main device is a USB host and the auxiliary device is a USB device.
3. The system according to claim 2, wherein the functionality that is different from the core functionality is a mass storage functionality.
4. The system according to claim 1, wherein the auxiliary device, when it is coupled to the main device, initially presents the descriptor, that defines a functionality that is different from the core functionality.
5. The system according to claim 2, wherein the USB device comprises a driver for the USB host to be installed by simulating that the USB device is a mass storage.
6. The system according to claim 2, wherein the USB device is a smartcard.
7. An-auxiliary device arranged to effect a core functionality, the auxiliary device comprising descriptors, characterised in that at least one descriptor defines a functionality that is different from the core functionality.
8. The auxiliary device according to claim 7, wherein the auxiliary device is a USB device.
9. The auxiliary device according to claim 7, wherein the auxiliary device is a smart card.