Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 8 123 ... LastLast
Results 1 to 10 of 73
  1. #1
    Senior Member
    Join Date
    Apr 2008
    Location
    Toronto area, Canada
    Posts
    1,306

    Spontaneous turning-on

    I suspect this has been addressed before, but I just had an annoying experience last night that I thought I'd post.

    I normally listen to my radio while at my main workstation. When I'm done I put it to sleep, rather than fully power down, a I like seeing the time and the instant-on capacity.

    However, the radio tends to turn fully on arbitrarily, I suspect in response to some form of minor power disruption, e.g. a surge or an "off" for a second or two. Normally this wouldn't matter, as there is nothing in the play queue. But if I put it to sleep when there is still a playlist, it starts to play. And so I woke up to a newly released but very old live recording of Ian and Sylvia, the excellently-recorded tunes wafting down the hallway from my office to the bedroom, where the dearly beloved was not amused.

    I suppose the lesson is to clear any playlists or to turn the thing completely off. Anyone else have this experience?

    I'm not sure it's possible to clear the playlist from the controls on the radio, and I wouldn't normally have access to SqueezeCntrl on my phone when I'm at the desk.

    R.
    LMS on a dedicated server (FitPC3)
    Transporter (Ethernet) - main listening, Onkyo receiver, Paradigm speakers
    Touch (WiFi) - home theater 5.1, Sony receiver, Energy speakers
    Boom 1 (WiFi) - work-space
    Boom 2 (WiFi) - various (deck, garage, etc.)
    Radio (WiFi) - home office
    Control - Squeeze Control (Android mobile), 2 Controllers (seldom used), Squeeze Remote (on Surface Pro 4)
    Touch x 1 - spare
    UE Radio x 1 - spare
    Boom x 1 - spare
    Controller x 1 - Spare
    Duet Receiver (backup)

  2. #2
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    3,833
    Quote Originally Posted by RonM View Post
    I suspect this has been addressed before, but I just had an annoying experience last night that I thought I'd post.

    I normally listen to my radio while at my main workstation. When I'm done I put it to sleep, rather than fully power down, a I like seeing the time and the instant-on capacity.

    However, the radio tends to turn fully on arbitrarily, I suspect in response to some form of minor power disruption, e.g. a surge or an "off" for a second or two. Normally this wouldn't matter, as there is nothing in the play queue. But if I put it to sleep when there is still a playlist, it starts to play. And so I woke up to a newly released but very old live recording of Ian and Sylvia, the excellently-recorded tunes wafting down the hallway from my office to the bedroom, where the dearly beloved was not amused.

    I suppose the lesson is to clear any playlists or to turn the thing completely off. Anyone else have this experience?

    I'm not sure it's possible to clear the playlist from the controls on the radio, and I wouldn't normally have access to SqueezeCntrl on my phone when I'm at the desk.

    R.
    Check your settings for power on resume in player settings/audio..

    Sent from my Pixel 3a using Tapatalk

  3. #3
    Senior Member
    Join Date
    Oct 2009
    Location
    Western & Northern New York
    Posts
    191
    Quote Originally Posted by RonM View Post
    Anyone else have this experience?

    R.
    I have, and it happens, say 2-3 times a year. Only with radio, never with boom. Touch and receivers - not sure because they may come on, but without the amp on. I have walked up on a touch screen in "now playing" as opposed to "off" and not thought much of it, but it could have popped on similarly.

    I have a radio in my office on my first floor, and I'll wake up in bed on the second floor, and it sounds like there is someone in the house. The first time it freaked me, but now I know what it is . I also think I have walked in the office during the day and found the radio playing, so it's probably not just at night.

    I think it's well documented here in the forum, I remember reading about it somewhere...my guess would be some sort of network event, or, even something goofy in the IR receiver circuit/code.

    Jim

  4. #4
    Senior Member
    Join Date
    May 2010
    Posts
    120
    They do an spontaneous reboot, I seen it on both my Touch and Radio and to me it happens 4-5 a year and they done so since they where new so almost 10 now
    1 x Touch
    1 x Radio
    Logitech Media Server Version: 7.9.2 - 0026.1567524015 @ Wed Sep 4 12:28:40 CEST 2019
    Castbridge with 2 x Harman Kardon Citation One, setup as a stereo pair
    Squeeze Ctrl
    Squeeze Player
    Phone: Samsung Galaxy Note 8

  5. #5
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    82

    Suspect Timer overflow as reason

    Hi,

    I also experience "random" reboots of my Radios and my Touch several times a year.

    After having a close look to that for several month, these reboots aren't that much random, instead they happen in a constant-time interval (about once per month) and they happen simultaneously if they were initally started at the same time.

    So I suspect the reason for that being a timer overflow causing a (watchdog?) reset of the devices. As an example, a 32bit timer running at 1000Hz overflows once each 49.7 days.

    Can anybody confirm this?
    Last edited by Steevee28; 2020-02-25 at 02:19.
    1x Squeezebox Classic, 3x Radio, 1x Touch, LMS 7.9.1 running on ODROID-U3, Ubuntu 16.04 and I'm happy with it! :)

  6. #6
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,387
    The touch and radio watchdog timer will reboot the units if the squeezeplay process crashes.

    The watchdog timer also restarts the radio if the microcontroller monitor process dies.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  7. #7
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    82

    Suspect Timer overflow as reason

    Yes.
    I haven't looked through the code yet, but I guess that some event no longer occurs because of a wrapping timer / timer overflow and as a consequence, the watchdog resets the device.

    Just as an illustration:

    such buggy code could look like this:
    Code:
    ...
    static uint32_t timestamp_of_next_event = 0;
    ...
    if ( getCurrentTimerValue() >= timestamp_of_next_event )
    {
        ...trigger_some_event...;
        timestamp_of_next_event += 1000;
    }
    note that in this code, the event will no longer be triggered when the uint32 timer value wraps from 0xffffffff to 0x0.

    one simple way to fix such code would be:
    Code:
    ...
    static uint32_t timestamp_of_next_event = 0;
    ...
    
    if ( (int32_t)( getCurrentTimerValue() - timestamp_of_next_event ) >= 0 )
    {
        ...trigger_some_event...;
        timestamp_of_next_event += 1000;
    }
    note the important explicit type cast to (signed) int32_t type in order to cast the unsigned difference of the timer value and timestamp_of_next_event to its signed value before checking whether the result is positive.

    (I'm sorry for writing the example code in C. I am neither able to code in Perl nor in Lua.)
    1x Squeezebox Classic, 3x Radio, 1x Touch, LMS 7.9.1 running on ODROID-U3, Ubuntu 16.04 and I'm happy with it! :)

  8. #8
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    466
    Quote Originally Posted by Steevee28 View Post
    Can anybody confirm this?
    No.

    I have two Radios permanently on, for many years, and have never knowingly experienced this.

    'Spontaneous' reboots ? Yes, very occasionally, but not obviously correlated.

  9. #9
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    82
    Quote Originally Posted by mrw View Post
    ... permanently on...
    'Permanently on' means connected to power, but in standby/idle, ie. The Radio showing the clock?
    I'm asking this, becaue the reboots will leave the Radio in "on state", ie. showing the Main Menu.

    Which device firmware versions do you have?


    Quote Originally Posted by mrw View Post
    ...but not obviously correlated...
    For the reboots being obviously correclated, both Radios need to be initially turned on at the same point of time, of course.
    Last edited by Steevee28; 2020-02-25 at 16:01.
    1x Squeezebox Classic, 3x Radio, 1x Touch, LMS 7.9.1 running on ODROID-U3, Ubuntu 16.04 and I'm happy with it! :)

  10. #10
    Senior Member
    Join Date
    Oct 2009
    Location
    Western & Northern New York
    Posts
    191
    my radios are always connected to power, remain "off" (show clock screen saver) when not playing, and I have experienced the popping "on" (start playing a radio station, presumably the one in the playlist). Like I mentioned, this might also have happened with my touches, but since the amp is off, I don't notice it (audibly). I have walked up and seen the "now playing" screen, but not known if it occurred spontaneously, or a sloppy shut down on my part (I use a IR via a universal remote on my main systems).

    picore servers, always connected to power and running.

    The radios have started playing, unprovoked, maybe 1-4 times a year. My experience. YMMV. It's not a big deal to me, it's "character" now that I know it's not people in my house in the middle of the night....

    Jim

Posting Permissions

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