TCP/IP Output Device Support #23

Closed
scottjgibson opened this Issue Aug 16, 2012 · 10 comments

Comments

Projects
None yet
2 participants
@scottjgibson

I've written a python RGB driver for the Raspberry Pi (WS2801 and LDP8806); I'm working on supporting incoming TCP packets containing a frame buffer (or similar). Any thoughts on supporting a TCP/IP output device? Something where you could specify and IP and Port and have it send the display request there? Doesn't really need a full bidirectional protocol; even UDP would be fine (so long as its sending periodically.

@neophob

This comment has been minimized.

Show comment
Hide comment
@neophob

neophob Aug 16, 2012

Owner

ha just saw you video on twitter ;) anyway this is on my todo list, I also own a pi. forget tcp, udp will be more performant in this case. all we need to do is verify that only newer frames are displayed.

so if you can create a new output device which sends all frames with 24bpp and udp. and add a new configuration entry... would you like to create it yourself or should i help you?
cheers
michu

Owner

neophob commented Aug 16, 2012

ha just saw you video on twitter ;) anyway this is on my todo list, I also own a pi. forget tcp, udp will be more performant in this case. all we need to do is verify that only newer frames are displayed.

so if you can create a new output device which sends all frames with 24bpp and udp. and add a new configuration entry... would you like to create it yourself or should i help you?
cheers
michu

@scottjgibson

This comment has been minimized.

Show comment
Hide comment
@scottjgibson

scottjgibson Aug 16, 2012

If you have time that would be awesome and I'll get the raspberry pi end working. I've been meaning to characterize the SPI performance on the Pi to get and idea of possible frame rates. Seems fast. So a UDP packet with 24bpp should work. Should be able to fit about 500 pixels in a packet without fragmentation (don't know if it matters).

If you have time that would be awesome and I'll get the raspberry pi end working. I've been meaning to characterize the SPI performance on the Pi to get and idea of possible frame rates. Seems fast. So a UDP packet with 24bpp should work. Should be able to fit about 500 pixels in a packet without fragmentation (don't know if it matters).

@neophob

This comment has been minimized.

Show comment
Hide comment
@neophob

neophob Aug 16, 2012

Owner

hey scott i just added an udp output device, all you need to do is configure the output size (x and y resolution) ip and port... the you get a raw udp paket.

i'll upload a new beta binary shortly

Owner

neophob commented Aug 16, 2012

hey scott i just added an udp output device, all you need to do is configure the output size (x and y resolution) ip and port... the you get a raw udp paket.

i'll upload a new beta binary shortly

@ghost ghost assigned neophob Aug 16, 2012

@neophob

This comment has been minimized.

Show comment
Hide comment
@neophob

neophob Aug 16, 2012

Owner

check out PixelController v1.3.0 BETA3 - added UDP support and let me know if that works for you..

what distro do you use with you rpi? did you wrote a howto (connection etc..)?

cheers

Owner

neophob commented Aug 16, 2012

check out PixelController v1.3.0 BETA3 - added UDP support and let me know if that works for you..

what distro do you use with you rpi? did you wrote a howto (connection etc..)?

cheers

@scottjgibson

This comment has been minimized.

Show comment
Hide comment
@scottjgibson

scottjgibson Aug 16, 2012

Awesome I'll work on getting it running tonight... Need to buy more LEDs :) I'm using Occidentalis (the adafruit distro). It has kernel support built in for I2C and SPI. I did something similar to this: http://learn.adafruit.com/light-painting-with-raspberry-pi/hardware for wiring; quick and easy.

Awesome I'll work on getting it running tonight... Need to buy more LEDs :) I'm using Occidentalis (the adafruit distro). It has kernel support built in for I2C and SPI. I did something similar to this: http://learn.adafruit.com/light-painting-with-raspberry-pi/hardware for wiring; quick and easy.

@scottjgibson

This comment has been minimized.

Show comment
Hide comment
@scottjgibson

scottjgibson Aug 17, 2012

Having an issue getting the UDP data out of pixelController. I'm using the latest beta and the example UDP config file. I don't see any UDP packets coming out when watching with wireshark. I have tested the connectivity by using netcat to send some raw binary data to the raspberry pi on the same port.

Any thoughts?

perl -e 'print chr(0xff) x 150' > test.bin
nc -u 192.168.1.123 6803 < test.bin

//pixelpi receives 150 bytes

Having an issue getting the UDP data out of pixelController. I'm using the latest beta and the example UDP config file. I don't see any UDP packets coming out when watching with wireshark. I have tested the connectivity by using netcat to send some raw binary data to the raspberry pi on the same port.

Any thoughts?

perl -e 'print chr(0xff) x 150' > test.bin
nc -u 192.168.1.123 6803 < test.bin

//pixelpi receives 150 bytes

@neophob

This comment has been minimized.

Show comment
Hide comment
@neophob

neophob Aug 17, 2012

Owner

sorry my bad! i fixed it and checked myself using wireshark. the code is commited and i'll build the binary later (I'm running windows here, all *nix binaries would not work)

Owner

neophob commented Aug 17, 2012

sorry my bad! i fixed it and checked myself using wireshark. the code is commited and i'll build the binary later (I'm running windows here, all *nix binaries would not work)

@neophob

This comment has been minimized.

Show comment
Hide comment
@neophob

neophob Aug 17, 2012

Owner

Check PixelController-1.3.0-BETA4.zip - that should work now

Owner

neophob commented Aug 17, 2012

Check PixelController-1.3.0-BETA4.zip - that should work now

@scottjgibson

This comment has been minimized.

Show comment
Hide comment
@scottjgibson

scottjgibson Aug 20, 2012

Tested it out with the latest version of pixelPi and its working great. ( https://github.com/scottjgibson/PixelPi ). I put a blurb with the command/description here: http://thegreatgeekery.blogspot.ca/2012/08/raspberry-pi-and-ws2801.html Thanks for the awesome support!

Tested it out with the latest version of pixelPi and its working great. ( https://github.com/scottjgibson/PixelPi ). I put a blurb with the command/description here: http://thegreatgeekery.blogspot.ca/2012/08/raspberry-pi-and-ws2801.html Thanks for the awesome support!

@neophob

This comment has been minimized.

Show comment
Hide comment
@neophob

neophob Aug 20, 2012

Owner

great to hear, thanks! so I close this issue, if you have some nice images, feel free to post them here https://www.facebook.com/PixelInvaders

Owner

neophob commented Aug 20, 2012

great to hear, thanks! so I close this issue, if you have some nice images, feel free to post them here https://www.facebook.com/PixelInvaders

@neophob neophob closed this Aug 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment