Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
The embodiment of the invention is the control circuit board and the communication data cable of compatible rs 232 serial interface signal and usb signal, by described control circuit board and cable and corresponding plug is connected form the communication data cable, being connected of terminal devices such as realization wireless terminal and PC.
Fig. 1 is the compatible rs 232 serial interface signal of the embodiment of the invention one and the control circuit board of usb signal, described control circuit board 2 comprises: be used to connect the shared interface end 21 of serial ports and the shared plug 1 of USB, the shared plug 1 of described serial ports and USB is used for being connected with the port that is complementary on the wireless communication terminal; Be used to connect the serial line interface end 23 of serial plug 3, described serial plug 3 is used for being connected with the serial ports that is complementary on the external unit, and realizes the serial signal transmission with wireless communication terminal; With the USB interface end 24 that is used to be connected USB plug 4, described USB plug 4 is used for being connected with the USB mouth that is complementary on the external unit, and realizes the usb signal transmission with wireless communication terminal.
Wherein, described control circuit board 2 is selected serial communication or usb communication according to control signal.For example when the wireless communications products port uses usb signal, the shared plug 1 that the shared interface end 21 of this control circuit board 2 connects by communication cable is connected with the USB port on the wireless communications products, connect the back control signal and be input as high level signal, thereby described control circuit board 2 is selected usb communications, and wireless terminal is communicated with PC on the production line.
When the wireless communications products port uses rs 232 serial interface signal, the shared plug 1 that the shared interface end 21 of this control circuit board 2 connects by communication cable is connected with the serial port on the wireless communications products, connect the back control signal and be input as low level signal, thereby described control circuit board 2 is selected serial communications, and wireless terminal is communicated with PC on the production line.
Described like this control circuit board 2 is by connecting to form a communication data cable with corresponding plug, make described communication data cable can connect the terminal of using rs 232 serial interface signal and carry out data transmission, can connect other again uses the terminal of usb signal to carry out data transmission, no longer need to change the cable that is complementary according to the difference of port signal type, very easy to use.
Fig. 2 is the compatible rs 232 serial interface signal of the embodiment of the invention two and the control circuit board of usb signal, as shown in Figure 2, described control circuit board 2 comprises: shared interface end 21, be used to connect the shared plug 1 of serial ports and USB, the shared plug 1 of described serial ports and USB is used for being connected with the port that is complementary on the wireless communication terminal; Serial line interface end 23 is used to connect serial plug 3, and described serial plug 3 is used for being connected with the serial ports that is complementary on the external unit, and realizes the serial signal transmission with wireless communication terminal; USB interface end 24 is used to connect USB plug 4, and described USB plug 4 is used for being connected with the USB mouth that is complementary on the external unit, and realizes the usb signal transmission with wireless communication terminal.
The shared interface end 21 of described control circuit board sends the pin TX/D+ of data, pin RX/D-and who receives data by a power pin VBUS, one and is used for importing the high-low level signal thereby to control that first and second switches on the described control circuit board 2 select to be connected with serial ports still be that the control signal pin CTRL that is connected with the USB mouth forms.
Described serial line interface end 23 is made up of the pin PC_RX that a pin PC_TX who is used to send data and are used to receive data.
Described USB interface end 24 is used to send the pin PC_D-that the pin PC_D+ of data and is used to receive data by a power pin PC_VBUS, one and forms.
Power pin PC_VBUS on the USB interface end 24 on described power pin VBUS and the described control circuit board 2 links to each other, and is used to provide the wireless communication terminal product USB port that is connected with described shared plug 1 power supply; Two are respectively applied for the pin TX/D+ that transmits and receive data, RX/D-is rs 232 serial interface signal and the shared pin of usb signal, its respectively with described control circuit board on first switch 25 and second switch 26 be electrically connected, be respectively arranged with first contact and second contact that can be electrically connected with described two switches on described first switch 25 and the second switch 26, first switch, first contact 251 is connected by the transmission data pin PC_TX on the serial line interface end 23 on the RS232 level shifting circuit 28 on the described control circuit board 2 and the described control circuit board 2, second switch second contact 262 is connected with reception data pin PC_RX on the described serial line interface end 23 by described RS232 level shifting circuit 28, first switch, second contact 252 is connected with transmission data pin PC_D+ on the described USB interface end 24, second switch first contact 261 is connected with reception data pin PC_D-on the described USB interface end 24, be that the described two switch other ends can link to each other with described second switch second contact 262 by selecteed and described first switch, first contact 251, perhaps link to each other with described second switch first contact 261, thereby constitute a single-pole double-throw switch (SPDT) with described first switch, second contact 252.First switch 25 on the described control circuit board 2, second switch 26 all need ground connection with RS232 level shifting circuit 28, and all need power by the power pin PC_VBUS on the described USB interface end.Be used for judging that thereby the high-low level signal controls described first and second switches and select serial ports to connect still to be control signal pin CTRL that USB connects to be connected with power pin PC_VBUS on the described USB interface end 24 by resistance R, described first switch 25 all is connected with control signal pin CTRL by first node 27 with described second switch 26, and described first node 27 is arranged between described control signal pin CTRL and the resistance R.
In this embodiment, the USB interface end 24 of described control circuit board 2 links to each other with the USB mouth of PC by USB plug 4 all the time, and the PC_VBUS in the USB interface signal is the entire circuit power supply, and voltage is 5V, and electric current is 500mA.The RS232 that uses in the present embodiment is typical level shifting circuit.The single-pole double-throw switch (SPDT) that uses in the present embodiment is high-speed analog switch, controls by the high-low level signal.Present embodiment is to provide control signal CTRL by the outside, and selecting serial communication by high-low level control still is the USB port communications.Selecting usb signal communication when supposing high level, is serial signal communication during low level then.
Specifically tell about the principle of work of the control panel of present embodiment below.
Port at wireless communications products is under the situation of USB mouth, when the test of carrying out product or when debugging research and development, needs this wireless communications products port is connected with shared plug 1, is changed to CTRL unsettled or does not connect state, and the CTRL control signal is a high level signal at this moment.When the CTRL control signal arrived first switch 25 and second switch 26 by first node 27, first switch was communicated with the path of second contact 252, and second switch is communicated with the path of first contact 261.Thereby, connect path from shared interface end 21 to USB interface end 24, realize usb communication.
Port at wireless communications products is under the situation of serial ports, when the test of carrying out product or research and development debugging, needs this wireless communications products port is connected with shared plug 1, and with CTRL ground connection, this moment, the CTRL control signal was a low level signal.And will be connected with the serial ports of PC with the serial plug 3 (as the DB9 plug) that the serial line interface end 23 of control circuit board 2 links to each other.When the CTRL control signal arrived first switch 25 and second switch 26 by first node 27, first switch was communicated with the path of first contact 251, and second switch is communicated with the path of second contact 262.Thereby, connect path from shared interface end 21 to serial line interface end 23, realize serial communication.
By control signal the selection of single-pole double-throw switch (SPDT) is switched from the outside, present embodiment can be selected communication mode with wireless terminal effectively by control circuit board, thereby no longer need to change the cable that is complementary according to the difference of port signal type, the compatibility that this has improved production line widely helps the normalization of production line cable.And because described control circuit board 2 can design very for a short time, so it can be arranged in the serial plug 3 (as Fig. 5) more convenient use.Particularly, because usb signal is a high speed signal, for guaranteeing the usb communication quality of signals, the whole piece cable needs to carry out shielding processing by the requirement of USB cable, so communication quality can access good guarantee.
Need to prove that the shared plug of present embodiment can be designed as with the port of wireless communication terminal product suitable.Various dissimilarly also can be connected with the shared plug of present embodiment by breakout box with the wireless communication terminal product of model.First switch, first contact of describing in the present embodiment 251 and second switch second contact 262 can be regarded as the normally closed interlock on the meaning of this area, and first switch, second contact 252 and second switch first contact 261 can be regarded as the normally open contact on the meaning of this area.
Fig. 3 is the compatible rs 232 serial interface signal of the embodiment of the invention three and the control circuit board of usb signal, as shown in Figure 3, described control circuit board 2 comprises: shared interface end 21, be used to connect the shared plug 1 of serial ports and USB, the shared plug 1 of described serial ports and USB is used for being connected with the port that is complementary on the wireless communication terminal; Serial line interface end 23 is used to connect serial plug 3, and described serial plug 3 is used for being connected with the serial ports that is complementary on the external unit, and realizes the serial signal transmission with wireless communication terminal; USB interface end 24 is used to connect USB plug 4, and described USB plug 4 is used for being connected with the USB mouth that is complementary on the external unit, and realizes the usb signal transmission with wireless communication terminal.
The shared interface end 21 of described control circuit board sends the pin TX/D+ of data, pin RX/D-and who receives data by a power pin VBUS, one and is used for importing the high-low level signal thereby to control that first and second switches on the described control circuit board 2 select to be connected with serial ports still be that the control signal pin CTRL that is connected with the USB mouth forms.
Described serial line interface end 23 is used to be connected second pin that described serial plug request sends pin PC_RTS and forms with one by a pin PC_TX who is used to send data, pin PC_RX who is used to receive data, first pin that is used to connect described serial plug data terminal ready pin PC_DTR.
Described USB interface end 24 is used to send the pin PC_D-that the pin PC_D+ of data and is used to receive data by a power pin PC_VBUS, one and forms.
Power pin PC_VBUS on the USB interface end 24 on described power pin VBUS and the described control circuit board 2 links to each other, and is used to provide the wireless communication terminal product USB port that is connected with described shared plug 1 power supply; Two are respectively applied for the pin TX/D+ that transmits and receive data, RX/D-is rs 232 serial interface signal and the shared pin of usb signal, its respectively with described control circuit board on first switch 25 and second switch 26 be electrically connected, be respectively arranged with first contact and second contact that can be electrically connected with described two switches on described first switch 25 and the described second switch 26, first switch, first contact 251 is connected with transmission data pin PC_TX on the described serial line interface end 23 by the low-power consumption RS232 level shifting circuit 28 on the described control circuit board 2, second switch second contact 262 is connected with reception data pin PC_RX on the described serial line interface end 23 by described low-power consumption RS232 level shifting circuit 28, first switch, second contact 252 is connected with transmission data pin PC_D+ on the described USB interface end 24, second switch first contact 261 is connected with reception data pin PC_D-on the described USB interface end 24, be that the described two switch other ends can link to each other with described second switch second contact 262 by selecteed and described first switch, first contact 251, perhaps link to each other with described second switch first contact 261, thereby constitute single-pole double-throw switch (SPDT) in the high-speed analog switch with described first switch, second contact 252.First switch 25 on the described control circuit board 2, second switch 26 all need ground connection with low-power consumption RS232 level shifting circuit 28, and all need power by the power pin PC_VBUS on the described USB interface end.Be used for judging that thereby the high-low level signal controls described first and second switches and select serial ports to connect still to be control signal pin CTRL that USB connects to be connected with power pin PC_VBUS on the described USB interface end 24 by resistance R, described first switch 25 all is connected with control signal pin CTRL by first node 27 with second switch 26, and described first node 27 is arranged between described control signal pin CTRL and the resistance R.Prevent that first diode, 291 positive poles that electric current pours in down a chimney link to each other with power pin PC_VBUS on the described USB interface end 24, second diode 292 is anodal to be connected with first pin of serial line interface end 23 on the described control circuit board 2, described first pin is used to connect the data terminal ready pin of described serial plug 3, the 3rd diode 293 positive poles are connected with second pin of described serial line interface end 23, described second pin is used to connect the request transmission pin of described serial plug 3, and the negative pole of described resistance R and described three diodes is all by a filter capacitor ground connection.Serial line interface end 23 among this embodiment on the control circuit board 2 can link to each other with PC by serial plug 3 and/or USB plug 4 all the time with USB interface end 24, because original idle ready DTR of data signal terminal and request send pin RTS and have been configured to high level, rectification by the diode that links with it fully can supply circuit in required electric current, promptly do not influence the operate as normal of control circuit board 2 no matter whether the USB interface end on the control circuit board 2 links to each other with PC.
Compare with second embodiment, what use in the present embodiment is low-power consumption RS232 typical case level shifting circuit, because described low-power consumption RS232 level shifting circuit consumed current is littler, can better guarantee the control circuit board work in the present embodiment when only powering by serial ports DTR and RTS signal rectification not connecting the USB interface end.And the same high-speed analog switch of controlling by the high-low level signal that uses is as single-pole double-throw switch (SPDT).Present embodiment is to provide control signal CTRL by the outside equally in addition, and selecting serial communication by high-low level control still is the USB port communications.Selecting usb signal communication when supposing high level, is serial signal communication during low level then.
Specifically tell about the principle of work of the control panel of present embodiment below.
Port at wireless communications products is under the situation of USB mouth, when the test of carrying out product or when debugging research and development, needs this wireless communications products port is connected with shared plug 1, is changed to CTRL unsettled or does not connect state, and the CTRL control signal is a high level signal at this moment.And will be connected with the USB mouth of PC with the USB plug 4 that the USB interface end 24 of control circuit board 2 links to each other.When the CTRL control signal arrived first switch 25 and second switch 26 by first node 27, first switch was communicated with the path of second contact 252, and second switch is communicated with the path of first contact 261.Thereby, connect path from shared interface end 21 to USB interface end 24, realize usb communication.
Port at wireless communications products is under the situation of serial ports, when the test of carrying out product or research and development debugging, needs this wireless communications products port is connected with shared plug 1, and with CTRL ground connection, this moment, the CTRL control signal was a low level signal.And will be connected with the serial ports of PC with the serial plug 3 (as the DB9 plug) that the serial line interface end 23 of control circuit board 2 links to each other.When the CTRL control signal arrived first switch 25 and second switch 26 by first node 27, first switch was communicated with the path of first contact 251, and second switch is communicated with the path of second contact 262.Thereby, connect path from shared interface end 21 to serial line interface end 23, realize serial communication.
Different with second embodiment is, because the idle signal DTR of PC serial ports and RTS also can be control circuit board 2 power supplies after the process simple process, therefore present embodiment can be serial ports or USB mouth according to the port of the wireless terminal product that is connected with shared plug 1 in use, directly select serial plug 3 to be connected with the PC serial ports or USB plug 4 is connected with PC USB mouth, and needn't must all the time USB plug 4 be connected with PC USB mouth as second embodiment.Certainly, also can before use serial plug 3 and USB plug 4 be connected on the PC simultaneously, thereby make use convenient flexibly.Since the rectification of three diodes that add with prevent the effect that electric current pours in down a chimney and the filter action of electric capacity, make the The whole control circuit can realize normal power supply by low-power consumption RS232 level shifting circuit.
By control signal the selection of single-pole double-throw switch (SPDT) is switched from the outside, present embodiment can be selected communication mode with wireless terminal effectively by control circuit board, thereby no longer need to change the cable that is complementary according to the difference of port signal type, the compatibility that this has improved production line widely helps the normalization of production line cable.And because described control circuit board 2 can design very for a short time, so it can be arranged in the serial plug 3 (as Fig. 5) more convenient use.Particularly, because usb signal is a high speed signal, for guaranteeing the usb communication quality of signals, the whole piece cable needs to carry out shielding processing by the requirement of USB cable, so communication quality can access good guarantee.
Need to prove that the shared plug of present embodiment can be designed as with the port of wireless communication terminal product suitable.Various dissimilarly also can be connected with the shared plug of present embodiment by breakout box with the wireless communication terminal product of model.First switch, first contact of describing in the present embodiment 251 and second switch second contact 262 can be regarded as the normally closed interlock on the meaning of this area, and first switch, second contact 252 and second switch first contact 261 can be regarded as the normally open contact on the meaning of this area.
Fig. 4 is the compatible rs 232 serial interface signal of the embodiment of the invention four and the control circuit board of usb signal, as shown in Figure 4, described control circuit board 2 comprises: shared interface end 21, be used to connect the shared plug 1 of serial ports and USB, the shared plug 1 of described serial ports and USB is used for being connected with the port that is complementary on the wireless communication terminal; Serial line interface end 23 is used to connect serial plug 3, and described serial plug 3 is used for being connected with the serial ports that is complementary on the external unit, and realizes the serial signal transmission with wireless communication terminal; USB interface end 24 is used to connect USB plug 4, and described USB plug 4 is used for being connected with the USB mouth that is complementary on the external unit, and realizes the usb signal transmission with wireless communication terminal.
The shared interface end 21 of described control circuit board is made up of the pin TX/D+ of a power pin VBUS, transmission data, a pin RX/D-who receives data.
Described serial line interface end 23 is made up of with second pin that a request that is used to be connected described serial plug sends pin PC_RTS first pin of a pin PC_TX who is used to send data, pin PC_RX who is used to receive data, a data terminal ready pin PC_DTR who is used to connect described serial plug;
Described USB interface end 24 is used to send the pin PC_D-that the pin PC_D+ of data and is used to receive data by a power pin PC_VBUS, one and forms;
Described power pin VBUS links to each other with power pin PC_VBUS on the described USB interface end 24, is used to provide the USB port power supply on the wireless communication terminal product that is connected with described shared plug 1; Described two are respectively applied for the pin TX/D+ that transmits and receive data, RX/D-is rs 232 serial interface signal and the shared pin of usb signal, its respectively with described control circuit board 2 on first switch 25 and second switch 26 be electrically connected, be respectively arranged with first contact and second contact that can be electrically connected with described two switches on described first switch 25 and the second switch 26, first switch, first contact 251 is connected with described transmission data pin PC_TX by the RS232 level shifting circuit 28 on the described control circuit board 2, second switch second contact 262 is connected with described reception data pin PC_RX by described RS232 level shifting circuit 28, first switch, second contact 252 is connected with transmission data pin PC_D+ on the described USB interface end 24, second switch first contact 261 is connected with reception data pin PC_D-on the described USB interface end 24, be that the described two switch other ends can link to each other with described second switch second contact 262 by selecteed and described first switch, first contact 251, perhaps link to each other with described second switch first contact 261, thereby constitute single-pole double-throw switch (SPDT) in the high-speed analog switch with described first switch, second contact 252.First pin of described serial line interface end 23 or second pin are electrically connected with first switch 25 and second switch 26 by described RS232 level shifting circuit 28, and a resistance R places between the power pin PC_VBUS of described RS232 level shifting circuit 28 and described USB interface end 24.First switch 25 on the described control circuit board 2, second switch 26 all need ground connection with RS232 level shifting circuit 28, and all need power by the power pin PC_VBUS on the described USB interface end 24.
Compare with the 3rd embodiment with second, use level shifting circuit in the present embodiment, and use high-speed analog switch equally, control by the high-low level signal as single-pole double-throw switch (SPDT) with the RS232 identical typical case with second embodiment.But, being different from the foregoing description, it still is the USB port communications that present embodiment utilizes the idle signal DTR of serial ports or RTS control selection serial communication.
In this embodiment, the USB interface end 24 of described control circuit board 2 links to each other with the USB mouth of PC by USB plug 4 all the time, and the PC_VBUS in the USB interface signal is the entire circuit power supply, and voltage is 5V, and electric current is 500mA.
Specifically tell about the principle of work of the control panel of present embodiment below.
Port at wireless communications products is under the situation of USB mouth, when the test of carrying out product or research and development debugging, needs this wireless communications products port is connected with shared plug 1.Be that high level control select usb communication by control PC serial ports DTR or RTS this moment, and first switch is communicated with the path of second contact 252, and second switch is communicated with the path of first contact 261.Thereby, connect path from shared interface end 21 to USB interface end 24, realize usb communication.
Port at wireless communications products is under the situation of serial ports, when the test of carrying out product or research and development debugging, need this wireless communications products port is connected with shared plug 1, and will be connected with the serial ports of PC with the serial plug 3 (as the DB9 plug) that the serial line interface end 23 of control circuit board 2 links to each other.PC is that serial communication is selected in low level control by control serial ports DTR or RTS, and this moment, first switch was communicated with the path of first contact 251, and second switch is communicated with the path of second contact 262.Thereby, connect path from shared interface end 21 to serial line interface end 23, realize serial communication.
By the control signal from the PC serial ports selection of single-pole double-throw switch (SPDT) is switched, present embodiment can be realized the selection of software control USB or serial communication.Use present embodiment and can avoid needing to change the cable that is complementary because of the difference of port signal type, the compatibility that this has improved production line widely helps the normalization of production line cable.And because described control circuit board 2 can design very for a short time, so it can be arranged in the serial plug 3 (as Fig. 5) more convenient use.Particularly, because usb signal is a high speed signal, for guaranteeing the usb communication quality of signals, the whole piece cable needs to carry out shielding processing by the requirement of USB cable, so communication quality can access good guarantee.
Need to prove that the shared plug of present embodiment can be designed as with the port of wireless communication terminal product suitable.Various dissimilarly also can be connected with the shared plug of present embodiment by breakout box with the wireless communication terminal product of model.First switch, first contact of describing in the present embodiment 251 and second switch second contact 262 can be regarded as the normally closed interlock on the meaning of this area, and first switch, second contact 252 and second switch first contact 261 can be regarded as the normally open contact on the meaning of this area.
The embodiment of the invention five also provides a kind of communication data cable, described cable one end is that the shared plug 1 of serial ports and USB, described shared plug 1 are used for being connected with the port that is complementary on the wireless communication terminal, the other end of described data cable branches out a serial plug 3 and a USB plug 4 by the control circuit board 2 of compatible rs 232 serial interface signal and usb signal, described serial plug 3 is used for being connected with the serial ports that is complementary on the external unit, and described USB plug 4 is used for being connected with the USB mouth that is complementary on the external unit.And the control circuit board 2 of described compatible rs 232 serial interface signal and usb signal can be any control circuit board in the various embodiments described above, and its principle of work is described in detail in preamble, no longer repeats here.
The communication data cable of present embodiment can be arranged on the production line of wireless terminal product in advance, during for production test or when debugging research and development use.The communication data cable of the application of the invention can be realized same cable compatible serial ports and USB port communications simultaneously, can control flexibly and the switching communication port according to actual operating position, and not need to change cable.Use this cable not only compatible serial ports of while and usb communication mode on the production line, and improved the compatibility that produces line, help the normalization of production line cable.The more important thing is that production line does not need to change the communications cable when changing the production product, easy to use flexible.
Though in conjunction with the accompanying drawings real-time scheme of the present invention is described, but be understandable that, above-mentioned embodiment is exemplary, and it is also nonrestrictive, concerning the one of ordinary skilled in the art, can carry out multiple change without departing from the inventive concept of the premise and or or revise this kind change and or or revise and to think in the application scope of disclosure.