CN100440146C - Computer operation environment shifting system, relative device, method and computer readable access medium - Google Patents

Computer operation environment shifting system, relative device, method and computer readable access medium Download PDF

Info

Publication number
CN100440146C
CN100440146C CNB2004100346345A CN200410034634A CN100440146C CN 100440146 C CN100440146 C CN 100440146C CN B2004100346345 A CNB2004100346345 A CN B2004100346345A CN 200410034634 A CN200410034634 A CN 200410034634A CN 100440146 C CN100440146 C CN 100440146C
Authority
CN
China
Prior art keywords
computer
usb
operating environment
bridge joint
controller
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.)
Expired - Fee Related
Application number
CNB2004100346345A
Other languages
Chinese (zh)
Other versions
CN1684037A (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.)
Genesys Logic Inc
Original Assignee
Genesys Logic Inc
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 Genesys Logic Inc filed Critical Genesys Logic Inc
Priority to CNB2004100346345A priority Critical patent/CN100440146C/en
Publication of CN1684037A publication Critical patent/CN1684037A/en
Application granted granted Critical
Publication of CN100440146C publication Critical patent/CN100440146C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a computer operational environment migratory system, a relevant apparatus, a method and a computer readable storage medium. The computer operational environment migratory system comprises a first computer, a second computer and a USB bridging connection migratory cable, wherein the USB bridging connection migratory cable is connected with a primary USB connector and a secondary USB connector; the relevant apparatus comprises a primary USB controller and a secondary USB controller, wherein the primary USB controller is coupled with the primary USB connector, and the secondary USB controller is coupled with the secondary USB connector; a primary flash memory and a secondary flash memory are respectively embedded in the primary USB controller and the secondary USB controller and respectively store a primary firmware program and a secondary firmware program so as to respectively operate the primary USB controller and the secondary USB controller. Besides, the primary USB connector and the secondary USB connector are respectively coupled with a primary computer and a secondary computer, wherein the second computer automatically installs a driver and an application which are stored in the primary computer through a USB bridging connection migratory apparatus according to an automatic execution mapping file so that the primary computer obtains the operational environment of the secondary computer through the USB bridging connection migratory apparatus; thus, the secondary computer favorably contains installed applications, address lists of E-mail and my favorite data in a browser.

Description

