CN105429907A - Automatic serial port identification device and method - Google Patents

Automatic serial port identification device and method Download PDF

Info

Publication number
CN105429907A
CN105429907A CN201510741901.0A CN201510741901A CN105429907A CN 105429907 A CN105429907 A CN 105429907A CN 201510741901 A CN201510741901 A CN 201510741901A CN 105429907 A CN105429907 A CN 105429907A
Authority
CN
China
Prior art keywords
analog switch
serial port
automatic identification
line sequence
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510741901.0A
Other languages
Chinese (zh)
Other versions
CN105429907B (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.)
Huzhou Yinglie Intellectual Property Operation Co ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510741901.0A priority Critical patent/CN105429907B/en
Publication of CN105429907A publication Critical patent/CN105429907A/en
Application granted granted Critical
Publication of CN105429907B publication Critical patent/CN105429907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/102Packet switching elements characterised by the switching fabric construction using shared medium, e.g. bus or ring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/109Integrated on microchip, e.g. switch-on-chip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Control By Computers (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention provides an automatic serial port identification device and method. The device comprises a power supply unit, an analogy switch and a central processor, wherein the power supply unit supplies power to the analog switch and the central processor, and the central processor determines the line sequence type of an access device connected to the analog switch, and triggers the analog switch to switch to a port corresponding to the line sequence type of the access device. The automatic serial port identification device can automatically identify the line sequence type of the access device, so that the analog switch is switched to the port corresponding to the line sequence type of the access device, incapability of using or debugging caused by different line sequence types of serial ports is avoided, the labor and material cost is reduced, and the maintenance timeliness is improved.

Description

Automatic serial port identification device and method
Technical Field
The invention relates to the technical field of communication, in particular to a serial port automatic identification device and method.
Background
With the development of computer networks and the rise of the internet, more and more intelligent instruments are connected to the network, which becomes a trend. After the Ethernet is accessed, the sharing and remote management of data can be realized.
The non-service port on the single board comprises a serial port and a network port. The serial port is one of the commonly used debugging interfaces of the single board, and is the most commonly used and basic interface for single board hardware debugging and problem location. The serial port is an interface initialized earliest after a Central Processing Unit (CPU) is started, and can output an initialization process of the CPU to the single board hardware and issue a control command. The network port is a high-speed interface directly output by the CPU, and can be used for communication with large data volume such as service software in equipment.
An ethernet switch is a device that connects various servers and terminals and is responsible for receiving and forwarding data between them. In the field of switches, serial port lines of different manufacturers need to be debugged and tested, and then serial port lines of corresponding manufacturer equipment are selected.
However, in the actual use or maintenance process, if the serial port line of the corresponding manufacturer equipment is forgotten to be taken, the serial port line cannot be logged in due to different serial port line sequences, great inconvenience is brought to maintenance and debugging, waste of manpower and material resources is caused, and the time efficiency of first-aid repair is delayed.
Disclosure of Invention
In view of the above disadvantages of the prior art, an object of the present invention is to provide an automatic serial port identification apparatus and method, which are used to solve the problems in the prior art that login is impossible due to different serial port line sequences, maintenance and debugging are inconvenient, costs of labor and material resources are high, and first-aid repair timeliness is poor.
In order to achieve the above and other related objects, the present invention provides an automatic serial port identification device, which includes a power supply unit, an analog switch, and a central processing unit, wherein: the power supply unit is respectively connected with the analog switch and the central processing unit and is used for supplying power to the analog switch and the central processing unit; the central processing unit is respectively connected with the power supply unit and the analog switch, and is used for determining the line sequence type of the access equipment connected with the analog switch and triggering the analog switch to a port corresponding to the line sequence type of the access equipment.
In an embodiment of the invention, the power module obtains power through the DB9 port.
In an embodiment of the present invention, the central processing unit is an SCT15W203 chip.
In an embodiment of the invention, the analog switch is an FSUSB30MUX chip.
In an embodiment of the present invention, the analog switch is connected to the access device through an RJ45 port.
In an embodiment of the present invention, the access device is a switch.
Correspondingly, the invention also provides an automatic serial port identification method, which comprises the following steps: determining the line sequence type of access equipment connected with a central processing unit through an analog switch; and switching the analog switch to a port corresponding to the line sequence type of the access equipment according to the line sequence type of the access equipment.
In an embodiment of the present invention, the central processing unit is an SCT15W203 chip.
In an embodiment of the invention, the analog switch is an FSUSB30MUX chip.
In an embodiment of the present invention, the analog switch is connected to the access device through an RJ45 port.
As mentioned above, the serial port automatic identification device and method of the invention have the following beneficial effects:
the serial port automatic identification device is provided with a power supply unit, an analog switch and a central processing unit, wherein the power supply unit is used for supplying power to the analog switch and the central processing unit; the central processing unit is used for determining the line sequence type of the access equipment connected with the analog switch and triggering the analog switch to the port corresponding to the line sequence type of the access equipment. This serial ports automatic identification equipment can automatic identification access equipment line preface type to make analog switch over to the port that corresponds with access equipment line preface type, avoid because of the unable use or the debugging that serial ports line preface type is different and lead to, reduce manpower and material resources cost, improve the ageing of salvageing.
Furthermore, the total current of used device is less than 10mA among the serial ports automatic identification device, can directly adopt the serial ports to get the mode of electricity and provide the power, and power module accessible DB9 port gets the electricity among the serial ports automatic identification device promptly, makes serial ports automatic identification device use more convenient, and application range is wider.
Drawings
Fig. 1 is a schematic structural diagram of an automatic serial port identification apparatus according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a simulation switch in the automatic serial port identification device according to an embodiment of the present invention.
Fig. 3 is a schematic flow chart illustrating an automatic serial port identification method according to an embodiment of the present invention.
Description of the element reference numerals
1 serial port automatic identification device
11 power supply unit
12 central processing unit
13 analog switch
S11-S13
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
In the prior art, when the access equipment is debugged, used or maintained, due to different serial port line sequence types of equipment of different manufacturers, login cannot be performed, great inconvenience is caused to debugging, use or maintenance of the access equipment, waste of manpower and material resources is caused, and the time efficiency of first-aid repair is delayed. Therefore, if an automatic serial port identification device can be provided, when the access device is debugged, used or maintained, the port corresponding to the line sequence type of the access device can be automatically provided, so that various inconveniences can be avoided, the waste of manpower and material resources is reduced, and the timeliness of first-aid repair is improved.
Referring to fig. 1, the present invention provides a schematic structural diagram of an automatic serial port identification device. The serial port automatic identification device 1 in fig. 1 comprises a power supply unit 11, an analog switch 13 and a central processing unit 12; wherein,
the power supply unit 11 is respectively connected with the analog switch 13 and the central processing unit 12, and is used for supplying power to the analog switch 13 and the central processing unit 12;
the central processing unit 12 is connected to the power supply unit 11 and the analog switch 13, and is configured to determine a line sequence type of an access device connected to the analog switch 13, and trigger the analog switch 13 to switch to a port corresponding to the line sequence type of the access device.
In this embodiment, central processing unit 13 in this serial ports automatic identification device 1 can automatic identification access equipment line preface type to make analog switch 13 switch over to the port that corresponds with access equipment line preface type, avoid because of the unable use or the debugging that lead to of access equipment serial ports line preface type difference, reduce manpower and material resources cost, improve the timeliness of salvageing.
In another embodiment, the power module in the serial port automatic identification device gets power through the DB9 port. Because the total current that used device was less than 10mA among the serial ports automatic identification device, consequently can directly adopt the serial ports to get the mode of electricity and provide the power to it is more convenient to make serial ports automatic identification device use, and application range is wider.
In yet another embodiment, the central processor is an SCT15W203 chip. The analog switch may be a FSUSB30MUX chip. Specifically, the analog switch may be a FSUSB30MUX chip manufactured by fairchild corporation. The serial port identification device is simple in construction and material taking and easy to realize.
Fig. 2 is a schematic structural diagram of the serial port automatic identification device with the analog switch being an FSUSB30MUX chip. The OE and S signals are controlled by a central processor. In the operation of the analog switch in fig. 2:
when OE (output enable) is high, then the D +, D-signal will not be transmitted;
when OE is low, and S (select input) is low, D +, D-will be conducted with 1+, 1-respectively;
when OE is low and S is high, D +, D-will be on with 2+, 2-, respectively.
In yet another embodiment, the analog switch is connected to the access device through an RJ45 port. The access device is a switch. At this time, the central processing unit detects which line-sequential type switch the RJ45 port access device belongs to. If no response is made, the central processing unit is always in a detection state, and after the detection is OK, a detection OK instruction is sent, and the analog switch is controlled to be switched to a port corresponding to the line sequence type of the access equipment. Serial ports automatic identification equipment can effectively improve the convenience that the switch inserts in this embodiment, when the debugging of switch, use and maintenance, does not receive the port restriction, and is more convenient.
Correspondingly, when the access equipment is debugged, used or maintained, the problems that the access equipment cannot be logged in due to different serial port line sequence types of equipment of different manufacturers, the access equipment is inconvenient to debug, use or maintain, the cost of manpower and material resources is high, the emergency repair timeliness is poor and the like are solved.
Referring to fig. 3, the present invention provides a flow chart of a serial port automatic identification method. The method for automatically identifying the serial port in fig. 3 comprises the following steps:
step S11, determining the line sequence type of the access device connected with the central processing unit through the analog switch;
step S12, according to the line sequence type of the access device, the analog switch is switched to a port corresponding to the line sequence type of the access device.
According to the method for automatically identifying the serial port, the line sequence type of the access equipment can be automatically identified, so that the analog switch is switched to the port corresponding to the line sequence type of the access equipment, the problem that the analog switch cannot be used or debugged due to different line sequence types of the serial port is avoided, the manpower and material resource cost is reduced, and the timeliness of rush repair is improved.
In another embodiment, the central processor is an SCT15W203 chip. The analog switch may be a FSUSB30MUX chip. Specifically, the analog switch may be a FSUSB30MUX chip manufactured by fairchild corporation. The serial port identification device is simple in construction and material taking and easy to realize.
In yet another embodiment, the analog switch is connected to the access device through an RJ45 port. The access device may be a switch. At this time, the central processing unit detects which line-sequential type switch the RJ45 port access device belongs to. If no response is made, the central processing unit is always in a detection state, and after the detection is OK, a detection OK instruction is sent, and the analog switch is controlled to be switched to a port corresponding to the line sequence type of the access equipment. Serial ports automatic identification equipment can effectively improve the convenience that the switch inserts in this embodiment, when the debugging of switch, use and maintenance, does not receive the port restriction, and is more convenient.
In summary, the central processing unit in the serial port automatic identification device of the present invention can automatically identify the line sequence type of the access device, so that the analog switch is switched to the port corresponding to the line sequence type of the access device, thereby avoiding the problem that the analog switch cannot be used or debugged due to different line sequence types of the serial ports of the access device, reducing the cost of manpower and material resources, and improving the timeliness of emergency repair. In addition, the total current that used device was less than 10mA among the serial ports automatic identification device, can directly adopt the serial ports to get the mode of electricity and provide the power, power module accessible DB9 port gets the electricity among the serial ports automatic identification device promptly, makes serial ports automatic identification device use more convenient, and application range is wider. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. The utility model provides a serial ports automatic identification equipment which characterized in that, serial ports automatic identification equipment includes electrical unit, analog switch and central processing unit, wherein:
the power supply unit is respectively connected with the analog switch and the central processing unit and is used for supplying power to the analog switch and the central processing unit;
the central processing unit is respectively connected with the power supply unit and the analog switch, and is used for determining the line sequence type of the access equipment connected with the analog switch and triggering the analog switch to a port corresponding to the line sequence type of the access equipment.
2. The serial port automatic identification device according to claim 1, characterized in that: the power module gets electricity through DB9 port.
3. The serial port automatic identification device according to claim 1, characterized in that: the central processing unit is an SCT15W203 chip.
4. The serial port automatic identification device according to claim 1, characterized in that: the analog switch is an FSUSB30MUX chip.
5. The serial port automatic identification device according to claim 1, characterized in that: the analog switch is connected with the access device through an RJ45 port.
6. The serial port automatic identification device according to any one of claims 1 to 5, characterized in that: the access device is a switch.
7. An automatic serial port identification method is characterized by comprising the following steps:
determining the line sequence type of access equipment connected with a central processing unit through an analog switch;
and switching the analog switch to a port corresponding to the line sequence type of the access equipment according to the line sequence type of the access equipment.
8. The serial port automatic identification method according to claim 7, characterized in that: the central processing unit is an SCT15W203 chip.
9. The serial port automatic identification method according to claim 7, characterized in that: the analog switch is an FSUSB30MUX chip.
10. The serial port automatic identification method according to claim 7, characterized in that: the analog switch is connected with the access device through an RJ45 port.
CN201510741901.0A 2015-11-04 2015-11-04 Serial ports automatic identification equipment and method Active CN105429907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510741901.0A CN105429907B (en) 2015-11-04 2015-11-04 Serial ports automatic identification equipment and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510741901.0A CN105429907B (en) 2015-11-04 2015-11-04 Serial ports automatic identification equipment and method

Publications (2)

Publication Number Publication Date
CN105429907A true CN105429907A (en) 2016-03-23
CN105429907B CN105429907B (en) 2018-06-19

Family

ID=55507852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510741901.0A Active CN105429907B (en) 2015-11-04 2015-11-04 Serial ports automatic identification equipment and method

Country Status (1)

Country Link
CN (1) CN105429907B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168910A (en) * 2017-03-29 2017-09-15 昆明理工大学 Microcontroller serial port automatic switch-over circuit
CN109359078A (en) * 2018-12-10 2019-02-19 威创集团股份有限公司 A kind of self-adapting serial port interface circuit and its control method for middle control host

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5953688A (en) * 1996-08-09 1999-09-14 Institute For Information Industry Multi-port data collection system
CN202308699U (en) * 2011-09-30 2012-07-04 哈尔滨今星微电子科技有限公司 Multifunctional serial port connecting device
CN104090511A (en) * 2014-06-30 2014-10-08 上海贝岭股份有限公司 Circuit and method for achieving non-polar 485 communication
CN204102125U (en) * 2014-08-12 2015-01-14 武汉烽火网络有限责任公司 A kind of multi-channel serial port converter controlling mouth for expansion equipment
CN204374343U (en) * 2014-11-07 2015-06-03 中国石油天然气股份有限公司 Serial port line detection device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5953688A (en) * 1996-08-09 1999-09-14 Institute For Information Industry Multi-port data collection system
CN202308699U (en) * 2011-09-30 2012-07-04 哈尔滨今星微电子科技有限公司 Multifunctional serial port connecting device
CN104090511A (en) * 2014-06-30 2014-10-08 上海贝岭股份有限公司 Circuit and method for achieving non-polar 485 communication
CN204102125U (en) * 2014-08-12 2015-01-14 武汉烽火网络有限责任公司 A kind of multi-channel serial port converter controlling mouth for expansion equipment
CN204374343U (en) * 2014-11-07 2015-06-03 中国石油天然气股份有限公司 Serial port line detection device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168910A (en) * 2017-03-29 2017-09-15 昆明理工大学 Microcontroller serial port automatic switch-over circuit
CN107168910B (en) * 2017-03-29 2020-02-07 昆明理工大学 Automatic serial port switching circuit of single chip microcomputer
CN109359078A (en) * 2018-12-10 2019-02-19 威创集团股份有限公司 A kind of self-adapting serial port interface circuit and its control method for middle control host

Also Published As

Publication number Publication date
CN105429907B (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN105788227B (en) Fault diagnosis equipment for electricity consumption information acquisition system
CN103944739B (en) Intelligent POE electric supply systems and its efficient POE method for managing power supply
CN103927256A (en) Method for controlling multiple Android devices
CN105868133B (en) A kind of serial ports remote centralized management method for more node mainboards
CN107817401B (en) Pressure testing method and device for electricity consumption information acquisition system
CN110764036B (en) Intelligent distribution transformer terminal test method and system
CN109428727A (en) The power-economizing method of power supply unit and Power over Ethernet
CN106330467A (en) Ethernet power supply method, power supply device and power supply equipment
WO2016197685A1 (en) Method and device for controlling power supply to chip, and communication device
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN105429907B (en) Serial ports automatic identification equipment and method
CN103019905A (en) Substrate managing controller and data processing method thereof
CN1960276B (en) Remote control system and method
CN106371876B (en) Method and system for upgrading external program of product
CN105378650B (en) Method and apparatus for controlling the operation mode of processing module
CN110824336A (en) Test system and test method
CN109889406A (en) For managing method, apparatus, equipment and the storage medium of network connection
CN108111578A (en) The method of distribution terminal data acquisition platform access terminal equipment based on NIO
CN105068967B (en) Control method, device and the terminal of I2C equipment
CN204129980U (en) A kind of can the Network Lab of Long-distance Control
CN207516987U (en) It is a kind of to support the reliability of multi-USB interface equipment is same to survey device
CN103095739A (en) Cabinet server system and node communication method thereof
CN104407714A (en) Main board and use method thereof for remote multi-computer switching
CN105808495B (en) A kind of USB shares cabinet
CN109765983A (en) Run procedure management method, device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201203

Address after: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province

Patentee after: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230105

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province

Patentee before: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd.

TR01 Transfer of patent right