Socketserver is a great little piece of software for OsX - especially if you have a Arduino you need to communicate with from various languages and computers.
Socketserver lets you telnet directly into the Arduino from anywhere on your local area network with multiple sessions if you so desire.
I'll do a little writeup later on about how I use Socketserver to make life easier:
There are some really amazing tools available out there for OS X. By combining Pashua, CocoaDialog, and my SocketServer script, I now have a nice little windowed application for launching a server for testing and prototyping. The original server script was written in CLI php; this script, with a few changes, works well with Pashua and CocoaDialog. I think the easiest way to describe this is to just go over the features:
Run a TCP/IP server on either localhost or your remote IP
Allows any port between 1024 and 65536
Messages from any connected client are broadcasted to all other connected clients
Selectable end-of-line string: CR, LF, &00 (for Flash), or any combination
Notification bubbles for connect/disconnect messages or all communication; can be turned on or off
Server can be auto-started with the last used settings, useful if you want it to start with your login items
Auto-detects any serial devices connected to your mac
Selectable baud rate, from 300 to 115200
Various data bits, parities, and stop bits
Passes messages back and forth between server clients and the selected serial device
The intention of this program is to provide a quick and easy link between arduinos, make controllers, php, flash, processing, director, heck, anything with either a serial port or the ability to connect to a tcp/ip server. I do most of my work on my macbook so this is an OS X only application, but I may try to do the same thing for linux and windows with wxWidgets. It's kind of nice having a little network and/or serial server at the ready in my dock; saves me the time of digging around in terminal looking for scripts.
[From SocketServer gets a gui! - Networking - rshieldslab - the code lab of richard shields]
Comments
Post new comment