PDA

View Full Version : Announce: piCorePlayer 3.5.0



Pages : 1 [2] 3

foxsam
2018-05-07, 09:11
I am having trouble getting i2c support enabled on picore 3.50. I am trying to use an i2c lcd and an rtc ds3231. With the rtc it seems like some kernel modules are not getting loaded.
I tried to use the overlays but I am not sure if I am doing it the right way. here is my config.txt (relevent part) (whole file here http://termbin.com/ykxn)



#Custom Configuration Area, for config settings that are not managed by pCP.
#pCP will retain these settings during insitu-update
#---Begin-Custom-(Do not alter Begin or End Tags)-----
#dtoverlay=i2c-gpio
dtoverlay=i2c-dev
dtoverlay=i2c-rtc,ds3231
dtparam=i2c_arm=on
dtparam=act_led_trigger=heartbeat
dtparam=i2c1=on
#---End-Custom----------------------------------------



i2cdetect -y 1 seems to detect the i2c but it is not in use (bec no module?)

And regarding i2c lcd is there any guides available to get me started?
Thanks

Paul Webster
2018-05-07, 10:59
I suggest trying to get 1 i2c device to work at a time to avoid conflicts causing unexpected problems.
If you can get each working independently then you would at least know that the basics are fine.

For the LCD ... perhaps Slimmer
https://forums.slimdevices.com/showthread.php?105819-Announce-Slimmer

vlycop
2018-05-07, 11:08
Hello,
I was wondering if an upgrade of the wifi script was planed anytime soon ?
after some digging around, i found out that my wifi SSID crashed the script because it have a "&" in it, and the input isn't sanitized.
I had no luck finding a workaround for now, witch force me to use raspbian, and for a simple hifi dongle, it feel way overpowered.

I know it's a tinycore issue, but i couldn't create an account on there forum, so a ask on this side ^^'

Thank's !

foxsam
2018-05-07, 11:58
I suggest trying to get 1 i2c device to work at a time to avoid conflicts causing unexpected problems.
If you can get each working independently then you would at least know that the basics are fine.

For the LCD ... perhaps Slimmer
https://forums.slimdevices.com/showthread.php?105819-Announce-Slimmer

For now I got the lcd working with a small library I was interested in the integrating to lms part. I will look into slimmer for that. Thanks

As far as RTC I am still lost and don't know what is missing. I can get its address to show up in i2cdetect but it shows as 68 not UU.. I thing that means the kernel module is not communicating properly. I am looking for any pointers in the right direction.

paul-
2018-05-07, 12:29
If you did an insitu update to 3.5.0, you will not get upgraded addon packages. Remove and reinstall shairport-sync.

paul-
2018-05-07, 12:32
I am having trouble getting i2c support enabled on picore 3.50. I am trying to use an i2c lcd and an rtc ds3231. With the rtc it seems like some kernel modules are not getting loaded.
I tried to use the overlays but I am not sure if I am doing it the right way. here is my config.txt (relevent part) (whole file here

You need to load i2c-dev manually, even using an overlay, it will not get loaded.

foxsam
2018-05-07, 12:55
I did that but still something is wrong I dont know what. Here is some output:


tc@carCorePlayer:~$ lsmod
Module Size Used by
uinput 8751 1
evdev 11644 0
i2c_dev 6674 4
i2c_bcm2835 6465 2
i2c_bcm2708 5741 0
ipv6 399422 17
brcmfmac 273198 0
brcmutil 9114 1 brcmfmac
cfg80211 542242 1 brcmfmac
rfkill 21476 2 cfg80211
snd_soc_hifiberry_dac 3219 1
snd_bcm2835 23054 0
snd_soc_bcm2835_i2s 7385 2
regmap_mmio 3874 1 snd_soc_bcm2835_i2s
snd_soc_pcm5102a 2273 1
snd_soc_core 178157 3 snd_soc_bcm2835_i2s,snd_soc_hifiberry_dac,snd_soc_ pcm5102a
snd_compress 9956 1 snd_soc_core
snd_pcm_dmaengine 5370 1 snd_soc_core
snd_pcm 89526 6 snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_bcm2835, snd_soc_core,snd_soc_hifiberry_dac
snd_timer 22396 1 snd_pcm
snd 59578 6 snd_compress,snd_timer,snd_bcm2835,snd_soc_core,sn d_pcm
fixed 3033 0
squashfs 31730 125
lz4 2699 1
lz4_compress 31601 1 lz4
zram 15170 1
zsmalloc 14957 1 zram
spidev 7220 0
spi_bcm2835 7456 0
uio_pdrv_genirq 3718 0
uio 9901 1 uio_pdrv_genirq
tc@carCorePlayer:~$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
tc@carCorePlayer:~$ echo ds1307 0x68 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device
ds1307 0x68
tee: /sys/class/i2c-adapter/i2c-1/new_device: I/O error

Greg Erskine
2018-05-07, 14:41
Hello,
I was wondering if an upgrade of the wifi script was planed anytime soon ?
after some digging around, i found out that my wifi SSID crashed the script because it have a "&" in it, and the input isn't sanitized.
I had no luck finding a workaround for now, witch force me to use raspbian, and for a simple hifi dongle, it feel way overpowered.

I know it's a tinycore issue, but i couldn't create an account on there forum, so a ask on this side ^^'

Thank's !

hi vlycop,

We are redoing the wifi setup, and it will probably make it into the next release of piCorePlayer. :confused:

We will not be using any of the existing Tinycore/piCore wifi setup. The new version will allow you to setup wpa_supplicant.conf manually and piCorePlayer will not touch it, so your wifi setup will not be restricted by the web interface or setup scripts.

regards
Greg

paul-
2018-05-07, 19:13
what board are you trying to use i2c on.

I think you have too many modules loaded.

I don't think you need all of those overlays loaded. i2c_arm is already turned on by default in pCP. I would just include your i2c_rtc overlay, and then modprobe i2c_dev in your startup script.

foxsam
2018-05-07, 19:48
what board are you trying to use i2c on.

I think you have too many modules loaded.

I don't think you need all of those overlays loaded. i2c_arm is already turned on by default in pCP. I would just include your i2c_rtc overlay, and then modprobe i2c_dev in your startup script.

it looks like this one:
https://www.sainsmart.com/products/20x4-iic-i2c-twi-lcd-module

I am going to try it with only i2c_rtc and modprobe in i2c_dev and see what happens.


tc@carCorePlayer:/mnt/mmcblk0p1$ grep i2c config.txt
dtparam=i2c_arm=on,spi=on,i2s=on
#dtoverlay=i2c-gpio
#dtoverlay=i2c-dev
dtoverlay=i2c-rtc,ds3231
#dtparam=i2c_arm=on
#dtparam=i2c1=on

After modifying config.txt to only have i2c-rtc (and backup reboot) this is what happens




_ _____ ___ __
___ (_) ___/__ _______ / _ \/ /__ ___ _____ ____
/ _ \/ / /__/ _ \/ __/ -_) ___/ / _ `/ // / -_) __/
/ .__/_/\___/\___/_/ \__/_/ /_/\_,_/\_, /\__/_/
/_/ /___/

piCorePlayer = piCore + Squeezelite + Raspberry Pi

The software is provided "as is" without warranty of any kind,
either express or implied, including without limitation any implied
warranties of condition, uninterrupted use, merchantability,
fitness for a particular purpose, or non-infringement.
tc@carCorePlayer:~$ lsmod
Module Size Used by
ipv6 399422 12
brcmfmac 273198 0
brcmutil 9114 1 brcmfmac
i2c_dev 6674 0
evdev 11644 0
cfg80211 542242 1 brcmfmac
snd_soc_bcm2835_i2s 7385 0
regmap_mmio 3874 1 snd_soc_bcm2835_i2s
snd_soc_core 178157 1 snd_soc_bcm2835_i2s
rfkill 21476 2 cfg80211
snd_compress 9956 1 snd_soc_core
snd_pcm_dmaengine 5370 1 snd_soc_core
snd_pcm 89526 3 snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_soc_core
snd_timer 22396 1 snd_pcm
snd 59578 4 snd_compress,snd_timer,snd_soc_core,snd_pcm
fixed 3033 0
squashfs 31730 121
lz4 2699 1
lz4_compress 31601 1 lz4
zram 15170 1
zsmalloc 14957 1 zram
spidev 7220 0
i2c_bcm2835 6465 0
spi_bcm2835 7456 0
uio_pdrv_genirq 3718 0
uio 9901 1 uio_pdrv_genirq
tc@carCorePlayer:~$ modprobe i2c_dev
tc@carCorePlayer:~$ lsmod
Module Size Used by
ipv6 399422 17
brcmfmac 273198 0
brcmutil 9114 1 brcmfmac
i2c_dev 6674 0
evdev 11644 0
cfg80211 542242 1 brcmfmac
snd_soc_bcm2835_i2s 7385 0
regmap_mmio 3874 1 snd_soc_bcm2835_i2s
snd_soc_core 178157 1 snd_soc_bcm2835_i2s
rfkill 21476 2 cfg80211
snd_compress 9956 1 snd_soc_core
snd_pcm_dmaengine 5370 1 snd_soc_core
snd_pcm 89526 3 snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_soc_core
snd_timer 22396 1 snd_pcm
snd 59578 4 snd_compress,snd_timer,snd_soc_core,snd_pcm
fixed 3033 0
squashfs 31730 121
lz4 2699 1
lz4_compress 31601 1 lz4
zram 15170 1
zsmalloc 14957 1 zram
spidev 7220 0
i2c_bcm2835 6465 0
spi_bcm2835 7456 0
uio_pdrv_genirq 3718 0
uio 9901 1 uio_pdrv_genirq
tc@carCorePlayer:~$ i2c
i2c-stub-from-dump i2cdetect i2cdump i2cget i2cset
tc@carCorePlayer:~$ i2cd
i2cdetect i2cdump
tc@carCorePlayer:~$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
tc@carCorePlayer:~$
tc@carCorePlayer:~$
tc@carCorePlayer:~$ echo ds1307 0x68 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device
ds1307 0x68
tee: /sys/class/i2c-adapter/i2c-1/new_device: I/O error
tc@carCorePlayer:~$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
tc@carCorePlayer:~$

also I can read the temperature from the chip using a simple python script (https://www.raspberrypi.org/forums/viewtopic.php?t=142010) to read directly but hwclock still gives error.


tc@carCorePlayer:~$ sudo hwclock
hwclock: can't open '/dev/misc/rtc': No such file or directory

Greg Erskine
2018-05-07, 21:12
hi foxsam,

Did you remove the "nortc" bootcode?

regards
Greg

senthor
2018-05-08, 02:38
If you did an insitu update to 3.5.0, you will not get upgraded addon packages. Remove and reinstall shairport-sync.

I did a fresh install in the first place, giving me 3.0.2.
However, I did remove and reinstall shairport-sync from the pcp sourceforge-repo, also giving me 3.0.2.


24998


Do you have a direct download link to the correct file?

vlycop
2018-05-08, 02:44
hi vlycop,

We are redoing the wifi setup, and it will probably make it into the next release of piCorePlayer. :confused:

We will not be using any of the existing Tinycore/piCore wifi setup. The new version will allow you to setup wpa_supplicant.conf manually and piCorePlayer will not touch it, so your wifi setup will not be restricted by the web interface or setup scripts.

regards
Greg

YaY ! Thank's for the good new's.
Do you know if there is a way around for now ? because the tc script itself don't like special character.

Wirrunna
2018-05-08, 03:21
Do you know if there is a way around for now ? because the tc script itself don't like special character.

Have you got access to the router setup? 'cause if you have, setup a "guest" wifi network without the '&' in the SSID and you can get the piCorePlayer to connect, then when the player is fixed you can delete the "guest" network.
I did this to get my piCorePlayers to connect to the 5GHz instead of 2.4Ghz network as the Pi seems to connect to 2.4GHz first and ignore the 5Ghz network, so I set up a "guest" wifi network, same SSID with 5 appended, then told the Pi to connect to SSID 5. Works, uncluttered the 2.4GHz network and the piCorePlayers are out there with the Nexus and iThingys on 5GHz.

foxsam
2018-05-08, 04:04
hi foxsam,

Did you remove the "nortc" bootcode?

regards
Greg

With nortc removed the pi does not boot fully. I dont have any monitoring console set up so I am not sure where it hangs but it does not make it online.

with nortc in place then everything boots and only problem is rtc not working.

should I be able to modprobe some kind of rtc-* file besides for overlay? I think something is not getting loaded.

vlycop
2018-05-08, 05:52
Have you got access to the router setup? 'cause if you have, setup a "guest" wifi network without the '&' in the SSID and you can get the piCorePlayer to connect, then when the player is fixed you can delete the "guest" network.
I did this to get my piCorePlayers to connect to the 5GHz instead of 2.4Ghz network as the Pi seems to connect to 2.4GHz first and ignore the 5Ghz network, so I set up a "guest" wifi network, same SSID with 5 appended, then told the Pi to connect to SSID 5. Works, uncluttered the 2.4GHz network and the piCorePlayers are out there with the Nexus and iThingys on 5GHz.

I actually don't get it. if you disable the new guest network, the pi should just go offline ? no ? how can she know that the can connect to the other one, with another ssid ?
i'm curious now XD

Paul Webster
2018-05-08, 06:08
Don't delete the guest network until "the player is fixed".
i.e. run both networks.
When player is fixed you can edit the SSID in the player and connect back to the original one and finally delete the guest network.

vlycop
2018-05-08, 06:59
Don't delete the guest network until "the player is fixed".
i.e. run both networks.
When player is fixed you can edit the SSID in the player and connect back to the original one and finally delete the guest network.

Sorry, i must have misted something.
i can access the PCP web-interface through wired Ethernet for now, but i have no idea of the place i could put the ssid.
On the web-interface, it will crash because of the special character, and i don't know the place of the config i could edit throught SSH.

sbp
2018-05-08, 07:14
If possible you should create a new network on your router where the password is without the problematic characters. Then you go into pCP and setup the new wifi with this password.

Then when Greg has fixed our wifi, you can delete the new wifi net and use your old "forbidden" password.

paul-
2018-05-08, 08:38
With nortc removed the pi does not boot fully. I dont have any monitoring console set up so I am not sure where it hangs but it does not make it online.

with nortc in place then everything boots and only problem is rtc not working.

should I be able to modprobe some kind of rtc-* file besides for overlay? I think something is not getting loaded.

I should have ask this first. Did you install the kernel modules for rtc?

rtc-KERNEL.tcz These are hosted on the piCorePlayer sourceforge repo.

paul-
2018-05-08, 08:41
I did a fresh install in the first place, giving me 3.0.2.
However, I did remove and reinstall shairport-sync from the pcp sourceforge-repo, also giving me 3.0.2.


Do you have a direct download link to the correct file?

Will re-update the file on the repo this evening. Seems there was a lost version in the sourceforge datacenter move.

foxsam
2018-05-08, 08:46
I should have ask this first. Did you install the kernel modules for rtc?

rtc-KERNEL.tcz These are hosted on the piCorePlayer sourceforge repo.

I should have mentioned that I did and I have the tcz listed in onboot.lst how can I make sure its properly loaded. I suspect something is wrong... maybe I got it from the wrong repo? I dont remember getting it from pcp repo I think its from standard.



tc@carCorePlayer:~$ grep rtc /mnt/mmcblk0p2/tce/onboot.lst
rtc-4.9.22-piCore.tcz
tc@carCorePlayer:~$ uname -a
Linux carCorePlayer 4.14.26-pcpCore #1 Wed Mar 14 23:00:34 EDT 2018 armv6l GNU/Linux

if its relevant full onboot.lst is here (https://clitxt.com/t/hta-1525794445.txt)

foxsam
2018-05-08, 09:01
Ok so that was it. the rtc module I had was from standard picore repo. I didnt think about the different kernels until I was replying that I loaded the right module for the right kernel. Once I realised that (with the help of paul-) there is an rtc module for the pcp kernel specifically I removed the old rtc module and installed the pcp one and after a reboot it works like it should.

Thanks once again to all. :)


_ _____ ___ __
___ (_) ___/__ _______ / _ \/ /__ ___ _____ ____
/ _ \/ / /__/ _ \/ __/ -_) ___/ / _ `/ // / -_) __/
/ .__/_/\___/\___/_/ \__/_/ /_/\_,_/\_, /\__/_/
/_/ /___/

piCorePlayer = piCore + Squeezelite + Raspberry Pi

The software is provided "as is" without warranty of any kind,
either express or implied, including without limitation any implied
warranties of condition, uninterrupted use, merchantability,
fitness for a particular purpose, or non-infringement.
tc@carCorePlayer:~$ sudo hwclock
Tue May 8 10:56:52 2018 0.000000 seconds
tc@carCorePlayer:~$

paul-
2018-05-08, 19:20
I did a fresh install in the first place, giving me 3.0.2.
However, I did remove and reinstall shairport-sync from the pcp sourceforge-repo, also giving me 3.0.2.


Sourceforge repo updated....please try it again.

senthor
2018-05-09, 03:31
Sourceforge repo updated....please try it again.

Now I get 3.1.7 and the control device works. Thanks!

However, when not specifying a specific output device, shairport-sync does not start. Looking at the init script, it looks like the description in the web interface is not correct:

Set name of Shairport-sync output device
If not changed Shairport output device will be the default DAC specific values.
If no specific shareport output device is specified, the script does not fallback to the DAC specific values; so, shareport quits.

audiophilio
2018-05-09, 05:43
Hi, need some help.
Try to get hardware volume of Meridian Explorer2 working on rpi3b+
Alsamixer shows
Explorer² USB DAC
as volume control.
But pasting this in the squeezelite options doesnt activate hardware volume.
Is there any nomenclature for a "more than one word term" that has to be minded (like " or ' or _)?

Thanks for assistance

TheChrisP
2018-05-09, 16:09
Hi,

first of all a big thanks to the dev that make this solution to maintain the Squeezebox alive on RPi as a present for my daughter !!!

I've already read many many threads to achieve the first step of my setup, integrating a 3.5 480*320 touchscreen (ADA 2441) on a RPi3+. I have no other screen attached to the hdmi port, and no keyboard or mouse connected, so event0 is always affected to the touchscreen.

But then I'm stick with erratic touch behaviors :/

First I want to explain what I did, it took me a while to clean up these steps, I hope this is not too obvious for the pro, but it can help other users in the same situation:

Install the 3.50 version on a sdcard, then edit Cmdline.txt:

tz=CET-1CEST,M3.5.0,M10.5.0/3 dwc_otg.fiq_fsm_mask=0xF host=MusicPlayer dwc_otg.lpm_enable=0 console=tty1 root=/dev/ram0 elevator=deadline rootwait quiet nortc loglevel=3 noembed smsc95xx.turbo_mode=N noswap cron consoleblank=0 waitusb=2 fbcon=map:11 fbcon=font:ProFont6x11 logo.nologo


edit the Config.txt file to charge the dtbo file for the screen:

#Custom Configuration Area, for config settings that are not managed by pCP.
#pCP will retain these settings during insitu-update
#---Begin-Custom-(Do not alter Begin or End Tags)-----
framebuffer_width=480
framebuffer_height=320
dtoverlay=pitft35-resistive,rotate=270,speed=25000000,fps=20
#---End-Custom----------------------------------------
note that the default speed at 42000000 does not make the screen to work, I had to reduce this.

Then boot up the RPi (the screen is still remaining blank at this stage)

Resize FS, then install Jivelite, the touchscreen will then be activated thanks to the touchscreen-4.14.26-pcpCore_v7.tcz included in the dependencies I believe. Then add pcp-jivelite_default-wav35skin.tcz extension from the PiCorePlayer sourceforge repository

After the reboot, the screen show the console, but then get black, it has to be specified to Jivelite. So copy /opt/jivelite/bin/jivelite.sh to /mnt/mmcblk0p2/tce/jivelite.sh and modify the content to:

#!/bin/sh
if [ ! -z ${SDL_TOUCHSCREEN} ]; then
export JIVE_NOCURSOR=1
fi

#export SDL_VIDEO_FBCON_ROTATION=UD
export JIVE_NOCURSOR=1
export TSLIB_TSDEVICE=/dev/input/event0
export SDL_MOUSEDRV=TSLIB
export SDL_MOUSEDEV=$TSLIB_TSDEVICE
export HOME=/home/tc
export JIVE_FRAMERATE=22

/usr/sbin/fbset -depth 32

while true; do
sleep 3
SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite > /dev/null 2>&1
done

The good thing is that the do_rebootstuf.sh script use this modified file instead of the initial jivelite.sh, cool.

Then after reboot the Jivelite is starting on the screen (good) but the touchscreen does not yet work.


So then I close jivelite using ps to get the process id:

4271 root 0:00 {jivelite.sh} /bin/sh /mnt/mmcblk0p2/tce/jivelite.sh
6064 root 0:02 /opt/jivelite/bin/jivelite
then close the script first, then the bin:

sudo kill 4271
sudo kill 6064

ts_test does not work at this step, and the touch actions are not rotated. The ts.conf need to be modified to include the linear module:

/usr/local/etc/ts.conf:

module_raw input
module linear


And as this file is not saved by default, add this line to the file /opt/.filetool.lst :

/usr/local/etc/ts.conf
Now with pcp bu, the ts setting survive a reboot.

So the touchscreen is properly displayed with the small screen skin, the touch actions are where there are supposed to be (I can scroll the menus).

However the touch does not react as there are supposed to. It's kinda hard to explain, I had to click several time to the language menu before the choice were accepted and before I could go to the next menu, most of the time, I can see the line where I touched being highlighted, but the screen loops on the same menu and go to the bottom of the list. Eventually, after numereous attempts, it worked, but issues remained on hte next step.


Interesting thing is that ts_print_raw show untranslated coordinates with a triplet of 0 0 0 when released

...
1525943423.508813: 2467 2041 203
1525943423.515047: 2519 2044 151
1525943423.576994: 0 0 0
, but ts_print show different translated data, especially the release is transformed to a non zero triplet of data, like 506 -29 0

1525943956.555369: 191 258 122
1525943956.561603: 191 260 118
1525943956.567839: 190 261 117
1525943956.636996: 506 -29 0

I learned a lot up to now, but there I'm stuck. What should I try next ?

ralphy
2018-05-10, 05:18
Hi,

first of all a big thanks to the dev that make this solution to maintain the Squeezebox alive on RPi as a present for my daughter !!!

I've already read many many threads to achieve the first step of my setup, integrating a 3.5 480*320 touchscreen (ADA 2441) on a RPi3+. I have no other screen attached to the hdmi port, and no keyboard or mouse connected, so event0 is always affected to the touchscreen.

But then I'm stick with erratic touch behaviors :/

First I want to explain what I did, it took me a while to clean up these steps, I hope this is not too obvious for the pro, but it can help other users in the same situation:

Install the 3.50 version on a sdcard, then edit Cmdline.txt:

tz=CET-1CEST,M3.5.0,M10.5.0/3 dwc_otg.fiq_fsm_mask=0xF host=MusicPlayer dwc_otg.lpm_enable=0 console=tty1 root=/dev/ram0 elevator=deadline rootwait quiet nortc loglevel=3 noembed smsc95xx.turbo_mode=N noswap cron consoleblank=0 waitusb=2 fbcon=map:11 fbcon=font:ProFont6x11 logo.nologo


edit the Config.txt file to charge the dtbo file for the screen:

#Custom Configuration Area, for config settings that are not managed by pCP.
#pCP will retain these settings during insitu-update
#---Begin-Custom-(Do not alter Begin or End Tags)-----
framebuffer_width=480
framebuffer_height=320
dtoverlay=pitft35-resistive,rotate=270,speed=25000000,fps=20
#---End-Custom----------------------------------------
note that the default speed at 42000000 does not make the screen to work, I had to reduce this.

Then boot up the RPi (the screen is still remaining blank at this stage)

Resize FS, then install Jivelite, the touchscreen will then be activated thanks to the touchscreen-4.14.26-pcpCore_v7.tcz included in the dependencies I believe. Then add pcp-jivelite_default-wav35skin.tcz extension from the PiCorePlayer sourceforge repository

After the reboot, the screen show the console, but then get black, it has to be specified to Jivelite. So copy /opt/jivelite/bin/jivelite.sh to /mnt/mmcblk0p2/tce/jivelite.sh and modify the content to:

#!/bin/sh
if [ ! -z ${SDL_TOUCHSCREEN} ]; then
export JIVE_NOCURSOR=1
fi

#export SDL_VIDEO_FBCON_ROTATION=UD
export JIVE_NOCURSOR=1
export TSLIB_TSDEVICE=/dev/input/event0
export SDL_MOUSEDRV=TSLIB
export SDL_MOUSEDEV=$TSLIB_TSDEVICE
export HOME=/home/tc
export JIVE_FRAMERATE=22

/usr/sbin/fbset -depth 32

while true; do
sleep 3
SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite > /dev/null 2>&1
done

The good thing is that the do_rebootstuf.sh script use this modified file instead of the initial jivelite.sh, cool.

Then after reboot the Jivelite is starting on the screen (good) but the touchscreen does not yet work.


So then I close jivelite using ps to get the process id:

4271 root 0:00 {jivelite.sh} /bin/sh /mnt/mmcblk0p2/tce/jivelite.sh
6064 root 0:02 /opt/jivelite/bin/jivelite
then close the script first, then the bin:

sudo kill 4271
sudo kill 6064

ts_test does not work at this step, and the touch actions are not rotated. The ts.conf need to be modified to include the linear module:

/usr/local/etc/ts.conf:

module_raw input
module linear


And as this file is not saved by default, add this line to the file /opt/.filetool.lst :

/usr/local/etc/ts.conf
Now with pcp bu, the ts setting survive a reboot.

So the touchscreen is properly displayed with the small screen skin, the touch actions are where there are supposed to be (I can scroll the menus).

However the touch does not react as there are supposed to. It's kinda hard to explain, I had to click several time to the language menu before the choice were accepted and before I could go to the next menu, most of the time, I can see the line where I touched being highlighted, but the screen loops on the same menu and go to the bottom of the list. Eventually, after numereous attempts, it worked, but issues remained on hte next step.


Interesting thing is that ts_print_raw show untranslated coordinates with a triplet of 0 0 0 when released

...
1525943423.508813: 2467 2041 203
1525943423.515047: 2519 2044 151
1525943423.576994: 0 0 0
, but ts_print show different translated data, especially the release is transformed to a non zero triplet of data, like 506 -29 0

1525943956.555369: 191 258 122
1525943956.561603: 191 260 118
1525943956.567839: 190 261 117
1525943956.636996: 506 -29 0

I learned a lot up to now, but there I'm stuck. What should I try next ?

Have you calibrated the screen using ts_calibrate?

See the Calibrate the Screen section for details. Note that jivelite must NOT be running for ts_calibrate to work.

http://www.pughx2.com/picore3.html

TheChrisP
2018-05-10, 06:36
Have you calibrated the screen using ts_calibrate?

See the Calibrate the Screen section for details. Note that jivelite must NOT be running for ts_calibrate to work.

http://www.pughx2.com/picore3.html

Hi Ralphy,

Yes I did, I forgot to mention it, I did it before modifying the ts.conf file.
I even tried to use the reference pointercal used in Adafruit script (https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh ) but the result is the same


The point is that the calibration is ok, I can see the screen reacting exactly where I touch it. Once module linear is added, ts_test is working perfectly, and the Jivelite is reacting at the right position. I can scroll the right scroll bar, I can see the language selected being highlighted.

But what is messy is when I "unpress" the touchscreen, the ts_print result make me suspect that the position is jumping somewhere else at this moment, or that the event is not considered as a mouse click.


I wanted to try the debounce module, but it is not present in the distribution.

mongrel
2018-05-10, 14:14
The point is that the calibration is ok, I can see the screen reacting exactly where I touch it. Once module linear is added, ts_test is working perfectly, and the Jivelite is reacting at the right position. I can scroll the right scroll bar, I can see the language selected being highlighted.

This sounds similar to my efforts with pCP 3.5.0 + Waveshare 3.5", detailed here (https://forums.slimdevices.com/showthread.php?107366-picoreplayer-3-11-waveshare-3-5-TFT-jivelite-Raspberry-Pi-2B&p=911762&viewfull=1#post911762). Calibration works as expected, but the touchscreen is not useable in Jivelite. (I have been unable to resolve – rolled back to v3.22, where everything is fine.)

TheChrisP
2018-05-11, 02:46
This sounds similar to my efforts with pCP 3.5.0 + Waveshare 3.5", detailed here (https://forums.slimdevices.com/showthread.php?107366-picoreplayer-3-11-waveshare-3-5-TFT-jivelite-Raspberry-Pi-2B&p=911762&viewfull=1#post911762). Calibration works as expected, but the touchscreen is not useable in Jivelite. (I have been unable to resolve – rolled back to v3.22, where everything is fine.)

That's interesting. I was in the same situation before adding the linear module in ts.onf (see my report before), but once done, the ts_test is working perfectly. I will try the 3.22, just got to get one of my RPi3B free, I was using a RPi3B+ which is supported only since 3.5.0.

According to the tslib readme (https://github.com/kergoth/tslib ) the linear module is the only one to use the pointercal file, to convert touch screen co-ordinates to screen co-ordinates. What is confusing me a bit, it's that it's not used in the Waveshare screen procedure ...

In your case, I guess you just give it a try.

Out of curiosity, what are the result you get when doing a ts_print and a ts_print raw ? Especially the data you get when you release the touchscreen ?
ts_print_raw should print the touchscreen unconverted coordinate, ts_print should print the converted coordinates, those that should use jivelite.

TheChrisP
2018-05-11, 03:14
Oooh that's interesting.

Using 3.2.2, before calibration, ts-print give:
1526033176.491395: 3457 2092 73
1526033176.498265: 3461 2097 80
1526033176.559232: 3465 2107 0

and ts_print_raw give:
1526033835.184668: 2732 2545 177
1526033835.191511: 2725 2507 248
1526033835.260930: 0 0 0

after calibration, I get:
ts_print:
1526033232.185516: 201 253 116
1526033232.192403: 201 254 132
1526033232.259680: 201 255 0
The release converted coordinate is then fine.

Having with ts_print_raw:
1526033226.607520: 3118 2057 135
1526033226.614979: 3131 2052 157
1526033226.679691: 0 0 0

So the 0 0 0 from raw data is converted to a 0 pressure (release) with the last known coordinate. And I didn't add the linear module !

I need to redo this test with 3.5.0 to compare result, I will do that later.

mongrel
2018-05-11, 05:23
Out of curiosity, what are the result you get when doing a ts_print and a ts_print raw ? Especially the data you get when you release the touchscreen ?
I didn't get as far as looking into tslib, nor using any of the other ts_ utilities (I didn't know they were there ...). I'll try to find time this weekend to have another look at pCP 3.5.0, on the shoulders of your notes.

Do bear in mind that we are using different screens, too. Mine identifies as 'ADS7846 Touchscreen'.

TheChrisP
2018-05-11, 08:52
I made some additionnal test on the 3.5.0.

So with no calibration (pointercal file deleted) and ts.conf content as initial setup,
ts_print show:
1526053179.251492: 2709 2098 143
1526053179.257741: 2725 2077 188
1526053179.317828: 0 0 0

ts_print_raw show:
1526053222.498526: 2410 1860 172
1526053222.504775: 2476 1829 158
1526053222.567837: 0 0 0

Once calibrated

ts_print:
1526053331.553465: 3349 2780 134
1526053331.559709: 3376 2787 125
1526053331.617826: 0 0 0

ts_print_raw:
1526053345.723245: 3664 2599 115
1526053345.729486: 3675 2599 132
1526053345.787816: 0 0 0

Calibration is not used at this stage, and it's the kind of behavior I observe in Jivelite, with action being completly off where I click

With calibration and module linear added in ts.conf

ts_print:
1526053405.145110: 168 285 96
1526053405.151355: 165 287 127
1526053405.217826: 507 -24 0

ts_print_raw:
1526053397.592481: 3358 1647 126
1526053397.598725: 3380 1665 203
1526053397.657816: 0 0 0


So there the ts_print tool provide the right screen coordinates, but the release action provide an out of the screen coordinate. I guess the afine transformation defined by the calibration is just providing these value to the x-touch and y-touch = 0

What is strange is that the behavior is completly different with the 3.2.2.

As I'm using the same video driver and the same touchscreen driver (stmpe-ts), it means the tslib is implemented differently between 3.2.2 and 3.5.

Ralphy ? What do you think about these tests ?

kingswindsor
2018-05-11, 12:31
I have invested in a HiFiberry Beocreate board to ‘upcycle’ some old B&O Beovox CX100 speakers. All goes well following the B&O/HiFiberry prescription and the standard software works fine for Bluetooth and Airplay. But I was hoping to move to PCP once the crossover settings had been saved to the EPROM. Please see here:

https://www.hifiberry.com/beocreate/beocreate-doc/beocreate-use-the-board-with-3rd-party-software/

When I replace the SD card with PCP3.5 and reboot I have made some progress but still no sound!

I tried most of the HiFiberry DAC settings but Squeezelite wouldn’t start until I changed Output Settings to sysdefault:CARD=ALSA but still no sound.

The Beocreate instructions say to include
dtoverlay=hifiberry-dac
In /boot/config.txt
How do I do the equivalent of this in PCP?

Thanks


Sent from my iPad using Tapatalk

paul-
2018-05-11, 12:38
Just select Hifiberry Dac as the card type, and then reboot. If Squeezelite is not starting, check the output field.......expand the more> to see what the detected output devices are.

kingswindsor
2018-05-12, 01:28
Just select Hifiberry Dac as the card type, and then reboot. If Squeezelite is not starting, check the output field.......expand the more> to see what the detected output devices are.

I tried that but it only listed null and ALSA as output devices. The log said it couldn’t find sndrpihifiberry.

However, counter-intuitively, by selecting ESS9023 it picks up sndrpihifiberry and all works perfectly. Airplay ditto. Will try out Bluetooth later.


Sent from my iPad using Tapatalk

Greg Erskine
2018-05-12, 03:15
I tried that but it only listed null and ALSA as output devices. The log said it couldn’t find sndrpihifiberry.

However, counter-intuitively, by selecting ESS9023 it picks up sndrpihifiberry and all works perfectly. Airplay ditto. Will try out Bluetooth later.

Hi kingswindsor,

None of the manufacturers that use the ESS9023 DAC have managed to get an open-source driver into the Linux distribution. So, we have used one of HiFiBerry's generic drivers to make these DAC board work at a basic level.

I think the "ES9023 DAC" settings is almost the same setting as"HiFiBerry DAC Zero/MinAMP". Did you try that one?

regards
Greg

kingswindsor
2018-05-12, 03:43
I think the "ES9023 DAC" settings is almost the same setting as"HiFiBerry DAC Zero/MinAMP". Did you try that one?


Greg
I hadn't but I have now and that one works too. Perfect, thanks.
Regarding Bluetooth, am I right in thinking that only connection to BT speakers is supported rather than streaming BT from a phone?
regards
George

Greg Erskine
2018-05-12, 04:02
I have never used BT in my life! LOL

ralphy
2018-05-12, 05:49
What is strange is that the behavior is completly different with the 3.2.2.

As I'm using the same video driver and the same touchscreen driver (stmpe-ts), it means the tslib is implemented differently between 3.2.2 and 3.5.

Ralphy ? What do you think about these tests ?
There have been several revisions of the libts.tcz. Which you can review here (https://github.com/ralph-irving/tcz-libts).

I had a similiar problem with my original rpi 7" screen that was caused by the power adapters. Turns out both of my 2.5A power bricks were the culprits, which really sucks since that was the first thing I swapped after I noticed the problem. I swapped in 2 different rpis, same problem. Put back in the original rpi and swapped the hat dac and still no luck. Then I tried a 2A PS with a ferrite core molded into the wire and the "ghosting" was gone.

I've been using a different fork (https://github.com/veo-labs/tslib) of kergoth's tslib, so I've created a new libts.tcz from the https://github.com/kergoth/tslib sources which includes the debounce module for you to try.

For now it has the default ts.conf from the distribution and works with my rpi touch screens. I don't have either of your screens to test with.



# cd /mnt/*/tce/optional
ceo

# Backup the pcp 3.5 libts files.
cp -p libts.tcz.md5.txt libts.tcz.md5.txt.35
cp -p libts.tcz libts.tcz.35

# Download the test libts packages.
wget -O libts.tcz.md5.txt 'https://www.dropbox.com/s/xkxuf7hbv7lea8w/libts.tcz.md5.txt?dl=1'
wget -O libts.tcz 'https://www.dropbox.com/s/d61b468l6o3gmrs/libts.tcz?dl=1'

# Are they valid?
md5sum -c libts.tcz.md5.txt
libts.tcz: OK

# Reboot
pcp rb

TheChrisP
2018-05-12, 09:00
There have been several revisions of the libts.tcz. Which you can review here (https://github.com/ralph-irving/tcz-libts).

I had a similiar problem with my original rpi 7" screen that was caused by the power adapters. Turns out both of my 2.5A power bricks were the culprits, which really sucks since that was the first thing I swapped after I noticed the problem. I swapped in 2 different rpis, same problem. Put back in the original rpi and swapped the hat dac and still no luck. Then I tried a 2A PS with a ferrite core molded into the wire and the "ghosting" was gone.

I've been using a different fork (https://github.com/veo-labs/tslib) of kergoth's tslib, so I've created a new libts.tcz from the https://github.com/kergoth/tslib sources which includes the debounce module for you to try.

For now it has the default ts.conf from the distribution and works with my rpi touch screens. I don't have either of your screens to test with.



# cd /mnt/*/tce/optional
ceo

# Backup the pcp 3.5 libts files.
cp -p libts.tcz.md5.txt libts.tcz.md5.txt.35
cp -p libts.tcz libts.tcz.35

# Download the test libts packages.
wget -O libts.tcz.md5.txt 'https://www.dropbox.com/s/xkxuf7hbv7lea8w/libts.tcz.md5.txt?dl=1'
wget -O libts.tcz 'https://www.dropbox.com/s/d61b468l6o3gmrs/libts.tcz?dl=1'

# Are they valid?
md5sum -c libts.tcz.md5.txt
libts.tcz: OK

# Reboot
pcp rb


Ok, thanks a lot ! I installed this tslib version, and redid the calibration. However:


Debounce is not helping and not changing the weird touchscreen behavior.
Linear module is still needed to transform the touch coordinates to screen coordinates and to make ts_test to work
For a strange reason, the upper line is not accessible, I cannot get a y < 23. And during calibration, the 4 first crosses are a bit away from the border. In ts_test, I almost cannot use the 3 top button (Draw, Drag, Quit).


So in my case, I'm very sorry to say that instead of fixing the issue it had another one :/

I still do not get what could explain the behavior between 3.2.2 and 3.5.0.

Looking at the commits on https://github.com/ralph-irving/tcz-libts/commits/master, should I understand that the tslib is the same between pcp 3.2.2 and pcp 3.5.0 ?

[edit]

I made a test to rename the files you provided to me (libts.tcz and libts.tcz.md5.txt) and replace them by those coming in 3.2.2 pcp.

ls -al libts*
-rw-rw-r-- 1 tc staff 53248 Sep 24 2017 libts.tcz
-rw-rw-r-- 1 tc staff 65536 May 9 17:53 libts.tcz.35
-rw-rw-r-- 1 tc staff 44 Sep 24 2017 libts.tcz.md5.txt
-rw-rw-r-- 1 tc staff 44 May 9 17:53 libts.tcz.md5.txt.35
-rw-rw-r-- 1 tc staff 44 May 12 16:51 libts.tcz.md5.txt.test
-rw-rw-r-- 1 tc staff 86016 May 12 16:51 libts.tcz.test

md5sum -c libts.tcz.md5.txt
libts.tcz: OK

The behavior is then the same as 3.5.0, I have to add module linear in ts.conf to have the touch coordinates translated to screen coordinates, and the release event (0 0 0 in ts_print_raw) is wrongly translated:

ts_print_raw:
1526147535.564343: 3258 2754 73
1526147535.570558: 3267 2748 77
1526147535.576772: 3294 2762 110
1526147535.634452: 0 0 0


ts_print:
1526147540.977815: 170 249 81
1526147540.984025: 169 249 81
1526147540.993065: 170 250 81
1526147541.054452: 503 -24 0

This values (503 -24 0) are always the same on realease event, whatever the touch position on the screen was before the release, and change only a bit if I do a calibration again.


Well, I have to admit I don't get it, at all ...

ralphy
2018-05-13, 06:20
Ok, thanks a lot ! I installed this tslib version, and redid the calibration. However:


Debounce is not helping and not changing the weird touchscreen behavior.
Linear module is still needed to transform the touch coordinates to screen coordinates and to make ts_test to work
For a strange reason, the upper line is not accessible, I cannot get a y < 23. And during calibration, the 4 first crosses are a bit away from the border. In ts_test, I almost cannot use the 3 top button (Draw, Drag, Quit).


So in my case, I'm very sorry to say that instead of fixing the issue it had another one :/

I still do not get what could explain the behavior between 3.2.2 and 3.5.0.

Looking at the commits on https://github.com/ralph-irving/tcz-libts/commits/master, should I understand that the tslib is the same between pcp 3.2.2 and pcp 3.5.0 ?

[edit]

I made a test to rename the files you provided to me (libts.tcz and libts.tcz.md5.txt) and replace them by those coming in 3.2.2 pcp.

ls -al libts*
-rw-rw-r-- 1 tc staff 53248 Sep 24 2017 libts.tcz
-rw-rw-r-- 1 tc staff 65536 May 9 17:53 libts.tcz.35
-rw-rw-r-- 1 tc staff 44 Sep 24 2017 libts.tcz.md5.txt
-rw-rw-r-- 1 tc staff 44 May 9 17:53 libts.tcz.md5.txt.35
-rw-rw-r-- 1 tc staff 44 May 12 16:51 libts.tcz.md5.txt.test
-rw-rw-r-- 1 tc staff 86016 May 12 16:51 libts.tcz.test

md5sum -c libts.tcz.md5.txt
libts.tcz: OK

The behavior is then the same as 3.5.0, I have to add module linear in ts.conf to have the touch coordinates translated to screen coordinates, and the release event (0 0 0 in ts_print_raw) is wrongly translated:

ts_print_raw:
1526147535.564343: 3258 2754 73
1526147535.570558: 3267 2748 77
1526147535.576772: 3294 2762 110
1526147535.634452: 0 0 0


ts_print:
1526147540.977815: 170 249 81
1526147540.984025: 169 249 81
1526147540.993065: 170 250 81
1526147541.054452: 503 -24 0

This values (503 -24 0) are always the same on realease event, whatever the touch position on the screen was before the release, and change only a bit if I do a calibration again.


Well, I have to admit I don't get it, at all ...

I've applied the fix from my libts sources so you can calibrate to the screen edge, new tcz is on dropbox.
I'm surprised the ts_calibrate issue has not been fixed in the master libts repo.

I don't know why you're getting the weird release coordinates and without the same screen it's hard to even help.
Perhaps one of the other tslib modules (https://github.com/kergoth/tslib/blob/master/README.md) might help.

Using the default ts.conf in the dropbox tcz this is the results from the official rpi 7" screen.

$ ts_print
1526216837.887737: 293 211 255
1526216838.167722: 293 211 0
1526216839.527724: 294 209 255
1526216839.777719: 294 209 0

$ ts_print_raw
1526217072.217732: 375 257 255
1526217072.697721: 0 0 0
1526217073.257725: 366 258 255
1526217073.697731: 0 0 0
1526217074.137734: 362 258 255
1526217074.537721: 0 0 0

mongrel
2018-05-13, 12:38
Solved for pCP 3.5.0 + Waveshare 35B!

Comparing the ts.conf file between pCP 3.22 and 3.5.0, it seems to have lost a few lines. This works for me:
$ cat /usr/local/etc/ts.conf
module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear

ts_print now shows calibrated coordinates and the lift-off point has the last set coordinates with zero pressure:
[ts_print]
1526239319.727003: 254 199 156
1526239319.747021: 254 199 147
1526239319.766880: 254 200 0

It is necessary to add ts.conf to /opt/.filetool.lst in order to survive a reboot.

Jiveliite works as expected.

Thanks to TheChrisP and ralphy for enough hints to get here.

TheChrisP
2018-05-13, 12:44
I've applied the fix from my libts sources so you can calibrate to the screen edge, new tcz is on dropbox.
I'm surprised the ts_calibrate issue has not been fixed in the master libts repo.

I don't know why you're getting the weird release coordinates and without the same screen it's hard to even help.
Perhaps one of the other tslib modules (https://github.com/kergoth/tslib/blob/master/README.md) might help.

Using the default ts.conf in the dropbox tcz this is the results from the official rpi 7" screen.

$ ts_print
1526216837.887737: 293 211 255
1526216838.167722: 293 211 0
1526216839.527724: 294 209 255
1526216839.777719: 294 209 0

$ ts_print_raw
1526217072.217732: 375 257 255
1526217072.697721: 0 0 0
1526217073.257725: 366 258 255
1526217073.697731: 0 0 0
1526217074.137734: 362 258 255
1526217074.537721: 0 0 0

Hi Ralphy,

I confirm your last tcz fix the edge issue.

I've restart the test with a new sdcard from scratch, importing the new tslib tcz before starting the RPi.

The good news is that now the release event show a proper translation in ts_print:
1526240144.644875: 270 275 155
1526240144.651104: 269 274 173
1526240144.657336: 269 275 173
1526240144.724196: 269 278 0

And now Jivelite wroks as intended with the screen ! Houray !

So just replacing the tslib.tcz seems not enough for a complete replacement, it has to be done before the installation of additionnal step, maybe the touchscreen tcz installation included in jivelite dependencies ?

Thanks a lot for your help, I can go further now :)

Nikolay V
2018-05-14, 03:16
Hi everybody !
piCorePlayer 3.5.0 Audio not mount Network Share (NAS)
Shareport NOT START

RSPi2
piCorePlayer 3.22 work fine

paul-
2018-05-14, 03:31
Mount security has changed in the new kernels. Did you read the notes?

starbender
2018-05-14, 11:27
Hi everybody !
piCorePlayer 3.5.0 Audio not mount Network Share (NAS)
Shareport NOT START

RSPi2
piCorePlayer 3.22 work fineV3.5 with network mount works fine for me.
No idea about shareport. Never need it..

Sent from my SM-N935F using Tapatalk

DJDR
2018-05-26, 00:23
I recently bought the Audiophonics ES9028Q2M Dac.
In the menu of Picoreplayer 3.50 I can not choose this Dac.
I choose the I-Sabre settings. Is this the best choise for this Dac?
And, will the ES9028Q2M drivers be present in the next version of Picoreplayer?

Greg Erskine
2018-05-26, 00:49
I recently bought the Audiophonics ES9028Q2M Dac.
In the menu of Picoreplayer 3.50 I can not choose this Dac.
I choose the I-Sabre settings. Is this the best choise for this Dac?
And, will the ES9028Q2M drivers be present in the next version of Picoreplayer?

Hi DJDR,

We only include open source drivers for DACs. As far as I know, no manufacturer using ESS products has managed to get one into Linux.

ESS has a NDA and no open source policy that makes this a difficult task. :(

regards
Greg

bakker_be
2018-05-27, 13:16
Hi DJDR,

We only include open source drivers for DACs. As far as I know, no manufacturer using ESS products has managed to get one into Linux.

ESS has a NDA and no open source policy that makes this a difficult task. :(

regards
Greg

Hi Greg, I may be mistaken but isn't that what Allo's done for their upcoming Katana (http://essabre-90xx-rpi.sfb2.com/2018/04/allo-katana-on-the-way-dts-accepted-for-rpi-mainline-kernel-diyaudio-com-forum/)? Or is this something completely different?

Greg Erskine
2018-05-27, 15:48
hi bakker_be,

Yeah, the Allo guys know what they are doing. :)

Any drivers - "accepted by the rpi-mainline-kernel maintainer" - will also be included in piCorePlayer fairly quickly.

regards
Greg

paul-
2018-05-27, 16:38
For the record, the Allo Katana driver is not an ESS driver. The ESS DAC is 100% controlled by an onboard microprocessor. The driver in change controls the microprocessor. The Katana driver is not going to work with any other ESS based product.

bakker_be
2018-05-29, 03:05
For the record, the Allo Katana driver is not an ESS driver. The ESS DAC is 100% controlled by an onboard microprocessor. The driver in change controls the microprocessor. The Katana driver is not going to work with any other ESS based product.

Bummer ;)

willefg
2018-05-29, 16:10
I’ve posted my question in the thread started by Dean_Bayliss who seems to have been able to get an OLED display in his pCp build to show LMS stream info. (See https://forums.slimdevices.com/showthread.php?104978-Connect-OLED-display-to-your-piCorePlayer-box-gt-Quad-FM4)
He used LMSMonitor created by Tothl (see https://forums.slimdevices.com/showthread.php?97803-piCorePlayer-Squeezelite-on-Microcore-linux-An-embedded-OS-in-RAM-with-Squeezelit&p=829809&highlight=OLED#post829809)
I downloaded LMSMonitor v3 from http://github.com/kabavol/LMSMonitor

My knowledge of Python, SSH, etc. is limited to following instructions, step by step.

I’m building a new LMS player that uses a RPi3, Audiophonics ES9038Q2M DAC, 2 OLED screens (one for the DAC stream data -which already works- and the same SH1106 OLED display that should show LMS info). Player will be housed in a 3D printed case that I designed. Software will probably be piCorePlayer like my current player for which I used a LCD screen controlled through Slimmer.

So far I have deducted that LMSMonitor is only the software to get the right data to the i2c port. :confused: I assume that I need i2c control software (I already loaded i2c-tools) and a driver for the SH1106 OLED display. I have been searching the web for something like that, something that would work in pCp/TinyCoreLinux and sent a PM to both these people since they should be able to explain what they did. So far, I still didn’t find what I needed.
I hope somebody can point me in the right direction. Thanks!

foxsam
2018-05-29, 16:37
I recently got the google AIY voice V1 (https://aiyprojects.withgoogle.com/voice-v1/) kit. I am wondering since it has a speaker and an amp how can I use it with pcp to play from my lms? I tried using the hifiberry dac zero but it doesnt seem compatible. Does anyone have any experience or know what where I should check?

paul-
2018-05-29, 16:40
Drivers are not neccessarily required, it all depends on the hardware i2c is enabled by default. Most i2s soundcard HATs use i2c control lines

To use i2cdetect, you need to load i2c-dev.

sudo modprobe i2c-dev
i2cdetect -y 1



tc@pCP-Test:~/www/cgi-bin$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- UU -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


The UU means there is a populated device at that specific address, which in this case is the i2c control line for my soundcard/.

foxsam
2018-05-29, 16:59
Drivers are not neccessarily required, it all depends on the hardware i2c is enabled by default. Most i2s soundcard HATs use i2c control lines
There is no i2c address detected.



tc@piCorePlayer:~$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
tc@piCorePlayer:~$

more hardware information is at https://hackaday.com/2017/05/30/diy-google-aiy/

paul-
2018-05-29, 17:04
That was in regards to willefg's post, not yours. I have no idea about the google hardware.

foxsam
2018-05-29, 17:23
That was in regards to willefg's post, not yours. I have no idea about the google hardware.

It seems to use the MAX98357A which I use on my other pcp and it works fine that way..
If anyone has any ideas...

willefg
2018-05-30, 01:15
Paul, thank you for your help.

When I use the command, I get following. I guess 0x3c is my OLED?



tc@piCorePlayer:~$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


How do I go from here?

Frank

willefg
2018-05-30, 09:01
When I look throught the code of LMSMonitor it starts with including following:

/*
* lmsmonitor.c
*
* (c) 2015 László TÓTH
*
* Todo: Done - Automatic server discovery
* Done - Get playerID automatically
* Reconect to server
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* See <http://www.gnu.org/licenses/> to get a copy of the GNU General
* Public License.
*
*/

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>

#include "tagUtils.h"
#include "mixermon.h"
#include "sliminfo.h"
#include "display.h"
#include "common.h"

#ifdef __arm__

#include "ArduiPi_OLED_lib.h"
#include "Adafruit_GFX.h"
#include "ArduiPi_OLED.h"
#include "display.h"

#endif

............>


Am I right to assume I need all of these for it to work? Are these standard in piCore or in a specific extension?

paul-
2018-05-30, 09:14
That is a C program that has to be compiled. There are precompiled binaries in the bin folder, just look at the readme on the github site. It even tells you how to install it on piCorePlayer.

willefg
2018-05-30, 10:19
It must be obvious (for many)......, but not for me, sorry.

First thing I did last week was copying the contents of LMSMonitor_v03_bin.tgz to my PC. Unzipped it and, as instructed, copied the two files in the zip (lmsmonitor & startDisp.sh) to the designated locations. But that doesn’t give me an image on the OLED.

I assumed I would need other things like enabling i2c and/or the files that are called upon in the LMSmonitor code as in my previous post.

Help; completely clueless:confused:

Greg Erskine
2018-05-30, 15:07
hi willefg,

Could you please continue the OLED discussions in the appropriate thread.

This stuff is way beyond a standard pCP3.5.0 install.

regards
Greg

willefg
2018-05-30, 15:33
hi willefg,

Could you please continue the OLED discussions in the appropriate thread.

This stuff is way beyond a standard pCP3.5.0 install.

regards
Greg

I tried in different threads before, but there it got no attention. Here it did and Paul replied. If you can tell me where I could better place it, I will. On the other hand, it is related to piCorePlayer as I’m just trying to get more out of it by adding an OLED screen in a way at least two other people, I know of, managed to do. However, they don’t seem to be active in this forum, anymore. As I saw in their pictures that it was possible, I decided to buy the parts to build me a new pCp setup. Everything works, except the one OLED for LMS data and that is probably due to my lack of knowledge on the piCore software system. That’s why I was reaching out here; to learn.

If anyone is capable (and willing) to help me, send me a PM please. When the help leads to a working i2c OLED in pCp, I’ll write a How-To for other ignorant users, like me.

willefg
2018-05-30, 16:29
Anyone capable and willing to help me getting the LMSmonitor OLED going, care to send me a PM?
Thanks!

Greg Erskine
2018-05-30, 18:42
Or just post replies about OLED and LMSmonitor in the following thread so everyone learns. :)

Connect OLED display to your piCorePlayer: https://forums.slimdevices.com/showthread.php?104978-Connect-OLED-display-to-your-piCorePlayer-box-gt-Quad-FM4

MWelschenbach
2018-06-01, 05:15
LMS development just moved to 7.9.2. Just a reminder if you want to keep getting nighties, you will need to follow this procedure.

http://picoreplayer.sourceforge.net/how_to_upgrade_lms.shtml

Can someone please give me a hint how to revert to LMS version 7.9.1 after having updated to LMS nightly version 7.9.2? Even with a fresh installation of pcP 3.5.0, INSTALL via the pcP webinterface (page "LMS") automatically leads to installation of LMS version 7.9.2.

Thanks, Michael

paul-
2018-06-01, 05:43
There is no way to revert. What issues are you having with 7.9.2

MWelschenbach
2018-06-01, 07:06
There is no way to revert. What issues are you having with 7.9.2

After updating to LMS 7.9.2 music randomly stopped playing in the middle of a track. A complete reinstallation of pCP it seems to be OK again. However, thought it was a good idea to revert to version 7.9.1.

Thanks, Michael

w3wilkes
2018-06-01, 07:33
After updating to LMS 7.9.2 music randomly stopped playing in the middle of a track. A complete reinstallation of pCP it seems to be OK again. However, thought it was a good idea to revert to version 7.9.1.

Thanks, Michael

When 7.9.2 would randomly stop playing would it just be for a second or so and then resume?

MWelschenbach
2018-06-01, 07:50
When 7.9.2 would randomly stop playing would it just be for a second or so and then resume?

Player resumed at least once, although after a longer time (did not observe how long). On other occasions the player did not resume. Playtime of the track showed a repeating pattern like 4.35, 4.34, 4.33, 4.35, 4.34, 4.33, ...

But as I mentioned, after fresh installation of pCP behavior no seems to be normal again.

Regards, Michael

w3wilkes
2018-06-01, 08:21
Player resumed at least once, although after a longer time (did not observe how long). On other occasions the player did not resume. Playtime of the track showed a repeating pattern like 4.35, 4.34, 4.33, 4.35, 4.34, 4.33, ...

But as I mentioned, after fresh installation of pCP behavior no seems to be normal again.

Regards, Michael

Thanks! I was just curious if it just stopped or if it stopped and then resumed, sounds like you've seen it both ways.

paul-
2018-06-01, 08:35
That doesn't sound like a LMS specific issue, but rather a source or network issue.

A little more information about your setup.

Is pCP both the LMS server and Player?
Wifi or Hardwire?
What is the source of the music when it is hanging?
Look at the LMS server logs and see if anything is being logged when the music stops playing.


The play time on the player will count down automatically, and then every so often, it refreshes the actual play time from the server. Which is why you see the pattern.

MWelschenbach
2018-06-01, 09:10
That doesn't sound like a LMS specific issue, but rather a source or network issue.

A little more information about your setup.

Is pCP both the LMS server and Player?
Wifi or Hardwire?
What is the source of the music when it is hanging?
Look at the LMS server logs and see if anything is being logged when the music stops playing.


The play time on the player will count down automatically, and then every so often, it refreshes the actual play time from the server. Which is why you see the pattern.

I have two players (not synchronized) and one LMS, each running on its own raspberry pi. Attached to the pi running LMS is a 1 GB SSD where my music is stored as flac files. Samba is installed on the pi running LMS. Connection is via ethernet, no wifi. The setup is running stable 24/7 for about a year now, never had any problems.

Next time when the music stops I will look into the LMS server logs.

badboygolf16v
2018-06-02, 03:12
Hi

Does Pi Zero W onboard WiFi work with 3.5.0? I'm getting it to connect 1 time in 50 if I'm lucky. Always get

Error for wireless request "Set ESSID" (8B1A) :
too few arguments.

If it's been working it will stop working on a reboot, never to work again. Can't see any reason for this. All my other wireless RPi3s (using dongles) work fine with pCP (older versions.)

Thanks

Greg Erskine
2018-06-02, 03:58
hi badboygolf16v,

Mine always works. It is used as part of pCP testing process.

You haven't a USB wifi adaptor plugged in as well?

What's does [Wifi] > [Diagnostics] tell you?

Look in the Help > FAQs

regards
Greg

badboygolf16v
2018-06-02, 06:33
Thanks Greg

No dongles installed on the Zero Ws. I'm using keyboard and monitor to set up from fresh with no connection to wired at all, which means I can't use Wifi Diagnostics. I haven't got an RJ45 adapter for the Zeros.

I've tried it with two Pi Zero Ws and also tried a fresh 3.5.0 on a RPi3 and that failed too... Stuck the existing SD card back in the RPi3 and working no probs!?

Interestingly I can't connect to the WebUI on my otherwise fully functioning two existing RPi3 pCPs. I'm at a loss to understand why I can play music from LMS to them but not access the WebUI.

I guess it's my network playing up. I've recently updated my network to an ASUS AiMesh setup with recently updated firmware, maybe it's that.

Man in a van
2018-06-02, 06:51
Interestingly I can't connect to the WebUI on my otherwise fully functioning two existing RPi3 pCPs. I'm at a loss to understand why I can play music from LMS to them but not access the WebUI.



Have you tried clearing /refreshing the browser cache?

BitStream
2018-06-06, 13:16
hi everyone,

i have an rpi3 with picoreplayer on a Denon X4400H and want to play dsd (dsf/dff) files via HDMI. Can anyone tell me if that's possible?

thank you in advance

huxmut
2018-06-07, 01:08
hi everyone,

i have an rpi3 with picoreplayer on a Denon X4400H and want to play dsd (dsf/dff) files via HDMI. Can anyone tell me if that's possible?

thank you in advance

I cant tell you yes or no with any certainty sorry.
What i believe is possible is for LMS to do DSD over PCM.
I do know pCP will play PCM over HDMI.

So in theory it should work well enough.

streampunk
2018-06-08, 03:03
Hi everybody,
I'm trying to integrate a basic (radio) remote control into my system for muting and volume change.
I use thd (triggerhappy) and the LMS CLI commands.
Basically, the triggerhappy conf file has this structure:


KEY_NAME 1 command_to_be_executed

For example, to mute/unmute the player manually from the command line, I can use either

echo -e "MyPlayerName mixer muting\nexit\n" | nc localhost 9090
or, in a telnet session

MyPlayerName mixer muting

However, if I put

echo -e "MyPlayerName mixer muting\nexit\n" | nc localhost 9090
into my triggerhappy conf file, the command isn't executed.

As a workaround, I put the commands into individual script files that are called from my triggerhappy conf file,
for example

#!/bin/bash
telnet localhost 9090 <<EOF
MyPlayerName mixer muting
exit
EOF
called from

KEY_MUTE 1 /etc/triggerhappy/triggers.d/mute.sh

This works nicely, however, I feel that this is not the elegant way...
Could sb point me to the way to integrate the commands directly into the triggerhappy conf? I feel that it might have to do with user rights, but my Linux skills are still insufficient. The triggerhappy conf says:

# The Triggerhappy daemon (thd) drops its root privileges after
# startup and becomes "nobody". If you want it to retain its root
# status (e.g. to run commands only accessible to the system user),
# uncomment the following line or specifiy the user option yourself:
#

Thanks for your help!
Martin

ralphy
2018-06-08, 04:32
I use a script with parameters.


# triggerhappy.conf
# values for key events are 1 (pressed), 0 (released) or 2 (held)
# /dev/input/by-id/usb-Burr-Brown_from_TI_USB_Audio_DAC-event-if02
KEY_MIN_INTERESTING 1 /mnt/mmcblk0p2/tce/lmscmd pause
KEY_VOLUMEUP 1 /mnt/mmcblk0p2/tce/lmscmd "mixer volume +1.0"
KEY_VOLUMEDOWN 1 /mnt/mmcblk0p2/tce/lmscmd "mixer volume -1.0"



#!/bin/bash
# lmscmd

# Player MAC address
SSMAC=01:02:03:04:05:06

# Replace : with %3A in MAC address
MAC=`echo -n ${SSMAC} | tr '[:upper:]' '[:lower:]' | sed 's/:/%3A/g'`

# Exit if empty
if [ -z ${MAC} ]; then
echo "MAC Empty"
exit
fi

SSHOST=localhost
SSTCP="/dev/tcp/$SSHOST/9090"

exec 8<>${SSTCP}
echo -e "$MAC $1\r\nexit\r\n" >&8
RESPONSE=`cat <&8`

streampunk
2018-06-08, 05:56
Thanks Ralphy, sounds good, and I'll try to get my first script-with-variables-handed-over running this evening.
Regards
Martin

paul-
2018-06-08, 07:47
For what it is worth, the jsonrpc interface is quite a bit faster.

For example, this is to increase the mixer volume by 1.



busybox wget -q -O- --post-data='{"id":1,"method":"slim.request","params": [ "PLAYERNAME", [ "mixer", "volume", "+1" ] ]}' --header 'Content-Type: application/json'
http://192.168.0.10:9000/jsonrpc.js


Note, that you don't need to figure out the MAC address anymore, you can just use the name of the player. Above noted as PLAYERNAME. The format of the line is critical and all of the quote marks and brackets/braces are required. In the next release of pCP, we have converted most of our builtin commands to use this interface.

streampunk
2018-06-08, 08:03
Note, that you don't need to figure out the MAC address anymore, you can just use the name of the player. Above noted as PLAYERNAME.
This sounds interesting, especially because I noticed during my test with triggerhappy that the MAC address of the player I tried to control changed after every reboot - I still haven‘t figured out why. Anyway, in my workaround with bash scripts for every command I don‘t need the MAC address either, they work wit the player name.
I should add that the player I‘m talking about is the only one that doesn‘t run in a PCP environment, but on a Raspi 3 with Stretch that also hosts the LMS (due to the fact that I need to run some other software on this machine, too).
But to come back to the triggerhappy conf: Do I get you right that it‘s not possible to put LMS CLI commands directly into the thd conf, even if they work on command line level?
Best regards
Martin

Greg Erskine
2018-06-08, 16:31
When using pCP, there is the "pCP CLI". Type "pcp" at the prompt.


$ pcp
================================================== =======================================
Basic piCorePlayer CLI
-----------------------------------------------------------------------------------------
Squeezelite/LMS
---------------
- pcp play : play current track in playlist
- pcp stop : stop current track
- pcp pause : pause current track
- pcp up : volume up
- pcp down : volume down
- pcp next : next track
- pcp prev : previous track
- pcp rand : generate random track playlist
- pcp power [on|off] : software power on or off
- pcp volume [0-100] : set volume between 0 to 100
- pcp rescan : look for new and changed media files in connected LMS library
- pcp wipecache : clear connected LMS library and rescan
- pcp mode : display Squeezelite's current mode
-----------------------------------------------------------------------------------------
piCore
------
- pcp bu : (b)ack(u)p
- pcp sd : (s)hut(d)own
- pcp bs : (b)ackup then (s)hutdown
- pcp rb : (r)e(b)oot
- pcp br : (b)ackup then (r)eboot
-----------------------------------------------------------------------------------------
piCorePlayer
------------
- pcp d0 : debug off
- pcp d1 : debug on
-----------------------------------------------------------------------------------------


There is more info in the pCP Online Help.

regards
Greg

hartzell
2018-06-08, 20:43
I've been chasing a problem over in the Radio Paradise plugin thread, where JiveLite isn't displaying Radio Paradise cover art even though iPeng and the LMS web ui are.

The thread is here: https://forums.slimdevices.com/showthread.php?108189-Announce-Radio-Paradise-Lossless-Streaming-(Plugin-v2)&p=915113&viewfull=1#post915113

I believe that the problem is that the Pi's (either the one running my LMS service or the one with the LCD running JiveLite have an old set of certificates and they're failing to download the images via Radio Paradise's HTTPS URL, e.g. https://img.radioparadise.com/covers/l/B00009QGDD.jpg.

I've tried replacing /usr/local/etc/pki/certs/ca-bundle.crt with a current set, which enables wget to grab the image and fixes complaints in the LMS logs (see the other thread for details) but images are still not showing up in JiveLite.

Is there a plan to update the PiCore set of certs?

Thanks!

mherger
2018-06-08, 23:01
> I believe that the problem is that the Pi's (either the one running my
> LMS service or the one with the LCD running JiveLite have an old set of
> certificates and they're failing to download the images via Radio
> Paradise's HTTPS URL, e.g.
> https://img.radioparadise.com/covers/l/B00009QGDD.jpg.

No problem here. While I don't have a Pi with display right now, I can
download that file using wget just fine on my pCP based player.

Did you try to start a new pCP image from scratch and try again?

> Is there a plan to update the PiCore set of certs?

There's no problem with them on my end. I did NOT have to do anything to
be able to download that file.

--

Michael

streampunk
2018-06-08, 23:29
When using pCP, there is the "pCP CLI". Type "pcp" at the prompt.


Thanks Greg, I'll try this as soon as I get some remotes for my PCP Raspberries.
For the stand-alone player on the Stretch system I managed to get the triggerhappy conf working with Paul's hint to the JSON way, simply omitting "busybox". It seems, however, that the third parameter passed over to the player can't be null, so I had to use "toggle" for the muting function (at command line level, muting is toggled when you don't define a third argument).
Next project will be to use the temperature knob of a Homematic thermostat I have in my fhem environment to regulate the volume of the player(s) ;)
Thanks again & best regards
Martin

soundcheck
2018-06-09, 02:30
Hi.

A comment to the Audiophonics Sabre 9028 DAC.

Audiophonics offers a custom standalone driver.

It's done the same way as it is done now with the Katana DAC.

They have a MCU onboard that's being controlled by the driver and that MCU controls the Sabre chip.

Audiophonics doesn't have the skills, the interest or business case to get the driver integrated into the kernel.

I actually integrated the driver into the kernel for myself and offered them a patch.
They were not interested! Fair enough.

Bottom line. Before buying a potentially quality DAC always have a look at the driver situation!

If you're happy with the Sabre HW mode, that DAC obviously works with this or that standard I2S driver.

Allo shows how it's done professionally. The Katana driver is fully integrated and available in the RPI kernel
since weeks. Long before the DAC is even launched.

Enjoy.

mcduman
2018-06-09, 07:04
I am using the new Rpi 3b+ with pCP 3.5.0. I cannot get the built-in wifi to connect. This appears to be a known issue and is discussed in raspbian forums. One solution appears to be entering your country code in wpa_supplicant.conf. Has any body found a solution for the wifi issue with the new boards?

paul-
2018-06-09, 08:21
I am using the new Rpi 3b+ with pCP 3.5.0. I cannot get the built-in wifi to connect. This appears to be a known issue and is discussed in raspbian forums. One solution appears to be entering your country code in wpa_supplicant.conf. Has any body found a solution for the wifi issue with the new boards?

Wifi works fine without country code setting in both 2.4G and 5G connections (I'm using a 3B+ on wifi right now). The country code requirement in raspbian is a software requirement only. There is no hardware requirement for that.

So go back to the normal wifi doesn't work type issues. http://picoreplayer.sourceforge.net/faq_wifi_does_not_work.shtml

What do you get when you push the diagnostics button on the wifi page? Can you even scan?

mcduman
2018-06-09, 08:44
Wifi works fine without country code setting in both 2.4G and 5G connections (I'm using a 3B+ on wifi right now). The country code requirement in raspbian is a software requirement only. There is no hardware requirement for that.

So go back to the normal wifi doesn't work type issues. http://picoreplayer.sourceforge.net/faq_wifi_does_not_work.shtml

What do you get when you push the diagnostics button on the wifi page? Can you even scan?

When I scan I get no wifi devices found error. With my old non plus rpi3 I don't have the same problem

paul-
2018-06-09, 08:55
When I scan I get no wifi devices found error. With my old non plus rpi3 I don't have the same problem

I would guess the channel your AP is using is not compatible with the 3B+. I've seen a lot of channels that don't work

foxsam
2018-06-09, 20:02
I use a script with parameters.


For what it is worth, the jsonrpc interface is quite a bit faster.

busybox wget -q -O- --post-data='{"id":1,"method":"slim.request","params": [ "PLAYERNAME", [ "mixer", "volume", "+1" ] ]}' --header 'Content-Type: application/json'
http://192.168.0.10:9000/jsonrpc.js



Is there a way to use the jsonrpc with a script like ralphy's way? So that you can call a script with parameters like "lmsjson.sh --player PLAYERNAME --command mixer volume 75"

Greg Erskine
2018-06-09, 23:05
hi foxsam,

What's wrong with:

$ pcp volume 75

In pCP3.5.0 it uses netcat, in the next version, jsonrpc.js and you don't need to worry about it! :D

Assuming you are running pCP and the command is on the RPi in question.

regards
Greg

foxsam
2018-06-10, 06:05
hi foxsam,

What's wrong with:

$ pcp volume 75

Nothing.
I want to be able to use other commands, i.e. for playlists, favorites or syncing players, but I tried to keep it simple first. For now I just used $1, $2 etc. and put the wget into its own one line script but I think there is a better way. It is untested and I'm sure there are problems that I won't realize until I get stuck...

Thanks for everything.

Greg Erskine
2018-06-10, 06:31
If you want to go one level lower, have a look at pcp-lms-functions for what we do in pCP.

As previously mentioned, pcp3.5.0 uses netcat (nc), but Paul has converted it to use jsonrpc.js for the next version of pCP.

regards
Greg

hartzell
2018-06-10, 18:23
[...]
No problem here. While I don't have a Pi with display right now, I can
download that file using wget just fine on my pCP based player.
[...]
Michael

I was hoping to avoid installing from scratch and setting everything up again. I went through the PCP interface and had it update LMS (I was behind) and now the images are displaying perfectly.

Thanks for the suggestion.

g.

foxsam
2018-06-10, 19:54
I recently got the google AIY voice V1 (https://aiyprojects.withgoogle.com/voice-v1/) kit. I am wondering since it has a speaker and an amp how can I use it with pcp to play from my lms? I tried using the hifiberry dac zero but it doesnt seem compatible. Does anyone have any experience or know what where I should check?

It is very simple just add


dtoverlay=googlevoicehat-soundcard

between these lines


#---Begin-Custom-(Do not alter Begin or End Tags)-----

#---End-Custom----------------------------------------


and choose
sysdefault:CARD=sndrpigooglevoi as the output device. For more info see this post (https://www.raspberrypi.org/forums/viewtopic.php?p=1323601&sid=a6bff2b8e5ef8a9b314e416cac73ab85#p1323601)

==> Feature request: add this to the dropdown menu as an available dac

paul-
2018-06-11, 05:29
Sure thing foxsam.

mcduman
2018-06-11, 20:36
I would guess the channel your AP is using is not compatible with the 3B+. I've seen a lot of channels that don't work

i must have run tce-update at some point and installed new wifi firmware. i flashed again and wifi works as expected

paul-
2018-06-12, 05:47
Yes, do not run tce-update.... I’ve tried to submit extension upgrades, but they just never seem to want to update. A lot of extensions we have changed the name over time, so there is no match at the tinycore repo......but not everything.

wpa_supplicant is also updated, the version with pCP is patched for broadpown, and othe wpa security issues.

steklo
2018-06-12, 06:16
Hello,

maybe there is some experienced pCP user around here who might help me to find the right upsampling settings in pCP (RPi) to have LMS (NAS) downsample all highres files beyond 96/24 – which is the maximum my DAC can process – without touching the DAC supported resolutions ≤96 kHz? I started a specific thread here:
https://forums.slimdevices.com/showthread.php?109106-downsampling-files-beyond-96-24-on-the-fly
As this question is also very pCP related I thought it might make sense to ask for support here too. Please contribute your answers in the existing thread I linked above.

Thanks,
Stefan

mcduman
2018-06-12, 12:39
Yes, do not run tce-update.... I’ve tried to submit extension upgrades, but they just never seem to want to update. A lot of extensions we have changed the name over time, so there is no match at the tinycore repo......but not everything.

wpa_supplicant is also updated, the version with pCP is patched for broadpown, and othe wpa security issues.

Hi Paul,

You have definitely hit a nerve with the tinycore repo.

It should be said that I have replaced the slimserver sox and flac binaries (from when the pyramids were built -hi @mherger-) with those from the tinycore repo (still ancient but at least from when electricity was invented) with fantastic results.

Hoping to see more customized pcp-* extensions in the next release...

bpa
2018-06-13, 02:03
It should be said that I have replaced the slimserver sox and flac binaries (from when the pyramids were built -hi @mherger-) with those from the tinycore repo (still ancient but at least from when electricity was invented) with fantastic results.
There were patches to flac for slimserver - these may not be in the version of flac from another repo.

ralphy
2018-06-13, 04:21
Hello,

maybe there is some experienced pCP user around here who might help me to find the right upsampling settings in pCP (RPi) to have LMS (NAS) downsample all highres files beyond 96/24 – which is the maximum my DAC can process – without touching the DAC supported resolutions ≤96 kHz? I started a specific thread here:
https://forums.slimdevices.com/showthread.php?109106-downsampling-files-beyond-96-24-on-the-fly
As this question is also very pCP related I thought it might make sense to ask for support here too. Please contribute your answers in the existing thread I linked above.

Thanks,
Stefan

Setting the Max sample rate to 96000 on the squeezelite settings page will cause LMS to downsample on-the-fly all content with a higher sample rate.

25171

This is equivalent to adding -r 96000 to the squeezelite command line.

Make sure not to have any values in the Upsample setting as this causes squeezelite to do resampling, not LMS.

steklo
2018-06-13, 05:04
Setting the Max sample rate to 96000 on the squeezelite settings page will cause LMS to downsample on-the-fly all content with a higher sample rate.

25171

This is equivalent to adding -r 96000 to the squeezelite command line.

Make sure not to have any values in the Upsample setting as this causes squeezelite to do resampling, not LMS.

Hi Ralphy,

many thanks! That is what I tried first and trying to play a 192/24 file resulted in "unsupported sample rate" error. At that point I thought that was because I left the upsample setting empty.

Meanwhile I have tried this:

max sample rate: "44100,48000,88200,96000"
upsample setting: "E"

This setting works after I cleared the "Restrict codec setting" which was filled with "pcm,alac,mp3" before in order to have LMS send out PCM. Probably your suggestion would have worked too if I had cleared that setting before.
Is my setting in effect any different from your suggested setting? Or is my setting now resampling higher sample rate files on pCP client instead of LMS server? Resampling on LMS server would of course be preferable.

Best regards
Stefan

nickdanp
2018-06-13, 09:16
Hi,
Apologies if this is a dumb question, but I cannot get Bluetooth to work on two RPis - a Model 3 and a Model 3B+ - which makes me think I'm missing something fundamental.

Basically I disable built-in Wi-Fi and enable built-in Bluetooth. No problem. Reboot when done.

But when I go to enable Bluetooth Audio and save/reboot I get Squeezelite not running and when I click Card Control I see BT Controller is Off, Connect Daemon is not running and BT Device is Not Connected. Additionally Show Logs is greyed out.

I've tried wiping the card and starting from scratch with PiCorePlayer 3.5.0 (non audio), but the same problem persists.

It's as if the built-in Bluetooth isn't being switched on or detected - have I missed a fundamental step in the process or is it something deeper?

Many thanks for any advice you can offer me.

liffy99
2018-06-13, 09:19
System:
FLAC library / Qobuz streaming on IMac running LMS v7.9
Raspbery Pi3 / Allo Digione running Picoreplayer v3.5 (with Edimax wifi dongle)
Ipad used as controller via Squeezepad

Every day I have no problems playing music with this set up.
Everyday, at some point in late afternoon / evening (I cannot pin the time down) the system loses its link with the server.
The Imac is internet connected. (Its ethernet cabled to the router with its own internal Wifi off).
I can access the IP addresses of Picoreplayer, the router, and other equipment.
I cannot access the IP address of the Imac (eg 192.18.1.111:9000 for LMS
The RPi shows its power light, the Wifi indicator continues to flash.
The only solution seems to be a repeated hard reboot of the Pi.

I have tried using (and not) wake on LAN
I cannot see any sleep settings that would interfere (ie turn the Imac off)
It makes no sense with the system working fine, and then not, with no changes being made anywhere.

Any clues where to look ?

mcduman
2018-06-13, 09:31
There were patches to flac for slimserver - these may not be in the version of flac from another repo.

Good reading from klaus re: slimserver sox binaries vs generic ones from your favourite distro vs self-compiled ones.

https://soundcheck-audio.blogspot.com/2018/04/sox-on-steroids.html

bpa
2018-06-13, 09:47
Good reading from klaus re: slimserver sox binaries vs generic ones from your favourite distro vs self-compiled ones.

Without the flac patches some functionality will be lost - IIRC transcoding stream will stop after 2hrs30mins.

paul-
2018-06-13, 13:43
Nickdanp,

You are missing pressing the install button on on the card control page

paul-
2018-06-13, 13:49
Liffy99,

Which Edimax device are you using? Some of them are a bit finicky. You mention not being able to connect to the lms web interface. What device and how are you trying to connect.

Paul

nickdanp
2018-06-14, 00:39
Nickdanp,

You are missing pressing the install button on on the card control page

Hi Paul,
D'oh - many thanks. As you can probably guess, I never thought to switch the Beta tab on! All set up and paired, although no audio output (but definitely paired and everything running as it should). However, I'm sure I can troubleshoot that on my own.

And thank you for PiCorePlayer - a brilliant and really user-friendly tool.

foxsam
2018-06-14, 10:47
For what it is worth, the jsonrpc interface is quite a bit faster.
...
In the next release of pCP, we have converted most of our builtin commands to use this interface.

When I used the jsonrpc PLAYERNAME power off command the player keeps playing but in the web-interface http://LMS-IP:9000 the icon does change to gray to indicate that it is powered off. Am I doing something wrong?

paul-
2018-06-14, 11:19
I have no idea what or how you are doing it foxsam. This is really off topic for this thread. I would make a new thread for yourself, explaining in detail what you are doing.

paul-
2018-06-14, 11:21
Hi Paul,
D'oh - many thanks. As you can probably guess, I never thought to switch the Beta tab on! All set up and paired, although no audio output (but definitely paired and everything running as it should). However, I'm sure I can troubleshoot that on my own.

And thank you for PiCorePlayer - a brilliant and really user-friendly tool.

I need to fix the beta mode thing.....your not the first person hung up on that. What I find on bluetooth, is that sometimes you need to power both devices down.....Start the pCP device, then start the speaker once the system begins to boot. Then check for the other obvious things like volume control.

phildefer
2018-06-14, 13:55
hi all,

For the developper of piCorePlayer :
thirst thank you for this very great software

If i remenber piCorePlayer doesn't work with special characters in WIFI SSID and Password (FAQ number 4)
here is my little Patch to deal with SSID or Password with "&" character

file : pcp-functions

pcp_save_to_config() {
SSID=`echo $SSID | sed 's/[_&$]/\\\&/g'`
PASSWORD=`echo $PASSWORD | sed 's/[_&$]/\\\&/g'`

sudo sed -i "s/\(WIFI=\).*/\1\"$WIFI\"/" $CONFIGCFG
sudo sed -i "s/\(SSID=\).*/\1\"$SSID\"/" $CONFIGCFG
sudo sed -i "s/\(PASSWORD=\).*/\1\"$PASSWORD\"/" $CONFIGCFG
sudo sed -i "s/\(ENCRYPTION=\).*/\1\"$ENCRYPTION\"/" $CONFIGCFG
sudo sed -i "s/\(DEBUG=\).*/\1\"$DEBUG\"/" $CONFIGCFG
....


Could you check, and if is Ok for you, could you add this little code in your next release

nickdanp
2018-06-15, 08:18
I need to fix the beta mode thing.....your not the first person hung up on that. What I find on bluetooth, is that sometimes you need to power both devices down.....Start the pCP device, then start the speaker once the system begins to boot. Then check for the other obvious things like volume control.

Thanks for the tip - I couldn't get the first speaker to work (Aether Cone - apparently has issues with Linux, but not a deal-breaker as I use it as an AirPlay speaker anyway), but the second (Azatom DAB radio with Bluetooth) worked a treat following your advice about powering both down and restarting.

paul-
2018-06-15, 11:32
hi all,

here is my little Patch to deal with SSID or Password with "&" character

Could you check, and if is Ok for you, could you add this little code in your next release

We have already addressed it, you will be able to use almost any character you want.

phildefer
2018-06-15, 12:23
We have already addressed it, you will be able to use almost any character you want.

in the next release or already in the 3.5.0 ?

paul-
2018-06-15, 14:42
next release

Greg Erskine
2018-06-15, 15:30
hi all,

For the developper of piCorePlayer :
thirst thank you for this very great software

If i remenber piCorePlayer doesn't work with special characters in WIFI SSID and Password (FAQ number 4)
here is my little Patch to deal with SSID or Password with "&" character

….

Thanks phildefer,

It's great you have having a play with the code and seeing how piCore and piCorePlayer works. :)

As briefly mentioned by Paul, we finally redid the wifi setup in the next version of pCP. Hopefully we have addressed have all the missing features.

regards
Greg

keynet
2018-06-22, 03:09
Been using PCP 3.5 for a little while, what a great project!

I have a significant collection of podcasts recorded off DTV radio streams, either stored as native MP2 or AAC-LC (default). I recently decided to compress and tag them properly with metadata, and decided to transcode with ffmpeg to AAC-HE (V2) @48k which is said to be the "sweet spot" - certainly good enough for mostly speech, and a lot lot smaller, pretty compatible nowadays being already a decade old (play on any PC-based player I have, Android phone, Ipad via VLC etc.)

There were a few bumps in the road - hence this post.

On PCP and they played at some really slow-mo rate. No distortion or other artefacts, just perhaps half-speed. Weird - not heard that before after thousands of transcodes in various formats. I have the ffmpeg libs loaded on PCP (should be OK), otherwise I think LMS transcode would have been forced.

A fairly obvious workaround is to disable native aac on the PCP GUI and let the server LMS do the transcode as it does for other players (PC Squeezeplayers, a couple of Jogglers, and a Squeezelite instance on the server) - this all works fine, after tinkering.

As there's some kind of problem with HE-AAC V2, and I noted in this thread that there was discussion on FAAD, I thought I'd pass on my various test findings, as it's not plain sailing. Initially I had problems getting LMS FAAD transcode to work for HE-AAC on my server (OpenSuse) for any player. The available LMS package doesn't include the patched FAAD2 (github.com/ralph-irving/faad2) which is essential, the stock FAAD2 was installed from Packman (V2.88) - this seems to be fairly common (e.g also Ubuntu), but despite being maintained doesn't support HE-AAC or HE-AAC V2 at least in my tests (and to be fair doesn't claim HE ability) - it plays them garbled (not slow!).

FYI I made a couple of bug reports on Ralph's FAAD2 on Github - issues I found when building and using it which may help someone. Seems that it too can be picky about some AAC codec settings. But with the planets in alignment it's all good.

I should add that the Squeezeplayers on the Joggler don't appear to like AAC-HE @ 48kHz sampling rate, transcoded by FAAD (had to downsample to 44.1 kHz as part of the transcode for them to play). Not sure if there's a workaround for this, not that it's a problem, you just need to know about it ! PCP is fine @ 48kHz sampling/AAC-HE

ralphy
2018-06-22, 05:28
We have updated the squeezelite package in the 3.5.0 repository to version 1.9.0-1105.

It includes the removal of the hardcoded 5 minute GPIO and power script power off from Jeff07971 and a fix for the libmad mp3 decoder forbidden bitrate frame memory corruption and eventual crash reported by s25a in the squeezelite thread (https://forums.slimdevices.com/showthread.php?97046-Announce-Squeezelite-a-small-headless-squeezeplay-emulator-for-linux-(alsa-only)).

The update can be installed from the web interface; Main Page Tab and then Click the Update Button. The new build will download, install and squeezelite will be restarted using the latest version.

Gildahl
2018-06-22, 05:38
I just re-imaged my pCP boxes with the 3.5 release. I had been on a rev. 2 version for the last couple years. All went well but I can't seem to get the shairport feature to turn on. It just shows a red checkmark. Shairport worked fine prior. I've tried disabling and re-enabling the feature in Tweaks (with reboots and all), but no go. This happens on both of my boxes (one is a RPi2 with HiFiBerry DAC+ running LMS, and the other is a RPi B Plus with HiFiBerry DAC+). Any clues on what I should try to get this working?

Jeff07971
2018-06-22, 07:42
We have updated the squeezelite package in the 3.5.0 repository to version 1.9.0-1105.

It includes the removal of the hardcoded 5 minute GPIO and power script power off from Jeff07971 and a fix for the libmad mp3 decoder forbidden bitrate frame memory corruption and eventual crash reported by s25a in the squeezelite thread (https://forums.slimdevices.com/showthread.php?97046-Announce-Squeezelite-a-small-headless-squeezeplay-emulator-for-linux-(alsa-only)).

The update can be installed from the web interface; Main Page Tab and then Click the Update Button. The new build will download, install and squeezelite will be restarted using the latest version.

Thanks Ralphy,

Will update a little later, listening to music on 1104 ATM :):)

Moved to 1105, All good, thanks again

Jeff

rores
2018-06-23, 04:15
Hello, im not able to add a second nfs network share in the LMS section "Setup Network Disk Mount".
One nfs share is working fine, but when i try to add an second one i get this message:
Write to mount
[ERROR] Web Page Error, No MountType Submitted
after pressing the button "Set Net Mount".
Ist a Fresh installation, the first mount i created yesterday whitout Problems.
Thx for you help

paul-
2018-06-23, 06:04
rores,

Make sure you don't have spaces in the mount path. Spaces in the remote share name is ok. Otherwise, would you mind taking a screen shot of you screen, just before you press the submit button.

I have tested setups with 4-5 mounts, so there has to be something odd with your setup.

Paul

rores
2018-06-23, 09:24
Hi Paul, i just try it again in chrome browser instead of IE and now ist ok :cool:
Thx for this great software and for your help

paul-
2018-06-23, 10:48
Hi Paul, i just try it again in chrome browser instead of IE and now ist ok :cool:
Thx for this great software and for your help

That helps alot. I've recently found some javascript code that runs on everything but IE. I'll recheck before the next release.

garym
2018-06-24, 07:27
Case to hold rPi 3B+ and hifiberry DAC+ Pro

I'm finally putting one of these together to serve as both LMS Server (music on attached USB drive) and a Player via analog output. I've searched several threads but can't find any recommendations on a CASE to hold these. Nothing fancy needed (not using a screen). Any suggestions? Thanks.

paul-
2018-06-24, 07:56
I just re-imaged my pCP boxes with the 3.5 release. I had been on a rev. 2 version for the last couple years. All went well but I can't seem to get the shairport feature to turn on. It just shows a red checkmark. Shairport worked fine prior. I've tried disabling and re-enabling the feature in Tweaks (with reboots and all), but no go. This happens on both of my boxes (one is a RPi2 with HiFiBerry DAC+ running LMS, and the other is a RPi B Plus with HiFiBerry DAC+). Any clues on what I should try to get this working?

Sorry I missed this.....shairport sync can be problematic.....although i thought we resolved alot of issues with 3.5.0. Make sure the output setting is correct on the shairport setup....(It now has it's own output, vs the output setting on the squeezelite page.

Also,

Are you aware of this plugin https://forums.slimdevices.com/showthread.php?106289-announce-ShairTunes2W-Airtunes-on-LMS-(forked-version-with-Windows-support)

It works much better with LMS.

garym
2018-06-24, 08:11
I know one can simply power-off the rPi running picoreplayer. But I'll be using it as an LMS Server with attached USB drive holding files. Typically one has to "eject" the USB drive before removing power. Best practices on how to handle this (or is it even needed)? Thanks.

kidstypike
2018-06-24, 08:46
Case to hold rPi 3B+ and hifiberry DAC+ Pro

I'm finally putting one of these together to serve as both LMS Server (music on attached USB drive) and a Player via analog output. I've searched several threads but can't find any recommendations on a CASE to hold these. Nothing fancy needed (not using a screen). Any suggestions? Thanks.



Hi Gary,

If you're using a HiFiBerry DAC, have you looked at their cases? The all steel one is nice, it's weighty, and it stays put!

There may be a reseller near you.

https://chicagodist.com/collections/hifiberry/products/steel-case-for-hifiberry-dac-black-cover

garym
2018-06-24, 09:30
Hi Gary,

If you're using a HiFiBerry DAC, have you looked at their cases? The all steel one is nice, it's weighty, and it stays put!

There may be a reseller near you.

https://chicagodist.com/collections/hifiberry/products/steel-case-for-hifiberry-dac-black-cover

thanks. looks like that would fit the need perfectly.

paul-
2018-06-24, 09:35
If you are using the pCP device as the LMS server, it is best to do a shutdown or halt. The only reason it should be done, is that LMS updates it cache files.

There is a shutdown button on the web interface for pcp.... This can also be done from a shell with the command "pcp sd"

You could connect a button on GPIO to do this too.

Jeff07971
2018-06-24, 09:41
You could connect a button on GPIO to do this too.

Out of interest is there a thread on how to do this ?

Hopefilly not as complex as the Audiophonics way

Jeff

paul-
2018-06-24, 10:03
Take a look in the home directory, there should be a script called

pcp-powerbutton.sh

Connect a button to any GPIO pin, but GPIO 17 is default
(Pardon the crude sketch)
25223

Then put this command on the tweaks page. Full usage of the command is in the script.

25224

Jeff07971
2018-06-24, 10:16
Hi Paul-

Thanks for that !


(Pardon the crude sketch) I know Doc you did'nt have time to paint or scale it :) (Back To The Future 3)

Jeff

paul-
2018-06-24, 10:46
Was the script on your system? I just realized that the input --low option didn't work for a push button. It was originally setup for the audiophonics board. Using inputs as low is much safer......less chance of connecting voltage to the wrong pin.

So here is the fixed script.



#!/bin/sh
#
# piCorePlayer Power Button Script - Used to shutdown pCP with a GPIO input.
#
# Version 1.1 2018-06-24
# Bug fix for --low
#
#
# Defaults are for the Audiophonics power button
DEBUG=0
IN_LOW=0
PIN_IN=17
PIN_OUT=22
PUPDOWN="off"

PATH=/bin:/usr/bin:/usr/local/bin

usage() {
echo " usage: $0 [-i] [-o] [--low] [--help] [--debug]"
echo " -i GPIO input pin to shutdown pCP"
echo " -o GPIO output pin for successful pCP boot"
echo " --low Input is active low (and set pull up resistor)"
echo " --high Input is active high (and set pull down resistor)"
echo " --debug Script run as normal, but will not shutdown pCP"
echo " --help script usage"
echo ""
echo " Note: pin numbers are in BCM notation"
echo ""
exit 1
}

validate_pin(){
VAL=$(echo $1 | grep -o '[[:digit:]]*')

if [ "$VAL" != "" ]; then
if [ $VAL -le 31 ]; then
return 0
fi
fi
return 1
}

O=$(/usr/bin/getopt -al help,low,high,debug -- i:o:h "$@") || exit 1
eval set -- "$O"

[ "$1" = "--" ] && echo "No command line settings, Using defaults"; echo ""

while true; do
case "$1" in
-i) PIN_IN=$2; shift;;
-o) PIN_OUT=$2; shift;;
--debug) DEBUG=1;;
--low) IN_LOW=1; PUPDOWN="up";;
--high) IN_LOW=0; PUPDOWN="down";;
--help) usage;;
--) shift; break;;
-*) usage;;
*) break;;
esac
shift
done

echo "piCorePlayer Power button shutdown script starting..."

validate_pin $PIN_IN
if [ $? -ne 0 ]; then
echo "Error in Input Pin Assignment"
exit 1
fi
validate_pin $PIN_OUT
if [ $? -ne 0 ]; then
echo "Error in Output Pin Assignment"
exit 1
fi

echo "Asserting pins : "
echo -n "ShutDown : GPIO${PIN_IN}=in, "
[ ${IN_LOW} -eq 1 ] && echo "Low" || echo "High"
echo "BootOK : GPIO${PIN_OUT}=out, High"

gpio -g mode $PIN_IN in
gpio -g mode $PIN_IN $PUPDOWN
gpio -g mode $PIN_OUT out
gpio -g write $PIN_OUT 1

[ $IN_LOW -eq 0 ] && IN_CHK=1 || IN_CHK=0

while [ 1 ]; do
if [ "$(/usr/local/bin/gpio -g read ${PIN_IN})" = "$IN_CHK" ]; then
echo "piCorePlayer shutting down."
[ $DEBUG -eq 0 ] && sudo /sbin/poweroff
break
fi
/bin/sleep 1
done

exit 0

Jeff07971
2018-06-24, 11:27
Hi Paul-

Yup, Script was on all my Pcp's

Modified as per your post seems to work fine !


tc@piCorePlayer:~$ /home/tc/pcp-powerbutton.sh -i 5 -o 6 --low --debug

piCorePlayer Power button shutdown script starting...
Asserting pins :
ShutDown : GPIO5=in, Low
BootOK : GPIO6=out, High
piCorePlayer shutting down.
tc@piCorePlayer:~$ /home/tc/pcp-powerbutton.sh -i 5 -o 6 --low

piCorePlayer Power button shutdown script starting...
Asserting pins :
ShutDown : GPIO5=in, Low
BootOK : GPIO6=out, High
piCorePlayer shutting down.
tc@piCorePlayer:~$

Thanks

Jeff

garym
2018-06-25, 04:55
If you are using the pCP device as the LMS server, it is best to do a shutdown or halt. The only reason it should be done, is that LMS updates it cache files.

There is a shutdown button on the web interface for pcp.... This can also be done from a shell with the command "pcp sd"

You could connect a button on GPIO to do this too.

Thanks.

pavowren
2018-06-25, 11:34
i just came from using max2play and happy with pCP with its simplicity and built-in support for Squeezelite.
unfortunately, my 5" touch-screen is not quite right in terms of touch accuracy.
it was fine on max2play with following entries in config.txt.

hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0

visually all looks good but touch is off by almost an inch or so vertically; horizontal touch is not accurate either.
cursor appears way off where my finger is making contact with the screen.

has anyone successfully installed a touch-screen with pCP?
i'm even willing to buy a 7" display if that is required.
thanks...

Jeff07971
2018-06-25, 12:36
i just came from using max2play and happy with pCP with its simplicity and built-in support for Squeezelite.
unfortunately, my 5" touch-screen is not quite right in terms of touch accuracy.
it was fine on max2play with following entries in config.txt.

hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0

visually all looks good but touch is off by almost an inch or so vertically; horizontal touch is not accurate either.
cursor appears way off where my finger is making contact with the screen.

has anyone successfully installed a touch-screen with pCP?
i'm even willing to buy a 7" display if that is required.
thanks...

Only used the official 7" touchscreen, works perfectly
I'm sure I've seen people using other touchscreens on Pcp on this forum though

Jeff

paul-
2018-06-25, 12:37
The rpi 7" display works out of the box with pCP/jivelite

Sounds like you just need new calibration data. Quite a few have setup other screens......take a look here

https://forums.slimdevices.com/showthread.php?107366-picoreplayer-3-11-waveshare-3-5-TFT-jivelite-Raspberry-Pi-2B

pavowren
2018-06-25, 17:57
The rpi 7" display works out of the box with pCP/jivelite

Sounds like you just need new calibration data. Quite a few have setup other screens......take a look here

https://forums.slimdevices.com/showthread.php?107366-picoreplayer-3-11-waveshare-3-5-TFT-jivelite-Raspberry-Pi-2B

thank you for the link. i will read through.
but where can i get this rpi "official" 7" display? is it HDMI and powered by rpi via usb?
if it just works out-of-the-box, i am tempted of course...

Greg Erskine
2018-06-25, 18:12
Just type official" 7" display into your search engine of choice. You should get hundreds of hits.

Pick the one relevant to your location.

more info: https://www.raspberrypi.org/products/

pavowren
2018-06-26, 05:28
Just type official" 7" display into your search engine of choice. You should get hundreds of hits.

Pick the one relevant to your location.

more info: https://www.raspberrypi.org/products/

ok, will do.
read the lengthy instructions on PUGHx2, but have couple of questions regarding calibration:

1) on the Tweaks tab, jivelite autostart seems to be stuck on Yes. it will not stay set to No.
apparently, the calibration only works without jivelite running.

2) how do i identify the touchscreen in /proc/bus/input/devices?
here's what i see:
I: Bus=0003 Vendor=222a Product=0001 Version=0110
N: Name="ILITEK ILITEK-TP"
P: Phys=usb-3f980000.usb-1.1.2/input1
S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.1/0003:222A:0001.0002/input/input0
U: Uniq=V06.00.00.00
H: Handlers=mouse0 event0 js0
B: PROP=0
B: EV=1b
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: ABS=3
B: MSC=10

I: Bus=0003 Vendor=222a Product=0001 Version=0110
N: Name="ILITEK ILITEK-TP"
P: Phys=usb-3f980000.usb-1.1.2/input0
S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/0003:222A:0001.0001/input/input1
U: Uniq=V06.00.00.00
H: Handlers=mouse1 event1
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=2608000 3

3) finally, for the calibration command itself,
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0 /usr/local/bin/ts_calibrate

in my system, i only see /dev/fb0...
still trying to make my 5" touchscreen to work correctly touch-wise before
resorting to buying the 7" display. since jivelite looks just fine visually but the touch positioning is off,
i'm hoping the calibration will fix the issue...

paul-
2018-06-26, 05:34
With reference to the jivelite autostart button

https://forums.slimdevices.com/showthread.php?108852-Announce-piCorePlayer-3-5-0&p=910047&viewfull=1#post910047

pavowren
2018-06-26, 06:34
With reference to the jivelite autostart button

https://forums.slimdevices.com/showthread.php?108852-Announce-piCorePlayer-3-5-0&p=910047&viewfull=1#post910047

hotfix is failing:
[ INFO ] Internet accessible.
[ OK ] Free space: 7035443k - Required space: 15k
[ INFO ] Downloading fix.cgi.md5.txt...
[ ERROR ] Error downloading fix.cgi.md5.txt

i'm assuming this hotfix, if successful, fixes the jivelite autostart?

UPDATE:
=====
thanks... hotfix worked and jivelite autostart worked as well.
using /dev/fb0 and event1,
calibration proceeded ok and completed.
when jivelite runs now, touch offset has improved but still not quite right.
will try again...

Gildahl
2018-06-27, 04:41
Are you aware of this plugin https://forums.slimdevices.com/showthread.php?106289-announce-ShairTunes2W-Airtunes-on-LMS-(forked-version-with-Windows-support)

It works much better with LMS.

Thanks Paul. I installed this plugin and it "just worked" perfectly! Thanks for the info as I did not know about this.

Wigster
2018-06-27, 07:37
Hi,

Not sure how to start debugging this, so I thought I would start here.

Server: latest LMS 7.9.2 on Windows Server 2012R2 with a bunch of plugins.
Players: mix of PCP 3.5.0 RPi's with HiFiBerry DAC/Digi boards

Problem: sometimes (not that frequently, so this is hard to track down) when I start playing through one of the players, the sound that comes out is at the wrong speed/pitch. Usually it is slower/lower by maybe 20%. But once I have had it faster/higher.

This happens for both the analog output of the HiFiBerry DAC and the optical of the Digi+ boards. It has happened mainly (possibly only?) with Internet streams, rather than local music. I've not heard it on a Spotty-served Spotify track, but sometimes with BBC iPlayer radios or most frequently on the stream from the TOK FM radio station:

http://opml.radiotime.com/Tune.ashx?id=s25187&formats=aac,ogg,mp3,wmpro,wma,wmvoice,hls&partnerId=16&serial=5f45c99f052c0efcd52eb5525512016f

If I stop the track, clear the playlist and start again, things are fine. It seems to happen more frequently with alarms, so maybe it's related to waking the player up from a period of inactivity?

This is all that I think I know. I have no idea if it's an LMS, transcoding, Squeezelite, a PCP or even a HiFiBerry problem, but it affects multiple players so I thought I would start here.

Any suggestions for which logs would be sensible for me to collect would be great.

Thanks!

bpa
2018-06-27, 08:33
Hi,

Not sure how to start debugging this, so I thought I would start here.

Server: latest LMS 7.9.2 on Windows Server 2012R2 with a bunch of plugins.
Players: mix of PCP 3.5.0 RPi's with HiFiBerry DAC/Digi boards

Problem: sometimes (not that frequently, so this is hard to track down) when I start playing through one of the players, the sound that comes out is at the wrong speed/pitch. Usually it is slower/lower by maybe 20%. But once I have had it faster/higher.

This happens for both the analog output of the HiFiBerry DAC and the optical of the Digi+ boards. It has happened mainly (possibly only?) with Internet streams, rather than local music. I've not heard it on a Spotty-served Spotify track, but sometimes with BBC iPlayer radios or most frequently on the stream from the TOK FM radio station:

http://opml.radiotime.com/Tune.ashx?id=s25187&formats=aac,ogg,mp3,wmpro,wma,wmvoice,hls&partnerId=16&serial=5f45c99f052c0efcd52eb5525512016f

If I stop the track, clear the playlist and start again, things are fine. It seems to happen more frequently with alarms, so maybe it's related to waking the player up from a period of inactivity?

This is all that I think I know. I have no idea if it's an LMS, transcoding, Squeezelite, a PCP or even a HiFiBerry problem, but it affects multiple players so I thought I would start here.

Any suggestions for which logs would be sensible for me to collect would be great.

Thanks!

Slowed down usually means the stream is 48kHz but is being played at 44.1Khz. Often due to transcoding to PCM which are assumed to be 44.1Khz. Check how the stream is beingplayed/trasmncoded look at log after setting player.source set to INFO

All non MP3 BBC stream are 48Khz.

bencat
2018-06-29, 03:59
I have already completed one SBt replacment player using the above but with Pi HAt Digi and this worked well first time . I have now decided to construct a second . Construction and set up seemed to go well system boots but having a little number of issues . Firstly each time I turn on the set up Language Screen and then the Image Choice keeps showing and will not save my choice .

Worse when I can get it to work Squeezelite will not run . I have tried updating Squeezelite and full update but no change . I have also tried reload picore player and even swithced between standard and audio version but nothing seems to get the Squeezlite to run .

Sadly I have to admit I am not at all conversant with all the technical details of my Raspberry Pi set up but use the skill and kindness shown by the writers of this and other software to get things working . Mostly with a bit of persistence it just works but sadly not this time any suggestions .

Set Up

Raspberry Pi B+ - JustBoom Digi Hat - Official Raspbery Pi Touch screen

Jeff07971
2018-06-29, 04:58
I have already completed one SBt replacment player using the above but with Pi HAt Digi and this worked well first time . I have now decided to construct a second . Construction and set up seemed to go well system boots but having a little number of issues . Firstly each time I turn on the set up Language Screen and then the Image Choice keeps showing and will not save my choice .

Worse when I can get it to work Squeezelite will not run . I have tried updating Squeezelite and full update but no change . I have also tried reload picore player and even swithced between standard and audio version but nothing seems to get the Squeezlite to run .

Sadly I have to admit I am not at all conversant with all the technical details of my Raspberry Pi set up but use the skill and kindness shown by the writers of this and other software to get things working . Mostly with a bit of persistence it just works but sadly not this time any suggestions .

Set Up

Raspberry Pi B+ - JustBoom Digi Hat - Official Raspbery Pi Touch screen

Save the language choice by (On touchscreen) Settings > Picoreplayer > Save Settings to SD card

When you say "Pi HAt Digi" do you mean JustBoom Digi HAT ? Have you got this selected in the Pcp Web GUI ?

Jeff

bencat
2018-06-29, 05:00
Apologies for the below I took a break both to write this post and to have drink and a think . If everything is the same and the other unit works there must be something different about that unit . Yes there is the Digi Hat . The Hifi Berry Pi Hat works mounted to the case door which covers the Pi board and screws in to that no issues. However on checking I mounted the Just Boon Digi the same but the pins on the connector for the Pi baord are not fully down .

Simple mechanical answer was take the door cover off mount the Boom directly to the Pi and all is solved music comes out and sounds as good as I expected it too .

Apologies to have not done a complete mechanical check of all parts before blaming the software.




I have already completed one SBt replacment player using the above but with Pi HAt Digi and this worked well first time . I have now decided to construct a second . Construction and set up seemed to go well system boots but having a little number of issues . Firstly each time I turn on the set up Language Screen and then the Image Choice keeps showing and will not save my choice .

Worse when I can get it to work Squeezelite will not run . I have tried updating Squeezelite and full update but no change . I have also tried reload picore player and even swithced between standard and audio version but nothing seems to get the Squeezlite to run .

Sadly I have to admit I am not at all conversant with all the technical details of my Raspberry Pi set up but use the skill and kindness shown by the writers of this and other software to get things working . Mostly with a bit of persistence it just works but sadly not this time any suggestions .

Set Up

Raspberry Pi B+ - JustBoom Digi Hat - Official Raspbery Pi Touch screen

paul-
2018-06-29, 05:45
It happens Bencat, great that it is working. Thanks for following up.

digital_noodle
2018-07-01, 23:04
Greetings,

I'm stuck and haven't found a way out yet.

I have a RPI3B, it was running pCP3.20 just fine along with whatever version of LMS the pCP3.20 was installing at the time. When I saw that pCP3.5 has been released I attempted an in-situ upgrade. Following the upgrade I was not able to connect to the device via the browser, despite being able to ping it.

I downloaded a fresh image of pCP3.5 w/ AudioCore, and with that was able to access pCP from the browser. I configured my audio card (HiFiBerry Digi+), saved, rebooted, named the device, expanded the file system, restarted, downloaded and installed LMS, restarted, then installed the extra Mounting software, restarted, then configured LMS to connect to my Synology file server, selected Mount and then re-booted. After this restart I was not able to connect with the browser, but was able to see it existed via my router management app and ping the device.

I tried the same with fresh images of pCP3.22, both standard and audiocore, with the same steps as above and with results as before. I went back to a fresh image of pCP3.20 and was able to fully config the player and the LMS, and play music again. Then I tried to upgrade to 3.22, and now it's back to the same state, I can't connect via the browser, and I can't find it was any controller.

I can SSH to the device. Restarted the device via the Setup program in SSH, or just cycling the power don't solve the issue. I don't know what to do to now to troubleshoot further. Any pointers would be greatly appreciated. I'm not super linux savvy but very willing to read and figure things out. This time though I'm stuck. I'd like to get to pCP3.5, hence I'm posting in this thread, but please let me know if I should be posting elsewhere.

Thank you


dmesg
Booting Linux on physical CPU 0x0
Linux version 4.9.50-pcpAudioCore_v7 (paul@NUC-Devel) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1 SMP PREEMPT Sat Sep 16 15:47:24 EDT 2017
CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2

Man in a van
2018-07-02, 01:44
I think that the standard version of pCP is generally considered to be best for a LMS and Player combination.


Why not give that a try?


Also, this note from the first post on this thread may (or maybe not) have some bearing.


Notes:
Kernel's in the 4.14.y and newer have increased the default required version of SMB and NFS mounts. 3.0 is now required by default, if your NAS does not support this, you will need to explicitly set vers=2.0 (or maybe even vers=1.0) on the mount options. See the information on network mount section of the LMS page.



ronnie

M-H
2018-07-02, 01:55
I think that the standard version of pCP is generally considered to be best for a LMS and Player combination.


Indeed, avoid the problems with the real time kernel, and use the regular PCP first.
Upgrade to the Audio Enthusiast version later when you know what you can expect, and are willing to battle those hurdles.
I bet you , the regular version does sound perfect.

Regards MH

ralphy
2018-07-03, 07:35
i just came from using max2play and happy with pCP with its simplicity and built-in support for Squeezelite.
unfortunately, my 5" touch-screen is not quite right in terms of touch accuracy.
it was fine on max2play with following entries in config.txt.

hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0

visually all looks good but touch is off by almost an inch or so vertically; horizontal touch is not accurate either.
cursor appears way off where my finger is making contact with the screen.

has anyone successfully installed a touch-screen with pCP?
i'm even willing to buy a 7" display if that is required.
thanks...

Please update the libts package using the instructions in this post (https://forums.slimdevices.com/showthread.php?108852-Announce-piCorePlayer-3-5-0&p=913510&viewfull=1#post913510) and reboot.

Then update ts.conf using the contents from this post (https://forums.slimdevices.com/showthread.php?108852-Announce-piCorePlayer-3-5-0&p=913574&viewfull=1#post913574).

Make sure you have usr/local/etc/ts.conf in /opt/.filetool.lst, jivelite autostart is disabled in tweaks, backup pcp config and reboot.

Then calibrate the screen, enable jiveliete autostart, backup pcp config and reboot.

If jivelite still doesn't respond to touch inputs as expected then we'll need to investigate further.

ajuster62
2018-07-04, 11:38
I have had a few setup issues with pCP and would like to provide some useful feedback to the proper place.

1. Where should I provide feedback on the web front end, mainly in terms of potentially confusing phrasing?
2. Where should I provide feedback on issues with wifi configuration, specifically difficulty with persisting configuration changes?

Some background. I've been using pCP for about a month and am impressed. For the last two years I've been using max2play (m2p) and have been generally satisfied. Currently, I've got three pCP streamers working alongside a few m2p streamers. Aside from general curiosity, my reasons for checking out pCP were that my m2p streamers were problematic along two dimensions.
1. MicroSD card corruption. I was having to rebuild the odd SD card when a streamer wouldn't boot or connect to the network.
2. The m2p streamers seemed to choke on very high bit rate lossless files.

The audio optimized version of pCP3.5.0 seems to address both of the above shortcomings.

I'd like to find ways to be constructively involved in the project.

Thanks,

Arnold

paul-
2018-07-04, 15:14
Appreciate the comments ajuster. Feel free to drop me a PM with your thoughts.

As for #2, we have completely reworked wifi for the next release.

mcduman
2018-07-05, 02:57
Appreciate the comments ajuster. Feel free to drop me a PM with your thoughts.

As for #2, we have completely reworked wifi for the next release.

i just got a second pi 3b+ and it sounds significantly better than the 3b. may be its because the additional shield on the cpu and wifi chip or the better buck converters. so looking forward to the next release. is there a set date for the next release or should i keep pressing refresh like crazy?

Greg Erskine
2018-07-05, 03:35
hi mcduman,

There is no fixed date for the next release. Hopefully it will come together easily, there have been lots of changes.

I am sure we will let you know when it is released. :D

regards
Greg

wtnh
2018-07-05, 12:56
Not sure if we are tracking successful updates (or just problematic ones), but I had no problem with this config going from 3.22 to 3.5.0:

Raspberry Pi 3B (not +)
Allo I2S isolator
Allo Boss (old version)
Audio Kernel
Official RPi touch display
LMS (yes I know - not recommended with the Audio Kernel - but seems to work great)
EDUP EP-MS1559 WiFi dongle
Local 128 GB flash drive with library mounted

I updated LMS to 7.9.0 first and then did the piCorePlayer update, then the Squeezelite extensions. All went smoothly.

The only anomaly I noticed is the new RPi firmware seems to be more sensitive to under-voltage - I got some under-voltage warnings which I had not had before - and I think someone else mentioned the same issue. Not a problem for me since I am using a custom linear adjustable supply so I can tweak it.

Thanks for a great update - I am particularly impressed with the update process; a lot of commercial software does not handle things this smoothly!

Cheers

Whit

paul-
2018-07-05, 14:13
The undervoltage conditions have not changed. What changed is that it is now reported in the kernel log. Previously it would only be shown as a lightning bolt if there was a display connected. You should take a hard look at how you are powering the system.

Thanks for the comments on the update process, we try hard to make it seamless.

wtnh
2018-07-05, 15:34
The undervoltage conditions have not changed. What changed is that it is now reported in the kernel log. Previously it would only be shown as a lightning bolt if there was a display connected. You should take a hard look at how you are powering the system.

Thanks for the comments on the update process, we try hard to make it seamless.

Yup - something is different. I never saw the lightning bolt before, but monitoring the voltage regulator during startup, I am definitely getting a momentary drop below 4.95 volts. My ps may be suffering from inadequate filtering (need more capacitance), causing the LT1803 regulator to dip below spec. I'll be be taking a closer look and modifying the supply as needed. The dip happens consistently on boot - so for some reason, the Pi is requiring more current during startup than before. During normal operation, it is fine.

Thanks

Whit

paul-
2018-07-05, 15:48
The pi boots in performance mode to speed up boot time, then after startup switches to powersave (Or whatever you have set on the tweaks page). It cuts a good 5 seconds off of boot time, but indeed does push a poor power supply (Or cable with too thin of conductors)

garym
2018-07-07, 14:04
Hi Gary,

If you're using a HiFiBerry DAC, have you looked at their cases? The all steel one is nice, it's weighty, and it stays put!

There may be a reseller near you.

https://chicagodist.com/collections/hifiberry/products/steel-case-for-hifiberry-dac-black-cover

by the way. bought this via Amazon (US). Perfect little case and easy to install.

renaud
2018-07-08, 01:44
Well, thank you for PicorePlayer, it is really wonderful.
This morning I was changing the settings to go from M2Tech HiFace USB output to a simple Ti PCM5102 DAC. And I wondered myself: is it possible to have 2 SqueezLite with different parameters running in the same time ?

Really, is it possible ?

Jeff07971
2018-07-08, 01:50
Well, thank you for PicorePlayer, it is really wonderful.
This morning I was changing the settings to go from M2Tech HiFace USB output to a simple Ti PCM5102 DAC. And I wondered myself: is it possible to have 2 SqueezLite with different parameters running in the same time ?

Really, is it possible ?

Yes, search the forum

kidstypike
2018-07-08, 01:51
by the way. bought this via Amazon (US). Perfect little case and easy to install.

Glad you like it. :)

Man in a van
2018-07-08, 02:03
Well, thank you for PicorePlayer, it is really wonderful.
This morning I was changing the settings to go from M2Tech HiFace USB output to a simple Ti PCM5102 DAC. And I wondered myself: is it possible to have 2 SqueezLite with different parameters running in the same time ?

Really, is it possible ?


Like Jeff says

http://bfy.tw/IwS7

:rolleyes::p:)

It's all this sunshine boss:( doin me ed in

ronnir

Jeff07971
2018-07-08, 04:32
like jeff says

http://bfy.tw/iws7

:rolleyes::p:)

it's all this sunshine boss:( doin me ed in

ronnir

:d

renaud
2018-07-08, 04:52
Yes, it is really easy cool to consider people with commiseration when they are trying to understand things in english language and when it is not their mother language.

I've found the way to make 2 software players in the same PiCore player, thanks a lot for the help.

Also, it is very easy to find things in this forum, and the explanations were cristal clear. Well I mean at the conditions you understand english language and you have knowledge in Linux, putty etc... Thank you again.


I hope to be not very impolite and I am sorry to disturb this huge community of english scientist whith my poor english and my very little knowledge of Linux.

Man in a van
2018-07-08, 05:27
Oh well, that's me told off and no mistake:(:o

I'm off to the naughty step (on the shady side )

Ronnie

garym
2018-07-08, 05:57
I've just set up my first PiCorePlayer. Fantastic work on the software and user GUI (donation made!). Using 3.5 and a rPi 3B+ (with built in wifi) and hifiberry DAC + Pro and attached WD 4TB USB drive. Using it as both LMS (nomysqueezebox start mode) and a player.

I'm going to be using this in a location with no internet. I thought I'd have to set up a router to create a local network so I could control LMS with iPeng from ipad or iphone. But was very pleased to see that I could use the setup for WIFI AP on the rPi and avoid the need for a router. I simply have to set my iPad to the rPi wifi AP SSID, and I can access piCorePlayer webGUI and use iPeng for controlling LMS. Works nicely--if I remember to connect the iPad to the rPi wifi ;-)

