Go to Post ...thinking and learning never go out of style. - Rick TYler [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2017, 19:45
MMuru MMuru is offline
Registered User
FRC #0610
 
Join Date: Jan 2017
Location: Toronto
Posts: 3
MMuru is an unknown quantity at this point
Android to RoboRIO Communication

Hello all,

My team has decided to see what is necessary to use an Android Phone for vision tracking and sending the target information to the RoboRIO. We have been looking through the RIOdroid library (https://github.com/Spectrum3847/RIOdroid). ADB installs fine on the RIO, however, there is a program called SOCAT which is used for port forwarding and virtualization which refuses to install saying that the architecture is incompatible. When we attempt to install it on a RIO with last years image on it, the installer works fine. We have tried downloading various versions of SOCAT, but all of them fail with the same message. Are there any other communication protocols that can be used between Android and the RoboRIO? All help would be appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2017, 19:49
axton900's Avatar
axton900 axton900 is offline
Programming Co-Captain
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: New Jersey USA
Posts: 52
axton900 has a spectacular aura aboutaxton900 has a spectacular aura aboutaxton900 has a spectacular aura about
Re: Android to RoboRIO Communication

The RioDroid library link provided does not work. the ")" counts as part of the link.

The proper link is this
__________________
Team 1403: Cougar Robotics (2015 - present)

Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2017, 22:21
Thardro Thardro is offline
Registered User
AKA: Ethan
FRC #3042 (Cobalt Catalysts)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Minnesota
Posts: 19
Thardro has a spectacular aura aboutThardro has a spectacular aura about
Re: Android to RoboRIO Communication

We have been able to communicate with an android phone using RIOdroid without using SOCAT. By running "adb reverse tcp:3000 tcp:3000" on the roboRIO you can establish a tcp connection between the roboRIO and the phone, so that connecting to 127.0.0.1 on port 3000 on the phone will connect you to port 3000 on the RIO.
__________________



Last edited by Thardro : 20-01-2017 at 22:23. Reason: Port # was showing as emoji
Reply With Quote
  #4   Spotlight this post!  
Unread 20-01-2017, 22:38
MMuru MMuru is offline
Registered User
FRC #0610
 
Join Date: Jan 2017
Location: Toronto
Posts: 3
MMuru is an unknown quantity at this point
Re: Android to RoboRIO Communication

Quote:
Originally Posted by Thardro View Post
We have been able to communicate with an android phone using RIOdroid without using SOCAT. By running "adb reverse tcp:3000 tcp:3000" on the roboRIO you can establish a tcp connection between the roboRIO and the phone, so that connecting to 127.0.0.1 on port 3000 on the phone will connect you to port 3000 on the RIO.
Could I get some a snippet of what that code looks like? Also does that mean that everything else from the RIOdroid library is functional? Finally, was this tested on the 2017 image of the RIO?
Reply With Quote
  #5   Spotlight this post!  
Unread 20-01-2017, 22:49
Thardro Thardro is offline
Registered User
AKA: Ethan
FRC #3042 (Cobalt Catalysts)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Minnesota
Posts: 19
Thardro has a spectacular aura aboutThardro has a spectacular aura about
Re: Android to RoboRIO Communication

Quote:
Originally Posted by MMuru View Post
Could I get some a snippet of what that code looks like? Also does that mean that everything else from the RIOdroid library is functional? Finally, was this tested on the 2017 image of the RIO?
Here is our code that does this on the RIO and you can look inside the vision folder for the rest of our code that handles the connection on the roboRIO (it is almost entirely a copy of 254's code from last year). This is all we have used the library for so I cannot comment on whether the rest is working, however this is enough to send messages back and forth between the RIO and a phone. We have this all set up and working on the 2017 image of the RIO as well.
__________________


Reply With Quote
  #6   Spotlight this post!  
Unread 20-01-2017, 23:22
MMuru MMuru is offline
Registered User
FRC #0610
 
Join Date: Jan 2017
Location: Toronto
Posts: 3
MMuru is an unknown quantity at this point
Re: Android to RoboRIO Communication

Quote:
Originally Posted by Thardro View Post
Here is our code that does this on the RIO and you can look inside the vision folder for the rest of our code that handles the connection on the roboRIO (it is almost entirely a copy of 254's code from last year). This is all we have used the library for so I cannot comment on whether the rest is working, however this is enough to send messages back and forth between the RIO and a phone. We have this all set up and working on the 2017 image of the RIO as well.
Thank you so much!!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 15:29.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi