Go to Post you know your team has respect from teachers when classes start waving projects during build season saying you get full credit if the robot ships. - Peck [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 08-02-2014, 18:35
Morgeno Morgeno is offline
Registered User
FRC #2337
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Grand Blanc, Michigan
Posts: 9
Morgeno is an unknown quantity at this point
Problem connecting to the CRIO

Hi Chief Delphi,
So my team has run into a little problem. For some reason when we attempt to deploy code, about 90% of the time an error comes up at a completely random time in deployment that says:
"Error: waiting for real-time target CRIO to respond"

We don't know what is happening to cause this or how to fix it.

Sometimes it happens in the beginning of deployment, sometimes not util the end.

Has anyone run into this problem before? If so how did you fix it?

Thanks,
Morgeno
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2014, 19:29
silas13579 silas13579 is offline
Registered User
FRC #2337
 
Join Date: Mar 2013
Location: Grand Blanc
Posts: 13
silas13579 is an unknown quantity at this point
Re: Problem connecting to the CRIO

Hello all,
I'm from the same team and as an update, when we try to connect we get error 44002 about 50 times: Warning <Code> 44002 occurred at Ping Results: link-bad, DS radio(.4)-GOOD, robot radio(.1)-bad, cRIO(.2)-bad, FMS-bad Driver Station. It is something like this each time, except the radio flashes between GOOD and bad every other time. Both computers we have tried have windows firewall off.

Any and all help is appreciated.

Last edited by silas13579 : 08-02-2014 at 19:48.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2014, 00:15
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,113
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: Problem connecting to the CRIO

Quote:
Originally Posted by Morgeno View Post
For some reason when we attempt to deploy code, about 90% of the time an error comes up at a completely random time in deployment that says:
"Error: waiting for real-time target CRIO to respond"
[...]
Has anyone run into this problem before? If so how did you fix it?
We've been regularly losing contact with the cRIO during code deployment for weeks. Our lead programmer just discovered that having it in Test mode when trying to load new code was a reliable way to have it fail, and after he started making sure it was in Teleop it hasn't broken again. I don't know what is really going on, but I do know that Test mode pegs the CPU usage at 100%.


Quote:
Originally Posted by silas13579 View Post
Hello all,
I'm from the same team and as an update, when we try to connect we get error 44002 about 50 times: Warning <Code> 44002 occurred at Ping Results: link-bad, DS radio(.4)-GOOD, robot radio(.1)-bad, cRIO(.2)-bad, FMS-bad Driver Station.
The "DS radio(.4)-GOOD" part is highly peculiar. It's not typical to have anything respond at the 10.23.37.4 IP address. Besides the D-Link, do you have another wireless router in the network?
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2014, 00:32
Zmarken Zmarken is offline
Registered User
FRC #1716 (Redbird Robotics)
Team Role: Engineer
 
Join Date: Dec 2013
Rookie Year: 2012
Location: De Pere
Posts: 30
Zmarken is an unknown quantity at this point
Re: Problem connecting to the CRIO

Quote:
Originally Posted by silas13579 View Post
Hello all,
I'm from the same team and as an update, when we try to connect we get error 44002 about 50 times: Warning <Code> 44002 occurred at Ping Results: link-bad, DS radio(.4)-GOOD, robot radio(.1)-bad, cRIO(.2)-bad, FMS-bad Driver Station. It is something like this each time, except the radio flashes between GOOD and bad every other time. Both computers we have tried have windows firewall off.

Any and all help is appreciated.
If you look here (under ping status), 44002 is explained a bit. That doesn't really tell you much though.

Looking further through the that website, under "Diagnostics Tab", it says
Quote:
"DS Radio" is a legacy indicator used to indicate the ping status to an external radio on the DS side at 10.XX.YY.4.
So, a couple of things I can think of... Does the 44002 warning change between
Quote:
Warning <Code> 44002 occurred at Ping Results: link-bad, DS radio(.4)-GOOD, robot radio(.1)-bad, cRIO(.2)-bad, FMS-bad Driver Station.
and anything else?

Secondly, and you might just want to do this anyways, but have you tried this? If you hook up your router to that, it should set the IP correctly, if that's the issue.

Also, something else to try: hook up directly to the cRIO and deploy to that, instead of going through the router, just to see if that works, or if you still lose connection.

That's all I can think of right now... Hope that helps.
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2014, 08:22
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: Problem connecting to the CRIO

I suspect that this is caused not by CPU load, but because the cRIO is pumping out so many error messages. Each time it does so, it causes a number of thread transitions. We discovered late last year that during those thread transitions, it is possible for the cRIO code to drop the deployment protocol.

If your Diagnostics tab is streaming errors, try another mode, tele, disable, etc. Then try to deploy.

If Test is causing lots of errors, that would probably be because some I/O was not opened correctly. Test mode reads every single I/O value and displays it, so if there was a rarely used or not used Open call, it will complain about it anyway.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 09-02-2014, 15:55
silas13579 silas13579 is offline
Registered User
FRC #2337
 
Join Date: Mar 2013
Location: Grand Blanc
Posts: 13
silas13579 is an unknown quantity at this point
Re: Problem connecting to the CRIO

We managed to find our problem. Some of our refnum names were left blank. we fixed it and it deploys now.

Thank you all for your help.

EDIT:
Never mind. It still isn't working. We always have it deployed when the driver station is in teleop, not test. This happens whether it is attached to the radio or CRIO.

Last edited by silas13579 : 09-02-2014 at 16:18.
Reply With Quote
  #7   Spotlight this post!  
Unread 09-02-2014, 16:10
killer_rabbit3's Avatar
killer_rabbit3 killer_rabbit3 is offline
programming rabbit
AKA: Alexander Martinez
FRC #1038 (Lakota Robotics)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: liberty township OH
Posts: 13
killer_rabbit3 is an unknown quantity at this point
Re: Problem connecting to the CRIO

You may be experiencing a windows problem. we've had this same error before and all we did was reboot windows and then it worked fine
Reply With Quote
  #8   Spotlight this post!  
Unread 09-02-2014, 16:49
silas13579 silas13579 is offline
Registered User
FRC #2337
 
Join Date: Mar 2013
Location: Grand Blanc
Posts: 13
silas13579 is an unknown quantity at this point
Re: Problem connecting to the CRIO

Quote:
Originally Posted by Zmarken View Post
Looking further through the that website, under "Diagnostics Tab", it says

So, a couple of things I can think of... Does the 44002 warning change between and anything else?
The radio signal flashes between good and bad. Also when we try to deploy code without rebooting the crio since the last attempt we get this error: Access denied: Another project is using this target. You must disconnect the existing project from the target or restart the target before establishing a new connection. Note: The existing project may be running on a different host computer.
Reply With Quote
  #9   Spotlight this post!  
Unread 09-02-2014, 17:52
silas13579 silas13579 is offline
Registered User
FRC #2337
 
Join Date: Mar 2013
Location: Grand Blanc
Posts: 13
silas13579 is an unknown quantity at this point
Re: Problem connecting to the CRIO

So far, connecting directly to the CRIO actually has been working, so we're just going off of that right now. The bridge config utility isn't working on our radio. It says login failed.
Reply With Quote
  #10   Spotlight this post!  
Unread 09-02-2014, 18:25
Zmarken Zmarken is offline
Registered User
FRC #1716 (Redbird Robotics)
Team Role: Engineer
 
Join Date: Dec 2013
Rookie Year: 2012
Location: De Pere
Posts: 30
Zmarken is an unknown quantity at this point
Re: Problem connecting to the CRIO

Quote:
Originally Posted by silas13579 View Post
So far, connecting directly to the CRIO actually has been working, so we're just going off of that right now. The bridge config utility isn't working on our radio. It says login failed.
If deploying directly through the cRIO is working, then I'm pretty sure it's a router issue.

I'd say you should do a factory reset of the router, then go through the Bridge Configuration tool again. If you're using the router in the KoP, reset it by holding down the reset button in the back of the router for ~10 seconds.

Try that, and see what your results are.
Reply With Quote
  #11   Spotlight this post!  
Unread 10-02-2014, 09:37
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Problem connecting to the CRIO

Quote:
Originally Posted by silas13579 View Post
...When we try to deploy code without rebooting the crio since the last attempt we get this error: Access denied: Another project is using this target.
Rebooting the crio should work, but you'll have to redeploy your code. Are you trying to use more than one computer or robot project?

Quote:
The bridge config utility isn't working on our radio. It says login failed.
Have you tried resetting the radio fron the button in the back?
__________________
Per Audacia Ad Astra
Reply With Quote
  #12   Spotlight this post!  
Unread 11-02-2014, 07:29
silas13579 silas13579 is offline
Registered User
FRC #2337
 
Join Date: Mar 2013
Location: Grand Blanc
Posts: 13
silas13579 is an unknown quantity at this point
Re: Problem connecting to the CRIO

We have tried the reset button, however it is not working. Also, connecting to the CRIO directly failed yesterday. Towards the end of deploy, when it's mostly through our global variables library, it stops.
Reply With Quote
  #13   Spotlight this post!  
Unread 11-02-2014, 07:39
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: Problem connecting to the CRIO

When it stops, there is typically a dialog on the screen explaining what succeeded and what failed. Can you copy/paste or take a screenshot so that we can help interpret what failed?

Greg McKaskle
Reply With Quote
  #14   Spotlight this post!  
Unread 13-02-2014, 19:09
silas13579 silas13579 is offline
Registered User
FRC #2337
 
Join Date: Mar 2013
Location: Grand Blanc
Posts: 13
silas13579 is an unknown quantity at this point
Re: Problem connecting to the CRIO

The only response we get is when we are trying to connect, it will say Waiting for response from Real time Target (I forget the exact wording). When we reimage the Crio, or at the beginning of meetings, is when it seems to work the most often. Our head mentor (we don't have any actual programming mentors) said that maybe our code bugs up the CRIO image when it deploys? Also, though our electrical team said it should be irrelevant, the analog card(I think. It's whatever shows the voltage) is not in the CRIO.
Reply With Quote
  #15   Spotlight this post!  
Unread 13-02-2014, 19:57
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: Problem connecting to the CRIO

The HW team is correct. The DS voltage will be incorrect, and you will need the module and breakout and jumper in order to pass inspection, but you don't need it right now.

My suspicion is that you have a great deal of Diagnostic errors being reported at the DS. If you can change the mode of the robot at the DS, you may find that one of the modes produces less errors and will have a better shot of deploying. If you fix the code issues that are causing the errors, the deploy issue will go away.

Also, you do not need to reimage the cRIO -- almost ever. Teams do this all the time, and I'm not sure why. The file system is very robust, and if not corrupt, why do it? You may sometimes need to turn on a setting such as the no-app switch or change the CAN or other settings.

Greg McKaskle
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 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