huxmut
2018-07-08, 15:18
Oh well, that's me told off and no mistake:(:o

I'm off to the naughty step (on the shady side )

Ronnie

Or You could LMGTFY google translate
:o

chris5u
2018-07-09, 16:54
Hats off to the piCorePlayer Team! Outstanding software and excellent way to continue the Squeezebox tradition! I really enjoy using LMS with piCorePlayer and Squeezelite and my other devices to play music throughout the house . . .

I’ve used SB3s and Boom for years but when one SB3 died, I had excellent results with rPi 3B with HiFiBerry DAC+ and the piCorePlayer installation. Great job! That worked so well that I decided to build another as player and server. Unfortunately, I’m having trouble with the server because after 3 -4 days it will quit playing WMA files.

For the server I’m using rPi 3B+ with HiFiBerry DAC+ with wired connection to network. I’m running piCore 3.5.0 with Squeezelite 1.8.7 and LMS 7.9.2. My library is 10,000+ files on external usb HD, with ~ 2/3 MP3s and 1/3 WMAs. I enjoy using SpiceFly’s SugarCube to create mixes with the archived fingerprints from MusicIP. I’ve loaded the FFMpeg libraries for Squeezelite to play WMAs and it works well once everything is configured. However, after several days the server won’t play WMAs any longer.

