Go to Post When Andy Baker holds an iPhone 4 in his left hand, the signal [i]increases[/i]. - Billfred [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 18-01-2016, 12:46
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: 332
fovea1959 will become famous soon enough
Re: Easy communication between Raspberry Pi and roboRIO

We had a Python scripts on the raspberry pi sending UDP packets to the roborio; we encoded the data as JSON. If you install Avahi on the rPi, then you can do the IP address lookups by name (both ways).

If you look in our code drop, you can see the roboRIO/Java end of things (reads the UDP packets, decodes the JSON, and puts the result in a global for the rest of the code to act on): http://www.chiefdelphi.com/media/papers/3189.

We didn't get around to publishing the Raspberry Pi end of things, so I don't know about the legality of sharing the code post-kickoff, but the libraries to make up a JSON string and do UDP sends are part of Python, and Google will help there.
 


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 12:53.

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