[go: up one dir, main page]

CN102761624B - Method and device for debugging Internet access out of panel - Google Patents

Method and device for debugging Internet access out of panel Download PDF

Info

Publication number
CN102761624B
CN102761624B CN201210186652.XA CN201210186652A CN102761624B CN 102761624 B CN102761624 B CN 102761624B CN 201210186652 A CN201210186652 A CN 201210186652A CN 102761624 B CN102761624 B CN 102761624B
Authority
CN
China
Prior art keywords
network port
interface
usb interface
preset
device type
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.)
Expired - Fee Related
Application number
CN201210186652.XA
Other languages
Chinese (zh)
Other versions
CN102761624A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210186652.XA priority Critical patent/CN102761624B/en
Publication of CN102761624A publication Critical patent/CN102761624A/en
Application granted granted Critical
Publication of CN102761624B publication Critical patent/CN102761624B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention disclose a method and a device for debugging an Internet access out of a panel and a cable, which can achieve free switching between a USB interface and the Internet access and enable the hardware design to be simpler, and relates to the technical field of communication network. By adopting the embodiment of the invention, the types of external equipment are identified, and then a present channel is switched to a channel corresponding to the equipment type according to the identified equipment type. The scheme provided by the embodiment of the invention is suitable for freely switching the USB interface and the Internet access.

Description

一种调试网口出面板的方法、装置A method and device for debugging a network port out of a panel

技术领域 technical field

本发明涉及通信网络技术领域,尤其涉及一种调试网口出面板的方法、装置及线缆。  The invention relates to the technical field of communication networks, in particular to a method, a device and a cable for debugging a network port out of a panel. the

背景技术 Background technique

现在大多数电子产品都具备USB(Univer sal Serial Bus,通用串行总线)接口,通过电子产品上的USB接口进行电子产品之间的连接,从而可以传输数据或者进行网络连接。随着电子技术的发展,电子产品越来越小,功能越来越多,用户的要求也越来越高,使得电子产品除了产品功能应用外不能有额外的接口。  Most electronic products now have a USB (Universal Serial Bus, Universal Serial Bus) interface, and the connection between electronic products is performed through the USB interface on the electronic product, so that data can be transmitted or a network connection can be made. With the development of electronic technology, electronic products are getting smaller and smaller, with more and more functions, and the requirements of users are getting higher and higher, so that electronic products cannot have additional interfaces in addition to product function applications. the

现有技术可以通过模拟开关实现以太网口切换,使得一个网口与多个不同的设备连接,即外部以太网口、第一内部网口和第二内部网口相连,根据输入该模拟开关的选择信号输入管脚的选择信号的电平高度来将第一内部网口或者第二内部网口与外部以太网口连通,来实现与不同的设备传输数据。其中,通过电阻上拉或者下拉来产生选择信号,通过拨码开关来实现选择信号的切换,从而利用硬件产生选择信号继而控制模拟开关实现网口的切换。  In the prior art, an analog switch can be used to switch the Ethernet port, so that one network port is connected to multiple different devices, that is, the external Ethernet port, the first internal network port and the second internal network port are connected. The level height of the selection signal of the signal input pin is selected to connect the first internal network port or the second internal network port with the external Ethernet port, so as to realize data transmission with different devices. Among them, the selection signal is generated by pulling up or pulling down the resistance, and the switching of the selection signal is realized by the dial switch, thereby using the hardware to generate the selection signal and then controlling the analog switch to realize the switching of the network port. the

然而,现有技术通过内部模拟开关实现网口通道的切换时,不能实现USB接口和网口的切换,并且硬件设计较复杂。  However, in the prior art, when the network port channel is switched through the internal analog switch, the USB interface and the network port cannot be switched, and the hardware design is relatively complicated. the

发明内容 Contents of the invention

本发明的实施例提供一种调试网口出面板的方法、装置及线缆,可以实现USB接口和网口的自由切换,使硬件设计更简单。  Embodiments of the present invention provide a method, a device and a cable for debugging a network port out of a panel, which can realize free switching between a USB interface and a network port, and make hardware design simpler. the

为达到上述目的,本发明的实施例采用如下技术方案:  In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:

一种调试网口出面板的方法,包括:  A method for debugging a network port output panel, comprising:

识别外部设备的设备类型;  Identify the device type of the external device;

根据所述设备类型切换所述设备类型对应的通道。  Switch the channel corresponding to the device type according to the device type. the

一种调试网口出面板的装置,包括:  A device for debugging a network port out of a panel, comprising:

识别单元,用于识别外部设备的设备类型;  The identification unit is used to identify the device type of the external device;

切换单元,用于根据所述设备类型将当前通道切换到所述设备类型对应的通道。  A switching unit, configured to switch the current channel to a channel corresponding to the device type according to the device type. the

一种线缆,包括:  A cable comprising:

所述线缆的任一端为USB3.0接口,用于连接单板;  Either end of the cable is a USB3.0 interface for connecting to the board;

所述线缆的另一端为预设接口,用于连接外部设备。  The other end of the cable is a preset interface for connecting external devices. the

