Hello everyone. We are working on a swerve. We have 8 spark max controllers and 4 CANcoders. 3 encoders rapid blink bright green. 1 alternates green red (also bright). All devices have addresses. Only the CANencoder that flashes greenred shows in the tuner. It also shows as an accelerometer in the REV client. The others don’t show. I know at some point they did. I updated them all, but I can’t seem to clear the red/green flash and get the others showing up again. I appreciate any thoughts. Thanks.
It shows the three in the REV client (22, 23, 24) but 21 does not show in the REV client. 21 only shows in the Tuner, but 22, 23, 24 do not.
One thing you may not be aware is that tuner x only talks to your ctre devices, while rev client will only talk to your rev devices.
The can ids are unique only to the right “brand” of can network.
If u can only see 1 cancoder in tuner x and yet 3 of them blink freen, it makes me wonder if you have 1 continuous can loop. Maybe double check ur wiring.
Ok thanks. Appreciate it. I will check wiring. I noticed the canencoders showed as accelerometers in the rev client. Am I reading that right?
And I can’t find the 3 green encoders (22,23,24) even though they are flashing green. I know they showed before.
The window shown in the rev client is actually a view of all can traffic over the bus. So it will show messages from all vendors, not just Rev. And since the CAN spec exists, that how the app can know its a CTRE device. They show as an accelerometer just because there is no can device type in the spec for an encoder, so they just chose to use accelerometer. They could have chosen any device type.
@Mara1 Your issue is that the 4th cancoder (The one blicking green red) has phoenix pro firmware, which will only work if you are hooked up to a canivore. You need to flash non pro firmware onto it to have it show up on the rio bus. A pro device on the rio bus could cause issues with the bus, due to the use of can fd. Which could explain the weird connection issues seen.
Ignore the above, it might work. But are you expecting the device to be flashed with pro firmware? That error code is showing unlicensed pro firmware.
What is likely happening is there is a disconnect somewhere between that 4th canivore and everything else. Because the rev client is hooked up via USB, it will see everything on that side of the break, where as Tuner uses the rio, and would see everything on its side of the break.
This is incorrect. You can have pro firmware on the Rio bus just fine.
Thanks. I am learning a lot here. The red green (21) showing on the tuner is wired where the bus goes from the 8 spark max to the encoders. It is the first encoder in the chain. (22, 23, 24) the chain ends at the pdh. I have the rev client plugged into the pdh. What would you recommend as my next plan of action? Appreciate your insights.
I suspect you have a disconnect or maybe even a flipped high → low, or low-> high (green to yellow, or yellow to green) somewhere in your Bus.
My recommendation is this:
- Disconnect all your devices from the roboRIO CAN Bus
- Connect one device, verify it shows up in Tuner (CTRE) or the REV Hardware Client (REV)
- Repeat this for each device, only once device at a time
This test will fix the following issues:
- Incorrect wiring
And if it does not fix the issue, it’ll isolate this to:
- a bad can cable
- a bad internal can connection on one of the devices (bad device)
hopefully this helps
I know it is a long shot but are the CANCoders connected to 12v directly at the PDH?
Hello Rachel. The CANCoders are attached to a mini power module running off the PDH.
Thanks for your help. I have reconnected the wires. All green to green and yellow to yellow. I tried re-soldering the CANEncoder. Same GreenRed flash. Only encoders 22-24 show in the REVclient. Only encoder 21 shows in the CTRETunerX. If for some reason it is encoder 21, which is the first encoder in the BUS after the sparkmax controllers, would that stop the rest of the controllers from showing in the CTRETunerX? And if it is encoder 21, would the BUS skip that controller and include the other three as active in the REVclient? Thanks.
I’d probably contact CTR support for further troubleshooting. The contact info is at the bottom of the website https://ctr-electronics.com
Thanks for your help everyone. Problem was the wiring. Specifically soldering Soldering is a challenge with the tools we have. And you can’t get pre-soldered in Canada. Here is what we did:
Isolated each Cancoder, found the faulty encoders, resoldered. Kept at it until there were no faults. All are flashing green now. All 4 show on the TunerX.