![Tern CAN-Engine Скачать руководство пользователя страница 42](http://html.mh-extra.com/html/tern/can-engine/can-engine_technical-manual_1089501042.webp)
Chapter 4: Software
CAN-Engine
_____________________________________________________________________________________
4-20
TERN_EL
For the Ethernet-LCD (EL) controller, implying windowed access at 0x80000 with 186-
based processor.
TERN_5D
For the 586-Drive, or other 586-based devices that uses DIRECT memory mapping.
Also, be very aware that every board requires a different runtime library. When working with the 186-based
boards (EE, C-Eye), you should be compiling with 'ae.lib'. When working with the R- series of boards (RE,
RL, SC), you should be compiling with 're.lib'.
4.6.6
Sample Code
Wiznet provides a variety of generic TCP/UDP/IP sample applications, including FTP, DHCP, SMTP, etc.
TERN has ported a few of these over specific to the TERN platform, and expanded them by adding support
to TERN peripherals (like the CF-based FAT16 filesystem). These samples are described below.
4.6.7
Testing
As you download and test the code below, you can follow two basic steps for testing:
1)
make sure you can "ping" the board. From a PC located on the same LAN subnet, open a
DOS command prompt window. In this window, run the command 'ping xxx.xxx.xxx.xxx'
(where xxx.... corresponds to the address of your board, such as 192.168.2.205).
2)
for the HTTP server code, you can open up Internet Explorer and open up the URL:
http://192.168.2.205
3)
for generic TCP server code, you can open up a client connection. On Windows PCs, you
can type the command 'telnet xxx.xxx.xxx.xxx yy' from any DOS command prompt (xxx =
board address, yy = port number). You can also use a third-party Telnet application, like
the excellent CRT available from VanDyke.com for the same purpose.
4.6.8
Code Arrangement
NOTE: Within the i2chip sample project, for convenience we have created a "i2chip_src" [SourcePool].
This node contains the files common to all i2chip-based applications. The applications (.axe) nodes in this
directory all refer "indirectly" to this SourcePool (indicated by BOLD letters). Within your own
application, you need to add the same files in the source pool (
socket.c, i2chip_hw.c
) to your own
.axe node.
4.6.8.1
186-BASED BOARDS
For 186-based boards, your project is in the project \tern\186\samples\i2chip\i2chip.ide.