Question on networking

For general discussion related FlowStone
Post Reply
fixstuff555
Posts: 151
Joined: Thu Oct 21, 2010 3:24 pm

Question on networking

Post by fixstuff555 »

Question:

Has anyone recently done anything with networking in flowstone? I want to interface to the RPi via the networking client / server modules, but before I dug into it, was wondering if anyone had done something along those lines yet...
fixstuff555
Posts: 151
Joined: Thu Oct 21, 2010 3:24 pm

Re: Question on networking

Post by fixstuff555 »

Ok. Well I guess no one has messed with networking?

Anyone?

*crickets*

Oh well, I went ahead and gave it a try. I was able to get Flowstone working with the network client and server primitives with just a little bit of tinkering.

Although this is also Flowstone oriented testing, it also may be of interest to anyone with Raspberry Pis, Parallax Propellers, and Phidget boards.

I used python to set up a client and server, and connected to each from flowstone with a client and server also at the same time.

Although I'm a definite noob with Python, it wasn't too horrible. In case anyone cares, I will post my test Flowstone code. The python code and others can be gotten from the links.

So far on the Raspberry Pi I've managed to:
1) setup a headless SSH connection using Putty. SSH is enabled in Wheezy by default. This is the first time I've really started using SSH into a remote computer. It's pretty darn cool.
2) Setup wireless comms to the Pi (much easier with Wheezy now).
3) Setup a VNC server in the Pi and connected via a VNC client. No monitor anyone?
4) Setup the Phidget libraries and webservice. I really missed my SBC2, but now I almost have everything I had working with that. I can connect to them from a PC, in particular Flowstone orthe control panel. Webservice was most tricky part for me because my PC client driver was out of date...
5) Setup a webcamera and streamed it from the Pi. Did this two ways, ended up using the second. Displayed in Flowstone using the video streamin primitive. Still a bit to slow for my taste (1-2sec lag)
6) Setup network client and server interfaces to Pi. Python on the Pi is really cool. I probably should be learning Ruby instead, but there is just so much more community involvement with Python on the Pi. Wish I could use Python in Flowstone :)
7) Successfully compiled and uploaded Propeller spin code from the Pi to a Propeller connected via USB. This was through the ttyUSB0 serial connection though. Wonderful folks over on Parallax's forums helped me with that. Someone thoughtfully compiled Catalina on the Pi and I just copied the binaries into the Pi.

Anyways. Thats what I've managed to get running between Flowstone and the Pi.

Links to that stuff if anyone is interested:

Setting up an SSH connection to the Pi
http://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh/ssh-under-windows

mjpg streamer info:
http://www.instructables.com/id/Create-an-internet-controlled-robot-using-Livebots/step5/Get-the-webcam-streamer-for-Raspberry-Pi/

python network client server guide:
http://pymotw.com/2/socket/tcp.html

Pi to Propeller Compiling and uploading:
http://forums.parallax.com/showthread.php/141392-Raspberry-Pi-For-Propeller-Development?p=1112603&viewfull=1#post1112603

Phidgets on the Pi (in order to be run from Flowstone :)
http://www.phidgets.com/docs/OS_-_Linux

Wireless on the Pi:
http://pingbin.com/2012/12/setup-wifi-raspberry-pi/

VNC server /client setup
http://learn.adafruit.com/adafruit-raspberry-pi-lesson-7-remote-control-with-vnc/installing-vnc
Attachments
FS_raspberry_pi_test.fsm
Flowstone test schematic
(10.6 KiB) Downloaded 982 times
Jay
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm

Re: Question on networking

Post by Jay »

Hi Fixstuff555

that's great news i've been thinking about getting a pi, I had originally wanted to make and use flowstone applications on the PI but as i found out that was not possible I did not bother buying one. i keep eyeballing them in my local electronics store though ha ha, Maplin in the UK do a kit with everything you need for the pi for around £70 GBPs. Damit im gonna pick one up!

have you seen the vids of ppl running windows 7 on the pi? http://www.youtube.com/watch?v=WYQyUqFck6I :D
Post Reply