Home of the Squeezebox™ & Transporter® network music players.
Page 25 of 33 FirstFirst ... 152324252627 ... LastLast
Results 241 to 250 of 324
  1. #241
    Junior Member
    Join Date
    Sep 2020
    Location
    UK/Cornwall
    Posts
    15
    Just been reading the posts regarding SPI display configuration.
    I had a go with an SSD1351 display and came up with the following config. Maybe it might help someone?
    DC - pin 5
    MOSI - pin 13 (MTCK)
    CLK - pin 14 (MTMS)
    CS - pin 15 (MTDO)
    Last edited by funkybassman; 2020-10-16 at 14:59.

  2. #242

    Merus MA12070P

    For fun I connected my Merus MA12070P evaluation board to my ESP32-WROVER board, and got no sound. I realize there is no driver for this amp chip, but as I understand it it may be possible to get this working. The first thing I noticed is that the default i2s_framesize for the amp is 64 (2 * 32) bits. As I understand it, the ESP32-WROVER has a maximum of 32 (2 * 16) bits. According to the datasheet (page 78)

    https://docs.google.com/viewer?url=h...64b761f2f261e4

    register address 0X36(4:3) needs be changed to 10.

    Can someone help me with the command needed in dac_controlset to accomplish this? At least I think that's the right place to initiate a register change.
    I'm sure there are a lot of other problems, but I thought this would be a fun project.

    Thanks, Mike

  3. #243
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    6,229
    Quote Originally Posted by mboxler View Post
    For fun I connected my Merus MA12070P evaluation board to my ESP32-WROVER board, and got no sound. I realize there is no driver for this amp chip, but as I understand it it may be possible to get this working. The first thing I noticed is that the default i2s_framesize for the amp is 64 (2 * 32) bits. As I understand it, the ESP32-WROVER has a maximum of 32 (2 * 16) bits. According to the datasheet (page 78)

    https://docs.google.com/viewer?url=h...64b761f2f261e4

    register address 0X36(4:3) needs be changed to 10.

    Can someone help me with the command needed in dac_controlset to accomplish this? At least I think that's the right place to initiate a register change.
    I'm sure there are a lot of other problems, but I thought this would be a fun project.

    Thanks, Mike
    I assume you've set dac_config with bck, ws, do, model, sda, scl and i2c properly. Then, "dac_controlset" should look like

    Code:
    { init: [ {"reg":54,"val":17} ] }
    PS: please verify the value. You might have to set register 0x35 to 0x00, but I'm not sure
    Last edited by philippe_44; 2020-10-22 at 22:08.
    LMS 7.9 on Pi 3B+ & Odroid-C2 - SqueezeAMP!, 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, Riva 1 & 3

  4. #244
    Senior Member
    Join Date
    Feb 2008
    Posts
    343

    crashes

    I get random crashes in one of my systems.

    It plays music, makes some noise like repeating the last milliseconds over and over for a second and then the ESP reboots.
    From the log I can't see much.

    Code:
    [05:07:57.992304] output_thread_i2s_stats:612 
    [05:07:57.992536] output_thread_i2s_stats:613               ----------+----------+-----------+-----------+  
    [05:07:57.992768] output_thread_i2s_stats:614               max (us)  | min (us) |   avg(us) |  count    |  
    [05:07:57.992985] output_thread_i2s_stats:615               ----------+----------+-----------+-----------+  
    [05:07:57.993226] output_thread_i2s_stats:616  Buffering(us)      2239|       782|       1101|        107|
    [05:07:57.993505] output_thread_i2s_stats:617    i2s tfr(us)     45635|     44214|      45311|        107|
    [05:07:57.993785] output_thread_i2s_stats:618               ----------+----------+-----------+-----------+
    [05:08:02.988925] output_thread_i2s_stats:602 Output State: 2, current sample rate: 44100, bytes per frame: 4
    [05:08:02.989472] output_thread_i2s_stats:603               +----------+----------+----------------+-----+----------------+
    [05:08:02.991106] output_thread_i2s_stats:604               |      max |      min |        average |     |        count   |
    [05:08:02.992182] output_thread_i2s_stats:605               |  (bytes) |  (bytes) |        (bytes) |     |                |
    [05:08:02.992407] output_thread_i2s_stats:606               +----------+----------+----------------+-----+----------------+
    [05:08:02.992600] output_thread_i2s_stats:607         stream|    408597|    212156|          310434|   60|             108|
    [05:08:02.992972] output_thread_i2s_stats:608         output|   1837500|   1817020|         1828710|   89|             108|
    [05:08:02.993320] output_thread_i2s_stats:609               +----------+----------+----------------+-----+----------------+
    [05:08:02.993548] output_thread_i2s_stats:610       received|      2048|      2048|            2048|  100|             108|
    [05:08:02.993895] output_thread_i2s_stats:611               +----------+----------+----------------+-----+----------------+
    [05:08:02.994547] output_thread_i2s_stats:612 
    [05:08:02.994784] output_thread_i2s_stats:613               ----------+----------+-----------+-----------+  
    [05:08:02.995039] output_thread_i2s_stats:614               max (us)  | min (us) |   avg(us) |  count    |  
    [05:08:02.995248] output_thread_i2s_stats:615               ----------+----------+-----------+-----------+  
    [05:08:02.995456] output_thread_i2s_stats:616  Buffering(us)      2117|       750|       1129|        108|
    [05:08:02.995746] output_thread_i2s_stats:617    i2s tfr(us)     45805|     44279|      45279|        108|
    [05:08:02.996006] output_thread_i2s_stats:618               ----------+----------+-----------+-----------+
    I (13542751) monitor: Heap internal:37200 (min:36364) external:1258072 (min:1197020)
    [05:08:07.989907] output_thread_i2s_stats:602 Output State: 2, current sample rate: 44100, bytes per frame: 4
    [05:08:07.995071] output_thread_i2s_stats:603               +----------+----------+----------------+-----+----------------+
    [05:08:07.995827] output_thread_i2s_stats:604               |      max |      min |        average |     |        count   |
    [05:08:07.996063] output_thread_i2s_stats:605               |  (bytes) |  (bytes) |        (bytes) |     |                |
    [05:08:07.996289] output_thread_i2s_stats:606               +----------+----------+----------------+-----+----------------+
    [05:08:07.996506] output_thread_i2s_stats:607         stream|    211111|     11535|          109949|   21|             108|
    [05:08:07.996858] output_thread_i2s_stats:608         output|   1837500|   1817020|         1828113|   89|             108|
    [05:08:07.997163] output_thread_i2s_stats:609               +----------+----------+----------------+-----+----------------+
    [05:08:07.997380] output_thread_i2s_stats:610       received|      2048|      2048|            2048|  100|             108|
    [05:08:07.997685] output_thread_i2s_stats:611               +----------+----------+----------------+-----+----------------+
    [05:08:07.997906] output_thread_i2s_stats:612 
    [05:08:07.998115] output_thread_i2s_stats:613               ----------+----------+-----------+-----------+  
    [05:08:07.998341] output_thread_i2s_stats:614               max (us)  | min (us) |   avg(us) |  count    |  
    [05:08:07.998570] output_thread_i2s_stats:615               ----------+----------+-----------+-----------+  
    [05:08:07.998801] output_thread_i2s_stats:616  Buffering(us)      2012|       837|       1113|        108|
    [05:08:07.999465] output_thread_i2s_stats:617    i2s tfr(us)     45718|     44513|      45311|        108|
    [05:08:07.999730] output_thread_i2s_stats:618               ----------+----------+-----------+-----------+
    [05:08:08.306904] decode_thread:100 decode complete
    [05:08:08.422044] codec_open:279 codec open: 'm'
    [05:08:08.424289] stream_sock:508 connecting to 192.168.0.121:9000
    [05:08:08.475565] stream_sock:585 header: GET /stream.mp3?player=84:0d:8e:d2:61:d4 HTTP/1.0
    
    
    
    
    [05:08:08.936059] stream_thread:264 headers: len: 491
    HTTP/1.1 200 OK
    
    Server: Logitech Media Server (8.0.0 - 1603391272)
    
    Connection: close
    
    Content-Type: audio/mpeg
    
    Set-Cookie: Squeezebox-albumView=; path=/
    
    Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
    
    Set-Cookie: Squeezebox-expanded-MY_MUSIC=0; path=/
    
    Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
    
    Set-Cookie: Squeezebox-expanded-PLUGINS=0; path=/
    
    Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; path=/
    
    Set-Cookie: Squeezebox-expanded-RADIO=0; path=/
    
    [05:08:09.347454] mad_decode:247 setting track_start

    fw: development.148-I2S-4MFlash
    config attached.

    I can only log by telnet atm, getting a serial wire in would be cumbersome.

    Does anyone else observe such behaviour?
    Attached Files Attached Files

  5. #245
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    6,229
    Quote Originally Posted by ElFishi View Post
    I get random crashes in one of my systems.

    It plays music, makes some noise like repeating the last milliseconds over and over for a second and then the ESP reboots.
    From the log I can't see much.

    I can only log by telnet atm, getting a serial wire in would be cumbersome.

    Does anyone else observe such behaviour?
    Ah, this is annoying as stability has been a key attribute so far for us. Can you tell a bit more about what is playing when it happens? Any pattern? Any chance you could go back in time and say which version has the issue (start with a pretty large jump back, at least a good month and then do a dichotomy approach from there)
    LMS 7.9 on Pi 3B+ & Odroid-C2 - SqueezeAMP!, 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, Riva 1 & 3

  6. #246
    Senior Member
    Join Date
    Feb 2008
    Posts
    343
    Quote Originally Posted by philippe_44 View Post
    Ah, this is annoying as stability has been a key attribute so far for us. Can you tell a bit more about what is playing when it happens? Any pattern? Any chance you could go back in time and say which version has the issue (start with a pretty large jump back, at least a good month and then do a dichotomy approach from there)
    Unfortunately no pattern I could observe. I was playing mp3s and oggs from my file server. Incidents occurred rarely 10min apart, mosty hours.
    So I can try and roll back, but it will take time...

    I presume I'm alone with this...

  7. #247
    Senior Member KeBul's Avatar
    Join Date
    Sep 2009
    Location
    London
    Posts
    243
    Quote Originally Posted by ElFishi View Post

    I presume I'm alone with this...
    I've been testing extensively (playing all day) with development.145.master-cmake squeezeAMP8MBFlash over the last few weeks and haven't noticed any crashes, although not always in the room listening to it, so if it crashed it rebooted and continued to play.

    Using I2S not SPDIF though. Did not always have a display configured and connected either.

    On another setup to a bluetooth speaker I tried 148 but couldn't get bluetooth working, so dropped back to 142 which is the latest version available that I seem to be able to get music to play on bluetooth.

    Kev

  8. #248
    Senior Member
    Join Date
    Feb 2008
    Posts
    343
    thx for the response.
    I feel a bit embarrassed atm. Played some hours today without glitch.
    At one time after power up the unit was unresponsive, be it from LMS, telnet or web interface - yet the display scrolled the title. Eventually it rebooted and went back to normal.

    I can't rule out a flakey WiFi connection. I had that before (too many neighbors I believe).

    Edit: there is a way to crash the ESP: write a forum post that there is no error. 5 mins later it goes down.
    Last edited by ElFishi; 2020-10-26 at 10:36.

  9. #249
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    6,229
    Quote Originally Posted by ElFishi View Post
    thx for the response.
    I feel a bit embarrassed atm. Played some hours today without glitch.
    At one time after power up the unit was unresponsive, be it from LMS, telnet or web interface - yet the display scrolled the title. Eventually it rebooted and went back to normal.

    I can't rule out a flakey WiFi connection. I had that before (too many neighbors I believe).

    Edit: there is a way to crash the ESP: write a forum post that there is no error. 5 mins later it goes down.
    2 things
    - can you try to play for a couple of days w/o display?
    - can you try to run for another couple of day and make sure that nothing is using the web interface?
    LMS 7.9 on Pi 3B+ & Odroid-C2 - SqueezeAMP!, 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, Riva 1 & 3

  10. #250
    Senior Member
    Join Date
    Feb 2008
    Posts
    343
    Quote Originally Posted by philippe_44 View Post
    2 things
    - can you try to play for a couple of days w/o display?
    - can you try to run for another couple of day and make sure that nothing is using the web interface?
    Duh, I just cleared display_config and get lots of
    Code:
    [01:02:21.124500] process:555 unhandled grfe
    [01:02:21.136980] process:555 unhandled grfe
    [01:02:21.306428] process:555 unhandled grfe
    [01:02:21.310112] process:555 unhandled grfe
    [01:02:21.433752] process:555 unhandled grfe
    [01:02:21.442494] process:555 unhandled grfe
    [01:02:21.610787] process:555 unhandled grfe
    [01:02:21.631126] process:555 unhandled grfe
    [01:02:21.725542] process:555 unhandled grfe
    [01:02:21.738595] process:555 unhandled grfe
    [01:02:21.908878] process:555 unhandled grfe
    [01:02:21.911424] process:555 unhandled grfe

Posting Permissions

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