CN102117251A - Method for selecting application mode of universal serial bus (USB) equipment and USB equipment - Google Patents

Method for selecting application mode of universal serial bus (USB) equipment and USB equipment Download PDF

Info

Publication number
CN102117251A
CN102117251A CN200910215398XA CN200910215398A CN102117251A CN 102117251 A CN102117251 A CN 102117251A CN 200910215398X A CN200910215398X A CN 200910215398XA CN 200910215398 A CN200910215398 A CN 200910215398A CN 102117251 A CN102117251 A CN 102117251A
Authority
CN
China
Prior art keywords
application
usb
user
usb device
application model
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
Application number
CN200910215398XA
Other languages
Chinese (zh)
Inventor
项春亮
王玲
孙纪彪
杨航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN200910215398XA priority Critical patent/CN102117251A/en
Publication of CN102117251A publication Critical patent/CN102117251A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a method for selecting an application mode of universal serial bus (USB) equipment and the USB equipment. The method comprises the following steps of: pre-storing the configuration information of a plurality of pieces of application, and setting that the USB equipment is operated in a non-driven mode after establishing electrical connection with host equipment; carrying a list of the pre-stored application supported by the USB equipment into a user application selection instruction, and transmitting the user application selection instruction to a user by using a USB graphic user interface; receiving a returned user application selection response instruction, judging the application mode selected by the user is not a charge/power supply application mode, and setting that the USB equipment is operated in a normal operation mode; reading the configuration information corresponding to the application mode selected by the user from the configuration information of the plurality of pieces of application pre-stored by the USB equipment according to the application mode selected by the user, and transmitting the read configuration information to the host equipment by using a USB data wire interface; and configuring the USB equipment according to the received configuration information, and performing data transmission with the USB equipment by using the host equipment. By the method and the USB equipment, the structural complexity of the USB equipment can be reduced, and the convenience of application selection of the user can be improved.

Description

