If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Question on networking
3 posts
• Page 1 of 1
Question on networking
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...
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
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
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 880 times
- fixstuff555
- Posts: 151
- Joined: Thu Oct 21, 2010 3:24 pm
Re: Question on networking
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
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
- Jay
- Posts: 276
- Joined: Tue Jul 13, 2010 5:42 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 79 guests