Go to Post Just a modest request for folks NOT to put 3000-pixel-wide pictures inline in the forum. A link to the big picture works just as well while keeping the text readable. Thanks. - Rick TYler [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 09-02-2013, 22:07
AutoBotAM AutoBotAM is offline
Registered User
AKA: Christian Reese
FRC #2077 (Laser Robotics (Laserbots))
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Wisconsin
Posts: 34
AutoBotAM is an unknown quantity at this point
Strange Driver Station bug?

We'll have the driver station all connected and we drive around the robot and all that. But when we turn the robot off, then back on and connect the laptop to the router again as usual, driver station won't make the connection. We have to restart the driver station program in order to get a connection. Is this normal? It should automatically detect the connection and enable, right?
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan
  #2   Spotlight this post!  
Unread 10-02-2013, 07:31
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,906
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: Strange Driver Station bug?

It should automatically Disable, but the connection light should go green.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 10-02-2013, 09:37
AutoBotAM AutoBotAM is offline
Registered User
AKA: Christian Reese
FRC #2077 (Laser Robotics (Laserbots))
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Wisconsin
Posts: 34
AutoBotAM is an unknown quantity at this point
Re: Strange Driver Station bug?

That's the thing. If I keep driver station on, and turn the robot off and on, the 2077 access point connects, but the Robot Code light and Communication light stay red. It is only when I close the driver station program and re-open it that the lights go green.

Note that we are not using the classmate, just a Windows 7 laptop. I have disabled Windows Firewall and Real-time antivirus. This laptop is capable of connecting to the internet as well as the robot.

Our router is set with an access key. We are using the Dlink DAP 1522.

Anything I can do to troubleshoot this? I believe we have the latest version of driver station.
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan
  #4   Spotlight this post!  
Unread 10-02-2013, 09:55
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,906
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: Strange Driver Station bug?

Sounds like the Driver Station can reach the robot's DLink, but can't get round-trip traffic to the cRIO after a reboot.
So the network path is getting confused on the Driver Station laptop.

You might try disabling all other NICs, like the one you're using for Internet, and checking for excess IP addresses assigned to the wireless NIC connecting to the DLink. Check for excess IPs under Advanced on the NIC window where you check or set the IP address.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 10-02-2013, 10:00
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,750
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Strange Driver Station bug?

Does your driver statio automatically connect to the dlink SSID?

If you go to network connections, right click on the Network with your team number, connect, and click on connect automatically.
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
  #6   Spotlight this post!  
Unread 10-02-2013, 10:15
AutoBotAM AutoBotAM is offline
Registered User
AKA: Christian Reese
FRC #2077 (Laser Robotics (Laserbots))
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Wisconsin
Posts: 34
AutoBotAM is an unknown quantity at this point
Re: Strange Driver Station bug?

Okay, I'll check for excess IPs next time I get on. Note that we're only using one NIC, "Wireless Network Connection", both to connect wirelessly to the school internet and to the robot's d-link. To connect to the internet, I made a little script on the desktop:

Code:
@echo off
:start
for /f %%V in ('netsh wlan connect KM-Wireless') do set TEST=%%V
if %TEST% neq Connection 2>nul (pause|echo+Could not connect to access point KM-Wireless. Press a key to try again, or close this command line window to end. . .)
if %TEST% neq Connection goto start
netsh interface ip set address "Wireless Network Connection" dhcp
Then to connect back to the robot, we simply restart driver station, which automatically sets the static IPs for the NIC and ethernet. (Please note that we haven't run this batch script, we simply do the procedure I described, and get the problem I described.)

We have access point 2077 set to connect automatically. We do not have KM-Wireless set to connect automatically.
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan
  #7   Spotlight this post!  
Unread 12-02-2013, 18:57
AutoBotAM AutoBotAM is offline
Registered User
AKA: Christian Reese
FRC #2077 (Laser Robotics (Laserbots))
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Wisconsin
Posts: 34
AutoBotAM is an unknown quantity at this point
Re: Strange Driver Station bug?

I checked numerous times and there is only ever one IP, no excess IPs.

I actually did get the bug to go away, by switching the auto-start Dashboard in Driver Station to LabView, instead of Java, which essentially disables auto-starting SmartDashboard. We just start it manually now.

The bug comes back in the same way sometimes, though, but the problem occurs fairly randomly. Another similar problem that happens at the same time is that the SmartDashboard will not connect to our Axis Camera. I can load the webpage and find that when SmartDashboard is on, the framerate is a lot slower. But sometimes when the wireless is good, SmartDashboard shows the camera, and driver station works normally. I'm pretty sure its just that both programs are fairly intolerant of wireless network underperformance.

So far I have swapped all the ethernet cables, which didn't change anything. I also connected the router and axis camera using their wall-power connectors, problem still didn't change. This eliminates the power source being bad, as well as the ethernet cables being bad. I also connected the laptop directly to the Axis camera via ethernet, and SmartDashboard streamed the camera feed effectively. This suggests a wireless issue to me.

This narrows down to either the laptop or the router. I can't see how the laptop could be the issue since this problem seemed to start randomly (we had the robot sitting on, and the camera feed was going to SmartDashboard normally, but then all of a sudden the camera feed died on the SmartDashboard. We could still access the axis setup page, but the feed was generally slower. This is also when the Driver Station started to misbehave as I've described). Perhaps the laptop has some Windows service that starts routinely and messes some things up, making it seem random, but I doubt it. I think it is most likely the wireless environmental conditions changing and causing network lag, causing Driver Station and SmartDashboard issues.

My next plan of attack tomorrow is connecting the laptop directly to the router via ethernet, with the camera and cRIO connected as well, on the same network. I'll also try swapping connected ethernet ports. If that works, then it would more emphasize either a wireless connection issue, or (possibly) a laptop configuration issue. If it still DOESN'T work, that would suggest an issue in the router itself, which is what I'd prefer not to see. I'll also try using a different laptop. If that works better than the other one, that would suggest a laptop config issue.

Has anyone else here had similar experiences to this? Any advice anyone would like to give so far?
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan
  #8   Spotlight this post!  
Unread 12-02-2013, 19:54
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,906
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: Strange Driver Station bug?

Have you throttled the video stream from the camera?
The DLink does have a 7Mb/s bandwidth limit to emulate the bandwidth limit on the real field.
A camera video stream running at full resolution/30fps/no compression sucks up about 15Mb/s.
You'd see an impact on the Dashboard, but not on the drivability of the robot.

The FRC Bridge Configuration tool sets the artificial bandwidth limit as well as Quality of Service to favor command packets over Dashboard traffic.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-02-2013 at 19:56.
  #9   Spotlight this post!  
Unread 12-02-2013, 20:03
AutoBotAM AutoBotAM is offline
Registered User
AKA: Christian Reese
FRC #2077 (Laser Robotics (Laserbots))
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Wisconsin
Posts: 34
AutoBotAM is an unknown quantity at this point
Re: Strange Driver Station bug?

It is full res and 30 FPS, and I'm not sure about compression. What settings would you recommend if we wanted two camera streams, from two different cameras, through one router?

Oh, and another symptom for the Driver Station is that sometimes it takes over 30 seconds to start up. Yet other times it takes less than 5 seconds. It is always a random file it pauses on when it takes longer.
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan
  #10   Spotlight this post!  
Unread 12-02-2013, 20:25
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,906
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: Strange Driver Station bug?

You can play with the camera settings yourself using the default Dashboard.
http://www.chiefdelphi.com/forums/at...chmentid=13851
That way you can see how visually appealing the video stream is as you play with the settings.
It doesn't give true bandwidth, like transmission overhead, just the bandwidth based on the size of the video itself.

You need to at least hold the combined video stream under 5Mb/s, but the less the better because higher rates start impacting your packet transit times.

Maybe 50% compression and 15fps, but I'd have to play.
Last year we used two cameras, but kept the bandwidth to about 1Mb/s for the combined video streams.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #11   Spotlight this post!  
Unread 12-02-2013, 20:28
AutoBotAM AutoBotAM is offline
Registered User
AKA: Christian Reese
FRC #2077 (Laser Robotics (Laserbots))
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Wisconsin
Posts: 34
AutoBotAM is an unknown quantity at this point
Re: Strange Driver Station bug?

Thanks, didn't know the default dashboard was capable of that. Is it possible for it to switch between two camera IPs? Or does it only work on the 10.20.77.11 default?
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan
  #12   Spotlight this post!  
Unread 12-02-2013, 21:05
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,756
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: Strange Driver Station bug?

The default dashboard is just a built EXE from the LV template dashboard. If you want two image displays, you would need to make one from the template and drag a copy of some controls, indicators, and a loop on the diagram.

Greg McKaskle
  #13   Spotlight this post!  
Unread 13-02-2013, 02:32
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Re: Strange Driver Station bug?

We've had this exact same problem, and it's been driving me nuts because when you close the driver station, the Computer attempts to shut down.
  #14   Spotlight this post!  
Unread 13-02-2013, 07:18
AutoBotAM AutoBotAM is offline
Registered User
AKA: Christian Reese
FRC #2077 (Laser Robotics (Laserbots))
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Wisconsin
Posts: 34
AutoBotAM is an unknown quantity at this point
Re: Strange Driver Station bug?

Quote:
Originally Posted by Greg McKaskle View Post
The default dashboard is just a built EXE from the LV template dashboard. If you want two image displays, you would need to make one from the template and drag a copy of some controls, indicators, and a loop on the diagram.

Greg McKaskle
How exactly do I make a new LabView dashboard?

This is the closest thing I could find: http://www.ni.com/white-paper/13757/en
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan

Last edited by AutoBotAM : 13-02-2013 at 07:20.
  #15   Spotlight this post!  
Unread 13-02-2013, 07:47
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,756
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: Strange Driver Station bug?

That is unfortunately about a totally different NI product with the word dashboard in the name.

There are a number of tutorials, but perhaps the one to start is the one in LabVIEW itself. Launch LV, and in the Getting Started window there is a tutorials tab, number 6 is about making dashboards.

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 02:30.

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