The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: Problem writing Configs back to xPLHal


  • Subject: RE: Problem writing Configs back to xPLHal
  • From: Peter Chick
  • Date: Wed, 21 Jan 2004 18:47:00 +0000

Hi Tony,

It's not an issue now I know what's going on. I'll just save the dynamic
data to the application config file where I store the sourceID.

>Thoughts/comments anyone?

Might be useful for hardware based devices with none/limited
Non-Volatile-Memory, all they would need to set/store was their sourceID
the rest could be provided via Xpl. It would also act as a backup
mechanism for devices or applications. If an app or hardware device died
and the local dynamic data went too, you could recover it from the .cfg
file in xplHal.


Peter


-----Original Message-----
From: Tony Tofts [mailto:<a
href="/group/ukha_xpl/post?postID=QZLbI2N9EGA6AhGYffXgYR1qw_0f7WnpEeMO4Mq3UQgF9Vr70LJfBgJ0U1HBJ8W9x8APWv-nLPeK">tony@x...</a>]
Sent: 21 January 2004 16:14
To: <a
href="/group/ukha_xpl/post?postID=LR0xMMKulBGgGOqM3uCZ9KxVgGMPntyamNma6IjLp7FZJNDLA9GGvi0x_cvPfKCNVDcbrxG8V4ToyVgJWVwKcNBH">ukha_xpl@xxxxxxx</a>
Subject: RE: [ukha_xpl] Problem writing Configs back to xPLHal

> I'm trying to save the current screen position of my OSD app
> to xPLHal on exit. But hit a problem, again.

Hi Peter,

What's happening is this

1) app loads with default values
2) app gets configured by xplhal (or xplhal learns default values)
3) app dynamically changes values
4) app exits saving dynamic changes

Then

1) app loads with default values
2) app loads saved values
3) xplhal sends last known values (not the dynamic ones)

The only way around this I can see is that whenever the app updates a
config
item, the ocx would need to send a config.current so xplhal is always
up-to-date

Hadn't really planned on the app dynamically changing the values (hence
no
user interface to change the values of config items in my vb6
frameworks).

In fact I only saw the ability to change the config items values as
being
used at app load to set defaults really.

Thoughts/comments anyone?

Thanks
Tony



xPL Links: <a href="http://www.xplproject.org.uk";>http://www.xplproject.org.uk</a>
<a href="http://www.xplhal.com";>http://www.xplhal.com</a>
<a href="http://www.xpl.myby.co.uk";>http://www.xpl.myby.co.uk</a>
To Post a Message: <a
href="/group/ukha_xpl/post?postID=LR0xMMKulBGgGOqM3uCZ9KxVgGMPntyamNma6IjLp7FZJNDLA9GGvi0x_cvPfKCNVDcbrxG8V4ToyVgJWVwKcNBH">ukha_xpl@xxxxxxx</a>
To Subscribe: <a
href="/group/ukha_xpl/post?postID=IMgaqXijkTiND_njDLdtZpiAJPsi2wXyYOml3NQ2TIhP9GmamQQ5kmy_i70AnQIYthujOR3SIORGONvO7NjG09XbMGCx69gvOHjm">ukha_xpl-subscribe@xxxxxxx</a>
To Unsubscribe: <a
href="/group/ukha_xpl/post?postID=VeNsZPe8TmkykjTZ79udWv2Oa-wLuMNnITeDJpTIEKIyF5L-Mc-rKhHgFxnuyhogU1utVH3wsA_HftVqPCsfLDP_RfwsP8EJxQzGOA">ukha_xpl-unsubscribe@xxxxxxx</a>



xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.