WIZNET W5200 for QuickStart SerialToEthernet.spin
rubergd
Posts: 11
Hi, I downloaded "UdpSerialToEthernet.spin" from Google Code propeller-w5200-driver (R198) and can't get it to compile. It's slightly different from the version that is included in the product page download (which does run). When the compiler hits the "pst.RxCheck" in "SerialHandler", I get an "expected a subroutine name" compile error. Prior calls to the pst object seemed to be ok. The only changes I made were to the mac and ip addresses. I'm using Prop Tool 1.3.2. Any ideas? Thanks in advance!
Comments
in the Parallax Serial Terminal I see
00 01 02 03 ...
--- ---- ----
0000 C0 06 00
Start: 80 Len: 2
I need to be able to send this data over the TX and RX pins labeled underneath my quickstart.
My setup is a Quickstart with a W5200
my test setup is a wiznet wiz110sr it works fine with my command
sudo socat -d -d PTY,raw,echo=0 udp-connect:$1:5000 &
then I run ./indyreader /dev/pts/x -s to send it serial commands
The firmware simply forwards (ASCII if I remember correctly) data received on the serial port (PST or FullDuplex) directly to the W5200 chip over SPI.
Do you have any source code or a schematic? Anything?
A) so I send Serial data to it in linux with socat over Ethernet
it returns serial data back over Ethernet which contains RAW Packets
so far I'm able to send serial data but only the first 3 hex pairs are showing C0 06 00 but i'm sending alot more than that
Edit: see the serial to Ethernet Binary archive at http://forums.parallax.com/showthread.php/146054-Serial-to-Ethernet-and-Back?p=1164375&viewfull=1#post1164375
Sounds like you need me to update the code for you...?
In SPIN, however, HEX is designated by a dollar sign $0D.
Anyway, the CR ends a string which tells SerialHandler to send the buffered string - nothing fancy.
For sending values, I'd have to figure out a way to send the data in one UDP message. To do that - I need to know the data length otherwise the data will end up in several UDP messages. Should I assume the 6 in C0 06 00 00 00 00 00 00 is the length byte in the data packet?
The serial to Ethernet is refactored and the new archive is attached to http://forums.parallax.com/showthread.php/146054-Serial-to-Ethernet-and-Back. The latest version, as always, can be found on the code repo. https://code.google.com/p/propeller-w5200-driver/source/browse/trunk/#trunk%2F%20propeller-w5200-driver