GithubHelp home page GithubHelp logo

racechrono-canbus's People

Contributors

joeroback avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

racechrono-canbus's Issues

Raw CAN logs

Hello Joe,

Is there any chance you could attach any raw CAN logs you may have collected while developing this?
I am working on implementing the CRC on acceleration messages 0x199, 0x19A...

Thank you.

Read driving mode

First of all; thank you for your hard work. I've seen the post on bimmerpost and I'm pretty impressed of your hard work!

I'm in the same boat in reverse-engineering the canbus and would like to know what driving-mode (e.g. eco/normal/sport) is in at all times for the engine and/or transmission. I've kinda guessed that it's provided in canbus but can't seem to find it.

I've looked at your Google doc but didn't find it in there too.

Do you perhaps know the ID[hex]? Or if you can/want, help me find it?

p.s. I own a 3D-printer and can help designing a case for the unit if you give me the dimensions.

BMW G series CAN Logs

Do you have any of the raw CAN logs you used to discover the additional information on the CAN bus? This would be very useful to have for people like me in the reverse engineering community focused on reusing components on Electric Conversions.

looks the same as the G29 codes

the main point, you may find this useful - stumbled on this whilst researching somebody else doing the same but with G29/J29 and feeding racecapture

I've been reading your posts over the web, to basically try and do the same and gather some metrics for track use, going to start getting a working setup on my daily g01, then on to an F20 b58 after I acquire one in the spring - think I'll go with a CSS Electronics CL2000 + their passive crocodile clip to start getting data out, then use the same approach as you.

discussion: how are you finding racechrono? it looks great, but I'm already frustrated by the requirement of BLE rather than a usb driver or enet straight in to a device, struggling to find an alternative for real time rather than post analysis (where we can just transform data) - right now I know I'll be comfortable doing the transformations, decode and recode in to any media type, but which software to ultimately use to review gps+camera+throttle/brake/steering etc is throwing me a bit, they're all very closed, unless you can enlighten or suggest?

Transmitting messages

Hey this is some beautiful code. This is my first Arduino project so please bare with me. I'm trying to set up the controller so that it would be able to transmit messages as well. The issue is that the RX interrupt is never triggered after I load a frame and transmit with twai_ll_set_cmd_self_rx_request(). Here are the changes I've made:

  1. Set mode to TWAI_MODE_NO_ACK. I currently only have one board to play around with so I can't connect another node yet.
  2. Set the TX pin
    gpio_set_pull_mode(CAN_TX_PIN, GPIO_FLOATING);
    esp_rom_gpio_connect_out_signal(CAN_TX_PIN, TWAI_TX_IDX, false, false);
    esp_rom_gpio_pad_select_gpio(CAN_TX_PIN);
    gpio_set_direction(CAN_TX_PIN, GPIO_MODE_OUTPUT);
  1. In my send method, I load a message frame with twai_ll_set_tx_buffer(dev, &tx_buffer) then call twai_ll_set_cmd_tx(dev) or twai_ll_set_cmd_self_rx_request(dev) but neither triggers the RX interrupt.

twai_ll_is_last_tx_successful() return false and twai_ll_get_status() returns 0x00000030.

What am I missing? My goal is to take a 0-5v input from an ethanol analyzer and send a zeitronix formatted message to bootmod3. Any help is appreciated.

Hello, I tried your codes on a esp32-s3 dev module, this came from the serial port, any idea what's wong?

Starting up on core 1
Bluetooth LE starting...
Bluetooth LE MAC: 34:85:18:bc:fd:29

Bluetooth LE started!

Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1).

Core 1 register dump:
PC : 0x403821d5 PS : 0x00060a34 A0 : 0x8037f26f A1 : 0x3fcebe00
A2 : 0x00000002 A3 : 0x3fc9d800 A4 : 0x00000004 A5 : 0x00060a23
A6 : 0x00060a23 A7 : 0x00000001 A8 : 0x00000001 A9 : 0x00000001
A10 : 0x00000001 A11 : 0x00001023 A12 : 0x0000101f A13 : 0x00060a23
A14 : 0x02cec5f0 A15 : 0x00ffffff SAR
: 0x00000018 EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x40056f5c LEND : 0x40056f72 LCOUNT : 0xffffffff

Backtrace: 0x403821d2:0x3fcebe00 0x4037f26c:0x3fcebe40 0x42009829:0x3fcebe70 0x42003331:0x3fcebea0 0x4200336d:0x3fcebf50 0x42003045:0x3fcec030 0x42009f7a:0x3fcec060

Core 0 register dump:
PC : 0x420928ae PS : 0x00060834 A0 : 0x82010940 A1 : 0x3fcf4730
A2 : 0x00000000 A3 : 0x4207c21c A4 : 0x00060120 A5 : 0x80000000
A6
: 0x02c98320 A7 : 0x00ffffff A8 : 0x8201047a A9 : 0x3fcf4700
A10 : 0x00000000 A11 : 0x3fc98310 A12 : 0x3fc98310 A13 : 0x00000000
A14 : 0x00060120 A15 : 0x00000000 SAR : 0x0000001d EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x420928ab:0x3fcf4730 0x4201093d:0x3fcf4750 0x40380728:0x3fcf4770

ELF file SHA256: 50a3a0a7f18cc6b4

Guru Meditation Error: Core 1
panic'ed (Interrupt wdt timeout on CPU1).

Core 1 register dump:
PC : 0x40386ae3 PS : 0x00020534 A0 : 0x8206f96a A1 : 0x3fcebc10
A2 : 0x00020523 A3 : 0xa5a5a5a5 A4 : 0x8206f96a A5 : 0x00060525
A6 : 0xfffbfff0 A7 : 0x00000046 A8 : 0x3fc98c34 A9 : 0x00000001
A10 : 0x60000000 A11 : 0x00000001 A12 : 0x0000000a A13 : 0x3fcebbfc
A14 : 0x00000001 A15 : 0x3fcf4770 SAR : 0x0000000a EXCCAUSE: 0x000
00006
EXCVADDR: 0x00000000 LBEG : 0x400570e8 LEND : 0x400570f3 LCOUNT : 0x00000000

Backtrace: 0x40386ae0:0x3fcebc10 0x4206f967:0x3fcebc20 0x4206ff69:0x3fcebc40 0x42010e1a:0x3fcebc60 0x4201110e:0x3fcebcd0 0x40377331:0x3fcebd20 0x40376cc0:0x3fcebd40 0x00040022:0x3fcebe00 |<-CORRUPTED

Core 0 register dump:
PC : 0x420928ae PS : 0x00060834 A0 : 0x82010940 A1 : 0x3fcf4730
A2 : 0x00000000 A3 : 0x4207c21c A4 : 0x00060120 A5 : 0x80000000

A6 : 0x02c98320 A7 : 0x00ffffff A8 : 0x8201047a A9 : 0x3fcf4700
A10 : 0x00000000 A11 : 0x3fc98310 A12 : 0x3fc98310 A13 : 0x00000000
A14 : 0x00060120 A15 : 0x00000000 SAR : 0x0000001d EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x420928ab:0x3fcf4730 0x4201093d:0x3fcf4750 0x40380728:0x3fcf4770

ELF file SHA256: 50a3a0a7f18cc6b4

Re-entered core dump! Exc
eption happened during core dump!
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2a (SPI_FAST_FLASH_BOOT)
Saved PC:0x4201101a
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a68
entry 0x403c98d4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.