Go to Post If you have not had a positive experience in FIRST, please don't bring those that have down. - Jeff K. [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 22-01-2016, 09:37
ProfessorAlekM ProfessorAlekM is offline
Registered User
FRC #6190
 
Join Date: Jan 2016
Location: Canton, Michigan
Posts: 32
ProfessorAlekM has a little shameless behaviour in the past
Communication between BeagleBone and RoboRIO

Hello!

Sorry if this has been covered on this forum before, but I can't figure out any way to connect my BeagleBone to the RoboRIO.

My goal is to have the BeagleBone and the RoboRIO exchanging strings of data (ie. coordinates). At first I looked into using i2c, then I heard there was UART, but I can't find any tutorials on how to use either of these interfaces. I need to find a communications interface that is supported by both the BeagleBone and the RoboRIO.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2016, 12:23
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: Communication between BeagleBone and RoboRIO

Try using UDP over ethernet. Implementing the UDP protocol on the RoboRio was fairly straightforward, and if you are using Java there are plenty of tutorials on how to do it (ie. https://docs.oracle.com/javase/tutor...ing/datagrams/). I actually have not worked on the beaglebone end of things, but I would imagine it is very similar.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2016, 17:50
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: Communication between BeagleBone and RoboRIO

UDP works great. We did it last year between Python on an rPi and the roboRIO running Java. Take a look at http://www.chiefdelphi.com/media/papers/3189, it points to our RoboRIO code.

We didn't get around to publishing the rPi end but I think the students grabbed it from a tutorial.

The nice thing we did was use JSON for a data format. That worked very very well.

Let me know if we can help!

Last edited by fovea1959 : 23-01-2016 at 17:54.
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 10:18.

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