Home of the Squeezebox™ & Transporter® network music players.
Page 12 of 41 FirstFirst ... 2101112131422 ... LastLast
Results 111 to 120 of 404
  1. #111
    Junior Member
    Join Date
    Sep 2013
    Posts
    16
    @bgiraut Hooked up an I2S DAC to a ESP8266 NodeMCU using the same wiring as in the photo in your original post (though I didn't include the resistor to ground, not sure the purpose of that). It connects to the LMS Server fine and seems to be stable up to the point that I try to actually play a song on it. At that point it just continuously resets. Below is a dump from the serial monitor.

    Tonight I will try again with an ESP32 instead.

    *WM:
    *WM: AutoConnect
    *WM: Connecting as wifi client...
    *WM: Already connected. Bailing out.
    *WM: IP Address:
    *WM: 192.168.1.80
    *WM: freeing allocated params!
    Search for LMS server...
    Found LMS server @ 192.168.1.1
    Connecting to server @192.168.1.1...
    Connection Ok, send hello to LMS
    Expected command size : 28
    Array(28) : 73 74 72 6D 71 30 6D 3F 3F 3F 3F 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 00 00
    Sub command : 113
    Sub command q (stop)
    Expected command size : 22
    Array(22) : 61 75 64 67 00 00 00 2E 00 00 00 2E 01 FF 00 00 0E 00 00 00 0E 00
    audg commanda
    Sorry, no volume control in DAC mode
    Expected command size : 28
    Array(28) : 73 74 72 6D 74 30 6D 3F 3F 3F 3F 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 00 00
    Sub command : 116
    Sub command t (status)
    Array(61) : 53 54 41 54 00 00 00 35 53 54 4D 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Expected command size : 28
    Array(28) : 73 74 72 6D 74 30 6D 3F 3F 3F 3F 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 00 00
    Sub command : 116
    Sub command t (status)
    Array(61) : 53 54 41 54 00 00 00 35 53 54 4D 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Expected command size : 28
    Array(28) : 73 74 72 6D 74 30 6D 3F 3F 3F 3F 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 00 00
    Sub command : 116
    Sub command t (status)
    Array(61) : 53 54 41 54 00 00 00 35 53 54 4D 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Expected command size : 28
    Array(28) : 73 74 72 6D 74 30 6D 3F 3F 3F 3F 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 00 00
    Sub command : 116
    Sub command t (status)
    Array(61) : 53 54 41 54 00 00 00 35 53 54 4D 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Expected command size : 28
    Array(28) : 73 74 72 6D 74 30 6D 3F 3F 3F 3F 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 00 00
    Sub command : 116
    Sub command t (status)
    Array(61) : 53 54 41 54 00 00 00 35 53 54 4D 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Expected command size : 28
    Array(28) : 73 74 72 6D 74 30 6D 3F 3F 3F 3F 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 00 00
    Sub command : 116
    Sub command t (status)
    Array(61) : 53 54 41 54 00 00 00 35 53 54 4D 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Expected command size : 28
    Array(28) : 73 74 72 6D 71 30 6D 3F 3F 3F 3F 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 00 00
    Sub command : 113
    Sub command q (stop)
    Expected command size : 22
    Array(22) : 61 75 64 67 00 00 00 30 00 00 00 30 01 FF 00 00 10 00 00 00 10 00
    audg command
    Sorry, no volume control in DAC mode
    Expected command size : 81
    Array(81) : 73 74 72 6D 73 31 6F 3F 3F 3F 3F 14 00 00 30 00 14 00 00 01 00 00 23 28 00 00 00 00 47 45 54 20 2F 73 74 72 65 61 6D 2E 6D 70 33 3F 70 6C 61 79 65 72 3D 30 30 3A 30 30 3A 30 30 3A 30 30 3A 30 30 3A 30 31 20 48 54 54 50 2F 31 2E 30 0D 0A 0D 0A
    Sub command : 115
    Sub command s (start)
    Url :

    Exception (28):
    epc1=0x4020fc93 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

    >>>stack>>>

    ctx: cont
    sp: 3ffefbb0 end: 3fff0190 offset: 01a0
    3ffefd50: 4000e23b 00000030 0000001e ffffffff
    3ffefd60: 20544547 7274732f 2e6d6165 3f33706d
    3ffefd70: 79616c70 303d7265 30303a30 3a30303a
    3ffefd80: 303a3030 31303a30 54544820 2e312f50
    3ffefd90: 0d0a0d30 0000000a 00000000 00000000
    3ffefda0: 00000000 00000000 00000000 00000000
    3ffefdb0: 00000000 00000000 00000000 00000000
    3ffefdc0: 00000000 00000000 00000000 00000000
    3ffefdd0: 00000000 00000000 00000000 00000000
    3ffefde0: 00000000 00000000 00000000 00000000
    3ffefdf0: 00000000 00000000 00000000 00000000
    3ffefe00: 00000000 00000000 00000000 00000000
    3ffefe10: 00000000 00000000 00000010 00000000
    3ffefe20: 00000000 00000000 00000000 00000000
    3ffefe30: 00000000 00000000 00000000 00000000
    3ffefe40: 00000000 00000000 00000000 00000000
    3ffefe50: 00000000 00000000 00000000 00000000
    3ffefe60: 00000000 00000000 00000000 00000000
    3ffefe70: 00000000 00000000 00000000 00000000
    3ffefe80: 00000000 00000000 00000000 00000000
    3ffefe90: 00000000 00000000 00000000 00000000
    3ffefea0: 00000000 00000000 00000000 00000000
    3ffefeb0: 00000000 00000000 00000000 00000000
    3ffefec0: 00000000 00000000 00000000 00000000
    3ffefed0: 00000000 00000000 00002200 4000050c
    3ffefee0: 3ffe8300 00000000 00000010 402759ff
    3ffefef0: 3ffeff63 0000000a 00000000 4022f234
    3ffeff00: 4021e6fa 00000030 0000001d 3ffe87cc
    3ffeff10: 00000000 3ffe87cb 3ffeffc0 4022f717
    3ffeff20: 00000000 00000002 00000002 00000000
    3ffeff30: 00000001 00000002 00302058 00000000
    3ffeff40: 00000028 0000007e 00000006 00000030
    3ffeff50: 4021e718 007f8000 6000001c 0000000c
    3ffeff60: 00413300 00005800 0000001f 40104cc1
    3ffeff70: 4000050c 00000003 00000000 00000000
    3ffeff80: 3fff0050 3fff0040 0000000c 3ffe8300
    3ffeff90: 3fff0010 00000000 3fff000f 4021e7ce
    3ffeffa0: 00000038 0000000a 3ffeeba4 3ffeeba4
    3ffeffb0: 00000031 0000000a 3ffeeba4 4021a500
    3ffeffc0: 3fff0072 0000007e 7ffffffd 4021a81d
    3ffeffd0: 3fff000d 7fffffff 3ffefffd 4021ab4b
    3ffeffe0: 00000032 0000000a 3fff000c 4021ab4b
    3ffefff0: 3ffe8f98 00000000 3ffe8f97 4021e7ce
    3fff0000: 3ffe8850 00000000 3ffe884f 4020ff54
    3fff0010: 3fff12dc 00000015 3ffeeba4 4021a500
    3fff0020: 3ffefe20 00000051 3ffefd60 00000000
    3fff0030: 3ffefed0 00000000 00000000 00000000
    3fff0040: 3ffe883b 00000051 3ffeeba4 4021aa38
    3fff0050: 00ff0000 ff000000 3ffeeba4 4020ff54
    3fff0060: 3fff12dc 00000051 3fff00a0 4020ffc1
    3fff0070: 6d727473 00000000 3ffeeba4 4021a81d
    3fff0080: 3ffe8f98 00000000 3ffe8f97 3fff0100
    3fff0090: 00000051 3fff00a0 3fff12dc 40210139
    3fff00a0: 6d727473 3f6f3173 143f3f3f 00300000
    3fff00b0: 01000014 28230000 00000000 20544547
    3fff00c0: 7274732f 2e6d6165 3f33706d 79616c70
    3fff00d0: 303d7265 30303a30 3a30303a 303a3030
    3fff00e0: 31303a30 54544820 2e312f50 0d0a0d30
    3fff00f0: 3ffeeb0a 3ffeeba4 3fff12dc 40210106
    3fff0100: 3ffe5100 00000000 3fff0e94 402110f5
    3fff0110: 3fff0100 40230e6e 00000098 3ffeeb28
    3fff0120: 3ffeeb10 3fff12dc 3fff134c 3ffeeb28
    3fff0130: 3ffeeb10 3fff12dc 3fff134c 4020f68e
    3fff0140: 00000000 00000000 ff312e31 fe000001
    3fff0150: 0000000a 00000000 fe01ef35 00000000
    3fff0160: 00000000 0000000a 3fff0fb4 3ffeecd0
    3fff0170: 3fffdad0 00000000 3ffeeca0 4021ca4c
    3fff0180: feefeffe feefeffe 3ffe851c 40100679
    <<<stack<<<

    ets Jan 8 2013,rst cause:2, boot mode3,7)

    load 0x4010f000, len 1384, room 16
    tail 8
    chksum 0x2d
    csum 0x2d
    v8b899c12
    ~ld
    Last edited by aussieW; 2019-05-21 at 14:19.

  2. #112
    I made some tests with the combo ESP32/I2S DAC and the audio library seems to get trouble. Sorry for that...
    I will made some more tests tomorrow with ESP8266/DAC to be sure it is still running ok.

  3. #113
    @aussieW: There was an issue in DAC mode during the determination of the Url. The new version should fixe the problem : https://drive.google.com/file/d/1--6...ew?usp=sharing

    !!! Remove the '/' before '/stream.mp3' in the Url at line 463 of the file slimproto.cpp

    Try with ESP8266 because with ESP32 the library always lost synchro :

    23:32:42.890 -> Sub command : 115
    23:32:42.890 -> Sub command s (start)
    23:32:42.890 -> Format MP3
    23:32:42.890 -> Url : http://192.168.0.222:9000//stream.mp3
    23:32:42.930 -> Let's play music
    23:32:43.090 -> +0 0x3ffb1aa8
    23:32:43.090 -> STATUS(buffer) '2' = 'Refilling buffer'
    23:32:47.810 -> STATUS(buffer) '3' = 'Buffer underflow'
    23:32:47.810 -> STATUS(mp3) '257' = 'Decoding error 'lost synchronization' at byte offset 6842'
    23:32:47.850 -> STATUS(buffer) '2' = 'Refilling buffer'
    23:33:20.330 -> STATUS(mp3) '257' = 'Decoding error 'lost synchronization' at byte offset 8179'
    23:33:20.330 -> STATUS(mp3) '257' = 'Decoding error 'lost synchronization' at byte offset 9615'
    Last edited by bgiraut; 2019-05-21 at 14:49.

  4. #114
    Junior Member
    Join Date
    Sep 2013
    Posts
    16
    @bgiraut thanks, I'll give it a go this evening when I get home from work.

  5. #115
    Junior Member
    Join Date
    Sep 2013
    Posts
    16
    @bgiruat getting closer now. No longer resetting continuously on my ESP8266 but getting 'Unable to allocate AudioFileSourceBuffer::buffer[]'.

    Sub command : 113
    Sub command q (stop)
    Expected command size : 22
    Array(22) : 61 75 64 67 00 00 00 3F 00 00 00 3F 01 FF 00 00 1D 00 00 00 1D 00
    audg command
    Sorry, no volume control in DAC mode
    Expected command size : 81
    Array(81) : 73 74 72 6D 73 31 6D 3F 3F 3F 3F FF 00 00 30 00 01 00 00 00 00 00 23 28 00 00 00 00 47 45 54 20 2F 73 74 72 65 61 6D 2E 6D 70 33 3F 70 6C 61 79 65 72 3D 30 30 3A 30 30 3A 30 30 3A 30 30 3A 30 30 3A 30 31 20 48 54 54 50 2F 31 2E 30 0D 0A 0D 0A
    Sub command : 115
    Sub command s (start)
    Format MP3
    Url : http://192.168.1.1:9000/stream.mp3
    Let's play music
    Unable to allocate AudioFileSourceBuffer::buffer[]
    Expected command size : 22
    Array(22) : 61 75 64 67 00 00 00 3F 00 00 00 3F 01 FF 00 00 1D 00 00 00 1D 00
    audg command
    Sorry, no volume control in DAC mode
    Expected command size : 28
    Array(28) : 73 74 72 6D 74 30 6D 3F 3F 3F 3F 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 00 00
    Sub command : 116
    Sub command t (status)
    Array(61) : 53 54 41 54 00 00 00 35 53 54 4D 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    METADATA(ICY) 'StreamTitle' = 'Jailbreak'
    METADATA(ICY) 'StreamTitle' = 'Jailbreak'

  6. #116
    I have been a little bit optimist to allocate 80k for the buffer on ESP8266. Downgrade to 8k or may be less for the first tests.

    // Use 8k of audio buffer
    vcDacBuff = new AudioFileSourceBuffer(vcDacFile, 80096); --- > vcDacBuff = new AudioFileSourceBuffer(vcDacFile, 8096); on line 495

    80k work for an ESP32 but not an ESP8266

  7. #117
    Junior Member
    Join Date
    Sep 2013
    Posts
    16
    @bgiruat that has helped a lot, but still no sound at all. I think I may have to double check my wiring. Will do that in the morning.

  8. #118
    I have soldered a new Wemos ESP8266 during lunch time but i could not get wifi working properly. I hope the board is not out of order. More tests tonight

  9. #119
    Junior Member
    Join Date
    Sep 2013
    Posts
    16
    @bgiruat - a bit of an update.

    I found a problem with my wiring. Now it plays music but is totally unuseable due to buffering and crashes. I realise that the lack of volume control may be an issue for me. I think I might end up purchasing a VS1053 board. I still can't compile for the ESP32 due to the error with WiFi Manager mentioned in a previous post. I confirmed that I am using the WiFi Manager that you recommended.

  10. #120
    Senior Member
    Join Date
    Dec 2009
    Location
    Quebec City, Canada
    Posts
    162

    Squeezelite ESP32

    All, for those reading this thread, I wanted to let you know that Philippe44 has been a driving force to porting Squeezelite over to the ESP32 with my modest help.

    One of our requirement is to support synchronization and, for reasons that are too complicated to explain from behind a tablet virtual keyboard, we decided to ditch the external codec chip and instead go for an embedded library. The ESP32 is, in theory, capable of decoding streams while handling platform management and slimproto tasks and it has a minimal implementation of a multi tasking system to help. Output will send audio stream to A2DP as well as to an external DAC.

    Unfortunately for some of you readers, decoding in chip means lots of buffering, and the typical ESP32 WROOM doesn't have enough RAM to support some important features. The WROVER platform will be the minimum starting point; it has an additional 4Mb of PSRAM that can be allocated, amongst others, to ring buffer allocations that are critical for this sort of processing.

    Also, even though the Arduino platform is somewhat convenient, it also shields to much from the ESP's raw power and thus, porting is being done over the ESP-IDF platform.

    I am pretty sure that this thread's slimproto implementation has a place in the grand scheme of things, being what can account as one of the most impressively bare bone slimproto I have seen in my short experience. Hats off to the OP.

    If there is enough progress on the Squeezelite port and that it proves to be solid enough to do synchronisation, I think there will be another thread on this forum to discuss it.

    @philippe44, feel free to chime in!

Posting Permissions

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