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 27-01-2009, 20:28
ay2b's Avatar
ay2b ay2b is offline
Registered User
AKA: Andy
FRC #2928
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 1994
Location: Seattle, WA
Posts: 211
ay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant future
System Freeze with serial output

On multiple occasions I have had both my laptop and the cRIO freeze up. (If it were just the laptop, I'd likely blame it on Windows, but the cRIO is freezing too, so I think it's something more.) This seems to only happen when my laptop is connected to the "console" (i.e. serial port) on the cRIO. Has anyone else experienced similar problems? Does anyone have a solution?

I'm not sure how much of this is relevant, but here's my setup:
- Laptop runs Windows Vista 32-bit
- Laptop ethernet cable plugged into Driver Station
- Laptop connected to cRIO via USB->Serial adapter and then null-modem cable
- PuTTY used to communicate from Laptop to cRIO
- cRIO running test code written in WindRiver, deployed using the "make it run from boot" method, not the "deploy to RAM" method
- cRIO test code allows joystick to move servos
- Printing done via ShowActivity() function
- cRIO/WindRiver/LabVIEW/etc have the "v2" update; v3 just came out today, so I'll try that this evening to see if it has any effect

Everything seems to run fine for a while -- I deploy code to the cRIO; I reboot it via the "reboot" command on the serial console; the code runs and prints output to the console; sometimes I repeat this process multiple times. After a while, both the laptop and the cRIO freeze, requiring a power-cycle on the laptop and pressing of the "reset" button on the cRIO. I am not 100% certain that the freeze is tied to the console communication, but I have not have any problems when the serial port was not connected. I have not tested to see if it's related to a specific amount of data being printed, or rate at which data is printed.

I have tried with multiple different test programs on the cRIO (though they have all been via WindRiver). I've tried with and without the camera. I've tried with and without a LabVIEW dashboard running on the laptop. None of this seems to make a difference.

So far, I have not tried any alternative hardware configurations, other than not connecting the serial cable (I'm not sure if I've tried connecting the cable but not running PuTTY), but it would be nice to find a solution that allows me to use the serial port.

Any recommendations?

Thanks.
__________________

2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2009, 21:55
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: System Freeze with serial output

I have had a similar problem, except it does not require a reboot. The scariest thing is that the robot doesn't just freeze up, if freezes up on the last command it was given, so if its driving it continues to drive even if I switch it to autonomous. It only stops driving if I put it in disable.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2009, 22:30
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,082
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: System Freeze with serial output

I am also having a semi-similar problem -- except my cRIO continues to respond to the joystick input, but the console output freezes.

http://forums.usfirst.org/showthread.php?p=25532
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
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
Problems with output yay123 Programming 4 16-02-2008 20:46
Kevin Watson's encoder code with RPM output MaxM Programming 2 05-02-2005 00:06
Camera fails to output anything on serial lines steven114 Electrical 10 18-01-2005 16:12
Problem with communicating with STAMP through serial port Skabana159 Technical Discussion 2 06-02-2003 21:10
Need help with animation output to VHS archiver 2001 3 24-06-2002 02:01


All times are GMT -5. The time now is 03:20.

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