本发明实施例提供的一种调试网口出面板的方法、装置及线缆,通过识别外部设备的设备类型,然后通过识别出的设备类型,切换当前通道到所述设备类型对应的通道。与现有技术中通过内部模拟开关实现网口通道的切换时,不能实现USB接口和网口的切换,并且硬件设计较复杂相比,本发明实施例提供的方案可以实现USB接口和网口的自由切换,使硬件设计更简单。  The embodiment of the present invention provides a method, device and cable for debugging network ports out of the panel, by identifying the device type of the external device, and then switching the current channel to the channel corresponding to the device type through the identified device type. Compared with the switching of the network port channel through the internal analog switch in the prior art, the switching between the USB interface and the network port cannot be realized, and the hardware design is relatively complicated, the solution provided by the embodiment of the present invention can realize the switching between the USB interface and the network port. Free switching makes hardware design easier. the

附图说明 Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort. the

图1为本发明实施例1提供的一种调试网口出面板的方法的流程图;  Fig. 1 is a flow chart of a method for debugging a network port out of a panel provided by Embodiment 1 of the present invention;

图2为本发明实施例1提供的一种调试网口出面板的装置的框图;  Fig. 2 is a block diagram of a device for debugging a network port out of a panel provided by Embodiment 1 of the present invention;

图3为本发明实施例2提供的一种调试网口出面板的方法的流程图;  Fig. 3 is a flow chart of a method for debugging a network port out of a panel provided by Embodiment 2 of the present invention;

图4为本发明实施例2提供的USB 3.0标准线缆的示意图;  Figure 4 is a schematic diagram of the USB 3.0 standard cable provided by Embodiment 2 of the present invention;

图5为本发明实施例2提供的一种调试网口出面板的电路示意图;  Fig. 5 is a circuit schematic diagram of a debugging network port output panel provided by Embodiment 2 of the present invention;

图6为本发明实施例2提供的一种调试网口出面板的装置的框图。  FIG. 6 is a block diagram of a device for debugging a network port out of a panel provided by Embodiment 2 of the present invention. the

具体实施方式 Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。  The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention. the

实施例1  Example 1

本发明实施例提供一种调试网口出面板的方法,如图1所示,该方法包括以下步骤:  The embodiment of the present invention provides a method for debugging the network port output panel, as shown in Figure 1, the method includes the following steps:

步骤101,识别外部设备的设备类型;  Step 101, identifying the device type of the external device;

所述设备类型包括USB接口设备和网口设备;  The device types include USB interface devices and network port devices;

可选的,通过数据线高速传输口识别外部设备是否为所述USB接口设备;  Optionally, identify whether the external device is the USB interface device through the high-speed transmission port of the data line;

当能识别所述外部设备时,则所述外部设备为所述USB接口设备;  When the external device can be identified, the external device is the USB interface device;

当不能识别所述外部设备时,则所述外部设备为所述网口设备。  When the external device cannot be identified, the external device is the network port device. the

步骤102,根据所述设备类型将当前通道切换到所述设备类型对应的通道。  Step 102, switch the current channel to a channel corresponding to the device type according to the device type. the

可选的,当所述设备类型为所述USB接口设备时,将当前通道切换到所述USB接口设备对应的USB通道,并通过数据线D-/+传输数据或者通过高速串行接收数据线SSRX-/+和高速串行发送数据线SSTX-/+传输数据;  Optionally, when the device type is the USB interface device, switch the current channel to the USB channel corresponding to the USB interface device, and transmit data through the data line D-/+ or receive the data line through the high-speed serial SSRX-/+ and high-speed serial transmission data line SSTX-/+ transmit data;

当所述设备类型为所述网口设备时,将当前通道切换到所述网口设备对应的网口通道,并通过所述SSRX-/+和所述SSTX-/+传输数据。  When the device type is the network port device, switch the current channel to the network port channel corresponding to the network port device, and transmit data through the SSRX-/+ and the SSTX-/+. the

预设实现通道转换的电路上相关逻辑。根据所述设备类型,或者接收到的切换指令,通过控制电路上相关逻辑将当前通道切换到所述设备类型对应的通道,所述切换指令通过手动输入或者自动控制方式或者自动识别方式获得。  The relevant logic on the circuit that realizes channel switching is preset. According to the device type or the received switching instruction, the current channel is switched to the channel corresponding to the device type through the relevant logic on the control circuit, and the switching instruction is obtained through manual input or automatic control or automatic identification. the

本发明实施例提供的一种调试网口出面板的方法,通过识别外部设备的设备类型,然后通过识别出的设备类型,切换当前通道到所述设备类型对应的通道。与现有技术中通过内部模拟开关实现网口通道的切换时,不能实现USB接口和网口的切换,并且硬件设计较复杂相比,本发明实施例提供的方案可以实现USB接口和网口的自由切换,使硬件设计更简单。  The embodiment of the present invention provides a method for debugging network port output panel, by identifying the device type of the external device, and then switching the current channel to the channel corresponding to the device type through the identified device type. Compared with the switching of the network port channel through the internal analog switch in the prior art, the switching between the USB interface and the network port cannot be realized, and the hardware design is relatively complicated, the solution provided by the embodiment of the present invention can realize the switching between the USB interface and the network port. Free switching makes hardware design easier. the

