Go to Post I think one of they beauties of the program is how it can include so many different interests our students have. - Doc Wu [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 Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 14-06-2011, 20:01
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: CAN tutorial

We tried out CAN this year via a Serial to CAN cable to a Black Jag. We had a 6 motor drive train and one motor for the elevator (2 black jags, 5 grey). Our CAN code worked beautifully with the drive train; we had not yet wired up the Jag for the elevator. When we did and started running elevator at the same time, we got lots of lag issues, with safety timeouts and CAN bus errors all over the place, resulting in system watchdogs beyond belief. We had it later confirmed (not sure where) that the Serial CAN bus on the cRio can only handle 6 jags efficiently, so we had it switched out for PWM. Unfortunately, due to <R49> and <R58> we couldn't have the limit switches on the elevator jag, which was a big sad face for the programmers.

Have other people had issues with more than 6 jags on the Serial bus? Is the 2CAN able to handle it? (I've heard it's bus speed, anyway, is much much faster, at about 800MHz?)

We also had one Jag (grey) that gave nothing but a Vbus fault in BDC-COMM and didn't accept any image. It worked flawlessly with PWM, so it was probably a firmware issue.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-06-2011, 17:15
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,063
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
Re: CAN tutorial

Quote:
Originally Posted by compwiztobe View Post
We tried out CAN this year via a Serial to CAN cable to a Black Jag. We had a 6 motor drive train and one motor for the elevator (2 black jags, 5 grey). Our CAN code worked beautifully with the drive train; we had not yet wired up the Jag for the elevator. When we did and started running elevator at the same time, we got lots of lag issues, with safety timeouts and CAN bus errors all over the place, resulting in system watchdogs beyond belief. We had it later confirmed (not sure where) that the Serial CAN bus on the cRio can only handle 6 jags efficiently, so we had it switched out for PWM. Unfortunately, due to <R49> and <R58> we couldn't have the limit switches on the elevator jag, which was a big sad face for the programmers.

Have other people had issues with more than 6 jags on the Serial bus? Is the 2CAN able to handle it? (I've heard it's bus speed, anyway, is much much faster, at about 800MHz?)

We also had one Jag (grey) that gave nothing but a Vbus fault in BDC-COMM and didn't accept any image. It worked flawlessly with PWM, so it was probably a firmware issue.
very odd... my team made 9 jaguars on Serial Can work fine. we had those erros at one point but it was a code issue; we used labview and the programmer had put everything in teleop.vi and never used periodic tasks, big mistake. moving it all the control loops (non-robot drive) to invidual while loops in periodic tasks solved the timeout issues.

the odd jaguar might have metal shavings inside... open it up and make sure its clean. I was able to fix 5 ones in the junk box that way... remove the shavings and they come back to life.
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-11-2011, 21:53
Eric Sakshaug Eric Sakshaug is offline
Registered User
FRC #0340 (Greater Rochester Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2009
Location: Brockport, NY
Posts: 8
Eric Sakshaug is an unknown quantity at this point
Question Re: CAN tutorial

If I'm reading this correctly, the firmware must be updated prior to assigning a number? My team is currently experimenting with CAN on one of our off-season robots, and we've gotten as far as getting the LED on the black jaguar to be a solid yellow (don't ask why we've waited this long to even get this far!) while connected through 6P6C-DB9 cable to a laptop, and BDC-COMM is saying that it is connected, however, when we attempt to assign a number to the Jaguar (so far, just the black jaguar, and it does have the proper terminator) it gives us the countdown, we press the user button in time, it flashes yellow once, and goes back to solid yellow (meaning that it's being assigned to ID 1, when we're trying to do ID 2). So, is our issue that we need to update firmware first, or is it something else?
Reply With Quote
  #4   Spotlight this post!  
Unread 11-11-2011, 19:41
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,906
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: CAN tutorial

Go ahead and update the firmware. You will have to do it eventually anyway. I expect the reboot will reset the address to 1 regardless of the current address. I have not actually tried with any ID but 1 this so I could be wrong.

The procedure is to put the new address in the box. Click the assign button. you see the box counting down & the jag light blinking. Press the user button within the 5 seconds. Sorry for being redundant. Should work. Look at the top of the BCD Comm box for the current board ID NOT the assign box.

You can find directions for BCD-COMM here
Reply With Quote
  #5   Spotlight this post!  
Unread 12-11-2011, 17:11
Eric Sakshaug Eric Sakshaug is offline
Registered User
FRC #0340 (Greater Rochester Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2009
Location: Brockport, NY
Posts: 8
Eric Sakshaug is an unknown quantity at this point
Re: CAN tutorial

Quote:
Originally Posted by FrankJ View Post
The procedure is to put the new address in the box. Click the assign button. you see the box counting down & the jag light blinking.

Look at the top of the BCD Comm box for the current board ID NOT the assign box.
Thanks for the speedy response!

The jag light was remaining solid after we pressed the assign button.

Also, although the jag's LED was solid yellow, there were no board IDs listed in BDC Comm.

Also, we had to force the computer to set the jaguar to Com port 1, otherwise, BDC Comm wouldn't even acknowledge that there was another Com port present.

The black jag was the only one on the network at the time, and attempting to daisy chain through to a tan jag yielded no communications on the tan jag.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-11-2011, 23:44
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,906
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: CAN tutorial

The solid light means the jag has a signal which infers communication. Seems like I was getting this problem earlier, but I didn't actually have communication. Turned out I had a pin wrong in my RS232 adapter cable.

If the led remains solid after you press the assign button, it is not getting the command for some reason.

Can you down load the Version 92 firmware? Is the temp updating? That would eliminate some possibilities.

Some computer comm questions. Look in system settings is your RS232 port really comm 1? What kind of RS232 port are you using? Do you have another program trying to use the com port. RSlinxs (Allen Bradley & the old Palm software was real bad about that. Do you have a IR port.
Reply With Quote
  #7   Spotlight this post!  
Unread 13-11-2011, 22:23
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,063
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
Re: CAN tutorial

I may also suggest reading my whitepaper on serial CAN... the later firmware sections in particular.

there is a link in my signature
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.
Reply With Quote
  #8   Spotlight this post!  
Unread 15-11-2011, 15:45
Eric Sakshaug Eric Sakshaug is offline
Registered User
FRC #0340 (Greater Rochester Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2009
Location: Brockport, NY
Posts: 8
Eric Sakshaug is an unknown quantity at this point
Re: CAN tutorial

Quote:
Originally Posted by FrankJ View Post
The solid light means the jag has a signal which infers communication. Seems like I was getting this problem earlier, but I didn't actually have communication. Turned out I had a pin wrong in my RS232 adapter cable.

If the led remains solid after you press the assign button, it is not getting the command for some reason.

Can you down load the Version 92 firmware? Is the temp updating? That would eliminate some possibilities.

Some computer comm questions. Look in system settings is your RS232 port really comm 1? What kind of RS232 port are you using? Do you have another program trying to use the com port. RSlinxs (Allen Bradley & the old Palm software was real bad about that. Do you have a IR port.
Thank you for yet another speedy response!

I can re-check the pins on the RS232 to CAN cable (the next time I'll be able to do so is on Thursday), this is the only thing I can think of that would be the issue, because it's not even updating the temperature.

We have not updated the firmware from factory default, I was afraid that the issue was with sporadic communications, not no communications, and that might risk bricking the jag.

Under the system settings, it used to be that a printer port on the laptop (a very old laptop) was assigned to COM1, we disabled that in the system settings, and forced the com port on the jag to 1, under the software of the usb to serial interface that we use.

When we select "connect" in BDC comm, the status LED on the adapter blinks (it's active), and the software shows it as a "busy" state, all leading me to think that we do have comms, but it must be with wiring. I will also try with another black jag, and see if it's the jag that's the issue, I'll keep you posted
Reply With Quote
  #9   Spotlight this post!  
Unread 15-11-2011, 21:44
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,906
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: CAN tutorial

Sounds like what I had with a bad cable. The BCD-Comm program was showing connected but that just seems to mean it is talking the the serial port. I apparently had transmission to the jag because the LED on the jag was solid. I fixed the pins & suddenly everything works.
Reply With Quote
  #10   Spotlight this post!  
Unread 16-11-2011, 23:49
Eric Sakshaug Eric Sakshaug is offline
Registered User
FRC #0340 (Greater Rochester Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2009
Location: Brockport, NY
Posts: 8
Eric Sakshaug is an unknown quantity at this point
Lightbulb Re: CAN tutorial

I believe I have figured out the issue here, and it is totally 100% human error if so. I believe that the issue arose from the fact that I forgot that DB9 female is reverse on its pin numbering from DB9 male... This would explain why it was a solid yellow LED (jag was receiving comms from the computer, because pin 3 is the same on both male and female, and is Tx), but was not appearing on BDC-comm (Rx was not wired in at all, rather, it was the DTR pin) it might also explain why it could not change its number, it must require some sort of handshaking to do so. Again, this is theory, and will not be tested until Thursday, but I'm willing to make a solid bet that that's the issue here. I'm sorry that I sort of wasted your time.
Reply With Quote
  #11   Spotlight this post!  
Unread 17-11-2011, 09:48
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,906
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: CAN tutorial

Don't be sorry. Wasting time is one of my favorite activities.

BTW I did not see this as a time waster.
Reply With Quote
  #12   Spotlight this post!  
Unread 05-12-2011, 14:48
Eric Sakshaug Eric Sakshaug is offline
Registered User
FRC #0340 (Greater Rochester Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2009
Location: Brockport, NY
Posts: 8
Eric Sakshaug is an unknown quantity at this point
Re: CAN tutorial

Quote:
Originally Posted by Eric Sakshaug View Post
I believe I have figured out the issue here, and it is totally 100% human error if so. I believe that the issue arose from the fact that I forgot that DB9 female is reverse on its pin numbering from DB9 male... This would explain why it was a solid yellow LED (jag was receiving comms from the computer, because pin 3 is the same on both male and female, and is Tx), but was not appearing on BDC-comm (Rx was not wired in at all, rather, it was the DTR pin) it might also explain why it could not change its number, it must require some sort of handshaking to do so. Again, this is theory, and will not be tested until Thursday, but I'm willing to make a solid bet that that's the issue here. I'm sorry that I sort of wasted your time.
Yes, this was the issue, all of our Jaguars are now working just fine, and I'm excited for working with CAN this build season
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 06:50.

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