CN102023957B - Method for stimulating multiple serial ports by a USB interface for transmitting data and USB compound device - Google Patents

Method for stimulating multiple serial ports by a USB interface for transmitting data and USB compound device Download PDF

Info

Publication number
CN102023957B
CN102023957B CN200910196261A CN200910196261A CN102023957B CN 102023957 B CN102023957 B CN 102023957B CN 200910196261 A CN200910196261 A CN 200910196261A CN 200910196261 A CN200910196261 A CN 200910196261A CN 102023957 B CN102023957 B CN 102023957B
Authority
CN
China
Prior art keywords
control information
interface
transmission
serial port
stitch
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.)
Active
Application number
CN200910196261A
Other languages
Chinese (zh)
Other versions
CN102023957A (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.)
Leadcore Technology Co Ltd
Original Assignee
Leadcore Technology Co Ltd
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 Leadcore Technology Co Ltd filed Critical Leadcore Technology Co Ltd
Priority to CN200910196261A priority Critical patent/CN102023957B/en
Publication of CN102023957A publication Critical patent/CN102023957A/en
Application granted granted Critical
Publication of CN102023957B publication Critical patent/CN102023957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a method for stimulating multiple serial ports by a USB interface for transmitting data and a USB compound device, belonging to the field of data communications. The method comprises the following steps of: transmitting the control information of each simulated serial port on a shared control information interface according to a preset coding mode, wherein the preset coding mode contains the identification information of a simulated port corresponding to the current transmitted control information, and the shared control information interface is a pair of logic connection points EP of the USB interface; transmitting the data information of the simulated serial port on each data interface, wherein the data interface is a pair of EPs beside the EP occupied by the shared control information interface in the USB interface. The device comprises a control information transmission module and a data information transmission module. The method for transmitting the data by the multiple stimulated serial ports of the USB interface and the USB compound device ensure that fewer EP resources are occupied when the USB interface simulates multiple serial ports, and more serial ports can be virtualized.

Description

