Author Topic: VAN bus interfacing (to read car speed and engine RPM Peugeot 206 1.4 HDI 2002)  (Read 113920 times)

0 Members and 1 Guest are viewing this topic.

Offline BL4

  • Newbie
  • Posts: 6
  • Country: pt
I bought this one: https://pt.aliexpress.com/item/1005001459118272.html?spm=a2g0s.9042311.0.0.2a50b90a0AjLeT (model 3C variant C as my car is a Peugeot 307 from 2003 with steering wheel controls.

Actually, I already tried all possible lines with key1 and key2 of the radio and as expected it doesn't detect the commands.

Attached are some images of the can-bus box that came with the radio.




 

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 73
  • Country: hu
Silly question, but did you set the CAN bus type in the settings? There is a Hiworld type there. (See attachment)

https://youtu.be/MtLH9LZdBNc?t=17

 

Offline BL4

  • Newbie
  • Posts: 6
  • Country: pt
Yes, in fact I've even tested all the options with the 307 model. None of the options is able to detect steering wheel controls.

I start to think that the seller sent me the wrong Can Box, because along with it came an antenna adapter (picture attached) which is for Peugeot 307 CAN since my radio antenna connector is different.
 

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 73
  • Country: hu
Well, unfortunately that is also a possibility. I got a box for a Toyota with my unit, so unfortunately everything is possible :( by the way that antenna adapter is used in facelift 307

As a a last resort you could try Peugeot 206s from the list, but I wouldn't be surprised if that wouldn't work as well...
 

Offline BL4

  • Newbie
  • Posts: 6
  • Country: pt
The vehicle list in the radio software has few peugeot models and they are mostly recent models, peugeot 206 is not an option.

I'm going to buy the specific universal adapter for 307 VAN that I indicated above and when it arrives I'll put the result here.
 

Offline henrioliver

  • Newbie
  • Posts: 6
  • Country: br
My friend @morcibacsi, I was seeing your project for the audio remote control, can I use the same board as the on-board computer project or would I have to make a separate board? Thanks
 

Offline henrioliver

  • Newbie
  • Posts: 6
  • Country: br
My friend @morcibacsi, I was seeing your project for the audio remote control, can I use the same board as the on-board computer project or would I have to make a separate board? Thanks

Hi morcibacsi how are you? I finally finished the assembly of the board, new computer started working on my 206, but I don't use the original radio, only the com2000 lever button that controlled the old CB, is there how to compile the two projects PSAVanCanBridge + PSAWifiDisplayC on the same ESP32 board? any other way to access the menu without the radio? Thanks
 

Offline BL4

  • Newbie
  • Posts: 6
  • Country: pt
Today I received a new CAN box from the Chinese seller and when I connected it to the radio I got a strange behavior.

What happens is that when I connect the radio the CANBUS is able to read the controls on the steering wheel and show information about the door open, however, if I start the car engine the CANBUS can no longer recognize the steering wheel controls or door opening information. For it to recognize the information again it is necessary to disconnect the radio from the car and wait several minutes before reconnecting again (if I don't start the engine).

Is there any difference in VAN communications (between having or not having the engine running) that could justify this behavior?




« Last Edit: December 02, 2021, 06:23:53 pm by BL4 »
 

Offline daisizhou

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: cn
You can check the link below.An interesting little production.
https://www.instructables.com/Low-Cost-OBD2-Communications-on-K-line-ISO-9141-2-/
daisizhou#sina.com #=@
 

Offline bagou91

  • Contributor
  • Posts: 14
  • Country: fr
Hello,
I am a French user.
I am interested in the work on the VAN bus of the car radio for my Peugeot 206 with RD3.
I try to simulate CDC changer with Arduino.

I use the morcibacsi 's library https://github.com/morcibacsi/arduino_tss463_van: It works fine for send frame ID E24 and 8A4 on VAN: I can to use RD3 without BSI.
RD3, EMF-B display and Arduino interface (TSS463+driver Alcatel2840) are connected.

I bought an Yatour MP3 bluetooth box that simulate CDC.
In attachment, dump frames with RD3 and CDC.

I would like to simulate CDC with Arduino, but I can't to send frame data CDC for simulate CDC with Arduino...
In my sketch Arduino, I add this:
Code: [Select]
//4E CB 86 C0 0E 46 0B 80 38 18 8C 07 00 80
uint8_t packet[12] = { 0x86, 0xC0, 0x0E, 0x46, 0x0B, 0x80, 0x38,  0x18,  0x8C,  0x07,  0x00,  0x80 };
VANInterface->set_channel_for_transmit_message(4, 0x4E, 4, packet, 12, 0);
VANInterface->disable_channel(4);
This code are repeated every second.

But push button CDC on RD3 does nothing.

Can you help me ?

Thank you


Hi @morcibacsi
I try to reproduce my sketch with autoradio RD1 Clarion PU-2294 on Peugeot 306.
but RD1 not detect the simulate CDC with my sketch.

in attachment, dump frames with RD1 and CDC Clarion PU-2293B
I think that my sketch must to send frame ACK id 8C4
In your github and docs, i found this:
"8C4 AW- 96                      ;acknowledge reply (CDC) of 8EC (end of job)"
and on my previous dump RD3+Yatour, Yatour send: 8C 49 96

so I think I miss him this frame ACK but i don't know how send this correctly.

could you help me ?
thank you.
« Last Edit: August 25, 2024, 05:01:51 pm by bagou91 »
 

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 73
  • Country: hu
You can set the ACK flag on a message like this:

Code: [Select]
void Ack8C4(uint8_t channelId)
{
    VANInterface->set_channel_for_receive_message(channelId, 0x8C4, 1, 1);
}

Copied from here:
https://github.com/morcibacsi/arduino_tss463_van/blob/master/examples/tss463_van_dashboard_experiment/tss463_van_dashboard_experiment.ino#L61

Try sending this. I am not sure if it works, as 8C4 is consumed by the display (EMF). Here are the messages the CDC is involved in:

8EC (EMF -> CDC)
8C4 (CDC -> EMF)
4EC (EMF -> CDC -> EMF) - this is an in frame reply so the display starts the message which gets appended with data by the CDC
8A4 (BSI -> all peripheral)

I am not familiar with the RD1 (I don't even have one to test), but my assumption is that the sketch I sent a few years ago should work.
https://www.eevblog.com/forum/projects/van-bus-interfacing-(to-read-car-speed-and-engine-rpm-peugeot-206-1-4-hdi-2002)/msg2658045/#msg2658045

If I were to investigate this I would set up the working environment and monitor the VAN messages with the ESP32 VAN monitor sketch from here: https://github.com/morcibacsi/esp32_rmt_van_rx

As the RD1 is older maybe it has a different message length for one of the messages or there is some other difference. I would study a VAN bus dump from a working setup.
 

Offline bagou91

  • Contributor
  • Posts: 14
  • Country: fr
Hi,

Thanks for your answer.

I tested, but still not functional.
I'm waiting to receive my order (esp32/esp8266, mcp2551, etc...) to make a full dump.
I will also try with the other VanBus library:
https://github.com/0xCAFEDECAF/VanBus

I'll keep you informed.
 

Offline darkspr1te

  • Frequent Contributor
  • **
  • Posts: 361
  • Country: zm
For those who want to play around with the android CANBOX , here is a repo that deals with how it works/source for open version of the device.

https://github.com/darkspr1te/canbox
https://github.com/darkspr1te/Android_obd_Remote - covers Pug VANBOX protocol,
https://github.com/darkspr1te/Work
https://github.com/darkspr1te/MTCD-E_CanBus
https://github.com/darkspr1te/microntek_CarManager
https://github.com/darkspr1te/MtcdTools

these are all forked repo's but i keep them around to refer to the protocol sections.

darkspr1te
 

Offline bagou91

  • Contributor
  • Posts: 14
  • Country: fr
Hi morcibacsi

I received my eletronics parts (esp32, mcp2551, etc..).

in attachment, a dump RD1 - CDC,  generate with ESP32 and MCP2551 + level shifter
thank you for your analyse

(I continue my tests with your library for Arduino, and library VAN Bus with ESP8266).

Edit:
in attachment, a 2nd dump.

when CDC not connected, push button on SRC CDC result "CRC_ERROR FF FF FF ..." in output serial console.
and when I connect CDC, the first output is also  "CRC_ERROR FF FF FF ...", next i have good frame (see atachment).
« Last Edit: September 07, 2024, 04:41:57 pm by bagou91 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf