Giter Site home page Giter Site logo

adamtheone / candrive Goto Github PK

View Code? Open in Web Editor NEW
512.0 49.0 144.0 5.49 MB

Tools for hacking your car

Home Page: https://www.youtube.com/playlist?list=PLNiFaO8hU1z0o_6DSxk-jcVAM3UCUR-pY

License: MIT License

C++ 0.24% Python 1.21% C 98.26% Assembly 0.29%
can can-bus car-hacking arduino python pyqt5

candrive's Introduction

canDrive

Tools for hacking your car. Please concider checking out the tutorials made about this project: https://www.youtube.com/playlist?list=PLNiFaO8hU1z0o_6DSxk-jcVAM3UCUR-pY

I've created this google sheet, so everybody can freely add their decoded IDs and packets, so it's easier for the community to collaborate: https://docs.google.com/spreadsheets/d/1eBKiTwEE6aPnfw2EfSHItLeMz00fJq0Y0L99Ym7fKwU/edit?usp=sharing

Content

  • 01_canSniffer_Arduino: This code runs on your arduino sniffer device and creates an interface between the car and the GUI.
  • 02_canSniffer_GUI: Powerful and easy-to-use graphical sniffer application used for reverse engineering CAN packets. Written in Python.
  • 03_canSniffer_HW: Hardware projects for the custom OBD2 module. Made in Altium Designer.
  • 04_canSniffer_FW: Embedded code running on the custom OBD2 module.

Description

01_canSniffer_Arduino

This code creates the interface between the car and the canSniffer_GUI application. If the RANDOM_CAN define is set to 1, this code is generating random CAN packets in order to test the higher level code. The received packets will be echoed back. If the RANDOM_CAN define is set to 0, the CAN_SPEED define has to match the speed of the desired CAN channel in order to receive and transfer from and to the CAN bus. Required arduino packages:

  • CAN by Sandeep Mistry (https:github.com/sandeepmistry/arduino-CAN)

Required modifications:

  • MCP2515.h: 16e6 clock frequency reduced to 8e6 (depending on MCP2515 clock)
  • MCP2515.cpp: extend CNF_MAPPER with your desired CAN speeds

02_canSniffer_GUI

Python 3 is required for this project, 3.8 is preferred. The GUI is based on pyQt. This project contains my decoded packets in save/decodedPackets.csv. The required python packages can be installed with:

$ pip install -r requirements.txt

03_canSniffer_HW

Altium Designer projects for the hardware projects. Currently version 2. The module consists of 2 PCBs (board1 & board2). The libraries of the used components can be found under the common folder. Schematics can also be found as PDF files.

04_canSniffer_FW

(BETA) Only board1 beta firmware is uploaded yet. It is a STM32CubeIDE project for the STM32F413. To be uploaded: nRF project for board2.

To be uploaded

  • Final version of the firmware.
  • (at some point) Source code for the mobile application that is compatible with the v2 hardware.
  • (potentially) New versions of the hardware module.

candrive's People

Contributors

adamtheone avatar marufshidiq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

candrive's Issues

GM Single Wire 33k - cant send packets

Hi,

i have started using your code for GMLAN sniffing on the low speed 29bit bus, i have some codes i would like to send back however when i do it never seems to work or my whole car electronics will reset - is there something i'm missing to get this to work to send 29bit packets back to the car?

Thank you

Can't get it to start (after installing)

I'n trying to get CanDrive running in Ubuntu 20. I've done some CAN sniffing with Arduino, but I'm pretty new to Linux and Python... I'm struggling to even get CanDrive to start:

2020-11-27 at 6 15 PM

Is there any kind of a walkthrough or instructions for a new person?

GUI on Silicone Mac

Is it possible, to use the GUI somehow on Apple Silicon Mac (MBP 2023 M2 Pro).
When installing the depencies i am getting errors relating to PyQT5.

It seems like PyQT5 is not nativly supported on Silicon Mac's.
I am not into Python right now, but updating to PYQT6 should work on Silicon.

Does by any chance someone have a working/valid workaround?

Br

README.md Update - High DPI Scaling In PyQt5

On high resolution monitors the layout of the GUI is not correct when scaling is enabled. Potentially add functionality to support High DPI monitors ie: check box and subsequent restart or add the below to the readme file for others to know where to change.