本发明实施例提供一种调试网口出面板的装置,如图2所示,该装置包括:识别单元201,切换单元202;  The embodiment of the present invention provides a device for debugging the network port out of the panel, as shown in Figure 2, the device includes: an identification unit 201, a switching unit 202;

识别单元201,用于识别外部设备的设备类型;  Identification unit 201, configured to identify the device type of the external device;

可选的,所述设备类型包括USB接口设备和网口设备;所述识别单元中的判断模块,用于通过数据线高速传输口识别外部设备是否为所述USB接口设备;识别模块,用于当能识别所述外部设备时,则所述外部设备为所述USB接口设 备;以及,当不能识别所述外部设备时,则所述外部设备为所述网口设备。  Optionally, the device type includes a USB interface device and a network port device; the judging module in the identification unit is used to identify whether the external device is the USB interface device through a data line high-speed transmission port; the identification module is used to When the external device can be identified, then the external device is the USB interface device; and, when the external device cannot be identified, then the external device is the network port device. the

切换单元202,用于根据所述设备类型将当前通道切换到所述设备类型对应的通道。  The switching unit 202 is configured to switch the current channel to a channel corresponding to the device type according to the device type. the

可选的,所述切换单元中的USB接口切换模块,用于当所述设备类型为所述USB接口设备时,将当前通道切换到所述USB接口设备对应的USB通道,并通过数据线D-/+传输数据或者通过高速串行接收数据线SSRX-/+和高速串行发送数据线SSTX-/+传输数据;  Optionally, the USB interface switching module in the switching unit is configured to switch the current channel to the USB channel corresponding to the USB interface device when the device type is the USB interface device, and pass the data line D -/+ transmit data or transmit data through high-speed serial receive data line SSRX-/+ and high-speed serial transmit data line SSTX-/+;

所述切换单元中的网口切换模块,用于当所述设备类型为所述网口设备时,将当前通道切换到所述网口设备对应的网口通道,并通过所述SSRX-/+和所述SSTX-/+传输数据。  The network port switching module in the switching unit is used to switch the current channel to the network port channel corresponding to the network port device when the device type is the network port device, and pass the SSRX-/+ and the SSTX-/+ transmit data. the

所述装置还包括:设置单元,用于预设实现通道转换的电路上相关逻辑。根据所述设备类型,或者接收到的切换指令,通过控制电路上相关逻辑将当前通道切换到所述设备类型对应的通道,所述切换指令通过手动输入或者自动识别方式获得。  The device also includes: a setting unit, configured to preset relevant logic on a circuit for realizing channel conversion. According to the device type or the received switching instruction, the current channel is switched to the channel corresponding to the device type through relevant logic on the control circuit, and the switching instruction is obtained through manual input or automatic identification. the

本发明实施例提供的一种调试网口出面板的装置,通过识别单元识别外部设备的设备类型,然后通过识别出的设备类型,切换单元切换当前通道到所述设备类型对应的通道。与现有技术中通过内部模拟开关实现网口通道的切换时,不能实现USB接口和网口的切换,并且硬件设计较复杂相比,本发明实施例提供的方案可以实现USB接口和网口的自由切换,使硬件设计更简单。  The embodiment of the present invention provides a device for debugging network ports out of a panel. The identification unit identifies the device type of the external device, and then the switching unit switches the current channel to the channel corresponding to the device type based on the identified device type. Compared with the switching of the network port channel through the internal analog switch in the prior art, the switching between the USB interface and the network port cannot be realized, and the hardware design is relatively complicated, the solution provided by the embodiment of the present invention can realize the switching between the USB interface and the network port. Free switching makes hardware design easier. the

本发明实施例提供一种线缆,包括:所述线缆的任一端为USB3.0接口,用于连接单板;所述线缆的另一端为预设接口,用于连接外部设备。  An embodiment of the present invention provides a cable, comprising: either end of the cable is a USB3.0 interface for connecting to a single board; the other end of the cable is a preset interface for connecting to an external device. the

其中,所述线缆为USB 3.0标准线缆。所述预设接口包括USB接口和网口,所述网口为将所述USB3.0中的高速串行接收数据线SSRX-/+、高速串行发送数据线SSTX-/+、接地线制作成的网口,其中,所述USB接口可以为USB2.0接口,也可以为USB 3.0接口。  Wherein, the cable is a USB 3.0 standard cable. The preset interface includes a USB interface and a network port, and the network port is made of a high-speed serial receiving data line SSRX-/+, a high-speed serial transmitting data line SSTX-/+, and a grounding wire in the USB3.0 The formed network port, wherein, the USB interface can be a USB2.0 interface, and can also be a USB 3.0 interface. the

本发明实施例提供的一种线缆,通过电缆连接单板和外部设备,为实现USB接口和网口的自由切换提供硬件条件。  A cable provided by an embodiment of the present invention connects a single board and an external device through a cable, and provides hardware conditions for realizing free switching between a USB interface and a network interface. the

实施例2  Example 2

