I recommend going the Linux route on this instead of Arduino. I am sure there is already a Linux program or script that can do what you need. As networking is pretty generic, you need to decide what protocols you want to use to access the serial port. I recommend running a few web searches on how to do this in Linux, find a solution there, run it on a PC Linux distribution to be sure it works the way you expect -- all before trying it on Galileo. A PC distribution will have many more packages available and is easier to try it out. Run Linux in a VM if you don't want to install it on your PC. Having a Linux VM is important for working with Galileo anyway in order to build the OS and firmware. Finally, to get whatever program works for you to run on Galileo, you may have to install a new package or cross compile some code but there is Yocto and Intel documentation on how to do this.
Here is something I found by searching that may do what you need: http://sourceforge.net/projects/ser2net/
I would install the IoT ADT DevKit image onto an SD Card and boot from that.
That image has a whole bunch of devtools included.(C/C++ Compilers, debugger, etc) it also has the wifi drivers.
Then I'd write an app in 'c' which 'listens' for connections on a socket, 'accepts' connections and relays all reads to the RS232 port, and all 'reads' from the RS232 port get written back to the socket.
Once you get all that working add some code for it to become a 'daemon' and add it to linux startup and voila a stand alone wifi/serial adapter.
You could probably do it all a bit easier with an Arduino sketch too, but I'm not familiar with Arduino sketches, so that's just my own personal approach.
Thank you for the input, I will pursue that route and see if I can make sense of that. (just the new guy!)
Thank you for taking the time to reply, I will look into this and see if I can make it work!
Alex, can you point me to information on the node.js stuff? What do I use to code this and where does that js go? Yikes, in over my head...
1 of 1 people found this helpful
In the following links you can find information about node.js
I hope this can help you!