BMW ConnectedDrive Integration

Posted on
Wed Oct 02, 2019 12:01 pm
FlyingDiver online
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: BMW ConnectedDrive Integration

Send me the script. I have an 2020 X4 M40i on order....

Or just a pointer to the GitHub repository you started from.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Oct 02, 2019 2:57 pm
Turribeach offline
Posts: 429
Joined: Feb 06, 2015
Location: London, UK

Re: BMW ConnectedDrive Integration

Sorry guys I still haven't been able to work on this, very busy at work. But on the positive side I am learning Python at work (Machine Learning) so hopefully soon I will have some time to spend on this. Will post something when I have it.

Posted on
Wed Oct 02, 2019 3:23 pm
FlyingDiver online
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: BMW ConnectedDrive Integration

Turribeach wrote:
Sorry guys I still haven't been able to work on this, very busy at work. But on the positive side I am learning Python at work (Machine Learning) so hopefully soon I will have some time to spend on this. Will post something when I have it.


Well, most people here know I can write a new plugin from scratch in under a week. So unless you have something before I get my new car, I'll probably beat you to it. :)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Oct 02, 2019 3:34 pm
Turribeach offline
Posts: 429
Joined: Feb 06, 2015
Location: London, UK

Re: BMW ConnectedDrive Integration

I will be happy to be beaten :D

I will upload what I got tomorrow.

Posted on
Thu Oct 03, 2019 3:41 pm
Turribeach offline
Posts: 429
Joined: Feb 06, 2015
Location: London, UK

Re: BMW ConnectedDrive Integration

Hi, the stuff I got working is basically this script:

https://github.com/jupe76/bmwcdapi/blob ... mwcdapi.py

