Page 12 of 15 FirstFirst ... 21011121314 ... LastLast
Results 111 to 120 of 150

Thread: UPnP and Girder

  1. #111
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    368

    Default

    If you want to catch the event of changing tracks instead of polling for updates, check the girder log for an update event. Probably best to reverse the change made from this post (the pcall), this will remove a lot of 'event-noise'.

    Whenever a track changes on the device you should get an event in the Girder eventlog from "xPLGirder", eventstring should be "UPnP value update <devicename>:PlaybackXML"
    Create a script action and attach the event as the trigger for it. In the script action, you can re-use the other code for a large part. But you now have to parse the XML from the payload variables (events carry payload values accessible from the script through pld1-4);
    1. pld1; variable name that changed, so "PlaybackXML" in this case
    2. pld2; current value; hence the xml with the new info
    3. pld3; previous value; hence the xml with the old info (or probably nil if its the first time)
    so instead of this;
    Code:
    local success, xml = m:execute("", "")
    you can now use
    Code:
    local xml = pld2
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  2. #112
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default

    Not seeing any from XPLGirder events that say "UPnP value update <devicename>:PlaybackXML" or any events really with both settings of "s,r = pcall(" and " s,r = gir.pcall(" after the initial loading.
    John

    Now Playing skin creator

    Girder 5.0 / Elk-M1EZ8 / Ocelot / SECU-16IR /SECU-16I / SECU-16 / BobCat Humidity
    JRMC 11.1 / M-Audio Delta 410 / Xitel HIFI Pro / Xitel HIFI Link
    NetRemote 2.0 / 6 Zone whole house audio delivering 1580 watts RMS total
    ELO 15" Touchscreen, Nokia 770 and Advent 3500PC Mobile PC 7" TS
    Droid 2 Global

    Click here to visit my Nowplaying Showcase Blog

  3. #113
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    368

    Default

    the difference with the pcall should only hide all the 'announce' messages (some 100 or more girder events at startup).

    The value updates should be there though, do you see anything in the gateway log?
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  4. #114
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default

    I cleared the gateway log and watched as the tracks changed and saw nothing.
    John

    Now Playing skin creator

    Girder 5.0 / Elk-M1EZ8 / Ocelot / SECU-16IR /SECU-16I / SECU-16 / BobCat Humidity
    JRMC 11.1 / M-Audio Delta 410 / Xitel HIFI Pro / Xitel HIFI Link
    NetRemote 2.0 / 6 Zone whole house audio delivering 1580 watts RMS total
    ELO 15" Touchscreen, Nokia 770 and Advent 3500PC Mobile PC 7" TS
    Droid 2 Global

    Click here to visit my Nowplaying Showcase Blog

  5. #115
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default

    Some great news... I have now converted everything over to UPnP calls. So no more IR to control the Grace Digital Tuner. Wow what a difference it makes. So much faster and more reliable. It took some head scratching to figure out the menu actions but in the end they are pretty easy when you figure out which of the commands you need and in what order.


    I have all the Presets, Power On/Off, Power Status, Skip Pandora Track, and Thumbs Up and Down working now with UPnP calls and of coarse the Metadata for title, artist, album and URL link for album cover.

    So if we can get this event logging working so that my Metadata can be updated only when things change it will be finished.
    John

    Now Playing skin creator

    Girder 5.0 / Elk-M1EZ8 / Ocelot / SECU-16IR /SECU-16I / SECU-16 / BobCat Humidity
    JRMC 11.1 / M-Audio Delta 410 / Xitel HIFI Pro / Xitel HIFI Link
    NetRemote 2.0 / 6 Zone whole house audio delivering 1580 watts RMS total
    ELO 15" Touchscreen, Nokia 770 and Advent 3500PC Mobile PC 7" TS
    Droid 2 Global

    Click here to visit my Nowplaying Showcase Blog

  6. #116
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default

    Quote Originally Posted by Tieske8 View Post
    If you want to catch the event of changing tracks instead of polling for updates, check the girder log for an update event. Probably best to reverse the change made from this post (the pcall), this will remove a lot of 'event-noise'.

    Whenever a track changes on the device you should get an event in the Girder eventlog from "xPLGirder", eventstring should be "UPnP value update <devicename>:PlaybackXML"


    Any ideas as to why I am not seeing any events from Grace?
    Create a script action and attach the event as the trigger for it. In the script action, you can re-use the other code for a large part. But you now have to parse the XML from the payload variables (events carry payload values accessible from the script through pld1-4);
    1. pld1; variable name that changed, so "PlaybackXML" in this case
    2. pld2; current value; hence the xml with the new info
    3. pld3; previous value; hence the xml with the old info (or probably nil if its the first time)
    so instead of this;
    Code:
    local success, xml = m:execute("", "")
    you can now use
    Code:
    local xml = pld2
    Any idea as to why I am not seeing these events?
    John

    Now Playing skin creator

    Girder 5.0 / Elk-M1EZ8 / Ocelot / SECU-16IR /SECU-16I / SECU-16 / BobCat Humidity
    JRMC 11.1 / M-Audio Delta 410 / Xitel HIFI Pro / Xitel HIFI Link
    NetRemote 2.0 / 6 Zone whole house audio delivering 1580 watts RMS total
    ELO 15" Touchscreen, Nokia 770 and Advent 3500PC Mobile PC 7" TS
    Droid 2 Global

    Click here to visit my Nowplaying Showcase Blog

  7. #117
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    368

    Default

    Quote Originally Posted by jwilson56 View Post
    Some great news... I have now converted everything over to UPnP calls. So no more IR to control the Grace Digital Tuner. Wow what a difference it makes. So much faster and more reliable. It took some head scratching to figure out the menu actions but in the end they are pretty easy when you figure out which of the commands you need and in what order.
    Glad to hear! very nice!

    Have to look into the event thing
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  8. #118
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    368

    Default

    This is what I get playing music on my Philips WAK3300 media player;
    Code:
    22:26:23.559 Received value update for service 'urn:upnp-org:serviceId:AVTransportServiceID' from device 'WAK3300 Music Station' (xPL: tieske-upnp.thijs-devsys)New value is of type 'LastChange' with the following xml;
    22:26:23.559 <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/">
    22:26:23.559   <InstanceID val="0">
    22:26:23.559     <AVTransportURI val="http://192.168.50.20:9000/disk/DLNA-...re Proof.mp3"/>
    22:26:23.559     <PlaybackStorageMedium val="NETWORK"/>
    22:26:23.559     <AVTransportURIMetaData val=""/>
    22:26:23.559   </InstanceID>
    22:26:23.559 </Event>
    22:26:23.559    293 = http://192.168.50.20:9000/disk/DLNA-...ture Proof.mp3
    22:26:23.559    287 = NETWORK
    22:26:23.559    288 = 
    22:26:23.575    xPL update message send completed.
    22:26:28.740 Received value update for service 'urn:upnp-org:serviceId:AVTransportServiceID' from device 'WAK3300 Music Station' (xPL: tieske-upnp.thijs-devsys)New value is of type 'LastChange' with the following xml;
    22:26:28.740 <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/">
    22:26:28.740   <InstanceID val="0">
    22:26:28.740     <TransportState val="PLAYING"/>
    22:26:28.740     <CurrentTransportActions val="Pause,Stop,Next,Previous"/>
    22:26:28.740     <NumberOfTracks val="1"/>
    22:26:28.740     <CurrentTrack val="1"/>
    22:26:28.740     <CurrentTrackURI val="http://192.168.50.20:9000/disk/DLNA-...re Proof.mp3"/>
    22:26:28.740   </InstanceID>
    22:26:28.740 </Event>
    22:26:28.740    289 = PLAYING
    22:26:28.740    275 = Pause,Stop,Next,Previous
    22:26:28.740    269 = 1
    22:26:28.740    285 = 1
    22:26:28.740    291 = http://192.168.50.20:9000/disk/DLNA-...ture Proof.mp3
    22:26:28.755    xPL update message send completed.
    22:26:30.877 Received value update for service 'urn:upnp-org:serviceId:ContentDirectory' from device 'Twonky' (xPL: tieske-upnp.thijs-devsys)
    22:26:30.877    SystemUpdateID = 5
    22:26:30.877    xPL update message send completed.
    Any possibility for you to check some other UPnP device reporting events in the gateway?
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  9. #119
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    368

    Default

    just tried the UPnP tools; first start the gateway, then start the AV Media Renderer and from the file menu select 'start AV renderer'
    That should report several value updates in the gateway.
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  10. #120
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default

    Looks like it reported the AV Media Renderer fine so it must be the Grace
    John

    Now Playing skin creator

    Girder 5.0 / Elk-M1EZ8 / Ocelot / SECU-16IR /SECU-16I / SECU-16 / BobCat Humidity
    JRMC 11.1 / M-Audio Delta 410 / Xitel HIFI Pro / Xitel HIFI Link
    NetRemote 2.0 / 6 Zone whole house audio delivering 1580 watts RMS total
    ELO 15" Touchscreen, Nokia 770 and Advent 3500PC Mobile PC 7" TS
    Droid 2 Global

    Click here to visit my Nowplaying Showcase Blog

Page 12 of 15 FirstFirst ... 21011121314 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •