Go to Post from time to time, we all need a good smack to make us see when we screwed up and did something we shouldn't have. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2010, 06:04
SteveGarward's Avatar
SteveGarward SteveGarward is offline
Red 5, standing by...
AKA: 7 years already
FRC #0111 (WildStang), FRC #3132 (Thunder Down Under)
Team Role: Mentor
 
Join Date: Dec 2009
Rookie Year: 2010
Location: Gurnee, IL
Posts: 173
SteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud of
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?)
__________________
FRC Team 111 - WildStang (Mentor, Drive Coach)
FTC Team 7458 - Full Force! (Mentor, Coach)
FRC Team 3132 - Australia's FIRST FRC Team! (Holy crazy first year, Batman!)

Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2010, 07:54
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Any way to connect to console on cRIO?

Quote:
Originally Posted by SteveGarward View Post
is there a way to telnet (or otherwise) to it
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.
Attached Thumbnails
Click image for larger version

Name:	host-shell.PNG
Views:	185
Size:	17.1 KB
ID:	8447  
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2010, 15:41
SteveGarward's Avatar
SteveGarward SteveGarward is offline
Red 5, standing by...
AKA: 7 years already
FRC #0111 (WildStang), FRC #3132 (Thunder Down Under)
Team Role: Mentor
 
Join Date: Dec 2009
Rookie Year: 2010
Location: Gurnee, IL
Posts: 173
SteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud of
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.
__________________
FRC Team 111 - WildStang (Mentor, Drive Coach)
FTC Team 7458 - Full Force! (Mentor, Coach)
FRC Team 3132 - Australia's FIRST FRC Team! (Holy crazy first year, Batman!)

Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2010, 17:39
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
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
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2010, 02:22
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: Any way to connect to console on cRIO?

Quote:
Originally Posted by SteveGarward View Post
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.
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2010, 06:21
SteveGarward's Avatar
SteveGarward SteveGarward is offline
Red 5, standing by...
AKA: 7 years already
FRC #0111 (WildStang), FRC #3132 (Thunder Down Under)
Team Role: Mentor
 
Join Date: Dec 2009
Rookie Year: 2010
Location: Gurnee, IL
Posts: 173
SteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud of
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!
__________________
FRC Team 111 - WildStang (Mentor, Drive Coach)
FTC Team 7458 - Full Force! (Mentor, Coach)
FRC Team 3132 - Australia's FIRST FRC Team! (Holy crazy first year, Batman!)

Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2010, 10:02
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
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.
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 04-02-2010, 06:51
SteveGarward's Avatar
SteveGarward SteveGarward is offline
Red 5, standing by...
AKA: 7 years already
FRC #0111 (WildStang), FRC #3132 (Thunder Down Under)
Team Role: Mentor
 
Join Date: Dec 2009
Rookie Year: 2010
Location: Gurnee, IL
Posts: 173
SteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud of
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.
__________________
FRC Team 111 - WildStang (Mentor, Drive Coach)
FTC Team 7458 - Full Force! (Mentor, Coach)
FRC Team 3132 - Australia's FIRST FRC Team! (Holy crazy first year, Batman!)

Reply With Quote
  #9   Spotlight this post!  
Unread 04-02-2010, 07:28
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Any way to connect to console on cRIO?

Quote:
Originally Posted by SteveGarward View Post
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.
Good work.
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:
Also got access to the cRIO's console via hyperterminal and through Windriver Workbench as well (not at the same time ).
The terminal in Workbench is okay.
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.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)

Last edited by gvarndell : 04-02-2010 at 08:00.
Reply With Quote
  #10   Spotlight this post!  
Unread 04-02-2010, 11:00
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Any way to connect to console on cRIO?

Quote:
Originally Posted by SteveGarward View Post
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.
This sounds silly, but can I see the code you're using to save info to a file? For whatever reason, my team and a few others are having serious issues writing files. Both ofstream and FILE pointers/fopen() don't work right.

The thread about it is here:

http://www.chiefdelphi.com/forums/sh...ad.php?t=79548
__________________
Reply With Quote
  #11   Spotlight this post!  
Unread 05-02-2010, 07:28
SteveGarward's Avatar
SteveGarward SteveGarward is offline
Red 5, standing by...
AKA: 7 years already
FRC #0111 (WildStang), FRC #3132 (Thunder Down Under)
Team Role: Mentor
 
Join Date: Dec 2009
Rookie Year: 2010
Location: Gurnee, IL
Posts: 173
SteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud ofSteveGarward has much to be proud of
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.
__________________
FRC Team 111 - WildStang (Mentor, Drive Coach)
FTC Team 7458 - Full Force! (Mentor, Coach)
FRC Team 3132 - Australia's FIRST FRC Team! (Holy crazy first year, Batman!)

Reply With Quote
Reply


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

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


All times are GMT -5. The time now is 14:15.

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