Re: [SlimDevices: Unix] AUDIOPHONICS RASPDAC MINI Kit

2020-12-07 Thread gregex


pmendiuk wrote: 
> Hi,
> I am trying to get another OLED script running on PcP 7 with python3.8. 
> I get an error running req.pip with setup.py install for RPI.GPIO:
> 
> ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u
> -c 'import sys, setuptools, tokenize; sys.argv[0] =
> '"'"'/tmp/pip-install-zzs1y9mi/rpi-gpio/setup.py'"'"';
> __file__='"'"'/tmp/pip-install-zzs1y9mi/rpi-gpio/setup.py'"'"';f=getattr(tokenize,
> '"'"'open'"'"',
> open)(__file__);code=f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,
> __file__, '"'"'exec'"'"' ))' install
> --record /tmp/pip-record-76gpux7w/install-record.txt
> --single-version-externally-managed --prefix
> /tmp/raspdacmini-deps/usr/local --compile --install-headers
> tmp/raspdacmini-/local/include/python3.8/RPI.GPIO Check the logs for
> full command output.
> 
> Has anybody successfully installed rpi-gpio in PcP 7 with python3.8?

Hi @pmendiuk,

Sorry for the late reply. Could you share a more detailed log of the
error?

I don't have a pCP 7 setup yet, but I wonder if there is some package
dependency drift since I originally posted the pip requirements in '#14'
(https://forums.slimdevices.com/showthread.php?112288-AUDIOPHONICS-RASPDAC-MINI-Kit=979971=1#post979971).
You could try replacing the contents of req.pip with the following,
which builds clean for me.


Code:


  aiohttp==3.6.2
  async-timeout==3.0.1
  attrs==19.3.0
  chardet==3.0.4
  idna==2.10
  luma.core==1.14.1
  luma.oled==3.5.0
  multidict==4.7.6
  pyftdi==0.51.2
  pyserial==3.4
  pysqueezebox==0.4.0
  pyusb==1.0.2
  RPi.GPIO==0.7.0
  semver==2.10.2
  smbus2==0.3.0
  spidev==3.4
  yarl==1.5.1
  -r requirements-common.txt
  Pillow==7.2.0 --global-option="build_ext" --global-option="--disable-jpeg" 
--global-option="--disable-zlib" --global-option="--enable-freetype"
  




gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=112288

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: LMS Monitor 2020

2020-09-15 Thread gregex


shunte88 wrote: 
> not sure what you mean by "doesn't get called"???
> odd that its working on the devices I have under test and use daily?  I
> wouldn't have pushed something that was -obviously- broken as discovery
> and I don't remember pushing to the repo mid-development - a lot of the
> work was done between 1 - 4 AM so there's potential but I'm sure I
> didn't
> so I'm not sure what you've been running into - have you changed or is
> there an alternate port on your setup?
> 

As I mentioned in #141, my LMS is running on port 9002.  Presumably any
setup on port 9000 worked fine.

> 
> I didn't change the original UDP multicast implementation, its tried and
> tested - and as the comment described its borrowed from slimproto -
> direct from the horses mouth - code that must have been executed
> millions of times at this point.
> 

Yep, this is all I was getting at - the original battle-tested discovery
code did not request the jsonrpc port, as it evidently never had a need
to do so before now.

The latest drop resolves the issue for me, thanks!



gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=111790

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: LMS Monitor 2020

2020-09-14 Thread gregex


No, I still see the same symptom.  I looked at the code more closely and
it seems sliminfo.c:getServerAddress() does not attempt jsonrpc port
discovery, so it's no wonder it doesn't work :-).

Not sure if it is documented somewhere but this seems to be the server
implementation:
https://github.com/Logitech/slimserver/blob/public/7.9/Slim/Networking/Discovery.pm

I made a rudimentary proof-of-concept patch to satisfy my own curiosity
- attached here. Needs to be cleaned up a bit, but it "works for me".

31552


+---+
|Filename: lms-port-discovery.patch |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31552|
+---+


gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=111790

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: LMS Monitor 2020

2020-09-14 Thread gregex


Cool, the Raspdac Mini display initializes correctly on RPi4 now!  I can
see the splash screen.

However, looks like there is a regression in server discovery - the new
code assumes LMS listens on port 9000.  My server (7.9.2) is on port
9002 (for reasons I don't recall as there is nothing using 9000, but I
suppose the Synology packages are built that way).
The init/error output is a bit misleading on this front - it is not
using 3483 for the http connection. Suggest adding the port to the
"error: connect" message.


