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

Change UI Language #10

Open
captainmac40 opened this issue May 8, 2024 · 3 comments
Open

Change UI Language #10

captainmac40 opened this issue May 8, 2024 · 3 comments

Comments

@captainmac40
Copy link

captainmac40 commented May 8, 2024

First you have made an super program !!!

But, on my setup, the data sometimes freeze and not refreshed.[Edit : after closing mobile data app data refresh is ok]

Maybe it's because I haven't navigation system and stock radio unit ?

Also, I don't found how to change language .
I can access to MFD only thru Firefox on Windows PC or Safari on an iPhone. [Fixed after new flash of ESP]

As feedback, on my setups :
Xsara HDI exclusive 2001

  • Speedometer
  • RPM
  • Coolant temp
  • VIN Number and odmeter
  • icons linked to lights is working
  • Some reaction when activate back window heating but with an strange temp

C5 HDI 2001
Same as Xsara +

  • OBD data about autonomy
  • Fuel gauge is ok with quantity
  • Push button on right command (windows washer) is working
  • No reaction to speed limiter command (but maybe normal because I try it static not rolling)

Thanks a lot !

Very kind regards

@captainmac40 captainmac40 changed the title Lags on refresh data and unable to open with Firefox or Chrome on Android Change UI Language May 9, 2024
@0xCAFEDECAF
Copy link
Owner

0xCAFEDECAF commented May 11, 2024

Thanks! Always nice to receive positive feedback 👍

Did you manage to solve the freeze?

You don't need the sat nav system nor the stock radio for the setup to work. The VAN comfort bus will run without it.

Indeed, the language is changed with the "type C" multi-functional display (MFD), by using IR remote control. But if you don't have such, you could change the default language. I just committed a small change that sets the language to a default value if none is given by the system. You can change the default by editing line 6995 in MFD.js.ino and/or MFD.js.gz if you are using the SPI flash file system.

The VAN bus packet contents may vary per specific vehicle model. My vehicle is a Peugeot 406 HDI year 2003. It could be that your 2001 model vehicles have some packet bytes not filled in, or have a different format. In order to reverse engineer the packet data, you can uncomment the following lines in Config.h:

#define PRINT_RAW_PACKET_DATA

#define PRINT_JSON_BUFFERS_ON_SERIAL

Note that these lines will give a lot of output on the Serial port. You may want to filter a bit by choosing a suitable value for #define SELECTED_PACKETS , or by defining your own filter in PacketFilter.ino.

Or you can use PacketParser.ino to see raw packet data and their parsing.

Hope this helps!

@captainmac40
Copy link
Author

captainmac40 commented May 12, 2024

Hello ! Thanks for the commit and other usefull infos !
I upload the new sketch and language is ok but not units.

So I fix it with add below your commit (I'm French lol) :
localStorage.mfdTemperatureUnit = "set_units_deg_celsius";
localStorage.mfdDistanceUnit = "set_units_km_h";

I will do an fork (if you're ok) without the nav related things and try to catch more infos with debug.
It should more specific to my car but can be usefull for somebody ;)

Also, I plan to use your code as base to write an version with Oled 4 inch screen to (maybe) replace the MFD (for basics infos).

Just an question : How I can "catch" packet from radio commands (VOL+/- , mode , seek etc) to output each one to one IO (VOL+ to D4 for exemple) ?
Because I need to make an steering wheel remote for my pionner head unit and I plan to use optocouplers on parralel of the physical buttons of my head unit (only IR receiver available and don't want use IR protocol ...)

Thanks a lot

Very kind regards

@0xCAFEDECAF
Copy link
Owner

Head unit volume is coded in byte 5 of IDEN 4D4 packets; see PacketParser.ino line 1814 . Also, have a look at this useful page (scroll down to 4D4).

"Seek" is found in byte 2 of IDEN 8C4 packets; see PacketParser.ino line 848. You can also look at this page (scroll down to 8C4).

You will have to do some programming by yourself to associate this data with the setting of GPIO pins.

Sure, ok if you fork. I am looking forward to the results of your experiments! 😃

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

2 participants