Go to Post Not winning is different than being a loser. - seanwitte [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 16-01-2010, 23:20
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
bridge/cRio communications sporadic

I thought I'd seek input here on this rather intriguing problem:

When programming a prototypes system today, I discovered an issue with the wireless connection. What would happen was that when the electronics board was powered down and restarted, the wireless connection would only come back up about 50% of the time. On further investigation, this proved to be due to a malfunction in the link between the bridge and the cRio--ICMP pings sent to the cRio when the communication was down would just never get there, even though we could successfully ping the bridge.Changing out the cable did not affect the problem, and the robot runs fine tethered, which suggests to me that the problem lies with the bridge itself. After killing and reinstating power several times, the problem is resolved until the board is powered down again, after which it may or may not work.

Has anyone else had this issue or know of any solutions/workarounds? Our router and bridge settings are the same as we've been using to control our 2009 robot, and all our software is up-to-date.
__________________
Get yer robot source code here!
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2010, 23:32
Gary.C Gary.C is offline
OUTWORK US
FRC #1323 (MadTown Robotics)
Team Role: Mentor
 
Join Date: Jul 2008
Rookie Year: 2008
Location: Madera, CA
Posts: 152
Gary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond repute
Send a message via AIM to Gary.C
Re: bridge/cRio communications sporadic

Quote:
Originally Posted by nathanww View Post
I thought I'd seek input here on this rather intriguing problem:

When programming a prototypes system today, I discovered an issue with the wireless connection. What would happen was that when the electronics board was powered down and restarted, the wireless connection would only come back up about 50% of the time. On further investigation, this proved to be due to a malfunction in the link between the bridge and the cRio--ICMP pings sent to the cRio when the communication was down would just never get there, even though we could successfully ping the bridge.Changing out the cable did not affect the problem, and the robot runs fine tethered, which suggests to me that the problem lies with the bridge itself. After killing and reinstating power several times, the problem is resolved until the board is powered down again, after which it may or may not work.

Has anyone else had this issue or know of any solutions/workarounds? Our router and bridge settings are the same as we've been using to control our 2009 robot, and all our software is up-to-date.
This sums up my day today too and sometimes it wouldn't work. Any solutions would be helpful.
__________________
Gary Chahal
Webmaster & Sales Representative, WestCoast Products || Twitter
MadTown Robotics Team 1323
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2010, 00:07
Boydean's Avatar
Boydean Boydean is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Apr 2007
Rookie Year: 2003
Location: SC
Posts: 319
Boydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant future
Send a message via AIM to Boydean
Re: bridge/cRio communications sporadic

I think I was having this problem today as well. The robot signal light was blinking like it had no connection(when in fact it did), but when enabled would pause for about 50ms every 30seconds. It was fine when programming, but I should start looking into fixing it sometime soon.
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2010, 09:38
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: bridge/cRio communications sporadic

I haven't hooked up the signal light yet, but as I recall it has a certain flash pattern this year that actually indicates that it is in teleop mode.
__________________
Get yer robot source code here!
Reply With Quote
  #5   Spotlight this post!  
Unread 18-01-2010, 23:05
flameout flameout is offline
AKA Ryan Van Why
FRC #0957 (SWARM)
Team Role: Alumni
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Oregon
Posts: 168
flameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to all
Re: bridge/cRio communications sporadic

We have been having communications glitches that temporarily shut down the motors (as if disabled,) but then they resume after a fraction of a second.

Occaisonally, we have had it shut down entirely, but this may be unrelated. Out light wouldn't blink, and the driver station would report that there was no communication. Once, I also noticed the lights for the power regulators were out (on the power distribution board,) so I think this may be an entirely unrelated problem.

I hope this gets solved.
Reply With Quote
  #6   Spotlight this post!  
Unread 20-01-2010, 15:05
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: bridge/cRio communications sporadic

My team has seen something like this also.

I'm wondering if it is a network configuration issue.

When we are developing, and the 'bot is close to the driverstation, we can sometimes switch from tethered to wireless, and in the process, lose communications for a while. Then, without changing anything, it starts working again.


My theory is that it is network related ... but I need to know something about the cRIO's gateway settings before I can conclude anything.

Here's my theory:
- When wireless, the cRIO (with IP addy: 10.xx.yy.2) uses the bridge (with IP addy: 10.xx.yy.1) as its gateway
- When tethered, the cRIO goes straight to the Linksys wireless router via one of the 4 hard-wired ethernet jacks
- If you leave the bridge powered on, even when you are tethered and not using it, then it could be confusing the network connectivity between the devices. (that is, when the bridge is on and unused, it could be confusing the route between the driverstation and the cRIO)


I need to know if the cRIO gateway setting is hard-set to 10.xx.yy.1. If so, then going from tethered to un-tethered could cause some headaches, especially when the bridge is left on.


I plan on doing some more investigation this afternoon at our team meeting. Stay tuned.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote
  #7   Spotlight this post!  
Unread 20-01-2010, 18:31
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,820
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: bridge/cRio communications sporadic

That problem might be due to a persistent cache of the routing table for active IP addresses on the router.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 21-01-2010, 01:14
Gary.C Gary.C is offline
OUTWORK US
FRC #1323 (MadTown Robotics)
Team Role: Mentor
 
Join Date: Jul 2008
Rookie Year: 2008
Location: Madera, CA
Posts: 152
Gary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond repute
Send a message via AIM to Gary.C
Re: bridge/cRio communications sporadic

I have also been having the troubles of the motors turning off for like a second and robot code and communication go red but then go green after a little bit. Also the communication only works like 50% of the time and sometimes it takes a little more than 2 minutes to load everything! I will stay tuned for updates or solutions.
__________________
Gary Chahal
Webmaster & Sales Representative, WestCoast Products || Twitter
MadTown Robotics Team 1323
Reply With Quote
  #9   Spotlight this post!  
Unread 21-01-2010, 08:27
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: bridge/cRio communications sporadic

I'm still not positive about the cRIO gateway setting, or if it is related to the problem, however, some of the guys on my team are theorizing that it could be a startup issue.

Here's a timeline, a few educated guesses, and maybe a fix: (when operating in a wireless mode)
- apply power to the bot
- cRIO comes up first, wireless bridge still booting
- cRIO network comes up, doesn't see an "active" bridge, and times out
- wireless bridge comes up, but too late for cRIO
- no ethernet connection
- reset the cRIO (using a paper clip on the reset button)
- wireless ethernet connects almost immediately

I didn't get much time with the 'bot yesterday, so it was hard to troubleshoot, but when we followed the timeline above, we had no disconnection issues at all.

I'd like to see if the cRIO will re-attempt after 30 or 60 seconds ... stay tuned.

If this theory is correct, and we want to avoid delays at competitions, then we might expect a cRIO firmware patch to slow down its bootup process and wait a little while for the bridge to come up.

Like I said above, this is all just a theory. I hope that it either gets patched, or I'm wrong, because I don't want to have to paper-clip-reset the cRIO every time we turn it on ...


edit: I just posted a question to the NI forums. Perhaps their engineers could shed some light on this for us.
edit2: here's a link to the NI forum question (no activity yet) http://decibel.ni.com/content/thread/5712?tstart=0
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics

Last edited by Ziaholic : 21-01-2010 at 13:35. Reason: updated again
Reply With Quote
  #10   Spotlight this post!  
Unread 21-01-2010, 10:19
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: bridge/cRio communications sporadic

I think we had a bad game bridge last year or something because we were having similar issues. We also lost coms multiple times and changing the game bridge fixed our issues. We lost a couple matches because we just died in the middle...

So needless to say, we haven't been very impressed with the game bridges so far...
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
Reply With Quote
  #11   Spotlight this post!  
Unread 21-01-2010, 11:12
sircedric4's Avatar
sircedric4 sircedric4 is offline
Registered User
AKA: Darren
no team (The SS Prometheus)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Lousiana
Posts: 245
sircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond repute
Re: bridge/cRio communications sporadic

We have had similar experiences. The process we now have in place to always ensure that everything talks is to turn off the robot and unplug our router. Turn on the robot and wait about 10 seconds and then plug the router back in. Then wait for the connection to be made and everything works from that point.

We're using the same router that the rookies were given this year the 160. We bought a whole new control system since we wanted to keep last year's awesome robot demo and fundraiser worthy. We are using a factory reconditioned/recertified game bridge because we couldn't find a new one.

We were going nuts trying to figure out why sometimes it would connect to the wireless bridge and sometimes why it wouldn't. That procedure above is what has worked consistently for us. I just hope we don't have similar issues at the regionals.
Reply With Quote
  #12   Spotlight this post!  
Unread 22-01-2010, 00:55
Gary.C Gary.C is offline
OUTWORK US
FRC #1323 (MadTown Robotics)
Team Role: Mentor
 
Join Date: Jul 2008
Rookie Year: 2008
Location: Madera, CA
Posts: 152
Gary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond reputeGary.C has a reputation beyond repute
Send a message via AIM to Gary.C
Re: bridge/cRio communications sporadic

Quote:
Originally Posted by Ziaholic View Post
I'm still not positive about the cRIO gateway setting, or if it is related to the problem, however, some of the guys on my team are theorizing that it could be a startup issue.

Here's a timeline, a few educated guesses, and maybe a fix: (when operating in a wireless mode)
- apply power to the bot
- cRIO comes up first, wireless bridge still booting
- cRIO network comes up, doesn't see an "active" bridge, and times out
- wireless bridge comes up, but too late for cRIO
- no ethernet connection
- reset the cRIO (using a paper clip on the reset button)
- wireless ethernet connects almost immediately

I didn't get much time with the 'bot yesterday, so it was hard to troubleshoot, but when we followed the timeline above, we had no disconnection issues at all.

I'd like to see if the cRIO will re-attempt after 30 or 60 seconds ... stay tuned.

If this theory is correct, and we want to avoid delays at competitions, then we might expect a cRIO firmware patch to slow down its bootup process and wait a little while for the bridge to come up.

Like I said above, this is all just a theory. I hope that it either gets patched, or I'm wrong, because I don't want to have to paper-clip-reset the cRIO every time we turn it on ...


edit: I just posted a question to the NI forums. Perhaps their engineers could shed some light on this for us.
edit2: here's a link to the NI forum question (no activity yet) http://decibel.ni.com/content/thread/5712?tstart=0

I am pretty sure this is right and I have had to press the reset button on our cRIO too because it won't catch the bridge. I hope there is a fix. Thanks for pointing this out.
__________________
Gary Chahal
Webmaster & Sales Representative, WestCoast Products || Twitter
MadTown Robotics Team 1323
Reply With Quote
  #13   Spotlight this post!  
Unread 22-01-2010, 03:17
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: bridge/cRio communications sporadic

We're looking into this issue. We've been able to reproduce it, but have not yet identified the cause.

-Joe
Reply With Quote
  #14   Spotlight this post!  
Unread 22-01-2010, 07:58
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: bridge/cRio communications sporadic

Thursday we had no issues. It came right up and connected pretty quickly. We'll keep our eyes on it and report any more details when/if we see it happen again.

I'm glad to see that NI was able to reproduce it ... but sporadic errors are difficult to troubleshoot.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote
  #15   Spotlight this post!  
Unread 22-01-2010, 08:15
richwong richwong is offline
Registered User
None #1701 (Robocubs)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Detroit, MI
Posts: 61
richwong is an unknown quantity at this point
Re: bridge/cRio communications sporadic

We've been having this issue, too. We're using last year's cRIO, Bridge and Router. It's sporadic and hard to reproduce.
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
cRIO communications problem alex42 FRC Control System 5 16-01-2010 20:22
DS and cRIO Not Maintaining Communications Will_Sica FRC Control System 0 10-01-2009 13:39
Sporadic NCKs? jgannon Programming 2 11-04-2007 05:25
Serial Communications 6600gt Programming 14 28-06-2006 23:24
Radio Communications... Dan 550 General Forum 9 29-12-2001 17:00


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

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