I just uploaded the latest version of my serial communications library to Github. With this Java library, you are able to communicate with the Ranger from a Java application on your PC. That was my test setup at least, since I only have a ranger to test with.
The library contains an example RunClient application to display how it works. It also contains an mBlock save file written on mBlock 3.
Currently, I have been able to play sounds, controll the onboard LEDs, move, and read the light sensor. I have even been able to poll the light sensor once per second and, based on the current light intensity, turn the onboard LED’s on or off as a sort of automated light switch.
Since all this works equally well with the serial cable as it does with the bluetooth dongle, this could be used to setup some sort of network with a PC as the main hub controlling everything.
The only drawback as off now is the interval between the commands send to the ranger. 1 second intervals work great, 10 ms, not so much. With too short an interval, injecting ad-hoc commands based on sensor readings becomes impossible.
You can find the library here:
I’ll probably be looking into some sort of command queue so injecting ad-hoc commands works better, and the whole thing is less dependent on a timer between commands.