Hardwie Electronics Logo
  • Home

  • Shop

  • Downloads

  • Dealers

  • About Us

  • Contact

  • Forum

  • More

    Use tab to navigate through the menu items.
    uk.png
    0
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    Sparkystav
    Mar 09

    CAN output setup

    in Welcome to the Tech Forum

    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




    6 comments
    0
    6 Comments

    Share Your ThoughtsSign up to leave a comment.

    G
    George Stokes
    Mar 14

    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.


    Like

    S
    Sparkystav
    Mar 10

    Spending today having a play about, I think the issue is in the LSB requirement. I’m assuming the PDM sends in MSB?

    Like
    G
    George Stokes
    Mar 14
    Replying to

    The bytes are orders MSB first yes. It may not be possible to format the data as you require, as converting to LSB first isn't straight forward.


    Like

    S
    Sparkystav
    Mar 10

    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.

    Like

    S
    Sparkystav
    Mar 10

    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.


    Like

    zarpspeed
    Mar 10

    Do you have more information on what dash? Is there any documentation? The CAN Output is sending bytes not bits

    Like
    6 comments
    Similar Posts
    • CAN Output - AIM
    • Function for CAN output?
    • Output status CAN
    • LinkedIn - Black Circle
    • Instagram - Black Circle
    • Facebook - Black Circle

    ©2020 Hardwire Electronics Ltd

    ​