Go to Post A good driver will always win over a good robot. - Mike Norton [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 20-01-2011, 15:26
2611.Sparky 2611.Sparky is offline
Registered User
FRC #2611
 
Join Date: Dec 2010
Location: Jackson
Posts: 7
2611.Sparky is an unknown quantity at this point
Wireless Networking Problems

We're having problems with our wireless networking. The classmate looses communication with the robot after aproximently 25 seconds. We have double checked all the settings. The bridge ip:10.26.11.1, the router ip:10.26.11.4, the classmate ip:10.26.11.5, the robot ip is automatically set by the crio imager to 10.26.11.2, and the security is set to wpa-personal, Cypher type is AES, and the passphrase is 2611WPAKEY for both the router and the wireless bridge. For troubleshooting purposes, I hooked up one laptop(10.26.11.6) to our router, and another laptop(10.26.11.7) to the bridge. I then started two command prompts on both computers and started an auto ping(ping /t 10.26.11.X) to both the router and bridge. When the laptop connected to the bridge pinged the bridge, there was 0% packet loss with an average time of 1ms. When the laptop connected to the router pinged the router, it produced the same effect. However, when the laptop connected to the router pinged the bridge, or the laptop connected to the bridge pinged the router, results were intermintant. Here are some of the results(not necessarily in order, this has been going on for several days):
1: Both laptops pinging the opposite device(router's laptop pinging bridge)(robot and classmate disconnected). There would be successful returns 37 times with an average of 2ms, then 7 timeout's. It would then start over.
2: The laptop connected to the router pinging the bridge(robot and classmate disconnected) returned 100% packet loss while the laptop connected to the bridge pinging the router returned 0% packet loss.
3: Both laptops pinging the opposite device both returned 0% packet loss. When robot connected to bridge w/o classmate attached, nothing changed. When classmate connected to router w/o robot connected, nothing changed. When both were attached, it started returning 100% packet loss.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2011, 17:55
2611.Shooter 2611.Shooter is offline
Programmer
AKA: Andrew Lavery
FRC #2611 (Vectors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: jackson, MI
Posts: 43
2611.Shooter is infamous around these parts2611.Shooter is infamous around these parts
Re: Wireless Networking Problems

It would be really great if we could get a response on this! thanks!
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2011, 20:25
Garten Haeska's Avatar
Garten Haeska Garten Haeska is offline
Registered User
AKA: Garty
FRC #2861 (Infinity's End)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Lake City, MN
Posts: 219
Garten Haeska has a spectacular aura aboutGarten Haeska has a spectacular aura about
Re: Wireless Networking Problems

You have a major problem being that you only use the d link router with your classmate in "AP" mode. This year they are getting rid of the linkseys bridge and router.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2011, 10:24
2611.Sparky 2611.Sparky is offline
Registered User
FRC #2611
 
Join Date: Dec 2010
Location: Jackson
Posts: 7
2611.Sparky is an unknown quantity at this point
Re: Wireless Networking Problems

I'm not following you.
We had the d-link in bridge mode the whole time.
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2011, 10:35
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Wireless Networking Problems

Quote:
Originally Posted by 2611.Sparky View Post
I'm not following you.
We had the d-link in bridge mode the whole time.
As Garten said, that is your problem.

Do you have the How to Configure… documents? There should be no bridge in the system anywhere if you set things up as instructed. The D-Link DAP-1522 will be your wireless access point, and your Driver Station computer will connect to it wirelessly.

Don't use last year's router. Don't use last year's bridge. Use only this year's access point, installed on the robot.
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2011, 13:41
pilum40 pilum40 is offline
Steve Miller-Coach-Team 3355
AKA: Steve Miller
FRC #3355 (Bigg Redd)
Team Role: Coach
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Arlington, Texas
Posts: 141
pilum40 has much to be proud ofpilum40 has much to be proud ofpilum40 has much to be proud ofpilum40 has much to be proud ofpilum40 has much to be proud ofpilum40 has much to be proud ofpilum40 has much to be proud ofpilum40 has much to be proud ofpilum40 has much to be proud of
Re: Wireless Networking Problems-Now where we get another DAP

My team apparently "fried" our D-Link DAP-1522. Will we get dinged (bumped out during inspection) by having to purchase another not on the original KOP?
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2011, 13:44
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,713
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: Wireless Networking Problems

You can buy replacements and spares of everything in the KOP.
The D-Link just has to be the same model.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2011, 17:53
2611.Sparky 2611.Sparky is offline
Registered User
FRC #2611
 
Join Date: Dec 2010
Location: Jackson
Posts: 7
2611.Sparky is an unknown quantity at this point
Re: Wireless Networking Problems

Thanks, that worked. It works without the router until we hook the camera up to the c-rio. When the camera is connected, the connection only lasts about 7 seconds. We've tried both straight through cables and cross-over cables. Both returned the same result.
Reply With Quote
  #9   Spotlight this post!  
Unread 27-01-2011, 19:09
CeeCee McShane's Avatar
CeeCee McShane CeeCee McShane is offline
Registered User
FRC #3585 (Rogue Robots of 4-H)
Team Role: Coach
 
Join Date: Nov 2010
Rookie Year: 2011
Location: New Hampshire
Posts: 10
CeeCee McShane is an unknown quantity at this point
Re: Wireless Networking Problems

okay, so our d-link will not stay connected to let us load the program to the crio. it connects for approximately 20-25 seconds then we lose connection. any suggestions. we have followed all instructions.
__________________
Carol
FIRST Team 3585 - The Rogue Robots of 4-H
“Faith is taking the first step even when you can't see the whole staircase.” ― Martin Luther King Jr.
Reply With Quote
  #10   Spotlight this post!  
Unread 28-01-2011, 13:16
jtechau jtechau is offline
Registered User
AKA: Jeff Techau
FRC #1388 (Eagle Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2006
Location: Arroyo Grande, CA
Posts: 21
jtechau is just really nicejtechau is just really nicejtechau is just really nicejtechau is just really nice
Re: Wireless Networking Problems

We tried wireless communication with the robot as per the FRC instructions last night for the first time. It worked for a short while, then stopped working. We eventually concluded that the apparent cause of problems was that the laptop's ethernet and wireless adapters were both set to the required 10.xx.xx.5 IP address - and even when one of the adapters (LAN or wireless) was disabled, this was apparently causing problems.

What eventually worked for us was to set the wireless adapter back to DHCP, and use the LAN adapter connected to the Linksys router, with the robot's DAP-1522 set to bridge mode. (Falling back to last year's known-good configuration.)

I disagree with those who claim that a router is the cause of problems. It should work that way - in fact, it has to work that way in the competition setup. It should work either way - connecting the DS through the router with the DAP-1522 set as bridge, or directly to the DAP-1522 set as AP.

We still want to use the recommended setup - DAP-1522 as the AP/router, with the laptop directly connecting to the robot. I'm still uncertain how the DS software manages network connections, though. It cannot set both/all network adapters to the same IP address. So how does it choose between the LAN adapter and the wireless adapter? Or do we have to manually set up the network configuration?

I've heard that the DS software has been improved this year in regards to IP configuration, specifically for Win7. We're still using XP on our development platform (with this year's DS, etc). Can anyone enlighten us as to how the DS manages IP configurations this year?
Reply With Quote
  #11   Spotlight this post!  
Unread 28-01-2011, 13:38
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,713
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: Wireless Networking Problems

Quote:
Originally Posted by jtechau View Post
So how does it choose between the LAN adapter and the wireless adapter? Or do we have to manually set up the network configuration?
This year's Driver Station allows you to manually select the NIC used.
It's on the Setup tab.

Outside that, the DS will continue to reset the last NIC specified, so if you went and did another one by hand, then when you restarted the DS application you could end up with two set to the same IP address.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #12   Spotlight this post!  
Unread 28-01-2011, 14:01
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Wireless Networking Problems

Quote:
Originally Posted by jtechau View Post
I disagree with those who claim that a router is the cause of problems.
It's not the router per se that is giving you grief. It's the fact that you disregarded the explicit setup instructions and ended up with a configuration that isn't anything like what teams are expected to be using for development. All that manual fiddling about without a script makes it easy to get something a little bit off.

If you want to use DHCP in order to avoid IP conflicts, you can tell the D-Link DAP to do that for you. It's just one checkbox. Once our networking came up and functioned properly (which it did immediately with no fuss when we followed the directions), we turned on DHCP and made a couple of tweaks to the configuration. Specifically, we made it so our programming laptop would always receive 10.0.45.6 as its address and we would be able to forward Dashboard information to it easily.

Quote:
Can anyone enlighten us as to how the DS manages IP configurations this year?
It manages them quite well.
Reply With Quote
  #13   Spotlight this post!  
Unread 29-01-2011, 05:27
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: Wireless Networking Problems

I'll try to review how the DS manages IPs, but there are so many configurations, that it may be necessary for you to describe which NICs you are using and additional routers and such.

On startup, the DS uses its ini settings to identify one wired and one wireless NIC that it may be controlling. Unless a NIC is set to be manually controlled, the DS compares the current IP with the one computed from the team number. If they do not match, it will ADD the IP being computed. The computed NIC for wired and wireless differ in the last byte, 5 and 9 I believe.

The ADD behavior is new this year. If a NIC is set to DHCP and a new IP is added, the resulting NIC configuration has only one IP assigned. If the NIC was already manually assigned, the resulting configuration will have two NICs. This can be seen with ipconfig or using the Advanced button in the IPv4 properties dialog.

A few other points. If the Setup>>NIC button is used to change NIC, the computed IP is deleted from the old and added to the new. If the team number is changed, the old computed address is deleted from the NICs and the new is added.

The DS for last season SET the IP. This season it uses ADD and DELETE in the hopes that it would allow a computer to be used for FRC DS without being dedicated for it. Since DHCP is so common, in most cases, nothing is changed. If you are making manual IP assignments, but have not set the NIC to manual, you will wind up with multiple IPs assigned. At this point, I'm not sure whether add/delete was an improvement.

Greg McKaskle
Reply With Quote
  #14   Spotlight this post!  
Unread 30-01-2011, 08:45
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,070
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Wireless Networking Problems

Here's what worked for my team.
  1. Follow the reset procedure in the How-to document. Don't connect the cRIO or the classmate to the Router yet.
  2. Then, take a computer that's not the classmate and set it's IP address to 192.168.0.51
  3. Connect that computer and only that computer to the Netgear router in AP mode via Ethernet cable. Open Internet Explorer (other browsers have issues), go to 192.168.0.50. You should get the router login page. Configure your Router as described in the How-to document.
  4. Enable the wireless card on the classmate (Fn+F1 on the 2010 version) and connect to the network you created. You should be able to drive remotely. I didn't have to do this, but you may have to change your NIC in the DS software.

Access point mode is used for testing, while bridge mode is only used for competition.

Note: We had issues programming wirelessly from another computer, so we connected it via ethernet cable to the router. We didn't have any issues other than that and I'm not even sure why we went back to cable only.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)


Last edited by cgmv123 : 30-01-2011 at 08:57.
Reply With Quote
  #15   Spotlight this post!  
Unread 30-01-2011, 19:19
jtechau jtechau is offline
Registered User
AKA: Jeff Techau
FRC #1388 (Eagle Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2006
Location: Arroyo Grande, CA
Posts: 21
jtechau is just really nicejtechau is just really nicejtechau is just really nicejtechau is just really nice
Re: Wireless Networking Problems

Thanks Mark and Greg for your explicit and helpful replies.

Quote:
Originally Posted by Alan Anderson View Post
It's not the router per se that is giving you grief. It's the fact that you disregarded the explicit setup instructions and ended up with a configuration that isn't anything like what teams are expected to be using for development. All that manual fiddling about without a script makes it easy to get something a little bit off.
I can only speak for my team, but we didn't "disregard" any instructions. When we explicitly followed the explicit instructions, it didn't work. (That is, we did everything the script said, and nothing it said not to. Unless it was listed in a document other than the Driver Station and Radio setup guides.) We therefore reverted to last year's configuration, which worked for us.

Thanks to explicit and helpful replies, I expect that we'll have no more problems.

We did have another motivation to try the "competition" setup. We had some concern whether our robot radio was functioning in bridge mode, as we saw some irregularities, and wanted to test it before competition.
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 04:00.

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