Is there something corrupting the Squeezelite installation? Anything that I can do to avoid having to reflash the micro SD card and start over each time?

I really like the piCore implementation and the small form factor of the rPi. I’d appreciate any suggestions that the community could offer.

Chris

wtnh
2018-07-15, 10:39
Does anyone know of a script which will toggle a GPIO pin when the Jivelite screen saver goes active? Alternatively, when sleep kicks in would also be useful.

I am interested in this because I want to control a LiPo battery charger and have it automatically switch to charge mode when the player is not playing.

Thanks

Whit

Jeff07971
2018-07-15, 11:31
Does anyone know of a script which will toggle a GPIO pin when the Jivelite screen saver goes active? Alternatively, when sleep kicks in would also be useful.

I am interested in this because I want to control a LiPo battery charger and have it automatically switch to charge mode when the player is not playing.

Thanks

Whit

Use the Power Control GPIO built into PCP and use the "Powersave" Plugin

Jeff

paul-
2018-07-15, 12:14
To expand on Jeff’s answer.....

It is the -G option in squeezelite. It can be set on the Squeezlite page. It will toggle based on the state of the player Power button. The powersave pluginis for LMS and will automatically turn off the player power if it is idle for a set table amount of time.

Most use this option to turn on/off an amplifier, but would work for your application.

wtnh
2018-07-15, 12:49
To expand on Jeff’s answer.....

It is the -G option in squeezelite. It can be set on the Squeezlite page. It will toggle based on the state of the player Power button. The powersave pluginis for LMS and will automatically turn off the player power if it is idle for a set table amount of time.

Most use this option to turn on/off an amplifier, but would work for your application.

Thanks - the LMS plugin in conjunction with the Squeezelite setting was the missing link for me. I'll give it a try.

Whit

DavidBulluss
2018-07-15, 19:59
My rPi3 is running pCP 3.5.0 and LMS n7.9.2, connected by LAN via router to my computer for GUI and to server hard drive by USB. I have DCHP turned off and a fixed IP address for the rPi. Have had no network issues until today when I attempted to start Squeezelite and use bluetooth connection to a bluetooth speaker. The rPi and speaker paired ok.

Two things have happened; firstly I am unable to make Squeezelite turn on, it always appears on the MAIN PAGE with the red cross. I have set TWEAKS to auto start Squeezelite when starting pCP and also tried starting it from MAIN PAGE. The following message is displayed:

"Restarting Squeezelite
[ INFO ] Stopping Squeezelite player: Squeezelite...

[ INFO ] Starting Squeezelite player: Squeezelite...

[ ERROR ] Squeezelite not running."

The second problem is that I have the fixed IP set at xxx.xxx.xxx.20 but the rPi insists on connecting to xxx.xxx.xxx.10. I have been using IP address xxx.xxx.xxx.20 since I first installed the system. There is no other device on the network using that address. I have tried setting it to xxx.xxx.xxx.21 just to check that 20 isn't in use somehow. It still insists on connecting to xxx.xxx.xxx.10. I have checked and re-checked the fixed IP address and ensured DCHP is turned off. I have restarted the router several times.

I have also reinstalled pCP 3.5.0. Any thoughts?

David :confused:

paul-
2018-07-16, 06:30
David,

When using Bluetooth, it is completely normal for squeezelite not to run. The speaker has to be paired and connected for squeezelite to run properly. The speaker connect daemon that runs will automatically restart squeezelite once a speaker connects.

Not sure about your IP problem. I don't run static addresses, If I want something to get the same address all the time, I setup static DHCP mapping in my router.

Paul

DavidBulluss
2018-07-16, 15:03
David,

When using Bluetooth, it is completely normal for squeezelite not to run. The speaker has to be paired and connected for squeezelite to run properly. The speaker connect daemon that runs will automatically restart squeezelite once a speaker connects.

Not sure about your IP problem. I don't run static addresses, If I want something to get the same address all the time, I setup static DHCP mapping in my router.

