Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,834

    BUTN and IR codes

    Hi - In my button implementation of SqueezeESP32/SqueezeAMP, I used the CLI to send commands like "button arrow_up" and "button knob_left". I've just realized as I wanted to add IR that there are "BUTN" and "IR " slimproto messages which might be a better choice. Thing is, I'm not sure of the codes used for such messages. Is this the file "Front_Panel.ir" and others in the "IR" directory? Is this the 8 hex digit that shall be sent in the BUTN message?
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,430

    BUTN and IR codes

    Ok, here's some information a trustworthy person gave me - but I know
    nothing about it :-)

    BUTN likely is for Boom/Transporter hardware buttons only. They're dealt
    with similarly to IR codes in LMS.

    Then there's some information on the wiki:
    http://wiki.slimdevices.com/index.ph...characters..29

    ....and in the code (Slimproto.pm). I bet you've seen this:

    # format for IR:
    # [4] time since startup in ticks (1KHz)
    # [1] code format
    # [1] number of bits
    # [4] the IR code, up to 32 bits

    _ir_handler:
    my ($irTime, $irCode) = unpack('NxxH8', $$data_ref);

    _button_handler:
    my ($time, $button) = unpack( 'NH8', $$data_ref);

    Good luck with that!


    --

    Michael

Posting Permissions

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