Summary of the invention
Therefore, the purpose of this invention is to provide and a kind ofly can have the USB main controller function in one, but do not have the electronic installation of a man-machine interface and another has a man-machine interface, but do not have the data stream switching method between the electronic installation of USB main controller function.
Another object of the present invention provides a kind ofly has the USB main controller function in one, does not but have the electronic installation of a man-machine interface and another has a man-machine interface, but does not have the data stream exchange system between the electronic installation of USB main controller function.
One aspect of the present invention provides a kind of system that two electronic installations carry out the information flow exchange under the USB framework, be between one first end and one second end, transmit a particular data by the USB interface, this system comprises a RS-232 data line, a usb data transmission line, one first electronic installation, and a second electronic device.
First electronic installation is positioned at this first end, comprise that a man-machine interface, is electrically connected a RS-232 transmission assembly of an end of this RS-232 data line, reach a USB assembly with USB periphery controller and one first USB port, wherein, this first USB port is electrically connected an end of this usb data transmission line.Second electronic device is positioned at this second end, comprise that one is electrically connected the 2nd RS-232 transmission assembly of the other end of this RS-232 data line, and the 2nd a USB assembly with usb host controller and one second USB port, wherein, this second USB port is electrically connected the other end of this usb data transmission line, by this, when the user provides file transfer instruction via this man-machine interface, and produce output/input request, after then being sent to the 2nd RS-232 transmission assembly by a RS-232 transmission assembly, this usb host controller is promptly carried out a corresponding handling procedure to this particular data via the usb data transmission line.
The present invention provides a kind of method that two electronic installations carry out the information flow exchange under the USB framework on the other hand, be between one first end and one second end, transmit a particular data by a USB interface, wherein, this first end comprises that one has USB periphery controller, and first electronic installation of a man-machine interface, this second end comprises that one has the second electronic device of usb host controller, the method includes the steps of: A) whether this first electronic installation interpretation a file transfer instruction that provides via man-machine interface is provided, if have, enter next step, if do not have, then after a schedule time, carry out interpretation once more; B) output/input that produces relative this document transfer instruction is asked, and is sent to this second electronic device by a RS-232 interface; And C) this second electronic device, sends one and responds instruction, this particular data is carried out a corresponding handling procedure by this USB interface according to this output/input request.
In addition, the present invention also provides a kind of system that two electronic installations carry out the information flow exchange under the USB framework, is between one first end and one second end, transmits a particular data by the USB interface, this system comprises a usb data transmission line, one first electronic installation, and a second electronic device.
One first electronic installation is positioned at this first end, has a man-machine interface, and a USB assembly that comprises USB periphery controller and one first USB port, and wherein, this first USB port is electrically connected an end of this usb data transmission line.Second electronic device is positioned at this second end, has one the 2nd USB assembly, and the 2nd USB assembly comprises a usb host controller and one second USB port, and wherein, this second USB port is electrically connected the other end of this usb data transmission line.The usb host controller of this second electronic device periodically sends a look-at-me to this first electronic installation, in order to inquire whether desire sends output/input request, and in file transfer instruction is provided via this first human-computer interface of electronic devices, and produce output/input request, via the usb data transmission line, to this particular data, carry out a corresponding handling procedure.
The present invention also provides a kind of method that two electronic installations carry out the information flow exchange under the USB framework, be between one first end and one second end, transmit a particular data by the USB interface, this first end comprises that one has USB periphery controller, and first electronic installation of a man-machine interface, comprise that with this second end one has the second electronic device of usb host controller, the method includes the steps of: A) whether desire sends a look-at-me in this second electronic device interpretation, if, send this look-at-me to this first electronic installation, if not, after a schedule time, whether desire sends a look-at-me in interpretation once more.B) whether this first electronic installation interpretation receives this look-at-me, if having, then enters next step, if do not have, then after a schedule time, whether interpretation receives this look-at-me once more.C) whether interpretation a file transfer instruction that is provided by this man-machine interface is provided, if having, this first electronic installation produces output/input request, and is sent to this second electronic device, as if nothing, gets back to step B).And D) this second electronic device sends one and responds instruction, this particular data is carried out a corresponding handling procedure according to this output/input request.
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.
Embodiment
Consult Fig. 1,2, the present invention's two electronic installations under the USB framework carry out first preferred embodiment of the system of information flow exchange, be between one first end and one second end, transmit output/input request by a RS-232 interface, as the reading or writing of file, and utilize the USB interface that one particular data is carried out this output/input request.
This system 1 comprises first electronic installation 11 that is positioned at first end, an and second electronic device 12 that is positioned at second end, utilize a RS-232 data line 13, an and usb data transmission line 14, the two ends of two transmission lines 13,14 are electrically connected this first electronic installation 11 respectively, reach second electronic device 12, reach the function of data transmission.
Wherein, in this first preferred embodiment, this first electronic installation 11 has in the USB framework, the device of driven end function, it is a PDA(Personal Digital Assistant), but also can be a mobile phone, a MP3 walkman etc., and because it is the driven end in the USB framework, so it has USB periphery controller (USBPeripheral Controller).This second electronic device 12 is to have in the USB framework for one, the portable memory of drive end function, it can be portable type hard disk, carry-on dish etc., and because it can be the drive end in the USB framework, so it has a usb host controller (USB Host Controller) or USBOTG controller (USB OTG Controller).Hereinafter, for convenience of description, this first electronic installation 11 is referred to as with personal digital assistant, second electronic device 12 is referred to as with the portable type hard disk.
This personal digital assistant 11 is positioned at first end, comprises a man-machine interface 111, one the one RS-232 transmission assembly 112, one the one USB assembly 113, a PDA processor 114, and one first storage element 115.Wherein, man-machine interface 111 has a display 116 and control panel 117, and providing user's (figure does not show) can instruct and import one by control panel 117 by the viewing window pictures of watching on the display 116, and with a specific file, in personal digital assistant 11 and 12 transmission of portable type hard disk.
PDA processor 114 is in order to coordinate man-machine interface 111, a RS-232 transmission assembly 112, a USB assembly 113, to reach the interaction of 115 of first storage elements.
The one RS-232 transmission assembly 112 is in order to this personal digital assistant 11 1 RS-232 interfaces to be provided, it is in order to be electrically connected an end of this RS-232 data line 13, with set up one with 12 of the portable type hard disks of the other end that is electrically connected this RS-232 data line 13, one comes the bridge of transmission signals with the RS-232 specification, be used to transmit the file transfer instruction that the user provides through man-machine interface 111, and an output/input that produces request.
The one USB assembly 113 has USB periphery controller 118 and one first USB port 119, it is electrically connected an end of this usb data transmission line 14 with first USB port 119, with set up one with the USB framework of 12 of the portable type hard disks of the other end that is electrically connected this usb data transmission line 14 in, one is the USB interface of driven end, with as the bridge in order to transmission data file.
First storage element 115 wherein, is able to identification portable type hard disk 12 for making personal digital assistant 11, so first storage element 115 also stores a driver with respect to portable type hard disk 12 in order to the store files data.This driver can be after carrying out, network layer (NetworkLayer) in the USB communication architecture, virtual USB assembly 113 has the function of a similar host side, and so that personal digital assistant 11 can detect this its RS-232 transmission assembly 112, and whether the device that connected of a USB assembly 113 be this portable type hard disk 12, and after determining, output/input can be asked, be sent to portable type hard disk 12 via RS-232 transmission assembly 112, and carry out by portable type hard disk 12.
Portable type hard disk 12 is positioned at second end, comprises one the 2nd RS-232 transmission assembly 121, one the 2nd USB assembly 122, a hard disk controller 123, and one second storage element 124.The 2nd RS-232 transmission assembly is electrically connected the other end of RS-232 data line, in order to receive output/input request.And after receiving this output/input request, be sent to hard disk controller 123, hard disk controller 123 is this output of interpretation/input request, and output/input is asked and via the 2nd USB assembly 122, personal digital assistant 11 carried out a corresponding handling procedure according to this.
The 2nd USB assembly 122 has usb host controller 125, and one second USB port 126.It is electrically connected the other end of these usb data transmission lines 14 with second USB port 126, with set up and the USB framework of 12 of portable type hard disks in, one is the USB interface of drive end.Wherein, this output of usb host controller 125 interpretations/input request is read a specific file for desire from personal digital assistant 11, and when being stored to this portable type hard disk 12, usb host controller 125 promptly transmits one and responds instruction, in order to requiring personal digital assistant 11 to send this specific file, and be stored to a predetermined address of second storage element 124.If this output/input request is read a specific file for desire from second storage element 124, and be stored in the personal digital assistant 11, then usb host controller is an activation hard disk controller 123, remove this specific file of reading, transmit one via the USB transmission line again and respond instruction, this specific file is write to second storage element 115 in the personal digital assistant 11.
Consult Fig. 3, through above-mentioned illustrated with regard to first preferred embodiment of the present invention after, below will be described in further detail with regard to the implementation step of first preferred embodiment of the present invention.
Step 501, at first, whether the PDA processor 114 first interpretations of personal digital assistant 11 a file transfer instruction that provides via man-machine interface 111 is provided, if have, then produce output/input request, and enter step 502, if do not have, then after a schedule time, carry out interpretation once more.Step 502, USB periphery controller 118 by a RS-232 transmission assembly 112, is sent to the 2nd RS-232 transmission assembly 121 of portable type hard disk 12 with this request via RS-232 data line 13.Whether step 503, hard disk controller 123 interpretations of portable type hard disk 12 receive this output/input request, and in sentence read result when being, enter step 504, and in sentence read result when denying, through a schedule time, carry out interpretation once more.Step 504, portable type hard disk 12, send one and respond instruction by the 2nd USB assembly 122 according to this output/input request, carry out a corresponding handling procedure to require 11 pairs of these particular datas of personal digital assistant, and get back to step 503 once more.Step 505, personal digital assistant 11 is got back to step 501 once more after this particular data being carried out this response instruction.
Wherein, when this output of usb host controller 125 interpretations/input request is read a specific file for desire from personal digital assistant 11, and when being stored to portable type hard disk 12, usb host controller 125 promptly transmits one and responds instruction, in order to requiring personal digital assistant 11 to send this specific file, and be stored to a predetermined address of second storage element 124.If this output/input request is read a specific file for desire from second storage element 124, and be stored in the personal digital assistant 11, then usb host controller is an activation hard disk controller 123, remove this specific file of reading, transmit one via the USB transmission line again and respond instruction, this specific file is write to second storage element 115 in the personal digital assistant 11.
Thus, have a man-machine interface 111 but only in the USB framework, have the personal digital assistant 11 of driven end function and does not have man-machine interface, but can be because of having usb host controller or USB
Otg controller, and can be the personal digital assistant 11 of drive end function in the USB framework, will therefore reallocate resources mutually, and can arrange in pairs or groups mutually, carry out the transmission of file.
In addition, in order to consider in the general electronic installation, the RS-232 interface is not general, so the present invention provides one second preferred embodiment in addition, in order to only to have a man-machine interface, and have a device of serving as the driven end function in the USB framework, and with one do not have a man-machine interface, but have in the USB framework, between the portable memory of drive end function, carry out the transmission of file.Wherein, what deserves to be explained is that in second preferred embodiment, the element of itself and the first preferred embodiment identical function will be referred to as with identical numbering.
Consult Fig. 4,5, the present invention's two electronic installations under the USB framework carry out second preferred embodiment of the system of information flow exchange, be in 12 of a personal digital assistant 11 and portable type hard disks, only transmit a particular data with the USB interface, wherein, the inside structure of this personal digital assistant 11 and portable type hard disk 12 and first preferred embodiment are identical, no longer given unnecessary details at this, but what deserves to be explained is, this personal digital assistant 11 and portable type hard disk 12 all do not have and have the RS-232 transmission assembly, and before the execute file transfer function, the user also needs earlier personal digital assistant 11 to be written into and to carry out a driver with respect to portable type hard disk 12, use making personal digital assistant 11 be able to identification portable type hard disk 12, and periodically detect personal digital assistant 11 and whether have and receive the look-at-me that portable type hard disk 12 is sent.
After personal digital assistant 11 and portable type hard disk 12 utilize USB transmission line 13 to link, the usb host controller 125 of portable type hard disk 12 promptly periodically sends a look-at-me to personal digital assistant 11 by USB transmission line 13, in order to inquire whether desire sends output/input request.Receive this look-at-me and work as personal digital assistant 11, whether PDA processor 114 promptly can detect to have and receive the user and assign one in order to be stored in personal digital assistant 11 to one via the man-machine interface 111 of personal digital assistant 11, or the specific file in the portable type hard disk 12, carry out the file transfer of moving or the duplicating instruction of file, if have, then transmit the output with respect to this file transfer instruction/input request by a USB assembly 113, and be sent to portable type hard disk 12 via USB transmission line 13, if do not have, then the PDA processor can continue to detect whether receive this look-at-me.
Whether the usb host controller 125 of portable type hard disk 12 can continuous interpretation receive this output/input request, if have, then according to this output/input request, send one and respond and instruct, to carry out a corresponding handling procedure desiring to carry out the particular data that file moves or duplicate to personal digital assistant 11.And send look-at-me to personal digital assistant 11 by USB transmission line 13 once more, to inquire whether desire sends output/input request.And personal digital assistant 11 also can be after carrying out this response order fulfillment to this particular data, and whether detect personal digital assistant 11 once more has and receive the look-at-me that portable type hard disk 12 is sent.Thus, 12 of personal digital assistant 11 and portable type hard disks can have the function of file transfer.
Consult Fig. 6, through above-mentioned illustrated with regard to second preferred embodiment of the present invention after, below will be described in further detail with regard to the implementation step of second preferred embodiment of the present invention.
Step 601, whether desire sends a look-at-me in usb host controller 125 interpretations of portable type hard disk 12, if, transmit this look-at-me to personal digital assistant 11 by USB transmission line 13, if not, after a schedule time, whether desire sends a look-at-me in interpretation once more.Step 602, whether PDA processor 114 interpretations of personal digital assistant 11 receive this look-at-me, if having, then enter next step, if do not have, then after a schedule time, whether interpretation receives this look-at-me once more.Step 603, whether 114 interpretations of PDA processor a file transfer instruction that is provided by this man-machine interface is provided, if having, then transmits one by a USB assembly 113 and asks to portable type hard disk 12 with respect to the output/input of this file transfer instruction, if do not have, get back to step 602.Whether step 604, usb host controller 125 interpretations of portable type hard disk 12 receive this output/input request, if having, enter step 605, do not enter step 601 if having.Step 605, the usb host controller 125 of portable type hard disk 12 send a response and instruct to personal digital assistant 11, this particular data is carried out a corresponding handling procedure according to this output/input request.And return step 601.Step 606, personal digital assistant 11 is in this particular data being carried out this response instruction, to finish moving of file.And whether after finishing, detecting personal digital assistant 11 once more has and receives the look-at-me that portable type hard disk 12 is sent.
Conclude above-mentioned, the present invention's two electronic installations under the USB framework carry out the method for information flow exchange and use the system of this method, be to be used in the USB framework, one personal digital assistant 11 as the driven end role, the output that sends/input request, and inform by the portable type hard disk 12 as the drive end role, and portable type hard disk 12 goes to carry out the file transfer between stream oriented device, the action of access thus, and reach the effect that effectively integrates resource, so can reach the purpose of invention really.
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.