Log in

View Full Version : 2CAN Problem - plugin not loading?


rrossbach
09-02-2010, 17:12
Hi -
So after driving Jaguars over CAN using the Black Jag serial-to-CAN bridge and plugin, our team decided to try switching over to the 2CAN.

Now our robot code (Java) fails, with the CANJaguar constructors throwing an UncleanStatusException (status -52010).

We're using v1.6 of the 2CAN firmware, and verified that the 2CAN's ip address is set correctly (we tried it both on port 1 with IP 10.x.x.10 and port 2 with IP 192.168.0.10). In all cases we can reach the 2CAN web dashboard and see the Jaguars' temps, and ping the cRIO, so we know that all the network connectivity (Ethernet and CAN) is OK.

Looking at the cRIO console output, I'm thinking that the 2CAN plugin is not loading completely. We see a "loading" message for FRC_2CANPlugin, but don't seem to have any relevant messages after that (e.g. the Black Jag plugin outputs something like "loaded successfully") As a teaching exercise the team added some additional printf's to the 2CAN plugin source and re-built it (with a -DENABLE_PRINT switch added to the build options) - same result......no console messages eminating from the 2CAN plugin (at least that we recognize).

Any ideas on what could be happening? Any thoughts on how to proceed are appreciated, we'd really like to use the 2CAN!

Thanks,
Ron
Team #2607 controls mentor

ozrien
09-02-2010, 17:49
What is the status of the LED on the 2CAN? The webdashboard displays the status of the Ethernet connection and whether the plugin is loaded correctly. Could you verify this?

rrossbach
09-02-2010, 18:51
Hi -
The 2CAN LED flashes red (no network comms) - I think this means it's not getting any comm from the plugin, since clearly the network comm is fine - correct? The web dashboard also states to check the network comms (don't have the exact wording as I'm not at the school right now).

Thanks,
Ron
Team #2607 controls mentor

ozrien
09-02-2010, 23:00
It sounds like the 2can plugin is not loaded correctly. Be sure to go over the instructions on how to install the FRC_2CANPlugin.out file in the 2CAN User Manual.

http://crosstheroadelectronics.com/2CAN.htm

It's the same procedure as installing the Black Jaguar Serial plugin but it's a different out file.

rrossbach
11-02-2010, 00:47
We've followed the procedure correctly - as mentioned originally, the console output shows a "loading" message for the 2CAN plugin, which indicates that ni-rt.ini is updated correctly. There's also no failure message indicating the plugin failed to load, which would be the case if the plugin file didn't exist in ni-rt/system.

So, we're pretty sure the plugin load is silently failing, but are at a loss as to why.

Out of curiosity:
- does revision r28 of the plugin source on FirstForge correspond to the v1.1.0.0 plugin .out dated 1/31/2010?
- is anyone currently using the compiled v1.1.0.0 plugin (dated 1/31/2010) downloaded from the CTRE website?
- was the v1.1.0.0 compiled plugin linked from the CTRE website compiled with debugging on? It appears so but please confirm

Thanks,
Ron
Team #2607 controls mentor