Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Run Jaguar's through PC (http://www.chiefdelphi.com/forums/showthread.php?t=99138)

Doc543 30-12-2011 18:21

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?

Ether 30-12-2011 18:24

Re: Run Jaguar's through PC
 

Quote:

Originally Posted by Doc543 (Post 1094619)
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.




s1900ahon 30-12-2011 18:29

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.

Doc543 30-12-2011 21:37

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.

Ether 30-12-2011 21:49

Re: Run Jaguar's through PC
 
1 Attachment(s)

Quote:

Originally Posted by Doc543 (Post 1094705)
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?






Doc543 30-12-2011 22:33

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

AustinSchuh 30-12-2011 23:13

Re: Run Jaguar's through PC
 
Quote:

Originally Posted by Ether (Post 1094708)
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.

Greg McKaskle 31-12-2011 06:57

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

jhersh 02-01-2012 13:02

Re: Run Jaguar's through PC
 
Quote:

Originally Posted by Greg McKaskle (Post 1094794)
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

Doc543 04-01-2012 01:08

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.

DonRotolo 04-01-2012 19:16

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.

jhersh 04-01-2012 19:23

Re: Run Jaguar's through PC
 
Quote:

Originally Posted by DonRotolo (Post 1096410)
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

jhersh 04-01-2012 19:24

Re: Run Jaguar's through PC
 
Quote:

Originally Posted by Doc543 (Post 1096084)
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.

Mike Copioli 04-01-2012 19:28

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

Ether 04-01-2012 19:29

Re: Run Jaguar's through PC
 

Quote:

Originally Posted by DonRotolo (Post 1096410)
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.




All times are GMT -5. The time now is 06:48.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi