Go to Post God Bless the referees. - MooreteP [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: 5 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 03-01-2015, 22:03
JohnGaby JohnGaby is offline
Registered User
FRC #2102
 
Join Date: Jan 2014
Location: Encinitas
Posts: 24
JohnGaby is an unknown quantity at this point
Configuring the CAN bus devices.

How do we discover/configure the addresses of the CAN bus devices for the new control system. In the past, we have used the BDC-COMM utility to configure the CAM address of our Jaguars via a serial port, but it is not clear if/how this might be used with the new system. Is there CAN configuration utility for the new system. Are the new CAN devices (e.g. the power distribution board) at known addresses, and, if so, where can we find those addresses?

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-01-2015, 22:06
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Configuring the CAN bus devices.

http://wpilib.screenstepslive.com/s/...ribution-panel

That document specifically refers to the PCM and PDP, but Jags (other than firmware update) and Talon SRXs are similar.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-01-2015, 22:08
James Kuszmaul James Kuszmaul is offline
NEFIRST CSA
FRC #0971 (Spartan Robotics)
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Worcester, MA
Posts: 61
James Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud of
Re: Configuring the CAN bus devices.

You can view and configure CAN device addresses for the new devices through the roborio webdash by connecting to the roborio through the bridge (or some other means) and going to:
roborio-2102.local
in your web browser
or just the ip address of the roborio. Replace 2102 with a different team number if needed.
__________________
FRC971 (Student) 2011-2014
FRC190 (College Mentor-ish) 2014
WPILib Development 2014-present
Reply With Quote
  #4   Spotlight this post!  
Unread 03-01-2015, 22:08
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,072
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Configuring the CAN bus devices.

You use the roboRIO web interface. http://roborio-2102.local/
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #5   Spotlight this post!  
Unread 03-01-2015, 22:16
JohnGaby JohnGaby is offline
Registered User
FRC #2102
 
Join Date: Jan 2014
Location: Encinitas
Posts: 24
JohnGaby is an unknown quantity at this point
Re: Configuring the CAN bus devices.

Thanks for the quick replies. I will check it out.
Reply With Quote
  #6   Spotlight this post!  
Unread 04-01-2015, 11:25
TogetherSword8 TogetherSword8 is offline
Registered User
FRC #0888 (Robotiators)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Glenelg High School
Posts: 85
TogetherSword8 is an unknown quantity at this point
Re: Configuring the CAN bus devices.

Do the CAN IDs for the Jaguars interfere with the PDP and PCM? I.E., can we number our jaguars 1,2,3,4 etc. or are 1 and 2 reserved for these components?
__________________
I program a robot. Which means I write code and everyone gets mad at me when something doesn't work, even if I am the only one that knows it doesn't work. The key part to know is that the robot never works.
Reply With Quote
  #7   Spotlight this post!  
Unread 04-01-2015, 11:26
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Configuring the CAN bus devices.

Quote:
Originally Posted by TogetherSword8 View Post
Do the CAN IDs for the Jaguars interfere with the PDP and PCM? I.E., can we number our jaguars 1,2,3,4 etc. or are 1 and 2 reserved for these components?
No, they do not.

From http://wpilib.screenstepslive.com/s/...ribution-panel :
Since the ID ranges for different products don’t overlap there is no issue with two or more CAN nodes of different types having the same Device ID (e.g. a PDP with ID=0, a PCM with ID=0, and a Talon SRX with ID=0 on the same bus). Using multiple devices of the same type, such as multiple PCMs or multiple Jaguars with the same node ID will result in a conflict. The web plugin supports a strategy that will allow for recovery of this condition for all devices other than Jaguars, but the devices are not properly usable from within a robot program while in this state. To recover Jaguars which have been set to the same ID you will have to remove all but one of the devices from the bus, then set the devices to non-conflicting IDs.
Reply With Quote
  #8   Spotlight this post!  
Unread 04-01-2015, 11:27
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,072
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Configuring the CAN bus devices.

Quote:
Originally Posted by TogetherSword8 View Post
Do the CAN IDs for the Jaguars interfere with the PDP and PCM? I.E., can we number our jaguars 1,2,3,4 etc. or are 1 and 2 reserved for these components?
CAN Device ID's only need to be unique per device type.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #9   Spotlight this post!  
Unread 12-01-2015, 13:42
Mike9966's Avatar
Mike9966 Mike9966 is offline
Mentor Mike
FRC #2846 (Fire Bears)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Minnesota
Posts: 62
Mike9966 is an unknown quantity at this point
Re: Configuring the CAN bus devices.

So, here's my version of that question.

I would like to configure the SRX's before turning them over to the programmers and mounting them in the system. Hence, I would like to program it before it's connected to the RoboRio, using something like BCD-Comm.

I should also add that I found BCD-Comm to be invaluable to prove a jag works even when the software team swears it is broken........

I'm also thinking of in the future when the next version of things happens, I'd like to be able to continue to use this controller sans NI control system.

Any thoughts on how to accomplish this?

Thanks,

Mike
__________________
Do the best you can! Always
Go FireBears
2009 10000 Lakes Finalists, thanks 2825 & 2177
2010 10000 Lakes quarter finalists
2011 Duluth and 10000 Lakes
2012 Superior, and 10K Lakes, Qt finals, MRI
2013 Northern lights, 10K Lakes-Semi finalists, MRI, River Rendezvous, Minne Mini
2014 Northern Lights, 10K Lakes
Reply With Quote
  #10   Spotlight this post!  
Unread 12-01-2015, 15:21
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Configuring the CAN bus devices.

Presetting the CAN ID before adding a new Talon SRX to the CAN chain might not be as valuable as you'd think. The webpage is pretty tolerant of common-ID Talon SRXs as explained in the software reference manual, section 2.2. So you can pretty easily find a duplicate and change it's device ID.

If you do want to check each one in a one-at-a-time fashion, you can still use the roboRIO web-page configuration and just insert a single Talon directly into the CAN bus RIO weidmuller connector. It's explained better in section 1.3.4.2 in the Talon User's Guide. What's nice about that is if you're just connecting a single Talon temporarily for the purpose of reflashing/setting ID, you usually can get away without having a second terminating resistor at the free-end of the Talon.

Currently only the NI roboRIO supports the Talon SRX. At some point there will probably be something like non-FRC firmware for Talon SRX so that it can be used outside of competition. The priority right now is making sure Talon SRX's first season in FRC is as successful as possible.
Reply With Quote
  #11   Spotlight this post!  
Unread 17-01-2015, 19:10
controls weenie's Avatar
controls weenie controls weenie is offline
Registered User
FRC #2973
Team Role: Mentor
 
Join Date: Oct 2014
Rookie Year: 2011
Location: United States
Posts: 23
controls weenie is an unknown quantity at this point
Re: Configuring the CAN bus devices.

We connected the solenoid, compressor and air valve switch (sensor) to the PCM. We are now trying to control the 24V solenoid using LabVIEW. Our PCM CAN bus address is 0. We set the jumper to 24V.

How do we control the solenoid in LabVIEW? The Solenoid vi takes the CAN bus ID (0 in our case) but we need to send it a message somehow. Where is this documented? There are 8 solenoid outputs.

Thanks
Reply With Quote
  #12   Spotlight this post!  
Unread 18-01-2015, 09:07
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Configuring the CAN bus devices.

Right next to the Solenoid Open in the palette (which should take an ID and channel number) there is a Solenoid Set that sets the state of that channel.
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 02:53.

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