Go to Post Thanks, that clears things up a lot, and should probably have been obvious. - Branden Ghena [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2011, 21:09
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: Aiken, SC
Posts: 1,582
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
WiFi/Bridge/CRIO Boot Conflict

Sooooo. ever had one of those moments at competitions where you turn your robot on and it doesn't connect to the field control system?
I know why.
This year's new D-Link Bridge boots up slower than the CRIO. The CRIO boots completely and then the Ethernet port is already configured. When the bridge then tries to connect to the CRIO and the wifi. It Can't. So I left the main robot power on and unplugged the power from the CRIO while the Bridge was still on. And the Bridge connected to the CRIO and WI-FI almost immediately.
This is a real problem. Has anyone else experienced it and is there a way to fix it without just having a hard switch wired to the CRIO to make sure the bridge boots first.
THANKS!
John Fogarty
__________________
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, FRC 4901
2013 FTC World Championship Guest Speaker
  #2   Spotlight this post!  
Unread 20-02-2011, 21:14
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: WiFi/Bridge/CRIO Boot Conflict

That is an interesting theory. Our robot never seemed to have that problem; our only FMS issue was that we had an outdated image on our RIO. Anyway, our dlink's slow boot time never seemed to effect connectivity.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
  #3   Spotlight this post!  
Unread 20-02-2011, 21: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: WiFi/Bridge/CRIO Boot Conflict

Quote:
Originally Posted by John_1102 View Post
This year's new D-Link Bridge boots up slower than the CRIO.
Ewwww, that would be a problem. Is that because the DAP-1522 is set to "Auto" mode instead of "AP"? "Auto" mode waits 30 seconds before it "boots" looking for a DHCP server (so it can swap itself to bridged if it can find one). That could be the source of the discrepancy here.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
  #4   Spotlight this post!  
Unread 20-02-2011, 21:21
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Re: WiFi/Bridge/CRIO Boot Conflict

Our 2011 robot works fine with the bridge booting up and communicating every time. Nice to know not to use auto-mode due to that delay timer.
  #5   Spotlight this post!  
Unread 20-02-2011, 21:35
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: Aiken, SC
Posts: 1,582
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: WiFi/Bridge/CRIO Boot Conflict

Quote:
Originally Posted by Danny Diaz View Post
Ewwww, that would be a problem. Is that because the DAP-1522 is set to "Auto" mode instead of "AP"? "Auto" mode waits 30 seconds before it "boots" looking for a DHCP server (so it can swap itself to bridged if it can find one). That could be the source of the discrepancy here.

-Danny
Ours was set into Bridge mode. SO yeah. STILL A BIG PROBLEM.
__________________
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, FRC 4901
2013 FTC World Championship Guest Speaker
  #6   Spotlight this post!  
Unread 20-02-2011, 21:42
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,904
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: WiFi/Bridge/CRIO Boot Conflict

With some robots there was a similar problem last year, too.
You can use the reset button on the cRIO itself to cycle it, rather than pulling power.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #7   Spotlight this post!  
Unread 20-02-2011, 22:11
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: WiFi/Bridge/CRIO Boot Conflict

Quote:
Originally Posted by Mark McLeod View Post
With some robots there was a similar problem last year, too.
Ugh. The underlying "problem" is that the cRIO only attempts to acquire a DHCP address at boot-up; if it doesn't find a DHCP server, it negotiates/acquires a link-local address. There is a way to prevent this from happening - there's a token you can add to an INI file on the cRIO that will tell the cRIO that if it cannot find a DHCP server it will reboot itself and try again up to 3 times.

FTP to the target, and find the following file in the root directory: ni-rt.ini

In the file, you'll find a section called, "[TCP_Stack_Config]". Under that section, add the following token:

[TCP_Stack_Config]
Halt_On_Error=TRUE


Yup, I know, it's poorly named, but for legacy reasons the name has lived on way past its deserved lifespan. Anyway, this will cause the cRIO to reboot up to 3 times looking for successful communication with a DHCP server. After 3 times, that's it, you must reboot the cRIO yourself (via power or reset button). Give it a shot?

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
  #8   Spotlight this post!  
Unread 20-02-2011, 22:52
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: Aiken, SC
Posts: 1,582
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: WiFi/Bridge/CRIO Boot Conflict

I'll make sure that this problem is well known at the palmetto regional this year. If the reset button solves the problem than we may save alot of time at the competitions.
Thanks!
__________________
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, FRC 4901
2013 FTC World Championship Guest Speaker
  #9   Spotlight this post!  
Unread 20-02-2011, 22:57
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,171
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: WiFi/Bridge/CRIO Boot Conflict

This does not make sense to mew. The cRIO has no need of a DHCP server. The IP address is statically defined. There must be something else going on.
  #10   Spotlight this post!  
Unread 20-02-2011, 23:31
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: WiFi/Bridge/CRIO Boot Conflict

Quote:
Originally Posted by wireties View Post
The cRIO has no need of a DHCP server. The IP address is statically defined. There must be something else going on.
<shakes cobwebs out of brain> Yeah, you're right. I completely stoned on the fact that it's a static IP address - even if the DAP comes up last, there should absolutely be no issue unless the software running on the cRIO gets into a funky state without a network.

If you unplug the network connection from the cRIO, then reboot the cRIO, then after a couple minutes plug in the ethernet connection, can you talk to the cRIO? You should be able to ...

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
  #11   Spotlight this post!  
Unread 20-02-2011, 23:42
CoachPoore CoachPoore is offline
Registered User
AKA: Noel Poore
FRC #1519 (Mechanical Mayhem)
Team Role: Coach
 
Join Date: Jun 2008
Rookie Year: 2006
Location: Mont Vernon, NH
Posts: 30
CoachPoore has a spectacular aura aboutCoachPoore has a spectacular aura about
Send a message via AIM to CoachPoore
Re: WiFi/Bridge/CRIO Boot Conflict

We've been using the new robot radio in bridge mode all build season so that we have been using the same networking configuration (on both the robot and driver station) that we expect to compete with. The issue we have seen is that the new radio takes about 40s to bridge to another network after you apply power. We've been rebooting the cRIO from the driver station to avoid power cycling the robot and hence the radio. That's clearly not an option on the field, but it saves a lot of time in on the practice field.

We saw significant delays which I believe were bridging related at the week 0 event in Nashua, NH on Saturday as well.

Noel
__________________
2011 Granite State Regional Winners with teams 175 and 176
2010 Granite State Regional Winners with teams 1073 and 1058
2010 Granite State Regional Innovation In Controls Award Winners
2010 North Carolina Regional Engineering Excellence Award Winners
2010 North Carolina Regional Finalists with teams 1772 and 1741
  #12   Spotlight this post!  
Unread 21-02-2011, 00:58
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: WiFi/Bridge/CRIO Boot Conflict

We've never had a problem this year, but then again we've been using AP mode.

I'm sure that the field personnel are aware of this problem, if it exists, and will know what to check/reboot if your robot doesn't connect.

For a slightly off-topic question, am I right in saying that bridge mode connects to one wireless source and Access Point mode connects to many wireless sources? But the router will still communicate with a second wired source in bridge mode, like the camera, correct?
  #13   Spotlight this post!  
Unread 21-02-2011, 01:27
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: WiFi/Bridge/CRIO Boot Conflict

Quote:
Originally Posted by WizenedEE View Post
I'm sure that the field personnel are aware of this problem, if it exists, and will know what to check/reboot if your robot doesn't connect.
Over the course of my FRC experience, I've learned to assume nothing.

Quote:
Originally Posted by WizenedEE View Post
For a slightly off-topic question, am I right in saying that bridge mode connects to one wireless source and Access Point mode connects to many wireless sources?
I prefer to think of a client/server model instead. Look at the DAP-1522 as two devices; a wired switch connected to a wireless device. In the Access Point Mode, the wireless device is nothing more than just a glorified wireless router (server) - it acts as a DHCP server, provides a wireless access point (broadcasts an SSID that clients can connect to) and clients connect through it to get DHCP addresses and talk to other devices on the network. In Bridge Mode the wireless device is nothing more than a wireless ethernet cable (client) - it provides a wireless "bridge" from its switch component (which your cRIO and camera are sitting on) to a single wireless network (the field network) like a "wireless ethernet cable" from the DAP-1522 to the field network. In competition, your classmate will hard-wire into the field network, and the "bridge" mode of the DAP-1522 will connect your robot's local network to the field network. This way the field software controls everything going into and out of your robot. This is a crude description, but accurate in my opinion.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418

Last edited by Danny Diaz : 21-02-2011 at 01:55.
  #14   Spotlight this post!  
Unread 21-02-2011, 01:48
Geek 2.0 Geek 2.0 is offline
Registered User
FRC #0107
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2008
Location: Holland, MI
Posts: 120
Geek 2.0 will become famous soon enough
Re: WiFi/Bridge/CRIO Boot Conflict

Quote:
Originally Posted by Danny Diaz View Post
Over the course of my FRC experience, I've learned to assume nothing.


Yes, in a manner of speaking; think of a server/client model instead. Think of the Access Point Mode as being nothing more than just a glorified wireless router (server) - it acts as a DHCP server, provides a wireless access point (broadcasts an SSID that clients can connect to) and clients connect through the router to get DHCP addresses and talk to other devices on the network. Think of the Bridge mode instead as a wireless ethernet cable (client) - it doesn't provide any wireless services for others to connect to or use, but instead looks for wireless networks to connect to; as well as providing services as a local "switch", it provides a wireless "bridge" from its network (which your cRIO and camera are sitting on) to a single wireless network (the field network) like a "wireless ethernet cable" from the DAP-1522 to the full-service network you're connecting to. In competition, your classmate will hard-wire into the field network, and the "bridge" mode of the DAP-1522 will connect your robot's local network to the field network. This way the field software controls everything going into and out of your robot. This is a crude description, but accurate in my opinion.

-Danny
As far as I know, the DAP-1522 has no DHCP. It was very annoying for us because the computers we have access to do not allow us to set a static IP, making programming a nightmare. Eventually we were allowed static IPs.
  #15   Spotlight this post!  
Unread 21-02-2011, 01:57
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: WiFi/Bridge/CRIO Boot Conflict

Quote:
Originally Posted by Geek 2.0 View Post
As far as I know, the DAP-1522 has no DHCP. It was very annoying for us because the computers we have access to do not allow us to set a static IP, making programming a nightmare. Eventually we were allowed static IPs.
Well, okay, it CAN provide DHCP if enabled (we just don't enable it in competition).

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Closed Thread


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 19:04.

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