Hi everybody,
I’am new to macchina M2 and currently trying to get some value from ECU (Subaru Impreza 2015).
I receive messages with various IDs but when I send request, nothing back.
I am working with Scripting Interface:
function setup ()
{
    host.setTickInterval(1000);
    can.setFilter(0x700, 0x700, 0); //Allow responses from ID 7XX
    // ECU requests: 0x7DF or 0x7E0
    // ECU response: 0x7E8
}
function gotCANFrame (bus, id, len, data)
{
    host.log("Bus: " + bus + "  id: " + id.toString(16));
}
function gotISOTPMessage(bus, id, len, data)
{
    host.log("ISOTP bus " + bus + "  ID: " + id.toString(16));
}
function gotUDSMessage(bus, id, service, subFunc, len, data)
{
    host.log("UDS Bus: " + bus + "  ID: " + id.toString(16) + "    Sv: " + service.toString(16));
}
function tick()
{
    can.sendFrame(0, 0x7E0, 8, [0x01, 0x05, 0, 0, 0, 0, 0, 0]); // 0x01 = Service Mode, 0x05 = Engine coolant temperature
    host.log("Sent!");
}
Is something wrong ? I tried 0x7DF and 0x7E0 for requests without success (no response at all, even from 0x7E8).
Maybe Subaru ECU is not at 0x7DF or 0x7E0. Any idea ?
Thanks !
      
    
 Hooray! Another Subaru owner!!! I’m working on writing an iOS app to log data and receive push notifications when problems arise. I’m using the WiFi+BLE interface sold by Macchina. Would either of you be interested in contributing to the m2-ECU communication, as I write the m2-iOS portion?