Paul

Hi Paul, thanks for that. When I had bluetooth switched on it was paired with a Bose mini-link speaker, and connected to it. Because Squeezelite wouldn't start I switched bluetooth off, but Sqlite will still not start. Needless to say, cold restart after each change. As for the fixed IP, all was working perfectly with connection to whatever IP address I specified in pCP, until I tried bluetooth. Should I clear a cache somewhere?

Cheers, David

DavidBulluss
2018-07-16, 15:41
Hi Paul, thanks for that. When I had bluetooth switched on it was paired with a Bose mini-link speaker, and connected to it. Because Squeezelite wouldn't start I switched bluetooth off, but Sqlite will still not start. Needless to say, cold restart after each change. As for the fixed IP, all was working perfectly with connection to whatever IP address I specified in pCP, until I tried bluetooth. Should I clear a cache somewhere?

Cheers, David

Further to my last post I have been checking settings etc.

First I made sure that bluetooth was off. Restart. Still no Sqlite.
Second, removed the pCP bluetooth extension that I had installed as part of setting up for bluetooth. Restart. Still no Sqlite.
Third, changed SQUEEZELITE SETTING - Output Settings from Bluetooth to Null, restart, Squeezelite now works.
Fixed IP still not working as I want, so that is not the issue for that one. 1 problem down, 1 to go!

