CN101303652B - Configuration setting method, electronic system, computer as well as general-purpose serial bus equipment - Google Patents

Configuration setting method, electronic system, computer as well as general-purpose serial bus equipment Download PDF

Info

Publication number
CN101303652B
CN101303652B CN200710102406A CN200710102406A CN101303652B CN 101303652 B CN101303652 B CN 101303652B CN 200710102406 A CN200710102406 A CN 200710102406A CN 200710102406 A CN200710102406 A CN 200710102406A CN 101303652 B CN101303652 B CN 101303652B
Authority
CN
China
Prior art keywords
product information
usb device
usb
computing machine
storage device
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.)
Active
Application number
CN200710102406A
Other languages
Chinese (zh)
Other versions
CN101303652A (en
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.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
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 Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN200710102406A priority Critical patent/CN101303652B/en
Publication of CN101303652A publication Critical patent/CN101303652A/en
Application granted granted Critical
Publication of CN101303652B publication Critical patent/CN101303652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A configuration setting method includes the following steps: presetting a first product information in a USB device; carrying out the procedure of first listing on the USB device in a host computer so as to select a drivers according to the first product information; searching a second product information in the host computer; storing the second product information into the USB device; utilizing the second product information stored in the USB device to carry out procedure of second listing.

Description

Configuration and setting method, electronic system, computing machine and universal serial bus device
Technical field
The present invention relates to computer interface equipment, particularly relate to the configuration and setting method and the relevant apparatus of USB device.
Background technology
USB (Universal Serial Bus; Hereinafter to be referred as USB) be the connecting interface between a kind of computer interface equipment and the computing machine; 127 equipment of supporting USB can be arranged simultaneously through a USB Root Hub (USB root hub) and the usb bus of computing machine at most, the various services of plug and play are provided.
In general, except the core circuit that is used to provide its major function, USB device also has a control module and a storage element usually.This storage element is used for storing the distinctive product information of this USB device; Manufacturer's identification code (Vender Identification for example; Hereinafter to be referred as VID), product ID (Product Identification is hereinafter to be referred as PID), and product serial number (serial number) etc.Each USB device all has unique product information for difference.
This control module can read the product information of this storage unit stores, and carries out the communication protocol (protocol) of usb bus.After this USB device is plugged on a computing machine; This computing machine is to load correct driver and this USB device is carried out configuration and setting (configure) according to this product information; For example specify an identification number unique between 1~127 to give this USB device, so that this USB device has the numbering of a uniqueness on usb bus.At first; This computing machine is opened the program that a device is enumerated (enumeration); This USB device carries out device with its distinctive product information and enumerates afterwards; Give this computing machine to transmit a descriptor (descriptor) that comprises this VID and this PID, this computing machine is looked for corresponding driver according to this VID and this PID more then, and carries out configuration and setting by this driver.
If the driver of this USB device not in this computing machine; Then this computing machine shows relevant prompting message on its screen; For example, load the driver of this USB device to notify the user to manufacturer's title that should VID and to device name that should PID.
In order to keep this product information and in order to make manufacturer possess the elasticity that under different situations, deposits Different products information in permanent under the situation that does not have electric power to provide; Being used for this storage element of stored prod information often is to make with the programmable nonvolatile memory (non-volatilememory) of for example EEPROM; But because this EEPROM can't be incorporated in the one chip with this control module; And must be electrically connected this EEPROM and this control module with a bigger circuit board, cause the whole volume of this USB device to dwindle.In addition, this EEPROM also can increase cost.
Moreover; The manufacturer of each USB device all stores its distinctive product information for the USB device that makes its production; Must be in the process made from a burning equipment; Burning product information seriatim in the EEPROM of each USB device, the speed of production of the USB device that so will slow down, and increase production cost.
Summary of the invention
Therefore, a purpose of the present invention provides a kind of configuration and setting method of USB device, and this method can be saved the manufacturing course of burning EEPROM.
Another object of the present invention provides a kind of USB device, and this USB device need not use non-volatile EEPROM, to save manufacturing cost.
Configuration and setting method of the present invention comprises following steps: preset one first product information in a USB device; In a main frame, this USB device is carried out one and enumerate program for the first time, to choose a driver according to this first product information; In this main frame, search one second product information; This second product information is stored in this USB device; And utilize and to be stored in this second product information in this USB device, to carry out one and enumerate program for the second time, said first product information and said second product information comprise at least one in manufacturer's identification code, product ID and the product serial number.
And USB device of the present invention comprises: a storage device, the product information that storage one is preset; An and USB control circuit; This storage device stores should preset product information be passed to a computing machine, and the product information that customizes that receives that this computing machine transmits and carry out device with the product information of this customization to this computing machine and enumerate to accomplish configuration and setting.
And computing machine of the present invention comprises: a storage device stores the product information that at least one USB device customizes; An and CPU; Receive the preset product information that this USB device transmits; And search this storage device to find the customized product information corresponding and to pass to this USB device with this USB device; And open this USB device and carry out the program that device is enumerated with the product information of this customization, to set the configuration of this USB device, said product information comprises at least one in manufacturer's identification code, product ID and the product serial number.
And electronic system of the present invention is to comprise above-mentioned USB device and computing machine.
Description of drawings
Fig. 1 is the circuit block diagram of the embodiment of electronic system of the present invention.
Fig. 2 is the process flow diagram of the embodiment of configuration and setting method of the present invention.
The reference numeral explanation
1 USB device, 21 CPU
11 USB control circuits, 22 second storage devices
12 first storage devices, 23 second usb interface modules
13 first usb interface module 51-57 steps
2 computing machines
Embodiment
About aforementioned and other technology contents, characteristics and effect of the present invention, in detailed description, can clearly appear below in conjunction with the embodiment of accompanying drawing.
Consult Fig. 1, the embodiment of a kind of electronic system of the present invention comprises a USB device 1 and a computing machine 2.
This USB device 1 comprises a USB control circuit 11, one first storage device 12, and one first usb interface module 13; This USB control circuit 11 is used for controlling the associative operation that this USB device 1 links through USB interface and host computer 2; This first storage device 12 is used for storing product information that is sent by computing machine 2 ends and the product information that stores preset (default); This first usb interface module 13 then is used for linking through a USB interface and computing machine 2 ends; With mutual Data transmission; Differently with prior art at this be, first storage device 12 need not realize with the higher nonvolatile memory of manufacturing cost, can be manufactured in modes such as register (register) or RAM in the single IC for both with other circuit and realizes and can adopt.
Those skilled in the art should understand; Constituent components such as the above-mentioned USB control circuit 11 and first usb interface module 13, it is a part of or all can select to cooperate the mode of firmware program code (firmware program code) to realize with special hardware circuit (dedicatedhardware circuit) or with general processor (general purpose processor).This USB device 1 can be any peripheral device of communicating with each other with USB interface and host computer 2; For example printer, scanning machine, multifunctional paper feeding machine, digital camera, storage device such as carry-on dish (flashdisk), hard disk, CD-ROM drive or the like; Or other device, in all being included in.Certainly; Except as previously mentioned, each composition assembly relevant with USB transmission; USB device 1 also can include circuit and the assembly that provides its major function (like printing, image capture, storage etc.) relevant; Yet because these partly do not have direct connection with the present invention, so will not give unnecessary details at this.
And generally speaking this computing machine 2 comprises a CPU (center processing unit, CPU) 21,1 second storage device 22 and one second usb interface module 23.Certainly, this computing machine 2 also includes many other usually and forms assembly, but owing to these composition assemblies are extensively known for those skilled in the art, and do not have direct connection with the present invention, so do not give unnecessary details at this.First usb interface module 13 of this USB device 1 and second usb interface module 23 of this computing machine 2 link through a USB interface to each other each other, to be used for Data transmission.Extensively know like the USB those skilled in the art; This USB interface can be wired form exist; For example connect with a cable; And technically development and breakthrough recently makes that more constituting USB interface with wireless mode becomes possibility, for example cooperates the technology of wireless ultra-wideband (ultra wide band) to implement.
Second storage device 22 of this computing machine 2 is common non-volatile memory devices in general computing machine 2 systems; And storing USB device 1 employed customization (customized) product information, these customized product information can register tables (register table) or the mode of file (text file) is stored in second storage device 22.For and the product information that prevents this customization destroyed, in an embodiment of the present invention, just the product information of this customization is to be stored in this second storage device 22 after encoding through digital signature or other mode.And this second storage device 22 can be hard disk or BIOS is CMOS, but does not exceed with these.
See also Fig. 2; It shows the configuration and setting method of this electronic system; It includes following steps: at first; When USB device 1 is plugged into a computing machine 2 or when computing machine 2, be inserted with (step 51) when starting power supply under the state of this USB device 1, this computing machine 2 can detect the existence of this USB device 1, and begins the primary program (enumeration) of enumerating; Because belonging to those skilled in the art, the program of being formulated in the usb compliant of enumerating extensively knows, so its details will not given unnecessary details at this.Through enumerating after the program, computing machine 2 can be obtained VID, PID or the other products information of presetting (defau lt) in the USB device 1, and can choose USB device 1 driver (driver) (step 52) with its coupling according to information such as VID/PID.
In present embodiment; Above-mentioned USB device 1 driver can be after choosing; Promptly search customized product information stored in computing machine 2; For example search and be stored in text file or the scratch list among hard disk or the BIOS CMOS, to obtain meeting the new VID/PID (step 53) of received product information.After finding new VID/PID, driver more can be verified its correctness and integrality (step 54), and new VID/PID is sent to USB device 1 end through USB interface, is stored in first storage device 12 for example register or RAM central (step 55).Next; Driver then can be reseted (reset) (step 56) to USB device 1; So this computing machine 2 can be pulled up USB device 1 under the situation of plugging again need not again; Be used in the new VID/PID that has been stored in the previous steps in first storage device 12, carry out secondary program (step 57) of enumerating.
Comprehensively above-mentioned; Preferred embodiment of the present invention makes different USB device 1 have the product information of customization respectively through driver; Store the product information that customizes compared to the existing EEPROM of USB device that must utilize; Can save the cost of EEPROM and the manufacturing course of burning EEPROM, and save EEPROM and also can make the whole volume of USB device 1 dwindling further, therefore can reach the object of the invention really.
The above is merely preferred embodiment of the present invention, and can not limit the scope that the present invention implements with this, and all simple equivalent of doing according to claim of the present invention and description change and modify, and all still belong to the scope that patent of the present invention contains.

Claims (15)

1. configuration and setting method, it includes following steps:
Preset one first product information in first memory storage of a USB device;
In a main frame, this USB device is carried out one and enumerate program for the first time, to choose a driver according to this first product information;
In this main frame, search one second product information;
This second product information is stored in this USB device; And
Utilization is stored in this second product information in this USB device, and carry out one and enumerate program for the second time,
Said first product information and said second product information comprise at least one in manufacturer's identification code, product ID and the product serial number,
Wherein, said first memory storage adopts the register that can be manufactured in other circuit in the said USB device in the single IC for both or the mode of RAM to realize.
2. the method for claim 1, wherein this second product information is with the digital signature coding protection.
3. the method for claim 1, wherein after this second product information is stored to this USB device, this driver is reseted this USB device.
4. an electronic system comprises a USB device and a computing machine,
This USB device comprises:
One first storage device, the product information that storage one is preset; And
One USB control circuit passed to this computing machine with the product information that should preset of this first storage device stores;
This computing machine comprises:
One second storage device stores at least necessarily product information of inhibition and generation; And
One CPU receives this preset product information, and searches this second storage device to find the customized product information corresponding with this USB device and to pass to this USB control circuit;
And this USB control circuit carries out device with the product information of this customization to the CPU of this computing machine to be enumerated with the completion configuration and setting,
Said product information comprises at least one in manufacturer's identification code, product ID and the product serial number,
Wherein, said first storage device adopts the register that can be manufactured in other circuit in the said USB device in the single IC for both or the mode of RAM to realize.
5. electronic system as claimed in claim 4, wherein, the CPU of this computing machine is the driver according to this USB device of product information coupling that should preset, and looks for the product information of this customization by this driver.
6. electronic system as claimed in claim 4, wherein, the product of this customization is with the digital signature coding protection.
7. electronic system as claimed in claim 4, wherein, the CPU of this computing machine transmits the product information of this customization to behind this USB control circuit, and this CPU can be reseted this this USB device.
8. electronic system as claimed in claim 4, this first storage device storage device that is a kind of volatibility wherein, and this second storage device is a kind of non-volatile storage device.
9. computing machine comprises:
One storage device stores the product information that at least one USB device customizes; And
One CPU; Receive a preset product information of storing in first memory storage of this USB device that this USB device transmits; And search this storage device to find the customized product information corresponding and to pass to this USB device with this USB device; And open this USB device and carry out the program that device is enumerated with the product information of this customization, to set the configuration of this USB device
Said product information comprises at least one in manufacturer's identification code, product ID and the product serial number,
Wherein, said first memory storage adopts the register that can be manufactured in other circuit in the said USB device in the single IC for both or the mode of RAM to realize.
10. computing machine as claimed in claim 9, wherein, this CPU is the driver according to this USB device of product information coupling that should preset, and looks for the product information of this customization by this driver.
11. computing machine as claimed in claim 9, wherein, the product information of this customization is with the digital signature coding protection.
12. computing machine as claimed in claim 9, wherein, this CPU transmits the product information of this customization to behind this USB device, can reset this this USB device.
13. computing machine as claimed in claim 9, wherein this storage device is a kind of non-volatile storage device.
14. a USB device comprises:
One storage device, the product information that storage one is preset; And
One USB control circuit, with this storage device stores should preset product information pass to a computing machine, and the product information that customizes that receives that this computing machine transmits and carry out device with the product information of this customization to this computing machine and enumerate accomplishing configuration and setting,
Said product information comprises at least one in manufacturer's identification code, product ID and the product serial number,
Wherein, said storage device adopts the register that can be manufactured in other circuit in the said USB device in the single IC for both or the mode of RAM to realize.
15. USB device as claimed in claim 14, wherein this storage device is a kind of storage device of volatibility.
CN200710102406A 2007-05-08 2007-05-08 Configuration setting method, electronic system, computer as well as general-purpose serial bus equipment Active CN101303652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710102406A CN101303652B (en) 2007-05-08 2007-05-08 Configuration setting method, electronic system, computer as well as general-purpose serial bus equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710102406A CN101303652B (en) 2007-05-08 2007-05-08 Configuration setting method, electronic system, computer as well as general-purpose serial bus equipment

Publications (2)

Publication Number Publication Date
CN101303652A CN101303652A (en) 2008-11-12
CN101303652B true CN101303652B (en) 2012-09-05

Family

ID=40113569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710102406A Active CN101303652B (en) 2007-05-08 2007-05-08 Configuration setting method, electronic system, computer as well as general-purpose serial bus equipment

Country Status (1)

Country Link
CN (1) CN101303652B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164296B (en) * 2013-03-28 2016-11-23 青岛海信移动通信技术股份有限公司 A kind of method and device processing production data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6192420B1 (en) * 1997-08-09 2001-02-20 Weltrend Semiconductor Inc. Controller with a vendor/product identification pin for a Universal Serial Bus by various manufacturers
CN1728116A (en) * 2004-07-26 2006-02-01 义隆电子股份有限公司 System of burning program applicable to USB interface in peripheral equipment of computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6192420B1 (en) * 1997-08-09 2001-02-20 Weltrend Semiconductor Inc. Controller with a vendor/product identification pin for a Universal Serial Bus by various manufacturers
CN1728116A (en) * 2004-07-26 2006-02-01 义隆电子股份有限公司 System of burning program applicable to USB interface in peripheral equipment of computer

Also Published As

Publication number Publication date
CN101303652A (en) 2008-11-12

Similar Documents

Publication Publication Date Title
US8127065B2 (en) Storage card having selectable contact elements and method of its operation
CN105144097B (en) Firmware update for multiple products configurations
CN103037538B (en) Data transmission method and mobile terminal
US8417864B2 (en) Cascade-able serial bus device with clock and management and cascade methods using the same
US8145935B2 (en) Clock signal generator for generating stable clock signal, semiconductor memory device including the same, and methods of operating
CN103095855B (en) I2C communication interface unit
TWI529535B (en) Resource sharing devices
CN108664429B (en) Master-slave configuration communication protocol, method for improving compatibility and electronic equipment
CN102844748B (en) Data transmission method, main device and from device
CN103731497A (en) Method for supporting wireless access to storage device and mobile route hot point device
CN103473198A (en) Method for sharing and transmitting files between mobile terminals
CN101788946B (en) Method and device for sintering firmware connected with E2PROM (Electrically Erasable Programmable Read-Only Memory) on CPLD (Complex Programable Logic Device)
CN101303652B (en) Configuration setting method, electronic system, computer as well as general-purpose serial bus equipment
CN104081679B (en) Near field communication method and near-field communication equipment
CN114064545B (en) Method and device for identifying serial port function, main control chip, household electrical appliance and medium
CN102148631A (en) Dismountable wireless communication module and startup method thereof
CN104536789A (en) Data burning method and data burning device
CN110324052B (en) Function application implementation method, device, terminal and storage medium
CN103473197B (en) Gateway device and card of surfing Internet carry out adaptive method and apparatus
CN100552627C (en) A kind of method of electronic product being carried out Data Update
US9465765B2 (en) All-in-one SATA interface storage device
CN110047550A (en) data storage device, memory control circuit and monitoring method thereof
CN1322437C (en) Multi-host access apparatus for multi-host accessing stored media
CN108075910B (en) Configuration method of communication equipment and communication equipment
CN104778144A (en) OTG-based (On-The-Go-based) intelligent terminal operation control method and OTG-based intelligent terminal operation control device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant