Page 1 of 1

More than four analogX on a single CAN bus

Posted: Thu May 02, 2019 7:26 pm
by jsa
Looking at the wiki I see the base address and offset configuration that allows 4 analogX modules on a single CAN bus.

Skimming through code on github I see

Code: Select all

 // CANFilter shiftx2_can_filter = {1, 0, 1, 0, 0x000E3700, 0x1FFFFF00}; // g_can_base_address, ANALOGX_CAN_FILTER_MASK
.
.
.
offset |= palReadPad(GPIOA, ADR1_ADDRESS_PORT) == PAL_HIGH ? 0x01 : 0x00;
offset |= palReadPad(GPIOA, ADR2_ADDRESS_PORT) == PAL_HIGH ? 0x02 : 0x00;
Are there limitations that would prevent loading a revised firmware to analogX, with different base address or offset, values so that more than 4 modules could be on the same CAN bus?

Posted: Mon May 20, 2019 5:45 pm
by brentp
Hi,

With updated firmware, you can have it listen on any CAN base ID as needed. No limitations.

Posted: Tue May 21, 2019 11:16 am
by jsa
Thanks Brentp. One step closer to purchasing more than 4.

What tools are needed to compile the revised firmware and load it to analogx?

Posted: Tue May 21, 2019 3:04 pm
by brentp
Hi,

We have updated the documentation here, which will be sufficient for a knowledgeable engineer to program and update the firmware.
https://github.com/autosportlabs/AnalogX

If you are looking for a quantity OEM-style purchase, we can be contracted for these services. Just email [email protected] and we can help out.

Thank you,