Page 2 of 2

Re: CUL or CUNO?

Posted: Wed Jan 19, 2011 10:54 pm
by Alexvanhoboken
Thanks, but that part in the readme doesn't explain much how to use the flash memory for fs20/fht traffic.
I would think the 2MB flash wold be used automatically by the CUNO as a buffer but the fact is that if a shutdown FHEM for an hour, I lose all information for that period.
Also there is no info about the microsd card, how to use it.
Any help is appreciated but there is no rush.

Re: CUL or CUNO?

Posted: Sat Jan 22, 2011 8:26 pm
by KidE
Alexvanhoboken wrote:Ernst,

Do you have you're CUNO at work yet? I wonder if you already have some experience with the 2mb onboard and the microsd card. I've inserted a 1gb microsd card but so far no buffering is done. How can I tell if the card is working correctly? Do I have to format it?
Many questions, maybe you have an answer :)
Well i asked the question in the "fhem-users" google group, and this was the awnser i got:

Code: Select all

Note 1: Please post such messages in the cul_fans group.
Note 2: the MicroSD is not supported by culfw.
Note 3: Storing data on the 2mb flash is not really "foolproof", and I did not
       tested it for over a year. It was a quick hack, designed to be used by
       the CUR, since it needs an FS anyway for its menus.
Note 4: Currently I wont support it.

If you still want to spend some time:

Essentially you have to enable HAS_FS in board.h, and make sure that df_init,
fs_init and log_init is called in CUNO.c. And then you have to add the
read_file and write_file commands to the fntab in CUNO.c. You may have to enter
the correct pin numbers for DF_... in board.h

CUR.c may be your guide, but on the other hand I did not flashed the CUR for
over a year now and as there are only 3 prototypes, I don't think somebody
else did it either.
Not really satisfying but hey....... its working perfectly without. Maybe in the future ;-)

E