USB interface is simulated the method and the USB equipment complex of many serial ports transmission data
Technical field
The present invention relates to the data communication field, particularly a kind of USB interface is simulated the method and the USB equipment complex of many serial ports transmission data.
Background technology
Serial ports once had very to be used widely, the most commonly adopts the DB9 interface shape to see also table 1:
Figure G2009101962614D00011
Table 1
For USB device; Each USB device has one or more EP (endpoint; The logic tie point) inside, each EP has four kinds of data modes usually: control (Control) transmission mode, synchronous (isochronous) transmission mode, interruption (interrupt) transmission mode and batch (bulk) transmission mode.
Combination for ejusdem generis one group of EP is called IF (interface, interface) usually, just can be referred to as USB equipment complex (composite device) if a USB device comprises a more than IF.
Along with the rise of USB interface, equipment such as some computing machines no longer provide the hardware interface of serial ports (also being com port), carry out data communication yet a lot of software is based on serial ports, so the solution of USB interface virtual serial port just occurred utilizing.
In the prior art, utilize the method for USB interface simulative serial port to be specially: to use the level state of a pair of EP, i.e. the data message of analog transmission RXD, TXD stitch through bulk transfer mode simulative serial port RXD, TXD stitch; Use other a pair of EP to adopt the level state that interrupts transmission mode transmission other stitch except that RXD, TXD, the i.e. control information of analog transmission stitch except that RXD, TXD.That is to say that in the prior art, simulating a serial ports needs an IF who comprises 4 EP.
Referring to Fig. 1, suppose that a USB equipment complex has 14 EP resources (not comprising that the usb protocol standard has specifically defined EP0).Can use EP1-EP4, EP5-EP8, EP9-EP12 to form 3 IF respectively, promptly fictionalize 3 serial ports respectively.Wherein every line between serial ports and the IF is called a PIPE (pipeline); Take an EP resource of USB equipment complex; The PIPE that thick line is represented among Fig. 1 is used for transmitting the control information of RXD, TXD stitch, and the PIPE that fine rule is represented is used for transmitting the control information of stitch except that RXD, TXD.This moment, this USB equipment complex can be simulated 3 serial ports, EP13, EP14 waste.
In the embodiment of the present invention process; The inventor finds to have following problem in the prior art at least: when the prior USB interface is simulated many serial ports; Because the EP resource of USB equipment complex is limited; It is too much that a virtual more comprehensive serial ports of function ratio takies the EP resource, but cause the virtual serial port number limited.
Summary of the invention
Method and USB equipment complex that the present invention provides a kind of USB interface to simulate many serial ports, but take the too much limited problem of virtual serial port number that causes of EP resource when simulating many serial ports to solve owing to existing USB interface.
On the one hand, provide a kind of USB interface to simulate the method for many serial ports transmission data, comprising:
On shared control information interface, transmit the control information of each simulative serial port according to presetting coded system; Comprise in the said preset coded system this control information transmission the identification information of corresponding simulative serial port; Said shared control information interface is a pair of EP of said USB interface except that logic tie point EP0; With
The data message of this simulative serial port of transmission on each data-interface; Said data-interface is shared EP of shared control information interface described in the said USB interface and the outer a pair of EP of EP0.
On shared control information interface, adopt the interruption transmission mode to comprise according to the control information of preset each simulative serial port of coded system transmission:
To the control information of this transmission, and this control information corresponding simulating serial ports numbering is carried out encoding process;
On shared control information interface, adopt and interrupt the control information of transmission mode transmission through encoding process.
To the control information of this transmission, and this control information corresponding simulating serial ports numbering is carried out encoding process and is comprised:
A plurality of Serial Port Informations are set describe byte, describe the control information of this transmission of byte-identifier respectively with said Serial Port Information, and this control information corresponding simulating serial ports numbering.
Said Serial Port Information is described byte and is comprised: simulative serial port numbering description field, RI stitch control information description field, DCD stitch control information description field, DSR stitch control information description field, DTR stitch control information description field, CTS stitch control information description field and RTS pin foot control system information description field.
On the other hand, a kind of USB equipment complex is provided, comprises:
The control information transport module is used on shared control information interface according to the control information of presetting each simulative serial port of coded system transmission; Comprise in the said preset coded system this control information transmission the identification information of corresponding simulative serial port; Said shared control information interface is a pair of EP of said USB interface except that logic tie point EP0;
The data information transfer module is used on each data-interface the data message of this simulative serial port of transmission; Said data-interface is shared EP of shared control information interface described in the said USB interface and the outer a pair of EP of EP0.
Said control information transport module comprises:
Coding unit is used for the control information to this transmission, and this control information corresponding simulating serial ports numbering is carried out encoding process; With
Interrupt transmission unit, be used on shared control information interface, adopting the control information of interruption transmission mode transmission through said coding unit encoding process.
Said coding unit is specially byte and describes coding unit, is used to be provided with a plurality of Serial Port Informations and describes byte, describes the control information of this transmission of byte-identifier respectively with said Serial Port Information, and this control information corresponding simulating serial ports numbering.
Said Serial Port Information is described byte and is comprised: simulative serial port numbering description field, RI stitch control information description field, DCD stitch control information description field, DSR stitch control information description field, DTR stitch control information description field, CTS stitch control information description field and RTS pin foot control system information description field.
A kind of USB interface provided by the invention is simulated the method and the USB equipment complex of many serial ports transmission data; Beneficial effect is: with a pair of EP as an independently shared control information interface; According to the control information of the DCD that presets all simulative serial ports of coded system transmission, DTR, DSR, RTS, RI, CTS stitch, among the residue EP, every couple of EP is as a data interface; Transmit the RXD of this simulative serial port, the data message of TXD stitch; Thereby make when USB interface is simulated many serial ports, take less EP resource, can virtual more serial ports.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the synoptic diagram of a kind of USB interface simulative serial port in the prior art;
Fig. 2-1 simulates many serial ports method flow diagram for a kind of USB interface that the embodiment of the invention provides;
Fig. 2-2 transmits each serial ports control information flow process figure on shared control information interface in the embodiment of the invention;
A kind of USB interface that Fig. 3 provides for the embodiment of the invention is simulated an instantiation synoptic diagram of many serial ports method;
The structured flowchart of a kind of USB equipment complex that Fig. 4 provides for the embodiment of the invention;
Fig. 5 is the structured flowchart of control information transport module in the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
In the prior art, when USB interface is simulated many serial ports, because the EP resource of USB equipment complex is limited; It is too much that a virtual more comprehensive serial ports of function ratio takies the EP resource, but cause the virtual serial port number limited, therefore; The method that the embodiment of the invention provides a kind of USB interface to simulate many serial ports transmission data, adopts and interrupts the control information of transmission mode according to the DCD that presets all simulative serial ports of coded system transmission, DTR, DSR, RTS, RI, CTS stitch as an independently shared control information interface with a pair of EP; Among the residue EP; Every couple of EP transmits the RXD of this simulative serial port, the data message of TXD stitch, thereby makes when USB interface is simulated many serial ports as a data interface; Take less EP resource, can virtual more serial ports.
Embodiment one
Referring to Fig. 2, the embodiment of the invention provides a kind of USB interface to simulate the method for many serial ports transmission data, comprises the steps:
S201: on shared control information interface, transmit the control information of the DCD of each simulative serial port, DTR, DSR, RTS, RI, CTS stitch according to presetting coded system.
Wherein, comprise in the said preset coded system this control information transmission the identification information of corresponding simulative serial port.
Said shared control information interface is a pair of EP of said USB interface except that logic tie point EP0.Since EP0 be have in the usb protocol standard specifically defined, different from other EP other purposes, can not be used for virtual serial port.
Wherein, shared control information interface comprises 2 EP, and interrupting transmission mode and bulk transfer mode is the characteristic of EP.Each interior EP of shared control information interface can adopt identical transmission mode, also can adopt different transmission modes.Preferably, adopt the interruption transmission mode to transmit the control information of the DCD of each simulative serial port, DTR, DSR, RTS, RI, CTS stitch.
S202: the RXD of this simulative serial port of transmission, the data message of TXD stitch on each data-interface; Wherein, said data-interface is shared EP of shared control information interface described in the said USB interface and the outer a pair of EP of EP0.Since EP0 be have in the usb protocol standard specifically defined, different from other EP other purposes, can not be used for virtual serial port
Wherein, each data-interface comprises 2 EP, and interrupting transmission mode and bulk transfer mode is the characteristic of EP.Each interior EP of data interface can adopt identical transmission mode, also can adopt different transmission modes.Preferably, adopt the bulk transfer mode to transmit the RXD of corresponding simulative serial port, the data message of TXD stitch.
In practical application, the order of not strict restriction above-mentioned steps can first execution in step S202, and execution in step S201 also can carry out with rapid S202 by step S201 in the lump again.
Form shared control information interface by 1 couple of EP, when the control information of each simulative serial port DCD of transmission, DTR, DSR, RTS, RI, CTS stitch, wherein 1 EP is used for receiving, and other 1 EP is used for sending.
Same, each data-interface also is made up of 1 couple of EP, when the data message of the RXD that transmits this simulative serial port, TXD stitch, also is that wherein 1 EP is used for receiving, and other 1 EP is used for sending.
Interrupt transmission mode; Promptly when the level state of certain stitch in the DCD of certain simulative serial port, DTR, DSR, RTS, RI, these 6 stitch of CTS changes, just produce look-at-me, get into interrupt handling routine; In Interrupt Process, transmit the control information of this stitch.Because the data rate of USB interface is higher than the data rate of serial ports far away, therefore, can adopts fully and interrupt the control information that transmission mode is implemented in DCD that a pair of EP goes up all simulative serial ports of transmission, DTR, DSR, RTS, RI, CTS stitch.
Preferably, above-mentioned steps S201 comprises following substep according to the control information of preset each simulative serial port of coded system transmission on shared control information interface:
Substep S2011: to the control information of this transmission, and this control information corresponding simulating serial ports numbering is carried out encoding process;
Substep S2012: transmission is through the control information of encoding process on shared control information interface.
Among the above-mentioned substep S2011; Control information to this transmission; And this control information corresponding simulating serial ports numbering carries out encoding process accomplished in many ways can be arranged, and in the embodiment of the invention, preferably can be: a plurality of Serial Port Informations are set describe byte; The control information of this transmission of byte-identifier is described with said Serial Port Information respectively, and this control information corresponding simulating serial ports numbering.
Wherein, Serial Port Information is described byte and is comprised: simulative serial port numbering description field, RI stitch control information description field, DCD stitch control information description field, DSR stitch control information description field, DTR stitch control information description field, CTS stitch control information description field and RTS pin foot control system information description field.
Preferably, the simulative serial port number field takies 4bits, RI stitch control information description field and takies 1bit, DCD stitch control information description field and take 1bit, DSR stitch control information description field and take that 1bit, DTR stitch control information description field take 1bit, CTS stitch control information description field takies 1bit and RTS pin foot control system information description fields account is used 1bit.
Preferably, because control information of DSR stitch and the control information of DTR stitch are corresponding, control information of CTS stitch and RTS pin foot control system information are corresponding.Therefore; For sending and receive two kinds of situation; Control information of DSR stitch and the control information of DTR stitch can identify with a corresponding description field, and control information of CTS stitch and RTS pin foot control system information can identify with a corresponding description field.
Concrete, illustrate, can use a byte to realize preset coded system, wherein choose 4bit and number description field as simulative serial port, be used to identify the pairing simulative serial port numbering of control information of this transmission; Residue 4bit is used to identify the control information of this transmission; Wherein: 1bit is used to describe the control information of RI stitch; 1bit is used to describe the control information of DCD stitch, and 1bit is used to describe the control information of DSR/DTR stitch, and 1bit is used to describe the control information of CTS/RTS stitch.
Referring to table 2, wherein B4~b7 is used to describe the simulative serial port numbering, and B3 is used to describe the control information of CTS/RTS stitch, and B2 is used to describe the control information of DSR/DTR stitch, and B1 is used to describe the control information of RI stitch, and B0 is used to describe the control information of DCD stitch.
Figure G2009101962614D00081
Table 2
Wherein, when this USB multiplexing equipment during as receiving end, the Serial Port Information that receives is described in the byte, and B3 is used to describe the control information of CTS stitch, and B2 is used to describe the control information of DSR stitch, and is detailed in table 3:
Figure G2009101962614D00082
Table 3
When this USB multiplexing equipment during as transmitting terminal, the Serial Port Information of transmission is described in the byte, and B3 is used to describe RTS pin foot control system information, and B2 is used to describe the control information of DTR stitch, and is detailed in table 4:
Figure G2009101962614D00083
Table 4
The USB interface that the embodiment of the invention provides is simulated in the method for many serial ports transmission data, drives each virtual simulative serial port through the control information of reading and writing shared control information interface transmission.
A kind of USB interface that the embodiment of the invention provides is simulated the method for many serial ports, as an independently shared control information interface, transmits the control information of the DCD of all simulative serial ports, DTR, DSR, RTS, RI, CTS stitch according to presetting coded system with a pair of EP; Among the residue EP; Every couple of EP transmits the RXD of this simulative serial port, the data message of TXD stitch, thereby makes when USB interface is simulated many serial ports as a data interface; Take less EP resource, can virtual more serial ports.
Embodiment two
Referring to Fig. 3, for a kind of USB interface that the embodiment of the invention provides is simulated the instantiation that many serial ports transmit data methods:
USB equipment complex with 14 EP is formed shared control information interface, i.e. IF0 with EP1, EP2; Two one group of all the other EP, this group EP only is used to adopt the bulk transfer mode to transmit the data message of RXD, TXD stitch, and every group constitutes an IF.Then the virtual simulative serial port of IF0 and each IF difference is visible, can simulate 6 serial ports in the present embodiment at most.The shared control information interface (being IF0) that utilizes EP1, EP2 to form adopts and interrupts transmission mode is transmitted above-mentioned 6 simulative serial port DCD, DTR, DSR, RTS, RI, CTS stitch according to preset coded system control information.Same, preset coded system also can specifically adopt the form that provides like above-mentioned table 2 in the embodiment of the invention.Wherein, the control information through read-write IF0 corresponding virtual device transmission drives each virtual each simulative serial port that comes out, shown in dotted line among Fig. 3.
The USB interface that the embodiment of the invention provides is simulated in the instance of method of many serial ports; With a pair of EP as an independently shared control information interface; Adopt and interrupt the control information of transmission mode according to the DCD that presets all simulative serial ports of coded system transmission, DTR, DSR, RTS, RI, CTS stitch, among the residue EP, every couple of EP is as a data interface; Adopt the bulk transfer mode to transmit the RXD of this simulative serial port, the data message of TXD stitch; Thereby make when USB interface is simulated many serial ports, take less EP resource, can virtual more serial ports.
Embodiment three
Referring to Fig. 4, the embodiment of the invention provides a kind of USB equipment complex, comprising:
Control information transport module 401 is used on shared control information interface according to the control information of presetting each simulative serial port of coded system transmission; Comprise in the said preset coded system this control information transmission the identification information of corresponding simulative serial port; Said shared control information interface is a pair of EP of said USB interface except that logic tie point EP0.Since EP0 be have in the usb protocol standard specifically defined, different from other EP other purposes, can not be used for virtual serial port
Wherein, shared control information interface comprises 2 EP, and interrupting transmission mode and bulk transfer mode is the characteristic of EP.Each interior EP of shared control information interface can adopt identical transmission mode, also can adopt different transmission modes.Preferably, adopt the interruption transmission mode to transmit the control information of the DCD of each simulative serial port, DTR, DSR, RTS, RI, CTS stitch.
Data information transfer module 402 is used on each data-interface the data message of this simulative serial port of transmission; Said data-interface is shared EP of shared control information interface described in the said USB interface and the outer a pair of EP of EP0.Since EP0 be have in the usb protocol standard specifically defined, different from other EP other purposes, can not be used for virtual serial port
Wherein, each data-interface comprises 2 EP, and interrupting transmission mode and bulk transfer mode is the characteristic of EP.Each interior EP of data interface can adopt identical transmission mode, also can adopt different transmission modes.Preferably, adopt the bulk transfer mode to transmit the RXD of corresponding simulative serial port, the data message of TXD stitch.
Wherein, shared control information interface is made up of 1 couple of EP, and when the control information of each simulative serial port DCD of transmission, DTR, DSR, RTS, RI, CTS stitch, wherein 1 EP is used for receiving, and other 1 EP is used for sending.
Same, each data-interface also is made up of 1 couple of EP, when the data message of the RXD that transmits this simulative serial port, TXD stitch, also is that wherein 1 EP is used for receiving, and other 1 EP is used for sending.
Interrupt transmission mode; Promptly when the level state of certain stitch in the DCD of certain simulative serial port, DTR, DSR, RTS, RI, these 6 stitch of CTS changes, just produce look-at-me, get into interrupt handling routine; In Interrupt Process, transmit the control information of this stitch.Because the data rate of USB interface is higher than the data rate of serial ports far away, therefore, can adopts fully and interrupt the control information that transmission mode is implemented in DCD that a pair of EP goes up all simulative serial ports of transmission, DTR, DSR, RTS, RI, CTS stitch.
Referring to Fig. 5, above-mentioned control information transport module 401 comprises:
Coding unit 501 is used for the control information to this transmission, and this control information corresponding simulating serial ports numbering is carried out encoding process; With
Interrupt transmission unit 502, be used on shared control information interface, transmitting control information through said coding unit 501 encoding process.
Said coding unit can have multiple implementation; In the embodiment of the invention; Said coding unit is specially byte and describes coding unit; Be used to be provided with a plurality of Serial Port Informations and describe byte, describe the control information of this transmission of byte-identifier respectively with said Serial Port Information, and this control information corresponding simulating serial ports numbering.
Wherein, said Serial Port Information is described byte and is comprised: simulative serial port numbering description field, RI stitch control information description field, DCD stitch control information description field, DSR stitch control information description field, DTR stitch control information description field, CTS stitch control information description field and RTS pin foot control system information description field.
Preferably, the simulative serial port number field takies 4bits, RI stitch control information description field and takies 1bit, DCD stitch control information description field and take 1bit, DSR stitch control information description field and take that 1bit, DTR stitch control information description field take 1bit, CTS stitch control information description field takies 1bit and RTS pin foot control system information description fields account is used 1bit.
Preferably, because control information of DSR stitch and the control information of DTR stitch are corresponding, control information of CTS stitch and RTS pin foot control system information are corresponding.Therefore for sending and receive two kinds of situation; Control information of DSR stitch and the control information of DTR stitch can identify with a corresponding description field, and control information of CTS stitch and RTS pin foot control system information also can identify with a corresponding description field.
Concrete, illustrate, can use a byte to realize preset coded system, wherein choose 4bit and number description field as simulative serial port, be used to identify the pairing simulative serial port numbering of control information of this transmission; Residue 4bit is used to identify the control information of this transmission; Wherein: 1bit is used to describe the control information of RI stitch; 1bit is used to describe the control information of DCD stitch, and 1bit is used to describe the control information of DSR/DTR stitch, and 1bit is used to describe the control information of CTS/RTS stitch.Such as, its coded system can specifically adopt the form that provides like above-mentioned table 2-table 4.
In the USB multiplexing equipment that the embodiment of the invention provides, drive virtual each simulative serial port that comes out through the control information of reading and writing the transmission of shared control information interface.
A kind of USB multiplexing equipment that the embodiment of the invention provides as an independently shared control information interface, transmits the control information of the DCD of all simulative serial ports, DTR, DSR, RTS, RI, CTS stitch according to presetting coded system with a pair of EP; Among the residue EP; Every couple of EP transmits the RXD of this simulative serial port, the data message of TXD stitch, thereby makes when USB interface is simulated many serial ports as a data interface; Take less EP resource, can virtual more serial ports.
Need to prove; In this article; Term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability; Thereby make to comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Under the situation that do not having much more more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises said key element and also have other identical element.
One of ordinary skill in the art will appreciate that; Realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium; This program comprises that some instructions are in order to carry out the described method of each embodiment of the present invention when carrying out.Storage medium described here, as: ROM/RAM, magnetic disc, CD etc.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All any modifications of within spirit of the present invention and principle, being done, be equal to replacement, improvement etc., all be included in protection scope of the present invention.

Claims (8)

1. a USB interface is simulated the method that many serial ports transmit data, it is characterized in that, comprising:
On shared control information interface, adopt and interrupt the control information of transmission mode according to preset each simulative serial port of coded system transmission; Comprise in the said preset coded system this control information transmission the identification information of corresponding simulative serial port; Said shared control information interface is a pair of EP of said USB interface except that logic tie point EP0; With
The data message of this simulative serial port of transmission on each data-interface; Said data-interface is shared EP of shared control information interface described in the said USB interface and the outer a pair of EP of EP0.
2. simulate the method for many serial ports transmission data according to the said USB interface of claim 1, it is characterized in that, on shared control information interface, adopt the interruption transmission mode to comprise according to the control information of preset each simulative serial port of coded system transmission:
To the control information of this transmission, and this control information corresponding simulating serial ports numbering is carried out encoding process;
On shared control information interface, adopt and interrupt the control information of transmission mode transmission through encoding process.
3. simulate the method for many serial ports transmission data according to the said USB interface of claim 2, it is characterized in that, to the control information of this transmission, and this control information corresponding simulating serial ports numbering is carried out encoding process and is comprised:
A plurality of Serial Port Informations are set describe byte, describe the control information of this transmission of byte-identifier respectively with said Serial Port Information, and this control information corresponding simulating serial ports numbering.
4. simulate the method for many serial ports transmission data according to the said USB interface of claim 3; It is characterized in that said Serial Port Information is described byte and comprised: simulative serial port number field, RI stitch control information description field, DCD stitch control information description field, DSR stitch control information description field, DTR stitch control information description field, CTS stitch control information description field and RTS pin foot control system information description field.
5. a USB equipment complex is characterized in that, comprising:
The control information transport module is used on shared control information interface, adopting and interrupts transmission mode according to the control information of presetting each simulative serial port of coded system transmission; Comprise in the said preset coded system this control information transmission the identification information of corresponding simulative serial port; Said shared control information interface is a pair of EP of said USB interface except that logic tie point EP0;
The data information transfer module is used on each data-interface the data message of this simulative serial port of transmission; Said data-interface is shared EP of shared control information interface described in the said USB interface and the outer a pair of EP of EP0.
6. according to the said USB equipment complex of claim 5, it is characterized in that said control information transport module comprises:
Coding unit is used for the control information to this transmission, and this control information corresponding simulating serial ports numbering is carried out encoding process; With
Interrupt transmission unit, be used on shared control information interface, adopting the control information of interruption transmission mode transmission through said coding unit encoding process.
7. according to the said USB equipment complex of claim 6; It is characterized in that; Said coding unit is specially byte and describes coding unit; Be used to be provided with a plurality of Serial Port Informations and describe byte, describe the control information of this transmission of byte-identifier respectively with said Serial Port Information, and this control information corresponding simulating serial ports numbering.
8. according to the said USB equipment complex of claim 7; It is characterized in that said Serial Port Information is described byte and comprised: simulative serial port numbering description field, RI stitch control information description field, DCD stitch control information description field, DSR stitch control information description field, DTR stitch control information description field, CTS stitch control information description field and RTS pin foot control system information description field.
CN200910196261A 2009-09-18 2009-09-18 Method for stimulating multiple serial ports by a USB interface for transmitting data and USB compound device Active CN102023957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910196261A CN102023957B (en) 2009-09-18 2009-09-18 Method for stimulating multiple serial ports by a USB interface for transmitting data and USB compound device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910196261A CN102023957B (en) 2009-09-18 2009-09-18 Method for stimulating multiple serial ports by a USB interface for transmitting data and USB compound device

Publications (2)

Publication Number Publication Date
CN102023957A CN102023957A (en) 2011-04-20
CN102023957B true CN102023957B (en) 2012-10-17

Family

ID=43865269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910196261A Active CN102023957B (en) 2009-09-18 2009-09-18 Method for stimulating multiple serial ports by a USB interface for transmitting data and USB compound device

Country Status (1)

Country Link
CN (1) CN102023957B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683205A (en) * 2015-02-14 2015-06-03 谭旗 Method and device for transmitting data in parallel between intelligent terminals
JP2020514700A (en) * 2016-12-30 2020-05-21 ニュースケール パワー エルエルシー Reactor protection system and method
CN107911372B (en) * 2017-11-24 2021-01-26 杭州迪普科技股份有限公司 Method and device for realizing access of serial device to Ethernet based on logic device
CN108804362A (en) * 2018-06-08 2018-11-13 北京无线电测量研究所 Serial ports bulk data transmission method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525340A (en) * 2003-06-03 2004-09-01 北京中星微电子有限公司 Multimode digital video device
CN1648888A (en) * 2004-01-26 2005-08-03 松下电器产业株式会社 Data communication system
US7051124B2 (en) * 2001-05-14 2006-05-23 Seiko Epson Corporation Data transfer control device, electronic equipment, and data transfer control method
CN101056243A (en) * 2007-05-25 2007-10-17 中兴通讯股份有限公司 Method for realizing the radio universal serial bus data transmission

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7051124B2 (en) * 2001-05-14 2006-05-23 Seiko Epson Corporation Data transfer control device, electronic equipment, and data transfer control method
CN1525340A (en) * 2003-06-03 2004-09-01 北京中星微电子有限公司 Multimode digital video device
CN1648888A (en) * 2004-01-26 2005-08-03 松下电器产业株式会社 Data communication system
CN101056243A (en) * 2007-05-25 2007-10-17 中兴通讯股份有限公司 Method for realizing the radio universal serial bus data transmission

Also Published As

Publication number Publication date
CN102023957A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
CN104620564B (en) Apparatus and method for the transmission of the multi-protocol data element via the interface using data tunnel
CN1551592B (en) Data transmission control device, electronic device and data transmission control method
CN102023957B (en) Method for stimulating multiple serial ports by a USB interface for transmitting data and USB compound device
CN101061468A (en) System, method, and apparatus for extended serial peripheral interface
CN102855199B (en) Data processing equipment and data processing equipment
CN204833236U (en) Support memory system of hybrid storage
JP4004308B2 (en) USB control circuit with automatic path switching
CN101523364A (en) MAC and PHY interface arrangement
CN101493808B (en) Serial using method and multi-core processor
CN103823785A (en) Multi-way ARINC429 data transmit-receive circuit structure based on development of DSP and CPLD
US20080162974A1 (en) Universal serial bus host controller
CN101689159B (en) Token protocol
CN104571942A (en) Data storage system and method analyzing non-signal
CN102388359B (en) Method and device for remaining signal sequence
CN202535382U (en) Bidirectional data transmission system of industrial controller and human-machine interface
US9411760B2 (en) System and method for a thin-client terminal system with a local screen buffer using a serial bus
CN102880576B (en) Method for simulating multiple groups of UART interfaces based on STM32F103VE chip
CN103514125B (en) Main control electronic device and main control end operational approach
CN202854805U (en) Data transmission line
CN102096447B (en) X86-based computer
CN201004223Y (en) Interface host bridging device based on serial high-rank connection technology
CN104503928A (en) Random memory circuit based on queue management
CN100538679C (en) A kind of method and device that improves compatibility of man-machne interface device
CN103778023B (en) Communication means and access device between access device and control device
CN217880194U (en) Mainboard based on godson processor carries on two bridge pieces

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20110420

Assignee: Shanghai Li Ke Semiconductor Technology Co., Ltd.

Assignor: Leadcore Technology Co., Ltd.

Contract record no.: 2018990000159

Denomination of invention: Method for stimulating multiple serial ports by a USB interface for transmitting data and USB compound device

Granted publication date: 20121017

License type: Common License

Record date: 20180615

EE01 Entry into force of recordation of patent licensing contract