(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

You're currently viewing posts by Pinsider thiagomax.
Click here to go back to viewing the entire thread.

#232 2 years ago
Quoted from Zigzagzag:

For anyone interested : you can run the serial media server on the same Pi as the sound runs on.
This saves you buying 2 Pis, cabling etc.
The following assumes a basic knowledge of Linux and that you are able to SSH into the TiltAudio card, use SCP to transfer files to it and use nano to edit config files there.
This is the recipe :
1) Install TiltAudio card as normal with appropriate sound pack featuring the right serial.txt command files
2) Set up TiltAudio with serial server address 127.0.0.1 and port 19999
3) Install serial media server into the directory /home/pi/serial-media-srv on the TiltAudio Pi as described here : https://github.com/sker65/serial-media-srv
The easiest way is to download the master zip (https://github.com/sker65/serial-media-srv/archive/master.zip) and unzip in the /home/pi directory.
Afterwards, rename /home/pi/serial-media-srv-master to /home/pi/serial-media-srv
Copy /home/pi/serial-media-srv/serial-media.service to /etc/systemd/system
4) Make a directory "smsdata" under /boot on TiltAudio SD card.
Make a directory "data" under "smsdata".
Put your mediafiles there
5) In /home/pi/serial-media-srv/start.sh, edit the BASEPATH :
BASEPATH=/boot/smsdata
6) Create /boot/smsdata/data/serial-media-srv.ini using the content as shown in the readme on the site above but enable the socketport :
socketport=19999
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
Enable the serial media server : systemctl enable serial-media
9) Reboot
Tested and working on a Pi3b.

him everyone, i'm new on this forum.

so, i bought the tilt audio a couple weeks ago, since then i not have sucess on showing videos on the screen.
with 2 raspberry's the screen show's "MEDIA PACK IS MISSING"

So i try the tututoral above to use only one rasp.

my setup is:

Raspberry pi 3 model B +
32gb sd ultra
Titl audio board v3.7

using img on sd card 1.38 (i try the last release 1.40 with no sucess too)
connected in hotspot tiltaudio and change to wifi network to acess from my pc

i follow step by step in this tutorial above, the weird part is i dont have the serial.log on boot/smsdata/data
i dont know if i have to put then manually or the system it self create automatically

sms adress changed to 127.0.0.1, sms port to 19999
lua disable, serial port enable, device serial /dev/ttyS0
install all apt-get metioned on serial-media-serv Readme

media pack from cftbl correctly inside boot/smsdata/data with default.jpg manually installed.

running SCP with ROOT 192.168.100.84:22 (i dont know if this matter)

all i have is a tiltaudio! logo in any circunstance on the game and tilt audio config. sound no video is triggered when i put play

i really apreciated if anyone can help me

PS: i'am brazillian, so sorry for my bad english

#233 2 years ago

here is a status from serial media service, on line "active" i got (start-pre) i don't know what this mean.

serialmediaservicestatus (resized).pngserialmediaservicestatus (resized).png
#234 2 years ago

i upload a print for raspin.log when i got a line "g [sendSocketCmd] [socketIo.c:57] send via socket failed"
and a print from my directory with the missing serial.log

directory data (resized).pngdirectory data (resized).pngraspinlog (resized).pngraspinlog (resized).png
#236 2 years ago

i try that and have the same

print logfile (resized).pngprint logfile (resized).pngserial putty (resized).pngserial putty (resized).png
#237 2 years ago
Quoted from thiagomax:

i try that and have the same
[quoted image][quoted image]

ignore the print of putty, i wrote serial instead Serial

print putty (resized).pngprint putty (resized).png
#239 2 years ago
Quoted from Zigzagzag:

For the serial media server - did you make the config file : /boot/smsdata/data/serial-media-srv.ini using the config shown here : https://github.com/sker65/serial-media-srv#config-file
Afterwards, did you do this :
6) Create /boot/smsdata/data/serial-media-srv.ini using the content as shown in the readme on the site above but enable the socketport :
socketport=19999

yes i did that

serial-media-ini place (resized).pngserial-media-ini place (resized).pngsocketport (resized).pngsocketport (resized).png
#240 2 years ago

here is my web ui config.

web ui (resized).pngweb ui (resized).png
#242 2 years ago
Quoted from Zigzagzag:

It might be that the serial media server does not read the correct configuration file.

i did this part too.

baspath (resized).pngbaspath (resized).png
#244 2 years ago
Quoted from Zigzagzag:

And no USB stick in the Pi ?
If you have a USB stick in the Pi it will change basepath and this will not work.

i dont have a usb stick on the pi. my media is under boot/smsdata/data on the sd card.

#246 2 years ago
Quoted from Zigzagzag:

Ok, then I don't know. I believe the serial media server is not reading the config file.
Could you do :
cd /boot/smsdata
ls -rtaFl
... and post the output here ?
Might be some file permissions.

this is normal ? i got nothing to response the command

lsrta (resized).pnglsrta (resized).png
#248 2 years ago

I've never been so angry at an image before

WhatsApp Image 2022-02-24 at 16.39.17 (resized).jpegWhatsApp Image 2022-02-24 at 16.39.17 (resized).jpeg
#249 2 years ago
Quoted from Zigzagzag:

It should be a lowercase L at the end of the command, not the pipe symbol.
Do ctrl-c and try again.

sorry my bad

correctone (resized).pngcorrectone (resized).png
#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

#253 2 years ago
Quoted from Zigzagzag:

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

under data now

underdata (resized).pngunderdata (resized).png
#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
#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
#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
#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
#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
#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#

#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
#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

#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

#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

Promoted items from Pinside Marketplace and Pinside Shops!
$ 9.95
$ 549.00
Playfield - Other
Juz PINBALL Mods
 
Trade
Machine - For Trade
East Rutherford, NJ
$ 27.95
$ 5.00
Playfield - Toys/Add-ons
UpKick Pinball
 
$ 259.99
Cabinet - Toppers
Lighted Pinball Mods
 
$ 280.00
Playfield - Other
Avid Creations Wireforms
 
€ 24.50
Playfield - Decals
Pin-Decals
 
$ 250.00
Lighting - Interactive
Professor Pinball
 
€ 24.00
$ 69.99
Playfield - Toys/Add-ons
Lighted Pinball Mods
 
$ 49.99
Playfield - Toys/Add-ons
Lighted Pinball Mods
 
$ 45.95
From: $ 33.00
Gameroom - Decorations
Rocket City Pinball
 
From: $ 9.99
Eproms
Matt's Basement Arcade
 
8,000
Machine - For Sale
Portland, ME
Wanted
Machine - Wanted
West Chicago, IL
$ 30.00
Playfield - Other
YouBentMyWookie
 
€ 99.00
Lighting - Under Cabinet
Watssapen shop
 
7,500
Machine - For Sale
Matthews, NC
$ 10.00
Playfield - Toys/Add-ons
UpKick Pinball
 
$ 15.00
Playfield - Decals
Metal-Mods
 
$ 150.00
Lighting - Interactive
UpKick Pinball
 
$ 1,059.00
Flipper Parts
Mircoplayfields
 
$ 27.50
Boards
Pinball Haus
 
$ 49.99
Cabinet - Toppers
Lighted Pinball Mods
 
$ 79.99
Cabinet - Armor And Blades
PinGraffix Pinside Shop
 

You're currently viewing posts by Pinsider thiagomax.
Click here to go back to viewing the entire thread.

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?tu=thiagomax 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.