Bug 15612 - Choose player shows Jive Icon
: Choose player shows Jive Icon
Status: VERIFIED FIXED
Product: SB Touch
Classification: Unclassified
Component: UI
: unspecified
: PC Windows XP
: P1 normal (vote)
: 7.5.0
Assigned To: Felix Mueller
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-04 16:52 UTC by Ryan
Modified: 2010-02-16 11:08 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan 2010-02-04 16:52:23 UTC
With SD card installed navigated to choose player and the unit showed itself with a Jive controller Icon  fw8453
Comment 1 Ben Klaas 2010-02-04 19:02:35 UTC
I'll take this
Comment 2 Ben Klaas 2010-02-10 08:56:23 UTC
during scan, the player:getModel() is returning "controller"

20100210 16:54:25.336 WARN   applet.SelectPlayer - SelectPlayerApplet.lua:214 Player: Player {Squeezebox Touch} is model: controller

after scan (and player connected notification goes out), player:getModel() returns "fab4"

20100210 16:54:25.541 WARN   applet.AlarmSnooze - AlarmSnoozeApplet.lua:265 notify_playerConnected: Player {Squeezebox Touch} nil

20100210 16:54:31.589 WARN   applet.SelectPlayer - SelectPlayerApplet.lua:214 Player: Player {Squeezebox Touch} is model: fab4
Comment 3 Ben Klaas 2010-02-10 12:38:04 UTC
This was hard to reproduce, but now I can do it reliably by shutting off tinySC and then going into Choose Player

I added some debug to show when this is getting erroneously set to the wrong device type, and it's in the updateUDAP() Player method

Here's the traceback-

20100210 20:35:53.914 ERROR  squeezebox.player - Player.lua:500 updateUdap: setting player model: controller
stack traceback:
        ...ueezeplay/src/squeezeplay/share/jive/slim/Player.lua:500: in function 'updateUdap'
        .../share/applets/SlimDiscovery/SlimDiscoveryApplet.lua:160: in function '_udapSink'
        .../share/applets/SlimDiscovery/SlimDiscoveryApplet.lua:244: in function 'sink'
        .../squeezeplay/src/squeezeplay/share/jive/net/Udap.lua:128: in function 'snk'
        .../trunk/squeezeplay/build/osx/share/lua/5.1/ltn12.lua:275: in function 'step'
        ...ezeplay/src/squ
20100210 20:35:53.914 WARN   applet.SelectPlayer - SelectPlayerApplet.lua:214 Player: Player {Squeezebox Touch} is model: controller
Comment 4 Ben Klaas 2010-02-10 12:38:51 UTC
cc:ing Felix. Felix, any idea why the udap packet would have the wrong device ID for the Fab4?
Comment 5 Ben Klaas 2010-02-10 12:48:06 UTC
I took it a step further and dumped the UDAP packet after shutting down tinySC

device_id in the packet is 9, which is what Player.lua has for "controller". Is the id incorrect or the Player.lua mapping wrong?

{ --[[table: 0x16e17c10]]
  seqno = 1,
  source = "00042022001d",
  ucp = { --[[table: 0x16e17c30]]
    device_status = "wait_slimserver",
    type = "fab4",
    name = "Squeezebox Touch",
    firmware_rev = "7.5.0 r8470",
    device_id = "9",
    hardware_rev = "3",
  },
  udapType = 49153,
  uapClass = "00010001",
  udapFlag = 0,
  uapMethodId = 9,
  dest = "0004202600e7",
  uapMethod = "adv_discover",
  destType = 2,
  sourceType = 1,
}
20100210 20:44:25.611 ERROR  squeezebox.player - Player.lua:500 updateUdap: setting player model: controller
stack traceback:
        ...ueezeplay/src/squeezeplay/share/jive/slim/Player.lua:500: in function 'updateUdap'
        .../share/applets/SlimDiscovery/SlimDiscoveryApplet.lua:161: in function '_udapSink'
        .../share/applets/SlimDiscovery/SlimDiscoveryApplet.lua:245: in function 'sink'
        .../squeezeplay/src/squeezeplay/share/jive/net/Udap.lua:128: in function 'snk'
        .../trunk/squeezeplay/build/osx/share/lua/5.1/ltn12.lua:275: in function 'st
Comment 6 Ben Klaas 2010-02-10 12:59:11 UTC
assign to Felix for feedback on UDAP device_ids
Comment 7 Felix Mueller 2010-02-12 03:55:30 UTC
What device ID would you expect? Looking into the list in Player.lua I guess 12 (= squeezeplay)?

Udap is getting the device ID via getDeviceType() and device ID gets set via setDeviceType(). It is always set to 9 for every device.

See this change by Richard here:

http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/jive/slim/LocalPlayer.lua?r1=4058&r2=4061
Comment 8 SVN Bot 2010-02-12 04:15:09 UTC
 == Auto-comment from SVN commit #8489 to the  repo by bklaas ==
 == https://svn.slimdevices.com/?view=revision&revision=8489 ==

Fixed Bug: 15612
Description: default to using udap.ucp.type for setting self.info.model
Comment 9 Ryan 2010-02-16 11:08:25 UTC
Just checked this with 8504