canSniffer_ui.py (Change to)

from PyQt5 import QtCore, QtGui, QtWidgets

QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True) #enable highdpi scaling
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True) #use highdpi icons

PS: Adding the above worked for me. No idea if it is the correct way to achieve the desired outcome. Thanks!

no any data recived

hey adam,
first of all thanks for this awesome project I learned a lot from it

I am using Chevrolet Optra 2010 which is known by Lacetti
I connected to OBD-II to pin 6 and 14
changed the oscillator crystal clock to #define MCP2515_DEFAULT_CLOCK_FREQUENCY 8e6 in MCP2515.h
I tried the example codes (RPM and read) plus your code
all of them don't give me any reading (not even dump unreadable frames or data)

any suggestions or solutions?

No data being received with alfa romeo 147

Hi, I’ve downloaded everything required and set up my arduino as you did in the video.
When arduino is in random data mode i get the normal packets as i should, but when i change it to the mode where its supposed to receive data from the car it displays 0 information.

the car runs on 500kbps and I’ve tried all the speeds, when I select mid speed the can system of my car crashes completely, requiring me to turn it off, update the speed in arduino and then turn it back on.

im just wondering why no data is being received at all, if i use canreceiver from the examples i get nothing again, when using some other examples from other libraries i can get it to send data and crash the canbus once again but no data is received

even tried another arduino, another board, all for nothing, a friend of mine made a module with arduino nano and mcp which does needle sweep and shows digital speed on the dash and I tried sniffing that data aswell, directly connecting both the modules without the car,connecting it to the car and trying like that also resulted without any data shown in the gui.

WHAT AM I DOING WRONG LOL.

Crashes with exit code -1073741571 (0xC00000FD)

I can only get this to work on the ms-can bus.

To clarify, my vehicle is a Mazda BT50, they use the same running gear as a Ford Ranger. The ms-can is pretty much Ford.
There are 2 buses with ms-can occupying pin 3/11 on the obd port. There is a sync module between the 2 buses, but I don't think it passes over all information. Might only pass over information requested.

There is no filter on the OBD port. Both MS and HS can have direct access to the buses.

HS-Can runs at 1000
MS-Can runs at 250

While trying the standard (hs) can. Once ignition is on, the pycharm script will exit with "Process finished with exit code -1073741571 (0xC00000FD)". The can system will wake up with key on accessories, it only exits when key is turned to ignition.

Not sure where to start with finding out what is going on. Would be happy to do any debugging.

The arduino output looks normal. Not sure if the higher bit rate is causing the script to exit or not, as the ms-can seems to run fine. Have tried this on 2 different computers to rule out a hardware/memory limitation. Tried a few different mcp2515 modules, I also tried 3 different Nano's and even a Mega.

I'm the same person that posted on the youtube video.

4 byte ID corrupts on sending

I do not know if you are still supporting this... I hope so its the best I've seen!! Great job.

For Info: I have installed the canSniffer on arduino and its running in randomCAN mode. I have installed canDrive on Visual Studio running python 3.9 environment (3.8 not available for VS).

I notice some IDs are extended, like this (OK I dont undertstand why for now but I'm just getting started)

image

If we save to the decoded list the extended ID then this is OK

image

And we can resend the message and the extended ID is still correct on the bottom part of the screen but the resent message is logged incorrectly, only the last 3 of the ID are logged.

image

image

Also, when I resend the message I get this, only the last 3 of the ID are logged.

image

Please help reverse effects of canbus hack.

Hi Adam,

I've watched your internet tutorials with interested, hence the approach here.

Some help is much needed and appreciated. I'm a 45 year old disabled man that lives in Faringdon, Oxfordshire. The disabilities are severe sensory PTSD, agoraphobia and psychogenic hyperventilation.

Since earlier this year the motability Golf has been hacked by people with anti-disability vendettas. They've accessed the canbus remotely so the suspension wallows, shudders and porpoises over undulations. Extensive research was conducted and I'm desperate for the hacking to stop. It's ruining what little quality of life there is.

Can Savvy seems to be able to access various canbus to alter settings? Please can you advise how it can be used to reverse the affects to the suspension? They've also altered another canbus so there's excessive noise and vibration through pedals and steering. Dealer resets haven't worked. All help is much appreciated. It would be much appreciated if we could arrange a video call so I can be shown how to address the issues.

Many thanks in advance,

Josh Ross

Obtaining PIDs using Cansniffer.ino

I am not able to extract PIDs using cansniffer.ino.
I am getting only 10-12 PIDs . Also many time, there is an error of "wrong packets" in the console.

Any idea where am I going wrong and how can this error (""wrong packets" ) be resolved?

Longan CANBED Dual denies to cooperate with the Arduino code...

Hi Adam et al.,
I have one CANBED DUAL hanging around and decided to put it in something useful. I had doubts, (confirmed), that it won't work with your code without some intervention and augmentation of the code. Tweaked the MCP2515.h to reflect the CS and INT pins, to no avail, but, the CANReceiver example from the CAN library worked no problem (In fact, this is the only example that actually worked). Actually, the GUI's terminal window also started receiving the packets prefixed with WRONG PACKET. but only when the CANReceiver example is running!?
Would it be too much to ask, you or anyone here, for some pointers where to look at in order to make them mate and work as intended? I am running out of ideas and frustrated with code review and tweaking...

Thanks...

Tried on my 2018 Alfa Romeo Stelvio and it does not work

I have tried this exact code with Arduino Uno and the MCP2515 module on my 2018 Alfa Romeo Stelvio. It says CAN RX TX Started in the serial monitor and nothing after that.

The only thing weird that happens when connected is that the start/stop button flashes in my car randomly like it's getting some data :)))

Speed is 500 I believe as it is an FCA car.

possibility to log on an SD card

hello, i succesfully filtered the CAN data I needed and now i would like con log them on an sd card; i bought an sd logger shield https://amzn.eu/d/3nkAmTf but the shield cs pin is connected to the pin 10, the same as the MCP2515.
I can write on the sd only if the CAN communication is not active; if I start logging data from CAN i can not communicate with the sd card, i thing because the spi line is occupied by arduino and MCP2515.
My idea so is to log the data, than stop the can communication in order to free the spi line and write data on sd, than re-active the can communication and doing this every loop; I tried using CAN.end(); or CAN.sleep(); but nothing changed.
is my idea completely wrong or it could work? thank you very much.

problem with the rpm counter example

hi, i connected the system to my motorbike: a triumph street triple 2022.
i have an external O2 sensor that i log with arduino and print the readings on excel; i would like to plot also the rpm on excel, so i decoded the can message that contain the rpm value (518 00 00 08 D0 D1 00 00 00 00 00 00).
the rpm value is (D1*256+D0)/4 and the id is 518.
I tried to use the rpm counter example of the library changing the code from Can.write(0x0c) to Can.write(0x0518) but it does not work and the code can not exit from the while cycle.
any idea of how can i fix the problem?
thank you very much.

SavvyCAN compatible Session Files

Hi Adam,
I probably should create a pull request, but I've not got everything set up.
I made a change that you may want to consider, to the save file process that converts to time stamp to ms
Its not pritty, I've not used Python before so its just a logical flow (for me at least)
However, now the file can be loading directly into SavvyCAN for analysis, the program is free download

                    **if item is not None:
                        
                        if column == 0:
                            tempItem = ''
                            for mynext in range(0,len(item.text())):
                                if item.text()[mynext] !='.':
                                    tempItem += item.text()[mynext:mynext+1]
                        else:
                            tempItem = item.text()
                        rowData.append(str(tempItem))**
                    else:
                        rowData.append('')
                writer.writerow(rowData)

Once saved load into SavvyCAN using the "GVRET LOGS" format

image

Download SavvyCAN
https://github.com/collin80/SavvyCAN/releases?page=1

image

image

image

image

Display more than 8 data bytes

Not really an issue but a suggestion. It would be awesome to have more than 8 places for the data bytes. I know it was mainly written with CAN bus in mind which has a max length of 8 data bytes, however there are some protocols which supports more than that. I spent a lot of time reverse engineering the VAN bus used in Peugeot cars where a message could contain up to 30 bytes of data. If you would extend the interface, this could become an universal sniffing tool.

Nice project, and videos by the way ;)

CAN Speed in the activeChannelComboBox CAN_L CAN_M CAN_H How does it work?

Hi! Thank you very much for this work!
Please tell me how this works at Arduino?
I can't understand!
1
in main.py

        if self.activeChannelComboBox.isEnabled():
            txBuf = [0x42, self.activeChannelComboBox.currentIndex()]   # TX FORWARDER
            self.serialWriterThread.write(txBuf)
            txBuf = [0x41, 1 << self.activeChannelComboBox.currentIndex()]  # RX FORWARDER
            self.serialWriterThread.write(txBuf)

Sends this

for CAN_L sent [0x42, 0] [0x41, 1] or [66, 0] [65, 1]
for CAN_M sent [0x42, 1] [0x41, 2] or [66, 1] [65, 2]
for CAN_H sent [0x42, 2] [0x41, 4] or [66, 2] [65, 4]

How does Arduino understand this? And does it work?

I thought it would work here
in canSniffer.ino
CAN.begin(CAN_SPEED)
Where CAN_SPEED can be (33E3) or (95E3) or (500E3)

Sorry for my English

Thank you very mutch!

Is it possible to integrate other hardware like Peak CAN USB FD?

What would I have to change so that the "detour" via the Arduino is not necessary or that in addition to the COM ports the Peak Dongle (USB FD) is also displayed in the available software?

Sorry for the question, but I am not yet 100% immersed in Python and the modules.

How to?

It's not an issue

How to use this tool?
There are three files for Arduino(in arduino folder). What I shoud upload to device to start with GUI tool?

EDITED:

Now I know, sorry:)

