Data transmission device and data transmission system
By designing a data transmission device including interface conversion chips and processing chips, adjusting the parallel port characteristics of the DB25 interface, the problem of poor universality of special parallel port adaptation devices is solved, and the adaptation and data communication of various parallel port devices is realized, reducing the cost.
Patent Information
- Application Number
- CN202011152405.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-23
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-10-23
AI Technical Summary
The existing dedicated parallel port adapter devices for data transmission are poor in popularity and cannot be adapted to different types of parallel port equipment, resulting in users needing to purchase manufacturer-specific adapter devices, which are expensive and cannot be generalized.
A data transmission device is designed, including an interface conversion chip, a processing chip and a DB25 interface. It is connected to the upper computer through a USB interface. The interface conversion chip converts the USB signal into a UART signal, and adjusts the parallel port characteristics of the DB25 interface according to the characteristics of the parallel port device. , enables the device to adapt to various parallel devices to realize data communication.
By adjusting the parallel port characteristics of the DB25 interface, this device can adapt to various parallel port equipment, which improves universality, reduces user cost, and solves the problem of poor universality of special adapter devices.
Smart Images

Figure CN112181884B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communications, and in particular to a data transmission device and a data transmission system. Background Art
[0002] The parallel port is a data communication interface defined by the IEEE1284 standard, in which data is transmitted simultaneously in bytes. The IEEE1284 standard defines a variety of parallel interface data transmission modes, among which the basic mode is the Standard Parallel Port, or SPP mode for short. The connector used by the parallel port is specified in IEEE1284 to use a DB25 connector on the host side. Figure 1 The appearance and signal description of the DB25 connector are given. When the parallel port uses the SPP mode to transmit data, the signal timing relationship is as follows Figure 2 shown.
[0003] In recent years, as personal computer products have been upgraded and replaced towards thinner and lighter, the DB25 parallel port on traditional personal computers has been gradually eliminated and replaced by USB-parallel port adapters. Users need to connect the personal computer and parallel port device through a USB-parallel port adapter and install the adapter driver on the personal computer.
[0004] However, since the USB-parallel port adapter cable can only be used for parallel port devices that comply with IEEE1284, it is not possible to use this cable to communicate data with dedicated parallel port devices other than printers. For dedicated parallel port devices other than printers, users need to purchase dedicated parallel port adapters from the device manufacturer to achieve communication with such devices. Dedicated parallel port adapters are often expensive, and dedicated parallel port adapters from different device manufacturers are not universal, and have poor universality.
[0005] In summary, the existing dedicated parallel port adapter for data transmission has the technical problem of poor universality. Summary of the invention
[0006] In view of this, an object of the present invention is to provide a data transmission device and a data transmission system to alleviate the technical problem of poor universality of existing dedicated parallel port adapters for data transmission.
[0007] In a first aspect, an embodiment of the present invention provides a data transmission device, comprising: an interface conversion chip, a processing chip and a DB25 interface;
[0008] Among them, one end of the interface conversion chip is connected to the host computer through the USB interface, the other end of the interface conversion chip is connected to one end of the processing chip, the other end of the processing chip is connected to one end of the DB25 interface, and the other end of the DB25 interface is connected to the parallel port device;
[0009] The interface conversion chip is used to receive the USB signal sent by the host computer, and convert the USB signal into a UART signal, and then send the UART signal to the processing chip through a signal transmission channel;
[0010] The processing chip is used to change the parallel port characteristics of the DB25 interface according to the UART signal, or to convert the data to be transmitted in the UART signal into target data, so as to send the target data to the parallel port device through the DB25 interface, and the target data is data that conforms to the current parallel port characteristics of the DB25 interface.
[0011] Further, the interface conversion chip includes: a USB-UART conversion chip;
[0012] The USB-UART conversion chip is used to receive the USB signal sent by the host computer, and convert the USB signal into the UART signal, and then send the UART signal to the processing chip through the target signal transmission channel;
[0013] Among them, when the information in the UART signal is configuration information, the target signal transmission channel is a configuration information transmission channel; when the information in the UART signal is data to be transmitted, the target signal transmission channel is a data transmission channel.
[0014] Further, the processing chip includes: an interface configuration circuit and a data forwarding circuit;
[0015] The interface configuration circuit is connected to the USB-UART conversion chip through the configuration information transmission channel;
[0016] The data forwarding circuit is connected to the USB-UART conversion chip through the data transmission channel.
[0017] Furthermore, the parallel port characteristics include: the correspondence between the data bit and the DB25 pin position, and the width of the data latch signal pulse.
[0018] Furthermore, the processing chip includes: an FPGA chip.
[0019] Further, it also includes: a housing;
[0020] The interface conversion chip, the processing chip and the DB25 interface are arranged in the housing.
[0021] Furthermore, the DB25 interface includes at least one of the following: a male DB25 interface and a female DB25 interface.
[0022] In a second aspect, an embodiment of the present invention further provides a data transmission system, comprising: the data transmission device according to any one of the above-mentioned first aspects, further comprising: a host computer and a parallel port device;
[0023] The host computer and the parallel port device are connected via the data transmission device, so as to realize data communication between the host computer and the parallel port device via the data transmission device.
[0024] Furthermore, the host computer includes: a computer.
[0025] Furthermore, the host computer is provided with parallel port characteristic configuration software.
[0026] In an embodiment of the present invention, the data transmission device includes: an interface conversion chip, a processing chip and a DB25 interface; wherein one end of the interface conversion chip is connected to the host computer through the USB interface, the other end of the interface conversion chip is connected to one end of the processing chip, the other end of the processing chip is connected to one end of the DB25 interface, and the other end of the DB25 interface is connected to the parallel port device; the interface conversion chip is used to receive the USB signal sent by the host computer, and convert the USB signal into a UART signal, and then send the UART signal to the processing chip; the processing chip is used to change the parallel port characteristics of the DB25 interface according to the UART signal, so that data communication can be achieved between the host computer and the parallel port device through the data transmission device, or, convert the data to be transmitted in the UART signal into target data, so as to send the target data to the parallel port device through the DB25 interface, and the target data is data consistent with the current parallel port characteristics of the DB25 interface. From the above description, it can be seen that in the data transmission device of the present invention, the parallel port characteristics of the DB25 interface can be changed by the host computer so that data communication can be achieved between the host computer and the parallel port device through the data transmission device. That is, the parallel port characteristics of the DB25 interface in the data transmission device are adjustable, so that the data transmission device can adapt to connect to various parallel port devices, with good universality, alleviating the technical problem of poor universality of existing dedicated parallel port adapters for data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A schematic diagram of the appearance and signal description of a DB25 connector provided in an embodiment of the present invention;
[0029] Figure 2 A schematic diagram of the signal timing relationship of the DB25 connector provided in an embodiment of the present invention;
[0030] Figure 3 A schematic diagram of the structure of a data transmission device provided by an embodiment of the present invention;
[0031] Figure 4 Another schematic diagram of the structure of a data transmission device provided by an embodiment of the present invention;
[0032] Figure 5 A schematic diagram of the circuit structure of a processing chip and a DB25 interface provided in an embodiment of the present invention.
[0033] Icon: 11-interface conversion chip; 12-processing chip; 13-DB25 interface; 121-interface configuration circuit; 122-data forwarding circuit. DETAILED DESCRIPTION
[0034] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] To facilitate understanding of this embodiment, a data transmission device disclosed in an embodiment of the present invention is first introduced in detail.
[0036] Embodiment 1:
[0037] Figure 3 is a schematic diagram of the structure of a data transmission device according to an embodiment of the present invention. Figure 3 As shown, the data transmission device includes: an interface conversion chip 11, a processing chip 12 and a DB25 interface 13;
[0038] Among them, one end of the interface conversion chip 11 is connected to the host computer through the USB interface, the other end of the interface conversion chip 11 is connected to one end of the processing chip 12, the other end of the processing chip 12 is connected to one end of the DB25 interface 13, and the other end of the DB25 interface 13 is connected to the parallel port device;
[0039] The interface conversion chip 11 is used to receive the USB signal sent by the host computer, and convert the USB signal into a UART signal, and then send the UART signal to the processing chip 12;
[0040] The processing chip 12 is used to change the parallel port characteristics of the DB25 interface 13 according to the UART signal so that data communication can be achieved between the host computer and the parallel port device through the data transmission device, or to convert the data to be transmitted in the UART signal into target data so as to send the target data to the parallel port device through the DB25 interface 13. The target data is data that conforms to the current parallel port characteristics of the DB25 interface 13.
[0041] In an optional embodiment of the present invention, when the interface conversion chip 11 of the data transmission device is connected to the USB interface of the host computer, and when the DB25 interface 13 of the data transmission device is connected to the parallel port device, the processing chip 12 can identify the parallel port characteristics of the parallel port device through the DB25 interface 13, and then send the identified parallel port characteristics to the host computer through the interface conversion chip 11. The host computer is provided with parallel port characteristic configuration software. If the identified parallel port characteristics are pre-stored parallel port characteristics, the parallel port characteristic configuration software in the host computer directly sends a USB signal carrying configuration information consistent with the above parallel port characteristics to the interface conversion chip 11 through the USB interface, and then the interface conversion chip 11 receives the USB signal sent by the host computer, and converts the USB signal into a UART signal, and then sends the UART signal to the processing chip 12, so that the processing chip 12 changes the parallel port characteristics of the DB25 interface 13 according to the UART signal, thereby realizing data communication between the host computer and the parallel port device;
[0042] In another optional embodiment of the present invention, when the interface conversion chip 11 of the data transmission device is connected to the USB interface of the host computer, and when the DB25 interface 13 of the data transmission device is connected to the parallel port device, if the processing chip 12 does not recognize the parallel port characteristics of the parallel port device, the parallel port characteristics can be programmed through the parallel port characteristic configuration software in the host computer. The so-called programming can be to set the following parallel port characteristics in the parallel port characteristic configuration software: the correspondence between the data bit and the DB25 pin position, the width of the data latch signal pulse, and then the host computer sends the programming information containing the parallel port characteristics to the interface conversion chip 11 through the USB interface, and then the interface conversion chip 11 receives the USB signal sent by the host computer, and converts the USB signal into a UART signal, and then sends the UART signal to the processing chip 12, so that the processing chip 12 changes the parallel port characteristics of the DB25 interface 13 according to the UART signal, thereby realizing data communication between the host computer and the parallel port device;
[0043] If the configuration of the parallel port characteristics is completed, when data is transmitted between the host computer and the parallel port device, the host computer sends a USB signal carrying the data to be transmitted to the interface conversion chip 11 through the USB interface, and then the interface conversion chip 11 receives the USB signal sent by the host computer, and converts the USB signal into a UART signal, and then sends the UART signal to the processing chip 12, so that the processing chip 12 converts the data to be transmitted in the UART signal into target data, so as to send the target data to the parallel port device through the DB25 interface 13, and the target data is data that conforms to the current parallel port characteristics of the DB25 interface 13.
[0044] The above parallel port characteristics include: the correspondence between the data bit and the DB25 pin position, and the width of the data latch signal pulse.
[0045] In an embodiment of the present invention, the data transmission device includes: an interface conversion chip 11, a processing chip 12 and a DB25 interface 13; wherein, one end of the interface conversion chip 11 is connected to the host computer through a USB interface, the other end of the interface conversion chip 11 is connected to one end of the processing chip 12, the other end of the processing chip 12 is connected to one end of the DB25 interface 13, and the other end of the DB25 interface 13 is connected to a parallel port device; the interface conversion chip 11 is used to receive a USB signal sent by the host computer, and convert the USB signal into a UART signal, and then send the UART signal to the processing chip 12; the processing chip 12 is used to change the parallel port characteristics of the DB25 interface 13 according to the UART signal, so that data communication can be achieved between the host computer and the parallel port device through the data transmission device, or, convert the data to be transmitted in the UART signal into target data, so as to send the target data to the parallel port device through the DB25 interface 13, and the target data is data consistent with the current parallel port characteristics of the DB25 interface 13. From the above description, it can be known that in the data transmission device of the present invention, the parallel port characteristics of the DB25 interface 13 can be changed by the host computer so that data communication can be achieved between the host computer and the parallel port device through the data transmission device, that is, the parallel port characteristics of the DB25 interface 13 in the data transmission device are adjustable, so that the data transmission device can adapt to connect to various parallel port devices, with good universality, thereby alleviating the technical problem of poor universality of existing dedicated parallel port adapters for data transmission.
[0046] The above content briefly introduces the data transmission device of the present invention. The specific contents involved are described in detail below.
[0047] In an alternative embodiment of the present invention, reference Figure 4 , the interface conversion chip 11 includes: a USB-UART conversion chip;
[0048] The USB-UART conversion chip is used to receive the USB signal sent by the host computer, and convert the USB signal into a UART signal, and then send the UART signal to the processing chip 12 through the target signal transmission channel;
[0049] Among them, when the information in the UART signal is configuration information, the target signal transmission channel is the configuration information transmission channel; when the information in the UART signal is data to be transmitted, the target signal transmission channel is the data transmission channel.
[0050] Specifically, the interface conversion chip 11 can be a universal USB-UART conversion chip, which realizes the conversion of the host computer USB interface to two LVTTL level UART interfaces. UART1 is used for data transmission, that is, the above-mentioned data transmission channel, and UART2 is used for configuration information transmission, that is, the above-mentioned configuration information transmission channel.
[0051] In an alternative embodiment of the present invention, reference Figure 4 , the processing chip 12 includes: an interface configuration circuit 121 and a data forwarding circuit 122;
[0052] The interface configuration circuit 121 is connected to the USB-UART conversion chip through a configuration information transmission channel;
[0053] The data forwarding circuit 122 is connected to the USB-UART conversion chip through a data transmission channel.
[0054] Specifically, the interface configuration circuit 121 receives the UART signal containing the parallel port characteristic information through the configuration information transmission channel, and after parsing, dynamically changes the parallel port characteristics of the DB25 interface 13. The data forwarding circuit 122 receives the UART signal containing the data to be transmitted through the data transmission channel, converts the data to be transmitted in the UART signal into target data that matches the current parallel port characteristics of the DB25 interface 13, and sends the target data to the parallel port device through the DB25 interface 13.
[0055] In an optional embodiment of the present invention, the processing chip 12 includes: an FPGA chip. Figure 5 A schematic diagram of the circuit structure of the processing chip 12 and the DB25 interface 13 is given in FIG.
[0056] In an optional embodiment of the present invention, the DB25 interface 13 includes at least one of the following: a male DB25 interface 13 and a female DB25 interface 13 .
[0057] In an optional embodiment of the present invention, the data transmission device further includes: a housing;
[0058] The interface conversion chip 11, the processing chip 12 and the DB25 interface 13 are arranged in the housing.
[0059] The data transmission device of the present invention can be adapted to various non-universal parallel port devices, has good universality, and saves the user's usage cost.
[0060] Embodiment 2:
[0061] The embodiment of the present invention further provides a data transmission system, which includes the data transmission device in the above embodiment 1, and further includes: a host computer and a parallel port device;
[0062] The host computer and the parallel port device are connected via a data transmission device so as to realize data communication between the host computer and the parallel port device via the data transmission device.
[0063] In an optional embodiment of the present invention, the host computer includes: a computer, and the host computer is provided with parallel port characteristic configuration software.
[0064] As shown in the following table, examples of data arrangement relationships of dedicated parallel port devices from different manufacturers are given:
[0065]
[0066] The above table shows the parallel port characteristics of three different dedicated parallel port devices, with three data bit correspondences and three optimal data latch pulse widths. As shown in the above table, in the prior art, when a user needs to communicate with dedicated parallel port devices of three manufacturers A / B / C through the USB interface of a computer, three dedicated USB-parallel port conversion devices need to be purchased, otherwise all bytes will be transmitted incorrectly during data transmission.
[0067] After using the data transmission device of the present invention, one end of the device is connected to the USB interface of the host computer, and the other end is connected to the DB25 interface of the parallel port device. The host computer is provided with matching parallel port characteristic configuration software. The correspondence between the data bit position and the DB25 pin position (such as can be set according to the bit position correspondence in the above table) and the width of the data latch signal pulse (such as can be set according to the optimal data latch signal pulse width in the above table) can be set in the parallel port characteristic configuration software, that is, the parallel port characteristics are programmed and set, and then sent to the data transmission device through the USB interface. The data transmission device can dynamically adjust the parallel port characteristics of the DB25 interface according to the programming information, and the data transmission device can adapt to various non-universal parallel port devices.
[0068] The computer program product of the data transmission device provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.
[0069] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0070] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0071] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0072] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data transmission device, characterized in that: include: Interface conversion chip, processing chip and DB25 interface; Among them, one end of the interface conversion chip is connected to the host computer through the USB interface, the other end of the interface conversion chip is connected to one end of the processing chip, the other end of the processing chip is connected to one end of the DB25 interface, and the other end of the DB25 interface is connected to the parallel port device; The interface conversion chip is used to receive the USB signal sent by the host computer, and convert the USB signal into a UART signal, and then send the UART signal to the processing chip; The processing chip is used to change the parallel port characteristics of the DB25 interface according to the UART signal so that data communication can be achieved between the host computer and the parallel port device through the data transmission device, or to convert the data to be transmitted in the UART signal into target data so as to send the target data to the parallel port device through the DB25 interface, and the target data is data that conforms to the current parallel port characteristics of the DB25 interface.
2. The device according to claim 1, characterized in that The interface conversion chip includes: a USB-UART conversion chip; The USB-UART conversion chip is used to receive the USB signal sent by the host computer, and convert the USB signal into the UART signal, and then send the UART signal to the processing chip through the target signal transmission channel; Among them, when the information in the UART signal is configuration information, the target signal transmission channel is a configuration information transmission channel; when the information in the UART signal is data to be transmitted, the target signal transmission channel is a data transmission channel.
3. The device according to claim 2, characterized in that The processing chip includes: an interface configuration circuit and a data forwarding circuit; The interface configuration circuit is connected to the USB-UART conversion chip through the configuration information transmission channel; The data forwarding circuit is connected to the USB-UART conversion chip through the data transmission channel.
4. The device according to claim 1, characterized in that The parallel port characteristics include: the corresponding relationship between the data bit and the DB25 pin position, and the width of the data latch signal pulse.
5. The device according to claim 1, characterized in that The processing chip includes: an FPGA chip.
6. The device according to claim 1, characterized in that Also includes: shell; The interface conversion chip, the processing chip and the DB25 interface are arranged in the housing.
7. The device according to claim 1, characterized in that The DB25 interface includes at least one of the following: a male DB25 interface and a female DB25 interface.
8. A data transmission system, characterized in that: include: The data transmission device according to any one of claims 1 to 7, further comprising: a host computer and a parallel port device; The host computer and the parallel port device are connected via the data transmission device, so as to realize data communication between the host computer and the parallel port device via the data transmission device.
9. The system according to claim 8, characterized in that The host computer includes: a computer.
10. The system according to claim 8, characterized in that The host computer is provided with parallel port characteristic configuration software.
