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

0 Members and 1 Guest are viewing this topic.

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 67
  • Country: hu
You need to have the esp32 in the car all the time as it acts as a gateway between the VAN bus and the CAN bus.
 

Offline henrioliver

  • Newbie
  • Posts: 4
  • Country: br
I understand, I'm going to start assembling the board, I ordered the printing of the PCB in China at a lower cost, in the end with all the components the cost is a little high, but having the new CB will be worth it :) Very thanks for public your project and congratulations for the excellent work.
 

Offline reggaester

  • Contributor
  • Posts: 28
  • Country: pl
Hi Peter
https://github.com/morcibacsi/JunsunPSARemote
It will work with van can bridge also?
 

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 67
  • Country: hu
If you order a Junsun headunit for CAN bus cars you will get a Raise CAN box. If you connect this box to the CAN part of my VAN-CAN Bridge it works (temperature, and remote controls at the steering wheel, display brightness based on the headlights). However with the help of the library the VAN-CAN Bridge can be left out as custom software can be made to translate the VAN messages for the Junsun unit. For example my PSASteeringWheelAdapter could have an extension for remote control.
 

Offline reggaester

  • Contributor
  • Posts: 28
  • Country: pl
Hi Peter,
I have seen some bridge firmware updates. Can you tell us what other improvements are you planning?
Will the problem with the reset button ever be solved?

 

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 67
  • Country: hu
Hi,

Yeah, there were some issues reported by users which were quite annoying to prevent the usage of the device for them. Recent fixes included a function to read the VIN code from the radio. So now it isn't necessary to know the VIN code of it, and one doesn't need to have access to a car with CAN bus, and diagnostics interface. Another hotfix needed to be released because in some cars the door status was flickering (again :(). And also with some odometer brightness setup the display was blinking. These issues needed special attention.
Currently I work on some code refactorings, to support a new type of board, which could be more compact and professional-looking. The reset button fix is definitely on my todo list as that might be the last one to have a full conversion (that might be the next one to fix after the code refactor). Also trying to make the TSS461 VAN protocol driver working instead of the TSS463. This should be done because the TSS463 will eventually run out of stock and the TSS461 can be scavenged from old displays, and odometers. There are two other things that I would also like to implement. One of them is to support the RD3 radio with the new display. And the other one is to support the newer navigations (RT3/RT6/RNEG, etc). However this has low priority as I couldn't figure out the messages for the compass on them until now (It is calculated somehow from the wheels rotation speeds and its differences). It seems like a tough job.

Edit: BTW the source code is there... contributions are welcome. Feel free to implement the features you miss the most.
« Last Edit: January 15, 2021, 08:18:42 am by morcibacsi »
 

Offline agmar

  • Newbie
  • Posts: 1
  • Country: ma
Hi all
morcibacsi can i ask you  is there a way to use a bluetooth - gadget receiving music from phone meant to be installed on RD4 (aux connector )  -  on an RD3 ( cd changer connector) 
 

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 67
  • Country: hu
Unfortunately it isn't. There are such devices for RD3 as well. I am sure you can find them on aliexpress, or ebay or some other similar sites.
 

Offline reggaester

  • Contributor
  • Posts: 28
  • Country: pl
Hi Peter,
After the last update, the car goes into economy mode when it is closed, the radio and display of course are off. Do you know this problem.

The reset button now works, but when pressed and held before the milage resets, the computer reads into a loop. Do you think it can be made to look like the original?
« Last Edit: February 11, 2021, 05:17:49 pm by reggaester »
 

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 67
  • Country: hu
After the last update, the car goes into economy mode when it is closed, the radio and display of course are off. Do you know this problem.

Fixed it yesterday.

The reset button now works, but when pressed and held before the waveform resets, the computer reads into a loop. Do you think it can be made to look like the original?

I am well aware of that issue, but one step at a time (you just got the reset functionality working). After the reset is done, you can go back to your favourite page, so it isn't a deal breaker. Eventually it might get fixed, but as I said before the code is there for everyone to make it better. I like working on the project, but you have to understand that I work on it in my free time. Demanding new features and fixes won't exactly help in getting updates faster.
« Last Edit: February 11, 2021, 05:32:57 pm by morcibacsi »
 

Offline reggaester

  • Contributor
  • Posts: 28
  • Country: pl
Sorry I didn't notice this update  |O
I am well aware of that issue, but one step at a time (you just got the reset functionality working). Eventually it might get fixed, but as I said before the code is there for everyone to make it better. I like working on the project, but you have to understand that I work on it in my free time. Demanding new features and fixes won't exactly help in getting updates faster.
I understand it 100% and big thanks for this project.

 
The following users thanked this post: morcibacsi

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 67
  • Country: hu
I released a new version which should fix the issues with the trip reset functionality. Updating the TSS463 library to v2.0.0 is also necessary.
 

Offline reggaester

  • Contributor
  • Posts: 28
  • Country: pl
Hi Peter.
12 pin emfs are quite expensive and 6 pins ones often cost half as much, so do you think this display will work?
of course, if I convert the plug to the one in the picture and attach the pins
 

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 67
  • Country: hu
Hi,

Unfortunately it uses a newer protocol, so it won't work. When I find the time I'll try to add support for it.
 

Offline RJHayward

  • Frequent Contributor
  • **
  • Posts: 405
  • Country: us
(I wrote OBDII coding for SNAP-ON TOOLS, BALCO 1992-1995).
 I must say, finding the shear BULK DETAIL of this thread was hard to follow. I suspect some manufacturers like the obscurity, as a defacto 'copy protection' to protect the product line.
   And this VAN and CAN, ...Who or what are they ?
Only kidding there, but assuming that's a standard??? Along with 'MUX', another mystery sounding term.
'MUX' to me as a software engineer, simply means shared system, especially meaning 'shared system data BUS'. But I wouldn't go straight to a hardware schematic, to figure out that protocol.
   I believe this sh1#t goes straight to the heart of the 'right to repair' dynamic seen recently.
So, if a person thinks about it, is it a good business model, excluding perfectly competent techs from repair access (i.e. OBD data stream etc)?
I just think it would be fair, taking customer CASH money, to supply non-propriety interface, to car computer. It's running the dang dashboard CLOCK, among other things: that is ridiculous that an owner is locked out, from access to software features.

   That said, I did see some very minor things done, such as reversal of bit 7, that sort of oddball mode of use, really only purpose being to lock customer out of access, for repair, curiosity, or whatever (legal) pursuit an auto hobbiest wants to try, on his own car.
Thank you.
 

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 67
  • Country: hu
We have to divide the work done in this thread to two parts.

The first part was trying to come up with a software solution to a problem which is really a job of a hardware (i.e.: try to parse the signals travelling on the wire to something which is humanly readable). For this there is a hardware solution (the TSS463 VAN controller IC), but it isn't as widespread as the CAN controllers (like the MCP2515). This is because the VAN bus had its limitation so the world moved on and replaced it with another solution which is the CAN. Also the VAN bus was mainly used in cars produced 15-20 years ago only in models made by Peugeot and Citroen. This means that there is a lack of interest in the VAN bus as the userbase is quite small.... but back to the hardware: Imagine that the CAN wasn't a wide-used protocol, so there wouldn't be CAN controllers available to decode the signals. The same steps would be necessary to somehow rebuild the data floating around on the wires from software.

When there was a method to retrieve the data in a human readable format there was the second task to figure out what the data encoded in these messages are doing.

Would it be obscure? Well it is if I think about it in a way that there is no open database for the users, where everything is well-documented. Could an average user do anything with that information? I really doubt it. I mean when something is wrong in a car, these messages are either not present, or damaged as this is on the lowest level in a car (it is beyond OBD). Figuring out any errors from damaged or missing packets is almost impossible (the DATA lines aren't even exposed to the outside world, you need to disassemble the dashboard to get to them). Even registered repair shops, or people who are specialized in Peugeot and Citroens are lack of the information how the data goes around the wires. It is beyond a point what is necessary to know for people outside the software engineering world. But apart from this... I agree it would be nice if these information was available, it would make my hobby much easier :)

Oh MUX comes from MUltipleXed network. The earliest Peugeot 206 models didn't have the VAN bus, which resulted in much more cables around the car.
 

Offline henrioliver

  • Newbie
  • Posts: 4
  • Country: br
hello morcibacsi, how are you? Could you let me know if the reset functionality is working without depending on the original display? Thanks
 

Offline morcibacsi

  • Regular Contributor
  • *
  • Posts: 67
  • Country: hu
Hi, I am fine thanks. Yes, it works.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf