CN202282784U - Controlling device for converting serial port to Ethernet based on STM 32 - Google Patents

Controlling device for converting serial port to Ethernet based on STM 32 Download PDF

Info

Publication number
CN202282784U
CN202282784U CN2011203945300U CN201120394530U CN202282784U CN 202282784 U CN202282784 U CN 202282784U CN 2011203945300 U CN2011203945300 U CN 2011203945300U CN 201120394530 U CN201120394530 U CN 201120394530U CN 202282784 U CN202282784 U CN 202282784U
Authority
CN
China
Prior art keywords
pin
chip
ceramic disc
disc capacitor
stm32
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
CN2011203945300U
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.)
HANGZHOU OUXIN ELECTRONIC TECHNOLOGY CO LTD
Original Assignee
HANGZHOU OUXIN ELECTRONIC 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 HANGZHOU OUXIN ELECTRONIC TECHNOLOGY CO LTD filed Critical HANGZHOU OUXIN ELECTRONIC TECHNOLOGY CO LTD
Priority to CN2011203945300U priority Critical patent/CN202282784U/en
Application granted granted Critical
Publication of CN202282784U publication Critical patent/CN202282784U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

The utility model relates to a controlling device for converting a serial port to Ethernet based on STM 32, comprising a power supply circuit, a micro-control unit circuit, a JTAG debugging interface circuit, a serial port communication interface circuit and an Ethernet physical interface transceiver control circuit. The power supply circuit comprises a power supply voltage stabilization chip, a double pin power supply socket connector, a rectifier diode, a light emitting diode, an inductor, a paster resistor, two tantalum capacitors and four ceramic capacitors; the micro-control unit circuit comprises an STM 32 interconnection processor, an expansion pin, a crystal oscillator, two buttons, three paster resistors and eleven ceramic capacitors; the Ethernet physical interface transceiver control circuit comprises an Ethernet physical interface transceiver controller chip, an RJ45 interface, an active crystal oscillator, a tantalum capacitor, sixteen paster resistors and nine ceramic capacitors. The controlling device of the utility model has the advantages of a small volume, low costs and low power dissipation and can perform real time operation and monitoring by telnet.

Description