本发明实施例提供一种调试网口出面板的方法,如图3所示,该方法包括以下步骤:  The embodiment of the present invention provides a method for debugging the network port output panel, as shown in Figure 3, the method includes the following steps:

步骤301,用户将外部设备通过预设线缆连接;  Step 301, the user connects the external device through a preset cable;

所述预设线缆为USB 3.0标准线缆,不同的是,USB 3.0标准线缆一端为标准的USB 3.0接口,用于连接单板,单板为电路板等硬件,USB 3.0标准线缆的另一端制作成预设接口,与外部设备连接。预设接口包括USB接口和网口,其中,所述USB接口可以为USB2.0接口,也可以为USB3.0接口,即USB接口和网口重用,其中,将所述USB3.0中的高速串行接收数据线SSRX-/+、高速串行发送数据线SSTX-/+、接地线(GND_Drain或者GND)制作成网口RJ45接口。这样经过重新改制的预设线缆就可以为实现USB接口和网口的切换提供硬件条件。  The preset cable is a USB 3.0 standard cable. The difference is that one end of the USB 3.0 standard cable is a standard USB 3.0 interface, which is used to connect to a single board. The single board is a circuit board and other hardware. The USB 3.0 standard cable The other end is made into a preset interface for connecting with external devices. The preset interface includes a USB interface and a network port, wherein the USB interface can be a USB2.0 interface or a USB3.0 interface, that is, the USB interface and the network port can be reused, wherein the high-speed The serial receiving data line SSRX-/+, the high-speed serial transmitting data line SSTX-/+, and the grounding line (GND_Drain or GND) are made into a network port RJ45 interface. In this way, the re-engineered preset cable can provide hardware conditions for switching between the USB interface and the network interface. the

例如:如图4所示为USB 3.0标准线缆示意图,其中,两个黑线框内的数据线即为高速串行接收数据线SSRX-/+、高速串行发送数据线SSTX-/+。  For example: Figure 4 is a schematic diagram of a USB 3.0 standard cable, where the data lines in the two black boxes are the high-speed serial receive data line SSRX-/+, and the high-speed serial transmit data line SSTX-/+. the

步骤302,识别外部设备的设备类型;  Step 302, identifying the device type of the external device;

设备类型包括USB接口设备和网口设备;  Device types include USB interface devices and network port devices;

可选的,USB主机Host可以自动识别外部设备的设备类型,通过通信协议识别外部设备是否为所述USB接口设备;  Optionally, the USB host Host can automatically identify the device type of the external device, and identify whether the external device is the USB interface device through a communication protocol;

当能识别所述外部设备时,则所述外部设备为所述USB接口设备;  When the external device can be identified, the external device is the USB interface device;

当不能识别所述外部设备时,则所述外部设备为所述网口设备。  When the external device cannot be identified, the external device is the network port device. the

步骤303,当所述设备类型为所述USB接口设备时,将当前通道切换到所述USB接口设备对应的USB通道,并通过数据线D-/+传输数据或者通过所述SSRX-/+和所述SSTX-/+传输数据;  Step 303, when the device type is the USB interface device, switch the current channel to the USB channel corresponding to the USB interface device, and transmit data through the data line D-/+ or through the SSRX-/+ and The SSTX-/+ transmit data;

步骤304,当所述设备类型为所述网口设备时,将当前通道切换到所述网口设备对应的网口通道,并通过所述SSRX-/+和所述SSTX-/+传输数据;  Step 304, when the device type is the network port device, switch the current channel to the network port channel corresponding to the network port device, and transmit data through the SSRX-/+ and the SSTX-/+;

需要说明的是,步骤303和步骤304为USB Host自动识别出外部设备的设备类型后,自动将当前通道切换到设备类型对应的通道上进行数据传输,另外,本发明实施例提供的方案也可以通过手动控制的方式进行通道切换,即执行步骤301后,执行步骤305;  It should be noted that, after step 303 and step 304, after the USB Host automatically recognizes the device type of the external device, it automatically switches the current channel to the channel corresponding to the device type for data transmission. In addition, the solution provided by the embodiment of the present invention can also be Channel switching is performed by manual control, that is, after step 301 is executed, step 305 is executed;

步骤305,根据所述设备类型,或者接收到的切换指令,通过控制电路上相 关逻辑将当前通道切换到所述设备类型对应的通道;  Step 305, according to the device type, or the switching instruction received, switch the current channel to the channel corresponding to the device type through the relevant logic on the control circuit;

所述切换指令通过手动输入方式或者自动识别方式获得。首先预设实现通道转换的电路上相关逻辑;当用户将外部设备通过预设线缆连接时,用户已经知道外部设备为USB接口设备或者为网口设备,此时用户通过CPU(Central Processing Unit,中央处理器)串口输入相关指令,控制电路上相关逻辑将当前通道切换到所述设备类型对应的通道。当然,本发明也可以通过USB主机自动识别外部设备的设备类型,然后再由CPU控制切换外部设备的设备类型对应的通道。  The switching instruction is obtained through manual input or automatic identification. First, preset the relevant logic on the circuit to realize channel conversion; when the user connects the external device through the preset cable, the user already knows that the external device is a USB interface device or a network port device, and at this time the user passes the CPU (Central Processing Unit, The central processing unit) serial port inputs relevant instructions, and the relevant logic on the control circuit switches the current channel to the channel corresponding to the device type. Of course, the present invention can also automatically identify the device type of the external device through the USB host, and then switch the channel corresponding to the device type of the external device under the control of the CPU. the

