Go to Post I can't wait until Kick Off! Simultaneously across the country there will be one loud cry of "Doh!", followed by the sound of smacking foreheads with the palm of a hand, then "Why didn't I figure that out? I saw the hint". Indeed, hind sight is 20/20. - billbo911 [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 19-02-2011, 23:13
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 307
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Question No Comms at the Scrimmage

Today at the Suffield Shakedown we were completely unable to run because we were unable to establish communications. After having the FTA personnel (thank you to them) look at our 2 DLinks it was established that they were in working condition and configured properly. This was also confirmed by us resetting the system for another team number who agreed to try using our DLink to connect on their robot to test the bridge. However, we were unable to connect to the FMS when we used it.

To start the story at the beginning, about 1.5-2 weeks ago we were working fine using the DLink in bridge mode on our robot and continuing to use the Linksys router from 2 years ago to provide comms to our driverstation and our programming laptops. We had been waiting for a few days to get access to the robot again after further mechanical and electrical work. After what I can only refer to as an "event" that happened we were no longer able to get power to our cRIO and therefore (or possibly additionally) we were unable to communicate with it wirelessly over the DLink. The "event" in question has not been quantified per se, ie. we don't know what happened... there was no snap or crackle, there was no smoke or smell... but the system stopped working. We are lucky enough to have a 2nd cRIO and replaced the "bad" system but still no communications... it appeared that perhaps the DLink had also been effected, so we swapped it with our old bridge from 2 years ago... and miraculously it worked. So we proceeded to use that configuration for programming and testing while ordering a replacement for our DLink. The DLink arrived on Thursday and we set it up on Friday... but the new DLink gave us the same puzzling results as the first one. We were able to see the DLink wirelessly but not the cRIO on the other side of it and we were also able to see the cRIO if we plugged into the DLink with our driverstation or laptop. However this did not give us a working competition configuration. Believing that it was likely a bridge configuration issue, we headed off to the scrimmage with our fingers crossed. However, as I already said... we did not find an answer to our problems.

Just for a little more background:
  • we are programming in C++ and updated to the v28 this morning to conform to that new requirement... however, after hearing of potential issues with v28 we also tried backing up to the v27 version cRIO image.
  • we verified the voltage into the DLink (recognizing the old bridge uses a different voltage... therefore they are using different power cords).
  • we verified the DLink is in working condition as mentioned above.
  • we have the latest cRIO and driverstation updates installed.
Has anyone else seen this type of problem? Any ideas?
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2011, 11:52
MarcD79's Avatar
MarcD79 MarcD79 is offline
Registered User
AKA: Marc
FRC #0176 (Aces High 176)
Team Role: Mentor
 
Join Date: Nov 2006
Rookie Year: 2002
Location: Suffield, CT
Posts: 226
MarcD79 has a reputation beyond reputeMarcD79 has a reputation beyond reputeMarcD79 has a reputation beyond reputeMarcD79 has a reputation beyond reputeMarcD79 has a reputation beyond reputeMarcD79 has a reputation beyond reputeMarcD79 has a reputation beyond reputeMarcD79 has a reputation beyond reputeMarcD79 has a reputation beyond reputeMarcD79 has a reputation beyond reputeMarcD79 has a reputation beyond repute
Re: No Comms at the Scrimmage

I'm truly sorry for what didn't happen for your robot yesterday. N.H. had similar problems & will be addressed prior to official competitions. At least you had this happen prior to a real Regional & can look for a solution. Your team is the definition of gracious professionalism. I never once heard a complaint & your team just kept trying. I hope you beat the odds & climb to the top.
__________________
Mentor & Volunteer
Field setup, Field Supervisor & disassemble Suffield Shakedown 2003- present (2015)
Connecticut Regional Field setup, disassemble & FTAA 2009, 2010, 2011, 2012, 2013 (Field reset & Assistant Field Supervisor), Field Reset Pine Tree Regional 2013, Field Supervisor, setup & take-down at Groton & Southington Districts 2014, Field Reset Hartford District 2014. Field Reset Boston District Championship 2014. FLL Judge Fall 2014
Field Supervisor/Set-up & Take-down Waterbury & Springfield , Field Reset/Set-up & take-down Hartford N/E District 2015. Field Reset NE Champs 2015. FLL Judge Fall 2015.
Suffield Shakedown 2016, Field Super 2016 Stronghold Waterbury.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2011, 15:38
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,752
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: No Comms at the Scrimmage

Can you go through what does work on the dlink and when things don't work, what are the errors or diagnostics.

For example, it sounds like the cRIO wired to the dlink and laptops wired to the dlink will be able to program and enable, correct?

Next, describe the configuration of the dlink wifi and the config of the laptop trying to communicate with it. Finally, can you ping the cRIO, the dlink?

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2011, 19:46
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 307
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: No Comms at the Scrimmage

Quote:
Originally Posted by Greg McKaskle View Post
Can you go through what does work on the dlink and when things don't work, what are the errors or diagnostics.
When we tried using the DLink in bridge mode after replacing the cRIO (which had experienced "the event") it was unable to communicate to the laptop or to the driverstation. Driverstation indicated no communication.

Quote:
Originally Posted by Greg McKaskle View Post
For example, it sounds like the cRIO wired to the dlink and laptops wired to the dlink will be able to program and enable, correct?
YES! well... to clarify, we have not done any programming, etc. directly plugged in because it was working using the old bridge so we have been using that configuration to continue our programming, testing, driving, etc. However, when we are directly plugged into the DLink we are able to both ping and use the netconsole to communicate the cRIO.

Quote:
Originally Posted by Greg McKaskle View Post
Next, describe the configuration of the dlink wifi and the config of the laptop trying to communicate with it. Finally, can you ping the cRIO, the dlink?
Using the laptop we tried using the netconsole display to see if we could talk to the cRIO with no response. We also tried pinging both the DLink (10.x.x.1) and the cRIO (10.x.x.2) from the command prompt on the laptop (going through our wireless router) and we were able to ping the DLink but not the cRIO. We also tried pinging the cRIO from our wireless router diagnostics with out success.

As far as configuration:
  • DLink: we followed the instructions on the "How to configure your Radio"; IP address= 10.2.30.1, mask= 255.0.0.0, gateway= 10.2.30.4. It was also tried as programmed from the competition kiosk with the WPA-key removed.
  • Laptop: is configured without any security on the wireless; IP address= 10.2.30.6, mask=255.0.0.0, gateway= 10.2.30.4
  • Router: IP address = 10.2.30.4, mask=255.0.0.0
  • driverstation: IP address = 10.2.30.5
Just to reiterate... we were able to run the system from end to end (ie. laptop and driverstation to router to bridge to cRIO) successfully using last year's bridge. Also we have been trying to test using the 2 DLinks, one as an access point and one as a bridge...with the same results. Using this configuration we were able to get 2 laptops on each end of the setup (ie. laptop-accesspoint-bridge-laptop) to see eachother, but when one laptop was replaced with the cRIO the laptop could not see it. [Note that the removed laptop had been configured to have the same IP address as the cRIO, 10.2.30.2]

Any thoughts on whether upgrading the firmware on the DLink (from 1.2.1 to 1.3.1) might be helpful?
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2011, 19:56
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 307
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: No Comms at the Scrimmage

Greg, A little more information that might mean something to you...

We have tried re-imaging the cRIO with v28, then back to v27, then back to v28, then back to v25... based on information that other teams using C++ had been having issues with the newer cRIO images and communications. The FPGA versions (as displayed on the netconsole when the system starts up) are - Hardware and Software Version: 2011, Hardware and Software Revision: 1.5.3. [Note that these revisions don't appear to change with the cRIO image... I presume that this means it is not part of the image, or that it has not changed between these images.]

We have also removed our code from the system (ie. undeployed or not loaded code after re-imaging)... to ensure that our code is not contributing to the problem.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 20-02-2011, 20:11
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,752
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: No Comms at the Scrimmage

The FPGA doesn't always change, so the version number for it may well be the same for different updates. Similarly, the DS hasn't been updated all season.

I'd suggest forgetting about the history of the updates and focus on a few fundamental things.

Unplug other dlinks and routers and bridges that may have the team IP or team SSID. The cool thing about wifi is no cables. The downside to wifi is, no cables, and it is very easy to have something next door or elsewhere in the room that is what you are really connecting to.

Is the dlink an AP? What is the SSID of the dlink? What are the frequency settings? Can the laptop see the network from the dlink? Can it connect using the Windows control panel or system bar?

Open the network control panel and check the IP of the wifi and wired NIC. This is the IPV4 settings. Click on the advanced tab and see if other IP addresses are also assigned to the NIC. If so, clear them out so there is only the .5 for LAN and .9 for wifi. Make sure wireless is turned on.

I know this is a lot of stuff to check, but those are some of the things I'd check if I were there.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 20-02-2011, 21:58
Rick Vogl's Avatar
Rick Vogl Rick Vogl is offline
Registered User
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Dec 2002
Rookie Year: 1998
Location: Shelton, CT
Posts: 52
Rick Vogl is on a distinguished road
Re: No Comms at the Scrimmage

Greg,

Here is the situation. Let me lay out the network:

10.2.30.5 Drivers Station
10.2.30.4 DLink DAP-1522 in AP Mode
10.2.30.1 DLink DAP-1522 in Bridge Mode
10.2.30.2 cRio

.5 cabled to .4 can ping .4 & .1 not .2
.5 cabled to .1 can ping .1, .2, & .4
If .4 is removed and .1 is set to AP Mode .5 can ping .1 & .2

Bridge mode is very problematic. Since we can get a network path from the drivers station to the bridge we are suspicious that the problem is with the cRio. However changing some of the wireless settings such as 2.4 to 5 ghz will cause communication problems as well.

We are trying to simulate a FRC competition which is why the AP along with the bridge on the robot is in the mix. We had absolutely no comms at Suffield no matter what we did.

Everything was working on our previous cRio which stopped working, no power to it, not sure why andwe need to talk to NI about it including using the Linksys AP from last year. We eliminated the Linksys since I was have trouble getting the to the DLink bridge using two different Linksys APs. The DLink to Dlink seems to work better.
Reply With Quote
  #8   Spotlight this post!  
Unread 20-02-2011, 22:21
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,846
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: No Comms at the Scrimmage

Did you try resetting just the cRIO when this problem occurs?
Not power cycling anything else.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 20-02-2011, 22:58
Rick Vogl's Avatar
Rick Vogl Rick Vogl is offline
Registered User
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Dec 2002
Rookie Year: 1998
Location: Shelton, CT
Posts: 52
Rick Vogl is on a distinguished road
Re: No Comms at the Scrimmage

We have reloaded the cRio with several different versions of firm ware from 25 to 28. We have not recycled power on the cRio by itself while leaving the rest of the robot active. We are trying a new cRio now borrowed from another team.
Reply With Quote
  #10   Spotlight this post!  
Unread 20-02-2011, 23:32
Rick Vogl's Avatar
Rick Vogl Rick Vogl is offline
Registered User
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Dec 2002
Rookie Year: 1998
Location: Shelton, CT
Posts: 52
Rick Vogl is on a distinguished road
Re: No Comms at the Scrimmage

This is getting interesting. We re-imaged the new cRio to our team ip and plugged the network in DS to AP to BR to cRio. Initially we were only able get from theDS to the BR. We hit the reset button on the cRio and had sucess reaching it. So we wired up the original cRio. No change. DS to AP to BR to cRio NG. DS wired to the bridge we are able to ping the cRio, the BR and the AP. Boggles the mind. Bear in mindthis cRio was used in competition last year although it may be 3 years old, and if we use the old Linksys bridge we have no issues reaching the cRio. Encryption is disabled.
Reply With Quote
  #11   Spotlight this post!  
Unread 20-02-2011, 23:51
Rick Vogl's Avatar
Rick Vogl Rick Vogl is offline
Registered User
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Dec 2002
Rookie Year: 1998
Location: Shelton, CT
Posts: 52
Rick Vogl is on a distinguished road
Re: No Comms at the Scrimmage

One more tidbit of information. Communication to the new cRio will not occur unless the reset button is pressed. A simple power on/off doesnt do the trick.
Reply With Quote
  #12   Spotlight this post!  
Unread 21-02-2011, 15:15
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: No Comms at the Scrimmage

Okay, we are pretty sure we know your problem. However, don't thank me, thank Joe Hershberger (I swear, it's uncanny how fast he processes stuff like this).

Anyway, MAC Address Cloning is probably turned on in your DAP-1522. You've got to turn that off. MAC Address Cloning requires ARP traffic in order to get a MAC address to clone, and since the cRIO boots up first it does its gratuitous ARP way before the DAP is done booting - so, the DAP never sees anything to "clone" until you press the reset button on the cRIO - at that point the cRIO boots up, gives a gratuitous ARP, and the DAP clones that MAC Address and starts communicating.

Again, Thanks to Joe Hershberger if it works.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #13   Spotlight this post!  
Unread 21-02-2011, 15:52
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 307
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: No Comms at the Scrimmage

Thanks for that idea... but... we verified that the MAC address cloning is turned off... several times.

Although it does sound remarkably like what we are seeing... so perhaps there is an issue with what it displays for the settings as opposed to what it is actually set to... if so then all bets are off.
__________________
Reply With Quote
  #14   Spotlight this post!  
Unread 21-02-2011, 20:36
JohnFogarty's Avatar
JohnFogarty JohnFogarty is offline
Trapped under a pile of MECANUMS :P
AKA: @doctorfogarty
FTC #11444 (Garnet Squadron) & FRC#1102 (M'Aiken Magic)
Team Role: Mentor
 
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,580
JohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond repute
Re: No Comms at the Scrimmage

Go and try what I discovered. http://www.chiefdelphi.com/forums/sh...ad.php?t=92505
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
Mentor FRC Team 1102 M'Aiken Magic
"Head Bot Coach" FTC Team 11444 Garnet Squadron
Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker
Reply With Quote
  #15   Spotlight this post!  
Unread 22-02-2011, 09:22
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,846
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: No Comms at the Scrimmage

I recreated one instance where the cRIO and DLink failed to communicate properly and, in addition to the cRIO reset, I was able to simply unplug and replug in the cRIO Ethernet connection to get them talking again.

The symptoms in this particular case were no connectivity between the DLink and cRIO, but the cRIO Ethernet port lights were solid green and yellow, i.e., no packet traffic.

Unplugging and re-connecting to the cRIO port 1 started the yellow traffic light blinking and everything was fine again.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-02-2011 at 09:25.
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 16:52.

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