generating greio events in ARM Linux

Hi,

I'm attempting to port our application from QNX to Linux (beaglebone black) and I've run into an issue.  It seems my application is not generating any greio events.  I've tried our app as well as the Thermostat IO app.  The thermostat app will not generate any output events our run any of the lua scripts.  I think the input device is configured correcty, as I see these events:


EVENT [361.594]:IO: Dispatch [gre.press]
EVENT [361.594]:IO: Queue [0] gre.press
EVENT [361.665]:IO: Dispatch [gre.release]
EVENT [361.665]:IO: Queue [0] gre.release

when I run the apps on Windows, I see this in the debug output 

EVENT [44.357]:IO: Queue [1] gre.press
EVENT [44.357]:IO: Dispatch [gre.press]
EVENT [45.452]:IO: Queue [1] gre.release
EVENT [45.452]:IO: Dispatch [gre.release]
ACTION [45.452]:ACTION: Invoke [gre.release]->[gra.greio] on control [btn_utilities]
ERROR [45.453]:Can't open greio channel [VIC_controller] 2

on the Linux platform, no ACTION items appear. the same output occurs on the Thermostat example app.

I can send GREIO events to my application, both through our code and with the iogen program, so it seems the messaging is working (SysV messaging according to the manual)

Running as root has the same effect.

I also tried this command line switch:  -ogreio,queue, with no effect.

The command line I'm using and all debug output is here:

