Go to Post I don't care if you use hot dogs for wheels. If you're scoring points, and you fit the strategy, it's fine. - evanperryg [more]
Home
Go Back   Chief Delphi > Technical > 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-02-2014, 15:42
icecube45's Avatar
icecube45 icecube45 is offline
Drive|Programming|Captain
FRC #0114 (Eaglestrike)
Team Role: Driver
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Los Altos
Posts: 30
icecube45 is a jewel in the roughicecube45 is a jewel in the roughicecube45 is a jewel in the roughicecube45 is a jewel in the rough
cRio Communication Errors

Hello,
starting about three days ago, after we finished wiring our robot, we encountered a communication error with our robot.

We can connect just fine, but after about 30 seconds of solid communication, the robot code light will start flashing, communications going in and out, until we eventually loose all communications, but are still connected to the dlink.

After about 15 minutes of waiting, the communications will come back, and the cycle will begin again.

What we have tried:
Reflashing the dlink
reflashing the cRio
swapping the crio
swapping the dlink
switched to barebones code
tried on another robot
tried other, non dlink routers
switched the dlink to a less populated wifi channel
setting up the dlink as a bridge to a router connected via lan to the DS.
swapped the power supply to the dlink
plugged the dlink into a wall socket
tried another driver station (went to a classmate, along with another laptop)
tried 5 ghz, get a watchdog error, which is caused by communication (acts the same exact way, and we killed the watchdog in code)




Essentially, we have no freaking idea what has gone wrong,


an interesting thing to note though, is that When tethered, we have no communication errors at all

We can't do everything tethered, and would love for any help you guys have.


-icecube45
team 114
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2014, 16:31
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: cRio Communication Errors

Can you post the log file, or a picture of the log file? The driver station charts tab has a button that launches the viewer. Then choose the log file that shows the issue. It may also be useful to watch the drink closely as this happens. Does the blue LED on the front change orange? Does it go out, etc?

You may also want to have another computer join the drink AP and see if it can still ping the cRIO, the AP, etc. Do you have lots of wifi APs nearby that may be causing issues?

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2014, 17:10
icecube45's Avatar
icecube45 icecube45 is offline
Drive|Programming|Captain
FRC #0114 (Eaglestrike)
Team Role: Driver
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Los Altos
Posts: 30
icecube45 is a jewel in the roughicecube45 is a jewel in the roughicecube45 is a jewel in the roughicecube45 is a jewel in the rough
Re: cRio Communication Errors

Quote:
Originally Posted by Greg McKaskle View Post
Can you post the log file, or a picture of the log file? The driver station charts tab has a button that launches the viewer. Then choose the log file that shows the issue. It may also be useful to watch the drink closely as this happens. Does the blue LED on the front change orange? Does it go out, etc?

You may also want to have another computer join the drink AP and see if it can still ping the cRIO, the AP, etc. Do you have lots of wifi APs nearby that may be causing issues?

Greg McKaskle

My team is currently PID testing, so I can't post the log file atm, but from viewing them in the past, all you see are dropped packets when the communication goes down.
No crio cpu spikes, or anything like that.

The dlink stays constant, and we never lose actual wifi connectivity.

We have had a computer pinging it, and when we lose robot code, it will stop receiving a ping for about 1 or 2 pings, then it will receive one, lose one, as the communications go in and out


as for other wifi hotspots, we did a packet sniff, and changed our ap to the channel that was less populated (all the other wifi aps were on channel 11, we went to 1)

Last edited by icecube45 : 16-02-2014 at 17:13.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2014, 17:59
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: cRio Communication Errors

I"m curious whether there was excessive loss or lag before the drop. Also, the DS pings anytime anything happens to the comms. It pings and logs any changes to the four possible devices. This helps determine if the radio is still there and reachable and only the cRIO is down, etc.

If the radio is really there and only the comms or code lights go down, that indicates that the code is bringing down the cRIO. What language? Does this correspond to any particular robot feature like vision processing, etc?

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2014, 18:14
icecube45's Avatar
icecube45 icecube45 is offline
Drive|Programming|Captain
FRC #0114 (Eaglestrike)
Team Role: Driver
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Los Altos
Posts: 30
icecube45 is a jewel in the roughicecube45 is a jewel in the roughicecube45 is a jewel in the roughicecube45 is a jewel in the rough
Re: cRio Communication Errors

Quote:
Originally Posted by Greg McKaskle View Post
I"m curious whether there was excessive loss or lag before the drop. Also, the DS pings anytime anything happens to the comms. It pings and logs any changes to the four possible devices. This helps determine if the radio is still there and reachable and only the cRIO is down, etc.

If the radio is really there and only the comms or code lights go down, that indicates that the code is bringing down the cRIO. What language? Does this correspond to any particular robot feature like vision processing, etc?

Greg McKaskle
The funny thing is, this was working just fine until we did some cable management on our robot, now it doesn't work on any robot.
We are using java this year, but we have gone back to barebones code, confirmed working, and have the same problem.
We also switched to some very basic c++, same problem.

It doesn't correlate to anything, and is just plain weird
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


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

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