morcibacsi / PSAVanCanBridge

VAN - CAN protocol bridge (V2C) for cars made by PSA Group (Peugeot, Citroen)
GNU General Public License v3.0
111 stars 27 forks source link

Generic parking aid #37

Open Toniob opened 6 months ago

Toniob commented 6 months ago

Hi,

It seems that the bridge can handle a generic parking aid. I have one of those : https://fr.aliexpress.com/item/1005005796021257.html . I have a version without the screen but with the buzzer. Do you think it will work ? How should I plug it to the esp32 board or the bridge ? What do I need to configure then ?

Thanks

morcibacsi commented 6 months ago

It looks similar to what I used for testing. First I suggest to check out this repository, if that displays some valid data: https://github.com/morcibacsi/esp32_rmt_chinese_parking_aid To have it working in the bridge you need to connect it to pin 26. But take note this was only tested outside the car, so it is possible that it won't work (thinking about interference caused by the long wire connected to the board). Anyways, first step is to check with the other repository if it even reads something or not.

BTW where did you find my project?

Toniob commented 6 months ago

I’ll try first with this project. I’ll keep you posted.

I’ve learn from the project with a web search (I found the repository), and then I read more about it on the 206cc lovers forum.

Toniob commented 6 months ago

I’ve compiled a modified example of your other tool (I used Serial over Bluetooth). If there is 4 values, I print them, if not, I print the number of values. And sadly, I always got 0 of them.

Here is how I plugged everything : IMG_20240303_180328_771 IMG_20240303_180335_575

The blue and orange cables are the 12V from the car (not from the box). I convert it to 5V to power the esp32. The red and black cables are the data and GND of the parking aid box. Did I miss something or did something wrong ? I used a really long cable. Should I use the 12V from the box instead of the car ?

morcibacsi commented 6 months ago

Hmm.. maybe it spits out data in a different format. Do you have a logic analyzer? Or an oscilloscope?

Toniob commented 6 months ago

I have a logic analyser. But I’ll have to wait to go to my parents to check the values (because my car is parked on the street). Or maybe you have an idea for me to check at home (without having to take the sensors off of the car).

morcibacsi commented 6 months ago

Maybe I can prepare a sketch to dump the raw data on the serial port, but currently I am not at home, so it might take a few days.