例如,设置通道转换的电路上相关逻辑:USB接口设备时,设置“0”可以指示将当前通道切换到USB接口设备对应的USB通道;当为网口设备时,设置“1”可以指示将当前通道切换到网口设备对应的网口通道。这里“0”和“1”只是表示相对的逻辑关系。  For example, set the relevant logic on the circuit of channel conversion: when it is a USB interface device, setting "0" can indicate that the current channel is switched to the USB channel corresponding to the USB interface device; when it is a network port device, setting "1" can indicate that the current The channel is switched to the network port channel corresponding to the network port device. Here "0" and "1" just represent a relative logical relationship. the

本发明实施例提供的电路图如图5所示,其中,总线VBUS,用于接电源;数据线D-/+用于USB接口设备传输数据;GND、GND-DRAIN和Shield用于接地;高速串行接收数据线SSRX-/+和高速串行发送数据线SSTX-/+用于网口设备传输数据,根据本发明实施例提供的切换方法,将SSRX-/+和SSTX-/+通过通道切换可以切换到USB物理层,通过USB通道实现数据传输,也可以将USB通道通过通道切换切换到网口物理层,通过网口通道实现数据传输。其中,被CPU控制指手动控制,通过输入相关指令控制电路上相关逻辑实现通道转换。  The circuit diagram provided by the embodiment of the present invention is shown in Figure 5, wherein, the bus VBUS is used to connect the power supply; the data line D-/+ is used to transmit data to the USB interface device; GND, GND-DRAIN and Shield are used for grounding; the high-speed serial The line receiving data line SSRX-/+ and the high-speed serial transmitting data line SSTX-/+ are used for network port equipment to transmit data. According to the switching method provided by the embodiment of the present invention, SSRX-/+ and SSTX-/+ are switched through channels It can switch to the USB physical layer to realize data transmission through the USB channel, or switch the USB channel to the physical layer of the network port through channel switching to realize data transmission through the network port channel. Among them, being controlled by the CPU refers to manual control, and channel conversion is realized by inputting relevant instructions to control relevant logic on the circuit. the

本发明实施例提供一种调试网口出面板的方法,通过识别外部设备的设备类型,然后通过识别出的设备类型,切换当前通道到所述设备类型对应的通道,可以实现USB接口和网口的自由切换,使硬件设计更简单。  The embodiment of the present invention provides a method for debugging the network port output panel. By identifying the device type of the external device, and then switching the current channel to the channel corresponding to the device type through the identified device type, the USB interface and the network port can be realized. The free switching makes the hardware design easier. the

本发明实施例提供一种调试网口出面板的装置,如图6所示,该装置包括:识别单元601,判断模块6011,识别模块6012,切换单元602,USB接口切换模块6021,网口切换模块6022,设置单元603;  The embodiment of the present invention provides a device for debugging network ports out of the panel. As shown in FIG. Module 6022, setting unit 603;

识别单元601,用于识别外部设备的设备类型;  An identification unit 601, configured to identify the device type of the external device;

可选的,所述设备类型包括USB接口设备和网口设备;所述识别单元601中的判断模块6011,用于通过数据线高速传输口识别外部设备是否为所述USB 接口设备;  Optionally, the device type includes a USB interface device and a network port device; the judging module 6011 in the identification unit 601 is used to identify whether the external device is the USB interface device through a data line high-speed transmission port;

所述识别单元601中的识别模块6012,用于当能识别所述外部设备时,则所述外部设备为所述USB接口设备;以及,当不能识别所述外部设备时,则所述外部设备为所述网口设备。  The identification module 6012 in the identification unit 601 is configured to, when the external device can be identified, the external device is the USB interface device; and, when the external device cannot be identified, the external device is the network port device. the

根据识别单元601识别出的所述设备类型,切换单元602,用于将当前通道切换到所述设备类型对应的通道;  According to the device type identified by the identification unit 601, the switching unit 602 is used to switch the current channel to the channel corresponding to the device type;

可选的,所述切换单元602中的USB接口切换模块6021,用于当所述设备类型为所述USB接口设备时,将当前通道切换到所述USB接口设备对应的USB通道,并通过数据线D-/+传输数据或者通过高速串行接收数据线SSRX-/+和高速串行发送数据线SSTX-/+传输数据;  Optionally, the USB interface switching module 6021 in the switching unit 602 is configured to switch the current channel to the USB channel corresponding to the USB interface device when the device type is the USB interface device, and pass the data Line D-/+ transmits data or transmits data through high-speed serial receiving data line SSRX-/+ and high-speed serial transmitting data line SSTX-/+;