Computer operating environment migratory system, relevant apparatus, method
Technical field
The relevant a kind of computer operating environment migratory system of the present invention, relevant apparatus, method are especially relevant for the system, relevant apparatus, the method that allow migration operating environment between two computers.
Background technology
Conventional personal computer is changed operating system again the user, or work as the user and buy the new PC of a cover, all need the user to spend the tediously long time, its application program of wanting (applications) is installed one by one, and the address list of some setting contents or Email need be copied to the operating system of new installation through specific program from old system, perhaps, run into be not very familiar to operation the user just without hesitation with e-mail address in key in again at leisure more in the future, the user is when the conversion process system, if do not finish the installation of related setting and application program, just face strange operating environment, therefore in prior art, reinstall or change a cover operation system for the user, just like the dream dimple and the work of taking a lot of trouble very consuming time of misery.
USB (universal serial bus) (universal serial bus, abbreviation USB) controller evolves to USB2.0 from USB1.1, transmitting bandwidth rises to 480Mbps from 12Mbps, mainly can be applied in carry-on CD, card reader, mouse, keyboard etc., the convenience of USB plug and play widely user likes that PC is also all classified it as standard interface at present.
Summary of the invention
The present invention discloses a kind of computer operating environment moving method, comprises the following step: the manufacturer's number and the identification symbol that judge whether to discern the USB device; When described computer can't be discerned a manufacturer's number of USB device and an identification symbol, represent that it is USB bridge joint moving apparatus that this computer can't be discerned this USB Setup Controller, first function of declaring a USB device is a CD drive; Second function of declaring this USB device is a USB bridge joint moving apparatus; Automatically install according to first function and to carry out the driver that is arranged in far-end computer and application program to the local terminal computer; Analyze the operating environment of local terminal computer; And migrate in the far-end computer by the operating environment of second function with the local terminal computer; Wherein operating environment comprise the address list of a plurality of application programs of having installed, Email in the local terminal computer, in the browser I like data and many envelope Emails.
The present invention also discloses a kind of computer operating environment moving method, comprises the following step: inquire regularly by first computer whether USB bridge joint moving apparatus connects second computer; Automatically installing and carry out in program to the second computer that is stored in first computer, for example is application program and driver; And, the operating environment of first computer is sent to second computer, perhaps, first computer obtains the operating environment of second computer.
The present invention further discloses a kind of USB bridge joint moving apparatus, comprises: first USB connector; Second USB connector; The one USB controller is coupled to first USB connector, is embedded with first flash memory, its non-volatile storage first firmware program, and to operate a USB controller, described first firmware program is the CD drive program; The 2nd USB controller, be coupled to a USB controller and second USB connector, be embedded with second flash memory, its non-volatile storage second firmware program, to operate the 2nd USB controller, described second firmware program is the bridge-set program, the data of transmission computer operating environment, and described first firmware program is for the automatic install driver of this second firmware program and automatically perform the application program that data transmit; Wherein, USB bridge joint moving apparatus can couple first computer and second computer respectively via first USB connector and second USB connector, make second computer to operate USB bridge joint moving apparatus according to automatically performing driver and the application program that image file is positioned in first computer automatically, preferably, first firmware program is identical with second firmware program; And when application program successfully be installed on second computer after, application program can be analyzed the operating environment of second computer; And when in the stage of initialization USB bridge joint moving apparatus, USB bridge joint moving apparatus can be repaid second computer, it is the CD drive of USB high capacity storage class, preferably, the second embedded flash memory stores catalogue listing (table ofcontent, TOC) data comprise the kind of discs and the start address of track, make USB bridge joint moving apparatus directly to give second computer with the TOC data return in second flash memory.
The present invention also discloses a kind of operating environment migratory system, comprises: first computer; Second computer; And USB bridge joint migration cable with first USB connector and second USB connector, it comprises: a USB controller that is coupled to first USB connector, be embedded with first flash memory, its non-volatile storage first firmware program, to operate a USB controller, described first firmware program is the CD drive program; And the 2nd USB controller that is coupled to a USB controller and second USB connector, be embedded with second flash memory, its non-volatile storage second firmware program, to operate the 2nd USB controller, described second firmware program is the bridge-set program, the data of transmission computer operating environment, described first firmware program is for the automatic install driver of this second firmware program and automatically perform the application program that data transmit; Wherein, first USB connector and second USB connector couple first computer and second computer respectively, second computer can be positioned at driver and application program in first computer via USB bridge joint moving apparatus automatically according to automatically performing image file, make the computer of winning can obtain the operating environment of second computer via USB bridge joint moving apparatus, preferably comprise the address list of the application program of having installed, Email and in the browser I like data.
The present invention also discloses a kind of computer-readable storage medium, and it records the computer executable program, and computer-readable storage medium comprises: whether regular inquiry unit connects far-end computer in order to regular inquiry USB bridge joint migration cable; Conveyer, transmit data to far-end computer according to automatically performing image file by USB bridge joint migration cable in order to determine that when regular inquiry unit USB bridge joint migration cable has been finished when connecting far-end computer, make computer install driver and application program; Moving apparatus is given far-end computer in order to allow the obtaining operating environment of far-end computer alternatively and to allow to transmit another operating environment; And pick-up unit, in order to the version of the operating system that detects far-end computer; Wherein application program can be analyzed the operating environment of far-end computer, makes to move the operating environment that cable can be obtained far-end computer by the USB bridge joint.
The present invention discloses a kind of computer operating environment moving method again, comprises: the manufacturer's number and the identification symbol that judge whether to discern the USB device; When described computer can't be discerned a manufacturer's number of USB device and an identification symbol, represent that it is USB bridge joint moving apparatus that this computer can't be discerned this USB Setup Controller, the function of declaration USB device is a CD drive; Automatically install according to this function and to carry out the driver that is stored in the far-end computer and application program to the local terminal computer; Analyze the operating environment of local terminal computer; And utilize specially designed scsi command to migrate in the far-end computer via the pipeline of this function operating environment with the local terminal computer.
For further specifying above-mentioned purpose of the present invention, design feature and effect, the present invention is described in detail below with reference to accompanying drawing.
Description of drawings
Fig. 1 is the synoptic diagram that shows the USB bridge joint migration cable of one specific embodiment according to the present invention;
Fig. 2 is the computer operating environment moving method process flow diagram according to a specific embodiment of the present invention;
Fig. 3 is the computer operating environment moving method process flow diagram according to a specific embodiment of the present invention; And
Fig. 4 is the master routine operation workflow figure that is relevant to bridge joint migration cable of the present invention.
Embodiment
Fig. 1 shows the USB bridge joint migration cable of one specific embodiment according to the present invention, USB bridge joint migration cable 100 is in order to connect two PC (not shown), USB bridge joint migration cable 100 of the present invention comprises USB bridge joint moving apparatus 110, USB connects cable 102, first USB connector 104 and second USB connector 106, preferably, first USB connector 104 and second USB connector 106 are all the A type plug (USB A-type plug connector) of USB, A type slot (USB A-type receptacle connector) in order to the USB that connects the PC end, USB bridge joint moving apparatus 110 comprises a USB Setup Controller 120 and is coupled to the 2nd USB Setup Controller 140 by bus 130, preferably, the one USB Setup Controller 120 and the 2nd USB Setup Controller 140 are essentially identical chip on the hardware structure, the one USB Setup Controller 120 comprises medium access control circuit 122, embedded flash memory 124 and USB physical layer circuit 126, and the 2nd USB Setup Controller 140 comprises medium access control circuit 142, embedded flash memory 144 and USB physical layer circuit 146, embedded flash memory 124 (or 144) is in the wafer factory foundry manufacturing stage, be manufactured in together in the USB Setup Controller 120 (or the 2nd USB Setup Controller 140) in company with medium access control circuit 122 (or 142) and USB physical layer circuit 126 (or 146) by the processing of semiconductor fabrication operation, embedded flash memory 124 and 144 capacity are less, for example, be 32K (K=10 3) bit group size, the size of whole naked crystalline substance (die) can increase a little, but can obtain good control on cost.
Though the capacity of embedded flash memory 124 and 144 is little, not to be well suited for being used as the purposes that carry-on dish stores mass data.According to a specific embodiment of the present invention, suppose that first USB connector 104 is in order to connect first computer (not shown), and second 106 second computers of USB connector (not shown), user's desire is transferred to the operating environment or the part environment of second computer in first computer, operating system in first computer can be supported the running of USB bridge joint migration cable 100 of the present invention, perhaps in advance prior to the application program and the driver of collocation running have been installed in first computer, if support the running of USB bridge joint migration cable 100 of the present invention with operating system, this operating system will be the new operating system of releasing future, for example, Microsoft will be in new operating system " Longhorn " the windows workspace system that the next generation releases, with USB bridge joint migration cable 100 collocation runnings of the present invention, to solve the puzzlement of loaded down with trivial details setting of user and installation.
In this specific embodiment, before USB bridge joint of the present invention migration cable 100 dispatches from the factory, prior to the embedded flash memory 124 in a USB Setup Controller 120 and the 2nd USB Setup Controller 140 and the firmware program of the corresponding running of embedded flash memory 144 respectively non-volatile formulas ground storages.At first, first computer (not shown) is connected in first USB connector 104, the one USB Setup Controller 120 can receive the PWR of PC end USB slot and the bus power source (bus power) that two signal wires of GND are supplied at the beginning, so a USB Setup Controller 120 is loaded into the firmware program in the embedded flash memory 124 in the random access memory (not shown) in the medium access control circuit 122, make the processor in itself and the medium access control circuit 122 (not shown, for example be 8051 processor) Collaboration, and send replacement (reset) by the PC end and order and set up link; In this specific embodiment, as previous hypothesis, first computer can be supported the running of USB bridge joint migration cable 100 of the present invention, corresponding application program or follow-on operating system for example have been installed, the one USB Setup Controller 120 its manufacturer's number of repayment (vendor ID, be called for short VID) and identification symbol (product ID, be called for short PID) to behind first computer, just can operate USB bridge joint migration cable 100 smoothly, and the running of the difficulty that need overcome between the 2nd USB Setup Controller 140 and second computer.
The 2nd USB Setup Controller 140 is being set up the link stage, its configuration can be repaid to second computer, preferably, the embedded flash memory 144 stored firmware programs of the 2nd USB Setup Controller 140 are told second its number of logic cells of computer (logic unit number, be called for short LUN) be 1, and be the USB device of multi-functional (multi-functions), first kind of function is CD drive, second kind of function side is USB bridge joint migration cable 100; It is the CD drive of high capacity storage device classification (mass storage class) to 140 repayment of the 2nd USB Setup Controller to second computer, make second computer that it is considered as discs, but in fact storage space can be in first computer, for example, in hard disk or the random access memory, perhaps, can also be by the file of appointment, for example be binary bit file (binary datafile), for example can be img file or dat file, by application program this specified file running of arranging in pairs or groups is the discs data, access command can be by the firmware in the 2nd USB Setup Controller 140, pass to the firmware of a USB Setup Controller 120, application program or the operating system transferred at last in aforesaid first computer are carried out decipher, preferably, application program or operating system in first computer provide one section procedure code, carry out the application program and the driver of the corresponding USB bridge joint migration cable 100 of running for second computer, also store the discs that discs that second computer see first computer can discern and automatically perform file, for example, file as file autorun.inf by name, this discs automatically performs file in order to carry out the procedure code of appointment, causing second kind of function of second computer running is USB bridge joint migration cable, with the firmware program Collaboration of the stored USB bridge joint migration cable 100 of the embedded flash memory 144 of the 2nd USB Setup Controller 140.
Aforesaid description is for understanding the running of this embodiment, further inquire into as follows: whether USB bridge joint migration cable 100 of the present invention has directivity, and whether stored firmware program can be identical in the flash memory 124 and 144 of USB Setup Controller 120 and the 2nd a USB Setup Controller 140, with the continuous batch production of the whole USB bridge joint migration of facility cable 100 production lines and user's ease of use; Further, the firmware program that both are described can be identical, and make USB bridge joint migration cable 100 not have user tropism, applied environment based on above embodiment, behind first computer of first USB connector, 104 connections, the one USB Setup Controller 120 can repayment move the VID and the PID of cable 100 for first relevant USB bridge joint of computer, and repayment LUN is 1 and multi-functional, because first computer has the application program of USB bridge joint migration cable 100 or can support the new operating system that the USB bridge joint moves cable 100, therefore can discern its VID and PID, with running USB bridge joint migration cable 100, and with behind second USB connector, 106 connections the 2nd USB Setup Controller 140, same firmware program can be repaid the VID to second the relevant USB bridge joint migration of computer cable 100, PID, LUN is 1 and multi-functional, because second computer must not recognize the VID and the PID of USB bridge joint migration cable 100, just the narrator of embodiment institute as described above, preferably utilize multi-functional, for second computer, USB bridge joint migration cable 100 is the disc drives apparatus, with driver and the application program in first computer of automatic installation execution, make second computer normally operate USB bridge joint migration cable 100, preferably, this application program then can be analyzed second operating environment in the computer, comprise the types of applications program of being installed, " I like (my favorite) " in the browser, the address list of Email, and there is the old Email in second computer etc. in all, and with this environmental transport and transfer (migrate) to first computer, perhaps can allow the user freely to select migration partly in operating environment to the first computer.
The personage who knows present technique is according to aforementioned announcement, do not break away from spiritual category of the present invention when making various possible variations, for example, aforementioned the 2nd USB Setup Controller 140 utilizes multi-functional driver and the application program that makes that second computer installed automatically and carried out in first computer, also 100 repayment of USB bridge joint migration cable can be simple function, CD drive for example, after waiting to finish the program of automatically performing, send the order of resetting by the 2nd USB Setup Controller 140 again, make it carry out bus enumeration (busenumeration) again, make second computer can discern its VID and PID and operate USB bridge joint migration cable 100.
Fig. 2 shows the computer operating environment moving method process flow diagram according to a specific embodiment of the present invention, desire is transferred to the operating environment of local terminal (local) computer in far-end (remote) computer in the method process flow diagram, far-end computer in the method process flow diagram and local terminal computer can be respectively with reference to first computer and second computers in the specific embodiment of figure 1, that is have the application program or the operating system of supporting this process operation in the far-end computer, it is fit to operate on aforesaid each USB Setup Controller, begin from step 200, enter step 210, after beginning to supply the usb bus direct supply, just being written into firmware program comes into operation, when the computer that is connected can be discerned the VID of USB Setup Controller and PID, advance to step 215, successfully with USB Setup Controller running USB bridge joint moving apparatus, otherwise advance to step 220, representing this computer and can't discerning this USB Setup Controller is USB bridge joint moving apparatus; In step 220, declare that first function is a CD drive, and being USB bridge joint moving apparatus, second function gives the computer that is connected; In step 230, the local terminal computer is installed driver and the application program of carrying out in the far-end computer automatically according to first function, to operate second function is USB bridge joint moving apparatus, for example, the local terminal computer is discs according to first function with hard disk areas in the far-end computer or memory mapped, perhaps, can be by the file of appointment, for example be binary bit file (binary data file), for example can be img file or dat file, by application program this specified file running of arranging in pairs or groups is the discs data, automatically perform file and store in this discs, for example the file of file autorun.inf by name is carried out suitable procedure code with automatic installation, and causing the local terminal computer to operate this USB Setup Controller is USB bridge joint moving apparatus; In step 240, analyze the operating environment of local terminal computer, for example, the content of " I like " of those application software, browser and/or address list etc. have been installed; In step 250,, the operating environment of local terminal computer is migrated in the far-end computer by USB bridge joint moving apparatus and analysis result; Finish the method flow process in step 260 at last.
Further specify first function described in Fig. 2 and second function, in USB, be declared as multi-functional a plurality of end point (EndPoint) collocation that needs on the hardware, for example, each medium access controller among Fig. 1 has the usefulness of ping-pong buffers device with the expedited data buffering, for example, the ping-pong buffers device comprises the impact damper of a pair of 512 bit group sizes, after first 512 bit group impact damper fills up data, with its down single order (stage) send data, in this simultaneously, can utilize another 512 bit group impact damper to receive data and cushion with expedited data; Use in declaration multi-functionally should to have two pairs of ping-pong buffers devices on the hardware for comprising first function and second function, i.e. two different end point are with the running of two kinds of difference in functionalitys of correspondence respectively.
Fig. 3 shows the computer operating environment moving method process flow diagram according to another specific embodiment of the present invention, desire migrates to the operating environment of local terminal computer in the far-end computer in the method process flow diagram, in this specific embodiment, preferably utilize single USB function, corresponding to the migration of the USB bridge joint in the specific embodiment of figure 1 cable 100, USB bridge joint migration cable 100 preferably is a symmetry, that is first Setup Controller 120 in the USB bridge joint migration cable 100 and the hardware configuration and the firmware program of second Setup Controller 140 are identical, it should be noted that, know the personage of present technique, if USB bridge joint migration cable of the present invention 100 changes are designed to have directivity, perhaps utilize external switch to determine its migratory direction etc., neither escape spiritual category of the present invention.This specific embodiment begins from step 300, it should be noted that before 100 runnings of USB bridge joint migration cable, at least one has installed relevant driver and application program in the computer that both sides connect, perhaps provide by operating system is built-in, enter step 310, attempt the VID and the PID of identification USB bridge joint migration cable 100 earlier; In step 320, to connection computer be declared as CD drive; In step 330, the local terminal computer fail to see under the situation of the VID of USB bridge joint migration cable 100 and PID, the CD drive of declaring by step 320, utilization automatically performs and allows far-end computer be local terminal computer install driver and application program, for example, because the CD drive declared of step 320 can allow the local terminal computer far-end computer of seeing over be a CD drive, the USB device of CD CD drive classification is supported and is automatically performed, autorun.inf for example, therefore the local terminal computer just can carry out automatic install driver and application program according to the description that automatically performs file (for example autorun.inf) of the CD drive that far-end computer shone upon, installation driver and application program make the local terminal computer also can support the next running of USB bridge joint migration cable 100 fully, on the other hand, far-end computer in just know at the beginning the VID and the PID of USB bridge joint migration cable 100, therefore, though USB bridge joint migration cable 100 is declared as CD drive to far-end computer, but far-end computer can suppress to automatically perform the automatic installation of image file, perhaps allow the image file that automatically performs of more recent version to upgrade than legacy version, and the situation that can not make a mistake, again on the one hand, if the two ends computer is under the support that is all new generation operating system, then both sides can be before and after the time according to the operating system installation, the running direction of decision USB bridge joint migration cable 100, generally speaking, predeterminable be will be older the operating system environmental transport and transfer to new operating system; In step 340, analyze the operating environment of local terminal computer, for example, there is old Email in the local terminal computer etc. including but not limited to, " I like " in the types of applications program of being installed, the browser, the address list of Email and all; In step 350, utilize the operating environment of special order with the local terminal computer, it for example is specially designed scsi command, migrate in the far-end computer by USB bridge joint migration cable 100, perhaps, operation that can corresponding user is selected, and optionally with the part of the operating environment of local terminal computer, migrates in the far-end computer by USB bridge joint migration cable 100; Then in step 360 method ends flow process.
Further specify the embodiment of Fig. 3, illustrate and utilize simple function and special order also can implement the present invention, therefore also can reduce complexity and the cost that hardware is implemented, corresponding to above stated specification, the impact damper that each medium access controller among Fig. 1 only needs a pair of 512 bit group sizes to be implementing the ping-pong buffers device, implementing this simple function, and do not need multi-functional as among Fig. 2, need implement independently hardware respectively, implement difference in functionality with correspondence; For example, far-end computer just can be known to such an extent that the USB bridge joint moves cable 100 by identification VID and PID at the beginning, for example, can inquire (polling) USB bridge joint migration cable 100 by far-end computer termly, and before the local terminal computer is still unripe, reply not preparation (Not_Ready) by USB bridge joint migration cable 100, assign when reading the discs order by ATAPI order up to the local terminal computer, far-end computer is just known by inquiry regularly, and the application program in the collocation far-end computer and the binary bit file of appointment, the simulated light disc replies to the local terminal computer with data.Virtual program sign indicating number (pseudo code) embodiment below further is provided explanation for reference, and this section procedure code is preferably and specifically is implemented in the follow-on computer operating system, for example in the Longhorn windows workspace system of the next generation of Microsoft with release:
main()
{
// be plugged in when USB bridge joint migration cable on the USB port of computer of Longhorn operating system
While (Connection ()==0) // check whether other end computer also connects
Sleep (1000); // postpone about one second
} // be connected in USB bridge joint migration cable until other end computer
SendAutorunImage (); // send autorun image to the other end
{ whether // other end also is Longhorn to if (DoorClose ())
If (SourceSystem ()) // confirm whether be the source end
SendMigrationData (); // operating environment is migrated to destination (other end)
Else GetMigrationData (); // acquisition operating environment
Else // other end is XP/2000/ME
GetMigrationData (); // obtain operating environment from the other end
}
int?Connection(void)
{
SCSI_Connection() //Issue?a?SCSI?command?via?USB?storage?class.
//Return?0?if?the?other?side?is?not?connected?or?does?not?issue?read?autorun?imagecommand.
//Return?1?if?the?other?side?is?connected?and?issue?read?autorun?image?command.
}
void?SendAutorunImage(void)
{
SCSI_BulkOutAutorunImage()//Issue?a?SCSI?command?via?USB?storage?class.
//Send?autorun?image?to?the?other?side?via?bulk?out?pipe.
//Some?autorun?information?may?be?stored?in?firmware?code?flash.
}
void?SendMigrationData(void)
{
SCSI_BulkOutMigrationData()//Issue?a?SCSI?command?via?USB?storage?class
//Send?migration?data?to?the?other?side?via?bulk?out
pipe
}void?GetMigrationData(void)
{
SCSI_BulkInMigrationData()//Issue?a?SCSI?command?via?USB?storage?class
//Get?migration?data?from?the?other?side?via?bulk?inpipe
}
int?DoorClose(void)
{
SCSI_DoorClose()//Issue?a?SCSI?command?via?USB?storage?to?detect?CD-ROM
//Return?0?if?CD-ROM?door?opens(CD?medium?is?not?OK)
//Return?1?if?CD-ROM?door?close(CD?medium?is?OK)
}
Above virtual program sign indicating number embodiment implements with reference to the process concept of figure 3, desire migrates to far-end computer with the operating environment of local terminal computer, concentrate on the far-end computer and will narrate emphasis, its master routine operation workflow that is relevant to bridge joint migration cable 100 as shown in Figure 4, begin in step 400, suppose to be equipped with on the far-end computer Longhorn operating system (being called the Longhorn computer) in this, preferably comprise above virtual program sign indicating number in this Longhorn operating system, in the local terminal computer, be preferably the operating system that XP/2000/ME is installed, but refer step 310, recognize the VID and the PID of bridge joint migration cable of the present invention in the Longhorn computer, the row bus of going forward side by side is enumerated (bus enumeration), and wake this section master routine main () up, just send special scsi command by subroutine Connection () via USB storage class pipeline every an about second, whether the other end of inquiry (polling) bridge joint migration of the present invention cable connects, on the other hand, two controllers in the bridge joint of the present invention migration cable then do not connect as yet or do not send as yet to read at the other end and will be worth 0 under the situation that automatically performs image file and return (return), otherwise will be worth 1 returns, to detect whether be connected in the local terminal computer, it is as step 410.
Confirm at the Longhorn computer that bridge joint of the present invention migration cable also is connected on the other end computer and finish bus enumeration, and the local terminal computer also sends ATAPI and reads the order that automatically performs image file, the Longhorn computer will be stored in the binary bit file of appointment in the hard disk by subroutine SendAutorunImage (), for example image file or data file etc., by a large amount of output channels (bulk out pipe), export other end computer to, to read the order that automatically performs image file in response to this ATAPI, it is as step 420; Wherein, the part data volume that automatically performs image file can be stored in the interior flash memory of bridge joint migration cable non-volatilely, preferably, be stored in the embedded flash memory in the interior USB controller of bridge joint migration cable non-volatilely, for example, can this CD drive as the high capacity storage device will be replied by the USB controller, and then the TOC information storage such as (table of content) that can inquire of host side (host) in bridge joint migration cable in the USB controller, to quicken the response speed of bridge joint migration cable, wherein the TOC data comprise the kind of discs and the information such as start address of track (track).
The Longhorn computer can judge whether other end computer also is the Longhorn operating system by the value that DoorClose () passed back, because have only the computer of the application program that operating system of new generation or corresponding running are installed, owing to itself store the image file that automatically performs of appointment, the state that just can allow to reply its DoorClose () is made as 1, representative has discs inside, assigns for the other end and reads the order that automatically performs image file.
If two ends all are the Longhorn operating systems, SourceSystem () can allow the user to select to be used as source or destination by application program, or the migration pattern and the transferring content of selection operating environment, it is as step 420, perhaps, preset the migratory direction of operating environment by the version or the installed date of operating system; GetMigrationData () asks for operating environment to the other end, and it is shown in step 440; And SendMigrationData () allows the Longhorn computer (or to claim migration data, migrationdata) send that it is shown in step 450, at last in step 460 method ends flow process with operating environment.The latter end of master routine in the above Longhorn computer operating system is being judged by DoorClose () under the situation that the other end is old operating system, just can directly obtain its operating environment.
Above description is for the present invention better understanding to be arranged for convenient those skilled in the art scholar, but not desire restriction the present invention, for example, judge DoorClose () and SendAutorunImage () (transmission automatically performs image file), can be changed to Inspection Operation System or application version, allow then to remove to upgrade the older image file that automatically performs by the newer image file that automatically performs, many may the variation must belong to invention category of the present invention.
With respect to the master routine that is relevant to bridge joint migration cable of the present invention running in the above Longhorn operating system, the specific embodiment of the firmware program that the interior correspondence of bridge joint migration cable of below also giving an example operates, understand enforcement running of the present invention with facility, but do not desire to limit the present invention with this:
int?DoorClsA,DoorClsB;//Reset?to?0?when?bus?reset?or?hardware?reset?occurs
int?EnumA,EnumB; //Reset?to?0?when?bus?reset?or?hardware?reset?occurs
//Set?to?1?when?enumeration?completes
int?ReadCmdA,ReadCmdB; //?Reset?to?0?when?bus?reset?or?hardware?reset?occurs
//?Set?to?1?when?reading?a?CD-ROM?image
Int ConnectionA (the void) // response SCSI_Connection () that Longhorn sent
{
if(DoorClsA==0)
DoorClsB=1;
If (EnumB==0) return 0; // check whether the other end finishes enumeration
If (ReadCmdB==0) return 0; // check whether the other end sends ATAPI and read and automatically perform the image file order
else?return?1;
}
Int ConnectionB (the void) // response SCSI_Connection () that Longhorn sent
{
if(DoorClsB==0)
DoorClsA=1;
If (EnumA==0) return 0; // check whether the other end finishes enumeration
If (ReadCmdA==0) return 0; // check whether the other end sends ATAPI and read and automatically perform the image file order
else?return?1;
}
Int DoorCloseA (the void) // response SCSI_DoorClose () that Longhorn sent
{
return?DoorClsA;
}
Int DoorCloseB (the void) // response SCSI_DoorClose () that Longhorn sent
{
return?DoorClsB;
}
More than the special scsi command that sent of explanation Longhorn computer is suitably responded running by firmware, for example, the SCSI_Connection () that is sent by the Longhorn computer orders, preferably check by firmware whether the other end is finished bus enumeration and assigned ATAPI and read and automatically perform the image file order, just respond and finish connection, allow the Longhorn computer to jump out regular inquiry, automatically perform image file and send.
Below also automatically perform image file embodiment in the Longhorn for example, understand enforcement running of the present invention with facility, but do not desire to limit the present invention with this:
AutorunImage
main()
{
if(OSVersion()==LONGHORN) //Only?executed?on?XP/2000/MEexit(0);
else?SendMigrationData(); //Send?migration?data?to?the?other?side
}
Indulge the above, the present invention discloses a kind of computer operating environment moving method, comprises the following step: the manufacturer's number and the identification symbol that judge whether to discern the USB device; First function of declaring a USB device is a CD drive; Second function of declaring this USB device is a USB bridge joint moving apparatus; Automatically install according to first function and to carry out the driver that is arranged in far-end computer and application program to the local terminal computer; Analyze the operating environment of local terminal computer; And migrate in the far-end computer by the operating environment of second function with the local terminal computer; Wherein operating environment comprise the address list of a plurality of application programs of having installed, Email in the local terminal computer, in the browser I like data and many envelope Emails.
The present invention also discloses a kind of computer operating environment moving method, comprises the following step: inquire regularly by first computer whether USB bridge joint moving apparatus connects second computer; Automatically installing and carry out in program to the second computer that is stored in first computer, for example is application program and driver; And, the operating environment of first computer is sent to second computer, perhaps, first computer obtains the operating environment of second computer.
The present invention further discloses a kind of USB bridge joint moving apparatus, comprises: first USB connector; Second USB connector; The one USB controller is coupled to first USB connector, is embedded with first flash memory, and its non-volatile storage first firmware program is to operate a USB controller; The 2nd USB controller is coupled to a USB controller and second USB connector, is embedded with second flash memory, and its non-volatile storage second firmware program is to operate the 2nd USB controller; Wherein, USB bridge joint moving apparatus can couple first computer and second computer respectively via first USB connector and second USB connector, make second computer to operate USB bridge joint moving apparatus according to automatically performing driver and the application program that image file is positioned in first computer automatically, preferably, first firmware program is identical with second firmware program; And after application program successfully was installed on second computer, application program can be analyzed the operating environment of second computer; And when in the stage of initialization USB bridge joint moving apparatus, USB bridge joint moving apparatus can be repaid second computer, and it is the CD drive of USB high capacity storage class, preferably, the second embedded flash memory stores the TOC data, comprise the kind of discs and the start address of track, make USB bridge joint moving apparatus directly to give second computer the TOC data return in second flash memory.
The present invention also discloses a kind of operating environment migratory system, comprises: first computer; Second computer; And USB bridge joint migration cable with first USB connector and second USB connector, it comprises: a USB controller that is coupled to first USB connector, be embedded with first flash memory, its non-volatile storage first firmware program is to operate a USB controller; And the 2nd USB controller that is coupled to a USB controller and second USB connector, being embedded with second flash memory, its non-volatile storage second firmware program is to operate the 2nd USB controller; Wherein, first USB connector and second USB connector couple first computer and second computer respectively, second computer can be positioned at driver and application program in first computer via USB bridge joint moving apparatus automatically according to automatically performing image file, make the computer of winning can obtain the operating environment of second computer via USB bridge joint moving apparatus, preferably comprise the address list of the application program of having installed, Email and in the browser I like data.
The present invention discloses a kind of computer-readable storage medium again, and it records the computer executable program, and computer-readable storage medium comprises: whether regular inquiry unit connects far-end computer in order to regular inquiry USB bridge joint migration cable; Conveyer, transmit data to far-end computer according to automatically performing image file by USB bridge joint migration cable in order to determine that when regular inquiry unit USB bridge joint migration cable has been finished when connecting far-end computer, make computer install driver and application program; Moving apparatus is given far-end computer in order to allow the obtaining operating environment of far-end computer alternatively and to allow to transmit another operating environment; And pick-up unit, in order to the version of the operating system that detects far-end computer; Wherein application program can be analyzed the operating environment of far-end computer, makes to move the operating environment that cable can be obtained far-end computer by the USB bridge joint.
The present invention also discloses a kind of computer operating environment moving method, comprises: the manufacturer's number and the identification symbol that judge whether to discern the USB device; The function of declaration USB device is a CD drive; Automatically install according to this function and to carry out the driver that is stored in the far-end computer and application program to the local terminal computer; Analyze the operating environment of local terminal computer; And utilize specially designed scsi command to migrate in the far-end computer via the pipeline of this function operating environment with the local terminal computer.
Though the present invention describes with reference to current specific embodiment, but those of ordinary skill in the art will be appreciated that, above embodiment is used for illustrating the present invention, under the situation that does not break away from spirit of the present invention, also can make the variation or the replacement of various equivalences, therefore, as long as in connotation scope of the present invention in the scope to the variation of the foregoing description, claims that modification all will drop on the application.