Code:


  $ sudo ./lmsmonitor -v -m sa -o7 -V -D27 -R24 -C0 -I -n RaspdacMini
  OLED Mode ...: SPI
  This is lmsmonitor (0.4.55) - built Sep 13 2020 19:00:26.
  Verbosity ...: Maximum
  OLED Driver .: (7) SH1106 SPI 128x64NHD1322 Grayscale SPI 
256x64NHD1322 Monochrome SPI 256x64
  OLED Address : 0x0
  Scrolling Mode ..: (0) Cylon (Default)
  OLED Clock Font .: Classic LCD Clock Font
  2020-09-14 11:50:09 :: src/lmsmonitor.c-0776 : generalReset active
  LMS Discovery 
  LMS server response .:
  Server IP ...: 192.168.1.201:3483
  error: connect - 192.168.1.201
  Could not find player "RaspdacMini" [discoverPlayer]
  




gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=111790

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: LMS Monitor 2020

2020-09-11 Thread gregex


kit1cat wrote: 
> Hi, did you have any luck getting the RaspDac mini screen working
> correctly? Thanks

shunte88 wrote: 
> no progress there, again nothing special about that OLED so it should
> work with the supported parameters we dug up reverse engineering the
> python code.
> 

The trouble here might still be the default SPI bus speed on RPi4 (looks
like the -K option is not implemented).
Attached a simple patch which works for me on RPi4 (sorry, don't have
other models to test with).


+---+
|Filename: spi_clock.patch  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31520|
+---+


gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=111790

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] AUDIOPHONICS RASPDAC MINI Kit

2020-06-30 Thread gregex


kit1cat wrote: 
> Partial Success :)  Copied the font folder and the
> oled_1.54_spi_audiophonics_py3.py file to /home/tc, ran the command
> python3 lms_oled_1.54_spi_audiophonics_py3.py from puttty and I have a
> display reading "Trying to connect player to LMS". My LMS server is on
> another PI connected to a usb drive.

Excellent.  This should clear up if you do the edits to the script
described here:
https://forums.slimdevices.com/showthread.php?112288-AUDIOPHONICS-RASPDAC-MINI-Kit=980143=1#post980143
You can find that information in the Diagnostics->Raspberry Pi page of
piCorePlayer.



gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=112288

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] AUDIOPHONICS RASPDAC MINI Kit

2020-06-29 Thread gregex


Not sure why root access should be required to scp files to
piCorePlayer.  User should be tc and files should be written by default
to /home/tc.  Using "pi" or "dietpi" will give Permission Denied (I do
this accidentally all the time when switching between boot images)



gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=112288

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] AUDIOPHONICS RASPDAC MINI Kit

2020-06-28 Thread gregex


gregex wrote: 
> 
> Sorry, I should have been clear -- run this to start the display:
> 
> > 
Code:

  >   > 
  > python3 lms_oled_1.54_spi_audiophonics_py3.py 
  > 

> > 
> 

>From reading earlier in the thread, I thought you already had the OLED
directory from the dietpi image, which contains the required fonts.
I am having trouble attaching it in a zipfile here (maybe too large at
14MB?)

You'll also need to edit OLED/lms_oled_1.54_spi_audiophonics_py3.py line
75 and 79 to contain your server IP and player MAC address.  (As
mentioned here
https://forums.slimdevices.com/showthread.php?112288-AUDIOPHONICS-RASPDAC-MINI-Kit/page2=976284#post976284)



gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=112288

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 6.0.0

2020-06-28 Thread gregex


paul- wrote: 
> I love how packages depend on themselves, and don't deal with it in the
> source tree.  Build first without harfbuzz support, then install, then
> rebuild with harfbuzz support.
> 
> I have 2.10.1 build, and will upload it.

Thank you Paul!  Installed and works like a charm.  Much appreciated.



gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=111787

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] AUDIOPHONICS RASPDAC MINI Kit

2020-06-28 Thread gregex


kit1cat wrote: 
> Tried installing a couple of times today but no luck, seems to install
> ok but no display.
> 
> On reboot the reqs.pip file is empty, is this normal?
> 
> Is the lms_oled_1.54_spi_audiophonics_py3.py file just for info or do I
> need to run it some how?
> 
> Thanks

reqs.pip won't survive a reboot unless you do a backup, but you only
need that file if you are building the python dependencies.

Sorry, I should have been clear -- run this to start the display:


Code:


  python3 lms_oled_1.54_spi_audiophonics_py3.py 
  



If it works and you like it, add that line to "User Commands" on the
Tweaks page to start it on reboot.
If you get errors, post here.



gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=112288

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 6.0.0

2020-06-26 Thread gregex


Thank you Paul.  I mistyped above - the error is not a missing static
archive but a missing libtool .la file.

Building with ./configure --disable-static the build errors out
eventually like this:


Code:


  [...]
  ./builds/unix/libtool --mode=link gcc -o 
/home/tc/freetype-2.9.1/objs/libfreetype.la  
/home/tc/freetype-2.9.1/objs/ftsystem.lo 
/home/tc/freetype-2.9.1/objs/ftdebug.lo /home/tc/freetype-2.9.1/objs/ftinit.lo 
/home/tc/freetype-2.9.1/objs/ftbase.lo /home/tc/freetype-2.9.1/objs/ftbbox.lo 
/home/tc/freetype-2.9.1/objs/ftbdf.lo /home/tc/freetype-2.9.1/objs/ftbitmap.lo 
/home/tc/freetype-2.9.1/objs/ftcid.lo /home/tc/freetype-2.9.1/objs/ftfstype.lo 
/home/tc/freetype-2.9.1/objs/ftgasp.lo /home/tc/freetype-2.9.1/objs/ftglyph.lo 
/home/tc/freetype-2.9.1/objs/ftgxval.lo /home/tc/freetype-2.9.1/objs/ftmm.lo 
/home/tc/freetype-2.9.1/objs/ftotval.lo 
/home/tc/freetype-2.9.1/objs/ftpatent.lo /home/tc/freetype-2.9.1/objs/ftpfr.lo 
/home/tc/freetype-2.9.1/objs/ftstroke.lo 
/home/tc/freetype-2.9.1/objs/ftsynth.lo /home/tc/freetype-2.9.1/objs/fttype1.lo 
/home/tc/freetype-2.9.1/objs/ftwinfnt.lo 
/home/tc/freetype-2.9.1/objs/truetype.lo /home/tc/freetype-2.9.1/objs/type1.lo 
/home/tc/freetype-2.9.1/objs/c
 ff.lo /home/tc/freetype-2.9.1/objs/type1cid.lo 
/home/tc/freetype-2.9.1/objs/pfr.lo /home/tc/freetype-2.9.1/objs/type42.lo 
/home/tc/freetype-2.9.1/objs/winfnt.lo /home/tc/freetype-2.9.1/objs/pcf.lo 
/home/tc/freetype-2.9.1/objs/bdf.lo /home/tc/freetype-2.9.1/objs/sfnt.lo 
/home/tc/freetype-2.9.1/objs/autofit.lo 
/home/tc/freetype-2.9.1/objs/pshinter.lo /home/tc/freetype-2.9.1/objs/raster.lo 
/home/tc/freetype-2.9.1/objs/smooth.lo /home/tc/freetype-2.9.1/objs/ftcache.lo 
/home/tc/freetype-2.9.1/objs/ftgzip.lo /home/tc/freetype-2.9.1/objs/ftlzw.lo 
/home/tc/freetype-2.9.1/objs/ftbzip2.lo /home/tc/freetype-2.9.1/objs/psaux.lo 
/home/tc/freetype-2.9.1/objs/psnames.lo -rpath /usr/local/lib -version-info 
22:1:16 -lz -lbz2 -L/usr/local/lib -lpng16 -L/usr/local/lib -lharfbuzz 
-no-undefined -export-symbols /home/tc/freetype-2.9.1/objs/ftexport.sym
  /usr/local/bin/grep: /usr/local/lib/libglib-2.0.la: No such file or directory
  /usr/local/bin/sed: can't read /usr/local/lib/libglib-2.0.la: No such file or 
directory
  libtool:   error: '/usr/local/lib/libglib-2.0.la' is not a valid libtool 
archive
  make: *** [config.mk:55: /home/tc/freetype-2.9.1/objs/libfreetype.la] Error 1
  




gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=111787

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 6.0.0

2020-06-26 Thread gregex


I've been using piCorePlayer for about a month and it is really great. 
Thank you to the team for the great work!

