SaJe ethernet test

SaJe Last Modified: 2001 July 20

Summary:

Simple ethernet wrap-around test between SaJe and a PC. Thanks to TJ.

Tutorial:

Get the 400 KByte ZIP file SaJeEthernet.zip, expand it in work folder.

To start the PC side, in the SaJeEthernet folder, edit the start_server.bat file to have the correct paths for your PC. If it executes successfully, you should see:

aJile Systems Threaded TCP Echo Server Example
Opened new ServerSocket on port 8188

Start JemBuilder and open the JemBuilder project file SaJeEthernet\Client\EthernetTest_3.9.ajp, and change all the classpaths to conform to your system. Also set the JemBuilder Drivers->ethernet properties to correspond to the desired IP address and mask for your network. In JVM->Properties, set the IP address and port number of the PC which is running the server side. In my case this is:

reflector.ip.address=166.70.144.42
reflector.port.number=8188

For help with this see the JStamp blink example tutorial. Once you have built the file, connect to SaJe with the JTAG adapter, connect SaJe to an ethernet. You should see a green Link light in the upper left corner of the RJ45 10BaseT receptacle on SaJe.

Be sure the swap memory jumper on SaJe is installed, start Charade (be sure aJ100 is the target), change to the SaJeEthernet\Client\build folder and on the Charade command line enter

@load.sod

After the program loads, type

verify build.bin

and there should be no errors. If there are, then the swap mem jumper was probably not installed.

run

on Charade you should see something like:

-> run
vm.0 charadeIO active
vm.0 heap monitor active
[TEXTIO.0]->------------------------------------------------------
[TEXTIO.0]-> Systronix aJile Java euroboard (SaJe) Installation Test
[TEXTIO.0]->------------------------------------------------------
[TEXTIO.0]->Socket protocol: open0: name is 166.70.144.42:8188
[TEXTIO.0]-> Ethernet wraparound test passed
[TEXTIO.0]->------------------------------------------------------
[TEXTIO.0]->Installation test completed; elapsed time: 1266 ms

and on your PC you should see something like this:

Created new socket on port 900
Starting thread number 1 to handle messages
Received message number 0
Sending message number 0
Received message number 1
Sending message number 1
Received message number 2
Sending message number 2
Received message number 3
Sending message number 3
Received message number 4
Sending message number 4
Received message number 5
Sending message number 5
Received message number 6
Sending message number 6
Received message number 7
Sending message number 7
Received message number 8
Sending message number 8
Detected sentinel byte
Closing connection to socket number 1 after 9 messages
Closing streams