Hi everyone
I'd like to update the parameters of a lookup table via uart connection.
In the program I have 3 lookup tables that I would like to be able to modify by updating the values via uart.
Once updated, the new values should remain the same on the next reboot
Do you think it is possible to do this?
remotely updatec lookup tables
Moderator: Benj
-
- Valued Contributor
- Posts: 1189
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 439 times
- Contact:
Re: remotely updatec lookup tables
Hi,
Yes - depending -on setup. You'll need to write the values to (onboard or discrete) EEPROM...
What target are you using - what size lookups etc... I've used 64LC256 EEPROM with AVR chips to save bitmap data with a Python script on PC to push new values when required - which works well...
Martin
Yes - depending -on setup. You'll need to write the values to (onboard or discrete) EEPROM...
What target are you using - what size lookups etc... I've used 64LC256 EEPROM with AVR chips to save bitmap data with a Python script on PC to push new values when required - which works well...
Martin
-
- Posts: 143
- Joined: Mon Aug 20, 2018 11:04 am
- Has thanked: 42 times
- Been thanked: 41 times
- Contact:
Re: remotely updatec lookup tables
Hi Martin
yes, on board I have an eeprom (it's small I will have to enlarge it).
in the project will have to update 3 lookups of 4 KB each
Following your reasoning I could do it this way.
through uart I receive the data and put it in a buffer. This buffer transfers the data in a temporary lookup and in the eeprom.
At the next restart, if there is data in eeprom I load the lookup directly from the eeprom
sounds good?
yes, on board I have an eeprom (it's small I will have to enlarge it).
in the project will have to update 3 lookups of 4 KB each
Following your reasoning I could do it this way.
through uart I receive the data and put it in a buffer. This buffer transfers the data in a temporary lookup and in the eeprom.
At the next restart, if there is data in eeprom I load the lookup directly from the eeprom
sounds good?
-
- Valued Contributor
- Posts: 1189
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 439 times
- Contact:
Re: remotely updatec lookup tables
Sounds good.
Depends on the speed you need - just keep the data in the EEPROM possibly (reading is slower than from RAM)
Writing the data - if you can buffer it all to RAM then retrieving it from UART is much easier - need to pause whilst writing EEPROM, which is a bit slower, if insufficient memory to buffer it all.
Martin
Depends on the speed you need - just keep the data in the EEPROM possibly (reading is slower than from RAM)
Writing the data - if you can buffer it all to RAM then retrieving it from UART is much easier - need to pause whilst writing EEPROM, which is a bit slower, if insufficient memory to buffer it all.
Martin