Go to Post "Your really pretty and I like your bot" - prettycolors91 [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 30-12-2011, 18:21
Doc543's Avatar
Doc543 Doc543 is offline
Electrical, Pneumatics, Driver
AKA: Eric
FRC #1891 (BullBots)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Meridian Idaho
Posts: 63
Doc543 is an unknown quantity at this point
Run Jaguar's through PC

Hello, I got 2 Black Jags for Christmas for my personal robot project, is there any code out there to run the Jags via CAN Bust hat will run on the PC?
__________________

"Its just a prototype."
2011 Chairman's Award Utah Regional
2010 Gracious Perfectionism Utah Regional
2009 Gracious Perfectionism Portland Regional
  #2   Spotlight this post!  
Unread 30-12-2011, 18:24
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,026
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Run Jaguar's through PC


Quote:
Originally Posted by Doc543 View Post
Hello, I got 2 Black Jags for Christmas for my personal robot project, is there any code out there to run the Jags via CAN Bust hat will run on the PC?
There's a BDC-COMM program that you can download from TI and run on the PC to talk via CAN to the Jags.



  #3   Spotlight this post!  
Unread 30-12-2011, 18:29
s1900ahon s1900ahon is online now
Registered User
AKA: Scott McMahon
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 155
s1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant future
Re: Run Jaguar's through PC

Are you using the factory default firmware for the FIRST firmware? I guess the former otherwise you might already know about bdc-comm.

The CD with software for the Jaguar (*non* FIRST) can be downloaded here:

http://www.ti.com/tool/rdk-bdc24-cd

On it should be the stock version of bdc-comm which is a Windows application that lets you communicate over a serial connector to the Net/Serial connector of a Black Jaguar via adaptor. See the Getting Started Guide for more info.
  #4   Spotlight this post!  
Unread 30-12-2011, 21:37
Doc543's Avatar
Doc543 Doc543 is offline
Electrical, Pneumatics, Driver
AKA: Eric
FRC #1891 (BullBots)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Meridian Idaho
Posts: 63
Doc543 is an unknown quantity at this point
Re: Run Jaguar's through PC

is there a way to import these libraries into LabVIEW? What I'm going for is to make my laptop into a robot controller.
__________________

"Its just a prototype."
2011 Chairman's Award Utah Regional
2010 Gracious Perfectionism Utah Regional
2009 Gracious Perfectionism Portland Regional
  #5   Spotlight this post!  
Unread 30-12-2011, 21:49
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,026
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Run Jaguar's through PC


Quote:
Originally Posted by Doc543 View Post
is there a way to import these libraries into LabVIEW? What I'm going for is to make my laptop into a robot controller.
Can the WPIlib MotorControl functions in the FRC LabVIEW support the PC as a target?





Attached Thumbnails
Click image for larger version

Name:	MotorControl.png
Views:	39
Size:	3.9 KB
ID:	11249  

Last edited by Ether : 30-12-2011 at 21:53.
  #6   Spotlight this post!  
Unread 30-12-2011, 22:33
Doc543's Avatar
Doc543 Doc543 is offline
Electrical, Pneumatics, Driver
AKA: Eric
FRC #1891 (BullBots)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Meridian Idaho
Posts: 63
Doc543 is an unknown quantity at this point
Re: Run Jaguar's through PC

I tried it but the C library it needs to run is missing, I don't think my labview is installed correctly on this computer anyway
__________________

"Its just a prototype."
2011 Chairman's Award Utah Regional
2010 Gracious Perfectionism Utah Regional
2009 Gracious Perfectionism Portland Regional
  #7   Spotlight this post!  
Unread 30-12-2011, 23:13
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Run Jaguar's through PC

Quote:
Originally Posted by Ether View Post
Can the WPIlib MotorControl functions in the FRC LabVIEW support the PC as a target?
I highly doubt it. Those will very likely interact with libraries on the cRIO and/or the FPGA, making them impossible to run on a PC.

Worst case, the serial protocol and CAN protocol should be documented, so with some work you should be able to make your own library for it or find someone else's.
  #8   Spotlight this post!  
Unread 31-12-2011, 06: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,748
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: Run Jaguar's through PC

As mentioned, the WPILib CAN VIs are customized for FRC and so is the Jag firmware. These customizations are largely for a safety heartbeat mechanism, but also take care of bridging the CAN traffic over either enet or serial.

Perhaps http://www.ti.com/lit/ug/spmu065b/spmu065b.pdf or www.luminarymicro.com/jaguar will be useful.

Greg McKaskle
  #9   Spotlight this post!  
Unread 02-01-2012, 13:02
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Run Jaguar's through PC

Quote:
Originally Posted by Greg McKaskle View Post
As mentioned, the WPILib CAN VIs are customized for FRC and so is the Jag firmware. These customizations are largely for a safety heartbeat mechanism, but also take care of bridging the CAN traffic over either enet or serial.

Perhaps http://www.ti.com/lit/ug/spmu065b/spmu065b.pdf or www.luminarymicro.com/jaguar will be useful.

Greg McKaskle
While that is true, most of the code is reusable. If you use the non-first specific firmware, then all you need to do is change the "token" enable and set commands into the non-token ones, and then at the lowest level of the Jaguar API (which calls into FRC_NetworkCommunication_JaguarCANDriver_sendMessa ge and FRC_NetworkCommunication_JaguarCANDriver_receiveMe ssage), reimplement those with VISA serial VIs instead of calling into the library. The Black Jag serial bridge plugin will show you how to turn CAN frames into serial traffic that the black jag can understand.

It's not exactly trivial, but it shouldn't take much effort. All the needed info is available.

Good luck!
-Joe
  #10   Spotlight this post!  
Unread 04-01-2012, 01:08
Doc543's Avatar
Doc543 Doc543 is offline
Electrical, Pneumatics, Driver
AKA: Eric
FRC #1891 (BullBots)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Meridian Idaho
Posts: 63
Doc543 is an unknown quantity at this point
Re: Run Jaguar's through PC

I was wondering if I could just swap the can just swap that code with the VISA serial, I was afraid there was more to that C-RIO code then just sending serial data. I will go try this. I will let you know of any breakthroughs.
__________________

"Its just a prototype."
2011 Chairman's Award Utah Regional
2010 Gracious Perfectionism Utah Regional
2009 Gracious Perfectionism Portland Regional
  #11   Spotlight this post!  
Unread 04-01-2012, 19:16
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Run Jaguar's through PC

Also keep in mind that the PHYSICAL layer of a CAN Bus cannot be produced by a PC without some additional hardware. USB, Serial, Parallel, FireWire, etc all use different voltages from the Jaguar's CAN implementation.
__________________

I am N2IRZ - What's your callsign?
  #12   Spotlight this post!  
Unread 04-01-2012, 19:23
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Run Jaguar's through PC

Quote:
Originally Posted by DonRotolo View Post
Also keep in mind that the PHYSICAL layer of a CAN Bus cannot be produced by a PC without some additional hardware. USB, Serial, Parallel, FireWire, etc all use different voltages from the Jaguar's CAN implementation.
While that is true, the Black Jaguar also implements a standard RS-232 interface on the left RJ port. It can then be used to bridge to any other Jaguar on the CAN interface. This means with nothing more than a serial adapter cable (described in the Getting Started Guide), your PC can control Jaguars (from an electrical stand-point).

-Joe
  #13   Spotlight this post!  
Unread 04-01-2012, 19:24
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Run Jaguar's through PC

Quote:
Originally Posted by Doc543 View Post
I was wondering if I could just swap the can just swap that code with the VISA serial, I was afraid there was more to that C-RIO code then just sending serial data. I will go try this. I will let you know of any breakthroughs.
There is more to it, but the differences are either described in my post above or are specific to the FIRST version of the firmware, which you should not use if controlling the Jags from your PC.
  #14   Spotlight this post!  
Unread 04-01-2012, 19:28
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 453
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: Run Jaguar's through PC

If you are using the 2CAN the Jaguars may be run using the Cross-link Control Software for Windows or uCANdrive for Android. Both are available as a free download, the RCS is open source. uCANDrive is also available on the Android Market.

The RCS installer is located under Downloads:

http://www.crosstheroadelectronics.com/Cross_link.html
http://www.crosstheroadelectronics.com/uCANDrive.html
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
  #15   Spotlight this post!  
Unread 04-01-2012, 19:29
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,026
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Run Jaguar's through PC


Quote:
Originally Posted by DonRotolo View Post
Also keep in mind that the PHYSICAL layer of a CAN Bus cannot be produced by a PC without some additional hardware. USB, Serial, Parallel, FireWire, etc all use different voltages from the Jaguar's CAN implementation.
... and CAN requires dominant logical 0 for collision detection and arbitration.


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 09:18.

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