I've been playing with a python3/luma OLED display script and noticed
the font rendering is not very pretty on pCP 6.1.0.  I think this is due
to an old version of libfreetype (2.7.1).  There was a fix to improve
truetype font rendering in 2.8.x according to
https://www.freetype.org/index.html#news and I can confirm the fonts
render nicely with 2.9.1 on dietpi/raspbian.

Is it possible to update these packages to a more recent version?  I
attempted to build it myself but hit a wall due to missing libglib.a
under pCP.

Also wondered (and searched threads without success) if this is
something that I could update from the official tinycore repo
(http://repo.tinycorelinux.net/) but my pCP extensions page says 0
packages are available from that repo.  Not sure if this is expected.

30848

Thank you!


+---+
|Filename: officialrepopackages.png |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=30848|
+---+


gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=111787

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] AUDIOPHONICS RASPDAC MINI Kit

2020-06-26 Thread gregex


I got the Audiophonics python OLED script working with on pCP 6.1 with
python3.6
(A quick and dirty port of an old Audiophonics python script is
attached.)

Increase your filesystem size (500 MB is more than enough)

Install the following extensions: compiletc.tcz, freetype-dev.tcz,
python3.6-dev.tcz, squashfs-tools.tcz  (I may have forgotten one or
two)

Create a file called reqs.pip with the following contents:


Code:


  pillow --global-option="build_ext" --global-option="--disable-jpeg" 
--global-option="--disable-zlib" --global-option="--enable-freetype"
  luma.oled
  luma.core
  pyftdi
  smbus2
  spidev
  RPI.GPIO
  pyusb
  pyserial
  pylms
  



Then run the following commands


Code:


  sudo python3 -m pip install --upgrade pip setuptools
  pip install -r reqs.pip --prefix=/tmp/raspdacmini-deps/usr/local 
--ignore-installed
  sed -i 's/\t//' 
/tmp/raspdacmini-deps/usr/local/lib/python3.6/site-packages/pylms/player.py
  mksquashfs /tmp/raspdacmini-deps /tmp/raspdacmini-py36-deps.tcz
  sudo cp -p /tmp/raspdacmini-py36-deps.tcz /etc/sysconfig/tcedir/optional
  echo raspdacmini-py36-deps.tcz | sudo tee -a /etc/sysconfig/tcedir/onboot.lst
  



+---+
|Filename: lms_oled_1.54_spi_audiophonics.py.txt|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=30846|
+---+


gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=112288

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: LMS Monitor 2020

2020-06-24 Thread gregex


I've been having (probably) the same symptom as kit1cat with LMSMonitor
0.4.42 and the Audiophonics Raspdac Mini kit using a Pi4/2GB RAM - the
display simply doesn't light up.  My display pcb is visually a match for
kit1cat's.  It works fine with lms_oled_1.54_spi_audiophonics3.py
(although font rendering is blocky on pcp 6.1.0 due to a very old
libfreetype).

I am no expert by any stretch but found that things improve with the
clock divider increased to BCM2835_SPI_CLOCK_DIVIDER_32 in
ArduiPi_OLED.cpp.  Also -o 1 seems to be the right mode for this
hardware as there are some wrapping artifacts/noise with -o 7.  From
there I can get a splash screen and title / elapsed counter / digital
clock with the player stopped.  The canvas is rendered upside down with
the suggested command line but -F does in fact flip it (mismatch between
code and doc :).

I've not had much success with the visualizations yet but haven't tried
building the sse directory.  Will play with that maybe tomorrow.

After running LMSMonitor (or other program derived from
ArduiPi_OLED/bcm2835) a reboot is needed before the luma.oled python
script will light up the display again.  It gives this complaint the
first time, but not on subsequent runs.  It would be nice if there was a
way to reset things to a clean state on exit.

Code:


  /usr/local/lib/python3.6/site-packages/luma/core/interface/serial.py:185: 
RuntimeWarning: This channel is already in use, continuing anyway.  Use 
GPIO.setwarnings(False) to disable warnings.
  self._gpio.setup(pin, self._gpio.OUT)
  



Last but not least, LMSMonitor is really wonderful!  Thank you for the
recent updates!!



gregex's Profile: http://forums.slimdevices.com/member.php?userid=70355
View this thread: http://forums.slimdevices.com/showthread.php?t=111790

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix