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
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