CN117520234B - Automatic identification circuit of Type-C interface external equipment and related equipment - Google Patents

Automatic identification circuit of Type-C interface external equipment and related equipment Download PDF

Info

Publication number
CN117520234B
CN117520234B CN202311526073.XA CN202311526073A CN117520234B CN 117520234 B CN117520234 B CN 117520234B CN 202311526073 A CN202311526073 A CN 202311526073A CN 117520234 B CN117520234 B CN 117520234B
Authority
CN
China
Prior art keywords
type
interface
port
management controller
multiplexer
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
CN202311526073.XA
Other languages
Chinese (zh)
Other versions
CN117520234A (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.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent 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 Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311526073.XA priority Critical patent/CN117520234B/en
Publication of CN117520234A publication Critical patent/CN117520234A/en
Application granted granted Critical
Publication of CN117520234B publication Critical patent/CN117520234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Abstract

The invention provides an automatic identification circuit of Type-C interface external equipment, electronic equipment and a server, and relates to the technical field of computers, wherein a power mode judging port and a power output control port of a Type-C interface are respectively connected with pins CC1 and CC2 of a logic judging chip; the level on the CC1 and CC2 pins is used for determining whether the interface is connected with the USB port or not and the device type corresponding to the USB port; the SCL pin is connected with a bus pin of the baseboard management controller; the SDA pin is connected with an interrupt pin of the baseboard management controller; the output end of the power management module is respectively connected with the interface and the power pin of the logic judgment chip; the enabling end of the power management module is connected with the first GPIO pin of the substrate management controller, so that the interface is directly connected with external equipment such as a mobile terminal, the complex interface design of a server is reduced, the maintenance cost is reduced, and the power can be supplied to the external equipment through the power management module.

Description

Automatic identification circuit of Type-C interface external equipment and related equipment
Technical Field
The invention relates to the technical field of computers, in particular to an automatic identification circuit of Type-C interface external equipment, electronic equipment and a server.
Background
The server serves as a data center and a carrier and plays an irreplaceable role. However, the existing server can only support the computer terminal to access through the IP, and when a user wants to acquire the data on the server, the user can connect with the server through the computer terminal to download the corresponding data. Along with the increasing popularity of mobile terminals, users have a demand on the mobile terminal to access to a server, but because the server cannot identify the types of all external devices, when the mobile terminal accesses to the server to export data, a connection network port of a computer terminal is required to be connected with a network interface of the server, and the mobile terminal is mounted on the computer terminal to complete data export, so that the operation is complex. In the related art, in order to directly establish connection between a mobile terminal and a server, the server needs to design multiple types of interfaces to connect with external devices matched with the type protocols, the design can cause complex design and difficult maintenance of the interfaces of the server, and detailed descriptions of each interface and each use mode are needed in a product specification, so that labor and working cost are increased.
Disclosure of Invention
The invention provides an automatic identification circuit of Type-C interface external equipment, electronic equipment and a server, which are used for solving the defects that the existing server cannot identify the Type of each external equipment, cannot be directly connected with external equipment such as a mobile terminal and the like, and is complex in design and difficult to maintain when a plurality of interfaces are designed to match with different types of external equipment, and the labor and the working cost are increased.
The invention provides an automatic identification circuit of Type-C interface external equipment, which comprises the following components:
the device comprises a Type-C interface, a logic judging chip, a baseboard management controller and a power management module;
the power mode judging port and the power output control port of the Type-C interface are respectively connected with pins CC1 and CC2 of the logic judging chip;
the logic judging chip is used for judging whether the Type-C interface is connected with a USB port, a current direction and a device Type corresponding to the USB port by the levels on the CC1 and CC2 pins of the logic judging chip; the SCL pin of the logic judging chip is connected with the bus pin of the baseboard management controller; the SDA pin of the logic judgment chip is connected with the interrupt pin of the baseboard management controller;
the output end of the power management module is respectively connected with the Type-C interface and the power pin of the logic judgment chip; and the enabling end of the power management module is connected with the first GPIO pin of the substrate management controller.
The invention provides an automatic identification circuit of Type-C interface external equipment, wherein the substrate management controller is further used for:
and determining the level of the first GPIO pin according to the device Type corresponding to the USB port identified by the CC1 and CC2 pins of the logic judging chip, wherein the level of the first GPIO pin is used for enabling the power management module so that the power management module supplies power to the logic judging chip and the device corresponding to the USB port connected with the Type-C.
The invention provides an automatic identification circuit of Type-C interface external equipment, which further comprises:
the output end of the first multiplexer is connected with at least two groups of input and output ports of the Type-C interface; the input end of the first multiplexer is connected with the USB pin of the baseboard management controller.
The invention provides an automatic identification circuit of Type-C interface external equipment, which further comprises:
and the programmable logic device internally comprises a second multiplexer, and a first port of the second multiplexer is connected with at least two groups of asynchronous serial communication of the baseboard management controller.
According to the automatic identification circuit for the Type-C interface external equipment, the second port of the second multiplexer is connected with the input/output debugging port of the baseboard management controller.
The invention provides an automatic identification circuit of Type-C interface external equipment, which further comprises:
the TTL transmission end of the level shifter is connected with the second multiplexer; the debug signal input of the level shifter is connected to the input of the first multiplexer.
The invention provides an automatic identification circuit of Type-C interface external equipment, which further comprises:
a platform controller and a driver;
the data transmitting end and the data receiving end of the platform controller are connected with the input end of the driver, and the driver is used for carrying out equalization and pre-emphasis processing on signals transmitted by the data transmitting end and the data receiving end of the platform controller;
the output end of the driver is connected with the input end of the first multiplexer;
and an enabling end of the driver is connected with a second GPIO pin of the baseboard management controller.
The invention provides an automatic identification circuit of Type-C interface external equipment, wherein the first multiplexer comprises: and the plurality of input ports and the output port are used for switching the Type-C interface to interface different communication links, and the connection relation of the plurality of input ports comprises:
the first input port is connected with the output end of a level shifter, the level shifter is used for converting a serial port signal forwarded by the programmable logic device into a first USB2.0 signal, and the first USB2.0 signal is a research and development Debug link output signal; the serial port signal is a signal output by the serial port of the baseboard management controller and the serial port of the system;
The second input port is connected with a USB2.0 serial port of the uplink baseboard management controller, and the USB2.0 serial port is used for connecting a USB2.0 USB flash disk or a mobile terminal;
the third input port and the fourth input port are respectively connected with the driver, the driver is used for driving and enhancing the output signal of the platform controller, and the output signal of the platform controller is a USB3.0 signal output by a system-mounted USB3.0 USB flash disk;
the output end of the first multiplexer is used for being connected with equipment corresponding to a USB port connected with the Type-C interface through an input/output port of the Type-C interface;
when the first multiplexer is connected with the programmable logic device, the first multiplexer is connected by default to develop a debugging link; when the logic judging chip identifies that the equipment Type corresponding to the USB port connected with the Type-C interface is a mobile phone or a USB flash disk, the programmable logic device controls the first multiplexer to switch to a USB2.0 link; and when the programmable logic device receives the signal that the positioning button is pressed for a plurality of times at the frequency smaller than the preset frequency, switching to a USB3.0 link connected with the platform controller.
The invention provides an automatic identification circuit of Type-C interface external equipment, which further comprises:
The positioning indicator lamp is connected with the setting end of the multiplexer of the programmable logic device, and the setting end of the multiplexer of the programmable logic device is connected with the first multiplexer; the positioning indicator lamp is used for displaying the state of the server and the equipment Type corresponding to the USB port connected with the Type-C interface;
and the programmable logic device is provided with a positioning button which is used for switching the equipment Type corresponding to the USB port connected with the Type-C interface.
The invention provides an automatic identification circuit for Type-C interface external equipment, wherein the positioning indicator lamp comprises a status lamp, the status lamp is normally on to indicate that a server is in place, and the status lamp is off to indicate that the server is out of place.
The invention provides an automatic identification circuit of Type-C interface external equipment, wherein the positioning indicator lamp also comprises an identification lamp, and when the identification lamp flashes at a first preset frequency, the identification lamp indicates that the current first Type of external equipment is identified; and when the identification lamp flashes at a second preset frequency, indicating that the current second type of external device is identified.
The invention provides an automatic identification circuit for Type-C interface external equipment, wherein the equipment types corresponding to USB ports comprise a mobile phone USB2.0 USB flash disk and a USB3.0 USB flash disk.
According to the automatic identification circuit for the Type-C interface external equipment, the logic judging chip sends an interrupt signal to the interrupt pin of the baseboard management controller through the SDA pin, is connected with the bus pin of the baseboard management controller through the SCL pin, and sends whether the Type-C interface is connected with the USB port, the current direction and the equipment Type corresponding to the USB port or not to the baseboard management controller;
and the baseboard management controller sets a master-slave mode of the baseboard management controller according to the equipment type corresponding to the USB port.
The invention also provides electronic equipment, which comprises the automatic identification circuit of the Type-C interface external equipment.
The invention also provides a server, which comprises the automatic identification circuit of the Type-C interface external device.
The invention provides an automatic identification circuit of Type-C interface external equipment, electronic equipment and a server, wherein the circuit comprises a Type-C interface, a logic judgment chip, a substrate management controller and a power management module; the power mode judging port and the power output control port of the Type-C interface are respectively connected with the CC1 and CC2 pins of the logic judging chip; the logic judging chip is used for judging whether the Type-C interface is connected with a USB port, a current direction and a device Type corresponding to the USB port by the levels on the CC1 and CC2 pins of the logic judging chip; the SCL pin of the logic judging chip is connected with the bus pin of the baseboard management controller; the SDA pin of the logic judgment chip is connected with the interrupt pin of the baseboard management controller; the output end of the power management module is respectively connected with the Type-C interface and the power pin of the logic judgment chip; the invention can realize direct connection of the Type-C interface and external equipment such as a mobile terminal, reduce complex interface design of a server, reduce maintenance cost, and can also supply power to the external equipment through the power management module.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a circuit diagram of an automatic identification circuit of Type-C interface external equipment provided by the invention;
FIG. 2 is a schematic diagram of a prior art server interface function architecture;
FIG. 3 is a flow chart of an automatic identification method of the Type-C interface external device provided by the invention;
fig. 4 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a circuit diagram of an automatic identification circuit for a Type-C interface external device provided by an embodiment of the present invention, as shown in fig. 1, where the automatic identification circuit for a Type-C interface external device provided by the embodiment of the present invention includes:
Type-C interface, logic judging chip (CC Logic), baseboard Management Controller (BMC) and power management module (PMIC);
the power mode judging port and the power output control port of the Type-C interface are respectively connected with the CC1 pin and the CC2 pin of the logic judging chip;
the logic judgment chip is used for judging whether the Type-C interface is connected with a USB port, a current direction and a device Type corresponding to the USB port by the levels on the CC1 and CC2 pins of the logic judgment chip; the SCL pin of the logic judging chip is connected with the bus pin of the baseboard management controller (Baseboard Management Controller, BMC); the SDA pin of the logic judgment chip is connected with the interrupt pin of the baseboard management controller;
in the embodiment of the invention, the equipment types corresponding to the USB port comprise a mobile phone USB2.0 USB flash disk and a USB3.0 USB flash disk.
The output end of the power management module is respectively connected with the Type-C interface and the power pin of the logic judgment chip; and the enabling end of the power management module is connected with the first GPIO pin of the substrate management controller.
In the embodiment of the invention, the power management module is a power supply device in a management host system, can be used for a power management system arranged on a mobile phone and various mobile terminals and is used for supplying power to the newly-added design and supplying power to the outside; when external power is supplied, when the plug-in is a USB flash disk device, the BMC recognizes a lower behavior Slave device, and the BMC is used as Master device and commands the PMIC to supply external power through the PMIC_EN interface. If no external power supply is needed, no power supply is needed.
In the embodiment of the invention, when the equipment corresponding to the USB port is the main equipment, the equipment can be a mobile phone; when the device corresponding to the USB port is a slave device, the device may be a USB disk, which includes, but is not limited to, a normal USB disk (USB 2.0 USB disk) and a high-speed USB disk (USB 3.0 USB disk).
In the embodiment of the invention, the Logic judging chip is, for example, a CC Logic chip; the baseboard management controller can perform operations such as firmware upgrading, checking machine equipment, monitoring main equipment abnormality of the machine, collecting logs and the like on the machine in a state that the machine is not started.
The CC Logic chip is used for automatically identifying whether a USB flash disk or a mobile phone is mounted under the BMC, triggering the USB flash disk or the mobile phone to the BMC through an INT (Interrupt) signal, and setting the BMC into a master-slave mode to realize a corresponding function after the BMC acquires equipment information through the I2C. Each plug-in device is provided with two device ports CC1 and CC2, and Slave devices such as a U disk and the like are pulled down internally, so that CC Logic is identified as 00; the corresponding Master is identified as 11. After the BMC interacts with the CC Logic information through the I2C, the BMC automatically realizes own master-slave switching according to the type of the inserted equipment, and the function requirement is completed.
The traditional server only can support the computer terminal to access through the IP, and when a user wants to acquire data on the server, the user can connect with the server through the computer terminal to download corresponding data. Along with the increasing popularity of mobile terminals, users have a demand on the mobile terminal to access to a server, but because the server cannot identify the types of all external devices, when the mobile terminal accesses to the server to export data, a connection network port of a computer terminal is required to be connected with a network interface of the server, and the mobile terminal is mounted on the computer terminal to complete data export, so that the operation is complex. In the related art, in order to directly establish connection between a mobile terminal and a server, multiple types of interfaces are designed for the server to connect with external devices matched with the type protocols of the interfaces, the design can cause complex design and difficult maintenance of the interfaces of the server, and detailed description of each interface and each use mode is required in a product specification, so that the labor and the working cost are increased.
The automatic identification circuit of the Type-C interface external equipment provided by the embodiment of the invention comprises a Type-C interface, a logic judgment chip, a substrate management controller and a power management module; the power mode judging port and the power output control port of the Type-C interface are respectively connected with the CC1 and CC2 pins of the logic judging chip; the logic judging chip is used for judging whether the Type-C interface is connected with a USB port, a current direction and a device Type corresponding to the USB port by the levels on the CC1 and CC2 pins of the logic judging chip; the SCL pin of the logic judging chip is connected with the bus pin of the baseboard management controller; the SDA pin of the logic judgment chip is connected with the interrupt pin of the baseboard management controller; the output end of the power management module is respectively connected with the Type-C interface and the power pin of the logic judgment chip; the invention can realize direct connection of the Type-C interface and external equipment such as a mobile terminal, reduce complex interface design of a server, reduce maintenance cost, and can also supply power to the external equipment through the power management module.
Based on any of the above embodiments, as shown in fig. 2, the automatic identification circuit of the Type-C interface external device further includes:
the output end of the first Multiplexer (MUX) is connected with at least two groups of input and output ports of the Type-C interface; the input end of the first multiplexer is connected with the USB pin of the baseboard management controller.
The first multiplexer is a multiple-input, single-output logic chip controlled by the CPLD. The USB signal (research and development Debug link) after TTL conversion is accessed to a first multiplexer, and the first multiplexer accesses the USB (USB flash disk mount and mobile phone access link) to the BMC; a signal output by a USB (system download link) through a driver is accessed to a platform controller (Platform Controller Hub, PCH); and realizing information interaction between the BMC and the CPLD through the first multiplexer, and switching the USB signal externally output to the Type-C.
In the embodiment of the invention, the Type-C interface external equipment automatic identification circuit further comprises:
a programmable logic device (CPLD) including a second multiplexer therein, the first port of the second multiplexer being in asynchronous serial communication connection with at least two sets of asynchronous serial communication connections of the baseboard management controller. The second port of the second multiplexer is connected with the input/output debugging port of the baseboard management controller.
The programmable logic device is connected with the Type-C interface through the first multiplexer, and the Type-C interface is switched to output USB signals with different purposes. In the output logic of the programmable logic device and the multiplexer, default output research and development Debug links; when the BMC informs the CPLD that the plug-in device is a mobile phone or a USB flash disk through the I2C, the CPLD informs the MUX to switch the USB link of the BMC; when the CPLD recognizes that the positioning button has been pressed less than 10ms in 3 consecutive times, the PCH USB link is switched.
In the embodiment of the invention, the Type-C interface external equipment automatic identification circuit further comprises:
a Platform Controller (PCH) and a driver (driver);
the data transmitting end and the data receiving end of the platform controller are connected with the input end of the driver, and the driver is used for carrying out equalization and pre-emphasis processing on signals transmitted by the data transmitting end and the data receiving end of the platform controller; the output end of the driver is connected with the input end of the first multiplexer; and the enabling end of the driver is connected with the second GPIO pin of the baseboard management controller.
The platform controller is used to provide a USB3.0 link to enable the system to dock with a USB3.0 USB disk. Because the platform controller needs to be connected with a high-speed USB3.0 link and has strict requirements on wiring, a driver driving chip is used for driving and inputting input signals of the platform controller, and the driver chip has the function of carrying out equalization and pre-emphasis processing on the signals through a high-pass filter and a driver, so that compensation on loss is realized, the margin of an image is increased, and the requirement of the signals on long-chain wiring is met. And the driver redrive chip has strict requirements on wiring, so that the requirement of long-chain wiring of signals on a board can be met.
In the embodiment of the invention, the Type-C interface external equipment automatic identification circuit further comprises:
the TTL transmission end of the level converter is connected with the second multiplexer; the debug signal input of the level shifter is connected to the input of the first multiplexer.
The level shifter is, for example, a TTL converter, which is an integrated circuit that performs a logic function by using bipolar transistors to provide a switching function that can be directly connected to a serial interface of an external device for communication debugging.
Based on any of the above embodiments, in an embodiment of the present invention, the first multiplexer includes: the multiple input ports and the output port are used for switching the Type-C interface to interface different communication links, and the multiple input port connection relationship comprises:
the first input port is connected with the output end of a level shifter, the level shifter is used for converting a serial port signal forwarded by the programmable logic device into a first USB2.0 signal, and the first USB2.0 signal is a research and development Debug link output signal; the serial port signal is a signal output by the serial port of the baseboard management controller and the serial port of the system;
the second input port is connected with a USB2.0 serial port of the uplink baseboard management controller, and the USB2.0 serial port is used for connecting a USB2.0 USB flash disk or a mobile terminal;
The third input port and the fourth input port are respectively connected with the driver, the driver is used for driving and enhancing the output signal of the platform controller, and the output signal of the platform controller is a USB3.0 signal output by a system-mounted USB3.0 USB flash disk;
the output end of the first multiplexer is used for being connected with equipment corresponding to a USB port connected with the Type-C interface through an input/output port of the Type-C interface;
when the first multiplexer is connected with the programmable logic device, the first multiplexer is connected by default to develop a debugging link; when the logic judging chip identifies that the equipment Type corresponding to the USB port connected with the Type-C interface is a mobile phone or a USB flash disk, the programmable logic device controls the first multiplexer to switch to a USB2.0 link; and when the programmable logic device receives the signal that the positioning button is pressed for a plurality of times at the frequency smaller than the preset frequency, switching to a USB3.0 link connected with the platform controller.
Based on any one of the above embodiments, the automatic identification circuit of the Type-C interface external device further includes:
a positioning indicator light (UID) connected with a set end of a multiplexer of a programmable logic device, wherein the set end of the multiplexer of the programmable logic device is connected with the first multiplexer; the positioning indicator lamp is used for displaying the state of the server and the equipment Type corresponding to the USB port connected with the Type-C interface;
And the programmable logic device is provided with a positioning button which is used for switching the equipment Type corresponding to the USB port connected with the Type-C interface.
In the embodiment of the invention, the positioning indicator lamp comprises a status lamp, the status lamp is always on to indicate that the server is in place, and the status lamp is off to indicate that the server is out of place;
the positioning indicator light further comprises an identification light which is used for indicating that the current first type of external equipment is identified when the identification light flashes at a first preset frequency; and indicating that the current second type of external device is recognized when the recognition lamp flashes at a second preset frequency. The lamp color and frequency function table of the positioning indicator lamp is shown in table 1.
TABLE 1 UID Lamp color and frequency function Meter
The CPLD is designed as logic, and a UID positioning lamp is used for indicating the current functional state. As shown in table 1, the server positioning is the original function, normally on indicates that the server is in place, and off indicates that the server is not in place; when the BMC downloads the USB flash disk, the blue lamp flashes at the frequency of 1Hz to indicate that the USB flash disk is identified, and extinguishes to indicate that the USB flash disk is unidentified/out of place (poor contact and the like); when the PCH downloads the USB flash disk, the blue light flashes at a frequency of 4Hz to indicate that the USB flash disk is identified, and extinguishes to indicate that it is not identified/not in place (bad contact, etc.). In the USB flash disk identification design, the UID key function is used for switching. And (3) outputting the USB flash disk of the BMC link by default, pressing the UID key by new connection, and switching the USB flash disk of the PCH link to output. The CPLD internally performs detection logic, the interval of continuous keys is less than 10ms (microseconds), and the CPLD recognizes triggering action and executes a switching function; if the trigger exceeds the preset value, the trigger is identified as false trigger, and the switch is not performed.
In the embodiment of the invention, the positioning button is identified as an external device connected with the baseboard management controller by default, and the external device identified as the external device connected with the other controllers is switched in response to the trigger signal that the positioning button is pressed. When the positioning button is pressed for many times, the programmable logic device identifies the triggering action, and if the interval time of the positioning button pressed for many times exceeds a preset threshold value, the positioning button is identified as false triggering of the button, and the switching identification action is not executed.
The conventional server connection interface is shown in fig. 2, which separates the user use from the access used by the developer, who can check the code through the Debug port, and identify the internal logic error to complete the debugging; the user logs in the graphical interface from the Internet through the IP, so that the server mounting equipment, log, remote operation and the like can be better checked.
The research and development uses links: the UART Debug ports of the BMC are all connected into the CPLD, the CPLD internally simulates a MUX and detection switching mechanism, is externally connected with a TTL conversion chip and is converted into USB2.0 signals so as to be conveniently identified by a computer (PC). When a user connects with the link, the serial port output of the BMC can be freely switched by sending an instruction, and the debugging requirement of research personnel is finished.
The user uses the link: the on-board network chip is required to convert signals, local connection is realized through the network port and the switch, and then the user logs in the Web control interface of the server through the computer. Meanwhile, research and development personnel can grasp log from the BMC mounting USB flash disk through the link.
Therefore, two interfaces are arranged on one server, users and research and development requirements can be met in the initial stage of product design, and after the mass production stage, detailed description of each interface and the use mode is needed in the product specification, so that extra labor and working cost of a company can be increased, and unnecessary time and labor cost can be increased if poor experience is brought to users due to description problems and improper use.
In addition, the multi-interface implementation mode has limitation, and the server can only support the computer to access through the IP, so that the direct access of the mobile terminal such as a mobile phone is blocked, and inconvenient experience is brought to a user; the interface interoperability is poor. Because of the complex design and the number of steps, the user may be reduced in the evaluation of the product.
In the embodiment of the invention, the USB signal and the Type-C interface provided by the PMIC, the CC Logic chip and the MUX, redriver, PCH are added, so that a Debug port in the prior art is omitted. Type-C interface support under the new design: the USB flash disk and the mobile phone are automatically identified and controlled; the system downloads a USB flash disk, develops and debugs the output; and the UID is controlled by the logic inside the CPLD to flash at different frequencies to indicate the corresponding function. According to the automatic identification circuit for the Type-C interface external equipment, provided by the embodiment of the invention, only the general Type-C interface is used, the original function is realized, the interface universality design is improved, meanwhile, the unnecessary connector is deleted, the later maintenance work is avoided, the added function not only supports automatic identification, but also has better user experience, the interface is unified, the convenience, timeliness and operability are improved, the product competitiveness is improved, the cost is saved for a company, and convenience is brought to subsequent debugging.
According to the invention, by providing the Type-C interface and the working mechanism capable of automatically identifying, the Debug port used in research and development and the network port used by a client are integrated into one, so that the problems of multiple interfaces, poor generality and the like are solved; the PMIC module and the logic circuit of the power supply are added, so that the automatic identification interface equipment of the server is met; through software matching and automatic identification design, a single Type-C port can be used for mounting various devices such as a U disk, a mobile phone, a computer and the like, so that customers are convenient and fast, and the process is also carried out at the moment; the UID indicator lamp is designed to flash at different frequencies and is used for indicating whether the current function identification is normal or not.
According to the embodiment of the invention, the automatic identification Type-C interface and the working mechanism are provided, so that the debugging interface used by a research and development personnel and the network interface used by a user are integrated into one Type-C interface, and the requirement of universality is met; the power PMIC module and the logic judging chip are added to meet the requirement of the server for automatically identifying the external equipment; through the automatic identification design, the same Type-C port can be used for mounting various devices such as a USB flash disk, a mobile phone, a computer and the like, and convenient service is provided for users; the positioning indicator lamp is designed to flash at different frequencies and is used for indicating whether the current function identification is normal or not. Through the integrated design, unnecessary man-machine interaction interfaces are reduced, and meanwhile convenience is brought to maintenance of later-stage products; a great deal of manpower resources and cost are saved for enterprises.
Fig. 3 is a flowchart of an automatic identification method for a Type-C interface external device provided by the embodiment of the present invention, which is applicable to the automatic identification circuit for a Type-C interface external device described in the foregoing embodiment, and as shown in fig. 3, the automatic identification method for a Type-C interface external device provided by the embodiment of the present invention includes:
step 301, recognizing master-slave type of external equipment according to port level by a logic judging chip;
step 302, switching a master-slave mode of the baseboard management controller to establish connection with the external device according to the master-slave type of the external device, switching the baseboard management controller to a slave device mode when the external device is the master device, and switching the baseboard management controller to the master device mode when the external device is the slave device;
and 303, supplying power to the logic judgment chip through the power management module, and supplying power to external equipment of slave equipment of a master-slave Type through a Type-C interface.
In the embodiment of the invention, the master-slave type of the external equipment is identified according to the port level by the logic judging chip, which comprises the following steps:
if the logic judges that the chip analysis port level is low level, identifying the external equipment as slave equipment, and generating an identification result to the baseboard management controller through an interrupt signal so as to enable the baseboard management controller to switch a mode to be a main equipment mode, and the baseboard management controller controls a power management module to supply power to the outside;
If the logic judges that the chip analysis port level is high level, the external equipment is identified as the master equipment, and the identification result is generated to the baseboard management controller through the interrupt signal, so that the baseboard management controller is switched to the slave equipment mode.
In the embodiment of the invention, the automatic identification method for the Type-C interface external equipment further comprises the following steps:
when the server is debugged, the server is connected with external equipment through a Type-C interface, the logic judges that the port level of the chip is low level, recognizes the master-slave Type of the external equipment as slave equipment, and switches the baseboard management controller into a master mode to be connected with the external equipment so as to enable the external equipment to read the log and the system log of the baseboard management controller;
and a research and development personnel can judge whether the connection is successful or not through the existence of the log.
When the research personnel and the user want to save the error log, the U disk is inserted into the Type-C interface. The CC Logic chip parses the device port level to 00, recognizes as a slave, and notifies the BMC by an INT interrupt signal. The BMC controls the PMIC to externally supply power, and meanwhile, the CPLD informs the MUX to switch the USB link of the BMC and output the USB link to the Type-C interface, so that automatic identification of the hanging U disk under the BMC is completed. The CPLD informs the UID to flash at the frequency of 1Hz, and indicates that the USB device of the BMC is mounted.
When the state of the server is checked, the server is connected with the external equipment through the Type-C interface, the logic judges that the port level of the chip is high level, the master-slave Type of the external equipment is identified as the master equipment, and the baseboard management controller is switched into the slave mode to be connected with the external equipment.
When the research and development and clients want to know the running state of the machine, the mounting equipment and the like, the Type-C interface is connected by using the mobile phone. The CC Logic chip recognizes that the port level of the equipment is 11, recognizes as a master equipment, and switches the equipment into a slave equipment after the BMC acquires the equipment; the CPLD informs the MUX to switch the USB link of the BMC and output the USB link to the Type-C interface, and the mobile phone is used for completing the access and management of the server BMC.
When a developer or a user wants to copy data directly from a system (PCH), the U disk is inserted into the Type-C interface, and a 3-press positioning button is continuously pressed on the CPLD. The BMC recognizes that the slave device is hung down, the PMIC supplies power to the outside, and the MUX cuts the USB link of the BMC to output the outside; after the CPLD detects that the positioning button is pressed for a plurality of times, the CPLD informs the MUX to switch the USB link of the PCH to output outwards; the UID flashes at the frequency of 4Hz, and the positioning indicator lamp is switched to finish the mounting of the U disk under the system.
In the embodiment of the invention, the automatic identification method for the Type-C interface external equipment comprises the following steps:
and after the master-slave Type of the equipment is identified, switching the Type of the external equipment connected with the Type-C interface through a positioning button arranged on the programmable logic device.
And after the master-slave Type of the equipment is identified, indicating the Type of the external equipment connected with the current Type-C interface through a positioning indicator lamp connected with the programmable logic device.
In an embodiment of the present invention, the positioning indicator includes a status light and an identification light, and indicates, by the positioning indicator connected to the programmable logic device, a Type of an external device connected to the Type-C interface, including:
if the status light is normally on, the indication server is in place, and if the status light is off, the indication server is out of place;
indicating that the current first type of external device has been identified when the identification light blinks at a first preset frequency; and indicating that the current second type of external device is recognized when the recognition lamp flashes at a second preset frequency.
In the embodiment of the invention, the Type-C interface is connected with the first multiplexer, so that the control of external equipment connected with the Type-C interface is realized, and the first multiplexer comprises: and the plurality of input ports and the output port are used for switching the Type-C interface to interface different communication links, and the connection relation of the plurality of input ports comprises:
the first input port is connected with the output end of a level shifter, the level shifter is used for converting a serial port signal forwarded by the programmable logic device into a first USB2.0 signal, and the first USB2.0 signal is a research and development Debug link output signal; the serial port signal is a signal output by the serial port of the baseboard management controller and the serial port of the system;
The second input port is connected with a USB2.0 serial port of the uplink baseboard management controller, and the USB2.0 serial port is used for connecting a USB2.0 USB flash disk or a mobile terminal;
the third input port and the fourth input port are respectively connected with the driver, the driver is used for driving and enhancing the output signal of the platform controller, and the output signal of the platform controller is a USB3.0 signal output by a system-mounted USB3.0 USB flash disk;
the output end of the first multiplexer is used for being connected with equipment corresponding to a USB port connected with the Type-C interface through an input/output port of the Type-C interface;
when the first multiplexer is connected with the programmable logic device, the first multiplexer is connected by default to develop a debugging link; when the logic judging chip identifies that the equipment Type corresponding to the USB port connected with the Type-C interface is a mobile phone or a USB flash disk, the programmable logic device controls the first multiplexer to switch to a USB2.0 link; and when the programmable logic device receives the signal that the positioning button is pressed for a plurality of times at the frequency smaller than the preset frequency, switching to a USB3.0 link connected with the platform controller.
According to the automatic identification method for the Type-C interface external equipment, which is provided by the embodiment of the invention, the logic judgment chip is used for identifying the master-slave Type of the external equipment according to the port level; according to the master-slave type of the external equipment, switching a master-slave mode of the substrate management controller to establish connection with the external equipment, switching the substrate management controller to a slave mode when the external equipment is the master equipment, and switching the substrate management controller to the master mode when the external equipment is the slave equipment; the power supply module is used for supplying power to the logic judging chip, and the Type-C interface is used for supplying power to external equipment of slave equipment in a master-slave mode, so that the Type-C interface can be directly connected with the external equipment such as a mobile terminal, the design of a complex interface of a server is reduced, the maintenance cost is reduced, and the power supply module is also used for supplying power to the external equipment.
Fig. 4 illustrates a physical schematic diagram of an electronic device, as shown in fig. 4, which may include: processor 410, communication interface (Communications Interface) 420, memory 430 and communication bus 440, wherein processor 410, communication interface 420 and memory 430 communicate with each other via communication bus 440. The processor 410 may invoke logic instructions in the memory 430 to execute the Type-C interface external device auto-id circuit, the method comprising: the logic judging chip identifies master-slave type of the external equipment according to the port level; according to the master-slave type of the external equipment, switching a master-slave mode of the substrate management controller to establish connection with the external equipment, switching the substrate management controller to a slave mode when the external equipment is the master equipment, and switching the substrate management controller to the master mode when the external equipment is the slave equipment; and the power supply module supplies power for the logic judging chip, and the Type-C interface supplies power for external equipment of which the master-slave Type is slave equipment.
The embodiment of the invention also provides electronic equipment, which comprises the automatic identification circuit of the Type-C interface external equipment.
The embodiment of the invention also provides a server, which comprises the Type-C interface external equipment automatic identification circuit.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (15)

1. Type-C interface external equipment automatic identification circuit, its characterized in that includes:
the device comprises a Type-C interface, a logic judging chip, a baseboard management controller and a power management module;
the power mode judging port and the power output control port of the Type-C interface are respectively connected with pins CC1 and CC2 of the logic judging chip;
the logic judging chip is used for judging whether the Type-C interface is connected with a USB port, a current direction and a device Type corresponding to the USB port by the levels on the CC1 and CC2 pins of the logic judging chip; the SCL pin of the logic judging chip is connected with the bus pin of the baseboard management controller; the SDA pin of the logic judgment chip is connected with the interrupt pin of the baseboard management controller;
The output end of the power management module is respectively connected with the Type-C interface and the power pin of the logic judgment chip; the enabling end of the power management module is connected with a first GPIO pin of the substrate management controller;
the logic judging chip is used for automatically identifying whether the slave equipment or the master equipment is mounted under the baseboard management controller, and when the slave equipment is mounted, the logic judging chip is identified as 00; when the main equipment is mounted, the logic judgment chip is identified as 11; the Interrupt signal is sent to the baseboard management controller, and the baseboard management controller sets itself to a master-slave mode to realize corresponding functions after acquiring equipment information through the I2C.
2. The Type-C interface external device automatic identification circuit of claim 1, wherein the baseboard management controller is further configured to:
and determining the level of the first GPIO pin according to the device Type corresponding to the USB port identified by the CC1 and CC2 pins of the logic judging chip, wherein the level of the first GPIO pin is used for enabling the power management module so that the power management module supplies power to the logic judging chip and the device corresponding to the USB port connected with the Type-C.
3. The Type-C interface external device automatic identification circuit of claim 1, further comprising:
the output end of the first multiplexer is connected with at least two groups of input and output ports of the Type-C interface; the input end of the first multiplexer is connected with the USB pin of the baseboard management controller.
4. The Type-C interface external device automatic identification circuit of claim 3, further comprising:
and the programmable logic device internally comprises a second multiplexer, and a first port of the second multiplexer is connected with at least two groups of asynchronous serial communication of the baseboard management controller.
5. The Type-C interface external device automatic identification circuit of claim 4, wherein the second port of the second multiplexer is connected with an input/output debug port of the baseboard management controller.
6. The Type-C interface external device automatic identification circuit of claim 4, further comprising:
the TTL transmission end of the level shifter is connected with the second multiplexer; the debug signal input of the level shifter is connected to the input of the first multiplexer.
7. The Type-C interface external device automatic identification circuit of claim 3, further comprising:
a platform controller and a driver;
the data transmitting end and the data receiving end of the platform controller are connected with the input end of the driver, and the driver is used for carrying out equalization and pre-emphasis processing on signals transmitted by the data transmitting end and the data receiving end of the platform controller;
the output end of the driver is connected with the input end of the first multiplexer;
and an enabling end of the driver is connected with a second GPIO pin of the baseboard management controller.
8. The Type-C interface external device automatic identification circuit of claim 7, wherein the first multiplexer comprises: and the plurality of input ports and the output port are used for switching the Type-C interface to interface different communication links, and the connection relation of the plurality of input ports comprises:
the first input port is connected with the output end of a level shifter, the level shifter is used for converting a serial port signal forwarded by the programmable logic device into a first USB2.0 signal, and the first USB2.0 signal is a research and development Debug link output signal; the serial port signal is a signal output by the serial port of the baseboard management controller and the serial port of the system;
The second input port is connected with a USB2.0 serial port of the uplink baseboard management controller, and the USB2.0 serial port is used for connecting a USB2.0 USB flash disk or a mobile terminal;
the third input port and the fourth input port are respectively connected with the driver, the driver is used for driving and enhancing the output signal of the platform controller, and the output signal of the platform controller is a USB3.0 signal output by a system-mounted USB3.0 USB flash disk;
the output end of the first multiplexer is used for being connected with equipment corresponding to a USB port connected with the Type-C interface through an input/output port of the Type-C interface;
when the first multiplexer is connected with the programmable logic device, the first multiplexer is connected by default to develop a debugging link; when the logic judging chip identifies that the equipment Type corresponding to the USB port connected with the Type-C interface is a mobile phone or a USB flash disk, the programmable logic device controls the first multiplexer to switch to a USB2.0 link; and when the programmable logic device receives the signal that the positioning button is pressed for a plurality of times at the frequency smaller than the preset frequency, switching to a USB3.0 link connected with the platform controller.
9. The Type-C interface external device automatic identification circuit of claim 4, further comprising:
The positioning indicator lamp is connected with the setting end of the multiplexer of the programmable logic device, and the setting end of the multiplexer of the programmable logic device is connected with the first multiplexer; the positioning indicator lamp is used for displaying the state of the server and the equipment Type corresponding to the USB port connected with the Type-C interface;
and the programmable logic device is provided with a positioning button which is used for switching the equipment Type corresponding to the USB port connected with the Type-C interface.
10. The automatic identification circuit of a Type-C interface add-on device of claim 9, wherein the position indicator light comprises a status light, wherein the status light is normally on indicating that the server is in place and wherein the status light is off indicating that the server is out of place.
11. The automatic Type-C interface external device identification circuit of claim 9, wherein the positioning indicator light further comprises an identification light that indicates that the current first Type of external device has been identified when the identification light blinks at a first preset frequency; and when the identification lamp flashes at a second preset frequency, indicating that the current second type of external device is identified.
12. The automatic identification circuit of Type-C interface external devices of claim 9, wherein the device types corresponding to the USB ports comprise a cellular USB2.0 USB flash disk and a USB3.0 USB flash disk.
13. The automatic identification circuit of Type-C interface external equipment according to claim 1, wherein the logic determination chip sends an interrupt signal to an interrupt pin of the baseboard management controller through an SDA pin, is connected with a bus pin of the baseboard management controller through an SCL pin, and sends whether the Type-C interface is connected with a USB port, a current direction, and an equipment Type corresponding to the USB port to the baseboard management controller;
and the baseboard management controller sets a master-slave mode of the baseboard management controller according to the equipment type corresponding to the USB port.
14. An electronic device comprising the Type-C interface external device automatic identification circuit of any one of claims 1 to 13.
15. A server comprising the Type-C interface external device automatic identification circuit of any one of claims 1 to 13.
CN202311526073.XA 2023-11-16 2023-11-16 Automatic identification circuit of Type-C interface external equipment and related equipment Active CN117520234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311526073.XA CN117520234B (en) 2023-11-16 2023-11-16 Automatic identification circuit of Type-C interface external equipment and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311526073.XA CN117520234B (en) 2023-11-16 2023-11-16 Automatic identification circuit of Type-C interface external equipment and related equipment

Publications (2)

Publication Number Publication Date
CN117520234A CN117520234A (en) 2024-02-06
CN117520234B true CN117520234B (en) 2024-04-05

Family

ID=89762175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311526073.XA Active CN117520234B (en) 2023-11-16 2023-11-16 Automatic identification circuit of Type-C interface external equipment and related equipment

Country Status (1)

Country Link
CN (1) CN117520234B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014102693A (en) * 2012-11-20 2014-06-05 Nec Access Technica Ltd Portable terminal apparatus and power supply method
CN116436134A (en) * 2023-03-23 2023-07-14 深圳市正浩创新科技股份有限公司 Power supply circuit, control method of power supply circuit and power supply equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9367490B2 (en) * 2014-06-13 2016-06-14 Microsoft Technology Licensing, Llc Reversible connector for accessory devices
US10078616B2 (en) * 2016-05-26 2018-09-18 Silicon Laboratories Inc. System, USB Type-C connector and method to transmit encoded data
US10761553B2 (en) * 2016-06-17 2020-09-01 Qualcomm Incorporated Universal serial bus (USB) cable type detection and control techniques

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014102693A (en) * 2012-11-20 2014-06-05 Nec Access Technica Ltd Portable terminal apparatus and power supply method
CN116436134A (en) * 2023-03-23 2023-07-14 深圳市正浩创新科技股份有限公司 Power supply circuit, control method of power supply circuit and power supply equipment

Also Published As

Publication number Publication date
CN117520234A (en) 2024-02-06

Similar Documents

Publication Publication Date Title
CN115210589A (en) Chip testing device and testing method
CN109857684B (en) Device, method and system for identifying slot address and type of board card of communication equipment
US10860404B2 (en) Server and debugging method therefor
CN110855353B (en) Error code tester and test system suitable for various types of optical modules
CN112542206A (en) LPDDR test method, device, readable storage medium and electronic equipment
CN112799985A (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
CN112069766A (en) Method and device for reducing cables of hard disk backboard in server
CN106371876B (en) Method and system for upgrading external program of product
US20030120970A1 (en) Method and apparatus for debugging an electronic product using an internal I/O port
CN211505789U (en) PCIE board card testing arrangement
CN117520234B (en) Automatic identification circuit of Type-C interface external equipment and related equipment
CN218938947U (en) JTAG interface adapting board and system based on hardware simulation accelerator
CN111008102A (en) FPGA accelerator card high-speed interface SI test control device, system and method
CN110768874B (en) Modular Ethernet tester
CN213365381U (en) Main board
US11953550B2 (en) Server JTAG component adaptive interconnection system and method
CN111414327B (en) Network device
CN109254937B (en) USB hub, USB device enumeration exception detection method and computer storage medium
CN114895968B (en) Server maintenance method, device, equipment and storage medium
CN211296736U (en) Two-out-of-two hardware platform function test system based on network communication
CN220367375U (en) Test circuit board, test device, intelligent terminal and test system
CN214375135U (en) RoCE chip testing device
CN211148841U (en) DC Cycle testing arrangement
CN220691390U (en) Debugging device and development system
CN111880974B (en) Device and method compatible with multi-type server test

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