CN114385533A - Data conversion apparatus, method, computer-readable storage medium, and system - Google Patents

Data conversion apparatus, method, computer-readable storage medium, and system Download PDF

Info

Publication number
CN114385533A
CN114385533A CN202111677829.1A CN202111677829A CN114385533A CN 114385533 A CN114385533 A CN 114385533A CN 202111677829 A CN202111677829 A CN 202111677829A CN 114385533 A CN114385533 A CN 114385533A
Authority
CN
China
Prior art keywords
switch
port
computer
interface
upper computer
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.)
Granted
Application number
CN202111677829.1A
Other languages
Chinese (zh)
Other versions
CN114385533B (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.)
Shenzhen Sinobry Electronic Ltd
Original Assignee
Shenzhen Sinobry Electronic 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 Shenzhen Sinobry Electronic Ltd filed Critical Shenzhen Sinobry Electronic Ltd
Priority to CN202111677829.1A priority Critical patent/CN114385533B/en
Publication of CN114385533A publication Critical patent/CN114385533A/en
Application granted granted Critical
Publication of CN114385533B publication Critical patent/CN114385533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)

Abstract

The application relates to a data conversion device, a method, a computer readable storage medium and a system, which are applied to the technical field of electronics, wherein the device comprises: the system comprises a first uplink interface, a first conversion chip, a first channel switching module and a first downlink interface; the first uplink interface is connected with the first conversion chip; the first conversion chip comprises a sending end and a receiving end; the first channel switching module comprises a first switch, a second switch, a third switch and a fourth switch, and the first downlink interface comprises a first port and a second port; one end of the first switch is connected with the sending end, and the other end of the first switch is connected with the first port; one end of the second switch is connected with the sending end, and the other end of the second switch is connected with the second port; one end of the third switch is connected with the receiving end, and the other end of the third switch is connected with the first port; one end of the fourth switch is connected with the receiving end, and the other end of the fourth switch is connected with the second port. This application has the effect that makes the next computer establish normal connection with the host computer.

Description

Data conversion apparatus, method, computer-readable storage medium, and system
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data conversion apparatus, a data conversion method, a computer-readable storage medium, and a computer-readable storage system.
Background
Various chips for control are needed in electronic equipment, and most chips need to be written by people and then downloaded into the chips so as to enable the chips to realize corresponding functions. After the chip is packaged in the lower computer, when the program of the chip in the lower computer is upgraded, the upper computer needs to establish communication with the lower computer through a data transmission line, and then the program is transmitted. However, since the sending pins and the receiving pins defined by the chip pins in the upper computer and the lower computer are different, there is a possibility that the upper computer and the lower computer cannot perform normal communication.
Disclosure of Invention
In order to enable the lower computer to normally communicate with the upper computer, the application provides a data conversion device, a data conversion method, a computer readable storage medium and a computer readable storage system.
In a first aspect, the present application provides a data conversion apparatus, which adopts the following technical solutions:
a data conversion apparatus comprising: the first channel switching module is used for switching the first channel between the first uplink interface and the first conversion chip;
the first uplink interface is connected with the first conversion chip;
the first conversion chip comprises a sending end and a receiving end;
the first channel switching module comprises a first switch, a second switch, a third switch and a fourth switch, and the first downlink interface comprises a first port and a second port;
one end of the first switch is connected with the transmitting end, and the other end of the first switch is connected with the first port; one end of the second switch is connected with the transmitting end, and the other end of the second switch is connected with the second port; one end of the third switch is connected with the receiving end, and the other end of the third switch is connected with the first port; one end of the fourth switch is connected with the receiving end, and the other end of the fourth switch is connected with the second port.
By adopting the technical scheme, the channel switching device switches the channel according to the setting conditions of the receiving end and the sending end of the lower computer, and the first conversion chip converts the interface signal of the upper computer and the interface signal of the lower computer mutually, so that the communication between the upper computer and the lower computer is realized, the related data in the lower computer is called, and the program debugging or upgrading is carried out on the lower computer.
Optionally, the first downlink interface further includes a third port, and the first power management module is connected to the first uplink interface, the first conversion chip, and the third port, respectively.
By adopting the technical scheme, the first power management module acquires the power supply through the first uplink interface and performs voltage stabilization conversion on the power supply, so that the required power supply voltage is provided for other modules.
In a second aspect, the present application provides a data conversion method applied to the data conversion apparatus of the first aspect, which adopts the following technical solutions:
a data conversion method applied to the data conversion apparatus of the first aspect, comprising:
when the first switch is closed, the second switch is opened, the third switch is opened and the fourth switch is closed, if the upper computer and/or the lower computer prompt normal connection, the upper computer and the lower computer establish normal communication, otherwise, the first switch is opened, the second switch is closed, the third switch is closed and the fourth switch is opened;
and if the upper computer and/or the lower computer prompt normal connection, the upper computer and the lower computer establish normal communication.
In a third aspect, the present application provides a data conversion apparatus, which adopts the following technical solutions:
a data conversion apparatus comprising: the second uplink interface is used for being connected with the upper computer, the second conversion chip, the second channel switching module and the second downlink interface are used for being connected with the lower computer;
the second uplink interface is connected with the second conversion chip;
the second conversion chip comprises a sending end and a receiving end;
the second channel switching module comprises a channel switching chip, and the channel switching chip comprises a first sending pin, a second sending pin, a third sending pin, a first receiving pin, a second receiving pin and a third receiving pin;
the second downlink interface comprises a first port and a second port;
the first receiving pin is connected with the sending end, the first sending pin is connected with the receiving end, the second sending pin and the second receiving pin are both connected with the first port, and the third receiving pin and the third sending pin are both connected with the second port.
By adopting the technical scheme, the channel switching device switches the channel according to the setting conditions of the receiving end and the sending end of the lower computer, and the second conversion chip converts the interface signal of the upper computer and the interface signal of the lower computer mutually, so that the communication between the upper computer and the lower computer is realized, the related data in the lower computer is called, and the program debugging or upgrading is carried out on the lower computer.
Optionally, the apparatus further includes a second power management module, the second downlink interface further includes a third port, and the second power management module is connected to the second uplink interface, the second conversion chip, the second channel switching module, and the third port, respectively.
Through adopting above-mentioned technical scheme, second power management module passes through the second and goes upward interface and acquires the power to carry out steady voltage conversion with the power, thereby provide required mains voltage for other modules, improved the convenience of using.
Optionally, the system further includes an indication module, the indication module is connected to the channel switching chip 2031, and the indication module is configured to indicate whether a channel between the upper computer and the lower computer is normally connected.
By adopting the technical scheme, the staff can judge whether the communication between the upper computer and the lower computer is normal or not according to the indication information sent by the indication module, and the use convenience is improved.
In a fourth aspect, the present application provides a data conversion method applied to the data conversion apparatus in the third aspect, and adopts the following technical solutions:
a data conversion method applied to the data conversion apparatus according to the third aspect, comprising:
the channel switching chip controls a second sending pin to send handshake data and detects whether the third receiving pin receives handshake data returned by the second port;
if the third receiving pin receives the handshake data, the upper computer and the lower computer establish normal communication;
if the third receiving pin does not receive the handshake data, the channel switching chip controls the third sending pin to send the handshake data, and detects whether the second receiving pin receives the handshake data returned by the first port;
if the second receiving pin receives the handshake data, the upper computer and the lower computer establish normal communication;
if the second receiving pin does not receive the handshake data, the upper computer and the lower computer cannot establish normal communication.
In a fifth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium storing a computer program that can be loaded by a processor and executes the data conversion method according to the third aspect.
In a sixth aspect, the present application provides a data conversion system, which adopts the following technical solutions:
a data conversion system comprising a data conversion device according to the first aspect and/or a data conversion device according to the third aspect, an upper computer and a lower computer;
the upper computer is connected with the lower computer through the data conversion device.
Drawings
Fig. 1 is a block diagram of a data conversion apparatus according to an embodiment of the present application.
Fig. 2 is a block diagram of another data conversion apparatus according to an embodiment of the present application.
Fig. 3 is a flowchart illustrating another channel switching method according to an embodiment of the present application.
Fig. 4 is a block diagram of a practical application of a data conversion device according to an embodiment of the present application.
Fig. 5 is a block diagram of another practical application of the data conversion apparatus according to the embodiment of the present application.
Fig. 6 is a block diagram of a data conversion system according to an embodiment of the present application.
Fig. 7 is a block diagram of another data conversion system according to an embodiment of the present application.
Description of reference numerals: 101. a first uplink interface; 102. a first conversion chip; 103. a first channel switching module; 104. a first downlink interface; 105. a first power management module; 201. a second uplink interface; 202. a second conversion chip; 203. a second channel switching module; 2031. a channel switching chip; 204. a second downlink interface; 205. a second power management module; 206. an indication module; 300. an upper computer; 400. a lower computer; 500. a control handle; 600. the desk legs are lifted.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
Fig. 1 is a block diagram of a data conversion apparatus according to an embodiment of the present disclosure.
As shown in fig. 1, the data conversion apparatus 100 mainly includes: a first uplink interface 101 for connecting with an upper computer, a first conversion chip 102, a first channel switching module 102, and a first downlink interface 104 for connecting with a lower computer; the first uplink interface 101 is connected to the first conversion chip 102; the first conversion chip 102 includes a transmitting end a and a receiving end B; the first channel switching module 102 includes a first switch K1, a second switch K2, a third switch K3, and a fourth switch K4; the first downstream interface 104 includes a first port C1 and a second port C2; one end of the first switch K1 is connected to the transmitting terminal a, and the other end of the first switch K1 is connected to the first port C1; one end of a second switch K2 is connected with the transmitting end A, and the other end of the second switch K2 is connected with a second port C2; one end of the third switch K3 is connected with the receiving end B, and the other end of the third switch K3 is connected with the first port C1; one end of the fourth switch K4 is connected to the receiving terminal B, and the other end of the fourth switch K4 is connected to the second port C2.
In this embodiment, the data conversion apparatus 100 further includes a first power management module 105, the first downstream interface 104 further includes a third port C3, and the first power management module 105 is connected to the first upstream interface 101, the first conversion chip 102 and the third port C3, respectively.
In this embodiment, the data conversion device 100 is connected to the upper computer 300 and the lower computer 400, and the first conversion chip 102 and the first power management module 105 are both connected to the upper computer 300 through the first uplink interface 101, so as to implement data transmission between the upper computer 300 and the first conversion chip 102, obtain a power supply from the upper computer 300, and then supply power by using the first power management module 105 without accessing a power supply additionally.
In this embodiment, the first conversion chip 102 is configured to convert signals of the upper computer 300 and signals of the lower computer 400 into each other, so as to implement mutual communication between the upper computer 300 and the lower computer 400.
In this embodiment, the interface of the upper computer 300 may adopt a USB interface, and the interface of the lower computer 400 may adopt a serial interface, which is not specifically limited herein.
In this embodiment, the interface of the upper computer 300 is a USB interface and adopts a USB communication protocol, and the interface of the lower computer 400 is a serial interface and adopts a serial communication protocol, so that normal communication between the two interfaces cannot be performed. The first conversion chip 102 is configured to convert USB data of the upper computer 300 into serial data and send the serial data to the lower computer 400, and is also configured to convert serial data of the lower computer 400 into USB data and send the USB data to the upper computer 300.
Therefore, the lower computer 300 may also transmit data to the upper computer 400, so as to implement bidirectional communication, and a technician may transmit data to the lower computer 400 through the data conversion device 100, so as to debug the lower computer 400.
In this embodiment, the first power management module 105 is configured to regulate and convert the power acquired through the first uplink interface 101, and supply a required power voltage to other modules.
In this embodiment, the first channel switching module 102 is configured to change a hardware circuit channel to implement channel switching. In order to enable the upper computer 300 and the lower computer 400 to realize normal data transmission, the sending end a of the first conversion chip 102 needs to be connected to the receiving end of the lower computer 400, and the receiving end B of the first conversion chip 102 needs to be connected to the sending end of the lower computer 400, but the sending end and the receiving end of different lower computers 400 may have reverse connection, so that a correct transmission channel cannot be established, and therefore the first channel switching module 102 needs to perform channel switching according to the interface condition of the lower computers 400.
In the present embodiment, the channel switching device 100 is in a manual switching mode.
Based on the data conversion apparatus 100 of the foregoing embodiment, the embodiment of the present application further provides a data conversion method.
Specifically, the first switch K1 is turned on, the second switch K2 is turned off, the third switch K3 is turned off, and the fourth switch K4 is turned on, and if the upper computer 300 and/or the lower computer 400 prompt normal connection, it indicates that normal communication is established between the upper computer 300 and the lower computer 400 at this time, and operations such as program downloading and program updating in the next step can be performed.
If the upper computer 300 and/or the lower computer 400 prompts that the connection is not normal, the first switch is turned off, the second switch is turned on, the third switch is turned on, and the fourth switch is turned off, and if the upper computer 300 and/or the lower computer 400 prompts that the connection is normal, it indicates that normal communication is established between the upper computer 300 and the lower computer 400 at the moment, and data transmission operation of the next step can be performed, otherwise, the connection is poor or other hardware problems are caused.
In addition to the above-described manner of manually switching channels, a data conversion apparatus capable of automatically switching channels may be provided. As shown in fig. 2, another data conversion apparatus 200 mainly includes: a second uplink interface 201 for connecting with the upper computer 300, a second conversion chip 202, a second channel switching module 203, and a second downlink interface 204 for connecting with the lower computer 400; the second uplink interface 201 is connected to the second conversion chip 202; the second conversion chip 202 includes a transmitting end a and a receiving end B; the second channel switching module 203 comprises a channel switching chip 2031, wherein the channel switching chip 2031 comprises a first sending pin F1, a second sending pin F2, a third sending pin F3, a first receiving pin J1, a second receiving pin J2 and a third receiving pin J3; the second downstream interface 204 includes a first port C1 and a second port C2; the first receiving pin J1 is connected to the transmitter A, the first transmitting pin F1 is connected to the receiver B, the second transmitting pin F2 and the second receiving pin J2 are both connected to the first port C1, and the third receiving pin J3 and the third transmitting pin F3 are both connected to the second port C2. In this embodiment, the data conversion apparatus 200 further includes a second power management module 205, the second downstream interface 204 further includes a third port C3, and the second power management module 205 is connected to the second upstream interface 201, the second conversion chip 202, the second channel switching module 203, and the third port C3, respectively.
In this embodiment, the data conversion apparatus 200 further includes an indication module 206, the indication module 206 is connected to the channel switching chip 2031, and the indication module 206 is configured to indicate whether the channel between the upper computer 300 and the lower computer 400 is normally connected.
In this embodiment, the functions implemented by the second uplink interface 201, the second conversion chip 202, the second downlink interface 204, and the second power management module 205 are the same as the functions of the corresponding modules in the above embodiments.
Fig. 3 is a flowchart illustrating another channel switching method according to an embodiment of the present application.
As shown in fig. 3, the main flow of the method is described as follows (steps S301 to S305):
step S301, the channel switching chip controls the second sending pin to send handshake data, and detects whether the third receiving pin receives handshake data returned by the second port;
step S302, if the third receiving pin receives handshake data, the upper computer and the lower computer establish normal communication;
step S303, if the third receiving pin does not receive the handshake data, the channel switching chip controls the third sending pin to send the handshake data, and detects whether the second receiving pin receives the handshake data returned by the first port;
step S304, if the second receiving pin receives the handshake data, the upper computer and the lower computer establish normal communication;
step S305, if the second receiving pin does not receive the handshake data, the upper computer and the lower computer cannot establish normal communication.
Note that the names of the second sending pin F2, the second receiving pin J2, the third sending pin F3, and the third receiving pin J3 are all used as distinguishing pins, and the execution sequence of steps S302 and S303, and steps S304 and S305 is not limited in this embodiment.
In this embodiment, the upper computer 300 includes a third uplink interface.
Specifically, the upper computer 300 is configured to provide a downloading program for the lower computer 400, including but not limited to a pc, a mobile phone, a tablet computer, and the like, and the third uplink interface is a data transmission interface of the upper computer 300.
In the present embodiment, the lower computer 400 includes a third downlink interface.
Specifically, the lower computer 400 is configured to implement corresponding functions according to a program provided by the upper computer 300, and the third downlink interface is a data transmission interface, in this example, a network port, of the lower computer 400.
The first downlink interface 101, the second downlink interface 201, and the third downlink interface are all network ports, and the data conversion device 100 or the data conversion device 200 may be connected to the lower computer 300, or the lower computer 300 may be connected to another lower computer 300 by a universal network cable.
Taking the electric lifting table as an example, the following describes specifically the program upgrading or debugging of the lower computer by the data conversion device of the embodiment:
fig. 4 is a block diagram of a practical application of a data conversion device according to an embodiment of the present application.
Fig. 5 is a block diagram of another practical application of the data conversion apparatus according to the embodiment of the present application.
As shown in fig. 4 and 5, the control system of the electric lifting table can be divided into two parts, namely a control handle 500 and a lifting table leg 600, which are all provided with corresponding functions by a master controller (built-in chip), and all belong to a lower computer, the control handle 500 and the lifting table leg 600 need to work in coordination, the built-in chips of the control handle 500 and the lifting table leg 600 are communicated with each other, and the second downlink interfaces of the control handle 500 and the lifting table leg 600 are both net ports, and the control handle 500 is connected with the lifting table leg 600 through a net wire.
Control handle 500 embeds has master controller D, display module, button module, third row interface D, and its effect is used for the operation output control signal according to the case module, and control signal sends to lift table leg 600 through third interface D down to receive height information and other information that come from lift table leg 600 through third interface D down, and show through display module, convenience of customers learns the state of electric lift table.
Wherein the other information includes, but is not limited to, fault information, lifting speed information, etc.
The lifting table legs 600 are internally provided with a master controller E, a third downlink interface E and a motor module, the lifting table legs 600 receive instructions from the control handle 500 through the third downlink interface E and control the motor module to work, so that the electric lifting table is lifted to the height operated by a user, and meanwhile, the height or other information is transmitted back to the control handle 500 through the third downlink interface E in real time.
When a technician needs to upgrade or debug a program, if the data conversion apparatus 100 of the manual mode channel switching module is used, the first uplink interface 101 of the data conversion device 100 is connected to the third uplink interface of the upper computer 300, the first downlink interface 101 of the data conversion device 100 is connected to the third downlink interface D of the control handle 500 or the third downlink interface E of the elevating table leg 600 by using a network cable, the first channel switching module 103 switches the connection channel by a manual toggle switch, therefore, the sending end A of the first conversion chip 102 is adjusted to be connected with the receiving end of the control handle 500 or the lifting table leg 600, the receiving end of the first conversion chip 102 is connected with the sending end of the control handle 500 or the lifting table leg 600, the first conversion chip 102 converts the USB signal of the upper computer 300 and the serial port signal of the control handle 500 or the lifting table leg 600 mutually, and the electric lifting table is upgraded.
Similarly, if the data conversion device 200 of the automatic mode channel switching module is used, the second uplink interface 201 of the data conversion device 200 is connected to the third uplink interface of the upper computer 300, the second downlink interface 201 of the data conversion device 200 is connected to the third downlink interface D of the control handle 500 or the third downlink interface E of the lifting table leg 600 by using a network cable, the second channel switching module 203 automatically adjusts the connection channel through the channel switching chip 2031, so as to adjust the sending end a of the second switching chip 202 to be connected to the control handle 500 or the receiving end of the lifting table leg 600, the receiving end of the second switching chip 202 is connected to the control handle 500 or the sending end of the lifting table leg 600, and the second switching chip 202 performs mutual conversion between the USB signal of the upper computer 300 and the serial port signal of the control handle 500 or the lifting table leg 600, so as to perform program upgrade on the electric lifting table.
Fig. 6 is a block diagram of a data conversion system according to an embodiment of the present application. As shown in fig. 5, the system includes a data conversion apparatus 100, an upper computer 300, and a lower computer 400.
In this embodiment, the upper computer 300 is connected to the lower computer 400 through the conversion device 100 to realize data transmission between the upper computer 300 and the lower computer 400.
Fig. 7 is a block diagram of another data conversion system according to an embodiment of the present application. As shown in fig. 6, the system includes a data conversion apparatus 200, an upper computer 300, and a lower computer 400.
In this embodiment, the upper computer 300 is connected to the lower computer 400 through the data conversion device 200 or the data conversion device 200, so as to realize data transmission between the upper computer 300 and the lower computer 400.
The present application further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the data conversion method described above.
The computer-readable storage medium may include: a U-disk, a removable hard disk, a read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the application referred to in the present application is not limited to the embodiments with a particular combination of the above-mentioned features, but also encompasses other embodiments with any combination of the above-mentioned features or their equivalents without departing from the spirit of the application. For example, the above features may be replaced with (but not limited to) features having similar functions as those described in this application.

Claims (9)

1. A data conversion apparatus, comprising: the device comprises a first uplink interface (101) used for being connected with an upper computer (300), a first conversion chip (102), a first channel switching module (103) and a first downlink interface (104) used for being connected with a lower computer (400);
the first uplink interface (101) is connected with the first conversion chip (102);
the first conversion chip (102) comprises a sending end and a receiving end;
the first channel switching module (103) comprises a first switch, a second switch, a third switch and a fourth switch, and the first downstream interface (104) comprises a first port and a second port;
one end of the first switch is connected with the transmitting end, and the other end of the first switch is connected with the first port; one end of the second switch is connected with the transmitting end, and the other end of the second switch is connected with the second port; one end of the third switch is connected with the receiving end, and the other end of the third switch is connected with the first port; one end of the fourth switch is connected with the receiving end, and the other end of the fourth switch is connected with the second port.
2. The apparatus of claim 1, further comprising a first power management module (105), wherein the first downstream interface (104) further comprises a third port, and wherein the first power management module (105) is connected to the first upstream interface (101), the first conversion chip (102), and the third port, respectively.
3. A data conversion method applied to the data conversion apparatus according to claim 1, comprising:
when the first switch is closed, the second switch is opened, the third switch is opened and the fourth switch is closed, if the upper computer (300) and/or the lower computer (400) prompt normal connection, the upper computer (300) and the lower computer (400) establish normal communication, otherwise, the first switch is opened, the second switch is closed, the third switch is closed and the fourth switch is opened;
and if the upper computer (300) and/or the lower computer (400) prompt normal connection, the upper computer (300) and the lower computer (400) establish normal communication.
4. A data conversion apparatus, comprising: the second uplink interface (201) is used for being connected with the upper computer (300), the second conversion chip port (202), the second channel switching module (203) and the second downlink interface (204) is used for being connected with the lower computer (400);
the second uplink interface (201) is connected with the second conversion chip port (202);
the second conversion chip port (202) comprises a sending end and a receiving end;
the second channel switching module (203) comprises a channel switching chip (2031), and the channel switching chip (2031) comprises a first sending pin, a second sending pin, a third sending pin, a first receiving pin, a second receiving pin and a third receiving pin;
the second downstream interface (204) comprises a first port and a second port;
the first receiving pin is connected with the sending end, the first sending pin is connected with the receiving end, the second sending pin and the second receiving pin are both connected with the first port, and the third receiving pin and the third sending pin are both connected with the second port.
5. The apparatus according to claim 4, further comprising a second power management module (205), wherein the second downstream interface (204) further comprises a third port, and wherein the second power management module (205) is connected to the second upstream interface (201), the second conversion chip port (202), the second channel switching module (203), and the third port, respectively.
6. The device according to claim 5, further comprising an indication module (206), wherein the indication module (206) is connected to the channel switching chip (2031), and the indication module (206) is configured to indicate whether a channel between the upper computer (300) and the lower computer (400) is normally connected.
7. A data conversion method applied to the data conversion apparatus according to any one of claims 4 to 6, comprising:
a channel switching chip (2031) controls a second sending pin to send handshake data, and detects whether a third receiving pin receives handshake data returned by the second port;
if the third receiving pin receives the handshake data, the upper computer (300) and the lower computer (400) establish normal communication;
if the third receiving pin does not receive the handshake data, a channel switching chip (2031) controls the third sending pin to send the handshake data, and detects whether the second receiving pin receives the handshake data returned by the first port;
if the second receiving pin receives the handshake data, the upper computer (300) and the lower computer (400) establish normal communication;
if the second receiving pin does not receive the handshake data, the upper computer (300) and the lower computer (400) cannot establish normal communication.
8. A computer-readable storage medium, in which a computer program is stored which can be loaded by a processor and which executes the method as claimed in claim 7.
9. A data conversion system comprising the data conversion apparatus according to any one of claims 1, 2, 4 to 6, an upper computer, and a lower computer;
the upper computer is connected with the lower computer through the data conversion device.
CN202111677829.1A 2021-12-31 2021-12-31 Data conversion apparatus, method, computer-readable storage medium, and system Active CN114385533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111677829.1A CN114385533B (en) 2021-12-31 2021-12-31 Data conversion apparatus, method, computer-readable storage medium, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111677829.1A CN114385533B (en) 2021-12-31 2021-12-31 Data conversion apparatus, method, computer-readable storage medium, and system