所述切换单元602中的网口切换模块6022,用于当所述设备类型为所述网口设备时,将当前通道切换到所述网口设备对应的网口通道,并通过所述SSRX-/+和所述SSTX-/+传输数据;  The network port switching module 6022 in the switching unit 602 is configured to switch the current channel to the network port channel corresponding to the network port device when the device type is the network port device, and pass the SSRX- /+ and the SSTX-/+ transmit data;

可选的,本发明还可以通过手动控制的方式进行切换通道,此时,用户可以通过自己识别外部设备的设备类型,当然,也可以通过识别单元601识别外部设备的设备类型,然后所述切换单元602还可以根据所述设备类型,以及接收到的切换指令,通过控制电路上相关逻辑将当前通道切换到所述设备类型对应的通道,所述切换指令通过手动输入方式获得;需要说明的是,需要在方法执行之前,设置单元603预设实现通道转换的电路上相关逻辑。  Optionally, the present invention can also switch channels through manual control. At this time, the user can identify the device type of the external device by himself. Of course, the device type of the external device can also be identified through the identification unit 601, and then the switching Unit 602 can also switch the current channel to the channel corresponding to the device type through the relevant logic on the control circuit according to the device type and the received switching instruction. The switching instruction is obtained through manual input; it should be noted that , it is necessary that before the method is executed, the setting unit 603 presets relevant logic on a circuit for realizing channel conversion. the

本发明实施例提供一种调试网口出面板的装置,通过识别单元识别外部设备的设备类型,然后通过识别出的设备类型,切换单元切换当前通道到所述设备类型对应的通道,可以实现USB接口和网口的自由切换,使硬件设计更简单。  The embodiment of the present invention provides a device for debugging the network port out of the panel. The identification unit identifies the device type of the external device, and then through the identified device type, the switching unit switches the current channel to the channel corresponding to the device type, which can realize USB The free switching of interface and network port makes hardware design easier. the

本发明实施例提供一种线缆,所述线缆为USB3.0标准线缆,其中所述线缆的任一端为USB3.0接口,用于连接单板,单板可以为电路板等硬件;所述线缆的另一端为预设接口,用于连接外部设备。所述预设接口包括USB接口和网口,其中,所述USB接口可以为USB2.0接口,也可以为USB3.0接口,即USB接口和网口重用。所述网口为将所述USB3.0中的高速串行接收数据线SSRX-/+、高速串行发送数据线SSTX-/+、接地线制作成的网口。  An embodiment of the present invention provides a cable, the cable is a USB3.0 standard cable, wherein either end of the cable is a USB3.0 interface for connecting a single board, and the single board can be a hardware such as a circuit board ; The other end of the cable is a preset interface for connecting external devices. The preset interface includes a USB interface and a network port, wherein the USB interface can be a USB2.0 interface or a USB3.0 interface, that is, the USB interface and the network port can be reused. The network port is a network port made of the high-speed serial receiving data line SSRX-/+, the high-speed serial transmitting data line SSTX-/+, and the grounding line in the USB3.0. the

本发明实施例提供一种线缆,通过对USB3.0标准线缆进行改造,可以实现USB接口和网口重用,从而为实现USB接口和网口的自由切换提供硬件条件。  The embodiment of the present invention provides a cable. By modifying the USB3.0 standard cable, the reuse of the USB interface and the network port can be realized, thereby providing hardware conditions for realizing free switching between the USB interface and the network port. the

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。  The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims. the

Claims (12)

1.一种调试网口出面板的方法,其特征在于,包括:1. A method for debugging a network port out of a panel, characterized in that, comprising: 识别外部设备的设备类型,所述外部设备通过预设线缆与单板连接;Identifying the device type of the external device, the external device is connected to the single board through a preset cable; 根据所述设备类型将当前通道切换到所述设备类型对应的通道;Switching the current channel to a channel corresponding to the device type according to the device type; 其中,所述预设线缆与所述单板连接的一端为USB3.0接口,所述预设线缆与所述外部设备连接的接口为预设接口;所述预设接口包括USB接口和网口,所述网口为将所述USB3.0接口中的高速串行接收数据线SSRX-/+、高速串行发送数据线SSTX-/+、接地线制作成的。Wherein, one end of the preset cable connected to the single board is a USB3.0 interface, and the interface connected to the external device by the preset cable is a preset interface; the preset interface includes a USB interface and A network port, the network port is made of the high-speed serial receiving data line SSRX-/+, the high-speed serial transmitting data line SSTX-/+, and the grounding line in the USB3.0 interface. 2.根据权利要求1所述的方法,其特征在于,所述设备类型包括USB接口设备和网口设备;2. The method according to claim 1, wherein the device types include USB interface devices and network port devices; 所述识别外部设备的设备类型包括:The device types for identifying external devices include: 通过数据线高速传输口识别外部设备是否为所述USB接口设备;Identifying whether the external device is the USB interface device through the high-speed transmission port of the data line; 当能识别所述外部设备时,则所述外部设备为所述USB接口设备;When the external device can be identified, the external device is the USB interface device; 当不能识别所述外部设备时,则所述外部设备为所述网口设备。When the external device cannot be identified, the external device is the network port device. 3.根据权利要求1所述的方法,其特征在于,所述外部设备通过预设线缆的预设接口连接,所述预设接口包括USB接口和网口;所述预设线缆的另一端为USB 3.0接口,用于连接单板。3. The method according to claim 1, wherein the external device is connected through a preset interface of a preset cable, and the preset interface includes a USB interface and a network port; another part of the preset cable One end is a USB 3.0 interface for connecting to the board. 4.根据权利要求3所述的方法,其特征在于,所述预设线缆为USB 3.0标准线缆。4. The method according to claim 3, wherein the preset cable is a USB 3.0 standard cable. 5.根据权利要求1所述的方法,其特征在于,所述根据所述设备类型将当前通道切换到所述设备类型对应的通道包括:5. The method according to claim 1, wherein the switching the current channel to the channel corresponding to the device type according to the device type comprises: 当所述设备类型为所述USB接口设备时,将当前通道切换到所述USB接口设备对应的USB通道,并通过数据线D-/+传输数据或者通过高速串行接收数据线SSRX-/+和高速串行发送数据线SSTX-/+传输数据;When the device type is the USB interface device, switch the current channel to the USB channel corresponding to the USB interface device, and transmit data through the data line D-/+ or receive the data line SSRX-/+ through the high-speed serial and high-speed serial transmission data line SSTX-/+ to transmit data; 当所述设备类型为所述网口设备时,将当前通道切换到所述网口设备对应的网口通道,并通过所述SSRX-/+和所述SSTX-/+传输数据。When the device type is the network port device, switch the current channel to the network port channel corresponding to the network port device, and transmit data through the SSRX-/+ and the SSTX-/+. 6.根据权利要求5所述的方法,其特征在于,所述根据所述设备类型将当前通道切换到所述设备类型对应的通道包括:6. The method according to claim 5, wherein the switching the current channel to the channel corresponding to the device type according to the device type comprises: 根据所述设备类型,或者接收到的切换指令,通过控制电路上相关逻辑将当前通道切换到所述设备类型对应的通道,所述切换指令通过手动输入方式或者自动识别方式获得。According to the device type or the received switching instruction, the current channel is switched to the channel corresponding to the device type through relevant logic on the control circuit, and the switching instruction is obtained through manual input or automatic identification. 7.根据权利要求6所述的方法,其特征在于,预设实现通道转换的电路上相关逻辑。7. The method according to claim 6, characterized in that the related logic on the circuit for realizing the channel switching is preset. 8.一种调试网口出面板的装置,其特征在于,包括:8. A device for debugging a network port out of a panel, characterized in that it comprises: 识别单元,用于识别外部设备的设备类型,所述外部设备通过预设线缆与单板连接;An identification unit, configured to identify the device type of the external device, and the external device is connected to the single board through a preset cable; 切换单元,用于根据所述设备类型将当前通道切换到所述设备类型对应的通道;其中,所述预设线缆与所述单板连接的一端为USB3.0接口,所述预设线缆与所述外部设备连接的接口为预设接口;所述预设接口包括USB接口和网口,所述网口为将所述USB3.0接口中的高速串行接收数据线SSRX-/+、高速串行发送数据线SSTX-/+、接地线制作成的。A switching unit, configured to switch the current channel to a channel corresponding to the device type according to the device type; wherein, one end of the preset cable connected to the single board is a USB3.0 interface, and the preset cable The interface connecting the cable to the external device is a preset interface; the preset interface includes a USB interface and a network port, and the network port is a high-speed serial receiving data line SSRX-/+ in the USB3.0 interface , High-speed serial transmission data line SSTX-/+, and grounding line are made. 9.根据权利要求8所述的装置,其特征在于,所述设备类型包括USB接口设备和网口设备;9. The device according to claim 8, wherein the device types include USB interface devices and network port devices; 所述识别单元包括:The identification unit includes: 判断模块,用于通过数据线高速传输口识别外部设备是否为所述USB接口设备;A judging module, configured to identify whether the external device is the USB interface device through the high-speed transmission port of the data line; 识别模块,用于当能识别所述外部设备时,则所述外部设备为所述USB接口设备;以及,当不能识别所述外部设备时,则所述外部设备为所述网口设备。An identification module, configured to determine that the external device is the USB interface device when the external device can be identified; and that the external device is the network port device when the external device cannot be identified. 10.根据权利要求8所述的装置,其特征在于,所述切换单元包括:10. The device according to claim 8, wherein the switching unit comprises: USB接口切换模块,用于当所述设备类型为所述USB接口设备时,将当前通道切换到所述USB接口设备对应的USB通道,并通过数据线D-/+传输数据或者通过高速串行接收数据线SSRX-/+和高速串行发送数据线SSTX-/+传输数据;The USB interface switching module is used to switch the current channel to the USB channel corresponding to the USB interface device when the device type is the USB interface device, and transmit data through the data line D-/+ or through the high-speed serial Receive data line SSRX-/+ and high-speed serial transmission data line SSTX-/+ to transmit data; 网口切换模块,用于当所述设备类型为所述网口设备时,将当前通道切换到所述网口设备对应的网口通道,并通过所述SSRX-/+和所述SSTX-/+传输数据。A network port switching module, used to switch the current channel to the network port channel corresponding to the network port device when the device type is the network port device, and pass the SSRX-/+ and the SSTX-/ + Transfer data. 11.根据权利要求10所述的装置,其特征在于,所述切换单元具体用于:11. The device according to claim 10, wherein the switching unit is specifically used for: 根据所述设备类型,或者接收到的切换指令,通过控制电路上相关逻辑将当前通道切换到所述设备类型对应的通道,所述切换指令通过手动输入方式或者自动识别方式获得。According to the device type or the received switching instruction, the current channel is switched to the channel corresponding to the device type through relevant logic on the control circuit, and the switching instruction is obtained through manual input or automatic identification. 12.根据权利要求11所述的装置,其特征在于,所述装置还包括:12. The device according to claim 11, further comprising: 设置单元,用于预设实现通道转换的电路上相关逻辑。The setting unit is used to preset relevant logic on a circuit for realizing channel conversion.
CN201210186652.XA 2012-06-07 2012-06-07 Method and device for debugging Internet access out of panel Expired - Fee Related CN102761624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210186652.XA CN102761624B (en) 2012-06-07 2012-06-07 Method and device for debugging Internet access out of panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210186652.XA CN102761624B (en) 2012-06-07 2012-06-07 Method and device for debugging Internet access out of panel

Publications (2)

Publication Number Publication Date
CN102761624A CN102761624A (en) 2012-10-31
CN102761624B true CN102761624B (en) 2015-01-21

Family

ID=47055942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210186652.XA Expired - Fee Related CN102761624B (en) 2012-06-07 2012-06-07 Method and device for debugging Internet access out of panel

Country Status (1)

Country Link
CN (1) CN102761624B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391321B (en) * 2016-05-17 2021-10-12 中兴通讯股份有限公司 Electronic computer single board and server debugging system
CN106528477A (en) * 2016-12-05 2017-03-22 陈丹丹 USB external structure designing method, antivirus dedicated computer
WO2019015681A1 (en) 2017-07-20 2019-01-24 青岛海信电器股份有限公司 Terminal device and control method therefor
CN110825682B (en) * 2019-11-05 2022-08-02 维沃移动通信有限公司 USB control method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620790A (en) * 2001-12-30 2005-05-25 联想(北京)有限公司 Device for physical layer self-adapting different network transmission link media and control method
CN201945991U (en) * 2011-01-28 2011-08-24 联想(北京)有限公司 Electronic device and interface detection device
CN102193503A (en) * 2010-03-15 2011-09-21 研祥智能科技股份有限公司 Industrial control mainboard and method thereof for identifying external device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090037622A1 (en) * 2007-08-02 2009-02-05 Broadcom Corporation Method and system for changing operation modes of an interface device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620790A (en) * 2001-12-30 2005-05-25 联想(北京)有限公司 Device for physical layer self-adapting different network transmission link media and control method
CN102193503A (en) * 2010-03-15 2011-09-21 研祥智能科技股份有限公司 Industrial control mainboard and method thereof for identifying external device
CN201945991U (en) * 2011-01-28 2011-08-24 联想(北京)有限公司 Electronic device and interface detection device

Also Published As

Publication number Publication date
CN102761624A (en) 2012-10-31

Similar Documents

Publication Publication Date Title
JP6721768B2 (en) Robust cable type detection for USB power transfer
CN107148806B (en) Apparatus, method and system for controlling a load device via a power line using a power negotiation protocol
US10261930B2 (en) System, device and method for transmitting signals between different communication interfaces
US10445274B2 (en) Universal serial bus (USB) hub for connecting different port types and method thereof
TWI620068B (en) Universal serial bus hub with multiple hosts supported and automobile head unit using the same
CN102761624B (en) Method and device for debugging Internet access out of panel
CN204576500U (en) A kind of usb communication circuit of compatible I2C communication and system
CN204155267U (en) A kind of OTG usb circuit
CN105824771A (en) Electronic device and master-slave switching method and apparatus thereof
CN107959806A (en) A kind of binodal point server KVM switches circuit
CN105703935B (en) Tool automatically switches the server system of shared network function
CN204117142U (en) Electronic device for providing instant switching and sharing of universal serial bus electronic equipment by host
CN108055212B (en) Method and device compatible with PSE chip
TWM521768U (en) System and apparatus of separating half-duplex
CN112346403A (en) Extend module connecting circuit
US8954623B2 (en) Universal Serial Bus devices supporting super speed and non-super speed connections for communication with a host device and methods using the same
CN108737673B (en) Network telephone equipment, external connection card and communication method of network telephone equipment
US10637993B1 (en) High-bandwidth home network over phone line
CN104104976B (en) Wireless access point apparatus and set top box
CN103631750B (en) The method and electronic equipment of a kind of information processing
CN203840344U (en) A serial data transmission system
CN202886974U (en) Server computer remote control system based on controller area network (CAN) bus
CN103905090A (en) Power line communication equipment and power line communication method
CN110209617A (en) A kind of UART serial ports Transistor-Transistor Logic level communicates two-way physics monitoring system and method
CN111083029A (en) Train Ethernet-based cross-marshalling data transmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150121