remotely updatec lookup tables

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Has thanked: 42 times
Been thanked: 41 times
Contact:

remotely updatec lookup tables

Post by Alkaline »

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?

mnf
Valued Contributor
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

Post by mnf »

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

Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Has thanked: 42 times
Been thanked: 41 times
Contact:

Re: remotely updatec lookup tables

Post by Alkaline »

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?

mnf
Valued Contributor
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

Post by mnf »

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

Post Reply