A kind of based on STM32 serial ports commentaries on classics Ethernet control device
Technical field
The utility model belongs to the control technology field, and relating to a kind ofly changes the Ethernet control device based on the STM32 serial ports, is mainly used in the transducer in the internet-of-things terminal, PLC, and RS-232/485/422 serial equipments such as controller, detector, card reader connect the Internet.
Technical background
Along with the arrival in Internet of Things epoch, China country and government have been fully recognized that the importance of technology of Internet of things revolution.China's Internet industry development has in recent years possessed necessary base rapidly in the Internet of Things industry development in future.But the Internet of Things current situation of China also is in an initiation state, and lacking core technology and independent intellectual property right is one of restriction China Internet of Things development key factor.Serial ports commentaries on classics Ethernet device research direction mainly concentrates on miniaturization, low-power consumption, the low cost in the prior art.
Summary of the invention
The purpose of the utility model just provides a kind of based on STM32 serial ports commentaries on classics Ethernet control device.
The utility model comprises power circuit, micro control unit circuit, JTAG debug i/f circuit, serial communication interface circuit, Ethernet physical interface transceiver control circuit.
Said power circuit comprises power supply voltage stabilizing chip, two pin power connector, rectifier diode, light-emitting diode, inductance, a Chip-R, two tantalum electric capacity, four ceramic disc capacitors.3 pin of power supply voltage stabilizing chip are connected with the positive pole of an end of first ceramic disc capacitor, the first tantalum electric capacity, the negative electrode of rectifier diode; The anode of rectifier diode connects a pin of two pin power connectors, the minus earth of another pin of two pin power connectors, the other end of first ceramic disc capacitor, the first tantalum electric capacity; 2 pin of power supply voltage stabilizing chip are connected with the positive pole of an end of second ceramic disc capacitor, the second tantalum electric capacity, an end of first Chip-R, an end of inductance, as power output end; The other end of first Chip-R is connected with the anode of light-emitting diode, and the end after the 3rd ceramic disc capacitor and the 4th ceramic disc capacitor parallel connection is connected with the other end of inductance, as a reference voltage output end; The negative pole of the other end after the 3rd ceramic disc capacitor and the 4th ceramic disc capacitor parallel connection, the negative electrode of light-emitting diode, the second tantalum electric capacity, the other end of second ceramic disc capacitor, the equal ground connection of 1 pin of power supply voltage stabilizing chip.
Described micro control unit circuit comprises STM32 interconnectivity processor, extended pin, crystal oscillator, two buttons, three Chip-Rs, 11 ceramic disc capacitors.39~46 pin of STM32 interconnectivity processor are connected with eight pins of extended pin respectively; 37 pin of STM32 interconnectivity processor are connected with an end of second Chip-R, the other end ground connection of second Chip-R; 6 pin of STM32 interconnectivity processor are connected with an end of the 3rd Chip-R; The other end of the 3rd Chip-R is connected with an end of the 5th ceramic disc capacitor, an end of first button, the other end ground connection of 94 pin of STM32 interconnectivity processor, the other end of the 5th ceramic disc capacitor, first button; One end of first crystal oscillator is connected with 12 pin of STM32 interconnectivity processor, an end of the 6th ceramic disc capacitor; The other end of first crystal oscillator is connected the other end ground connection of the other end of the 6th ceramic disc capacitor and the 7th ceramic disc capacitor with 13 pin of STM32 interconnectivity processor, an end of the 7th ceramic disc capacitor; 14 pin of STM32 interconnectivity processor are connected with an end of an end of second button, the 8th ceramic disc capacitor, an end of the 4th Chip-R, as reset pin, and the other end of the 8th ceramic disc capacitor and the second button other end ground connection; 21 pin of STM32 interconnectivity processor and an end of the 9th ceramic disc capacitor are connected the other end ground connection of the 9th ceramic disc capacitor with reference voltage output terminal in the power circuit; 19 pin of STM32 interconnectivity processor are connected back ground connection with 20 pin; 22 pin of STM32 interconnectivity processor are connected with an end of the tenth ceramic disc capacitor, the other end ground connection of the tenth ceramic disc capacitor; 10 pin of STM32 interconnectivity processor, 27 pin, 49 pin, 74 pin and 99 pin ground connection; 11 pin of STM32 interconnectivity processor, 28 pin, 50 pin, 75 pin and 100 pin are connected; And be connected the other end ground connection after the parallel connection with a end after the 11 ceramic disc capacitor, the 12 ceramic disc capacitor, the 13 ceramic disc capacitor, the 14 ceramic disc capacitor, the 15 ceramic disc capacitor parallel connection; The other end of 6 pin of STM32 interconnectivity processor, 11 pin, 22 pin, 28 pin, 50 pin, 75 pin and 100 pin, the 4th Chip-R is connected with the power output end in the power circuit.
Described JTAG debug i/f circuit comprises ten pin plugs and six Chip-Rs.3 pin of ten pin plugs are connected with an end of the 7th Chip-R, 5 pin are connected with an end of the 6th Chip-R, 7 pin are connected with an end of the 5th Chip-R, 9 pin are connected with an end of the 8th Chip-R, 4 pin are connected with an end of the 9th Chip-R, 6 pin are connected 10 pin ground connection of ten pin plugs with an end of the tenth Chip-R; After being connected, the other end of the other end of the other end of 1 pin of ten pin plugs and 2 pin, the 5th Chip-R, the other end of the 6th Chip-R, the 7th Chip-R, the other end of the 9th Chip-R, the tenth Chip-R connects the power output end in the power circuit, the other end ground connection of the 8th Chip-R; 90 pin, 6 pin that 76 pin, 4 pin that 77 pin, 9 pin that 72 pin, 7 pin that 14 pin, 5 pin that 3 pin of ten pin plugs connect STM32 interconnectivity processor connect STM32 interconnectivity processor connect STM32 interconnectivity processor connect STM32 interconnectivity processor connect STM32 interconnectivity processor connect 89 pin of STM32 interconnectivity processor.
Described serial communication interface circuit comprises RS-232 transponder chip, RS-232 serial communication interface and four ceramic disc capacitors.7 pin of RS-232 transponder chip are connected with the input of RS-232 serial communication interface, 8 pin are connected with the output of RS-232 serial communication interface, 9 pin are connected with 68 pin of STM32 interconnectivity processor, 10 pin are connected with 69 pin of STM32 interconnectivity processor; 4 pin are connected with the two ends of the 18 ceramic disc capacitor respectively with 5 pin; 1 pin is connected with the two ends of the 19 ceramic disc capacitor respectively with 3 pin; 6 pin are connected with an end of the 16 ceramic disc capacitor, and 2 pin are connected with an end of the 17 ceramic disc capacitor; 15 pin of RS-232 transponder chip and the other end ground connection of the 16 ceramic disc capacitor, 16 pin of RS-232 transponder chip and the other end of the 17 ceramic disc capacitor are connected with power output end in the power circuit.
Described Ethernet physical interface transceiver control circuit comprises Ethernet physical interface transceiver controller chip, RJ45 interface, active crystal oscillator, tantalum electric capacity, 16 Chip-Rs and nine ceramic disc capacitors.39 pin of Ethernet physical interface transceiver controller chip are connected with an end of the 11 Chip-R, 40 pin are connected with an end of the 12 Chip-R; The other end of the 11 Chip-R and the other end ground connection of the 12 Chip-R; 7 pin of Ethernet physical interface transceiver controller chip are connected with an end of the 13 Chip-R, 34 pin are connected with an end of the 14 Chip-R, 24 pin are connected with an end of the 15 Chip-R; 37 pin of Ethernet physical interface transceiver controller chip, 18 pin, 23 pin are connected with the positive pole of the 3rd tantalum electric capacity; End after the 20 ceramic disc capacitor, the 21 ceramic disc capacitor, the 22 ceramic disc capacitor parallel connection is connected with the positive pole of the 3rd tantalum electric capacity; Other end ground connection after the parallel connection; One end of the 23 ceramic disc capacitor is connected with 3 pin of active crystal oscillator, 2 pin of active crystal oscillator, the other end of the 23 ceramic disc capacitor, the minus earth of the 3rd tantalum electric capacity; 21 pin of Ethernet physical interface transceiver controller chip are connected with an end of the 22 Chip-R, 20 pin are connected with an end of the 23 Chip-R, 10 pin of an end of 28 pin and the 24 Chip-R and RJ45 interface are connected, 27 pin are connected with an end of the 25 Chip-R, 26 pin are connected with an end of the 26 Chip-R and 11 pin of RJ45 interface; End after the 24 ceramic disc capacitor, the 25 ceramic disc capacitor, the 26 ceramic disc capacitor parallel connection is connected with 32 pin of Ethernet physical interface transceiver controller chip; Other end ground connection after the parallel connection, 15 pin of Ethernet physical interface transceiver controller chip, 19 pin, 35 pin, 36 pin, 47 pin ground connection; 17 pin of Ethernet physical interface transceiver controller chip are connected with 1 pin of an end of the 16 Chip-R and RJ45 interface, 2 pin of an end of 16 pin and the 17 Chip-R and RJ45 interface are connected, 3 pin of an end of 14 pin and the 18 Chip-R and RJ45 interface are connected, 13 pin are connected with an end of the 19 Chip-R and 6 pin of RJ45 interface; The other end of the other end of the other end of one end of 4 pin of RJ45 interface and an end of 5 pin, the 27 ceramic disc capacitor, the 28 ceramic disc capacitor, the other end of the 16 Chip-R, the 17 Chip-R, the other end of the 18 Chip-R, the 19 Chip-R, the other end of the 20 Chip-R, the 21 Chip-R is connected the other end of the 27 ceramic disc capacitor and the other end ground connection of the 28 ceramic disc capacitor with the power output end in the power circuit; The other end of the other end of the other end of the other end of the 13 Chip-R, the other end of the 15 Chip-R, the 22 Chip-R, the other end of the 23 Chip-R, the 24 Chip-R, the other end of the 25 Chip-R, the 26 Chip-R, the other end of the 23 ceramic disc capacitor are connected with power output end in the power circuit; 22 pin of Ethernet physical interface transceiver controller chip, 32 pin, 48 pin are connected with power output end in the power circuit; 2 pin are connected with 48 pin of STM32 interconnectivity processor; 3 pin are connected with 51 pin of STM32 interconnectivity processor, and 4 pin are connected with 52 pin of STM32 interconnectivity processor, and 43 pin are connected with 56 pin of STM32 interconnectivity processor; 44 pin are connected with 57 pin of STM32 interconnectivity processor; 41 pin are connected with 47 pin of STM32 interconnectivity processor, and 40 pin are connected with 55 pin of STM32 interconnectivity processor, and 31 pin are connected with 16 pin of STM32 interconnectivity processor; 30 pin are connected with 26 pin of STM32 interconnectivity processor, and 29 pin are connected with 14 pin of STM32 interconnectivity processor.
Power supply voltage stabilizing chip in the utility model, STM32 interconnectivity processor, RS-232 transponder chip, Ethernet physical interface transceiver controller chip, RS-232 serial communication interface, RJ45 interface all adopt matured product.
The utility model can send mass data to Ethernet through serial ports, supports that the serial ports baud rate is adjustable, guarantees the integrality and the reliability of data.Can cross the IE browser that carries through PC and open the webpage that is embedded in the STM32 processor; Treat as a WebServer to processor; Revise IP address and the serial ports baud rate of system through webpage, and support power down, reset and preserve setting and button factory reset function.Simultaneously can send data to serial ports, and guarantee the reliability and stability of data through Ethernet.This system has realized the transparent transmission of network and serial data basically.Pass through the function of Ethernet teletransmission so can realize serial data.
The utility model is taked Soc chip solution; And on the basis of the advantage that volume is little, cost is low and low in energy consumption that the Soc solution is had; The user interface of hommization and bigger user customizable space more are provided, main operation and configuration feature have been concentrated carried out through webpage, really with Soc as a small server; And in predictable future, any system that can browsing page can this system of Telnet carry out real-time operation and monitoring.
Description of drawings
Fig. 1 is the structure principle chart of the utility model;
Fig. 2 is the circuit diagram of power circuit among Fig. 1;
Fig. 3 is the circuit diagram of micro control unit circuit among Fig. 1;
Fig. 4 is the circuit diagram of JTAG debug i/f circuit among Fig. 1;
Fig. 5 is the circuit diagram of serial communication interface circuit among Fig. 1;
Fig. 6 is the circuit diagram of Ethernet physical interface transceiver control circuit among Fig. 1;
Fig. 7 is the software flow pattern of the utility model.
Embodiment
As shown in figs. 1 and 3, change the Ethernet control device based on the STM32 serial ports and comprise power circuit 1, micro control unit circuit 2, JTAG debug i/f circuit 3, serial communication interface circuit 4, Ethernet physical interface transceiver control circuit 5.
As shown in Figure 2, power circuit 1 comprises power supply voltage stabilizing chip IC 1, two pin power connector J, rectifier diode D1, light-emitting diode D2, inductance L, a Chip-R, two tantalum electric capacity, four ceramic disc capacitors.3 pin of power supply voltage stabilizing chip IC 1 are connected with the end of the first ceramic disc capacitor C1, the positive pole of the first tantalum capacitor C ⅰ, the negative electrode of rectifier diode D1; The anode of rectifier diode D1 connects the pin of two pin power connector J, the minus earth of another pin of two pin power connector J, the other end of the first ceramic disc capacitor C1, the first tantalum capacitor C ⅰ; 2 pin of power supply voltage stabilizing chip IC 1 are connected with the end of the second ceramic disc capacitor C2, the positive pole of the second tantalum capacitor C ⅱ, the end of the first Chip-R R1, an end of inductance L, as power output end VCC; The other end of the first Chip-R R1 is connected with the anode of light-emitting diode D2, and the end after the 3rd ceramic disc capacitor C3 and the 4th ceramic disc capacitor C4 parallel connection is connected with the other end of inductance L, as a reference voltage output end VREF+; The negative pole of the other end after the 3rd ceramic disc capacitor C3 and the 4th ceramic disc capacitor C4 parallel connection, the negative electrode of light-emitting diode D2, the second tantalum capacitor C ⅱ, the other end of the second ceramic disc capacitor C2, the equal ground connection of 1 pin of power supply voltage stabilizing chip IC 1.
As shown in Figure 3, micro control unit circuit 2 comprises STM32 interconnectivity processor IC2, extended pin P, crystal oscillator Y1, two buttons, three Chip-Rs, 11 ceramic disc capacitors; 39~46 pin of STM32 interconnectivity processor IC2 are connected with eight pins of extended pin respectively; 37 pin of STM32 interconnectivity processor IC2 are connected the other end ground connection of the second Chip-R R2 with the end of the second Chip-R R2; 6 pin of STM32 interconnectivity processor IC2 are connected with the end of the 3rd Chip-R R3; The other end of the 3rd Chip-R R3 is connected with the end of the 5th ceramic disc capacitor C5, the end of the first button B1, the other end ground connection of 94 pin of STM32 interconnectivity processor IC2, the other end of the 5th ceramic disc capacitor C5, the first button B1; The end of the first crystal oscillator Y1 is connected with 12 pin of STM32 interconnectivity processor IC2, the end of the 6th ceramic disc capacitor C6; The other end of the first crystal oscillator Y1 is connected the other end ground connection of the other end of the 6th ceramic disc capacitor C6 and the 7th ceramic disc capacitor C7 with 13 pin of STM32 interconnectivity processor IC2, the end of the 7th ceramic disc capacitor C7; 14 pin of STM32 interconnectivity processor IC2 are connected with the end of the end of the second button B2, the 8th ceramic disc capacitor C8, the end of the 4th Chip-R R4, as reset pin RESET, and the other end of the 8th ceramic disc capacitor C8 and the second button B2 other end ground connection; 21 pin of STM32 interconnectivity processor IC2 and the end of the 9th ceramic disc capacitor C9 are connected the other end ground connection of the 9th ceramic disc capacitor C9 with reference voltage output terminal VREF+ in the power circuit 1; 19 pin of STM32 interconnectivity processor IC2 are connected back ground connection with 20 pin; 22 pin of STM32 interconnectivity processor IC2 are connected the other end ground connection of the tenth ceramic disc capacitor C10 with the end of the tenth ceramic disc capacitor C10; 10 pin of STM32 interconnectivity processor IC2,27 pin, 49 pin, 74 pin and 99 pin ground connection; 11 pin, 28 pin, 50 pin, 75 pin and 100 pin of STM32 interconnectivity processor IC2 are connected; And be connected the other end ground connection after the parallel connection with a end after the 11 ceramic disc capacitor C11, the 12 ceramic disc capacitor C12, the 13 ceramic disc capacitor C13, the 14 ceramic disc capacitor C14, the 15 ceramic disc capacitor C15 parallel connection; 6 pin, 11 pin, 22 pin, 28 pin, 50 pin, 75 pin and 100 pin of STM32 interconnectivity processor IC2, the other end of the 4th Chip-R R4 are connected with power output end VCC in the power circuit 1.
As shown in Figure 4, JTAG debug i/f circuit 3 comprises ten pin plug JTAG and six Chip-Rs; 3 pin of ten pin plug JTAG are connected with the end of the 7th Chip-R R7,5 pin are connected with the end of the 6th Chip-R R6,7 pin are connected with the end of the 5th Chip-R R5,9 pin are connected with the end of the 8th Chip-R R8,4 pin are connected with the end of the 9th Chip-R R9,6 pin are connected the 10 pin ground connection of ten pin plug JTAG with the end of the tenth Chip-R R10; After being connected, the other end of the other end of the other end of 1 pin of ten pin plug JTAG and 2 pin, the 5th Chip-R R5, the other end of the 6th Chip-R R6, the 7th Chip-R R7, the other end of the 9th Chip-R R9, the tenth Chip-R R10 meets the power output end VCC in the power circuit 1, the other end ground connection of the 8th Chip-R R8; 90 pin, 6 pin that 76 pin, 4 pin that 77 pin, 9 pin that 72 pin, 7 pin that 14 pin, 5 pin that 3 pin of ten pin plug JTAG meet STM32 interconnectivity processor IC2 meet STM32 interconnectivity processor IC2 meet STM32 interconnectivity processor IC2 meet STM32 interconnectivity processor IC2 meet STM32 interconnectivity processor IC2 connect 89 pin of STM32 interconnectivity processor IC2.
As shown in Figure 5, serial communication interface circuit 4 comprises RS-232 transponder chip IC3, RS-232 serial communication interface RS232 and four ceramic disc capacitors; 7 pin of RS-232 transponder chip IC3 are connected with the input of RS-232 serial communication interface RS232,8 pin are connected with the output of RS-232 serial communication interface RS232,9 pin are connected with 68 pin of STM32 interconnectivity processor IC2,10 pin are connected with 69 pin of STM32 interconnectivity processor IC2; 4 pin are connected with the two ends of the 18 ceramic disc capacitor C18 respectively with 5 pin; 1 pin is connected with the two ends of the 19 ceramic disc capacitor C19 respectively with 3 pin; 6 pin are connected with the end of the 16 ceramic disc capacitor C16, and 2 pin are connected with the end of the 17 ceramic disc capacitor C17; 15 pin of RS-232 transponder chip IC3 and the other end ground connection of the 16 ceramic disc capacitor C16,16 pin of RS-232 transponder chip IC3 and the other end of the 17 ceramic disc capacitor C17 are connected with power output end VCC in the power circuit 1.
As shown in Figure 6, Ethernet physical interface transceiver control circuit 5 comprises Ethernet physical interface transceiver controller chip IC4, RJ45 interface RJ45, active crystal oscillator Y2, tantalum electric capacity, 16 Chip-Rs and nine ceramic disc capacitors; 39 pin of Ethernet physical interface transceiver controller chip IC4 are connected with the end of the 11 Chip-R R11,40 pin are connected with the end of the 12 Chip-R R12; The other end ground connection of the other end of the 11 Chip-R R11 and the 12 Chip-R R12; 7 pin of Ethernet physical interface transceiver controller chip IC4 are connected with the end of the 13 Chip-R R13,34 pin are connected with the end of the 14 Chip-R R14,24 pin are connected with the end of the 15 Chip-R R15; 37 pin of Ethernet physical interface transceiver controller chip IC4,18 pin, 23 pin are connected with the positive pole of the 3rd tantalum capacitor C ⅲ; End after the 20 ceramic disc capacitor C20, the 21 ceramic disc capacitor C21, the 22 ceramic disc capacitor C22 parallel connection is connected with the positive pole of the 3rd tantalum capacitor C ⅲ; Other end ground connection after the parallel connection; The end of the 23 ceramic disc capacitor C23 is connected with 3 pin of active crystal oscillator Y2, the minus earth of 2 pin of active crystal oscillator Y2, the other end of the 23 ceramic disc capacitor C23, the 3rd tantalum capacitor C ⅲ; 21 pin of Ethernet physical interface transceiver controller chip IC4 are connected with the end of the 22 Chip-R R22,20 pin are connected with the end of the 23 Chip-R R23,10 pin of the end of 28 pin and the 24 Chip-R R24 and RJ45 interface RJ45 are connected, 27 pin are connected with the end of the 25 Chip-R R25,26 pin are connected with the end of the 26 Chip-R R26 and 11 pin of RJ45 interface RJ45; End after the 24 ceramic disc capacitor C24, the 25 ceramic disc capacitor C25, the 26 ceramic disc capacitor C26 parallel connection is connected with 32 pin of Ethernet physical interface transceiver controller chip IC4; Other end ground connection after the parallel connection, 15 pin, 19 pin, 35 pin, 36 pin, the 47 pin ground connection of Ethernet physical interface transceiver controller chip IC4; 17 pin of Ethernet physical interface transceiver controller chip IC4 are connected with 1 pin of the end of the 16 Chip-R R16 and RJ45 interface RJ45,2 pin of the end of 16 pin and the 17 Chip-R R17 and RJ45 interface RJ45 are connected, 3 pin of the end of 14 pin and the 18 Chip-R R18 and RJ45 interface RJ45 are connected, 13 pin are connected with the end of the 19 Chip-R R19 and 6 pin of RJ45 interface RJ45; The other end of the other end of the other end of the end of 4 pin of RJ45 interface RJ45 and 5 pin, the 27 ceramic disc capacitor C27, the end of the 28 ceramic disc capacitor C28, the 16 Chip-R R16, the other end of the 17 Chip-R R17, the 18 Chip-R R18, the other end of the 19 Chip-R R19, the 20 Chip-R R20, the other end of the 21 Chip-R R21 are connected the other end ground connection of the other end of the 27 ceramic disc capacitor C27 and the 28 ceramic disc capacitor C28 with power output end VCC in the power circuit 1; The other end of the other end of the other end of the other end of the 13 Chip-R R13, the other end of the 15 Chip-R R15, the 22 Chip-R R22, the other end of the 23 Chip-R R23, the 24 Chip-R R24, the other end of the 25 Chip-R R25, the 26 Chip-R R26, the other end of the 23 ceramic disc capacitor C23 are connected with power output end VCC in the power circuit 1; 22 pin of Ethernet physical interface transceiver controller chip IC4,32 pin, 48 pin are connected with power output end VCC in the power circuit 1; 2 pin are connected with 48 pin of STM32 interconnectivity processor IC2; 3 pin are connected with 51 pin of STM32 interconnectivity processor IC2, and 4 pin are connected with 52 pin of STM32 interconnectivity processor IC2, and 43 pin are connected with 56 pin of STM32 interconnectivity processor IC2; 44 pin are connected with 57 pin of STM32 interconnectivity processor IC2; 41 pin are connected with 47 pin of STM32 interconnectivity processor IC2, and 40 pin are connected with 55 pin of STM32 interconnectivity processor IC2, and 31 pin are connected with 16 pin of STM32 interconnectivity processor IC2; 30 pin are connected with 26 pin of STM32 interconnectivity processor IC2, and 29 pin are connected with 14 pin of STM32 interconnectivity processor IC2.
Power supply voltage stabilizing chip IC 1 adopts the AMS1117-3.3 of Advanced Monolithic Systems company; STM32 interconnectivity processor IC2 adopts the STM32F107VCT6 model processor of ST company; RS-232 transponder chip IC3 adopts the SP3232 of Sipex company; Ethernet physical interface transceiver controller chip IC4 adopts the DP83848 of National Semiconductor company, and RJ45 interface RJ45 adopts the network transformer of HR911105A model.
The software flow of this device is as shown in Figure 7; At first system is carried out initial configuration after program brings into operation, this configuration mainly comprises the resetting of house dog, FLASH configuration, the configuration of serial ports, the configuration of RTC real-time clock, the configuration of ethernet module and the initialization of ICP/IP protocol stack.Get into the listening port state after configuration is accomplished, if the tcp port number that listens to is 8000, then be the HTTP service, this moment, system sent web data to the PC terminal through Ethernet.The MCU processor is kept at setting among the FLASH after PC is accomplished necessary modifications, and reinitializes IP address and the serial ports baud rate that was set up.Open webpage success or unsuccessful and all return and continue listening port number, webpage is unsuccessful can to provide error message but open.If the tcp port number that listens to is the port set (non-8000 etc. specific serve port); Then provide serial ports to change the data forwarding service of Ethernet; Serial data is sent to Ethernet according to the Transmission Control Protocol packing; Perhaps, then it is sent to serial equipment through serial ports when judging that MCU has received the new data that Ethernet sends.So far accomplished the transparent transmission that serial ports changes Ethernet.
Software has used jtag interface in debug process.RS-232 serial data source has been used " AccessPort assistant " to send serial data through PC and has been given system.The RJ45 interface is attached on the router through parallel netting twine, and " TCP debugs the assistant " used in the analysis of tcp data.WebServer through other these system integrations of PC main frame login in same local area network (LAN) can carry out necessary modifications to the IP address and the serial ports baud rate of this system.Send the data of receiving that the other main frames of data " TCP debug the assistant " fully can be complete through different main frames from " AccessPort assistant " then, can receive complete data through " the AccessPort assistant " of an other main frame from any data of " TCP debugs the assistant " transmission of different main frames simultaneously.Through test function repeatedly realized fully and system works stable.
The major parameter of this each built-up circuit of device is following:
Analog input power circuit: DC0V~5V, 50mA~200mA;
STM32 processor: DC3.3V;
The remote communication interface circuit: RS-232/48 bus, baud rate are adjustable below the 11.52ksps;
Mixed-media network modules mixed-media: self adaptation 10M/100Mbps network speed.

Claims (1)

1. one kind is changeed the Ethernet control device based on the STM32 serial ports, comprises power circuit, micro control unit circuit, JTAG debug i/f circuit, serial communication interface circuit, Ethernet physical interface transceiver control circuit, it is characterized in that:
Said power circuit comprises power supply voltage stabilizing chip, two pin power connector, rectifier diode, light-emitting diode, inductance, a Chip-R, two tantalum electric capacity, four ceramic disc capacitors; 3 pin of power supply voltage stabilizing chip are connected with the positive pole of an end of first ceramic disc capacitor, the first tantalum electric capacity, the negative electrode of rectifier diode; The anode of rectifier diode connects a pin of two pin power connectors, the minus earth of another pin of two pin power connectors, the other end of first ceramic disc capacitor, the first tantalum electric capacity; 2 pin of power supply voltage stabilizing chip are connected with the positive pole of an end of second ceramic disc capacitor, the second tantalum electric capacity, an end of first Chip-R, an end of inductance, as power output end; The other end of first Chip-R is connected with the anode of light-emitting diode, and the end after the 3rd ceramic disc capacitor and the 4th ceramic disc capacitor parallel connection is connected with the other end of inductance, as a reference voltage output end; The negative pole of the other end after the 3rd ceramic disc capacitor and the 4th ceramic disc capacitor parallel connection, the negative electrode of light-emitting diode, the second tantalum electric capacity, the other end of second ceramic disc capacitor, 1 pin ground connection of power supply voltage stabilizing chip;
Described micro control unit circuit comprises STM32 interconnectivity processor, extended pin, crystal oscillator, two buttons, three Chip-Rs, 11 ceramic disc capacitors; 39~46 pin of STM32 interconnectivity processor are connected with eight pins of extended pin respectively; 37 pin of STM32 interconnectivity processor are connected with an end of second Chip-R, the other end ground connection of second Chip-R; 6 pin of STM32 interconnectivity processor are connected with an end of the 3rd Chip-R; The other end of the 3rd Chip-R is connected with an end of the 5th ceramic disc capacitor, an end of first button, the other end ground connection of 94 pin of STM32 interconnectivity processor, the other end of the 5th ceramic disc capacitor, first button; One end of first crystal oscillator is connected with 12 pin of STM32 interconnectivity processor, an end of the 6th ceramic disc capacitor; The other end of first crystal oscillator is connected the other end ground connection of the other end of the 6th ceramic disc capacitor and the 7th ceramic disc capacitor with 13 pin of STM32 interconnectivity processor, an end of the 7th ceramic disc capacitor; 14 pin of STM32 interconnectivity processor are connected with an end of an end of second button, the 8th ceramic disc capacitor, an end of the 4th Chip-R, as reset pin, and the other end of the 8th ceramic disc capacitor and the second button other end ground connection; 21 pin of STM32 interconnectivity processor and an end of the 9th ceramic disc capacitor are connected the other end ground connection of the 9th ceramic disc capacitor with reference voltage output terminal in the power circuit; 19 pin of STM32 interconnectivity processor are connected back ground connection with 20 pin; 22 pin of STM32 interconnectivity processor are connected with an end of the tenth ceramic disc capacitor, the other end ground connection of the tenth ceramic disc capacitor; 10 pin of STM32 interconnectivity processor, 27 pin, 49 pin, 74 pin and 99 pin ground connection; 11 pin of STM32 interconnectivity processor, 28 pin, 50 pin, 75 pin and 100 pin are connected; And be connected the other end ground connection after the parallel connection with a end after the 11 ceramic disc capacitor, the 12 ceramic disc capacitor, the 13 ceramic disc capacitor, the 14 ceramic disc capacitor, the 15 ceramic disc capacitor parallel connection; The other end of 6 pin of STM32 interconnectivity processor, 11 pin, 22 pin, 28 pin, 50 pin, 75 pin and 100 pin, the 4th Chip-R is connected with the power output end in the power circuit;
Described JTAG debug i/f circuit comprises ten pin plugs and six Chip-Rs; 3 pin of ten pin plugs are connected with an end of the 7th Chip-R, 5 pin are connected with an end of the 6th Chip-R, 7 pin are connected with an end of the 5th Chip-R, 9 pin are connected with an end of the 8th Chip-R, 4 pin are connected with an end of the 9th Chip-R, 6 pin are connected 10 pin ground connection of ten pin plugs with an end of the tenth Chip-R; After being connected, the other end of the other end of the other end of 1 pin of ten pin plugs and 2 pin, the 5th Chip-R, the other end of the 6th Chip-R, the 7th Chip-R, the other end of the 9th Chip-R, the tenth Chip-R connects the power output end in the power circuit, the other end ground connection of the 8th Chip-R; 90 pin, 6 pin that 76 pin, 4 pin that 77 pin, 9 pin that 72 pin, 7 pin that 14 pin, 5 pin that 3 pin of ten pin plugs connect STM32 interconnectivity processor connect STM32 interconnectivity processor connect STM32 interconnectivity processor connect STM32 interconnectivity processor connect STM32 interconnectivity processor connect 89 pin of STM32 interconnectivity processor;
Described serial communication interface circuit comprises RS-232 transponder chip, RS-232 serial communication interface and four ceramic disc capacitors; 7 pin of RS-232 transponder chip are connected with the input of RS-232 serial communication interface, 8 pin are connected with the output of RS-232 serial communication interface, 9 pin are connected with 68 pin of STM32 interconnectivity processor, 10 pin are connected with 69 pin of STM32 interconnectivity processor; 4 pin are connected with the two ends of the 18 ceramic disc capacitor respectively with 5 pin; 1 pin is connected with the two ends of the 19 ceramic disc capacitor respectively with 3 pin; 6 pin are connected with an end of the 16 ceramic disc capacitor, and 2 pin are connected with an end of the 17 ceramic disc capacitor; 15 pin of RS-232 transponder chip and the other end ground connection of the 16 ceramic disc capacitor, 16 pin of RS-232 transponder chip and the other end of the 17 ceramic disc capacitor are connected with power output end in the power circuit;
Described Ethernet physical interface transceiver control circuit comprises Ethernet physical interface transceiver controller chip, RJ45 interface, active crystal oscillator, tantalum electric capacity, 16 Chip-Rs and nine ceramic disc capacitors; 39 pin of Ethernet physical interface transceiver controller chip are connected with an end of the 11 Chip-R, 40 pin are connected with an end of the 12 Chip-R; The other end of the 11 Chip-R and the other end ground connection of the 12 Chip-R; 7 pin of Ethernet physical interface transceiver controller chip are connected with an end of the 13 Chip-R, 34 pin are connected with an end of the 14 Chip-R, 24 pin are connected with an end of the 15 Chip-R; 37 pin of Ethernet physical interface transceiver controller chip, 18 pin, 23 pin are connected with the positive pole of the 3rd tantalum electric capacity; End after the 20 ceramic disc capacitor, the 21 ceramic disc capacitor, the 22 ceramic disc capacitor parallel connection is connected with the positive pole of the 3rd tantalum electric capacity; Other end ground connection after the parallel connection; One end of the 23 ceramic disc capacitor is connected with 3 pin of active crystal oscillator, 2 pin of active crystal oscillator, the other end of the 23 ceramic disc capacitor, the minus earth of the 3rd tantalum electric capacity; 21 pin of Ethernet physical interface transceiver controller chip are connected with an end of the 22 Chip-R, 20 pin are connected with an end of the 23 Chip-R, 10 pin of an end of 28 pin and the 24 Chip-R and RJ45 interface are connected, 27 pin are connected with an end of the 25 Chip-R, 26 pin are connected with an end of the 26 Chip-R and 11 pin of RJ45 interface; End after the 24 ceramic disc capacitor, the 25 ceramic disc capacitor, the 26 ceramic disc capacitor parallel connection is connected with 32 pin of Ethernet physical interface transceiver controller chip; Other end ground connection after the parallel connection, 15 pin of Ethernet physical interface transceiver controller chip, 19 pin, 35 pin, 36 pin, 47 pin ground connection; 17 pin of Ethernet physical interface transceiver controller chip are connected with 1 pin of an end of the 16 Chip-R and RJ45 interface, 2 pin of an end of 16 pin and the 17 Chip-R and RJ45 interface are connected, 3 pin of an end of 14 pin and the 18 Chip-R and RJ45 interface are connected, 13 pin are connected with an end of the 19 Chip-R and 6 pin of RJ45 interface; The other end of the other end of the other end of one end of 4 pin of RJ45 interface and an end of 5 pin, the 27 ceramic disc capacitor, the 28 ceramic disc capacitor, the other end of the 16 Chip-R, the 17 Chip-R, the other end of the 18 Chip-R, the 19 Chip-R, the other end of the 20 Chip-R, the 21 Chip-R is connected the other end of the 27 ceramic disc capacitor and the other end ground connection of the 28 ceramic disc capacitor with the power output end in the power circuit; The other end of the other end of the other end of the other end of the 13 Chip-R, the other end of the 15 Chip-R, the 22 Chip-R, the other end of the 23 Chip-R, the 24 Chip-R, the other end of the 25 Chip-R, the 26 Chip-R, the other end of the 23 ceramic disc capacitor are connected with power output end in the power circuit; 22 pin of Ethernet physical interface transceiver controller chip, 32 pin, 48 pin are connected with power output end in the power circuit; 2 pin are connected with 48 pin of STM32 interconnectivity processor; 3 pin are connected with 51 pin of STM32 interconnectivity processor, and 4 pin are connected with 52 pin of STM32 interconnectivity processor, and 43 pin are connected with 56 pin of STM32 interconnectivity processor; 44 pin are connected with 57 pin of STM32 interconnectivity processor; 41 pin are connected with 47 pin of STM32 interconnectivity processor, and 40 pin are connected with 55 pin of STM32 interconnectivity processor, and 31 pin are connected with 16 pin of STM32 interconnectivity processor; 30 pin are connected with 26 pin of STM32 interconnectivity processor, and 29 pin are connected with 14 pin of STM32 interconnectivity processor.
CN2011203945300U 2011-10-17 2011-10-17 Controlling device for converting serial port to Ethernet based on STM 32 Expired - Fee Related CN202282784U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011203945300U CN202282784U (en) 2011-10-17 2011-10-17 Controlling device for converting serial port to Ethernet based on STM 32

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011203945300U CN202282784U (en) 2011-10-17 2011-10-17 Controlling device for converting serial port to Ethernet based on STM 32

Publications (1)

Publication Number Publication Date
CN202282784U true CN202282784U (en) 2012-06-20

Family

ID=46228934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011203945300U Expired - Fee Related CN202282784U (en) 2011-10-17 2011-10-17 Controlling device for converting serial port to Ethernet based on STM 32

Country Status (1)

Country Link
CN (1) CN202282784U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106160835A (en) * 2016-08-19 2016-11-23 国家电网公司 Mobile communication network relay
CN111030830A (en) * 2018-10-09 2020-04-17 西安智盛锐芯半导体科技有限公司 Network interface circuit for road administration cabinet supervision system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106160835A (en) * 2016-08-19 2016-11-23 国家电网公司 Mobile communication network relay
CN106160835B (en) * 2016-08-19 2022-07-29 国家电网公司 Mobile communication network relay device
CN111030830A (en) * 2018-10-09 2020-04-17 西安智盛锐芯半导体科技有限公司 Network interface circuit for road administration cabinet supervision system

Similar Documents

Publication Publication Date Title
CN102387054B (en) Serial port to Ethernet control device based on STM32
CN109032026B (en) Intelligent classroom control system that cloud and sea combine
CN202282784U (en) Controlling device for converting serial port to Ethernet based on STM 32
CN103560938A (en) Industrial Ethernet and HART bus protocol conversion board card
CN204652048U (en) A kind of data acquisition unit being applicable to commercial style photovoltaic DC-to-AC converter
CN105809938A (en) Photovoltaic power station cell panel power line carrier monitoring system
CN204462724U (en) A kind of WIFI gateway of radio sensing network
CN202025312U (en) Intelligent data conversion equipment facing a switch cabinet
CN110187171A (en) A kind of the LoRaWAN electric energy meter and method of network entry of quick networking mechanism
CN206878869U (en) A kind of EPA CAN converters
CN207339890U (en) Novel DTU
CN212305369U (en) Smart rod and edge computing gateway for smart rod
CN205510091U (en) Embedded intelligent gateway
CN212460351U (en) Heterogeneous signal acquisition and processing device
CN204481826U (en) Network serial port tester
CN102570199A (en) Intelligent power utilization socket
CN104460661B (en) The remote debugging system of long-range turn-off reset and remote monitoring can be carried out
CN203563088U (en) Protocol conversion board of industrial Ethernet and HART bus
CN204993410U (en) Serial ports and ethernet conversion equipment based on MQTT thing networking protocol
CN102316096A (en) Wireless Zigbee and industrial Ethernet bus protocol conversion adaptation module
CN202178781U (en) Wireless Zigbee and industrial Ethernet bus protocol conversion adapter module
CN207460202U (en) A kind of serial ports based on STM32 microcontrollers and Ethernet conversion equipment
CN210428433U (en) Multifunctional interface converter based on Internet of things
CN203747846U (en) Wireless communication mainboard structure
CN204887022U (en) Big data network remote control and measurement system based on 802 agreement

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120620

Termination date: 20121017