2021-12-19 10:23:37 -08:00
|
|
|
/*
|
|
|
|
* can_bmw.h
|
|
|
|
*
|
|
|
|
* Created on: Dec 19, 2021
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2021
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/**
|
|
|
|
* e46 data is from http://forums.bimmerforums.com/forum/showthread.php?1887229
|
|
|
|
*
|
|
|
|
* Same for Mini Cooper? http://vehicle-reverse-engineering.wikia.com/wiki/MINI
|
|
|
|
*
|
|
|
|
* All the below packets are using 500kb/s
|
|
|
|
*
|
|
|
|
* for verbose use "set debug_mode 26" command in console
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define CAN_BMW_E46_SPEED 0x153
|
|
|
|
#define CAN_BMW_E46_RPM 0x316
|
|
|
|
#define CAN_BMW_E46_DME2 0x329
|
|
|
|
#define CAN_BMW_E46_CLUSTER_STATUS 0x613
|
|
|
|
#define CAN_BMW_E46_CLUSTER_STATUS_2 0x615
|
|
|
|
|
|
|
|
#define CAN_BMW_E90_TORQUE_BRAKE 0x0A8
|
|
|
|
// 10ms period
|
|
|
|
#define CAN_BMW_E90_TORQUE_2 0x0A9
|
2021-12-23 13:41:06 -08:00
|
|
|
|
|
|
|
// https://www.loopybunny.co.uk/CarPC/can/0AA.html
|
2021-12-19 10:23:37 -08:00
|
|
|
// 10ms period
|
|
|
|
#define CAN_BMW_E90_RPM_THROTTLE 0x0AA
|
2021-12-19 12:52:08 -08:00
|
|
|
|
2021-12-19 19:08:35 -08:00
|
|
|
// MECH
|
|
|
|
#define CAN_BMW_E90_TORQUE_DEMAND2 0x0B5
|
2021-12-19 10:23:37 -08:00
|
|
|
// 20ms period
|
|
|
|
#define CAN_BMW_E90_TORQUE_DEMAND 0x0B6
|
2021-12-19 19:08:35 -08:00
|
|
|
// MECH
|
|
|
|
#define CAN_BMW_E90_TRANSMISSION_DATA 0x0BA
|
2021-12-19 12:52:08 -08:00
|
|
|
// Requirement wheel torque 0x0BF
|
2021-12-19 10:23:37 -08:00
|
|
|
|
|
|
|
#define CAN_BMW_E90_STEERING_WHEEL 0x0C4
|
|
|
|
#define CAN_BMW_E90_WHEEL_SPEEDS 0x0CE
|
|
|
|
// Terminal Status, 100ms period
|
|
|
|
#define CAN_BMW_E90_IGNITION_KEY 0x130
|
|
|
|
|
2021-12-19 19:08:35 -08:00
|
|
|
|
|
|
|
#define CAN_BMW_E65_GEAR_SELECTOR 0x192
|
2021-12-19 10:23:37 -08:00
|
|
|
#define CAN_BMW_E90_BRAKING 0x19E
|
2021-12-19 19:08:35 -08:00
|
|
|
// MECH Getriebedaten 2
|
|
|
|
#define CAN_BMW_E90_GEARBOX_DATA_2 0x1A2
|
|
|
|
|
2021-12-19 10:23:37 -08:00
|
|
|
// Engine data
|
2021-12-24 14:35:27 -08:00
|
|
|
// https://github.com/HeinrichG-V12/E65_ReverseEngineering/blob/main/docs/0x1D0.md
|
2021-12-19 10:23:37 -08:00
|
|
|
#define CAN_BMW_E90_COOLANT 0x1D0
|
2021-12-19 19:08:35 -08:00
|
|
|
// MECH Anzeige Getriebedaten
|
|
|
|
#define CAN_BMW_E90_TRANSMISSION_DISP 0x1D2
|
2021-12-19 10:23:37 -08:00
|
|
|
|
2021-12-19 12:52:08 -08:00
|
|
|
// SEAT_BELT 2FA
|
|
|
|
// DOOR_STATUS 2FC
|
|
|
|
|
2021-12-23 13:41:06 -08:00
|
|
|
// MECH Status Gang
|
|
|
|
#define CAN_BMW_E90_GANG_STATUS 0x304
|
2021-12-19 19:08:35 -08:00
|
|
|
|
2021-12-19 12:52:08 -08:00
|
|
|
// EXTERNAL_TEMP_TIME 0x310
|
|
|
|
|
2021-12-23 13:41:06 -08:00
|
|
|
// Fahreranzeige Drehzahlbereich
|
|
|
|
#define CAN_BMW_E90_DASH_ON 0x332
|
|
|
|
|
2021-12-19 12:52:08 -08:00
|
|
|
// MILEAGE_RANGE 0x310
|
2021-12-19 10:23:37 -08:00
|
|
|
//#define CAN_BMW_E90_HAND_BRAKE 0x34F
|
2021-12-19 19:08:35 -08:00
|
|
|
// WHEEL_TOLERANCE 0x374
|
|
|
|
// MECH Getriebedaten 3 0x3B1
|
2021-12-23 13:59:30 -08:00
|
|
|
|
|
|
|
// https://www.loopybunny.co.uk/CarPC/can/3B4.html
|
2021-12-24 14:35:27 -08:00
|
|
|
// Powermanagement Batteriespannung
|
|
|
|
#define CAN_BMW_E90_VOLTAGE 0x3B4
|