20160516 - Update !
We can talk ! Parts of MrlComm are now running on the Esp8266. Did a full getVersion request and the data flowed ! .... goodtimes....
Next is considerable cleanup.. MrlComm "should" be a library.. and then I "think" this should probably not be its own service ... its really just a reconfig of pin mapping (once working correctly) in the Arduino service...
Not sure ..
Here's MrlWifi (Borg'd MRL + Wifi) ... load it on the Esp8266 - then you can connect with a TCP serial port ... I expect many revisions to be done to this to get it ship shape
TODO
-
how to determine if the socket is closed on the esp end ? - it does not 'throw an exception' ..
need to know how to check.. - massive cleanup
- heartbeats ?
- more functionality moved into WiFi capable MrlComm version
- does Esp8266 support pwm on any GPIOs ?
- Servos ?
- Reading Digital & (one?) Analog ?
- Testing like crazy
- MrlComm needs to be library - which can accept a Serial or Wifi client connection
- text interface to protocol ?
20160514
Since the Blender service Serial has been capable of raw serial data over TCP/IP.
I wanted to make sure it was still working - so I connected it to a netcat listener (nc -l -p 2222)
STILL WORKY !!!
Next will be looking at the Esp8266 code for a socket server which the web server was probably built on...
keep-alive (plus) crlf crlf
ª cnt 1 byte 107
ª cnt 1 byte 101
ª cnt 1 byte 101
ª cnt 1 byte 112
ª cnt 1 byte 45
ª cnt 1 byte 97
ª cnt 1 byte 108
ª cnt 1 byte 105
ª cnt 1 byte 118
ª cnt 1 byte 101
ª cnt 1 byte 13
ª cnt 1 byte 10
ª cnt 1 byte 13
ª cnt 1 byte 10
Just tested the code and indeed it works, just for test I monitored the serial port after polling the IP address and MRLcomm TXed quite a serial data chain of info.... the ending part you see above.
Translated as "keep-alive"
first part " ª " translates as ....... magicnumber STX SOH SOH ascii codes!! (edit:- er NO!! what was I thinking)
N.B. the ESP would not compile for me until I move the
#include <ESP8266WiFi.h>
a tad higher in the code flow circa line 176 .....else the ide complained.
Re- PWM's
So far I have already used 6 Pwm's working in parallel , so my guess is all usable pins can be pwm_ed