CN104660497A - Serial port communication gateway based on AVR singlechip microcomputer - Google Patents

Serial port communication gateway based on AVR singlechip microcomputer Download PDF

Info

Publication number
CN104660497A
CN104660497A CN201310601297.2A CN201310601297A CN104660497A CN 104660497 A CN104660497 A CN 104660497A CN 201310601297 A CN201310601297 A CN 201310601297A CN 104660497 A CN104660497 A CN 104660497A
Authority
CN
China
Prior art keywords
communication gateway
single chip
serial port
communication
gateway based
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.)
Pending
Application number
CN201310601297.2A
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.)
Harbin Hengyu Mingxiang Technology Co Ltd
Original Assignee
Harbin Hengyu Mingxiang 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 Harbin Hengyu Mingxiang Technology Co Ltd filed Critical Harbin Hengyu Mingxiang Technology Co Ltd
Priority to CN201310601297.2A priority Critical patent/CN104660497A/en
Publication of CN104660497A publication Critical patent/CN104660497A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a serial port communication gateway based on an AVR singlechip microcomputer. Particularly, the serial port communication gateway consists of an ATmega128 singlechip microcomputer, an MAX232 chip, an MAX485 chip, a power module, a DIP switch and an LED lamp, and can be used for filtering the communication traffic of messages, selecting a data block with specific Baud rate, performing relay bridging, establishing communication network interconnection and completing the transfer of the data block. The serial port communication gateway has the advantages that the usage of signal lines, control lines and ground lines for data transmission is relatively low, and remote communication can be carried out with low price.

Description

A kind of serial communication gateway based on AVR single chip
Technical field
The invention provides a kind of serial communication gateway based on AVR single chip.The present invention specifically by ATmega128 single-chip microcomputer, MAX232 chip, MAX485 chip, power module, DIP switch, this few part of LED form can the filtering packets traffic, select the data block of specific baud rate, can relaying bridge joint, set up interconnection of telecommunication network, complete the transmission serial communication gateway of data block.
Background technology
Gateway has developed into the equipment be unable to do without in people's daily life, and the responsibility that it serves as is the mutual conversion of information.Serial communication is a kind of mode transmitting the communication of data, simple, with low cost by means of its circuit, and is widely used.
The function that the present invention realizes is that gateway can the filtering packets traffic, selects the data block of specific baud rate; Gateway can relaying bridge joint, sets up interconnection of telecommunication network, completes the transmission of data block.In Industry Control detection system, the present invention has good application prospect.
Summary of the invention
What the present invention related to is a kind of serial communication gateway based on AVR single chip.
The object of the present invention is achieved like this:
The present invention is made up of ATmega128 single chip machine controlling circuit, MAX232 communication module, MAX485 communication module, power module, DIP switch four part.
The present invention can also have some architectural features like this:
ATmega128 single chip machine controlling circuit comprises clock circuit, reset circuit and JTAG policy interface.
The present invention includes MAX232 communication module, MAX485 communication module, can for completing the conversion with computer communication machine communication modes.
The present invention comprises DIP switch, can control the data block of different baud rate.
Accompanying drawing explanation
Fig. 1 gateway architecture block diagram;
Fig. 2 power module circuitry figure;
Fig. 3 RS232 telecommunication circuit schematic diagram;
Fig. 4 RS485 telecommunication circuit schematic diagram;
The circuit theory diagrams of Fig. 5 DIP switch input;
The schematic diagram of Fig. 6 reset circuit;
The schematic diagram of Fig. 7 clock circuit;
Embodiment
Below in conjunction with accompanying drawing citing, the present invention is described in more detail:
According to parameter choose power module of AVR ATmega128 single-chip microcomputer and RS232, RS485, convert alternating current to direct current.
What the present invention adopted is the power module liking Pu electronics wa3-220s05a3 model, and design parameter is as follows:
(1) package dimension: 38.00 × 18.00 × 18.00mm;
(2) power output: 3W;
(3) input voltage: 85-265Vac;
(4) output voltage: 5V;
(5) power module typical case performance;
(6) wide input voltage, AC/DC, aluminium shell;
(7) conversion efficiency typical case 78% output short-circuit, overcurrent, overtemperature protection, self-recoverage;
(8) input and output isolation voltage 2500Vac;
(9) wide operating temperature range :-25 ~ 65 DEG C;
(10) output voltage precision: main road ± 1%, bypass ± 3%;
(11) ripple and noise (20MHz, nominal input voltage): Vo≤5.0V ,≤80mVp-p; Vo >=48V ,≤180mVp-p; Other ,≤120mVp-p;
GND interfacing ground, that VCC exports is+5V, and in order to the voltage stabilization exported, the present invention accesses the electrochemical capacitor of 470u and the electric capacity of 0.01u between VCC and GND.
RS232 telecommunication circuit as shown in Figure 3.11,12 pin are connected to PE0 and PE1 of AVR ATmega128, by Single-chip Controlling.11 pin are input ports of RS232 driver, and 12 pin are delivery outlets of RS232 receiver.13,14 pin are connected to J2 interface, and 13 pin are input ports of RS232 receiver, and 14 pin are delivery outlets of RS232 driver.J2 turns USB drive wire by RS232 to be connected with PC.
RS485 telecommunication circuit as shown in Figure 4 the Enable Pin receiving and send is respectively with DE end, when during for logical zero, device is in accepting state; When DE is logical one, device is in transmission state.Therefore 2,3 pin are connected, carry out control with a signal just enough.J3 interface is connected to 6,7 pin, turns USB drive wire be connected with PC by RS485.Being connected by 2,3 pin is want the state by changing controller to control send enable and receive enable, and then interface circuit is controlled, and completes the transmission to information data and reception, namely carries out sheet choosing with 485-CS, as a chip selection signal.
Reset circuit as shown in Figure 6, the device used is the reset signal of reset chip MAX809, Low level effective, and reset delay minimal time is 140ms.1 pin meets GND, and accessing R1100K Ω between 1,2 pin is that 2 pin accessing R24.7K Ω is to allow two-way reseting pin have correct output in order to allow reset signal also can keep low level when VCC=0,3 pin access VCC.
The schematic diagram of clock circuit as shown in Figure 7.The crystal oscillator that the present invention selects is 7.3728MHz, and the electric capacity of access is 2 20p, and clock circuit connects with XTAL1 and XTAL2 of ATmega128.

Claims (4)

1., based on a serial communication gateway for AVR single chip, its composition comprises ATmega128 single chip machine controlling circuit, MAX232 communication module, MAX485 communication module, power module, DIP switch four part composition.
2. the serial communication gateway based on AVR single chip according to claim 1, it is characterized in that: the present invention comprises a power module, can be application-specific integrated circuit (ASIC) (ASIC), digital signal processor (DSP), microprocessor, memory, field programmable gate array (FPGA) and other numeral or fictitious load power supply is provided.
3. the serial communication gateway based on AVR single chip according to claim 1, is characterized in that the present invention includes MAX232 communication module, MAX485 communication module, can for completing the conversion with computer communication machine communication modes.
4. the serial communication gateway based on AVR single chip according to claim 1, is characterized in that: the present invention comprises DIP switch, can control the data block of different baud rate.
CN201310601297.2A 2013-11-25 2013-11-25 Serial port communication gateway based on AVR singlechip microcomputer Pending CN104660497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310601297.2A CN104660497A (en) 2013-11-25 2013-11-25 Serial port communication gateway based on AVR singlechip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310601297.2A CN104660497A (en) 2013-11-25 2013-11-25 Serial port communication gateway based on AVR singlechip microcomputer

Publications (1)

Publication Number Publication Date
CN104660497A true CN104660497A (en) 2015-05-27

Family

ID=53251220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310601297.2A Pending CN104660497A (en) 2013-11-25 2013-11-25 Serial port communication gateway based on AVR singlechip microcomputer

Country Status (1)

Country Link
CN (1) CN104660497A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2148327Y (en) * 1992-09-12 1993-12-01 太原工业大学 Intelligent steam to gas ratio display instrument
US6202160B1 (en) * 1997-05-13 2001-03-13 Micron Electronics, Inc. System for independent powering of a computer system
CN101145795A (en) * 2007-11-01 2008-03-19 广州市聚晖电子科技有限公司 A RF transceiver hardware structure for implementing bidirectional communication and relay function
CN102546479A (en) * 2012-01-19 2012-07-04 斯菲特物联网科技(徐州)有限公司 Gateway for perceiving internet of things of coal yard

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2148327Y (en) * 1992-09-12 1993-12-01 太原工业大学 Intelligent steam to gas ratio display instrument
US6202160B1 (en) * 1997-05-13 2001-03-13 Micron Electronics, Inc. System for independent powering of a computer system
CN101145795A (en) * 2007-11-01 2008-03-19 广州市聚晖电子科技有限公司 A RF transceiver hardware structure for implementing bidirectional communication and relay function
CN102546479A (en) * 2012-01-19 2012-07-04 斯菲特物联网科技(徐州)有限公司 Gateway for perceiving internet of things of coal yard

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
周慎: "一种串口与UDP协议实现透明转换的方法", 《信息通信》 *
庄春生: "基于电力线通信的智能网关设计", 《河南科学》 *
王银玲等: "基于单片机的以太网与RS485通信网关的设计", 《工矿自动化》 *

Similar Documents

Publication Publication Date Title
CN204614731U (en) A kind of three-phase intelligent Miniature magnetic keeps circuit breaker
CN202889340U (en) Low-power short-distance wireless data transmission module
CN202856780U (en) Internet of Things (IOT) intelligence communication device
CN203279199U (en) Wireless communication terminal based on remote broadband electric power lines
CN101145274A (en) Multifunctional meter communication module
CN201263157Y (en) Minitype embedded network module for transferring UART interface to CAN-bus
CN203217563U (en) CAN (controller area network) bus control and transmit-receive system with high isolation performance
CN104660497A (en) Serial port communication gateway based on AVR singlechip microcomputer
CN206349784U (en) Charger and charge control system
CN201926703U (en) Building consumped-electricity-quantity acquisition-transmission system with mutiple communication modes
CN102506932A (en) Thermodynamic type energy-efficiency data acquisition terminal
CN202331173U (en) Industrial controller and industrial network control system
CN207266038U (en) Electric automobile wireless monitoring terminal based on AURIX microcontrollers
CN202042044U (en) Universal remote wireless monitoring module
CN203605993U (en) Flow meter
CN202495140U (en) Intelligent electric-meter remote control device based on internet of things for
CN202592971U (en) Printing system and printing interface module
CN202735799U (en) Integrated controller for floor
CN205566300U (en) A bluetooth box for wisdom parking area management system
CN104166358A (en) Command encoding controller of urban rail transit operation safety simulation sand table
CN209608683U (en) A kind of industrial Fieldbus protocols conversion equipment based on low-power consumption bluetooth
CN204119271U (en) Radar data protocol format transducer
CN204285730U (en) With the vehicle-mounted clarifier of USB interface and wireless communication module
CN203480255U (en) Analog output module based on CAN bus
CN103838163A (en) GPRS wireless data acquisition 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150527

WD01 Invention patent application deemed withdrawn after publication