Quoted from Zigzagzag:Ok, that looks right. Can you run the same command in the smsdata directory ?
you mean the data directory ? this command is not under smsdata already ? sorry if i'm wrong, i'm a noob on this
Quoted from Zigzagzag:Ok, that looks right. Can you run the same command in the smsdata directory ?
you mean the data directory ? this command is not under smsdata already ? sorry if i'm wrong, i'm a noob on this
Quoted from thiagomax:you mean the data directory ? this command is not under smsdata already ? sorry if i'm wrong, i'm a noob on this
Sorry, yes, the /boot/smsdata/data directory
Quoted from Zigzagzag:Sorry, yes, the /boot/smsdata/data directory
under data now
underdata (resized).pngOk, looks right. Can you do :
ps aux | grep serial
Here the character after "aux" and before "grep" is the vertical pipe character you used last time
Quoted from Zigzagzag:Here the character after "aux" and before "grep" is the vertical pipe character you used last time
here
grep serial (resized).pngOk, the serial media server is not running it seems.
Try :
service serial-media start
... wait 5 seconds ... then check the output of :
tail /var/log/messages
Quoted from Zigzagzag:Ok, the serial media server is not running it seems.
Try :
service serial-media start
... wait 5 seconds ... then check the output of :
tail /var/log/messages
i got "no such file or directory"
Quoted from Zigzagzag:Maybe this will give some output after "service serial-media start" :
journalctl -u serial-media
Ok, the file /home/pi/serial-media-srv/start.sh cannot be started.
Can you to :
cd /home/pi/serial-media-srv
ls -rtaFl
... and show the output ?
Did you do "chmod 755 start.sh" so it is executable ?
What happens if you type "./start.sh" ?
(Both commands should be run in the /home/pi/serial-media-srv directory)
Quoted from Zigzagzag:Did you do "chmod 755 start.sh" so it is executable ?
What happens if you type "./start.sh" ?
(Both commands should be run in the /home/pi/serial-media-srv directory)
well, i got no output instantly with this commands, what i should look ?
chmod (resized).pngCheck if it is running :
ps aux |grep serial
If it is listed once, that is good - then it is running.
If it is listed more than once, then try rebooting the Pi.
If it is not listed .. show me what this says :
cat start.sh
.. again in the /home/pi/serial-media-srv directory.
Quoted from Zigzagzag:Check if it is running :
ps aux |grep serial
If it is listed once, that is good - then it is running.
If it is listed more than once, then try rebooting the Pi.
If it is not listed .. show me what this says :
cat start.sh
.. again in the /home/pi/serial-media-srv directory.
root@tiltaudio3:/home/pi/serial-media-srv# ps aux lgrep serial
error: process ID list syntax error
Usage:
ps [options]
Try 'ps --help <simple|list|output|threads|misc|all>'
or 'ps --help <s|l|o|t|m|a>'
for additional help text.
For more details see ps(1).
root@tiltaudio3:/home/pi/serial-media-srv# cat start.sh
#!/bin/bash
# usb stick support: detect if this path exists, if so use it as base path for update, soundset logging
BASEPATH=/boot/smsdata
if [ -d /media/usb0/data ]; then
BASEPATH=/media/usb0
fi
if [ -d /media/usb1/data ]; then
BASEPATH=/media/usb1
fi
if [ -b /dev/sda ]; then
BASEPATH=/media/usb
fi
# copy default jpg if missing
if [ ! -f $BASEPATH/data/default.jpg ]; then
cp /boot/data/default.jpg $BASEPATH/data/
fi
# update handling
if [ -f $BASEPATH/update/update.zip ]; then
mv $BASEPATH/update/update.zip $BASEPATH/update/update-done.zip
unzip -o $BASEPATH/update/update-done.zip -d /home/pi/serial-media-srv
sync
fi
# log rotate
mv $BASEPATH/data/serial1.log $BASEPATH/data/serial2.log
mv $BASEPATH/data/serial.log $BASEPATH/data/serial1.log
cd $BASEPATH/data
python3 /home/pi/serial-media-srv/img-mov-serial.py >> $BASEPATH/data/serial.log 2>&1
root@tiltaudio3:/home/pi/serial-media-srv#
The character between "aux" and "grep" should be the pipe sign, not lowercase L.
Does the file "/boot/smsdata/data/serial.log" exist now ?
Quoted from Zigzagzag:The character between "aux" and "grep" should be the pipe sign, not lowercase L.
Does the file "/boot/smsdata/data/serial.log" exist now ?
sorry i miss that, now i have serial.log under /boot/smsdata/data/
rightone (resized).pngQuoted from thiagomax:sorry i miss that, now i have serial.log under /boot/smsdata/data/[quoted image]
What have you pasted into your serial-media-srv.ini ?
The sentence it complains about is at the top of the README on https://github.com/sker65/serial-media-srv
In serial-media-srv.ini there should *only* be what you find in the grey box here : https://github.com/sker65/serial-media-srv#config-file
Then you remove the "#" in front of the word "socketport".
It should look like this :
[general]
# just for testing: read comamnds from a test file
# readFrom=input.txt
# uncomment to activate a simple text based socket interface, that accepts the same commands as over serial line
socketport=19999
# change the http port for web ui
httpport=31009
# the serial device
device=/dev/ttyS0
# the baud rate
baud=57600
# timeout in sec for reading the serial port
timeout=10
[player]
# command to use when playing videos
exec=omxplayer -b --no-osd
[viewer]
# command to use when showing images
exec=fim -a -q
Quoted from Zigzagzag:What have you pasted into your serial-media-srv.ini ?
The sentence it complains about is at the top of the README on https://github.com/sker65/serial-media-srv
In serial-media-srv.ini there should *only* be what you find in the grey box here : https://github.com/sker65/serial-media-srv#config-file
Then you remove the "#" in front of the word "socketport".
It should look like this :
[general]
# just for testing: read comamnds from a test file
# readFrom=input.txt
# uncomment to activate a simple text based socket interface, that accepts the same commands as over serial line
socketport=19999
# change the http port for web ui
httpport=31009
# the serial device
device=/dev/ttyS0
# the baud rate
baud=57600
# timeout in sec for reading the serial port
timeout=10
[player]
# command to use when playing videos
exec=omxplayer -b --no-osd
[viewer]
# command to use when showing images
exec=fim -a -q
paste here what is in mine
# serial-media-srv
a media server that plays movies or images controlled by serial cmds.
This server could be used in various devices to playback movies or images based on the received serial commands.
# running
There's a start script provided start.sh and a service definition for systemd as well (serial-media.service).
To install the service copy serial-media.service to /etc/systemd/system adjust installation path and start/enable the service by systemctl start/enable serial-media
# config
The service reads a config file (ini file) from the current directory by default (serial-media-srv.ini). It consists of sections see example. There a builtin defaults for showing images and also for playing movies that rely on omxplayer / fim.
# commands
Ther service reads commands from the serial port (or other input) just as one line. Commands are always uppercase and can have arguments.
## play command
PLAY <media>
plays / shows a media file (image / movie)
## stop command
STOP
stop any running media, go back to a default (if defined)
## playoneof command
PLAYONEOF <media1> <media2> <media3>
plays one of the media files, chooses randomly
# movie playback
if a movie is playing the server remembers its name, so if the same movie is requested twice, the movie just plays on (no rewind or interruption)
# install on raspbian stretch / dietpi
Beginning with version 1.0.4 the serial media server is no longer using yamuplay or omxplayer python extension (didn't work).
There is also an image available to make the setup even easier, see here https://go-dmd.de/produkt/serial-media-server-image/
Base image is raspian lite stretch or dietpi. Then run / install the following commands ...
`
apt-get update
apt-get install omxplayer
apt-get install fbset
apt-get install fbi
apt-get install fim
apt-get install python3-setuptools
// apt-get install python3-dbus
apt-get install python3-pip
// python3 -m pip install decorator
// python3 -m pip install evento
python3 -m pip install pyserial
// apt-get install git
// git clone https://github.com/schlizbaeda/yamuplay.git
`
Take care to have enough GPU memory configured so that omxplayer can work
# usb stick support
start script has usb stick support and dectects a mounted usb stick using media from there (requires usbmount installed)
# config file
the server read an ini like config file either from sd card (/data) or usb stick. see example dir how it could look. There are defaults being used when no config file is avail. The example below has all the defaults set.
`ini
[general]
# just for testing: read comamnds from a test file
# readFrom=input.txt
# uncomment to activate a simple text based socket interface, that accepts the same commands as over serial line
socketport=19999
# change the http port for web ui
httpport=31009
# the serial device
device=/dev/ttyS0
# the baud rate
baud=57600
# timeout in sec for reading the serial port
timeout=10
[player]
# command to use when playing videos
exec=omxplayer -b --no-osd
[viewer]
# command to use when showing images
exec=fim -a -q
`
# image
There is also an image available based on raspbian stretch lite the could be written on a 16GB sd card using some imager tool
like Win32 Disk Imager or Etcher. The image is even more customized as all startup messages on the screen are removed and a nice
start animation is shown instead. You can get the image here: https://go-dmd.de/produkt/serial-media-server-image/
# start
python3 img-mov-srv.py [ basedir ] [ device ]
Quoted from Zigzagzag:What have you pasted into your serial-media-srv.ini ?
The sentence it complains about is at the top of the README on https://github.com/sker65/serial-media-srv
In serial-media-srv.ini there should *only* be what you find in the grey box here : https://github.com/sker65/serial-media-srv#config-file
Then you remove the "#" in front of the word "socketport".
It should look like this :
[general]
# just for testing: read comamnds from a test file
# readFrom=input.txt
# uncomment to activate a simple text based socket interface, that accepts the same commands as over serial line
socketport=19999
# change the http port for web ui
httpport=31009
# the serial device
device=/dev/ttyS0
# the baud rate
baud=57600
# timeout in sec for reading the serial port
timeout=10
[player]
# command to use when playing videos
exec=omxplayer -b --no-osd
[viewer]
# command to use when showing images
exec=fim -a -q
i copied your's and now i have this on my serial log
2022-02-25 17:16:10,104 INFO serial-media-srv version 1.0.6 starting ...
2022-02-25 17:16:10,104 DEBUG Running in /home/pi/serial-media-srv
2022-02-25 17:16:10,105 DEBUG listening for cmd on 19999
2022-02-25 17:16:10,114 INFO images found: {}
2022-02-25 17:16:10,115 INFO movies found: {}
2022-02-25 17:16:10,115 INFO defaultimages found: {0: 'default.jpg'}
2022-02-25 17:16:10,116 INFO defaultmovies found: {}
2022-02-25 17:16:10,116 INFO startupmovies found: {}
2022-02-25 17:16:10,118 DEBUG starting http server...
2022-02-25 17:16:10,118 DEBUG showing image 'default.jpg'
2022-02-25 17:16:10,120 DEBUG running: ['fim', '-a', '-q', '/boot/smsdata/data/default.jpg']
2022-02-25 17:16:10,153 DEBUG started fbi process 29611
2022-02-25 17:16:10,154 DEBUG waiting for connection
2022-02-25 17:16:10,155 DEBUG running http server on port 31009 ...
ioctl VT_GETSTATE: Inappropriate ioctl for device (not a linux console?)
ioctl VT_GETSTATE: Inappropriate ioctl for device
Quoted from Zigzagzag:Good, it is working, have fun.
I must be missing something, because I have a tiltaudio! image again, test in web UI to send a sound but no video is triggering
Quoted from thiagomax:I must be missing something, because I have a tiltaudio! image again, test in web UI to send a sound but no video is triggering
I don't know where the TiltAudio image comes from, I never had it on my CFTBL - but then again, there have been new TiltAudio versions released since then.
Perhaps steve45 can chime in here ?
Quoted from Zigzagzag:I don't know where the TiltAudio image comes from, I never had it on my CFTBL - but then again, there have been new TiltAudio versions released since then.
Perhaps steve45 can chime in here ?
man, thank you so much for your help. I wouldn't have made it this far without your help.
Quoted from Zigzagzag:I don't know where the TiltAudio image comes from, I never had it on my CFTBL - but then again, there have been new TiltAudio versions released since then.
Perhaps steve45 can chime in here ?
hi man, after several attempts it worked as it should and I'm very happy, but it doesn't work the first time I turn on the machine, after I have to access the web ui, go to the settings tab and just press the restart button, from there it works usually.
I would like to know if there is any way to change this, so that every time I turn on the machine it works, without having to restart every time I want to use it
Quoted from thiagomax:hi man, after several attempts it worked as it should and I'm very happy, but it doesn't work the first time I turn on the machine, after I have to access the web ui, go to the settings tab and just press the restart button, from there it works usually.
I would like to know if there is any way to change this, so that every time I turn on the machine it works, without having to restart every time I want to use it
Great that you got it working !
I have no idea why it doesn't work first time, sorry - never had that problem.
I added some functions for playing an attract movie on boot, but I don't think steve45 has pulled this into the main branch.
I noticed on the thread about rebuilding sound for data east jurassic park using a pi that steve45 said that there were problems with the latest firmware and the pi 4. Does that still hold? If I want to build this sound and video solution for cftbl should I use a pi 3 b+ or a pi 4?
Thanks
John
Hi
I am trying to setup the holo display on the the same pi as the tilt!audio. I am having a problem getting the omxplayer to run. Every time I try to manually execute the omxplayer I get the following error:
root@tiltaudio3:/boot/smsdata/data# omxplayer -b -no -osd /boot/smsdata/data/attract.mp4
/home/pi/bin/omxplayer.bin: error while loading shared libraries: libavutil.so.55: cannot open shared object file: No such file or directory
I have tried to find the libavutil.so.55 every place I can think of. I did find a libavutil.so.56 but of course that won't work. I am running titl!audio 3.10 board with rev 1.41 of the software. ANy ideas on where/how I can get the missing library?
thanks
John
Quoted from jlppin:Thanks ZigZag
ffmpeg is already installed - no joy
Thanks
John
How about libavutil-dev ?
Thanks for the suggestion. After adding libavutil-dev still getting
/home/pi/bin/omxplayer.bin: error while loading shared libraries: libavutil.so.55: cannot open shared object file: No such file or directory
thanks
John
Okay still not getting any display on my hdmi panel. I have the following error in the logfile:
2022-12-07 17:08:50.368 INFO RasPiSnd [serialSetup] [serial.c:64] Succesfully opened UART device '/dev/ttyS0'.
2022-12-07 17:08:50.368 INFO RasPiSnd [serialSetup] [serial.c:85] Setting UART device to 57600 baud -> 4097.
2022-12-07 17:08:50.369 ERROR RasPiSnd [initSocketIo] [socketIo.c:45] Connection to 127.0.0.1:19999 failed
2022-12-07 17:08:50.369 INFO RasPiSnd [initGpio] [pincom.c:403] setting up GPIO for MCU
2022-12-07 17:08:50.369 INFO RasPiSnd [initGpio] [pincom.c:406] setting up GPIO for WPC
I suspect this is the culprit, but I haven't found any info on it yet. I am running on a PI 4 on a rev 3.10 board with rev 1.40.
Any thoughts on how to debug this?
Thanks
John
Connection to 127.0.0.1:19999 failed : this means that TiltAudio cannot connect to the serial media server.
The serial media server should be listening on port 19999
Have you enabled HDMI as described here : https://pinside.com/pinball/forum/topic/new-creature-holo-mod-for-cftbl/page/3#post-6170514
7) In /boot/config.txt on the SD-card for the Pi, comment out the line DISABLE_HDMI :
# for pi4 disable status at startup
#DISABLE_HDMI=1
Yes, I have done all the things you specified and checked them multiple times. The serial-media service is running (output below)
root@tiltaudio3:/boot# systemctl status serial-media
● serial-media.service - Serial Media Service
Loaded: loaded (/etc/systemd/system/serial-media.service; enabled; vendor pre
set: enabled)
Active: active (running) since Wed 2022-12-07 12:31:25 EST; 1h 34m
in ago
Process: 275 ExecStartPre=/bin/sleep 10 (code=exited, status=0/SUCCESS)
Main PID: 622 (start.sh)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/serial-media.service
├─622 /bin/bash /home/pi/serial-media-srv/start.sh
├─625 python3 /home/pi/serial-media-srv/img-mov-serial.py
└─627 fim -a -q /boot/smsdata/data/default.jpg
Dec 07 12:31:25 tiltaudio3 systemd[1]: Started Serial Media Service.
Output of serial.log
root@tiltaudio3:/boot/smsdata/data# cat serial.log
2022-12-07 17:31:41,241 INFO serial-media-srv version 1.0.6 starting ...
2022-12-07 17:31:41,241 DEBUG Running in /home/pi/serial-media-srv
2022-12-07 17:31:41,242 INFO serial port /dev/ttyS0 initilized with 57600, timeout 10
2022-12-07 17:31:41,244 INFO images found: {}
2022-12-07 17:31:41,244 INFO movies found: {}
2022-12-07 17:31:41,244 INFO defaultimages found: {0: 'default.jpg'}
2022-12-07 17:31:41,244 INFO defaultmovies found: {}
2022-12-07 17:31:41,245 DEBUG starting http server...
2022-12-07 17:31:41,245 DEBUG showing image 'default.jpg'
2022-12-07 17:31:41,246 DEBUG running: ['fim', '-a', '-q', '/boot/smsdata/data/default.jpg']
2022-12-07 17:31:41,259 DEBUG running http server on port 31009 ...
2022-12-07 17:31:41,259 DEBUG started fbi process 627
ioctl VT_GETSTATE: Inappropriate ioctl for device (not a linux console?)
ioctl VT_GETSTATE: Inappropriate ioctl for device
I am currently stumped. Are there other logs I can check for errors?
Thanks
Wanna join the discussion? Please sign in to reply to this topic.
Great to see you're enjoying Pinside! Did you know Pinside is able to run without any 3rd-party banners or ads, thanks to the support from our visitors? Please consider a donation to Pinside and get anext to your username to show for it! Or better yet, subscribe to Pinside+!
This page was printed from https://pinside.com/pinball/forum/topic/new-creature-holo-mod-for-cftbl/page/6?hl=zigzagzag and we tried optimising it for printing. Some page elements may have been deliberately hidden.
Scan the QR code on the left to jump to the URL this document was printed from.