Author Topic: can bus sniffer?  (Read 1263 times)

Offline 65fpvmustang

  • Sr. Member
  • ****
  • Posts: 211
    • 65 mustang 83 ranger
on: April 25, 2016, 04:46:57 PM
I'm trying to read the can bus code. For diagnosing ms3 can bus issues with turbo.
I tried a few different can bus reader sketches with no luck.
what do you guys use?

Thanks



Offline 65fpvmustang

  • Sr. Member
  • ****
  • Posts: 211
    • 65 mustang 83 ranger
Reply #1 on: April 25, 2016, 04:50:03 PM
current ms3 alpha code
Code: [Select]
        /* Typically the turbo wants 250k baud. (Ford application 500k?) */
        if (ram5.can_bcast2 & CAN_BCAST2_HE351) {
            unsigned int bv;
            /* holset HE351VE VGT turbo and a wastegate
            29bit CAN message 0x0cffc600
            8 bytes
            D0, D1  = 16 bit little endian value 0-1000 for position
            D1 = 0x02
            D2 = 0x01
            D3 = 0xff
            D4 = 0xff
            D5 = 0xff
            D6 = 0xff
            D7 = 0xff
            ----------------------
            */
            bv = outpc.boostduty * 10; /* convert 0-100 to 0-1000 */
            data[0] = bv & 0xff;
            data[1] = bv >> 8;
            data[2] = 0x01;
            data[3] = 0xff;
            data[4] = 0xff;
            data[5] = 0xff;
            data[6] = 0xff;
            data[7] = 0xff;
            send_can29bit(0x0cffc600, data, 8);
        }

if your interested.



Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • Posts: 1079
  • Jack of all trades
    • got 4 cummins
Reply #2 on: April 25, 2016, 09:26:43 PM
I don't quite follow what you're trying to do here
do you have a second unit you can plug into the CAN bus to see whats actually being sent?

'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles


Offline 65fpvmustang

  • Sr. Member
  • ****
  • Posts: 211
    • 65 mustang 83 ranger
Reply #3 on: April 26, 2016, 05:45:10 AM
i didn't right the code but im trying to see whats actually being sent.
I have an extra Arduino and shield.



Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • Posts: 1079
  • Jack of all trades
    • got 4 cummins
Reply #4 on: April 26, 2016, 06:07:35 AM
take a look at the arduino CAN library examples, I think there's something workable in there with a bit of modification IIRC

'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles


Offline 65fpvmustang

  • Sr. Member
  • ****
  • Posts: 211
    • 65 mustang 83 ranger
Reply #5 on: April 26, 2016, 06:32:37 AM
tried the 4 examples in can bus master library.
if i turn ms3 coolant broadcast i get some gibberish code.
but nothing from lil black box or ms3 he351 broadcast.

I just need a good sniffer and instructions for dummies lol.