|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||||
|
||||||
|
Re: SSH to cRIO
netconsole sends/receives on UDP port 6666. You just need a program that supports that, such as netcat.
|
|
#3
|
||||
|
||||
|
Re: SSH to cRIO
What are you trying to do? FTP and netconsole should be able to handle most tasks...
|
|
#4
|
||||
|
||||
|
Re: SSH to cRIO
I want to be able to monitor the console without using the netconsole app, essentially.
|
|
#5
|
|||
|
|||
|
Re: SSH to cRIO
Perhaps if you share your reason for not using the application provided we can suggest possible solutions for your use-case.
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: SSH to cRIO
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.
|
|
#9
|
|||
|
|||
|
Re: SSH to cRIO
Have you tried netcat or ncb? How about the python above?
|
|
#10
|
||||
|
||||
|
Re: SSH to cRIO
The python seems to work fine for me. Thanks guys.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|