Page 10 of 15 FirstFirst ... 89101112 ... LastLast
Results 91 to 100 of 150

Thread: UPnP and Girder

  1. #91
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default

    Quote Originally Posted by jwilson56 View Post
    Thanks for the feedback. However, we do not have the engineering resources to address specific issues for individuals writing drivers. Hopefully, some day we will. I can tell you that we have done a lot of work on UPnP lately to enhance many items.
    This is not about support for individuals this is about them selling a device as UPnP/DLNA compatible, which it isn't, as it simply doesn't follow the UPnP spec. They should fix it, as it simply doesn't work as advertized.
    It fails the most basic test, integrity of the description xml's. Here's the value of buying certified devices.
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  2. #92
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default

    Quote Originally Posted by jwilson56 View Post
    Well that did something. I can see Grace in the gateway. Don't see a way to copy all the log so I will attach a screenshot. Also here is what I get in Girder.

    Code:
    xPLHandler UPnP had a lua error;...romixis\Girder5\luascript\xPLHandlers\UPnP_basic.lua:39: attempt to index local `msg' (a string value)
    while handling the following xPL message;
    { -- #0
       ["type"] = "xpl-trig",
    <snip>
    I need some more info on this one. Can you edit the '.....\Girder5\luascript\Components\xPLGirder.lua' file and on line 421 replace
    Code:
    s,r = pcall(
    with
    Code:
    s,r = gir.pcall(
    And then try again, it should add more error info to the Girder lua console.
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  3. #93
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default

    Lots of errors like this one

    Code:
    xPLHandler UPnP had a lua error;...romixis\Girder5\luascript\xPLHandlers\UPnP_basic.lua:39: attempt to index local `msg' (a string value)
    while handling the following xPL message;
    { -- #0
       ["type"] = "xpl-trig",
       ["source"] = "tieske-upnp.john-lv",
       ["hop"] = "1",
       ["target"] = "*",
       ["schema"] = "upnp.announce",
       ["body"] = { -- #1
          [1] = { -- #2
             ["value"] = "variable",
             ["key"] = "announce",
          } -- #2,
          [2] = { -- #3
             ["value"] = "378",
             ["key"] = "id",
          } -- #3,
          [3] = { -- #4
             ["value"] = "370",
             ["key"] = "parent",
          } -- #4,
          [4] = { -- #5
             ["value"] = "VolumeDB",
             ["key"] = "name",
          } -- #5,
          [5] = { -- #6
             ["value"] = "False",
             ["key"] = "event",
          } -- #6,
          [6] = { -- #7
             ["value"] = "i2",
             ["key"] = "type",
          } -- #7,
          [7] = { -- #8
             ["value"] = "tieske-upnp.john-lv",
             ["key"] = "xpl",
          } -- #8,
          [8] = { -- #9
             ["value"] = "-18688",
             ["key"] = "minimum",
          } -- #9,
          [9] = { -- #10
             ["value"] = "1536",
             ["key"] = "maximum",
          } -- #10,
          [10] = { -- #11
             ["value"] = "256",
             ["key"] = "step",
          } -- #11,
       } -- #1,
    } -- #0
    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

  4. #94
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default

    Did you restart Girder? otherwise the code change won't be in effect. There should now be a stacktrace in the error message... thats what I was looking for.
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

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

    Default

    a couple PM's sent
    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. #96
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default

    Here are the updated XML's
    Attached Files Attached Files
    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. #97
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default

    OK, we’re having progress.

    At the top of the log you send, the method call is displayed (@09:54:13.453), and without errors this time, so that seems to work now. The errors following are value updates (as opposed to method calls), I guess I have to add a similar fix to those as well.

    Can you also post the code I created in the girder action? (I might need to update that one too)
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  8. #98
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default

    Code:
    -- The ID's below are fixed, and will not change over time
    local RecivaUUID = "c29e7602-328f-444d-911c-7cdc8bc74768"
    local RadioServiceID = "urn_reciva-com_serviceId_RecivaRadio"
    local PlaylistServiceID = "urn_linn-co-uk_serviceId_Playlist"
    local SimpleRemoteService = "urn_reciva-com_serviceId_RecivaSimpleRemote"
    local TransportService = "urn_upnp-org_serviceId_AVTransport"
    local ConnectionManagerService = "urn_upnp-org_serviceId_AVTransport"
    local RendererService = "urn_upnp-org_serviceId_RenderingControl"
    
    -- generic function to get a method by its IDs
    local function GetMethod(service, name)
    	local d = UPnP.devices[RecivaUUID]
    	assert(d, "RecivaUUID was not found")
    	local s = d.services[service]
    	assert(s, "Service " .. tostring(service) .. " not found")
    	local m = s.methods[name]
    	assert(s, "Method " .. tostring(name) .. " not found")
    	return m
    end
    
    -- Get the method we need, simply by the service and the method name
    local m = GetMethod(RadioServiceID, "GetPlaybackDetails")
    -- Now execute the method, make sure to use the correct number of arguments
    -- check with UPnP Device Spy if necessary
    m:execute("", "")
    print("Method executed")
    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

  9. #99
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default

    Change the last two lines from;
    Code:
    m:execute("", "")
    print("Method executed")
    to the following;
    Code:
    print(m:execute("",""))
    If I'm correct (which I haven't been very much so far ) then if you execute the Girder action again, it will print the results in the Lua console. That is; the value of that variable will be displayed, and that value is a piece of xml containing the info you're looking for.
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

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

    Default

    Code:
    true  <reciva><playback-details><state>Stopped</state><format codec="MP3" sample-rate="44100" bit-rate="128000" bit-depth="1"></format><station id="1" custommenuid="200025" token="316636963676895715:UXVpY2tNaXg-"></station><playlist-entry><artist>U2</artist><album>Rattle And Hum</album><metadata-string>Desire by U2 on Rattle And Hum</metadata-string><album-art-url>http://cont-sv5-2.pandora.com/images/public/amz/0/2/9/9/042284229920_500W_500H.jpg</album-art-url><title>Desire</title></playlist-entry><stream><url>command://callback?sp=v257%2Da%2D865%2Da%2D410%2Da%2D042&amp;hw=623&amp;serial=0007a041&amp;data=316636963676895715%3AUXVpY2tNaXg%2D&amp;radioswversion=v600%2Da%2D311%2Da%2D566%2Db%2D057&amp;command=PANDORA%5FSTATION</url><title>QuickMix</title><metadata>Desire by U2 on Rattle And Hum</metadata><album-art-url>http://cont-sv5-2.pandora.com/images/public/amz/0/2/9/9/042284229920_500W_500H.jpg</album-art-url></stream></playback-details></reciva>
    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 10 of 15 FirstFirst ... 89101112 ... 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
  •