A kind of method and USB device of selecting the USB device application model
Technical field
The present invention relates to USB (universal serial bus) (USB, Universal Serial Bus) technology, particularly a kind of method and USB device of selecting the USB device application model.
Background technology
USB interface is a modal standard interface in the communications field, and USB device adopts USB interface, because the standardization of interface and the portability of USB device can be carried out plug and play with main frame (HOST), thereby obtained widespread use in each field.When communicating by letter with HOST, by USB device is inserted HOST, main frame and USB device are undertaken alternately by USB interface, obtain the USB device configuration information and dispose accordingly, and main frame just can carry out data transmission with USB device then.Usually, a USB device possesses a USB interface, use at a class, for example, and data transmission, video camera, power supply/charge etc., configuration information is the configuration information that is pre-configured in this application in this USB device.
Fig. 1 is the communication process synoptic diagram of existing USB device and HOST.With the data transmission is example, and referring to Fig. 1, this flow process comprises:
Step 101, USB device is inserted HOST, carries out physical connection with HOST;
Step 102, HOST detects USB device, the time that powers on and keep setting to USB device by usb bus;
In this step, HOST is as main frame, and USB device is as slave, the duty of host computer control slave.After powering on, USB device enters the nothing of setting and drives mode of operation, and under this pattern, USB device is not carried out any processing.Drive mode of operation about nothing, follow-uply describe again.
Step 103, HOST to USB device reset (Reset) operation;
In this step, behind the reset operation, USB device is driven mode of operation from nothing and is switched to normal mode of operation.
Step 104 is obtained the configuration information of USB device and is carried out corresponding configuration after successfully resetting;
In this step, HOST is configured according to the configuration information of the USB device of obtaining, with the required resource of configuration data transmission.
Step 105, HOST and USB device are carried out data transmission.
Fig. 2 is the structural representation of existing USB device.Referring to Fig. 2, be example with USB2.0 equipment, this equipment comprises: transceiver macro interface (UTMI, Transceiver Macrocell Interface) unit 201, USB controller (USB Controller) 202 and micro-control unit (MCU, MicroController Unit) 203, wherein
UTMI unit 201 1 ends link to each other with external host, and the other end links to each other with MCU203 by USB Controller202.
UTMI unit 201 is used for linking to each other with main frame by usb bus, receives the configuration information of USB Controller202 output, is sent to main frame;
In the practical application, UTMI unit 201 also is used to finish the reception and the transmission of USB formatted data, carries out the also string and usb protocol and signal processing operations such as string and conversion, a filling, clock recovery and synchronous operation of data.Since irrelevant with the present invention, follow-up repeating no more.
USB Controller202 is used for reading configuration information from MCU203 after resetting, and exports UTMI unit 201 to;
USB Controller202 also is used to finish the function of usb protocol defined, realize processing (comprising the generation and the verification of coding, decoding and check bit) with the docking of UTMI unit 201, protocol package, end points is realized control, the control of first in first out (FIFO, First In First Out) buffering etc.Since irrelevant with the present invention, follow-up repeating no more.
MCU203 is the main logic unit of USB device, exports configuration information to USBController202.
In the prior art, the mode of operation of UTMI unit 201 has following four kinds:
Mode 0: this pattern is the normal mode of operation of UTMI unit 201, can handle the coding work of usb data.
Mode 1: promptly do not have the mode of operation of driving, this pattern is used at a high speed or full speed UTMI unit 201 support softwares connect and break function enables.The USB controller is set to " 01 " by the OpMode signal of exporting to UTMI unit 201, makes the DP of UTMI and DM signal wire present three-state, thereby makes that USB device is sightless for uplink port, and USB device is in off-state.
Mode 2: this pattern is used for bit buffering and non-return-to-zero coding (NRZI, No ReturnZero-Inverse) lost efficacy.Under this pattern, UTMI can finish synchronous operation and end-of-packet sign (EOP, End Of Packet) automatically simultaneously.
Mode 3: keep.
Wherein, four kinds of mode of operations of UTMI unit 201 are represented by the value that the OpMode signal carries, the OpMode signal is one tunnel 2 output signal of USB controller, this signal directly inputs to the UTMI unit by the USB controller, the UTMI unit comes switching working mode according to the different OpMode value that receives, thereby the USB device mode of operation is changed.
Fig. 3 is the mode of operation of UTMI unit and the corresponding relation synoptic diagram of OpMode signal.Referring to Fig. 3, the OpMode signal adopts two bits to represent, wherein,
When OpMode was 00, the mode of operation of UTMI corresponded to Mode 0, was normal mode of operation (Normal Operation);
When OpMode was 01, the mode of operation of UTMI corresponded to Mode 1, for nothing is driven mode of operation (Non-Driving);
When OpMode was 10, the mode of operation of UTMI corresponded to Mode 2, was bit buffering and non-return-to-zero coding inefficacy mode of operation (Disable Bit Stuffing and NRZI encoding);
When OpMode was 11, the mode of operation of UTMI corresponded to Mode 3, for keeping mode of operation (Reserved).
Mode of operation related to the present invention is Mode 0 and Mode 1, and therefore, the back will no longer relate to Mode 2 and Mode 3 in describing.
Along with development of Communication Technique, people are also more and more urgent to many demands of applications of USB device, promptly require can carry out on the USB device operation of a plurality of application, to improve the convenience of using.For instance, for the communication class multifunctional equipment mobile phone with USB interface, the user wishes that not only this multifunctional equipment mobile phone is one one and is used for connecing the mobile phone of making a phone call, send note; Simultaneously, also wish it is one can store the large scale storage equipment of a large amount of music, video or other any formatted files; In addition, also wish it is a game machine, camera; And, also wish to be provided with printer interface, IP Camera function etc., like this, use change, polygonal lookization by the unit that presents more, can satisfy the different application of user, reduce user's use cost.
In order to satisfy the demand, in the prior art, by corresponding a plurality of interface is set for different application, like this, when needs carry out different application, only external unit need be connected with corresponding interface, after the configuration information that reads respective application is configured, leads to and just can carry out application operating with external unit by this interface.
With multimedia handset/digital photo frame of supporting USB interface etc. is example, and many application interfaces of itself and external unit mainly comprise following several:
The data transmission interface that is used for mass data: for example, data access interface (as USB interface, card class slot interface, particular data transmission mouth etc.), printout interface, serial interfaces etc.;
The IP Camera video output interface (as USB interface etc.) that is used for video class transmission;
The audio transmission interfaces that is used for audio frequency output: for example, earphone/sound equipment interface (as USB interface, general earphone interface, specific earphone interface etc.);
Be used to charging/power supply interface of charging/powering: for example, power interface (USB interface, common charge port etc.).
By as seen above-mentioned, the equipment of the existing support USB interface of using more, multiple function just means that the external interface of equipment also can increase accordingly, every kind of application need is provided with corresponding interface, using more for a long time, make that the interface quantity of USB device is more, so just can increase unavoidably and support the structure complexities of using the USB device interface more, the USB device cost is increased; Simultaneously, when the interface quantity of a USB device is more, can make user's operation become complicated, promptly select the correct difficulty of corresponding USB interface of using, for example, for the user who is unfamiliar with the many application functions of USB device, when option interface comes to be connected with external unit, may often be not easy to find the USB interface of the application correspondence that the user needs, the interface fails of bringing thus or unavailable can influence the performance of equipment performance greatly.For instance, the user need select the audio transmission interfaces application model, but data transmission interface is linked to each other with external unit, thereby just may cause this voice applications unavailable, thereby for a certain many application apparatuss, unified its external interface becomes its interface to simplify particularly important, and the application model selection technology that how to make many application apparatuss bring into play his many-sided application function effectively is the key that realizes.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of method of selecting the USB device application model, reduce USB device structure complexity, improve the user and select the convenience used.
Another object of the present invention is to provide a kind of USB device, reduce USB device structure complexity, improve the user and select the convenience used.
For achieving the above object, the method for selection USB device application model provided by the invention is stored many application models information and the described configuration information of using that USB device is supported in advance, and this method comprises:
Set to be operated in after the foundation of USB device and main process equipment is electrically connected and do not have the pattern of driving;
Described many application models information is carried at the user selects in the application instruction, send to the user;
The user that reception is returned selects the application responds instruction, judges that the application model that the user selects is not a charging/power applications pattern, described USB device is set be operated under the normal mode of operation;
The application model of selecting according to the user reads the configuration information of the application model correspondence that this user selects from many application configuration informations that described USB device is stored in advance, send to described main process equipment by the usb data line interface;
Described main process equipment disposes described USB device according to the configuration information that receives, and carries out data transmission with described USB device.
Described application model comprises: the application model that need carry out the application model of data transmission and not need to carry out with the usb data line interface data transmission with the usb data line interface.
Described need comprising: the audio frequency and video transmission application model that is used for the data transmission applications pattern of mass data and is used for audio frequency and video output with the application model that the usb data line interface carries out data transmission.
The described data transmission applications pattern that is used for mass data comprises: data access application model, printout application model and serial interfaces application model.
Described USB device and main process equipment are set up the step that is electrically connected and are comprised:
Described USB device is inserted main process equipment, carries out physical connection with main process equipment;
Described main process equipment powers on to described USB device;
Set up being electrically connected of described USB device and described main process equipment.
The user that described reception is returned further comprises after selecting the step of application responds instruction:
If the application model that the user selects is a charging/power applications pattern, then described USB device directly enters charging/power applications pattern, charges/power.
Send the user by the USB graphic user interface to the user and select application instruction.
A kind of general-purpose serial bus USB equipment, this USB device comprises: transceiver macro interface UTMI unit, USB controller and micro-control unit MCU,
The UTMI unit is used for linking to each other with main process equipment by the usb data line, detect be electrically connected with main frame after, send to have set up to the USB controller and be electrically connected instruction; Receive the configuration information of USB controller output, send by usb data alignment main process equipment;
The USB controller is used for receiving to have set up being electrically connected instruction, sends the instruction of acquiescence mode of operation and obtains many application message instructions to MCU; Receive the configuration information of MCU output, carry out self and dispose and export to the UTMI unit;
MCU is used for receiving the instruction of acquiescence mode of operation, and USB device is set to give tacit consent to mode of operation; Many application message instructions are obtained in reception, and many application models information of storing is in advance shown to the user; Receive the application responds instruction that the user sends, if the application model that the user selects is not charging/power applications pattern, USB device is set to normal mode of operation, the application model of selecting according to the user reads the configuration information of the application model correspondence that this user selects from many application configuration informations of storage in advance, export the USB controller to; If the application model that the user selects is a charging/power applications pattern, USB device is set to charging/powering mode.
Described MCU comprises: micro treatment module, many application configuration informations memory module, many application memory module, user select applications trigger module and user to select the application model judge module, wherein,
Micro treatment module is used for receiving the instruction of acquiescence mode of operation, and USB device is set to give tacit consent to mode of operation; Receive the normal mode of operation instruction that the user selects the output of application model judge module, USB device is set to normal mode of operation, application model according to user's selection of carrying in the normal mode of operation instruction, inquire about the configuration information of the application model correspondence of this user's selection from many application configuration informations memory module, export the USB controller to;
Many application configuration informations memory module is used to store many application configuration informations;
Many application memory module is used to store many application messages that this USB device is supported;
The user selects the applications trigger module, is used for receiving obtaining many application message instructions, reads many application messages from many application memory module, shows to the user by graphic user interface;
The user selects the application model judge module, receive the application responds instruction that the user selects by graphic user interface, if the application model that the user selects is not charging/power applications pattern,, carry the application model that the user selects to the instruction of micro treatment module output normal mode of operation; If the application model that the user selects is a charging/power applications pattern, to micro treatment module output charging/powered operation mode instruction.
As seen from the above technical solution, the method and the USB device of the selection USB device application model of the embodiment of the invention, store many application models information and the configuration information of using that USB device is supported in advance, the nothing that is operated in setting after USB device and main process equipment are set up and be electrically connected is driven pattern more; The list of application of described USB device support of storage in advance is carried at the user selects in the application instruction, send to the user; The user that reception is returned selects the application responds instruction, judges that the application model that the user selects is not a charging/power applications pattern, described USB device is set be operated under the normal mode of operation; The application model of selecting according to the user reads the configuration information of the application model correspondence that this user selects from many application configuration informations that described USB device is stored in advance, send to described main process equipment by the usb data line interface; Described main process equipment disposes described USB device according to the configuration information that receives, and carries out data transmission with described USB device.Like this, need realize a bite USB device of using with USB interface for those more, this method can select the required application model of user easily, reduced USB device structure complexity, improved the user and selected the convenience used, reduced the cost of USB device simultaneously.
Description of drawings
Fig. 1 is the communication process synoptic diagram of existing USB device and HOST.
Fig. 2 is the structural representation of existing USB device.
Fig. 3 is the mode of operation of UTMI unit and the corresponding relation synoptic diagram of OpMode signal.
Fig. 4 selects the method flow synoptic diagram of USB device application model for the embodiment of the invention.
Fig. 5 is the structural representation of embodiment of the invention USB device.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
In the practical application, for many application USB device with many interfaces, each UTMI all supports usb protocol, and when load application, the UTMI unit that correspondence is used links to each other with external unit, like this, the application that the user selects also just determined, and is in not have and drives mode of operation, after main frame carries out reset operation to it, UTMI unit, the USB controller corresponding by this application read the configuration information of this application and carry out corresponding configuration from MCU, thereby carry out this application associative operation.Thereby, in the embodiment of the invention, consideration is integrated with the interface of a plurality of application correspondences, when the UTMI unit links to each other with external unit, do not determine the application that the user selects, do not have when driving mode of operation but be in the UTMI unit, send the user to the user and select application instruction, select required application by the user, and the configuration information of respective application correspondence is read in the application of selecting according to the user from stored configuration information in advance, carry out corresponding configuration, thereby carry out this application associative operation by a UTMI unit.
Fig. 4 selects the method flow synoptic diagram of USB device application model for the embodiment of the invention.Referring to Fig. 4, below will use USB device more and be called, and the equipment that links to each other with many application USB device is called main process equipment from machine equipment, the pre-configured and storage configuration informations of using more, this flow process comprises:
Step 401 is inserted main process equipment from machine equipment, carries out physical connection with main process equipment;
In this step, realize physical connection, promptly support the main process equipment of USB interface and couple together by the usb data line from machine equipment from machine equipment and main process equipment.
Step 402, main process equipment is to powering on from machine equipment;
In this step, main process equipment by usb bus to the slave power devices.
Step 403 is set up being electrically connected from machine equipment and main process equipment;
In this step, after foundation is electrically connected, can detect from machine equipment and to be connected to main process equipment, but because main process equipment is not to being configured from machine equipment, main process equipment can't be discerned from machine equipment in this stage, detection is sightless from machine equipment for main process equipment just less than from machine equipment.Whether the slave Equipment Inspection is connected to main process equipment, belongs to prior art, does not repeat them here.
Step 404, slave equipment work are carried at the user with the list of application of this USB device support of storage in advance and select in the application instruction under Mode 1 pattern, send to the user by USB graphic user interface (GUI, Graphic User Interface) interface;
In this step, after the slave Equipment Inspection had been connected to main process equipment, the mode of operation of slave choice of equipment acquiescence promptly worked in not have and drives under the pattern, and just " OpMode " signal value is the mode of operation of " 01 ".
In the embodiment of the invention, after the mode of operation of slave choice of equipment acquiescence, trigger slave device start user and select application flow, send the user by USB GUI interface to the user and select application instruction.Be about to many application models information and show to the user by the graphical user interface that links to each other with MCU,, as previously mentioned, also can many application models information be shown to the user by alternate manner so that the user selects with the list of application information mode.Wherein, all undertaken by usb data line interface module from all data interactions of machine equipment and external unit, the user selects application flow to be undertaken by USB GUI, in the embodiment of the invention, is considered as UTMI with the interface module of usb data line.
In the present embodiment, MCU can show many application models information by graphic user interface, and receive the application responds instruction that the user selects by graphic user interface to the user.Certainly, also can many application models information be shown to the user by alternate manner, for example, by script mode etc.
In the practical application, the application that USB device has mainly comprises: the application that need carry out the application of data transmission and not need to carry out data transmission with the usb data line interface with the usb data line interface, wherein,
Need comprise with the application that the usb data line interface carries out data transmission: the audio frequency and video transmission that is used for the data transmission applications of mass data and is used for audio frequency and video output is used and other; Do not need to comprise and be used to the charging/power applications of charging/powering and other with the application that the usb data line interface carries out data transmission.
For data transmission applications, divide by type, can be divided into: card class slot mouth is used, other data transmission applications, and wherein, other data transmission applications can be the exclusive multifunctional application of being designed and developed by device fabrication, operator oneself; By the purposes branch, can be divided into data access application, IP Camera video output application, printout application, serial interfaces application etc.
The application that this USB device is supported is as tabulation in advance, certainly, also can store, after triggering slave device start user selects application flow with the form of tree structure, the list of application of storing is carried at the user selects in the application instruction, so that the user carries out application choice.Like this, even the user is unfamiliar with the application that this USB device has, also can from the list of application that shows, choose own required application, whether and need not consider can be with the usb data line interface connection error of this application correspondence, avoided needing the user to know the application that USB device has in the prior art, therefrom select the application that self needs and connect the complex operation that the corresponding interface causes, the multiple application and the interface connection error that need the different USB device of memory to have, and make that the user who is unfamiliar with this USB device application also can be very directly perceived, carry out the respective application operation easily.
Step 405 receives the user who returns and selects the application responds instruction, judges that the application model that the user selects is not charging/power applications pattern, is provided with to be operated under Mode 0 pattern;
In this step, the user selects after the required application model from the list of application that shows, if the application model that the user selects is not charging/power applications pattern, promptly need to carry out the pattern of data transmission with the usb data line interface, slave apparatus modifications " OpMode " signal value is " 00 ", make that withdrawing from nothing from machine equipment drives pattern, is operated under the normal mode.If the application model that the user selects is a charging/power applications pattern, then directly enter charging/power applications pattern from machine equipment, charge/power.
Step 406, from many application configuration informations of storing in advance from machine equipment, read the configuration information of the application model correspondence of this user's selection according to the application model of user's selection, send to main process equipment by the usb data line interface, main process equipment disposes from machine equipment according to the configuration information that reads;
In this step, main process equipment is with after the machine equipment successful connection, main process equipment just can read the configuration information of the application model correspondence of this user's selection according to the application model that the user selects from many application configuration informations that machine equipment is stored in advance, and disposes from machine equipment according to the configuration information that reads.Like this, from machine equipment be exactly the USB device of a definite function for main process equipment.
After main frame was finished configuration to slave, slave can be considered the USB device of a simple USB flash disk or a first-class simple function of shooting for main frame.
Step 407, main process equipment with carry out data transmission from machine equipment.
In this step,, can carry out power down process to USB device if the user needs switch application, and execution in step 401~step 407 again.
By as seen above-mentioned, the method for the selection USB device application model of the embodiment of the invention, the pre-configured and storage configuration informations of using insert main process equipment from machine equipment more, carry out physical connection with main process equipment; Main process equipment is to powering on from machine equipment; Foundation is electrically connected from machine equipment and main process equipment; The slave equipment work is carried at the user with the list of application of this USB device support of storage in advance and selects in the application instruction under Mode 1 pattern, sends to the user; The user that reception is returned selects the application responds instruction, judges that the application model that the user selects is not charging/power applications pattern, is provided with to be operated under Mode 0 pattern; The application model of selecting according to the user reads the configuration information of the application model correspondence that this user selects from many application configuration informations of storing in advance from machine equipment, and finishes from machine equipment according to the configuration information configuration of reading; Main process equipment with carry out data transmission from machine equipment.Like this, the shared USB device interface of a plurality of application, by multiple application is showed to the user, select by the user, avoided the user need know the application that USB device has, therefrom select the application that self needs and connect complex operation that the corresponding interface causes and the problem of interface connection error, reduced the interface quantity of multifunctional equipment, the structure complexity that has reduced multifunctional equipment and cost, improved the user and select the convenience used.
Fig. 5 is the structural representation of embodiment of the invention USB device.Referring to Fig. 5, this USB device comprises: UTMI unit, USB controller and MCU, wherein,
The UTMI unit is used for linking to each other with main process equipment by the usb data line, detect be electrically connected with main frame after, send to have set up to the USB controller and be electrically connected instruction; Receive the configuration information of USB controller output, send by usb data alignment main process equipment;
The USB controller is used for receiving to have set up being electrically connected instruction, sends the instruction of acquiescence mode of operation and obtains many application message instructions to MCU; Receive the configuration information of MCU output, carry out self and dispose and export to the UTMI unit;
In the present embodiment, as previously mentioned, the USB controller also is used to realize the packet encoder and the decoding of usb protocol regulation, end points/FIFO control, promptly finish data by the UTMI unit to the translation MCU, and MCU is to the coding packing process of UTMI unit etc.The USB controller is according to the correlation parameter of the configuration information configuration that receives self.
MCU is used for receiving the instruction of acquiescence mode of operation, and USB device is set to give tacit consent to mode of operation; Many application message instructions are obtained in reception, and many application messages of storing are in advance shown to the user; Receive the application responds instruction that the user sends, if the application model that the user selects is not charging/power applications pattern, USB device is set to normal mode of operation, the application model of selecting according to the user reads the configuration information of the application model correspondence that this user selects from many application configuration informations of storage in advance, export the USB controller to; If the application model that the user selects is a charging/power applications pattern, USB device is set to charging/powering mode.
In the present embodiment, MCU can show many application models information by graphic user interface, and receive the application responds instruction that the user selects by graphic user interface to the user.Certainly, also can many application models information be shown to the user by alternate manner, for example, by script mode etc.
MCU comprises: micro treatment module, many application configuration informations memory module, many application memory module, user select applications trigger module and user to select the application model judge module, wherein,
Micro treatment module is used for receiving the instruction of acquiescence mode of operation, and USB device is set to give tacit consent to mode of operation; Receive the normal mode of operation instruction that the user selects the output of application model judge module, USB device is set to normal mode of operation, application model according to user's selection of carrying in the normal mode of operation instruction, inquire about the configuration information of the application model correspondence of this user's selection from many application configuration informations memory module, export the USB controller to;
Many application configuration informations memory module is used to store many application configuration informations;
In the present embodiment, many application configuration informations are the configuration information that comprises application identities, and each application has corresponding configuration information.
Many application memory module is used to store many application messages that this USB device is supported;
The user selects the applications trigger module, is used for receiving obtaining many application message instructions, reads many application messages from many application memory module, shows to the user by graphic user interface;
The user selects the application model judge module, receive the application responds instruction that the user selects by graphic user interface, if the application model that the user selects is not charging/power applications pattern,, carry the application model that the user selects to the instruction of micro treatment module output normal mode of operation; If the application model that the user selects is a charging/power applications pattern, to micro treatment module output charging/powered operation mode instruction.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. a method of selecting general-purpose serial bus USB equipment application model is characterized in that, stores many application models information and the described configuration information of using that USB device is supported in advance more, and this method comprises:
Set to be operated in after the foundation of USB device and main process equipment is electrically connected and do not have the pattern of driving;
Described many application models information is carried at the user selects in the application instruction, send to the user;
The user that reception is returned selects the application responds instruction, judges that the application model that the user selects is not a charging/power applications pattern, described USB device is set be operated under the normal mode of operation;
The application model of selecting according to the user reads the configuration information of the application model correspondence that this user selects from many application configuration informations that described USB device is stored in advance, send to described main process equipment by the usb data line interface;
Described main process equipment disposes described USB device according to the configuration information that receives, and carries out data transmission with described USB device.
2. the method for claim 1 is characterized in that, described application model comprises: the application model that need carry out the application model of data transmission and not need to carry out with the usb data line interface data transmission with the usb data line interface.
3. method as claimed in claim 2 is characterized in that, described need comprising with the application model that the usb data line interface carries out data transmission: the audio frequency and video transmission application model that is used for the data transmission applications pattern of mass data and is used for audio frequency and video output.
4. method as claimed in claim 3 is characterized in that, the described data transmission applications pattern that is used for mass data comprises: data access application model, printout application model and serial interfaces application model.
5. the method for claim 1 is characterized in that, described USB device and main process equipment are set up the step that is electrically connected and comprised:
Described USB device is inserted main process equipment, carries out physical connection with main process equipment;
Described main process equipment powers on to described USB device;
Set up being electrically connected of described USB device and described main process equipment.
6. the method for claim 1 is characterized in that, the user that described reception is returned further comprises after selecting the step of application responds instruction:
If the application model that the user selects is a charging/power applications pattern, then described USB device directly enters charging/power applications pattern, charges/power.
7. the method for claim 1 is characterized in that, sends the user by the USB graphic user interface to the user and selects application instruction.
8. a general-purpose serial bus USB equipment is characterized in that, this USB device comprises: transceiver macro interface UTMI unit, USB controller and micro-control unit MCU,
The UTMI unit is used for linking to each other with main process equipment by the usb data line, detect be electrically connected with main frame after, send to have set up to the USB controller and be electrically connected instruction; Receive the configuration information of USB controller output, send by usb data alignment main process equipment;
The USB controller is used for receiving to have set up being electrically connected instruction, sends the instruction of acquiescence mode of operation and obtains many application message instructions to MCU; Receive the configuration information of MCU output, carry out self and dispose and export to the UTMI unit;
MCU is used for receiving the instruction of acquiescence mode of operation, and USB device is set to give tacit consent to mode of operation; Many application message instructions are obtained in reception, and many application models information of storing is in advance shown to the user; Receive the application responds instruction that the user sends, if the application model that the user selects is not charging/power applications pattern, USB device is set to normal mode of operation, the application model of selecting according to the user reads the configuration information of the application model correspondence that this user selects from many application configuration informations of storage in advance, export the USB controller to; If the application model that the user selects is a charging/power applications pattern, USB device is set to charging/powering mode.
9. USB device as claimed in claim 8 is characterized in that, described MCU comprises: micro treatment module, many application configuration informations memory module, many application memory module, user select applications trigger module and user to select the application model judge module, wherein,
Micro treatment module is used for receiving the instruction of acquiescence mode of operation, and USB device is set to give tacit consent to mode of operation; Receive the normal mode of operation instruction that the user selects the output of application model judge module, USB device is set to normal mode of operation, application model according to user's selection of carrying in the normal mode of operation instruction, inquire about the configuration information of the application model correspondence of this user's selection from many application configuration informations memory module, export the USB controller to;
Many application configuration informations memory module is used to store many application configuration informations;
Many application memory module is used to store many application messages that this USB device is supported;
The user selects the applications trigger module, is used for receiving obtaining many application message instructions, reads many application messages from many application memory module, shows to the user by graphic user interface;
The user selects the application model judge module, receive the application responds instruction that the user selects by graphic user interface, if the application model that the user selects is not charging/power applications pattern,, carry the application model that the user selects to the instruction of micro treatment module output normal mode of operation; If the application model that the user selects is a charging/power applications pattern, to micro treatment module output charging/powered operation mode instruction.
CN200910215398XA 2009-12-31 2009-12-31 Method for selecting application mode of universal serial bus (USB) equipment and USB equipment Pending CN102117251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910215398XA CN102117251A (en) 2009-12-31 2009-12-31 Method for selecting application mode of universal serial bus (USB) equipment and USB equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910215398XA CN102117251A (en) 2009-12-31 2009-12-31 Method for selecting application mode of universal serial bus (USB) equipment and USB equipment