Lexus gs450h canbus received but cant send

Hi there i have used your code and the interface
I can receive canbus but when i send some back nothing happens
Close the interface i can see on pycharm teminal ( wrong packet!can RX TX started )
And when this message come the can sniffing stops and i should restart the interface to start snifing again
I dont know whats the issue here

Permission Denied

I'm trying to use the GUI but when i try to connect to the arduino that already have the program running correctly it throws me this error:

Error opening port: could not open port 'COM3': PermissionError(13, 'Access Denied.', None, 5)

I tried launching the program using the prompt in administrator mode but it still won't work

###SPECS:

  • Windows - 11
  • Python - 3.11.9
  • PyQt5 - 5.15.10

Metadata Generation Failed

I'm trying to install the dependencies for the GUI and i found out that there is a problem installing the pyqt5-tools library. Each and every time i try to install it, it send me the following error:

 error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [26 lines of output]
      pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead 
      Traceback (most recent call last):
        File "C:\Users\Elia\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\Elia\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main   
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Elia\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 152, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Elia\AppData\Local\Temp\pip-build-env-op7nzl8h\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
          project = AbstractProject.bootstrap('wheel',
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Elia\AppData\Local\Temp\pip-build-env-op7nzl8h\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 92, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "C:\Users\Elia\AppData\Local\Temp\pip-build-env-op7nzl8h\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
          self.apply_user_defaults(tool)
        File "C:\Users\Elia\AppData\Local\Temp\pip-install-mv34ku4o\pyqt5_8885985acfb84385bd01e038c77ae524\project.py", line 63, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\Elia\AppData\Local\Temp\pip-build-env-op7nzl8h\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\Elia\AppData\Local\Temp\pip-build-env-op7nzl8h\overlay\Lib\site-packages\sipbuild\project.py", line 237, in apply_user_defaults
          self.builder.apply_user_defaults(tool)
        File "C:\Users\Elia\AppData\Local\Temp\pip-build-env-op7nzl8h\overlay\Lib\site-packages\pyqtbuild\builder.py", line 50, in apply_user_defaults
          raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

###SPECS:

  • Windows - 11
  • Python - 3.12.2
  • PyQt5 - 5.15.10

Integration canDrive with OP-COM Interface

I'am use OP-COM interface to sniffing CAN buses in Opel Vectra C using SocketCAN project and opcom.py script, but yours software (canDrive) looks great. May be you would like to integrate your canDrive with OP-COM interface.
opcom.py scripts allows software switching beetwen LOW, MEDIUM or HIGH CAN-BUS in Opel cars.
More info

Issues with Arduino and MCP2515 CAN Bus Module

I'm not able to read out CAN Messages with the provided Code and the MCP2515.
I ordered those on amazon: https://www.amazon.de/gp/product/B01MXYYAEN/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

I already made the adjustments to match the 8e6 clock frequency.
The code also compiles and get's flashed without any problems.

But I only get:
CAN RX TX Started
... on the serial output.

Im currently using a Diamex CAN-Simulator (https://www.diamex.de/dxshop/Diamex-OBD2-Simulator-alle-Protokolle).
There I'm able to select different CAN protocols/speeds. I tested also different speeds and also different MCP2515 modules.

But somehow I'm stuck. Do you have any idea/suggestions for me?

CAN-High works but not CAN-Low

I have an Opel Ampera-e and managed to get data from the CAN-High. I followed the diagrams from your Youtube videos as well as the connection diagram for the "switch-box". Pin 6 to H and Pin 14 to L, on the MCP2515, and 500E3 in the arduino code.

But when I went to read the CAN Low I have tried all different ways. Both connecting the Pins to 1 and 4, as well as 6 and 14. And changing the arduino code CAN_SPEED variable to 33E3. But I get the message , "Starting CAN failed!", both times.

Am I doing something wrong?

Thanks for help.

No CAN packets incoming in random can mode off

Hi. Thank you for this sniffer. It's only one which i found and it works... almost :) So i made .exe file using your python code, because I can't install python at my laptop (i couldn't fix this so i gave up). App works but only if i upload sketch with #define RANDOM_CAN 1. In this mode i get true packets from car and these generated ones. But I can't send any packet back to the car. In RANDOM_CAN 0 i don't get any packets at all. My Arduino works fine, i tested it with examples and my own code too.

Vectra C - communication every 45 seconds?

Szia :-)

I can see we have the same car (I have Vectra C 2.0 2002, motor Y 20 DTH). While I am waiting for the parts to build the device I'd like to ask you if you are by any chance aware of some CAN communication on Vectra C which takes place every 45 seconds?

I am asking because when I start the engine then RPM and speed indicators drop to zero for a moment exactly every 45 seconds and when that happens 4 times then the RPM and speed indicators stay at zero and some warning lights (ABS, alternator, ...) turn on and I can't use signal lights, horn, full beam headlights and the radio turns off.

After turning the engine off and back on everything repeats again and for the next 4 x 45 seconds everything works well. I removed the CIM and cleaned all the connectors but still the same. When the warning lights are on the error reported by OPCOM is "No communication with CIM".

However, after the engine is on for half an hour or maybe an hour (depends on outside temperature and humidity) then everything start working well.

I removed and cleaned UEC, all fuses and some other connectors and added another battery negative to chassis wire but still couldn't find what is causing the problem. The same problem on many Vectra B 1.6i cars could be solved by just removing the cabin light bulb.

Seems as CIM or ECU is trying to communicate with something every 45 seconds and if there is an error then after 4 retries the CIM goes into safe mode. When the CIM is in safe mode hazard lights are still working but there isn't sound of the relay like when everything works well.

In the meantime I tested your GUI program, I still can't test the communication but I can see it's made very well. There is just a small problem, despite the program works well there is a warning:

QWidget::setLayout: Attempting to set QLayout "" on ModernWindow "", which already has a layout

Are you getting the same warning or the library changed? Seems as this could be the solution.

Since you recomended Python 3.8 I am using Python 3.8.10 in virtualenv + Visual Studio Code.

Receiving only one HEX Code

i uploaded the code to UNO and i m getting only one hex code.
i tried Engine RPM code and i m getting RPM Values.

197,00,00,0000BE0002000000
197,00,00,0000BE0003000000
197,00,00,0000BE0004000000
197,00,00,0000BE0005000000
197,00,00,0000BE0006000000
197,00,00,0000BE0007000000
197,00,00,0000BE0008000000
197,00,00,0000BE0009000000

DBC File generation

Will you be considering the DBC file-generating function? and I would like to see the selectable baud rate in the GUI as well.

How to use this?

I am quite new to this, is this sniffer .ino file for loading to Arduino uno to work, but what is the mcp2515.CPP and mcp2515.h file for? How should I use this code to work to read the canbus signal? Sorry for created issue but I can't work out how to use, thank you.

can use with Realdash soft?

Hello Adam. Your work is awesome. I have written you comments on youtube but maybe it is better to leave it here.
after watching your videos I bought the arduino, the shield, an ELM327 ... etc and that's when I came across the Realdash program.
With Realdash, totally digital dashboards are created to which you can add all the elements (ABS warning, turn signals, ODO, fuel gauge ... etc) receiving the information via OBD2.
I'm a very newbie and I don't know how to tackle the project. I have seen that you can create a custom XML with the CAN addresses so that the program interprets it and shows you the data. but I don't understand how to convert the addresses that are in the repository with those of Realdash.
I have also seen in the videos that shows the radio information on the mobile, for example, but I have not located those addresses in the repository. it would be nice to be able to add them to the project.
a question. Can messages (text of what Spotify plays, for example) be entered into the CAN system for the CID to display?
As you can see, I have a lot of ideas (which are probably impossible) such as getting the information from the GPS coordinates of the navigation system to use it with Realdash ... well, I find it a very interesting software whose implementation with your work can be beastly!
Thank you very much for your attention.
P.S. I have an Opel Vectra C. I am Spanish and my English is horrible. (I use google XD translator)

Still receiving packets after unplugged from the car

I have RANDOM_CAN = 0 so from what I understand there shouldn't be random data coming through. If I start sniffing while it is plugged into the car then the packets come through in piles, but when it is unplugged there are still packets coming through.

Is there a reason for this or something I am doing wrong with the setup/code?

Can't send data to car/can module

Hello, Friends.

First, thanks for greatest information on whole internet, you guys rock!

Lost 3 days and nights and it makes me crazy. Can't figure out what is the exact issue.

So, I have Arduino Pro Mini with MCP2515 and ESP32. They are connected to each other and communicate with can projects - CANReciever and CANSender without problems. Each of units can send and receive data using these projects.

When I want to use cansniffer (your project), received packets are normally displayed but as soon as I send data to serial, ESP32 restarts and says:

Stack smashing protect failure!

Guru Meditation Error: Core  1 panic'ed (Unhandled debug exception)
Debug exception reason: BREAK instr 
Core 1 register dump:
PC      : 0x400803c0  PS      : 0x00060336  A0      : 0x00000000  A1      : 0x00000004  
A2      : 0x00000000  A3      : 0x00000000  A4      : 0x00000000  A5      : 0x800d0eec  
A6      : 0x3ffb1f00  A7      : 0x3ffb1f30  A8      : 0x00000000  A9      : 0x00000004  
A10     : 0x00000000  A11     : 0x00000000  A12     : 0xff000000  A13     : 0x800d0f30  
A14     : 0x3ffb1f20  A15     : 0x3ffbfe48  SAR     : 0xe9729774  EXCCAUSE: 0x00000001  
EXCVADDR: 0xffffffe0  LBEG    : 0x00000000  LEND    : 0x3ffb1f37  LCOUNT  : 0x00000000  

ELF file SHA256: 0000000000000000

Backtrace: 0x400803c0:0x00000004

Rebooting...

When I try to send packets with Arduino Pro Mini, there is a dead silence.

Tried various things - 440,00,00,40008011010F0F0F for example does not work...

I think the issue is in parsing serial data that I am sending to ESP32/arduino.

Same issue is with car, esp32 restarts and pro mini has dead silence, but I can read can bus data there as well.

Any suggestions?

No data after successful connection

I'm seeming to have a similar issue to others:

When connected to my 2012 Ford fusion, all CAN library examples work well, and on start of the CanSniffer.ino code, the "rx tx started" message appears with no errors, but within the GUI application there are no packets visible. No packets through the serial monitor either. The CanReciever example built-in to the library works fine on the same 500Kbps speed, so it isn't that. Any ideas?

HW BOM

Hello I tried to view the BOM but half the stuff is missing and I'm not that good with electronics to be able to figure out what needs to be added and what size.

I was wondering if I could get some assistance with creating a BOM preferably for for JLPCB so I can have the board assembled by them but if that is not possible then just a complete BOM would be amazing thank you for the hard work that you have put into this.

Hardware video

Hello,

I am still waiting your amazing hardware training video :) When will you prepare it?

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.