Hello and thanks for help.
I'm trying to do do some tests on mpf mc to undersdand the protocolol but I'm having troubles.
These are my steps:
- Downloaded and installed mpf 0.33x
- Created a machince folder with a basic config file
- Run mpf mc
- Sent some string on tcp
This is my config file:
#config_version=4
switches:
s_1:
number:
label:
tags: first
displays:
window:
width: 800
height: 600
slides:
welcome_slide:
widgets:
- type: text
text: PINBALL Lore!
font_size: 50
color: red
- type: rectangle
width: 240
height: 60
welcome_slide_2:
widgets:
- type: text
text: 2 PINBALL Lore 2!
font_size: 50
color: red
- type: rectangle
width: 240
height: 60
slide_player:
init_done: welcome_slide
sw_first: welcome_slide_2
keyboard:
l:
switch: s_1
And I send tcp message with a small software I found online called packet sender. I send strings to 127.0.0.1 port 5050
Whn I run: mpf both -X everything works well. It just change a slide when a push the "L" key.
Otherwise, if I run:
mpf mc -X
and then a try to send the string "hello?version=1.0" the software just closes.
Down below the terminal output:
mpf mc -X
kivy: Factory: 194 symbols loaded
kivy: Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
kivy: VideoGstplayer: Using Gstreamer 1.8.3.0
kivy: Video: Provider: gstplayer
kivy: Loading MPF-MC controller
mpfmc: Mission Pinball Framework Media Controller v0.33.6
mpfmc: Mission Pinball Framework Game Engine v0.33.28
mpfmc: Machine path: /home/lorenzo/Scrivania/mpf/tutorial_step_18_mod
mpfmc: Starting clock at 30.0Hz
kivy: Text: Provider: sdl2
kivy: OSC: using <multiprocessing> for socket
kivy: Window: Provider: sdl2(['window_egl_rpi'] ignored)
kivy: GL: Using the "OpenGL" graphics system
kivy: GL: Backend used <gl>
kivy: GL: OpenGL version <b'3.0 Mesa 12.0.6'>
kivy: GL: OpenGL vendor <b'Intel Open Source Technology Center'>
kivy: GL: OpenGL renderer <b'Mesa DRI Intel(R) Sandybridge Mobile '>
kivy: GL: OpenGL parsed version: 3, 0
kivy: GL: Shading version <b'1.30'>
kivy: GL: Texture max size <8192>
kivy: GL: Texture max units <16>
kivy: Window: auto add sdl2 input provider
kivy: Window: virtual keyboard not allowed, single mode, not docked
SoundSystem: SoundSystem: Using default 'sound_system' settings
AudioInterface: Initialized
SoundSystem: No audio tracks are specified in your machine config file. a track named 'default' has been created.
kivy: ProbeSysfs: device match: /dev/input/event5
kivy: MTD: Read event from </dev/input/event5>
kivy: Base: Start application main loop
kivy: MTD: Unable to open device "/dev/input/event5". Please ensure you have the appropriate permissions.
MPF-MC BCP Server: Starting up on localhost port 5050
MPF-MC BCP Server: Waiting for a connection...
kivy: GL: NPOT texture support is available
Then I try to send the "hello?version=1.0" string to 127.0.0.1 port 5050
MPF-MC BCP Server: Received connection from: 127.0.0.1:59989
mpfmc: Stopping...
mpfmc: Loop rate 40.2 Hz
kivy: Base: Leaving application in progress...
mpfmc: Stopping...
mpfmc: Loop rate 40.22 Hz
kivy: MC run loop ended.
kivy: Stopping child threads... (2 remaining)
MPF-MC BCP Server: Stopping BCP sending thread
kivy: All child threads stopped.Any help will be welcome
Thank you very much
Lorenzo