I had thought that bluetooth may have reasonably been expected to work with Sqlite, very convenient to use a bluetooth speaker. Thanks for letting me know it won't, saved a lot of trial and error! What is the bluetooth function there for?

Cheers, David

Greg Erskine
2018-07-16, 17:31
Hi David,

I assume you are using the Static IP web page.

If you are not getting the right IP address (after a reboot) then something is setting it for you. The only thing I can think of that would do this is DHCP. What is the IP address DHCP assigns you?

So, can you show a screen shot of your Static IP page.

BTW: I am not sure if trying Bluetooth can effect Static IP settings but it is a possibility. :confused:

regards
Greg

paul-
2018-07-16, 18:39
The Bluetooth works fine with a speaker......the speaker must be paired and connected for squeezelite to run. There is a log on the Bluetooth page that might be an indicator of a problem.

DavidBulluss
2018-07-16, 19:48
So, can you show a screen shot of your Static IP page.



Hi Greg, I am continually being assigned 192.168.1.10 upon reboot, every time! Have tried setting static IP to various numbers in the range that are unused. My usual address has been 192.168.1.20 and have been using that for months, right up until I played with bluetooth settings a few days ago.

screen cap of Set Static IP page:
25314

David

kidstypike
2018-07-17, 02:07
Squeezelite runs fine on a pi/piCorePlayer with Bluetooth as audio output.

I have attached USB dongles for both wireless and bluetooth, both built-in wireless and bluetooth are switched off.

25315

25316

25317

cramcram
2018-07-18, 00:58
Trying to setup PiCorePlayer for the first time as LMS server. I'm not getting far, I can't download LMS:


[ ERROR ] There was a error downloading slimserver.tcz.

My internet connection is fine. I tried 10 hours ago and now, same result. What can I do?

cramcram
2018-07-18, 04:39
Trying to setup PiCorePlayer for the first time as LMS server. I'm not getting far, I can't download LMS:


[ ERROR ] There was a error downloading slimserver.tcz.

My internet connection is fine. I tried 10 hours ago and now, same result. What can I do?

Must have been some hiccup somewhere. It downloads now.

JulianH
2018-07-18, 06:27
Pi3B+
piCorePlayer v3.5.0
Just Boom Amp HAT
B&W passive speakers
Ethernet only connection (wifi turned off)
ALSA 10 band equaliser on

Thank you to everybody for this community. Works like a charm; picked up straightaway by LMS and have used ShairTunes2(fork) to relay as Airplay target "Kitchen".

However, I am confused by piCorePlayer Airplay capabilities. An airplay target piCorePlayer showed up straight away (and has resisted any attempts to change the name) and does not allow Airplay devices to connect. On piCorePlayer Advanced menus I have then selected to run Shairport-sync. I am unable to get Shairport to show up as running; what ever settings I use. I suspect it is all in the configuration which I have as:
Output device: hw:CARD=sndrpijustboomd
Output control: [BLANK]

Almost there if anybody was able to point me in the correct direction. Regards Julian

paul-
2018-07-18, 09:49
If you are running the Shairtunes plugin to LMS, then do not run Shairport-sync.

Shairtunes will announce the name that is set on the squeezelite tab.


Shairport-sync can be used in an environment without LMS

JulianH
2018-07-18, 11:22
Paul thank you for your reply.

Annoyingly, the PCP is still trying to announce it self directly on Airplay (not via LMS) ..... an uninvited guest to a party! And it would be nice to get rid of it and just use the LMS. How do I turn it off? Since it tells me that Shairport is not running I am confused!

I was thinking of getting another Pi for another location where indeed there is no LMS ..... question still stands. How would I get Shairport to work properly? Thank you for your patience! Regards Julian

paul-
2018-07-18, 11:56
Just uninstall shariport-sync.

For shairport-sync to work, you need to put in the appropriate mixer control. Which for the Justboom amp, is "Digital" (Without the quotes) Not sure why it's blanked out

Tex
2018-07-18, 17:38
Hi Paul,

Thanks for your help on my old drive. You were right about the network drive it started giving me the same problem.
So I went out & bought a new drive and formatted it and loaded my music files on my Windows 10 machine and it mounted fine on pCP.
But to be sure I ran dmesg and it says Volume dirty remount in Windows or some such. I was hoping you could look at the text file and see if you have some advice.

Thanks

paul-
2018-07-18, 18:08
when working with disks, you have to use the safe removal tool. In the windows task bar.

Just do what it says, put the drive back on your Windows machine and repair the disk, then be sure to remove it properly before unplugging.

Tex
2018-07-18, 18:14
Thanks for the reply Paul.
I right clicked the drive and didn't see an "eject" option so you are right I just yanked it.
I f first you don't succeed...

Thanks for all your help!

cramcram
2018-07-19, 11:53
I'm new to picoreplayer and I'm trying to update LMS to the latest nightly build. If I click on the update LMS button nothing actually happens, all I'm getting is this screen:

25326

How can I update picoreplayer to the latest nightly build? Are these instructions still valid?

http://picoreplayer.sourceforge.net/how_to_upgrade_lms.shtml

kidstypike
2018-07-19, 12:04
How can I update picoreplayer to the latest nightly build? Are these instructions still valid?

http://picoreplayer.sourceforge.net/how_to_upgrade_lms.shtml

Yes, but change 7.9.1 to 7.9.2 in line 5 >, $ sudo ./lms-update.sh --mm 7.9.1 -s -r -u

cramcram
2018-07-19, 12:16
Yes, but change 7.9.1 to 7.9.2 in line 5 >, $ sudo ./lms-update.sh --mm 7.9.1 -s -r -u

Did that, works like a charm. Thank you! It would be good to give some user-feedback in the web-interface on the LMS page such as "no udpate available" or similar...

kidstypike
2018-07-19, 12:25
Did that, works like a charm. Thank you! It would be good to give some user-feedback in the web-interface on the LMS page such as "no udpate available" or similar...

Maybe one day someone will see a need to change line 5 :(

When I click on the "LMS update" button I get feedback as in picture below. Maybe try clicking it again just out of curiosity?

25327

paul-
2018-07-19, 13:30
Maybe one day someone will see a need to change line 5 :(


Well then we would also have to change the title to the document too.....lol. As we transition to our new site, the instructions will need to change a little bit.....I'll catch it then.

cramcram
2018-07-20, 13:40
When I click on the "LMS update" button I get feedback as in picture below. Maybe try clicking it again just out of curiosity?

Nope. The feature in the web interface just doesn't work here. I'm only getting this and nothing more:

25326

Brand new install without any tinkering around. Tried Firefox and Chrome, so shouldn't be a frontend issue.

kidstypike
2018-07-20, 13:52
Nope. The feature in the web interface just doesn't work here. I'm only getting this and nothing more:

Brand new install without any tinkering around. Tried Firefox and Chrome, so shouldn't be a frontend issue.

Have you selected the "Beta" tab?

25342

cramcram
2018-07-21, 14:11
Have you selected the "Beta" tab?

25342

No, advanced tab

kidstypike
2018-07-21, 14:25
No, advanced tab

Well I'm fairly certain that if you click the "Beta" tab, and heed the fearsome warning, you'll see what I'm seeing in my screenshot :rolleyes:

Why there's a need for so many different tabs along the bottom, completely baffles me :(

paul-
2018-07-21, 16:41
Beta mode used to stand for anything that modified the contents of the card, but as we have added so much, it has become less relevant.

Greg Erskine
2018-07-21, 17:30
Well I'm fairly certain that if you click the "Beta" tab, and heed the fearsome warning, you'll see what I'm seeing in my screenshot :rolleyes:

At one stage the [Resize FS] was in [Beta] and it could destroy the SD Card, hence the warning.


Why there's a need for so many different tabs along the bottom, completely baffles me :(

We had people complain that there was too many options on the screens, when to get pCP going you need to only set 1 or 2 settings.

There is [Help] > [How-to] > "Use piCorePlayer mode setting" that tries to explain what is happening.

Thinking about it, we probably should remove the [Beta] tab.

ian_heys
2018-07-22, 00:36
I installed this yesterday. I think there was a capitalisation issue in the automatic assignment of the device name on the squeezelite settings page.

Working name in my config is:

sysdefault:CARD=IQAudIODigi

Thanks again for this great system.

jmlaniel
2018-07-27, 09:14
I am trying to mount a NFS share on my Synology NAS and all I get in the Share Name box is "Match the requested format".

The folder I am trying to mount is in "volume1/music" so I put "volume1/music" in the Share Name box. I am currently using version 3.5.0. In older version, I did not have this problem.

I tried mounting only volume1, but it does not seem possible to do on a Synology NAS.

Can anybody help me with this problem?


Thanks!

kidstypike
2018-07-27, 09:38
I am trying to mount a NFS share on my Synology NAS and all I get in the Share Name box is "Match the requested format".

The folder I am trying to mount is in "volume1/music" so I put "volume1/music" in the Share Name box. I am currently using version 3.5.0. In older version, I did not have this problem.

I tried mounting only volume1, but it does not seem possible to do on a Synology NAS.

Can anybody help me with this problem?


Thanks!

Possibly - see the Notes in the first post in this thread, and my post #6.

jmlaniel
2018-07-27, 10:29
Possibly - see the Notes in the first post in this thread, and my post #6.

This does not help. The problem seems to be with the html interface. When I input my share name "volume1/music", the interface prevent me from activating the "Set NET mount" button and gives me the "Match the requested format".

When I try the CIFS, the script does not run and I just get the picoreplayer banner at the without the script verbose below it.

kidstypike
2018-07-27, 10:42
This does not help. The problem seems to be with the html interface. When I input my share name "volume1/music", the interface prevent me from activating the "Set NET mount" button and gives me the "Match the requested format".

When I try the CIFS, the script does not run and I just get the picoreplayer banner at the without the script verbose below it.

Well the tooltip says no "/".

25361

jmlaniel
2018-07-27, 10:59
Well the tooltip says no "/".

25361

I don't see the tool tip that you are mentioning... Are you running 3.5.0?

In that case, how am I supposed to enter the full path for my shared NFS folder? Synology does not let me access volume1.

Thanks for your time!

kidstypike
2018-07-27, 11:50
I don't see the tool tip that you are mentioning... Are you running 3.5.0?

In that case, how am I supposed to enter the full path for my shared NFS folder? Synology does not let me access volume1.

Thanks for your time!

Yes, 3.5.0 on all Pi's.

I can't really help, the full path to my music folder on a WD MyCloud is George/Music/Squeezebox Music. As you can see I just enter the root folder - "George".

paul-
2018-07-27, 12:21
I installed this yesterday. I think there was a capitalisation issue in the automatic assignment of the device name on the squeezelite settings page.

Working name in my config is:

sysdefault:CARD=IQAudIODigi

Thanks again for this great system.

Thanks for reporting Ian, this would contradict the IQaudIO website. Would you mind validating this with a screen shot of you squeezelite page. Be sure to expand the "more>" to show the available outputs.

paul-
2018-07-27, 12:27
I don't see the tool tip that you are mentioning... Are you running 3.5.0?

In that case, how am I supposed to enter the full path for my shared NFS folder? Synology does not let me access volume1.

Thanks for your time!

What version Synoligy Software are you running, I'll check my setup tonight.

jmlaniel
2018-07-27, 15:19
What version Synoligy Software are you running, I'll check my setup tonight.

I run DSM 6.2-23739. I am able to mount the partition manually with the following command:

sudo mount -v -t nfs -o addr=NAS_IP,nolock, NAS_IP:/volume1/music /mnt/NAS

But as you can see, I need the volume1/music for mounting. The script generated by the html interface gives me instead:

mount -v -t nfs -o addr=NAS_IP,nolock,uid=1001,gid=50,vers=2.0 NAS_IP:"music" /mnt/MezonNAS

This command is not working.

The BFA share path given by DSM is /volume1/music.

Any help is really appreciated!

paul-
2018-07-27, 16:27
The uid=,gid stuff is for CIFS. Those are not valid NFS strings. Its also nice that CIFS supports vers=3.0, but nfs is only vers=3 (Cant use the .0)

There is a little more information if you expand the more>

The attached mount command works for my Synology DSM 6.2-23739 The Share name was /volume1/Media

25363

jmlaniel
2018-07-27, 19:58
The uid=,gid stuff is for CIFS. Those are not valid NFS strings. Its also nice that CIFS supports vers=3.0, but nfs is only vers=3 (Cant use the .0)

There is a little more information if you expand the more>

The attached mount command works for my Synology DSM 6.2-23739 The Share name was /volume1/Media

25363

This is really stupid but I figured what was the problem : I was using Safari on my Mac Mini and the error concerning the requested format only appears in that browser. I changed to Chrome and everything was fine. Again, many thanks for your time and I am really glad that it's now working (although I spent a lot of time on something really stupid).

paul-
2018-07-27, 20:01
It sure would be nice if all browsers used the same standards. Glad it's working.

merlinus
2018-07-28, 15:13
Just tried an insitu upgrade. All files downloaded correctly, but then I got an error: Error downloading boot files.

What can I do? Thanks!

Correction: I am currently running version 3.20

paul-
2018-07-28, 16:01
Just tried an insitu upgrade. All files downloaded correctly, but then I got an error: Error downloading boot files.

What can I do? Thanks!

Correction: I am currently running version 3.20

You can try to do incremental updates 3.20->3.21->3.22. But it would probably be better just download a new image.

Stoker
2018-07-29, 09:04
You can try to do incremental updates 3.20->3.21->3.22. But it would probably be better just download a new image.

I had a similar issue when trying to update from 3.22 to 4.0.0. I can confirm that, for me, updating from 3.22 to 3.5 and then updating from 3.5 to 4.0.0 worked with no issues.
--Ian

DavidBulluss
2018-08-01, 19:35
I updated my pi3 pCP v3.5.0 to v4.0.0 a couple of days ago and have been having problems since then. Unable to find the pi3 on the network, didn't show up in DHCP list of router. Eventually cleaned the SD card and started again with a downloaded image of 4.0.0. New install, then new install of LMS. Reinstalled all plugins, mounted the USB hard drive. Scanned, and all was up and running. Then suddenly no tracks would play. Rescan, and it removes all the titles! It seems the hard drive was now unmounted. Remounted it, scanned and all good. Then I installed last nights LMS update. Problems now are that LMS will not start, and I do not want to uninstall and reinstall LMS as it means re-doing settings. Not sure if this is a pCP issue or LMS. Will also post something in LMS thread.

Cheers, David

kingswindsor
2018-08-03, 08:37
Hi, this is an intermittent problem I have had with one of my picoreplayers - RPi3 + IQaudio DAC + IQaudio AMP with 7" screen and lirc control. What happens is that after resuming play after a pause, no sound comes out even though squeezelite appears to be working. It then needs multiple re-boots until (for no apparent reason) it produces sound. It then carries on working. There is no low current or overheating going on when this occurs. It has occurred with 3.2x, 3.5 and today 4.0.

I don't know if the cause is software or hardware and, to my untutored eye, the logs look normal except this pcp_boot.log. Any advice would be appreciated and if I should investigate any other logs, please let me know.

George

Starting piCorePlayer setup...
Loading pCP function files and pCP configuration file...sh: 3: unknown operand
Done.
Checking for newpcp.cfg on mmcblk0p1...
Trying to mount /dev/mmcblk0p1.
newpcp.cfg not found on mmcblk0p1.
Setting piCore repository...Done.
Generating drop-down list...Done.
Starting wifi...
sh: 3: unknown operand
sh: 3: unknown operand
Starting WiFi on wlan0...
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending select for 192.168.1.72
udhcpc: lease of 192.168.1.72 obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
adding dns 192.168.1.1
Done.
Loading configuration file...Done.
Loading pcp-lms-functions...Done.
Waiting for soundcard IQaudIODAC to populate. Done (1).
Waiting for network. Done (1).
Starting ALSA configuration...No state is present for card IQaudIODAC
Found hardware: "IQaudIODAC" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card IQaudIODAC
.No state is present for card IQaudIODAC
Found hardware: "IQaudIODAC" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card IQaudIODAC
.No state is present for card IQaudIODAC
Found hardware: "IQaudIODAC" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card IQaudIODAC
.No state is present for card IQaudIODAC
Found hardware: "IQaudIODAC" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card IQaudIODAC
.No state is present for card IQaudIODAC
Found hardware: "IQaudIODAC" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card IQaudIODAC
.No state is present for card IQaudIODAC
Found hardware: "IQaudIODAC" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card IQaudIODAC
ALSA restore error!
(7)
Done.
Starting lirc with Jivelite support...Done.
Starting Openssh server...Done.
Starting Squeezelite and/or Shairport-sync...
[ INFO ] sh: 3: unknown operand
Restarting Shairport-sync player...
sh: 3: unknown operand
Stopping Shairport-sync player: Shairport-sync...
sh: 3: unknown operand
Starting Shairport-sync player: Shairport-sync...
[ INFO ] Starting Squeezelite player: Squeezelite...
Done.
Starting httpd web server...Done.
Starting auto start FAV...sh: 1: unknown operand
Done.
wlan0 IP: 192.168.1.72
Setting cpu scaling governor...ondemand Done.
Finished piCorePlayer setup.
Starting Jivelite...Done.
crond syncing time...

paul-
2018-08-03, 13:30
There is a small issue in the startup, but nothing that would affect resuming after pause. You should go into the Card Control pages (on the squeezelite page) and setup your mixer and then save it.

To see what is going on the play/pause, you need to turn on squeezelite logging.

Does the IQ audio Amp do muting?

kingswindsor
2018-08-04, 08:39
There is a small issue in the startup, but nothing that would affect resuming after pause. You should go into the Card Control pages (on the squeezelite page) and setup your mixer and then save it.

To see what is going on the play/pause, you need to turn on squeezelite logging.

Does the IQ audio Amp do muting?

Thanks - Yesterday I went into the mixer settings, checked the auto-unmute box and saved. Still no sound.
Squeezelite logging was on info but I have now raised it to debug. Re-booted and still no sound.

Rebooted again today to get a fresh (shorter) log and it is now working again! So I don't suppose the log will show anything useful. I'll keep an eye on it.
Thanks for the advice
George

cibibikeru
2018-08-07, 11:23
Hi, I have a PI3 and Hifiberry DAC+ Pro and just installed picoreplayer 3.5.0 for the first time (I come from Volumio) and in comparison looks very complicated but still want to try it.
Problem is I can't get airplay to work, I enabled Shairport-sync but when I click on Start, nothing happenes, I get [ INFO ] Starting Shairport-sync player: Shairport-sync...
I tried "Load default Shairport-sync settings for your DAC" and leave the Output control blank, what are the values that I have to type in? Thank you!

Greg Erskine
2018-08-07, 16:29
Hi, I have a PI3 and Hifiberry DAC+ Pro and just installed picoreplayer 3.5.0 for the first time (I come from Volumio) and in comparison looks very complicated but still want to try it.
Problem is I can't get airplay to work, I enabled Shairport-sync but when I click on Start, nothing happenes, I get [ INFO ] Starting Shairport-sync player: Shairport-sync...
I tried "Load default Shairport-sync settings for your DAC" and leave the Output control blank, what are the values that I have to type in? Thank you!

hi cibibikeru,

Try giving pCP a reboot. Unlike other distributions, pCP does a complete install each time it boots, so the system starts again clean.

We also recommend using ShairTunes2W on LMS rather than Shairport-sync on pCP.

https://forums.slimdevices.com/showthread.php?106289-announce-ShairTunes2W-Airtunes-on-LMS-(forked-version-with-Windows-support)

I have found Shairport-sync a little unreliable in 3.5.0.

regards
Greg

cibibikeru
2018-08-08, 10:23
hi cibibikeru,

Try giving pCP a reboot. Unlike other distributions, pCP does a complete install each time it boots, so the system starts again clean.

We also recommend using ShairTunes2W on LMS rather than Shairport-sync on pCP.

https://forums.slimdevices.com/showthread.php?106289-announce-ShairTunes2W-Airtunes-on-LMS-(forked-version-with-Windows-support)

I have found Shairport-sync a little unreliable in 3.5.0.

regards
Greg

Hi Greg, I've been searching for a way to add plugins to LMS, I can't find any "plugins" button in the web gui, I found "extensions" but no way to add other repository, I can't find any instructions on how to do it, this is really complicated. Do I have to do it in command line? Where do I find instructions? Thank you.

Greg Erskine
2018-08-08, 14:31
hi cibibikeru,

Adding plugins to LMS is part of LMS, nothing to do with piCorePlayer.

What device is LMS installed?

regards
Greg

cibibikeru
2018-08-09, 21:38
hi cibibikeru,

Adding plugins to LMS is part of LMS, nothing to do with piCorePlayer.

What device is LMS installed?

regards
Greg

LMS is part of picoreplayer installed on RPI, I want to send audio from iphone to speakers through RPI. In the meantime, I switched back to volumio, everything works out of the box, maybe I’ll try picoreplayer some other time, too time consuming for now, thank you very much!

Greg Erskine
2018-08-09, 22:34
hi cibibikeru,

There are lots of good software packages out there, I am glad you found one that is suitable!

Logitech Media Server (LMS) plugins work the same on all platforms as far as I know.

regards
Greg

divbo
2018-08-10, 23:38
Hello,
I've setup piCorePlyer 3.5.0 on Raspberry Pi 3 Model B using standard hdmi output with my Denon AV receiver and have noticed the sound is distorted. I've tried to keep settings default. Is this normal? Do I need an additional card like hifiberry for high quality digital audio out?
Many thanks

stereoptic
2018-08-12, 14:56
Apologies if I am posting in the wrong thread.
I'm not sure if this is a picireplayer/jivelite issue or if it is touchscreen related.
As of recently, i only get a response when selecting either line one or two of the display , tou ching anywhere on lines 3 and below is unresponsive.
I am on most current picore and using official RPi display.
Power supply is fine. Never had an issue before. I don't think I have changed any settings.
Any suggestions or a link if this has been addressed before?

kingswindsor
2018-08-13, 01:43
I have had something like this before and it was hardware related. It worked ok with the IR remote I had set up, or from a phone controller but not the screen. To be sure, I booted up the pi with another sd card with Raspbian and the screen was equally hit and miss. Got a new screen and repurposed the old one.


Apologies if I am posting in the wrong thread.
I'm not sure if this is a picireplayer/jivelite issue or if it is touchscreen related.
As of recently, i only get a response when selecting either line one or two of the display , tou ching anywhere on lines 3 and below is unresponsive.
I am on most current picore and using official RPi display.
Power supply is fine. Never had an issue before. I don't think I have changed any settings.
Any suggestions or a link if this has been addressed before?



Sent from my SM-N9005 using Tapatalk

stereoptic
2018-08-13, 05:55
I have had something like this before and it was hardware related. It worked ok with the IR remote I had set up, or from a phone controller but not the screen. To be sure, I booted up the pi with another sd card with Raspbian and the screen was equally hit and miss. Got a new screen and repurposed the old one.
Sent from my SM-N9005 using Tapatalk
Thanks for that. Yeah, I can control it from the app or web site. I'll do some more troubleshooting before I buy a new display.

stereoptic
2018-08-13, 06:50
Doing some research, I see that there is an 'overscan' option for the display. I tried using the 'raspi-config' command to check, but I suppose that command is not available on the distro used by piCoreplayer? Any other suggestions to troubleshoot the touchscreen? Again, if this belongs in another thread please let me know.

Jeff07971
2018-08-13, 07:43
Doing some research, I see that there is an 'overscan' option for the display. I tried using the 'raspi-config' command to check, but I suppose that command is not available on the distro used by piCoreplayer? Any other suggestions to troubleshoot the touchscreen? Again, if this belongs in another thread please let me know.

Overscan is about how the display presents the image, nothing to do with the touchscreen IMHO

If you have tried burning a new SDCard and the PSU etc then it is likely a harware issue.

Have you tried disconnecting and reconnecting ALL cables to the touchscreen and Pi and while doing so inspecting them for cleanliness and damage ?

Jeff

stereoptic
2018-08-13, 17:27
Overscan is about how the display presents the image, nothing to do with the touchscreen IMHO

If you have tried burning a new SDCard and the PSU etc then it is likely a harware issue.

Have you tried disconnecting and reconnecting ALL cables to the touchscreen and Pi and while doing so inspecting them for cleanliness and damage ?

Jeff
Thanks for that. I've avoided burning a new card, but there is always that option! It's solved other issues before. I've re-seated the ribbon cable to the display board. Some areas of the screen are more responsive than others. Even scrolling is unpredictable.

oldschool
2018-08-19, 15:33
I'm setting up a Raspberry PI 3 to be a LMS server and client, and I want to connect an external USB drive with iTunes music files to it. I've got Tidal and JazzRadio.com streaming working.

I configured the USB drive following the "How-to setup Samba and an USB HDD on your piCorePlayer - by nowhinjing" instructions on the picoreplayer site. For some reason, the "music" and "playlist" folders I create using Extfs for Windows disappear. By that I mean, they do not show up in the mnt folder and I cannot see them in the iTunes plugin. When I browse to the //mnt/LMSfiles folder, the only sub-folder showing is slimserver.

I've been using LMS since the Squeezebox Duet days, and have two still going strong - along with another Raspberry PI 3 DAC+ client and a Innous Zenith LMS server and client. I'm having no problem with them! I'm trying to make a small standalone LMS system for my Goddaughter.

Any help would be greatly appreciated.