which I hacked and removed to call directly from the command line (see https://pastebin.com/5KsXMtFb). Just edit email, password and VIM and call "bmwcdapi.py --printall". If you do get a plugin done I will be certainly helping testing it at least. :lol:

Posted on
Mon Dec 02, 2019 9:23 am
ryanbuckner offline
Posts: 1075
Joined: Oct 08, 2011
Location: Northern Virginia

Re: BMW ConnectedDrive Integration

This would be a great plugin.

Is there a forum for gig support?

Posted on
Mon Dec 09, 2019 7:01 am
gillekes offline
Posts: 54
Joined: Oct 28, 2011

Re: BMW ConnectedDrive Integration

+1 for this plugin!


Enviado do meu iPhone usando o Tapatalk

Posted on
Mon Dec 09, 2019 7:55 pm
FlyingDiver online
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: BMW ConnectedDrive Integration

First test release for a Connected Drive plugin available. See viewtopic.php?f=216&t=23303

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Dec 12, 2019 8:21 pm
ryanbuckner offline
Posts: 1075
Joined: Oct 08, 2011
Location: Northern Virginia

Re: BMW ConnectedDrive Integration

I just tried the test release with my 2019 540i. Here's the output for the car from the plugin:

Code: Select all
Dec 12, 2019 at 9:15:37 PM
   BMW Connected Drive             Vehicle Data:
{
    "XXXXXXXXXXXX55588": {
        "DCS_CCH_Activation": "NA",
        "DCS_CCH_Ongoing": false,
        "cbsData": [
            {
                "cbsDescription": "Next service due when the stated distance has been covered or by the specified date.",
                "cbsDueDate": "2020-08",
                "cbsRemainingMileage": 2100,
                "cbsState": "OK",
                "cbsType": "OIL"
            },
            {
                "cbsDescription": "Next visual inspection due when the stated distance has been covered or by the stated date.",
                "cbsDueDate": "2021-08",
                "cbsRemainingMileage": 17000,
                "cbsState": "OK",
                "cbsType": "VEHICLE_CHECK"
            },
            {
                "cbsDescription": "Next change due at the latest by the stated date.",
                "cbsDueDate": "2021-07",
                "cbsState": "OK",
                "cbsType": "BRAKE_FLUID"
            }
        ],
        "checkControlMessages": [],
        "doorDriverFront": "CLOSED",
        "doorDriverRear": "CLOSED",
        "doorLockState": "UNLOCKED",
        "doorPassengerFront": "CLOSED",
        "doorPassengerRear": "CLOSED",
        "hood": "CLOSED",
        "internalDataTimeUTC": "2019-12-13T01:03:52",
        "mileage": 36939,
        "parkingLight": "OFF",
        "position": {
            "heading": 295,
            "lat": 39.007812,
            "lon": -77.376686,
            "status": "OK"
        },
        "positionLight": "OFF",
        "publicKey": "readacted",
        "rearWindow": "INVALID",
        "remainingFuel": 25,
        "remainingRangeFuel": 249,
        "remainingRangeFuelMls": 154,
        "singleImmediateCharging": false,
        "steering": "LH",
        "sunroof": "CLOSED",
        "trunk": "CLOSED",
        "updateReason": "VEHICLE_SHUTDOWN",
        "updateTime": "2019-12-13T01:03:52+0000",
        "vehicleCountry": "US",
        "vin": "XXXXXXXXXXXX55588",
        "windowDriverFront": "CLOSED",
        "windowDriverRear": "CLOSED",
        "windowPassengerFront": "CLOSED",
        "windowPassengerRear": "CLOSED"
    },
    "vehicles": [
        {
            "a4a": "BLUETOOTH",
            "asymEncryptionMethod": "RSA-2048",
            "bodytype": "G30",
            "brand": "BMW",
            "breakdownNumber": "+4989358957103",
            "carCloud": "ACTIVATED",
            "chargeNow": "NOT_SUPPORTED",
            "chargingControl": "NOT_SUPPORTED",
            "climateControl": "DEPARTURE_TIMER",
            "climateControlRES": "NOT_SUPPORTED",
            "climateFunction": "VENTILATION",
            "climateNow": "ACTIVATED",
            "climateNowRES": "NOT_SUPPORTED",
            "color": "BLACK SAPPHIRE METALLIC",
            "colorCode": "475",
            "countryCode": "V2-US",
            "dealer": {
                "city": "Suitland",
                "country": "US",
                "name": "Passport BMW",
                "phone": "+1 301 4232700",
                "postalCode": "20746",
                "street": "4730 Auth Place"
            },
            "doorLock": "ACTIVATED",
            "doorUnlock": "ACTIVATED",
            "driveTrain": "CONV",
            "egoVehiclePath": "G30",
            "fuelType": "PETROL",
            "hasAlarmSystem": true,
            "hmiVersion": "ID5",
            "hornBlow": "ACTIVATED",
            "hub": "HUB_US",
            "intermodalRouting": "NOT_AVAILABLE",
            "ipa": "NOT_SUPPORTED",
            "lastDestinations": "NOT_SUPPORTED",
            "lightFlash": "ACTIVATED",
            "lscType": "LSC_BASIS",
            "model": "540i xDrive",
            "onlineSearchMode": "MAP",
            "rangeMap": "NOT_SUPPORTED",
            "remote360": "ACTIVATED",
            "remote360packageEncryption": "ZIP",
            "remoteSoftwareUpgrade": "NOT_SUPPORTED",
            "sendPoi": "ACTIVATED",
            "smartSolution": "NOT_SUPPORTED",
            "statisticsAvailable": false,
            "statisticsCommunityEnabled": false,
            "steering": "LH",
            "vehicleFinder": "ACTIVATED",
            "vehicleFinderRestriction": "NONE",
            "vin": "XXXXXXXXXXXX55588",
            "yearOfConstruction": 2018
        }
    ]
}


Posted on
Thu Dec 12, 2019 8:22 pm
FlyingDiver online
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: BMW ConnectedDrive Integration

Please post this in the other thread, which is dedicated to the new plugin. But that looks almost identical to my X4 M40i. Did you get any errors in the log?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Dec 12, 2019 8:28 pm
ryanbuckner offline
Posts: 1075
Joined: Oct 08, 2011
Location: Northern Virginia

Re: BMW ConnectedDrive Integration

yeah I get these every time it runs:

Code: Select all
Dec 12, 2019 at 9:25:21 PM
   Error                           device "Ryan's BMW 540ix" state key publicKey not defined (ignoring update request)
   Error                           device "Ryan's BMW 540ix" state key asymEncryptionMethod not defined (ignoring update request)
   Error                           device "Ryan's BMW 540ix" state key egoVehiclePath not defined (ignoring update request)
   Error                           device "Ryan's BMW 540ix" state key remote360packageEncryption not defined (ignoring update request)

Who is online

Users browsing this forum: No registered users and 2 guests