Serial over ethernet
average joe
Posts: 795
I was wondering if anyone has information about using the Wiznet to do Serial over Ethernet. Any help would be greatly appreciated!
Comments
Can you provide an example of what you are trying to do?
Looks like it uses RFC2217 Com Port control protocol?
This function is already in place. For example, sending debug data to the Parallax Serial Terminal is in every demo that I'm aware exists. The only thing left is to create a dedicated Tx socket for sending data. All ya have to do is start up a COG who's job is looking for serial data received. Buffer the serial data, fire up (configure) a separate socket, send the data, close the socket - repeat. Do not leave the dedicated Tx socket open as that will allow the socket to receive data.
You'll have to come up with a serial protocol that allows enumeration of the serial data so you know where the packets begin and end. You could easily add socket configuration data to the serial stream. Do so will allow the client, PC in this case, to configure the socket parameters like TCP or UDP, destination IP or domain, port, etc.
The Propforth download contains support for spinneret and similar wiznet.
The spinneret can serve HTTP pages and telnet sessions. This is a common way to access teh propforth command line over ether net when there is no PC connected. The Ethernet support takes a LOT of hub memory, and the spinneret uses a lot of pins. So while there are a cases to use spinneret, there might be other solutions that suitable to a wider range of applications.
The other common way to use propforth over Ethernet is to have the PC connected to the prop do the ethernet talking, using the Go language function GoTerm and GoMuxTerm. In this configuration, we can use E.G. the Raspberry Pi to handle Ethernet communications, data storage, number crunching, and optional display and terminal serivices. At $35, the RPi delivers a lot more for less money than a spinneret. The RPi performs the workstation services that the prop cannot, and the prop provides the deterministic execution and multiple sensor & actuator interfaces that the RPi does not do so easily or well.
Even if you don't use forth, there might be some things that trigger an idea.
http://forums.parallax.com/showthread.php/146054-Serial-to-Ethernet?p=1164375&viewfull=1#post1164375