Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No CAN packets incoming in random can mode off #32

Open
Shavo650 opened this issue Jan 16, 2023 · 4 comments
Open

No CAN packets incoming in random can mode off #32

Shavo650 opened this issue Jan 16, 2023 · 4 comments

Comments

@Shavo650
Copy link

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.

@cristianku
Copy link

same here to me

@cristianku
Copy link

maybe we need a delay also for RANDOM_CAN 0

// Main
void loop() {
RXcallback();
#if RANDOM_CAN == 1
CANsimulate();
delay(100);
#endif
}

@cristianku
Copy link

My communication is working using an other program ( https://github-com.translate.goog/ludwig-v/arduino-psa-diag/tree/master/arduino-psa-diag?_x_tr_sl=fr&_x_tr_tl=it&_x_tr_hl=it&_x_tr_pto=wapp ) for Peugeot.

I have set this can sniffer the same, 500k Can bus speed, clock 8k... but its not showing incoming sniffed packages.

@adamtheone
Copy link
Owner

So you guys are saying that the arduino and the wiring works for sure, because you can send and receive packets with the CAN library examples? And, with RANDOM_CAN 1, if you open the serial port within the ArduinoIDE you see the generated messages AND some real packets from the car as well, but with RANDOM_CAN 0, nothing? This is pretty weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants