Go to Post Here we go again with all kinds of speculation. We can never out guess FIRST. - BobC [more]
Home
Go Back   Chief Delphi > Technical > Programming
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-2015, 19:19
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Static IP from .2 to .20?

Background: The Windows mDNS responder is horridly slow and builds take nearly 40 seconds, 3 for the build and 37 to connect to the roboRIO 5 times. To fix this, I switched the order in build.xml from mDNS->USB->Static to Static->mDNS->USB and build times dropped to ~8 seconds.

However, recently, I tried to build and I couldn't get any static IP whatsoever, even though I had router and IP camera communications. I tried reflashing to no avail, only to notice that the reflasher tool said "Robot IP: 10.16.84.20"

When did it switch to .20? Now, SmartDashboard can't connect over static IP as well as the old build tools (half second fix for the build tools, using mDNS on the dashboard causes quite a bit of update rate lag)
  #2   Spotlight this post!  
Unread 20-02-2015, 19:41
weaversam8 weaversam8 is offline
Team Captain
AKA: Sam Weaver
FRC #4534 (Wired Wizards)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wilmington, North Carolina
Posts: 137
weaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to behold
Re: Static IP from .2 to .20?

The DLink will begin assigning IP addresses starting at 10.XX.XX.20. You may be able to log into the online control panel for the roboRIO and force it to take a static address, but this might interfere with the Field Management System at events.
__________________
ORB Haow!

  #3   Spotlight this post!  
Unread 20-02-2015, 20:57
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 112
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
Re: Static IP from .2 to .20?

This year the roboRIO dosent use a static IP, it uses a dynamic IP address, that means when the robot restarts the RIO can have a different IP. If you want it to have the same IP every time you have to either:
a) Set a mac reservation on the router
or
b) Set a static IP on the RoboRIO

That way the RoboRIO will always have the same IP.
  #4   Spotlight this post!  
Unread 20-02-2015, 21:39
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,587
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Static IP from .2 to .20?

Quote:
Originally Posted by Arhowk View Post
Background: The Windows mDNS responder is horridly slow and builds take nearly 40 seconds, 3 for the build and 37 to connect to the roboRIO 5 times. To fix this, I switched the order in build.xml from mDNS->USB->Static to Static->mDNS->USB and build times dropped to ~8 seconds.
Windows doesn't come with an mDNS responder. It might be helpful for you to read through http://wpilib.screenstepslive.com/s/...rio-networking and identify what mDNS responder, what firewall, and how your network is configured.

My build times with mDNS and a large java project (86 classes) are 12 seconds.
  #5   Spotlight this post!  
Unread 20-02-2015, 22:27
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Static IP from .2 to .20?

According to that link,

Code:
NI mDNS Responder - Installed with the NI FRC Update Suite
This laptop is also a driver station so it uses the NI mDNS.

If it's worth anything, command line

Code:
ping roborio-1684.local
stalls for ~6 seconds before actually pinging >.<

firewall has been totally disabled for years now
  #6   Spotlight this post!  
Unread 21-02-2015, 07:20
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,753
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: Static IP from .2 to .20?

Could you post the results of ifconfig and arp -a? I've never seen it take anywhere near that long if the device exists. You should see a ping response within a second.

Greg McKaskle
  #7   Spotlight this post!  
Unread 21-02-2015, 08:05
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Static IP from .2 to .20?

Greg,

I have a question regarding mDNS and the LabVIEW dashboard.

We're trying to send some data from the dash to the robot over a UDP connection. In the past, we've done this using the robot's static IP address and have had no issues. This year, we've not had much success unless we use a workaroung which isn't going to work at competitions.

I'll apologize in advance for not being able to post code or look for minute details as I'm at home today and our team's computers are at the school.

Here is what we've done:

The main strategy is to use the part of the dashboard where it binds the smart dashboard to capture the IP address. In Loop 3 in the case structure where Bind Controls to Smart Dashboard.vi is located, we pull the robot IP address in the TRUE case and store it to a global variable. We use this global variable as the IP address in our UDP loop.

Here's the issue: the global variable that is supposed to contain the IP address comes back as an empty string around 80% of the time. We've been working around the issue by figuring out the IP address manually, but that won't work for competitions. Any suggestions?
__________________
-
An ounce of perception is worth a pound of obscure.
  #8   Spotlight this post!  
Unread 21-02-2015, 09:04
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,753
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: Static IP from .2 to .20?

No need to apologize.

The dashboard relies on the DS to learn what the robot IP address is. It seemed like a good idea to not have the DB and DS looking at different robots. The notifier is necessary because the binding otherwise won't return. Storing the value in a local or global in the top loop or the third loop is a fine way to notify the rest of the DB of the robot IP.

So the way the IP sharing is supposed to work is for the robot IP and camera IP to be sent to the DB over TCP. The error handling for the DB TCP connection wasn't as good as it should have been, so I've seen some issues where the connection simply doesn't exist. The update last week corrected the known issues. PM me when you have access to the code, as I can tell you how to debug and improve it.

Greg McKaskle
  #9   Spotlight this post!  
Unread 21-02-2015, 11:57
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Static IP from .2 to .20?

Quote:
Originally Posted by Greg McKaskle View Post
Could you post the results of ifconfig and arp -a? I've never seen it take anywhere near that long if the device exists. You should see a ping response within a second.

Greg McKaskle
Note this is with no roboRIO (or any mDNS device attached for that matter) present, since our team only has one roboRIO currently in bag.

Code:
C:\Users\Arhowk>ifconfig
'ifconfig' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Arhowk>arp -a

Interface: 10.80.45.13 --- 0xc
  Internet Address      Physical Address      Type
  10.80.45.1            00-27-0d-7b-72-7f     dynamic
  10.80.45.255          ff-ff-ff-ff-ff-ff     static
  192.168.2.1           00-27-0d-7b-72-7f     dynamic
  224.0.0.2             01-00-5e-00-00-02     static
  224.0.0.22            01-00-5e-00-00-16     static
  224.0.0.251           01-00-5e-00-00-fb     static
  224.0.0.252           01-00-5e-00-00-fc     static
  224.0.0.253           01-00-5e-00-00-fd     static
  239.192.152.143       01-00-5e-40-98-8f     static
  239.255.255.250       01-00-5e-7f-ff-fa     static
  255.255.255.255       ff-ff-ff-ff-ff-ff     static

C:\Users\Arhowk>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : Arhowk
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : Lapeerschools.org

Wireless LAN adapter Wireless Network Connection:

   Connection-specific DNS Suffix  . : Lapeerschools.org
   Description . . . . . . . . . . . : Intel(R) Centrino(R) Wireless-N 100
   Physical Address. . . . . . . . . : 78-92-9C-8B-35-9A
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::2946:6c61:d614:24fe%12(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.80.45.13(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Saturday, February 21, 2015 11:50:24 AM
   Lease Expires . . . . . . . . . . : Sunday, February 22, 2015 11:50:24 AM
   Default Gateway . . . . . . . . . : 10.80.45.1
   DHCP Server . . . . . . . . . . . : 1.1.1.1
   DHCPv6 IAID . . . . . . . . . . . : 309891740
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-16-F3-49-42-C8-60-00-3A-9F-B2

   DNS Servers . . . . . . . . . . . : 10.16.6.201
                                       10.16.6.202
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Atheros AR8151 PCI-E Gigabit Ethernet Con
troller (NDIS 6.20)
   Physical Address. . . . . . . . . : C8-60-00-3A-9F-B2
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.Lapeerschools.org:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : Lapeerschools.org
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{89EC4FD1-FB07-4BDB-981F-C8D057186120}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 9:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

C:\Users\Arhowk>
  #10   Spotlight this post!  
Unread 21-02-2015, 12:01
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,855
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: Static IP from .2 to .20?

It looks like this is connecting through your school's WiFi, and the school uses the same 10. address range.

Any reason why you aren't connecting directly to the robot DLink SSID 1684?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #11   Spotlight this post!  
Unread 21-02-2015, 12:03
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Static IP from .2 to .20?

Quote:
Originally Posted by Mark McLeod View Post
It looks like this is connecting through your school's WiFi, and the school uses the same 10. address range.

Any reason why you aren't connecting directly to the robot DLink SSID 1684?
As stated before, the robot is currently in the bag.

Won't be able to get data like that with the robot for a week or so.

If it's any help, our rookie team's driver station (x86 compared to my x64, Windows 8 compared to my windows 7, decently different laptops) also has the same hangtime.
  #12   Spotlight this post!  
Unread 21-02-2015, 12:47
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,855
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: Static IP from .2 to .20?

Sorry, we have several DLink's left to test with after one got bagged with our robot.

Does your rookie team work in the same space as your team?
Is it a common WiFi environment or a common school system that might utilize similar AP setups?

It looks like you might be describing troubles only using the direct USB connection though.
Do you have the same issues with USB, Ethernet and wireless?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-02-2015 at 12:53.
  #13   Spotlight this post!  
Unread 21-02-2015, 12:57
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Static IP from .2 to .20?

Quote:
Originally Posted by Mark McLeod View Post
Sorry, we have several DLink's left to test with after one got bagged with our robot.

Does your rookie team work in the same space as your team?
Yes
Quote:
Is it a common WiFi environment or a common school system that might utilize similar AP setups?
I don't understand what you're asking... though my next answer might help
Quote:
It looks like you might be describing troubles only using the direct USB connection though.
Do you have the same issues with USB, Ethernet and wireless?
Wireless works fine, normal ~200ms connection time to robot (ethernet ~100ms). USB has never worked for me, not since day 1, I've used exclusively Ethernet/wireless.
  #14   Spotlight this post!  
Unread 21-02-2015, 12:57
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,587
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Static IP from .2 to .20?

Quote:
Originally Posted by Greg McKaskle View Post
Could you post the results of ifconfig and arp -a?
ipconfig for windows. Invariably I use the wrong one.
  #15   Spotlight this post!  
Unread 21-02-2015, 14:00
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,753
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: Static IP from .2 to .20?

Oops. Yeah, I meant ipconfig, but auto-correct fixed it for me.

I was wondering if there were many interfaces up and whether the DNS server may be sent the .local name and be taking quite awhile to give up and revert to mDNS.

I think the thing I'd do is to disable the wifi and see if the USB timing changes. If that helps, you at least know why it takes so long. I'm not sure how to get the .local to go to mDNS immediately.

Greg McKaskle
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 21:07.

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