Evening, I’m trying to use the CAN function to trigger indications (lights on, full beam, indicator, etc) on my dashboard. The relevant inputs are working and functional but I can’t get the dash to see them over CAN.
Unfortuantly I can’t adjust the can addresses the dash reads for these inputs so need to set up hardwire to cater for it.
I’ve been told the base address should be 601, and the the digital inputs 1-7 are LS first, unsigned, width 1, and that bit 7 of each byte should represent on/off
Digital input 1 should be start position 7, DI2 start position 15, and so on.
below is how I’ve set the PDM up, am I close or got it completely wrong?
cheers
Hi, Please can you send an email to contact@hardwire-electronics.co.uk with the full documentation you have. From what i can see, we may need to set up some maths channels to format the data as you require.
Spending today having a play about, I think the issue is in the LSB requirement. I’m assuming the PDM sends in MSB?
This is the data I have for their I/o extender:
Data is organised in LSB first.
The data format is as follows:
Register addresses:
0x00 Digital Out
0x01 Digital Inputs
0x02 Analogue inputs 0-3
0x03 Analogue inputs 4-7
0x04 Settings.
0x01 Digital Inputs.
Bit 0-6 of each byte represents the number of edges since the last update.
Bit 7 represents the state of the input.
The maximum number of edges can not exceed 127. The counter will overflow and start counting from zero if the number of edges exceeds 127.
The sampling frequency is 10khz.
It’s a Powertune dash.
speaking to them ive got some documentation, but effectively the firmware has the channels it can receive built in and it’s not user accessible to change. the channels I’m trying to use are the ones their own I/o extender would use - I’m trying to get the Hardwire to simulate it.
Do you have more information on what dash? Is there any documentation? The CAN Output is sending bytes not bits