can bus sniffer?

  • 5 Replies
  • 389 Views
*

Offline 65fpvmustang

  • Sr. Member
  • ****
  • 211
    • 65 mustang 83 ranger
can bus sniffer?
« 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
  • ****
  • 211
    • 65 mustang 83 ranger
Re: can bus sniffer?
« 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
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: can bus sniffer?
« 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 dodge, Colt Cam, head worked, NV5600, 3.55's, SB clutch, Ford manual hubs w. hawk brakes, custom flatdeck, custom aluminum bumper, cab off restoration, totally new engine, Mahle pistons @19:1..HE351VE with 67mm turbine and 67x95mm compressor
440hp/1000 ft lb @ 2400 RPM

*

Offline 65fpvmustang

  • Sr. Member
  • ****
  • 211
    • 65 mustang 83 ranger
Re: can bus sniffer?
« 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
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: can bus sniffer?
« 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 dodge, Colt Cam, head worked, NV5600, 3.55's, SB clutch, Ford manual hubs w. hawk brakes, custom flatdeck, custom aluminum bumper, cab off restoration, totally new engine, Mahle pistons @19:1..HE351VE with 67mm turbine and 67x95mm compressor
440hp/1000 ft lb @ 2400 RPM

*

Offline 65fpvmustang

  • Sr. Member
  • ****
  • 211
    • 65 mustang 83 ranger
Re: can bus sniffer?
« 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.