[gupnp] Re: Re: [gupnp] Support for Evented State Variable ?



Title: Re: [gupnp] Support for Evented State Variable ?

Hello
 
For this five changes, the correct response sequence should be:
1. val=68 shoud be sent out immediately (at this moment, it should not in moderation status.)
2. and then enter the moderation status
3. after 200ms, send the new value out.
4. and then enter moderation status again (avoid to send event frequently.)
5. if there is a new value changed, it should send the new value out after 200ms timed out. then go to "4"
6. if there is no new value changed, it should leave moderation status, wait for another value changed, go to "1".
 
2009-12-11

yut616

发件人: Mehmet Sahin
发送时间: 2009-12-11  01:15:25
收件人: gupnp o-hand com; gupnp o-hand com
抄送:
主题: Re: [gupnp] Support for Evented State Variable ?

Hi,

There is one CTT item that sends five soap requests and changes a value of a state variable(Mute, Volume etc.. for RC Service) five times in one moderation timeout period (200ms), Rygel Renderer sends below packet for such kind of case,

<Event xmlns="urn:schemas-upnp-org:metadata-1-0/RCS/"><InstanceID val="0">
<Volume val="68" channel="Master"/>
<Volume val="73" channel="Master"/>
<Volume val="31" channel="Master"/>
<Volume val="45" channel="Master"/>
<Volume val="82" channel="Master"/>
</InstanceID></Event>

Means it doesn't remove prev values same state variables in a moderation timeout.
It's using libgee HashMap class for creating this packet, looks like  HashMap doesn't override new value to prev one and just appending.

It's different problem, helper class for building LastChange messages also
need to be modified  beside adding Close Connection header to fix this special case.

Mehmet


-----Original Message-----
From: Zeeshan Ali (Khattak) [mailto:zeenix gmail com]
Sent: Thu 12/10/2009 5:21 AM
To: gupnp o-hand com
Subject: Re: [gupnp] Re: Re: [gupnp] Support for Evented State Variable ?

Hi,

> BTW, does Rygel Renderer send the changes one by one from it queue, and it
> will not remove/replace the middle state?

  No, it replaces the old pending state with a new one.

--
Regards,

Zeeshan Ali (Khattak)
FSF member#5124
--
To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]