Summary of the invention
In view of this, fundamental purpose of the present invention just provides a kind of special-purpose cable that connects that do not need, and does not need to install specific drivers, mainly utilizes infrared transmission to realize the method and system of portable storage device.
For reaching above-mentioned purpose of the present invention, can realize that the method and system of portable storage device reach by a kind of infrared transmission that is provided.Realize the transmission data method of portable storage device according to a kind of infrared transmission of the embodiment of the invention, at first start a file form interface in the portable storage device, select to transmit data, then utilize portable storage device middle infrared (Mid-IR) communication device, search one and have the computer system of infrared-ray communication device, when portable storage device middle infrared (Mid-IR) communication device, search one and have the computer system of infrared-ray communication device, transmit data, finish when portable storage device at last and transmit data, return the file form interface to being had the computer system of infrared-ray communication device.
Realize the data download method of portable storage device according to a kind of infrared transmission of the embodiment of the invention, at first start a file form interface in the portable storage device, select to download, then utilize portable storage device middle infrared (Mid-IR) communication device, search one has the device of infrared-ray communication, when portable storage device middle infrared (Mid-IR) communication device, search one and have the computer system of infrared-ray communication device, carry out data download, finish when portable storage device at last and transmit data, return the file form interface to being had the computer system of infrared-ray communication device.
In addition, comprise a computer system, have the infrared-ray communication device according to a kind of system that utilizes infrared transmission to realize portable storage device of the embodiment of the invention.One portable storage device is comprising a display device, an input equipment, an infrared ray photoelectricity conversion equipment, an infrared signal codec and a central processing unit.
Computer system has an infrared-ray communication device, in order to portable storage device line, transmit data.Portable storage device wherein comprises a display device, at least in order to show the state of portable storage device; One input equipment is given portable storage device in order to the input data; One infrared ray photoelectricity conversion equipment when receiving data, changes into pulse signal with received infrared ray signal, when transmitting data, pulse signal is changed into the infrared ray signal; One infrared signal codec when transmitting data, changes into pulse signal with data signals, when receiving data, pulse signal is changed into data signals; One central processing unit is in order to executive routine indication, the running of control device.
For above-mentioned and other purposes of the present invention, feature and advantage can be become apparent, cited below particularlyly go out preferred embodiment, and conjunction with figs., be described in detail below:
Embodiment
Please refer to Fig. 1, Fig. 1 realizes the transmission data manipulation flow process of portable storage device method for synoptic diagram system shows the infrared transmission of utilizing according to the embodiment of the invention, and the transmission data manipulation flow process of the embodiment of the invention will be illustrated in down.
At first, as step S10, start a file form interface, unlatching is arranged in portable storage device file form interface.Step S12, the data that selection will transmit are utilized the file form interface, select to transmit data, confirm the data that will transmit.Follow step S14, search has the computer system of infrared-ray communication device, utilize the search of portable storage device middle infrared (Mid-IR) communication device to have the computer system of infrared-ray communication device, when portable storage device middle infrared (Mid-IR) communication device searches the computer system with infrared-ray communication device, will set up line.Step S18, the transmission data, portable storage device is cut apart package according to certain format with data with data and is transmitted, and sends frame by frame.
Step S20, whether judgment data transmits is finished, and when select transmitting a plurality of data, finishes transmission wherein after data, will judge whether these data transmit to finish, and finishes when this stroke count of judgement reportedly send.Step S24 judges whether that data need to transmit in addition, when definite selected a plurality of data that need to transmit are all finished transmission.Step S28 returns to the file form interface.
In addition, as step S14, search has the computer system of infrared-ray communication device, portable storage device middle infrared (Mid-IR) communication device utilize the search of portable storage device middle infrared (Mid-IR) communication device to have the computer system of infrared-ray communication device, when can't search the computer system with infrared-ray communication device.Then.Step S16 surpasses the stand-by period, if the search of portable storage device middle infrared (Mid-IR) communication device is less than the computer system with infrared-ray communication device and again above a special time.Step S26 transmits an error messages and notifies the user, will produce an error messages on the display device of portable storage device and inform the user, and the search of portable storage device middle infrared (Mid-IR) communication device is less than the computer system with infrared-ray communication device.
Step S22 judges whether infrared-ray communication interrupts, in the process that transmits data, if infrared-ray communication interrupts.Step S26 transmits an error messages and notifies the user, if infrared-ray communication interrupts, will produce an error messages on the display device of portable storage device and inform that user's infrared-ray communication interrupts.
As step S24, judge whether that data need transmission in addition, if the selected a plurality of data that need to transmit are not all finished transmission as yet, the data that promptly also have requirement to transmit transmit as yet and give computer system.Next, step S18 transmits data, continues to transmit the data of not transmitting as yet and gives computer system, has all finished transmission up to the selected a plurality of data that need to transmit.Step S28 returns to the file form interface.
Please refer to Fig. 2, Fig. 2 realizes the data download operating process of portable storage device method for synoptic diagram system shows the infrared transmission of utilizing according to the embodiment of the invention, and the data download operating process of the embodiment of the invention will be illustrated in down.
At first, step S60 starts a file form interface, opens to be arranged in portable storage device file form interface.Step S62 selects the data downloaded of wanting, and utilizes the file form interface, selects data download.Follow step S64, search has the computer system of infrared-ray communication device, utilize the search of portable storage device middle infrared (Mid-IR) communication device to have the computer system of infrared-ray communication device, when portable storage device middle infrared (Mid-IR) communication device searches the computer system with infrared-ray communication device and sets up line.Step S68, the beginning data download, after portable storage device and computer system were set up line, computer system began to transmit data and gives portable storage device, when portable storage device receives the data data, will return a response data and inform computer system.
Step S70 judges whether infrared-ray communication interrupts, and in the process that transmits data, will confirm that simultaneously infrared-ray communication is in a normal condition.Step S74, whether judgment data transmits is finished, if after finishing transmission one data, portable storage device will be waited for and receive a communication end frame, but if receive the transmission Frame that transmits for computer system with infrared-ray communication device, then begin to receive next data, be the communication end frame, then communication end if receive.Step S76 returns to the file form interface, i.e. expression is finished and received all data, and the user utilizes the file form interface, continues to use portable storage device.
In addition, as step S64, search has the computer system of infrared-ray communication device, utilize the search of portable storage device middle infrared (Mid-IR) communication device to have the computer system of infrared-ray communication device, when portable storage device middle infrared (Mid-IR) communication device can't search the computer system with infrared-ray communication device.Then, step S66 surpasses the stand-by period, promptly in a special time search of portable storage device middle infrared (Mid-IR) communication device less than computer system with infrared-ray communication device.As step S72, transmit an error messages and notify the user, on the display device of portable storage device, produce an error messages and inform the user, the search of portable storage device middle infrared (Mid-IR) communication device is less than the computer system with infrared-ray communication device.
As step S70, judge whether infrared-ray communication interrupts, in the process that transmits data, if infrared-ray communication interrupts.Then, step S72 transmits an error messages and notifies the user, if infrared-ray communication interrupts, to produce an error messages on the display device of portable storage device and inform that user's infrared-ray communication interrupts, and, judge whether to end infrared-ray communication according to different conditions.Step S76 gets back to the listed files interface.
In addition, utilize file form interface in the portable storage device, select the deleted file function, then enter a file delete interface, the file that selection will be deleted after confirming action, with the file that deletion will be deleted, is got back to the file surface and interface at last.
Fig. 3 realizes the system architecture of portable storage device system for synoptic diagram system shows the infrared transmission of utilizing according to the embodiment of the invention, and with reference to figure 3, the system architecture of the embodiment of the invention will be illustrated in down.
Utilize a portable storage device 35 to have an infrared-ray communication device to receive at least one data, the infrared end that sees through portable storage device 35 sends a data signals, search has the computer system 30 of infrared-ray communication device, then receive the response data signal that computer system 30 with infrared-ray communication device is sent when portable storage device 35, portable storage device 35 sends out line agreement data signals, wait for the response of line agreement data signals, next, when receiving the line agreement data signals of being sent from the computer system 30 with infrared-ray communication device, portable storage device 35 responds, finish the infrared ray line, when portable storage device 35 utilizes the file form interface, during selective reception one data, computer system 30 with infrared-ray communication device transmits data and gives portable storage device 35, transmit all data to portable storage device 35 up to finishing, return the file form interface, and work as portable storage device 35 and utilize the file form interface, when selecting to transmit data, to transmit data to having the computer system 30 of infrared-ray communication device, transmit the computer system 30 of all data up to finishing, return the file form interface to the infrared-ray communication device.
Fig. 4 shows that for synoptic diagram system with reference to figure 4, the storage device system architecture of the embodiment of the invention will be illustrated in down according to the system architecture of the storage device system of the embodiment of the invention.
One portable storage device 45 comprises a display device 50, an input equipment 54, an infrared ray photoelectricity conversion equipment 58, one infrared signal codec 56 and a central processing unit 52.
One display device 50 for example is a liquid crystal indicator, in order to show the state of portable storage device; One input equipment 54 for example is a miniature keyboard or touch control screen, gives portable storage device 45 in order to the input data; One infrared ray photoelectricity conversion equipment 58 in order to infrared ray signal and pulse signal are changed mutually, when receiving data, changes into pulse signal with received infrared ray signal, when transmitting data, pulse signal is changed into the infrared ray signal; One infrared signal codec 56, in order to data signals and pulse signal are changed mutually, when transmitting data, data signals is changed into pulse signal, be about to data signals for example a digital signal convert to and be easy to the pulse signal that transmits by infrared ray, for instance, digital signal " 0 " is converted to one from the low level to the high level and keep certain hour to return low level pulse signal, numeral " 1 " then is converted to a continuous low level, when receiving data, then inverse operation converts the series of pulses signal to data signals; One central processing unit is in order to executive routine indication, the running of control device.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limiting the present invention, anyly is familiar with present technique field person, without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention defines and is as the criterion when looking the accompanying Claim book.