View Single Post
  #9   Spotlight this post!  
Unread 24-01-2012, 00:13
Lalaland1125 Lalaland1125 is offline
Registered User
AKA: Ethan Steinberg
FRC #2429
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: La Canada
Posts: 29
Lalaland1125 is an unknown quantity at this point
Re: Sending data to cRIO

After seeing all those posts suggesting UDP, I still think using UDP for the robot is a very bad idea.

UDP is fundamentally unreliable, you don't know the order or if a package will get to its destination.

While it is possible to code around that unreliability, you are going to end up duplicating much of TCP's utilities and probably end up being both slower and buggier than TCP.

TCP(and stuff based on TCP such as http, json, xml, etc) would be a much better choice as a base for robot communications.

And, if you really need the extra space and speed savings that you would get from UDP, encode in a binary format(such as google protobufs). I am sure the speed and space savings from a binary format outweigh the savings from switching from TCP to UDP.

Last edited by Lalaland1125 : 24-01-2012 at 00:24.