Application Note powered by the eZ80 Remote Access™ |
ZiLOG Application Note |
---|
Using eZ80 family processors as a bridge between RS232 and Ethernet interfaces |
Author: Andrei Kovalev FAE ZiLOG Germany |
The source code structure for the Serial2TCP appnote is shown on the picture. The driver directory contains the COM driver files. The driver.html file contains the description of driver functionality and API. The firmware directory contains the Remote Access Firmware source code for testing the serial driver. The required libraries are in the lib folder. The project for serial package format composition and testing is stored in the receiver section. The website directory contains the website for the app note tuning.
The projects related to the serial to TCP gateway are located in the gateway directory. The project serialfw contains the executable necessary to initiate the serial packet source side. When started from a target board the project allows for packet composition and sending through the eZ80 UART. Default is UART2. The ser2tcp is the gateway project. It is programmed in a destination target board and accepts packets, converts them to TCP/IP packets and sends to the TCP Host. The work directory contains the gateway application note source code - the packet receiver and the tcp sender.
Note: the serialfw and the ser2tcp contain the Remote Access project versions along with the standalone versions. If you have a NetBooter running on a eZ80 Evaluation Board you can use Firmware Update module of Remote Access to download those version via Ethernet.
Moreover. The gateway\scripts directory contains a set of Remote Access scripts. The script packet_send.c for instance can be downloaded to a Remote Access Server application and installed as an HTTP server. It has the same functionality as the serialfw firmware but the size of the downloaded binary code is only 45K instead of 160K when downloading the whole firmware. This contains the script and the website only! This demonstrates the efficiency of Remote Access compared to conventional way of an application development.
The gateway.html is the description of the project.