Wednesday, 15 May 2013

Wireless exchange between Arduino and Raspberry Pi: choice of protocol -



Wireless exchange between Arduino and Raspberry Pi: choice of protocol -

hello oh mighty stackoverflow.com community.

this question i've been fiddling while now. have (will have) arduino 2560 talking rpi using pair of 388 rf transmitter/receiver - serial communication. create matters worse, there many transmitters (arduinos) , single reciever (rpi). 2 questions cannot quite figure reply for:

protocol extremely primitive - if want error correction, have take myself. thought utilize extremely simple parity bit start , see how goes. thoughts?

speaking of protocol - how going encode data? there single number going transmit - transmitter id - accompanied boolean flag (sensor active/inactive). best way encode info serial rf transmission? text? can transmit stream of bytes, much be, create farther porting hard (big/little endian, word size, etc). tried consider exotics such nanopb no matter how protocol buffers great overkill task. understand position wobbly here, i'd appreciate ideas.

finally, know sounds lame i'm pretty sure has done before , there might sort of cross-platform library can utilize exchange. if indeed so, great - can want instead of re-inventing wheel.

anyway, here's stand. appreciate answers.

this transmitter i'm using , receiver.

thanks lot everyone!

have looked @ arduino virtual wire library – http://www.pjrc.com/teensy/td_libs_virtualwire.html. works fine transmitters , receivers on arduino , should not hard port raspberry pi. there forum give-and-take @ http://www.raspberrypi.org/phpbb3/viewtopic.php?t=24215&p=239410.

arduino protocols wireless raspberry-pi error-correction

No comments:

Post a Comment