CN204481826U - Network serial port tester - Google Patents

Network serial port tester Download PDF

Info

Publication number
CN204481826U
CN204481826U CN201420716467.1U CN201420716467U CN204481826U CN 204481826 U CN204481826 U CN 204481826U CN 201420716467 U CN201420716467 U CN 201420716467U CN 204481826 U CN204481826 U CN 204481826U
Authority
CN
China
Prior art keywords
power
network
interface
circuit board
control circuit
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
CN201420716467.1U
Other languages
Chinese (zh)
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.)
Taiyuan Aero Instruments Co Ltd
Original Assignee
Taiyuan Aero Instruments 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 Taiyuan Aero Instruments Co Ltd filed Critical Taiyuan Aero Instruments Co Ltd
Priority to CN201420716467.1U priority Critical patent/CN204481826U/en
Application granted granted Critical
Publication of CN204481826U publication Critical patent/CN204481826U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The utility model provides a kind of Network Serial Port tester, comprises control circuit board, built-in power, power interface, serial ports, network interface, button and switch; Wherein, connected by switch between built-in power and control circuit board, power interface is connected to built-in power charge port, RS232, RJ45 mouth of serial ports, network interface connection control circuit board, the I/O mouth of button, indicator light connection control circuit board; The tester provided adopts Single-chip Controlling network and serial data, carries out data communication, the normal bright green indicator light of transfer of data, otherwise shiny red indicator light with product.Beneficial effect is: network interface and the serial ports that can test measured object, and distinguish circuit-under-test plate interface fault easily, structure is simple, easy to carry.Starting up speed is fast, low in energy consumption, test operation is easy to learn, it is simple and clear to indicate, compact easily carries, mobility is high.

Description

Network Serial Port tester
Technical field
The utility model relates to a kind of Network Serial Port tester (device that network (TCP/IP) and serial ports (RS232) are tested), and especially one is applicable to test: k series FBe series FBx FBd (tcp-ip) NCC (fluorescence Chinese display) (ARM9 mainboard) letter (2400) valuation (9600) the Network Serial Port tester of large scale.
Background technology
At present, network, serial ports test many employings notebook or PC; Starting up's time is longer, testing equipment volume is comparatively large, carry inconvenience, mobility is poor, testing equipment cost is higher; Use complicated operation, indicate loaded down with trivial details; In batch production process, waste a large amount of time and reduce efficiency.
Utility model content
Technical problem to be solved in the utility model is: provide a kind of novel Network Serial Port tester, overcomes existingly to carry the weak points such as inconvenience, inconvenient operation, poor mobility.
The utility model solves the technical scheme that its technical problem adopts: provide a kind of Network Serial Port tester, its primary structure comprises control circuit board, built-in power, power interface, serial ports, network interface, button and switch; Wherein, connected by switch between built-in power and control circuit board, power interface is connected to built-in power charge port, RS232, RJ45 mouth of serial ports, network interface connection control circuit board, the I/O mouth of button, indicator light connection control circuit board; The tester provided adopts Single-chip Controlling network and serial data, carries out data communication, the normal bright green indicator light of transfer of data, otherwise shiny red indicator light with product.
Described control circuit board, employing single-chip microcomputer STC89C54RD+ is master controller, W5100 module is mixed-media network modules mixed-media, MAX3232 is level conversion, take button as input signal, LED light is for exporting instruction, and LED light adopts single-chip processor i/o port Direct driver.
described built-in power, built-in 11200mAh portable power source is circuit supply, adopts the USB interface of standard, is applicable to portable electric appts, and product safety, easy to carry, capacity is large.
By control circuit board, portable power source, power interface, serial ports, network interface, button and switch in described Network Serial Port tester structural design, all parts is fixed to enclosure interior, adopts aluminium section bar to be collective's shell.
Other structures that described Network Serial Port tester adopts are: adopt 1 switch to be that complete machine cut-offs power supply; 1 button is adopted to be the input signal that serial ports is tested; Adopt 4 LED light as the index signal exporting various state; 1 DB9 interface is adopted to use as test RS232; 1 RJ45 interface is adopted to use as test network; Adopt 1 USB interface as the charge port of internal electric source.
Serial ports test philosophy: single-chip microcomputer is at main program Inner eycle scanning switch input signal;
If the switching signal of receiving, initialization serial ports is 19200, sends serial ports test data, waits for product return data.After time delay 20ms, in verification buffering area, whether data are k series data.Verify correct RS232 green light 300ms, terminate test;
If check errors, in verification buffering area, whether data are FBe series data, verify correct RS232 green light 300ms, terminate test;
If check errors, in verification buffering area, whether data are FBd (tcp-ip agreement) series data, verify correct RS232 green light 300ms, terminate test;
If check errors, in verification buffering area, whether data are FBx series data, verify correct RS232 green light 300ms, terminate test;
If check errors, send ACS_FBd series serial ports test data, wait for product return data.After time delay 20ms, in verification buffering area, whether data are ACS_FBd series data, verify correct RS232 green light 300ms, terminate test;
If check errors, send NCC (fluorescence Chinese display) serial serial ports test data, wait for product return data.After time delay 20ms, in verification buffering area, whether data are NCC (fluorescence Chinese display) series data, verify correct RS232 green light 300ms, terminate test;
If check errors, initialization serial ports is 2400, sends letter (2400) serial ports test data, waits for product return data.After time delay 20ms, in verification buffering area, whether data are letter (2400) serial ports series data, verify correct RS232 green light 300ms, terminate test;
If check errors, initialization serial ports is 9600, sends valuation (9600) serial ports test data, waits for product return data.After time delay 20ms, in verification buffering area, whether data are valuation (9600) serial ports series data, verify correct RS232 green light 300ms, terminate test.If check errors, RS232 when red 300ms, terminates test;
Knock out the red and green indicator light of RS232, single-chip microcomputer continues scan round switch input signal in main program.
Network interface test philosophy: W5100 module integration the ICP/IP protocol stack of devices at full hardware, ethernet medium transport layer (MAC) and physical layer (PHY).Hardware ICP/IP protocol stack supports that measurand and the grafting of W5100 module netting twine are got up by TCP, UDP, IPv4, ICMP, ARP, IGMP and PPPOE.W5100 module and measurand set up the connection of physical layer.Single-chip microcomputer, by simulation SPI mouth line, carries out port (Socket) programming.By ICMP protocol emulation ping order, whether communication is normal for test test product network interface.If communication normal TCP indicator light green light Chang Liang, otherwise red light Chang Liang.
The beneficial effects of the utility model are: starting up speed is fast, low in energy consumption, test operation is easy to learn, it is simple and clear to indicate, compact easily carries, mobility is high.In batch production process, save a large amount of time, improve efficiency, energy-saving and emission-reduction; This equipment adopts unified test interface, need not open multiple software and just can test different products, has saved the time of mutual switching computer software, has improve efficiency; This equipment adopts the chip design of low-power consumption, and power supply continuous working period is long, can work and need not charge for 2 weeks, save the energy simultaneously.
Accompanying drawing explanation
Fig. 1 is equipment complete machine structure;
Fig. 2 is software flow schematic diagram;
Fig. 3 is power module schematic diagram;
Fig. 4 is one-chip computer module schematic diagram;
Fig. 5 is W5100 module diagram;
Fig. 6 is 232 level conversion schematic diagrames;
Fig. 7 is imput output circuit schematic diagram;
Fig. 8 is meter case schematic diagram.
Embodiment
Below in conjunction with drawings and Examples, the utility model is further illustrated.
The utility model provides a kind of Network Serial Port tester, and its primary structure is control circuit board, built-in power, power interface, serial ports, network interface, button, indicator light and switch.Switch is connected between built-in power and the 5V of control circuit board; Power interface is connected to the charge port of built-in power; RS232, RJ45 mouth of serial ports, network interface connection control circuit board; The I/O mouth of button, indicator light connection control circuit board.The tester provided adopts Single-chip Controlling network and serial data, carries out data communication, the normal bright green indicator light of transfer of data, otherwise shiny red indicator light with product.
Described control circuit board, employing single-chip microcomputer STC89C54RD+ is master controller, W5100 module is mixed-media network modules mixed-media, MAX3232 is level conversion, take button as input signal, LED light is for exporting instruction, and LED light adopts single-chip processor i/o port Direct driver.
Described power module selects AS1117-3.3, is a low pressure difference linear voltage regulator, can by the voltage stabilizing of 5V power supply to 3.3V, and load current is 800mA.Output voltage precision 1%.
Described one-chip computer module selects STC89C54RD+ series monolithic, be a new generation that macrocrystalline science and technology is released superpower anti-interference, at a high speed, the single-chip microcomputer (typical power consumption is 4-7mA) of low-power consumption, 8051 single-chip microcomputers that instruction code is completely compatible traditional, 12 clocks/machine cycle and 6 clocks/machine cycle can be selected arbitrarily.Built-in system ISP monitoring program.Universaling I/O port, after reset: P1/P2/P3/P4 is accurate bidirectional interface/weak pull-up.P0 mouth is out to leak output, when doing bus extension, need not add pull-up resistor, need pull-up resistor when doing I/O mouth.
Described W5100 module (W5100 module interface), its inside be integrated with devices at full hardware and through the TCP/IP protocol stack of the checking of market for many years, ethernet medium transport layer (MAC) and physical layer (PHY).W5100 internal hardware TCP/IP protocol stack supports TCP, UDP, IPv4, ICMP, ARP, IGMP and PPPoE.W5100 inside is also integrated with 16KB memory for transfer of data.Use W5100 not need to consider the control of Ethernet, only need to carry out simple port (Socket) programming.
Described level conversion selects MAX3232 series, and the level conversion of this series has an efficient charge pump, only needs 0.1 μ F electric capacity just can operate when operating voltage is 3.3V.Charge pump sends the signal meeting RS232 under allowing MAX3232 series certain voltage in+3.3V ~+5.0V.MAX3232 series is the device of an intension 2 driver/2 receivers, is applicable to portable or portable equipment (as notebook or palmtop computer).The ESD protection of MAX3232 makes the pin of driver and receiver can bear ± 15kV human-body model and IEC1000-4-2 bubble-discharge pattern.MAX3232 device comprises a kind of low-power consumption shutdown mode, under this pattern device driver export and charge pump be prohibited.Under off state, source current is lower than 1 μ A.
The input and output of described tester, use 4 led indicator lights, have reserved 4 keyboards and 1 buzz circuit.Led indicator light adopts single-chip processor i/o port Direct driver.Keyboard circuit is actual is exactly one group of button, in SCM peripheral circuit, employing be mechanical elasticity switch, the line conduction when button is pressed, after loosing one's grip, circuit disconnects automatically.
Software initialization brief introduction, initialization procedure can as the general initialization of this kind equipment.
1, the initialization (timer, serial ports) of single-chip microcomputer.
2, W5100 initialization (arrange gateway 4 byte, subnet mask 4 byte, physical address 6 byte, local IP address 4 byte, send buffering area and reception buffer zone size, retry time, number of retries are set).
3, the Socket initialization (point leaf length is set, local port number is set, destination slogan is set, Offered target ip address) of W5100.
4, network test: this testing cassete is as client mode, Socket is set and is set to TCP client mode, main program often calls Socket_Connect (s) function, produce and once connect, if connect unsuccessful, then produce overtime interrupt, then can call this function again and connect.Successful connection sends 3 ping orders (S_txIPRAW_process() to target), wait for destination address return data, each return data is correct, and show that network is correct, corresponding indicator light is bright.(request message ICMP ECHO type 8 code 0, response message ICMP ECHOREPLY type 0 code 0) that Ping order uses the ECHO request message in ICMP agreement to carry out.
The protocol basis of network test ping order is ICMP agreement.General introduction ICMP agreement: IP agreement is a kind of insecure agreement, cannot carry out error control.But IP agreement can realize this function, as ICMP by other agreements.ICMP(Internet Control Messages Protocol, Internet Control Message Protocol) allow main frame or router report error situation and the report about abnormal conditions is provided.In general, icmp packet provides for the large function of the error diagnosis of network layer, congestion control, path clustering and inquiry service four.As, after a grouping cannot arrive object website or TTL time-out, router will abandon this grouping, and returns the icmp packet that an object website can not arrive to Source Site.
The front 32bits of various icmp packet is the fixing fields of three length: type type field (8), code code field (8), checksum checksum field (16), 8bits type and 8bits code field: together with determine the type of icmp packet.Common are:
Type 8, code 0: retroeflection request;
Type 0, code 0: retroeflection is replied;
Class1 1, code 0: time-out.
16bits checksum field: the School Affairs comprising the whole ICMP packet of data, its computational methods are the same with the computational methods of IP header checksum.Figure below is an ICMP retroeflection request and response message header format (the bottom data form of test).For ICMP retroeflection request and response message, be next 16bits identifier field: for identifying this ICMP process.
5, serial ports test: when have test serial ports button time, successively to target send k series (19200) FBe series FBx FBd (tcp-ip) NCC (fluorescence Chinese display) (ARM9 mainboard) letter (2400) valuation (9600).If certain agreement has correct return data in process of transmitting, represent that serial communication is normal, the bright 300ms of corresponding green indicating lamp.Otherwise the bright 300ms of red led, this tests end.

Claims (1)

1. a Network Serial Port tester, structure comprises control circuit board, built-in power, power interface, serial ports, network interface, button and switch; Wherein, connected by switch between built-in power and control circuit board, power interface is connected to built-in power charge port, RS232, RJ45 mouth of serial ports, network interface connection control circuit board, the I/O mouth of button, indicator light connection control circuit board; It is characterized in that: the tester provided adopts Single-chip Controlling network and serial data, carries out data communication, the normal bright green indicator light of transfer of data, otherwise shiny red indicator light with product;
Described control circuit board, employing single-chip microcomputer STC89C54RD+ is master controller, W5100 module is mixed-media network modules mixed-media, MAX3232 is level conversion, take button as input signal, LED light is for exporting instruction, and LED light adopts single-chip processor i/o port Direct driver;
Described built-in power, selects 11200mAh portable power source to be circuit supply, adopts the USB interface of standard;
By control circuit board, portable power source, power interface, serial ports, network interface, button and switch in described Network Serial Port tester structural design, all parts is fixed to enclosure interior, adopts aluminium section bar to be collective's shell;
Other structures that described Network Serial Port tester adopts are: adopt 1 switch to be that complete machine cut-offs power supply; 1 button is adopted to be the input signal that serial ports is tested; Adopt 4 LED light as the index signal exporting various state; 1 DB9 interface is adopted to use as test RS232; 1 RJ45 interface is adopted to use as test network; Adopt 1 USB interface as the charge port of internal electric source.
CN201420716467.1U 2014-11-26 2014-11-26 Network serial port tester Expired - Fee Related CN204481826U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201420716467.1U CN204481826U (en) 2014-11-26 2014-11-26 Network serial port tester

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201420716467.1U CN204481826U (en) 2014-11-26 2014-11-26 Network serial port tester

