|
Re: Connecting with roboRIO over TCP
Quote:
Originally Posted by Thardro
We have confirmed that the phone is attempting the connection, and they should be on the same network as adb on the roboRIO is detecting the phone. Why would you recommend using UDP over TCP in this case?
|
UDP is nicer for an application like this because you don't really care about the advantages TCP provides. In a nutshell, TCP will guarantee delivery of packets as long as the socket is connected. UDP is just simply sending data without any guarantee or verification it will arrive intact.
This is great in the case of vision - you're likely going to be sending updates at a fairly fast rate, so if one packet gets lost you don't really want to care about retransmitting it.
Unfortunately, adb only supports bridging TCP and unix sockets as far as I've found
My team's implementation is similar to yours, except we're running the server on the phone side and the client on the RIO - but I can verify adb reverse works in the same way (binding to localhost).
__________________
2012-2014: 225 Driver, Programmer & Co-Captain
2012-2014: FTC 4977 Driver, Programmer, & Team Captain
2011: 225 Operator & Programmer
2013: FRC: Springside-Chestnut Hill Winner (w/341 & 1495), Midknight Mayhem Winner (w/316, 369, & 869), Battle O' Baltimore Winner (w/1640, 2914 & 339), Duel on the Delaware Finalist (w/816 & 369), Ramp Riot Winner (w/341, 304, & 4637) FTC: PA State Finalist
2014: FRC: Springside-Chestnut Hill Winner (w/316 & 1495), Greater DC Winner (w/1731 & 4464), Midknight Mayhem Winner (w/25, 1626 & 329) FTC: PA State Champion
|