debian@beaglebone:/usr/VIC$ /usr/VIC/crank/bin/sbengine -odev-input,mouse=/dev/input/event6 -orender-mgr,fullscreen -vvvvv /home/debian/surgeon-console-software-linux/crankgui/VIC_2018/VIC_2018.gapp &
[7] 18843
debian@beaglebone:/usr/VIC$ INFO [0.003]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-lua.so]
INFO [0.004]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-poly.so]
INFO [0.009]:Detected plugin [/usr/VIC/crank/plugins/librender-plugin-fbdev.so]
INFO [0.014]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-audio.so]
INFO [0.021]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-dev-input.so]
INFO [0.022]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-timer.so]
INFO [0.023]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-capture-playback.so]
INFO [0.025]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-rext-external.so]
INFO [0.026]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-logger.so]
INFO [0.027]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-event-redirect.so]
INFO [0.028]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-canvas.so]
INFO [0.029]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-system.so]
WARN [0.031]:Unable to load plugin: /usr/VIC/crank/plugins/libgre-plugin-ffmpeg.so Error: libavformat.so.53: cannot open shared object file: No such file or directory
INFO [0.032]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-gesture.so]
INFO [0.033]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-rtext.so]
INFO [0.034]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-greio.so]
INFO [0.035]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-screen-scale.so]
INFO [0.037]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-circle.so]
INFO [0.038]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-media.so]
INFO [0.039]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-screen-path.so]
INFO [0.040]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-animation.so]
WARN [0.041]:Unable to load plugin: /usr/VIC/crank/plugins/libgre-plugin-tslib.so Error: libts-1.0.so.0: cannot open shared object file: No such file or directory
INFO [0.042]:Detected plugin [/usr/VIC/crank/plugins/libgre-plugin-screen-dump.so]
DIAG [0.042]:Manager: data_mgr Internal: 0xb6ebce1d
DIAG [0.050]:Manager: model_mgr Internal: 0xb6eba2f5
DIAG [0.051]:Manager: io_mgr Internal: 0xb6ec4257
DIAG [0.051]:Manager: timer_mgr Internal: 0xb6ebd689
DIAG [0.052]:Manager: fio_mgr Internal: 0xb6ec3a95
DIAG [0.052]:Manager: action_mgr Internal: 0xb6ec4f35
DIAG [0.053]:Manager: render_mgr Plugin: /usr/VIC/crank/plugins/librender-plugin-fbdev.so
DIAG [0.053]:Manager: screen_mgr Internal: 0xb6ec2a9f
DIAG [0.054]:Manager: resource_mgr Internal: 0xb6ebfe8d
DIAG [0.054]:Initialize Data Manager []
DIAG [0.054]:Initialize Model Manager []
DIAG [0.055]:Initialize IO Manager []
DIAG [0.056]:Initialize Timer Manager []
DIAG [0.056]:Initialize File IO Manager []
DIAG [0.056]:Initialize Action Manager []
DIAG [0.057]:Initialize Render Manager []
DIAG [0.057]:Initialize Screen Manager []
DIAG [0.058]:Initialize Resource Manager []
INFO [0.059]:Initialize plugin [logger (5.2.0.27417)] []
INFO [0.059]:Initialize plugin [lua (5.2.0.27417)] []
INFO [0.061]:Initialize plugin [poly (5.2.0.27417)] []
INFO [0.062]:Initialize plugin [audio (5.2.0.27417)] []
INFO [0.062]:Initialize plugin [dev-input (5.2.0.27417)] [mouse=/dev/input/event6]
INFO [0.062]:Initialize plugin [timer (5.2.0.27417)] []
INFO [0.063]:Initialize plugin [capture_playback (5.2.0.27417)] []
INFO [0.064]:Initialize plugin [rext-external (5.2.0.120)] []
INFO [0.064]:Initialize plugin [redirect (5.2.0.27417)] []
INFO [0.072]:Initialize plugin [canvas (5.2.0.27417)] []
INFO [0.072]:Initialize plugin [system (5.2.0.27417)] []
INFO [0.073]:Initialize plugin [gesture (5.2.0.27417)] []
INFO [0.074]:Initialize plugin [rtext (5.2.0.27417)] []
INFO [0.074]:Initialize plugin [greio (5.2.0.27417)] []
INFO [0.076]:Initialize plugin [screen-scale (5.2.0.27417)] []
INFO [0.076]:Initialize plugin [circle (5.2.0.27417)] []
INFO [0.076]:Initialize plugin [media (5.2.0.27417)] []
INFO [0.076]:Initialize plugin [screen-path (5.2.0.27417)] []
INFO [0.076]:Initialize plugin [animation (5.2.0.27417)] []
INFO [0.076]:Initialize plugin [screen-dump (5.2.0.27417)] []
EVENT [0.370]:IO: Dispatch [gre.internalinit]
DIAG [0.371]:No device specified, using default /dev/fb0
WARN [0.371]:Framebuffer format mismatch requested 32 using 40
EVENT [0.373]:IO: Queue [1] gre.init
EVENT [0.378]:SBIO: Receiver registered @ [application]
EVENT [0.379]:IO: Dispatch [gre.init]
EVENT [0.380]:IO: Queue [2] gre.screenshow.pre
EVENT [1.122]:IO: Queue [3] gre.screenshow.post
EVENT [1.123]:IO: Dispatch [gre.screenshow.pre]
ACTION [1.123]:ACTION: Invoke [gre.screenshow.pre]->[gra.datachange] on screen [surgery_screen]
EVENT [1.123]:IO: Dispatch [gre.screenshow.post]

0

Comments

1 comment
  • Official comment

    Hello Jason,

    I am going to suggest that we open a support case for you so we can assist further. Let me do that and we will be in touch through that channel shortly.

    One thing you may want to check is that the Storyboard IO channel names that you are configuring are consistent on each end.

    In your examples above you are not specifying any inbound 'listen' channel name for your application. It can be set on the sbengine launch parameter as follows:

    -ogreio,channel=[name] 

    https://support.cranksoftware.com/hc/en-us/articles/360056945652-Storyboard-Engine-Plugin-Options

    In the Designer simulation environment this is set on the Storyboard Simulator Configurations tdialog

    Hopefully this helps with your debugging in the interim.

    Regards,

    Garry

Please sign in to leave a comment.

Didn't find what you were looking for?

New post