Publications (2)

Publication Number Publication Date
CN114385533A true CN114385533A (en) 2022-04-22
CN114385533B CN114385533B (en) 2023-04-07

Family

ID=81199024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111677829.1A Active CN114385533B (en) 2021-12-31 2021-12-31 Data conversion apparatus, method, computer-readable storage medium, and system

Country Status (1)

Country Link
CN (1) CN114385533B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984659A (en) * 2014-05-15 2014-08-13 华为技术有限公司 Method and device for using serial port at different time periods
CN107678989A (en) * 2017-09-27 2018-02-09 广东欧珀移动通信有限公司 UART and USB multiplex circuits and mobile terminal
CN211427333U (en) * 2019-11-20 2020-09-04 费森尤斯卡比(南昌)医疗器械有限公司 Lower computer, connector, lower computer assembly and communication system
CN211906265U (en) * 2020-05-15 2020-11-10 广州视源电子科技股份有限公司 USB channel switching device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984659A (en) * 2014-05-15 2014-08-13 华为技术有限公司 Method and device for using serial port at different time periods
CN107678989A (en) * 2017-09-27 2018-02-09 广东欧珀移动通信有限公司 UART and USB multiplex circuits and mobile terminal
CN211427333U (en) * 2019-11-20 2020-09-04 费森尤斯卡比(南昌)医疗器械有限公司 Lower computer, connector, lower computer assembly and communication system
CN211906265U (en) * 2020-05-15 2020-11-10 广州视源电子科技股份有限公司 USB channel switching device and electronic equipment

