Lil' Blackbox

Coding => v1.0 - v1.1 => Topic started by: 65fpvmustang on April 25, 2016, 04:46:57 PM

Title: can bus sniffer?
Post by: 65fpvmustang 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
Title: Re: can bus sniffer?
Post by: 65fpvmustang on April 25, 2016, 04:50:03 PM
current ms3 alpha code
        /* 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.
Title: Re: can bus sniffer?
Post by: Rx7man 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?
Title: Re: can bus sniffer?
Post by: 65fpvmustang 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.
Title: Re: can bus sniffer?
Post by: Rx7man 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
Title: Re: can bus sniffer?
Post by: 65fpvmustang 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.