<< PicoWeb project to demonstrate PicoWeb UDP serial connectivity >> Check baud rate and CLOCK rate in serudp.pwp, modify if necessary, the defaults are 7.323 and 19.2... Modify the "ip" and "ether" files as appropriate for your network, then do: pwbuild serudp Load the project into the PicoWeb: pwload setudp Set the client IP address: client w.x.y.z where w.x.y.z is the IP address of your "client" Reset the PicoWeb (power cycle it)... To receive data from the PicoWeb's serial port: perl udplogger a.b.c.d where a.b.c.d is the PicoWeb's IP address. To send data to the PicoWeb's serial port: perl udpsender picowebipaddress or redirect from input file... Notes: (1) The client IP address cannot be a hostname - it MUST be in dotted numeric form, sorry, we're lazy and you won't be using these scripts for long anyway. (2) The client's IP address is stored in serial EEPROM at the hard-coded location SEEPROM_CLIENT_ADDR (i.e., 0x3000). This IP address is changed using the batch file "client.bat", which uses a Perl script "client.pl" and the PicoWeb over-the-net downloader (i.e., pwnetld). This location is "high" in serial EEPROM and is NOT overwritten by Web pages and/or CGI code with the project file as it now is. Therefore, once set, it will remain unchanged even if you re-load the PicoWeb's firmware. You may want to move this address! If you do, make changes to both the project file and the Perl script "client.pl" (3) You probably need to use the local copy of PERL.EXE that does UDP correctly under Windows. ------------------------------------------------------------------------- The abbreviated algorithm: PicoWeb listens for data on serial port until '\n' and sends to the client on port UDP_DEST_PORT, the source port is UDP_SOURCE_PORT. PicoWeb listens on network UDP port UDP_SOURCE_PORT and transmits the data it receives to the serial port. -------------------------------------------------------------------------