Some -z output. I've removed all the discovery.c outputs. The four
button presses in the output below were 25, then 22, then 25, then 22.
Code:
--------------------
Last login: Wed Aug 21 17:14:18 on ttys000
(base) Chris-Hills-MacBook-6:~ iszch$ ssh [email protected]
[email protected]'s password:
_ _____ ___ __
___ (_) ___/__ _______ / _ \/ /__ ___ _____ ____
/ _ \/ / /__/ _ \/ __/ -_) ___/ / _ `/ // / -_) __/
/ .__/_/\___/\___/_/ \__/_/ /_/\_,_/\_, /\__/_/
/_/ /___/
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@pCPLoungePi4:~$ ./sbpd-script.sh
sudo /home/tc/sbpd-pigpio -z -M dc:a6:32:03:82:22 -f
/home/tc/sbpd_commands.cfg b,22,MIX-,2,0,MUTE,500 b,25,MIX+,2,0,VMAX,500
1566404967.8954 6 sbpd.c,289: Options parsing: Set debug mode
1566404967.8955 6 sbpd.c,309: Options parsing: Manually set MAC:
dc:a6:32:03:82:22
1566404967.8955 6 sbpd.c,343: Options parsing: Setting command config file to
/home/tc/sbpd_commands.cfg
1566404967.8956 6 sbpd.c,505: name=MIX+, value=["mixer","volume","+5"]
1566404967.8956 6 control.c,81: Adding Command MIX+: Fragment
["mixer","volume","+5"]
1566404967.8956 6 sbpd.c,505: name=MIX-, value=["mixer","volume","-5"]
1566404967.8956 6 control.c,81: Adding Command MIX-: Fragment
["mixer","volume","-5"]
1566404967.8956 6 sbpd.c,505: name=VMAX, value=["mixer","volume","100"]
1566404967.8957 6 control.c,81: Adding Command VMAX: Fragment
["mixer","volume","100"]
1566404967.8957 6 sbpd.c,505: name=MUTE, value=["mixer","volume","0"]
1566404967.8957 6 control.c,81: Adding Command MUTE: Fragment
["mixer","volume","0"]
1566404967.8957 6 GPIO.c,261: Initializing GPIO
1566404968.0564 6 control.c,204: Button defined: Pin 22, BCM Resistor: up,
Short Type: LMS, Short Fragment: ["mixer","volume","-5"] , Long Type: LMS, Long
Fragment: ["mixer","volume","0"], Long Press Time: 500
1566404968.0565 6 control.c,204: Button defined: Pin 25, BCM Resistor: up,
Short Type: LMS, Short Fragment: ["mixer","volume","+5"] , Long Type: LMS, Long
Fragment: ["mixer","volume","100"], Long Press Time: 500
1566404968.0566 6 servercomm.c,176: Initializing CURL
1566404968.0660 6 sbpd.c,237: Starting main loop polling
1566404971.6158 7 GPIO.c,91: 289443 - 0= 289443 Pin Value=0 Stored Value=0
1566404971.7698 7 GPIO.c,91: 289598 - 289443= 155 Pin Value=1 Stored
Value=0
1566404971.7698 6 GPIO.c,107: Short PRESS: 155
1566404971.7699 6 control.c,107: Button CB set for button #:0, gpio pin 22
1566404971.7721 6 control.c,218: Button pressed: Pin: 22, Press Type:Short
1566404971.7721 6 servercomm.c,74: Send Command:0,
Fragment:["mixer","volume","-5"]
1566404971.7721 7 servercomm.c,122: Server ::192.168.1.4:9000 command:
{"id":1,"method":"slim.request","params":["dc:a6:32:03:82:22",["mixer","volume","-5"]]}
1566404973.9662 7 GPIO.c,91: 291794 - 0= 291794 Pin Value=0 Stored Value=1
1566404974.1390 7 GPIO.c,91: 291966 - 291794= 172 Pin Value=1 Stored
Value=1
1566404974.1391 6 GPIO.c,107: Short PRESS: 172
1566404974.1392 6 control.c,107: Button CB set for button #:0, gpio pin 22
1566404974.1785 6 control.c,218: Button pressed: Pin: 22, Press Type:Short
1566404974.1785 6 servercomm.c,74: Send Command:0,
Fragment:["mixer","volume","-5"]
1566404974.1785 7 servercomm.c,122: Server ::192.168.1.4:9000 command:
{"id":1,"method":"slim.request","params":["dc:a6:32:03:82:22",["mixer","volume","-5"]]}
1566404975.2376 7 GPIO.c,91: 293065 - 0= 293065 Pin Value=0 Stored Value=1
1566404975.3915 7 GPIO.c,91: 293219 - 293065= 154 Pin Value=1 Stored
Value=1
1566404975.3915 6 GPIO.c,107: Short PRESS: 154
1566404975.3916 6 control.c,107: Button CB set for button #:0, gpio pin 22
1566404975.4861 6 control.c,218: Button pressed: Pin: 22, Press Type:Short
1566404975.4862 6 servercomm.c,74: Send Command:0,
Fragment:["mixer","volume","-5"]
1566404975.4862 7 servercomm.c,122: Server ::192.168.1.4:9000 command:
{"id":1,"method":"slim.request","params":["dc:a6:32:03:82:22",["mixer","volume","-5"]]}
1566404976.6980 7 GPIO.c,91: 294526 - 0= 294526 Pin Value=0 Stored Value=1
1566404976.9135 7 GPIO.c,91: 294741 - 294526= 215 Pin Value=1 Stored
Value=1
1566404976.9136 6 GPIO.c,107: Short PRESS: 215
1566404976.9136 6 control.c,107: Button CB set for button #:0, gpio pin 22
1566404976.9912 6 control.c,218: Button pressed: Pin: 22, Press Type:Short
1566404976.9912 6 servercomm.c,74: Send Command:0,
Fragment:["mixer","volume","-5"]
1566404976.9913 7 servercomm.c,122: Server ::192.168.1.4:9000 command:
{"id":1,"method":"slim.request","params":["dc:a6:32:03:82:22",["mixer","volume","-5"]]}
--------------------
------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=107001
_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy