|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Any way to connect to console on cRIO?
I'm new to the cRIO, so this might be basic stuff..
I understand that you can connect to the cRIO and get console output through a terminal program (say HyperTerminal) through the serial port and a null modem cable. But, is there a way to telnet (or otherwise) to it in order to read files? I'd like to be able to log data to a file (by just redirecting std out for example), and then be able to log in and read the file (or retrieve it) later. Is that even possible? Or can you only get console output through a terminal in real time? Is there any way to capture console output over the network instead of just serial? (I know you are able to debug that way, but can I get console output over network during a match?) |
|
#2
|
||||
|
||||
|
Re: Any way to connect to console on cRIO?
Your brain is going a mile a minute and, while it's great that you're exploring all these possibilities, I can only answer so many questions per post.
Have you tried telnet-ing to it? vxWorks has a telnet server that applications can use, but I don't know if it's configured in the kernels provided to the teams. The other thing you may be able to do, and find creative uses for, is bring up what's called a host shell. This requires that you've first connected to the cRio with a target server connection. I'm attaching a screen shot that should help you try it. This was taken from a different version of Workbench. My team uses LabView so, particularly during build season, I can't get a minute actually connected to the cRio. |
|
#3
|
||||
|
||||
|
Re: Any way to connect to console on cRIO?
Ahhh... Host shell is basically what I want. I tried telnet-ing but no connection. Didn't know if that was because the cRIO doesn't run a telnet daemon or not.
But for the host shell, I'll need to resolve my other issue where I can't get Workbench connected to it as a remote target. I also found some posts and documentation around that say I should be able to FTP to the cRIO to retrieve files, which is really what I want. So I will try that today too and report back. |
|
#4
|
|||
|
|||
|
Re: Any way to connect to console on cRIO?
http://first.wpi.edu/FRC/frccupdates.html
Look at the NetConsole instructions. It works perfectly as a shell for the cRIO for us Be warned though that you are much better off outputting to the User Output section of the Driver Station though. The DriverStationLCD class is what you want |
|
#5
|
|||
|
|||
|
Re: Any way to connect to console on cRIO?
It sounds like you really want to write log files to the disk-on-chip and then FTP them off the cRIO after the match. The host shell and the NetConsole are both not going to work during a competition.
|
|
#6
|
||||
|
||||
|
Re: Any way to connect to console on cRIO?
Right, I don't want to read a console as the robot is operating during a match, only write to a log I can read later in the pit to diagnose anything.
I'll be able to try all these out later in the week. Thanks for all the suggestions! |
|
#7
|
||||
|
||||
|
Re: Any way to connect to console on cRIO?
If you just want to read a file on the cRIO, you can just FTP into the robot's IP.
|
|
#8
|
||||
|
||||
|
Re: Any way to connect to console on cRIO?
Thanks everyone for the help. Tonight I managed to successfully test a simple logging class, which writes to a file on the cRIO. We can then retrieve the file via FTP. We'll use this for diagnostics during our matches.
Also got access to the cRIO's console via hyperterminal and through Windriver Workbench as well (not at the same time ).This mentor is now officially happy. |
|
#9
|
||||
|
||||
|
Re: Any way to connect to console on cRIO?
Quote:
Depending on what you're logging, you might find logging user events in 'System Viewer' (open Workbench Help and search for it) a better and more efficient way. You can log arbitrary data (binary and string) which will be automatically time-stamped. While I'm sure you are, and you should be, proud of this break-through, the sub-microsecond resolution time stamps of System Viewer events could prove invaluable to whatever post-match analysis you're contemplating. OTOH, using System Viewer *without* being connected to the cRio in debug mode is admittedly a fair bit of programming work. Quote:
HyperTerminal is the worst software I've ever used. Try TeraTerm -- it's a brilliantly well behaved tool and it (easily and reliably) logs to files on the host file system. Last edited by gvarndell : 04-02-2010 at 08:00. |
|
#10
|
||||
|
||||
|
Re: Any way to connect to console on cRIO?
Quote:
The thread about it is here: http://www.chiefdelphi.com/forums/sh...ad.php?t=79548 |
|
#11
|
||||
|
||||
|
Re: Any way to connect to console on cRIO?
I agree HyperTerminal is one of the worst, but it's available on the Classmate without me having to look too hard.
![]() I've just posted a new thread over here with our logging code. Hope this helps. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cannot connect to cRIO from WindRiver | Darkknight512 | C/C++ | 8 | 25-01-2011 19:42 |
| Cannot connect to cRIO | aybose | Java | 3 | 02-02-2010 22:20 |
| Default windriver program, no code and warnings on CRIO console out | pafwl | C/C++ | 1 | 16-01-2010 16:03 |
| Logging console data to text file on crio | Kingofl337 | Programming | 3 | 09-04-2009 18:57 |
| Problem receiving console output from cRIO | Arborama | Programming | 7 | 15-02-2009 03:30 |