REALLY SIMPLE VERSION: I want to move a stepper motor an EXPLICIT # of steps ... using Ruby over LAN to an Ethernet shield ( w connected stepper ). ( if ALL protocols break stuff down into ASCII ... well i eat my foot and use atoi() )
" What are all of my options for connecting to an Arduino with the Ethernet shield ? " " How many different ways can I send information to an Arduino ? " " What are the supported protocols for Arduino and Ethernet communication ? " " What data can I send to my Arduino over a local area network ( LAN ) ? "
SO, I've been trying to get a project of mine to work .. and so far no luck. The bottle neck:
What languages ( packet protocols ) does the Arduino like?
Im asking about these:
HTTP / Serial / TELNET
TCP / UDP
.. and where does the generic arduino " Serial " fall into this list?
it seems that most of the examples use TELNET but I've got issues with how it chops up data and then I have to reconvert it into something usable
IE: run a atoi() on my arduino to get the integer variables im sending it
( this seems like a big waste of time to me... and I'd MUCH rather use a protocol that allows me to use " strict data types" )
when i say "strict data types" I mean:
- ruby application sends data ( var int = 98 ) over X protocol
- arduino reads data from X protocol
- data is read AS AN INTEGER .. and at a value of 98 (NOT ascii value = 19 929 182 .. then atoi(*l) )
... so what protocols support this?