More than four analogX on a single CAN bus

Q&A for AnalogX Analog to CAN interface. <a href="https://wiki.autosportlabs.com/AnalogX">Installation and Operation Guide</a>
Post Reply
jsa
Posts: 2
Joined: Wed Apr 03, 2019 1:31 am

More than four analogX on a single CAN bus

Post 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 = &#123;1, 0, 1, 0, 0x000E3700, 0x1FFFFF00&#125;; // g_can_base_address, ANALOGX_CAN_FILTER_MASK
.
.
.
offset |= palReadPad&#40;GPIOA, ADR1_ADDRESS_PORT&#41; == PAL_HIGH ? 0x01 &#58; 0x00;
offset |= palReadPad&#40;GPIOA, ADR2_ADDRESS_PORT&#41; == PAL_HIGH ? 0x02 &#58; 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?
Cheers
John

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Hi,

With updated firmware, you can have it listen on any CAN base ID as needed. No limitations.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

jsa
Posts: 2
Joined: Wed Apr 03, 2019 1:31 am

Post 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?
Cheers
John

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post 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 sales@autosportlabs.com and we can help out.

Thank you,
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Post Reply