Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Senior Member
    Join Date
    Jun 2012
    Posts
    403

    piCorePlayer 7 on Audiophonics EVO-SABRE Balanced DAC 2xES9038Q2M

    I've been looking for a more upto date replacement for my Transformer, and settled on Evo-Sabre DAC from Audiophonics. It's a really nice device, and with a second OLED for displaying track etc. information.

    Audiophonics provide a dietPi image with a custom Python script for this second screen and lirc settings for the remote. However, I run PCP everywhere else, so wanted to get PCP running. It took a little work and involved

    Building a custom tcz for all of the Python 3 modules
    Updating the scripts to Python 3
    Updating the lirc settings to use the native Squeezelite lirc support (vs an old expect script)
    Update the script to pick up the MAC address automatically, and take the LMS IP as a parameter

    The steps (ignoring the backups and reboots) are something like

    Install standard extensions
    freetype.tcz
    python3.8.tcz
    iproute2.tcz

    Install custom extension
    evosabre-py38-deps.tcz

    Copy the custom .py and fonts sub directory to /home/tc

    Configure squeezelite in pcp
    Set Card to Audiophonics ISabre Q2M
    Disable onboard audio
    Set ALSA Volume Control to Digital

    User Command to python3 /home/tc/lms_oled_3.12_py3.py LMSIPAddress

    gpio-shutdown : Yes, GPIO-17, Active Low, Pull Up

    Install LIRC
    GPIO : 4
    Upload custom lircd.conf and .lircrc

    If anyone's interested, let me know and I'll post all the files. By default, the Audiophonics setup uses a full Simplified Chinese font for album titles - i.e. it's a font with all languages in there, including simplified chinese - so it's large and take a while to load when you start the script. I can understand why they did this - some people will obviously want track titles in chinese, but I created a everything except chinese version, which is about 1% of the size, so unless you want the large one, I'll likely post the short one.

    pete S

  2. #2
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    2,380
    That sounds like a lot of work!

    Thanks.

  3. #3
    Senior Member
    Join Date
    Jun 2012
    Posts
    403
    Firstly, as with all these things, I always start - erm - blatantly copying and learning from others. On that note, I'd like to call out the great work done by gregex here , who got a lot of this going to the raspdac mini.

    Then, you know the way of it - once I start on something, I find it hard to put down until it's done. So, kept chipping away at it until it was working well...

  4. #4
    Senior Member
    Join Date
    Jun 2012
    Posts
    403
    I've been continuing to fiddle around with this, and have it pretty much finished now. I've updated the script quite a bit to make it more native to LMS (e.g. reading the track info from LMS vs. from ALSA as it was before), reading all the info from LMS in one go rather than loads of separate calls, pick up if volume is 100% and if so, don't show it, made some of the other calls more native etc.

    I'd like to thank @Steve Agnew for his help testing things and tidying up the readme I created. If be happy to share the files with anyone that wants them. All in all, I'm really happy with the DAC now and I think it's a good high-er end addition to the family.

    pete S

  5. #5
    I am very interested on getting the second display running on PcP. Please post the files.

  6. #6
    Senior Member
    Join Date
    Jun 2012
    Posts
    403
    Hi pmendiuk

    There's a readme.md and zip file with everything in it here. Let me know how you get on.

    pete S

  7. #7
    I am experiencing an error trying to download the files.

  8. #8
    Senior Member
    Join Date
    Jun 2012
    Posts
    403
    Hmm- I'll have a look at that later. For now, I've emailed them to you.

  9. #9

    No module named 'netifaces'

    I did a fresh install of PcP 8 and installed freetype.tcz, python3.8.tcz and manually installed evosabre-py38-deps.tcz.

    I'm getting an error running lms_oled_3.12_py3.py

    Code:
    tc@pCP:~$ python3 /home/tc/lms_oled_3.12_py3.py 192.168.1.170
    Traceback (most recent call last):
      File "/home/tc/lms_oled_3.12_py3.py", line 33, in <module>
        import netifaces
    ModuleNotFoundError: No module named 'netifaces'
    I installed python3.8-pip.tcz and then tried to install netifaces with pip:

    Code:
    tc@pCP:~$ pip install netifaces
    Requirement already satisfied: netifaces in /usr/local/lib/python3.8/site-packages (0.11.0)
    WARNING: You are using pip version 20.1.1; however, version 21.3.1 is available.
    You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
    tc@pCP:~$
    I checked the path:

    Code:
    tc@pCP:~$ python3 -c "import sys; print(':'.join(x for x in sys.path if x))"
    /usr/local/lib/python38.zip:/usr/local/lib/python3.8:/usr/local/lib/python3.8/lib-dynload:/usr/local/lib/python3.8/site-packages
    I'm running out of ideas

  10. #10
    Senior Member
    Join Date
    Jun 2012
    Posts
    403
    Hi

    That's saying that the module evosabre-py38-deps.tcz either didn't load properly, or I've sent you the wrong one. This loads the dependencies for the script, and includes netifaces.

    If you do

    ls /etc/sysconfig/tcedir/optional/evo*

    do you see

    evosabre-py38-deps.tcz

    Then, if you do

    more /etc/sysconfig/tcedir/onboot.lst

    is evosabre-py38-deps.tcz included?

    pete S

Posting Permissions

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