Automatic character mapping into v5 firmware

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Automatic character mapping into v5 firmware

homerisback
Hi guys and especially Karlis,
I'd like to port the automatic character mapping feature code from v6.x firmware into v5.x firmware. From my little knowlegde in coding, it seems doable as they are both written in C++.
Would it be a hard work to do and could you confirm that it is doable ?
Do I have something to take care about in the code structure ?
Thanks
01' 9.3 SE Conv - AS3 - Nexus 5 Android M 6.0.1 - BlueSaab v4.2 + Amp - Latest CDC repo.
Reply | Threaded
Open this post in threaded view
|

Re: Automatic character mapping into v5 firmware

Karlis
Administrator
It "should" be doable. It's a relatively simple character mapping function. Look for utf_convert.h and utf_convert.cpp files in BlueSaab firmware source.
2001 9-5 SE V6; 2006 9-5 Wagon; iOS; BlueSaab version = "latest and greatest" :)
Reply | Threaded
Open this post in threaded view
|

Re: Automatic character mapping into v5 firmware

homerisback
Thanks, that's where I put my nose as a starting point.
I keep on going that way then... nice !
01' 9.3 SE Conv - AS3 - Nexus 5 Android M 6.0.1 - BlueSaab v4.2 + Amp - Latest CDC repo.
Reply | Threaded
Open this post in threaded view
|

Re: Automatic character mapping into v5 firmware

homerisback
This post was updated on .
Hi guys,
At least it works. Actually I was stuck by the Atmega328 memory overflow when keeping the conversion variable at its full "capacity".
I commented characters that I don't need in french and tadaa, I'm at 77% of memory and it works great in car ! I had the IDE notice that errors might occur as we are above 75% used.

I searched where to lighten the code and especially global variables that seem to be kind of a limitation for such a low memory chip...

Is that why artist became text in v6 firmware and is concatenated with title ?

I was wondering if pinout.h is needed as it seems a pin translator for other arduino chips
01' 9.3 SE Conv - AS3 - Nexus 5 Android M 6.0.1 - BlueSaab v4.2 + Amp - Latest CDC repo.