Pages: [1]   Go Down
Author Topic: Arduino->Processing wireless Serial CRC/ACK  (Read 556 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 152
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I want to wirelessly transfer a larger amount of data (camera picture from a Hacrocam) from my arduino mega to my PC (processing). I use XRF modules (XBee like UART <-> RF devices). There are some transmission errors and the XRFs don't offer any retransmit mechanisms. So I need to implement them myself.

I wonder if someone implemented something like this before and could share its experience and/or code.
I found this link: http://hacromatic.com/blog/2012/08/make-your-serial-protocol-robust-with-8-bit-crc-codes/ which might be a good start.

Thanks
Robert
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This might not what you are looking for (break a butterfly on a wheel) but when i hear
retransmit mechanisms
I almost directly think about a nice TCP Protocol (had to Programm some Server an Client Applications  smiley-grin, only not for Arduino). I know in the Arduino Wi-Fi Shield they use TCP. le Link to the Library:
https://github.com/arduino/wifishield/tree/master/libraries/WiFi/utility
socket, server_drv and spi_drv could be of interest for you to implement TCP. In the parent folders you should find examples on how to send and receive data using TCP. I think you would almost only have to change the spi_drv funktions to insteed talk to your XRF modul.
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 152
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot. But I think a full TCP protocoll might indeed be overdone. :-)
Logged

Pages: [1]   Go Up
Jump to: