Wopen=3 by application?


#1

After to install a new application through DOTA I need to initialize the FLASH to store new objects of this application. For this I have made the following commands: at+wopen=0, at+wopen=3, at+wopen=1. I would like to know if somebody knows to say me as to make this of the application inside.


#2

Hi Hegler,

I guess you would need to use the ADL_INIT_DOWNLOAD_SUCCESS parameter of the adl_main function and adl_flhErase/adl_flhExist functions to delete all subscribed ID’s of the flash handles you are subscribed to. see page 107 of the 3.10 adl guide.

I havent attempted this and I am a newbie to OpenAT but this is how i would approach it.

Mark


#3

Hi Hegler

I have posted an example of dota on one of the other posts
http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?t=548&highlight=
but you can not do AT+WOPEN=3 from remote
you will have to delete the flash objects manually
Best regards
Walter


#4

Hi Mark and Walter,
thanks for all. But and about page 40 of adl user guide (3.10) “… the number of object IDs associated to a given handle may be only changed after have erased the flash objects (with the AT+WOPEN=3 command) …”. Is it possible to erase the handle and its associated objects to insert a new one set ?

thanks, again

Hegler


#5

Hi Mark and Walter,
thanks for all. But and about page 40 of adl user guide (3.10) “… the number of object IDs associated to a given handle may be only changed after have erased the flash objects (with the AT+WOPEN=3 command) …”. Is it possible to erase the handle and its associated objects to insert a new one set ?

thanks, again

Hegler


#6

Hi Mark and Walter,
thanks for all. But and about page 40 of adl user guide (3.10) “… the number of object IDs associated to a given handle may be only changed after have erased the flash objects (with the AT+WOPEN=3 command) …”. Is it possible to erase the handle and its associated objects to insert a new one set ?

thanks, again

Hegler


#7

Hi Hegler
Sorry I forgot about that because I have never tried to delete flash objects.
Why do you need to delete it?
Delete the values in the object you do not want to use anymore
and just make some more flash objects.
You can make 2000 objects
Best regards
Walter


#8

Hi Walter,
i saw hat, your application works with A&D memory and i´m needing new objects in other flash area memory, using adl_flhwrite/adl_flhread and so…that procedure is valid for all flash memory ?

thanks a lot,

Hegler


#9

Hi Hegler
A&D and flash objects is 2 different things
is possible to remove A&D objects and then you have to recompact the A&D space to release the space again
Best regards
Walter


#10

Hi Walter,

i know that. I only want to know if with your sample (idea) is possible to insert new objects to FLASH (not A&D) already subscribed in old application.

thanks

Hegler


#11

Hi Hegler
Yes
the flash objects still exist and the data from previous app is still in flash.
Ready to be used.
the new app only over write the ROM
Best regards
Walter