(Topic ID: 227706)

New creature (holo) mod for CFTBL

By steve45

5 years ago


Topic Heartbeat

Topic Stats

  • 290 posts
  • 49 Pinsiders participating
  • Latest reply 1 year ago by jlppin
  • Topic is favorited by 61 Pinsiders

You

Linked Games

Topic Gallery

View topic image gallery

serial log (resized).png
serial (resized).png
rightone (resized).png
chmod (resized).png
Sem título (resized).png
permission (resized).png
permissiondenied (resized).png
tail (resized).png
grep serial (resized).png
underdata (resized).png
correctone (resized).png
WhatsApp Image 2022-02-24 at 16.39.17 (resized).jpeg
lsrta (resized).png
baspath (resized).png
web ui (resized).png
serial-media-ini place (resized).png
There are 290 posts in this topic. You are on page 6 of 6.
#251 2 years ago
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

#252 2 years ago
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

#253 2 years ago
Quoted from Zigzagzag:

Sorry, yes, the /boot/smsdata/data directory

under data now

underdata (resized).pngunderdata (resized).png
#254 2 years ago

Ok, 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

#255 2 years ago
Quoted from Zigzagzag:

Here the character after "aux" and before "grep" is the vertical pipe character you used last time

here

grep serial (resized).pnggrep serial (resized).png
#256 2 years ago

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

#257 2 years ago
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"

#258 2 years ago
tail (resized).pngtail (resized).png
#259 2 years ago

Maybe this will give some output after "service serial-media start" :

journalctl -u serial-media

#260 2 years ago
Quoted from Zigzagzag:

Maybe this will give some output after "service serial-media start" :
journalctl -u serial-media

permissiondenied (resized).pngpermissiondenied (resized).png
#261 2 years ago

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 ?

#262 2 years ago

sure, here it is

permission (resized).pngpermission (resized).png
#263 2 years ago

after change permissions on this files i got a different erros

Sem título (resized).pngSem título (resized).png
#264 2 years ago

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)

#265 2 years ago
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).pngchmod (resized).png
#266 2 years ago

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.

#267 2 years ago
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#

#268 2 years ago

The character between "aux" and "grep" should be the pipe sign, not lowercase L.

Does the file "/boot/smsdata/data/serial.log" exist now ?

#269 2 years ago
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).pngrightone (resized).png
#270 2 years ago
Quoted from thiagomax:

sorry i miss that, now i have serial.log under /boot/smsdata/data/[quoted image]

serial (resized).pngserial (resized).png
#271 2 years ago

serial log

serial log (resized).pngserial log (resized).png
#272 2 years ago

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

#273 2 years ago
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 ]

#274 2 years ago
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

#275 2 years ago

Good, it is working, have fun.

#276 2 years ago
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

#277 2 years ago
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 ?

#278 2 years ago
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.

#279 2 years ago
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

#280 2 years ago
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.

8 months later
#281 1 year ago

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

4 weeks later
#282 1 year ago

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

#283 1 year ago

Maybe it's part of fffmpeg ?
Is that installed ?

#284 1 year ago

Thanks ZigZag

ffmpeg is already installed - no joy

Thanks

John

#285 1 year ago
Quoted from jlppin:

Thanks ZigZag
ffmpeg is already installed - no joy
Thanks
John

How about libavutil-dev ?

#286 1 year ago

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

1 week later
#287 1 year ago

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

#288 1 year ago

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

#289 1 year ago

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

#290 1 year ago

I have tried netstat -ano | grep 19999 and the result is nothing - I think this means that the serial-media.service is not listening on port 19999

Promoted items from Pinside Marketplace and Pinside Shops!
$ 549.00
Playfield - Other
Juz PINBALL Mods
 
$ 29.95
Lighting - Led
Mitchell Lighting
 
From: $ 1.49
Playfield - Toys/Add-ons
Daddio's 3D Printed Mods
 
8,000
Machine - For Sale
Portland, ME
$ 15.00
Playfield - Decals
Metal-Mods
 
Wanted
Machine - Wanted
West Chicago, IL
From: $ 33.00
Gameroom - Decorations
Rocket City Pinball
 
$ 79.99
Cabinet - Armor And Blades
PinGraffix Pinside Shop
 
$ 250.00
Lighting - Interactive
Professor Pinball
 
$ 109.99
Lighting - Led
Lighted Pinball Mods
 
$ 10.00
Playfield - Toys/Add-ons
UpKick Pinball
 
$ 9.95
$ 49.99
Playfield - Toys/Add-ons
Lighted Pinball Mods
 
$ 69.99
Playfield - Toys/Add-ons
Lighted Pinball Mods
 
Trade
Machine - For Trade
East Rutherford, NJ
$ 150.00
Lighting - Interactive
UpKick Pinball
 
$ 49.99
Cabinet - Toppers
Lighted Pinball Mods
 
€ 24.50
Playfield - Decals
Pin-Decals
 
€ 24.00
$ 27.95
$ 5.00
Playfield - Toys/Add-ons
UpKick Pinball
 
€ 25.00
Playfield - Toys/Add-ons
PPmods
 
$ 280.00
Playfield - Other
Avid Creations Wireforms
 
From: $ 17.99
Eproms
Matt's Basement Arcade
 
7,500
Machine - For Sale
Matthews, NC
$ 1,059.00
Flipper Parts
Mircoplayfields
 
$ 219.00
Gameroom - Decorations
Lit Frames
 
Hey modders!
Your shop name here
There are 290 posts in this topic. You are on page 6 of 6.

Reply

Wanna join the discussion? Please sign in to reply to this topic.

Hey there! Welcome to Pinside!

Donate to Pinside

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.