UNIV 3.1.3.1 firmware on 3.1.1.x hardware ?

HAPCAN installation tips and troubleshooting when assembling, commissioning and configuring devices.
Rozwiązywanie problemów z instalacją HAPCAN, budową, uruchamianiem i konfiguracją urządzeń.
Post Reply
pheex
Posts: 15
Joined: 13 Sep 2013, 19:43

UNIV 3.1.3.1 firmware on 3.1.1.x hardware ?

Post by pheex »

Hi,

I have a 3.1.1.x black box button and i wish to set hysteresis more accurately (0.25C on 3.1.1.1 firmware, 0.0625 on 3.1.3.1)

Is it possible to flash 3.1.1.x box with 3.1.3.1 firmware ?

Or a simple code change in 3.1.1.0 to setup more precisely hysteresis ?

Thanks
pheex
Jacek
Posts: 561
Joined: 17 Feb 2007, 18:00

Re: UNIV 3.1.3.1 firmware on 3.1.1.x hardware ?

Post by Jacek »

If you change code of the UNIV 3.1.1.1 firmware, you will not be able to set required hysteresis in HAPCAN Programmer. It might be better to change UNIV 3.1.3.1 firmware to match your hardware.
If you use UNIV 3.1.3.1 firmware on UNIV 3.1.1.x you need to change the code a bit, because the temperature sensor is connected to the other pin of the processor.
First of all this line - change 5 to 1 (temperature sensor is on pin1 of port B)
https://github.com/hapcan/UNIV_3.1.3.x/ ... 1.inc#L212

Then find code where button 14 (on pin RB1) is handled and remove it
https://github.com/hapcan/UNIV_3.1.3.x/ ... 1.asm#L399
https://github.com/hapcan/UNIV_3.1.3.x/ ... 1.asm#L685
https://github.com/hapcan/UNIV_3.1.3.x/ ... #L756-L757
https://github.com/hapcan/UNIV_3.1.3.x/ ... #L806-L808
Hopefully there are no more code lines to remove.

After that you need to build the project and convert hex file into haf file using HAPCAN Converter http://hapcan.com/devices/universal/uni ... er_3.1.exe
Regards
Jacek
pheex
Posts: 15
Joined: 13 Sep 2013, 19:43

Re: UNIV 3.1.3.1 firmware on 3.1.1.x hardware ?

Post by pheex »

Thank you Jacek, i'll try this way.
Post Reply