Publications (1)

Publication Number Publication Date
CN102117251A true CN102117251A (en) 2011-07-06

Family

ID=44216028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910215398XA Pending CN102117251A (en) 2009-12-31 2009-12-31 Method for selecting application mode of universal serial bus (USB) equipment and USB equipment

Country Status (1)

Country Link
CN (1) CN102117251A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103875231A (en) * 2011-10-13 2014-06-18 波音公司 Portable communication devices with accessory functions and related methods
CN105138480A (en) * 2015-07-28 2015-12-09 小米科技有限责任公司 Method and apparatus for performing operation
CN105989227A (en) * 2015-02-12 2016-10-05 上海西门子医疗器械有限公司 Workflow configuration method and device of medical equipment and medical equipment
CN106201446A (en) * 2015-04-30 2016-12-07 小米科技有限责任公司 Realize the method and device of the miscellaneous function of electronic equipment
CN107302116A (en) * 2017-07-19 2017-10-27 广东欧珀移动通信有限公司 Charging method, mobile terminal and computer-readable recording medium
CN107392066A (en) * 2017-07-19 2017-11-24 广东欧珀移动通信有限公司 Protect method, mobile terminal and the computer-readable recording medium of data safety
CN107394288A (en) * 2017-07-19 2017-11-24 广东欧珀移动通信有限公司 Charging method, mobile terminal and computer-readable recording medium
CN107394287A (en) * 2017-07-19 2017-11-24 广东欧珀移动通信有限公司 Charging method, mobile terminal and computer-readable recording medium
CN107392035A (en) * 2017-07-19 2017-11-24 广东欧珀移动通信有限公司 Protect method, mobile terminal and the computer-readable recording medium of data safety
CN107437032A (en) * 2017-07-19 2017-12-05 广东欧珀移动通信有限公司 Charging method, mobile terminal and computer-readable recording medium
CN108733519A (en) * 2017-04-14 2018-11-02 中兴通讯股份有限公司 A kind of configuration method and host of USB device
CN113495860A (en) * 2020-03-20 2021-10-12 合肥杰发科技有限公司 Data transmission method of SOC (System on chip) equipment, SOC equipment and device with storage function
CN115442083A (en) * 2022-08-08 2022-12-06 黄建邦 Equipment access method, data exchange method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1591383A (en) * 2003-08-27 2005-03-09 佳能株式会社 Electronic device and method of controlling interface thereof
CN101452435A (en) * 2008-12-12 2009-06-10 深圳华为通信技术有限公司 USB terminal mode switching method and terminal
CN201369044Y (en) * 2008-12-02 2009-12-23 十速科技股份有限公司 USB interface transmission device and USB interface transmission system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1591383A (en) * 2003-08-27 2005-03-09 佳能株式会社 Electronic device and method of controlling interface thereof
CN201369044Y (en) * 2008-12-02 2009-12-23 十速科技股份有限公司 USB interface transmission device and USB interface transmission system
CN101452435A (en) * 2008-12-12 2009-06-10 深圳华为通信技术有限公司 USB terminal mode switching method and terminal

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103875231A (en) * 2011-10-13 2014-06-18 波音公司 Portable communication devices with accessory functions and related methods
CN105989227A (en) * 2015-02-12 2016-10-05 上海西门子医疗器械有限公司 Workflow configuration method and device of medical equipment and medical equipment
CN105989227B (en) * 2015-02-12 2019-04-16 上海西门子医疗器械有限公司 Workflow configuration method, device and the Medical Devices of Medical Devices
CN106201446A (en) * 2015-04-30 2016-12-07 小米科技有限责任公司 Realize the method and device of the miscellaneous function of electronic equipment
CN105138480B (en) * 2015-07-28 2018-04-06 小米科技有限责任公司 A kind of method and apparatus for performing operational order
CN105138480A (en) * 2015-07-28 2015-12-09 小米科技有限责任公司 Method and apparatus for performing operation
CN108733519B (en) * 2017-04-14 2022-08-16 中兴通讯股份有限公司 Configuration method of USB (universal serial bus) equipment and host
CN108733519A (en) * 2017-04-14 2018-11-02 中兴通讯股份有限公司 A kind of configuration method and host of USB device
CN107392066A (en) * 2017-07-19 2017-11-24 广东欧珀移动通信有限公司 Protect method, mobile terminal and the computer-readable recording medium of data safety
CN107392035B (en) * 2017-07-19 2020-08-18 Oppo广东移动通信有限公司 Method for protecting data security, mobile terminal and computer readable storage medium
CN107392035A (en) * 2017-07-19 2017-11-24 广东欧珀移动通信有限公司 Protect method, mobile terminal and the computer-readable recording medium of data safety
CN107394287A (en) * 2017-07-19 2017-11-24 广东欧珀移动通信有限公司 Charging method, mobile terminal and computer-readable recording medium
CN107394288A (en) * 2017-07-19 2017-11-24 广东欧珀移动通信有限公司 Charging method, mobile terminal and computer-readable recording medium
CN107302116B (en) * 2017-07-19 2020-06-23 Oppo广东移动通信有限公司 Charging method, mobile terminal and computer-readable storage medium
CN107437032B (en) * 2017-07-19 2020-06-23 Oppo广东移动通信有限公司 Charging method, mobile terminal and computer-readable storage medium
CN107437032A (en) * 2017-07-19 2017-12-05 广东欧珀移动通信有限公司 Charging method, mobile terminal and computer-readable recording medium
CN107392066B (en) * 2017-07-19 2020-12-01 Oppo广东移动通信有限公司 Method for protecting data security, mobile terminal and computer readable storage medium
CN107302116A (en) * 2017-07-19 2017-10-27 广东欧珀移动通信有限公司 Charging method, mobile terminal and computer-readable recording medium
CN113495860A (en) * 2020-03-20 2021-10-12 合肥杰发科技有限公司 Data transmission method of SOC (System on chip) equipment, SOC equipment and device with storage function
CN113495860B (en) * 2020-03-20 2024-04-19 合肥杰发科技有限公司 Data transmission method of SOC (system on chip) equipment, SOC equipment and device with storage function
CN115442083A (en) * 2022-08-08 2022-12-06 黄建邦 Equipment access method, data exchange method, device, equipment and storage medium
CN115442083B (en) * 2022-08-08 2023-08-25 黄建邦 Device access method, data exchange method, device and storage medium
WO2024032474A1 (en) * 2022-08-08 2024-02-15 黄建邦 Device access method, data exchange method and related device

Similar Documents

Publication Publication Date Title
CN102117251A (en) Method for selecting application mode of universal serial bus (USB) equipment and USB equipment
JP6257757B2 (en) Camera control interface expansion bus
TWI633441B (en) Electronic device and method operational on the same
CN109245199A (en) Charging method, charging unit, power supply provide equipment and terminal to be charged
CN101893926A (en) Method, device and terminal for controlling switching of dual processor
JP2018509710A (en) A farewell reset and resume method for coexistence of legacy and next-generation devices via a shared multimode bus
CN104333401A (en) Methods, devices and systems for sending and receiving Bluetooth data
WO2014134947A1 (en) Device for transmitting and receiving control information and method thereof
TW201328273A (en) Remote management system and remote management method
CN1135478C (en) Method of synchronizing communications means in a battery to communications means in an electronic device, an apparatus, and a battery
CN101221471A (en) Mouse with voice function
CN102411921B (en) Encoding and decoding device and execution and driving method thereof
CN101868049B (en) Communication methods for host and wireless Internet access module and host communication module
CN201355847Y (en) Continuous key-press processing device and TV set
CN101404656A (en) Software interface design method for communicating with third party intelligent equipment protocol
CN102768351A (en) Method, system and intelligent tool device for detecting prior mounting function of electric meter
CN102215501A (en) Method for realizing automated testing of AT (Automated Testing) command of wireless module
CN106294237A (en) A kind of multiplexing functions method and device of communication interface
CN112559264B (en) Simulation test method for realizing FPGA (field programmable Gate array) universal serial port by verification platform based on UVM (Universal verification Module)
CN108200090A (en) A kind of agreement integration technology for electromechanical equipment
CN104883417B (en) SCM Based voice terminal system
CN113709010A (en) Modbus communication protocol system without frame length limitation
CN105049129A (en) Wi-Fi configuration system and method based on acoustic waves
CN101399852A (en) Method for realizing wireless access kit upgrading through network interface
EP2866425B1 (en) Mobile device communication method, apparatus and communication system

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: 20110706