Go to Post I put the encrypted manual file onto a 5-1/4" floppy disk, so I'll have it with me when I go to the kickoff event and pick up the kit. - MrForbes [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 25-01-2016, 04:21
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Working Driver Station for Linux

Quote:
Originally Posted by demosthenes2k8 View Post
Despite having avahi installed on my Linux (fedora) box for years, I can't seem to find the roborio. Was there any custom setup you had to do to get that working?
Nothing special that I recall... apt-get install avahi-daemon on Debian Jessie. You might need to install resolvconf as well. How avahi actually transfers addresses from the daemon to the standard name lookup stack is still a bit of a mystery to me. I haven't spent the time to truly trace down the call chain to figure out how it plugs into the standard resolvconf setup on Linux.

Quote:
Originally Posted by Joe Ross View Post
You can type the ip address into the team number field.
Thanks! I'll have to try it again some time.


LabView can target Linux. I wonder how hard it would be to re-compile for Linux or OSX.
  #17   Spotlight this post!  
Unread 25-01-2016, 09:03
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: 329
fovea1959 will become famous soon enough
Re: Working Driver Station for Linux

Quote:
Originally Posted by AustinSchuh View Post
Nothing special that I recall... apt-get install avahi-daemon on Debian Jessie. You might need to install resolvconf as well. How avahi actually transfers addresses from the daemon to the standard name lookup stack is still a bit of a mystery to me. I haven't spent the time to truly trace down the call chain to figure out how it plugs into the standard resolvconf setup on Linux.
The resolver sources are configured in with nsswitch.conf, which configures the resolver routines in libc. The man page for nsswitch.conf says that a source needs to provide a /lib/libnss_SERVICE.so.X to provide service. My desktop box seems to have them in /lib/x86_64-linux-gnu, and I see ones for mdns, mdns4, mdns6 among others.

nss is a nice extensible system.
  #18   Spotlight this post!  
Unread 27-01-2016, 14:13
viggy96 viggy96 is offline
Registered User
FRC #3331
Team Role: College Student
 
Join Date: Jan 2015
Rookie Year: 2010
Location: Charlotte
Posts: 52
viggy96 is infamous around these partsviggy96 is infamous around these parts
Re: Working Driver Station for Linux

Quote:
Originally Posted by lopsided98 View Post
I can verify that QDriverStation works on Linux. You will need to compile it yourself though (it isn't very hard), and make sure you use the latest commit (rather than the v0.1-alpha release).

If you happen to use Arch Linux, I created an AUR package for it.
Does it connect via mDNS?
  #19   Spotlight this post!  
Unread 28-01-2016, 16:50
spat's Avatar
spat spat is offline
QDriverStation Developer
AKA: Alex Spataru
FRC #3794 (WinT)
Team Role: College Student
 
Join Date: Sep 2015
Rookie Year: 2013
Location: Mexico
Posts: 44
spat is on a distinguished road
Re: Working Driver Station for Linux

Quote:
Originally Posted by viggy96 View Post
Does it connect via mDNS?
The latest version of the QDriverStation does the following to get mDNS working:
  • It uses the operating system's functions to obtain the robot IP from a mDNS address.
  • Implements a built-in mDNS responder class, which works most of the times (at least with our team's robot). However, the built-in mDNS is very, very basic.

TLDR; mDNS should work even if you don't have a package that supports it.
__________________
When Henry Ford made cheap, reliable cars people said, 'Nah, what's wrong with a horse?' That was a huge bet he made, and it worked. - Elon Musk
  #20   Spotlight this post!  
Unread 30-01-2016, 13:04
demosthenes2k8's Avatar
demosthenes2k8 demosthenes2k8 is offline
Graduated but not gone
AKA: Matt Soucy
FRC #0166 (Chop Shop 166)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Merrimack, NH
Posts: 589
demosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to behold
Send a message via AIM to demosthenes2k8 Send a message via Yahoo to demosthenes2k8
Re: Working Driver Station for Linux

Quote:
Originally Posted by spat View Post
The latest version of the QDriverStation does the following to get mDNS working:
  • It uses the operating system's functions to obtain the robot IP from a mDNS address.
  • Implements a built-in mDNS responder class, which works most of the times (at least with our team's robot). However, the built-in mDNS is very, very basic.

TLDR; mDNS should work even if you don't have a package that supports it.
I ended up getting regular mDNS working - after some fidgeting with settings, I set my ethernet adapter connection to Link-Local. After that I have to run avahi-discover every time I connect the cable, but I can work with the robot now.

I've been trying out QDriverStation, and getting an interesting issue saying that the roboRIO is responding to ping, but not the protocol...Time to debug why.
__________________


GSR Dean's List Finalist 2011
Closed Thread


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 18:36.

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