Publications (1)

Publication Number Publication Date
CN204481826U true CN204481826U (en) 2015-07-15

Family

ID=53637597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201420716467.1U Expired - Fee Related CN204481826U (en) 2014-11-26 2014-11-26 Network serial port tester

Country Status (1)

Country Link
CN (1) CN204481826U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165129A (en) * 2018-09-01 2019-01-08 安恒环境科技(北京)股份有限公司 Serial communication test device
CN110376401A (en) * 2018-04-14 2019-10-25 广东韶钢松山股份有限公司 It is a kind of for detecting the interface conversion line and its application method of serial ports route

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110376401A (en) * 2018-04-14 2019-10-25 广东韶钢松山股份有限公司 It is a kind of for detecting the interface conversion line and its application method of serial ports route
CN109165129A (en) * 2018-09-01 2019-01-08 安恒环境科技(北京)股份有限公司 Serial communication test device

Similar Documents

Publication Publication Date Title
CN202794497U (en) On-site comprehensive detection equipment for electric energy information acquisition terminal
CN103453985B (en) Distributed wireless light intensity measuring instrument
CN203339424U (en) Wireless intelligent energy consumption gauge
CN204597168U (en) There is the multifunction wireless socket of function of measuring
CN105681050A (en) Multifunctional POE detector and network detection method and POE detection method thereof
CN204481826U (en) Network serial port tester
CN208905026U (en) Versatile interface protocol conversion module based on LORA network
CN104994536B (en) A kind of configuration method and portable configuration device towards WSCN nodes
CN102255975A (en) Dual-port-random access memory (RAM)-based embedded common Ethernet/Internet protocol (IP) communication interface device
CN205176626U (en) Intelligent movement communication base station energy management device
CN203909603U (en) Communication manager used for monitoring temperature and humidity of transformer station terminal box
CN202025312U (en) Intelligent data conversion equipment facing a switch cabinet
CN208589996U (en) Intelligent home control system based on radio network technique
CN204721367U (en) Width funtion based on ethernet ip v6 communication protocol is powered concentrator
CN102506932A (en) Thermodynamic type energy-efficiency data acquisition terminal
CN206649655U (en) Portable Wifi turns polymorphic type communication interface arrangement
CN205429874U (en) Photovoltaic microgrid system based on thing networking sensing technology
CN207835500U (en) A kind of detecting system monitoring communication module based on cloud
CN203563088U (en) Protocol conversion board of industrial Ethernet and HART bus
CN203705932U (en) Modbus communication concentrator based on wireless technology
CN201966957U (en) Monitor terminal for 485 telecommunication image acquisition and transmission
Zhou et al. Design of smart home system based on internet of things technology
CN105634878A (en) Smart home system based on electric energy information terminal
CN211019117U (en) Low-voltage centralized meter reading debugging circuit
CN203249714U (en) Multi-communication-interface automatic temperature and flow calibration apparatus for calorimeters

Legal Events

Date Code Title Description
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: 20150715

Termination date: 20191126