Claims (9)

1. computer operating environment moving method is characterized in that comprising the following step:
Judge whether to discern the manufacturer's number and an identification symbol of a USB device;
When described computer can't be discerned a manufacturer's number of USB device and an identification symbol, represent that it is USB bridge joint moving apparatus that this computer can't be discerned this USB Setup Controller, declares that one first function of this USB device is a CD drive;
One second function of declaring this USB device is a USB bridge joint moving apparatus;
A driver and application program to the local terminal computer that execution is arranged in a far-end computer is installed automatically according to this first function;
Analyze an operating environment of this local terminal computer; And
Migrate in this far-end computer by the operating environment of this second function this local terminal computer.
2. a USB bridge joint moves cable, comprises:
One first USB connector;
One first cable has one first end and one second end, and its first end is coupled to this first USB connector;
One second USB connector;
One second cable has one first end and one second end, and its first end coupling is coupled to this second USB connector; And
One USB bridge joint moving apparatus comprises:
One the one USB controller is coupled to first end of a USB cable, is embedded with one first flash memory, its non-volatile storage one first firmware program, and to operate a USB controller, described first firmware program is the CD drive program; And
One the 2nd USB controller, be coupled to second end of a USB controller and the 2nd USB cable, be embedded with one second flash memory, its non-volatile storage one second firmware program, to operate the 2nd USB controller, described second firmware program is the bridge-set program, the data of transmission computer operating environment, and described first firmware program is for the automatic install driver of this second firmware program and automatically perform the application program that data transmit;
Wherein, this USB bridge joint migration cable couples one first computer and one second computer respectively via this first USB connector and this second USB connector, makes this second computer to automatically perform a driver and the application program that image file is positioned in this first computer automatically according to one and operates this USB bridge joint migration cable.
3. operating environment migratory system is characterized in that comprising:
One first computer;
One second computer; And
One USB bridge joint migration cable has one first USB connector and one second USB connector, comprises:
One the one USB controller is coupled to this first USB connector, is embedded with one first flash memory, its non-volatile storage one first firmware program, and described first firmware program is the CD drive program, to operate a USB controller; And
One the 2nd USB controller, be coupled to a USB controller and this second USB connector, be embedded with one second flash memory, its non-volatile storage one second firmware program, to operate the 2nd USB controller, described second firmware program is the bridge-set program, the data of transmission computer operating environment, and described first firmware program is for the automatic install driver of this second firmware program and automatically perform the application program that data transmit;
Wherein, this first USB connector and this second USB connector couple this first computer and this second computer respectively, this second computer can automatically perform image file according to one and be positioned at a driver and an application program in this first computer automatically via this USB bridge joint migration cable, makes this first computer can obtain an operating environment of this second computer via this USB bridge joint migration cable.
4. computer operating environment moving method is characterized in that comprising:
Judge whether to discern the manufacturer's number and an identification symbol of a USB device;
When described computer can't be discerned a manufacturer's number of USB device and an identification symbol, represent that it is USB bridge joint moving apparatus that this computer can't be discerned this USB Setup Controller, a function of declaring this USB device is a CD drive;
Automatically install according to this function and to carry out in the driver and application program to a local terminal computer that is stored in the far-end computer;
Analyze an operating environment of this local terminal computer; And
Utilize a special order to migrate in this far-end computer via a pipeline of this function operating environment with this local terminal computer.
5. computer operating environment moving method as claimed in claim 4 is characterized in that this operating environment comprises a plurality of application programs of having installed in this local terminal computer.
6. computer operating environment moving method as claimed in claim 4 is characterized in that this special order is a specially designed scsi command.
7. computer operating environment moving method as claimed in claim 4 is characterized in that this operating environment comprises the address list of an Email.
8. computer operating environment moving method as claimed in claim 4 is characterized in that this operating environment comprises the many envelopes Email in this local terminal computer.
9. computer operating environment moving method as claimed in claim 4, it is characterized in that this operating environment comprise in the browser that is present in this local terminal computer I like data.
CNB2004100346345A 2004-04-13 2004-04-13 Computer operation environment shifting system, relative device, method and computer readable access medium Expired - Fee Related CN100440146C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100346345A CN100440146C (en) 2004-04-13 2004-04-13 Computer operation environment shifting system, relative device, method and computer readable access medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100346345A CN100440146C (en) 2004-04-13 2004-04-13 Computer operation environment shifting system, relative device, method and computer readable access medium

Publications (2)

Publication Number Publication Date
CN1684037A CN1684037A (en) 2005-10-19
CN100440146C true CN100440146C (en) 2008-12-03

Family

ID=35263396

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100346345A Expired - Fee Related CN100440146C (en) 2004-04-13 2004-04-13 Computer operation environment shifting system, relative device, method and computer readable access medium

Country Status (1)

Country Link
CN (1) CN100440146C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683717B (en) * 2018-04-26 2021-11-09 宝牧科技(天津)有限公司 Data dump downloading method without occupying local disk space

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1438528A (en) * 1996-10-29 2003-08-27 日本电气株式会社 Active-matrix liquid-crystal displaying screen

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1438528A (en) * 1996-10-29 2003-08-27 日本电气株式会社 Active-matrix liquid-crystal displaying screen

Also Published As

Publication number Publication date
CN1684037A (en) 2005-10-19

Similar Documents

Publication Publication Date Title
JP5140100B2 (en) Multifunctional semiconductor memory device
US20050223145A1 (en) System, apparatus and method for migrating computer environment and associated computer readable recording medium
CN100385426C (en) Architecture for universal serial bus-based PC flash disk
US7131595B2 (en) Automatic drive icon assignment by media type in single slot USB card readers
EP1244973B1 (en) System and method for providing hot swap capability using existing circuits and drivers with minimal changes
US6965956B1 (en) Disk array controller and system with automated detection and control of both ATA and SCSI disk drives
US7970974B2 (en) Method and system for adding or removing a logical unit of a USB mass storage device
US8037243B1 (en) Installing data storage system software on disk drive systems
US7613862B2 (en) Embedded driver for bus-connected device
US5948076A (en) Method and system for changing peripheral component interconnect configuration registers
US20060224821A1 (en) System for parallel updating flash memory and method for the same
CN1650276B (en) ATA/SATA combined controller
CN109426613A (en) The method and its computer system of tune-up data are retrieved in UEFI
CN100440146C (en) Computer operation environment shifting system, relative device, method and computer readable access medium
CN110007976A (en) Raid holding firmware layer initial method based on domestic processor platform
TW446884B (en) Automatic configuration of primary and secondary peripheral devices for a computer
CN103853688A (en) Device control apparatus, host device, and control method of the host device
US8214569B2 (en) Method for reading and writing non-standard register of serial advanced technology attachment (SATA) device
US11467780B1 (en) System and method for automatic identification and bios configuration of drives in a backplane
US6892267B2 (en) Method for message transmission exploiting unused device addresses
TWI749658B (en) Usb hub device having functionality of self firmware updating and host system having the same
CN100409165C (en) Device and method for providing intelligent card interface by large scale storage equipment
CN113971146B (en) USB hub device with automatic firmware updating function and host system with USB hub device
CN201804319U (en) Embedded type chip writing system
EP1077400A1 (en) Transparent status interface

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081203