Go to Post FIRST is a pretty decent microcosm of real life, those who work hard, accomplish more decent lesson to learn, and FIRST is allowing us to learn it. - Aren_Hill [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 18:01.

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