Also Published As

Publication number Publication date
CN114385533B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US5249218A (en) Programmable universal interface system
US6222910B1 (en) System and method for connecting and interfacing a communications device to a telephone line via a telephone set
US5787155A (en) Priority line switching system
EP3258737A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
KR20010041588A (en) Audio device selector for wireless communication
CN106407068A (en) A device automatically controlling connection and disconnection of USB cables and a testing method
CN107543994A (en) The test system of Type C interface
CN204155267U (en) A kind of OTG usb circuit
EP3196761A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
KR20120038672A (en) Universal serial bus dongle and method controlling power thereof
CN103473198A (en) Method for sharing and transmitting files between mobile terminals
CN114385533B (en) Data conversion apparatus, method, computer-readable storage medium, and system
US8295368B1 (en) Method and apparatus for improved interfacing of connections between a multiplicity of handheld devices
CN207198837U (en) USB sound cards
CN207458042U (en) A kind of electronic equipment
CN106375603B (en) System for connecting wireless earphone and network phone based on switch adapter and control method thereof
EP2806615B1 (en) Telephone and telephone on-off method
CN102023952A (en) Communication system and communication control method thereof
CN106484577A (en) AccessPort device and method
US6697464B1 (en) System and method for interfacing a modem's digital interface to a PBX telephone
EP2645683B1 (en) Telephone interface unit and a method of configuring headset system to telephone device
EP1968292A2 (en) Remote access integrated tester
Cisco Connecting Temporary Terminal and Attaching Peripherals
CN210670112U (en) Interphone detection system
US20050094721A1 (en) System and method for testing a modem

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant