Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment one
Fig. 1 is the structural representation of data transmission set embodiment of the present invention, as shown in Figure 1, the data transmission set of present embodiment is external bidirectional interface equipment, it mainly comprises first interface 11, second interface 12 and converter 13, and converter 13 is connected between first interface 11 and second interface 12.
Wherein, first interface 11 is used for being connected respectively two equipment that carry out data transmission with second interface 12, and first interface 11 can be used for being connected with main equipment, and this main equipment can be mobile phone, digital camera, MP3 etc.; Second interface 12 can be standard USB socket, is used to insert external USB memory device.For example, when the data transmission between data transmission set realization mobile phone that uses present embodiment and the portable hard drive, can be with the data-interface on first interface, the 11 connection mobile phones, with the data-interface on second interface, the 12 connection portable hard drives.First interface 11 can also be different interface types according to dissimilar mobile phones designs; For example, its can be designed as mini usb socket, microsd socket or audio sockets etc. can with the interface of external equipment interaction data, to adapt to dissimilar mobile phones.Data transmission set can be connected with corresponding port on the mobile phone by this first interface 11, and is connected with the corresponding port of portable hard drive by second interface 12.
Be provided with power supply 131 in the converter 13, and can be respectively mobile phone and portable hard drive provides operating voltage, to realize the data transmission between mobile phone and the portable hard drive by this power supply 131.At this moment, be equivalent to by converter 13 as main equipment, mobile phone and portable hard drive are all as slave unit, on the one hand, converter 13 can be powered for mobile phone, its can and mobile phone between realize data transmission, on the other hand, converter 13 can also be powered for portable hard drive, its also can and portable hard drive between realize data transmission, converter 13 is as the bridge of data transmission between mobile phone and the portable hard drive.
Concrete, can also be provided with data processing module 132, supply voltage circuit 133 and switch 134 in the converter 13.Power supply 131 is connected with data processing module 132, supply voltage circuit 133 respectively, for it provides operating voltage.Data processing module 132 is connected with second interface 12 with first interface 11 respectively with supply voltage circuit 133, and switch 134 is connected with power supply 131, and after switch 134 was opened, power supply 131 can be started working.Following is example with the data transmission between mobile phone and the portable hard drive still, and the working relation between above-mentioned each module is described.
When using the data transmission set of present embodiment, at first need to carry out voltage-regulation, can carry out data transmission to reach.Concrete, can at first first interface 11 be connected to mobile phone, second interface 12 is connected to portable hard drive.Then, open the switch 134 of this data transmission set, power supply 131 is started working, and is respectively the support of powering of connected data processing module 132 and supply voltage circuit 133.Wherein, supply voltage circuit 133 can be adjusted into mobile phone and the required operating voltage of portable hard drive respectively with the voltage that obtains from power supply 131.For example, the data-interface on the mobile phone is the microsd socket, and its required interface voltage is 2.7~3.6V, and the data-interface of portable hard drive is a standard USB interface, and its required interface voltage is 5V; Then supply voltage circuit 133 can provide 2.7~3.6V voltage to mobile phone by first interface 11, and provides 5V voltage by second interface 12 to portable hard drive, makes this data transmission set to realize data transmission with mobile phone, portable hard drive respectively.
After finishing power supply and voltage-regulation process, can begin to transmit data between mobile phone and the portable hard drive.For example, mobile phone can be by data-interface on it and first interface 11 of present embodiment data transmission set, with the data transmission on the mobile phone to data processing module 132.Data processing module 132 can carry out Data Format Transform, and the data of this mobile phone form are converted to the data of portable hard drive form, and with these data by the data-interface on second interface 12 and the portable hard drive, transfer to portable hard drive.
Need to prove that the data transmission set of present embodiment has outstanding characteristics and is, can use the audio sockets transmission data on the mobile phone.In the prior art, the handset audio socket usually can only transmission of music etc. information, and the data transmission set of present embodiment can be applied to by the data outside the handset audio socket transmission of music information.Specify as follows:
For example, use the data transmission set of present embodiment, the data of transmitting its stored from portable hard drive are to mobile phone, and these data are the data outside the music information, and transfer to the audio sockets of mobile phone.Then first interface 11 of data transmission set connects the audio sockets of mobile phone, and second interface 12 connects the USB interface of portable hard drive.After data transmission set receives data from portable hard drive, be converted into the audio sockets formatted data, this audio sockets formatted data can be the proprietary protocol formatted data, the proprietary protocol that can stipulate this data-switching by the user or the manufacturer of this data transmission set.
Portable hard drive transfers to this audio sockets formatted data in the mobile phone by the audio sockets on the mobile phone.Mobile phone can be resolved this audio sockets formatted data that receives according to above-mentioned proprietary protocol, be converted to the data of portable hard drive.In like manner, also the data on the mobile phone can be transferred to portable hard drive by audio sockets, its transmission principle is the same, and just the process of data-switching is opposite, does not repeat them here.
In the present embodiment by utilizing audio sockets transmission data, can extended mobile phone on the envelop of function of all kinds of sockets, also make the data transmission set of present embodiment can be applicable to the mobile phone of various interface type, make data transmission more convenient.
Present embodiment is an example with the data transmission between mobile phone and the portable hard drive just, and the principle of work of data transmission set is illustrated.It will be understood by those skilled in the art that this data transmission set can be applied to other similar two kinds of data transfer between devices equally.For example, digital camera and USB flash disk etc.In addition, on the basis of having realized above-mentioned data communication, can enlarge the use effect of equipment.For example, be example with the mobile phone, when mobile phone can and the USB memory device between when realizing data communication, embedded software can be set in mobile phone, realize much using.Such as from mobile phone, deriving the phone backup or importing memo data etc. to mobile phone from the USB memory device.Under the support of custom-made software, can also realize some strong functions more by the data transmission set of present embodiment, when on mobile phone, using Mobile banking, wap bank etc. to conclude the business, can on mobile phone, use encryption devices such as circumscribed USB key to confirm, guarantee the security of concluding the business.Can improve the usable range of Mobile banking thus.And this data transmission set is easy to carry, and a mobile phone and a portable external equipment can only carry in trade company, use the USB memory device to carry out importing and exporting of data anywhere or anytime.
The data transmission set of present embodiment is by being provided with converter, and utilizes this converter to be respectively two power devices, realized data transfer between devices; And this data transmission set is easy to carry.
Embodiment two
Fig. 2 is the schematic flow sheet of data transmission method embodiment of the present invention, and the data transmission that is implemented between mobile phone and the USB memory device in order to the data transmission set with the foregoing description is an example, and the data transmission method of present embodiment is described.As shown in Figure 2, the data transmission method of present embodiment comprises:
Step 201, respectively to the power supply of main equipment and USB memory device.
In the present embodiment, main equipment can be mobile phone, and first interface of data transmission set is connected to mobile phone, and second interface is connected to the USB memory device.Wherein, first interface can for example, can be mini usb socket, microsd socket or audio sockets according to the different different interface shapes of type of cell phone design; Second interface can be standard USB interface.
Then, open the switch in the data transmission set, this data transmission set can begin to pass through respectively first interface and second interface, and mobile phone and USB memory device are powered.Be specifically as follows, power supply built-in in the data transmission set provides electric power to the supply voltage circuit, will be converted to mobile phone and the required operating voltage of USB memory device from the voltage that power supply obtains respectively by the supply voltage circuit.For example, the supply voltage circuit can provide the voltage of 2.7~3.6V to the mobile phone with micro sd socket by first interface, and the operating voltage of 5V is provided to the USB memory device by second interface.Like this, data transmission set just can carry out data communication with mobile phone, simultaneously, also can carry out data communication with the USB memory device, and data transmission set can be used as the bridge that mobile phone and USB memory device carry out data communication.
Step 202, between described main equipment and USB memory device, carry out data transmission.
After finishing power supply and voltage-regulation process, can begin to transmit data between mobile phone and the USB memory device.Be specifically as follows, for example, mobile phone can be by data-interface on it and first interface of present embodiment data transmission set, with the data transmission on the mobile phone to data transmission set.The data of this mobile phone transmission are the mobile phone formatted data.Data transmission set will carry out Data Format Transform to the data that receive, and this mobile phone formatted data is converted to USB memory device formatted data, and transmit it to the USB memory device by second interface.Data stream has been finished from the transmission of mobile phone side direction USB memory device side; In like manner, data stream also can be from the transmission of USB memory device side direction mobile phone side, and principle is identical, does not repeat them here.
Need to prove that the data transmission method of present embodiment also has outstanding characteristics and is, and can carry out data transmission by the audio sockets on the mobile phone.In the prior art, the handset audio socket usually can only transmission of music etc. information, and the data transmission method of present embodiment can be by the data outside the handset audio socket transmission of music information.This method is described as follows:
For example, the data of transmitting its stored from portable hard drive are to mobile phone, and these data are the data outside the music information, and transfer to the audio sockets of mobile phone.Then first interface of data transmission set connects the audio sockets of mobile phone, and second interface connects the USB interface of portable hard drive.After data transmission set receives data from portable hard drive, be converted into the audio sockets formatted data, this audio sockets formatted data can be the proprietary protocol formatted data, the proprietary protocol that can stipulate this data-switching by the user or the manufacturer of this data transmission set.
Portable hard drive transfers to this audio sockets formatted data in the mobile phone by the audio sockets on the mobile phone.Mobile phone can be resolved this audio sockets formatted data that receives according to above-mentioned proprietary protocol, be converted to the data of portable hard drive.In like manner, also the data on the mobile phone can be transferred to portable hard drive by audio sockets, its transmission principle is the same, and just the process of data-switching is opposite, does not repeat them here.
In the present embodiment by utilizing audio sockets transmission data, can extended mobile phone on the envelop of function of all kinds of sockets, also make the data transmission set of present embodiment can be applicable to the mobile phone of various interface type, make data transmission more convenient.
Present embodiment is an example with the data transmission between mobile phone and the portable hard drive just, and the principle of work of data transmission set is illustrated.It will be understood by those skilled in the art that this data transmission set can be applied to other similar two kinds of data transfer between devices equally.For example, digital camera and USB flash disk etc.In addition, on above-mentioned basis of having realized data communication between mobile phone and the USB memory device, mobile phone can be drawn together its range of application of exhibition by embedded software is set.For example, can from mobile phone, derive phone backup or import memo data etc. to mobile phone from the USB memory device.Further, under the support of custom-made software, by data transmission set, mobile phone can also be realized some strong functions more.When on mobile phone, using Mobile banking, wap bank etc. to conclude the business, can on mobile phone, use encryption devices such as circumscribed USB key to confirm, between mobile phone and USB key, carry out encrypted data transmission, guarantee the security of concluding the business.Can improve the usable range of Mobile banking thus.And this data transmission set is easy to carry, and a mobile phone and a portable external equipment can only carry in trade company, use the USB memory device to carry out importing and exporting of data anywhere or anytime.
The data transmission set of present embodiment is by being provided with converter, and utilizes this converter to be respectively main equipment and the power supply of USB memory device, realized the data transmission between main equipment and the USB memory device; And this data transmission set is easy to carry.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.