Go to Post I hate to do say it with these words but...We're all in this together. - dellagd [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
  #1   Spotlight this post!  
Unread 16-11-2011, 16:53
arthurlockman's Avatar
arthurlockman arthurlockman is offline
Team Captain
FRC #0172 (Northern Force)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Gorham, ME
Posts: 29
arthurlockman is an unknown quantity at this point
Send a message via AIM to arthurlockman
SSH to cRIO

Hi Everyone,
Is it possible to connect to the cRIO through SSH? I know that on the Windows side it has a NetConsole that lets you communicate with the cRIO through the terminal. Can you connect to it in a similar manner with SSH and Terminal (or Prompt on iOS)? If anyone knows how to do that, I would really appreciate the help.
Thanks!
-Arthur
__________________
--
Arthur Lockman
Twitter: @arthurlockman
a.rthr.me
  #2   Spotlight this post!  
Unread 16-11-2011, 17:20
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,586
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: SSH to cRIO

netconsole sends/receives on UDP port 6666. You just need a program that supports that, such as netcat.
  #3   Spotlight this post!  
Unread 16-11-2011, 17:24
~Cory~'s Avatar
~Cory~ ~Cory~ is offline
Student
AKA: Cory Rypkema
FRC #0706
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Worcester MA
Posts: 216
~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold
Re: SSH to cRIO

What are you trying to do? FTP and netconsole should be able to handle most tasks...
__________________
corin.rypkema.org
WPI Class of '17
'12 Dean's List Finalist, Mentor of 706 - Cyberhawks
  #4   Spotlight this post!  
Unread 31-01-2012, 18:18
arthurlockman's Avatar
arthurlockman arthurlockman is offline
Team Captain
FRC #0172 (Northern Force)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Gorham, ME
Posts: 29
arthurlockman is an unknown quantity at this point
Send a message via AIM to arthurlockman
Re: SSH to cRIO

I want to be able to monitor the console without using the netconsole app, essentially.
__________________
--
Arthur Lockman
Twitter: @arthurlockman
a.rthr.me
  #5   Spotlight this post!  
Unread 31-01-2012, 18:54
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: SSH to cRIO

Quote:
Originally Posted by arthurlockman View Post
I want to be able to monitor the console without using the netconsole app, essentially.
Perhaps if you share your reason for not using the application provided we can suggest possible solutions for your use-case.
  #6   Spotlight this post!  
Unread 31-01-2012, 20:11
msulaimain's Avatar
msulaimain msulaimain is offline
Registered User
AKA: Muhammad Sulaiman
FRC #3346 ([{Kamikaze Komets}])
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: USA
Posts: 36
msulaimain can only hope to improve
Send a message via AIM to msulaimain Send a message via Yahoo to msulaimain
Re: SSH to cRIO

FileZilla is always an option if your wanting to transfer files and stuff to your cRio or if you want to transfer a .out file to the ni-rt folder if your handy dandy button in WindRiver isn't uploading code for some reason.
__________________
int main()
{
::::::::: include=>commitment;
::::::::: int=>school name=>Asheboro::High
::::::::: int=>team name=>Kamikaze::Komets;
::::::::: Priority_Queue=>FRC Championship::2012;
::::::::: Max_Element=>Teamwork;
}
  #7   Spotlight this post!  
Unread 31-01-2012, 21:51
andreboos andreboos is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2010
Location: San Diego
Posts: 132
andreboos is a jewel in the roughandreboos is a jewel in the roughandreboos is a jewel in the roughandreboos is a jewel in the rough
Re: SSH to cRIO

I use a modified version of Dustin Spicuzza's cross-platform netconsole:

Code:
#!/usr/bin/env python2

import socket
import select
from sys import stdout as stdout

UDP_PORT=6666

sock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP )

sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
sock.bind( ('',UDP_PORT) )
sock.setblocking(0)

while True:
    result = select.select( [sock], [], [] )
    msg = result[0][0].recv( 8196 )
    for c in msg:
        stdout.write(c)
  #8   Spotlight this post!  
Unread 07-02-2012, 19:57
arthurlockman's Avatar
arthurlockman arthurlockman is offline
Team Captain
FRC #0172 (Northern Force)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Gorham, ME
Posts: 29
arthurlockman is an unknown quantity at this point
Send a message via AIM to arthurlockman
Re: SSH to cRIO

Quote:
Originally Posted by jhersh View Post
Perhaps if you share your reason for not using the application provided we can suggest possible solutions for your use-case.
My reason? My main computer is a mac. If I didn't have to fire up windows just to watch the netconsole, I'd be happy.
__________________
--
Arthur Lockman
Twitter: @arthurlockman
a.rthr.me
  #9   Spotlight this post!  
Unread 08-02-2012, 00:11
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: SSH to cRIO

Quote:
Originally Posted by arthurlockman View Post
My reason? My main computer is a mac. If I didn't have to fire up windows just to watch the netconsole, I'd be happy.
Have you tried netcat or ncb? How about the python above?
  #10   Spotlight this post!  
Unread 08-02-2012, 10:20
arthurlockman's Avatar
arthurlockman arthurlockman is offline
Team Captain
FRC #0172 (Northern Force)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Gorham, ME
Posts: 29
arthurlockman is an unknown quantity at this point
Send a message via AIM to arthurlockman
Re: SSH to cRIO

Quote:
Originally Posted by jhersh View Post
Have you tried netcat or ncb? How about the python above?
The python seems to work fine for me. Thanks guys.
__________________
--
Arthur Lockman
Twitter: @arthurlockman
a.rthr.me
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:51.

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