Go to Post "Don't make me call my flying monkeys..." - Joe Johnson [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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-2010, 19:46
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 90
duane is an unknown quantity at this point
Send a message via AIM to duane
Error -52007

While running the LabView CAN Example code in - CAN Jaguar RobotDrive Robot Project

We get the error
--
Error Code -52007 Occurred at CAN Recieve.vi.
NI Platform Services: the requested operation did not complete in time.
--
We changed the code to use CAN Addresses 11 and 12 for the motors and limited our CAN network to include only those Jaguars.

We still get the error.

We disabled the CAN Firmware Version VI as indicated in other discussions. The error now changes to the CAN Send.vi instead.

--
Error Code -52007 Occurred at CAN Send.vi.
NI Platform Services: the requested operation did not complete in time.
--

We get other problems when we run our own code. We'd like to have confidence in the sample code before moving on to our own code.

Thanks for any ideas here.

ps
Additional info - BDC-COMM works great with the network of Jaguars we have. All the Jaguars have been firmware updates.
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2010, 21:30
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Error -52007

This may sound like a stupid question, but are you sure your Jags are set to addresses 11 and 12? Also, what interface are you using? Serial or 2CAN? Did you properly install the plugin for whatever interface you are using?
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2010, 21:54
Mr-Shutter's Avatar
Mr-Shutter Mr-Shutter is offline
Audiophile
AKA: David
FRC #0612 (Chantilly Robotics)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Virginia
Posts: 29
Mr-Shutter will become famous soon enough
Send a message via AIM to Mr-Shutter
Re: Error -52007

Make sure you truly have updated your jags. The latest firmware is 87
do you have termination resistor on both ends?
Of course make sure you are talking to the right jags.

Debug where the error is coming from. Ours generally came from setting the device into the speed/voltage mode where it waits for an ACK.
If it is still give you problems I just removed the part of the code that waits for the ACK at frist (not recommended) ,but then realized there was a newer firmware update I was unaware of and installed it and the error went away with default code.
__________________
I see in logic, Black and White
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2010, 00:07
AlataMors AlataMors is offline
Registered User
FRC #0701 (Robovikes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: California
Posts: 2
AlataMors is an unknown quantity at this point
Re: Error -52007

So we figured out what was wrong.

We are using a serial connection, and for testing we used only two jags, 11 and 12. The updates are good and all the wiring is correct. The part that was wrong was the dip-switch that controls the serial port. The instructions in setting up the CAN system say to set the switch to on, but we couldn't tell if it was set to off or on. On a hunch I tried it, now we get no errors when running example code.

For those who have a similar problem "on" for the dip-switch means that the low side is toward the edge of the Rio and the high side is toward the bulk of the rest of it.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2010, 13:50
TonyP TonyP is offline
Registered User
FRC #2151 (Pythons)
Team Role: Mentor
 
Join Date: Nov 2007
Rookie Year: 2006
Location: Elk Grove Village, Il
Posts: 12
TonyP is an unknown quantity at this point
Re: Error -52007

The directions on the First Forge site are copied here. So I want the switch in the off position which means the low side is toward the CRIO. I hope!

If you are using the BlackJagBridgePlugin, you must switch off the console out DIP switch on your controller (and reboot) so that the serial port can be accessed by the driver plugin instead of the operating system's console.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2010, 14:39
AlataMors AlataMors is offline
Registered User
FRC #0701 (Robovikes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: California
Posts: 2
AlataMors is an unknown quantity at this point
Re: Error -52007

You are right, I should have rechecked the instructions. I remembered that they said to do something to the switch I didn't remember if it was off or on. Right now the switch is "off" with the low side away from the cRio and right now it works, we have the robot drive example for Jag works.

We are still working on getting the position control example working, right now the vi for returning Jag info (CAN Jaguar Get Status.vi) doesn't work, and gives a 52007 error. I don't think it is a hardware problem this time, because the CAN open works just fine.

We will work on it.
Reply With Quote
  #7   Spotlight this post!  
Unread 12-02-2010, 14:54
TonyP TonyP is offline
Registered User
FRC #2151 (Pythons)
Team Role: Mentor
 
Join Date: Nov 2007
Rookie Year: 2006
Location: Elk Grove Village, Il
Posts: 12
TonyP is an unknown quantity at this point
Re: Error -52007

You are just ahead of me and my programming efforts. Is it my imagination or do you lose all of the gain settings each time you cycle power to the Jag?
Is there a way to store the settings in permanent memory or do I need to resend each time I power up?
Tony
Reply With Quote
  #8   Spotlight this post!  
Unread 12-02-2010, 23:28
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Error -52007

I believe the only persistent settings for the jag are the firmware and the CAN id. Even if there is other stuff stored, it is a good idea to put the important settings in your robot init code.
Reply With Quote
  #9   Spotlight this post!  
Unread 04-03-2010, 17:15
BenS BenS is offline
Registered User
no team (NI)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, Tx
Posts: 2
BenS is an unknown quantity at this point
Re: Error -52007

Alatamors,

Did you ever resolve your -52007 CAN error? If so, how? I know another team having this issue and would like to help them out.
Reply With Quote
  #10   Spotlight this post!  
Unread 08-03-2010, 19:52
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Error -52007

Most of the times when I've encountered this error were because I had the CAN bus ID set incorrectly in my code. You can use BDCComm to enumerate the bus (assuming you're using a black jaguar) and validate your CAN IDs. Once that's done, make sure that you have the right ID in your code. Don't forget that termination problems can also cause this error. Termination problems can also show up as a firmware ID of 0.

HTH,

Mike A.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
error installing labview error 1335 jerometab NI LabVIEW 0 06-02-2010 18:17
MPLAB error: Error [1027] unable to locate 'serial_ports.h' rokenboker Programming 10 03-09-2009 16:29
Error in code light on, trouble finding error Bryan Herbst Programming 16 12-10-2007 21:59
180:Error: syntax error help! seanl Programming 8 04-02-2007 11:31
stupid Array error: Error [1300] stack frame too l Validius Programming 7 27-01-2006 10:53


All times are GMT -5. The time now is 20:15.

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