I am having problems using the MuxCtrl tool on WP85 (https://github.com/mangOH/MuxControl)
I can produce the binaries and install them onto my mangOH Green, but I am getting errors on running the mux
binary.
root@swi-mdm9x15:~# app runProc muxCtrlTools --exe=/legato/apps/9c08522aea925f495b2abb20f97ca8e4/read-only/bin/mux -- 1
Connecting to service ...
Error: Can't connect to muxCtrlService. Is it running?
The process is running:
root@swi-mdm9x15:~# ps fax
417 ? Ss 0:00 ./system/bin/startSystem
418 ? S< 0:00 \_ /legato/systems/current/bin/supervisor --no-daemonize
422 ? S< 0:00 \_ serviceDirectory
428 ? S< 0:00 \_ logCtrlDaemon
449 ? S< 0:02 \_ configTree
455 ? S< 0:00 \_ updateDaemon
465 ? S< 0:00 \_ watchdog
484 ? Sl 0:00 \_ audioDaemon
485 ? Sl 0:00 \_ avcDaemon
486 ? Sl 0:00 \_ cellNetService
487 ? Sl 0:00 \_ dcsDaemon
488 ? Sl 0:00 \_ fwupdateDaemon
489 ? S 0:00 \_ gpioService
491 ? Sl 0:00 \_ modemDaemon
492 ? Sl 0:00 \_ posDaemon
493 ? S 0:00 \_ powerManagerService
494 ? Sl 0:00 \_ secStore
496 ? S 0:00 \_ wifiService
4541 ? S 0:00 \_ muxCtrlService
I get the same thing running the binary directly:
root@swi-mdm9x15:~# /legato/apps/9c08522aea925f495b2abb20f97ca8e4/read-only/bin/mux 1
Connecting to service ...
Error: Can't connect to muxCtrlService. Is it running?
The muxCtrlService
appears to be running:
root@swi-mdm9x15:~# app status
[running] audioService
[running] avcService
[running] cellNetService
[running] dataConnectionService
[running] fwupdateService
[running] gpioService
[running] modemService
[running] positioningService
[running] powerMgr
[running] secStore
[stopped] smsInboxService
[stopped] tools
[stopped] voiceCallService
[stopped] wifi
[stopped] wifiApTest
[stopped] wifiClientTest
[running] wifiService
[stopped] wifiWebAp
[running] muxCtrlService
[stopped] muxCtrlTools
[stopped] bluetoothUtil
I am building muxCtrlService
and muxCtrlTools
like this:
echo $LEGATO_ROOT
/home/vagrant/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato
MANGOH_ROOT=/home/vagrant/mangoh_root mkapp --cflags="-I." -t wp85 muxCtrlService/muxCtrlService.adef
MANGOH_ROOT=/home/vagrant/mangoh_root mkapp --cflags="-I." -t wp85 tools/muxCtrlTools.adef
instapp muxCtrlService.wp85.update <ip>
instapp muxCtrlTools.wp85.update <ip>
To try and further understand what is happening, here is the (partial) output from strace:
root@swi-mdm9x15:~# strace /legato/apps/9c08522aea925f495b2abb20f97ca8e4/read-only/bin/mux 1
socket(PF_LOCAL, SOCK_SEQPACKET, 0) = 9
connect(9, {sa_family=AF_LOCAL, sun_path="/tmp/legato/serviceDirectoryClient"}, 110) = 0
sendmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"P\4\0\0c18113dd9a91662988aae1451bfb"..., 264}], msg_controllen=0, msg_flags=0}, 0) = 264
recvmsg(9, Error: Can't connect to muxCtrlService. Is it running?
<unfinished ...>
+++ exited with 1 +++
root@swi-mdm9x15:~# ls -l /tmp/legato/serviceDirectoryClient
srwxrwxrwx 1 root root 0 Jan 8 22:01 /tmp/legato/serviceDirectoryClient
Here is my legato version:
root@swi-mdm9x15:~# legato version
16.04.0_63633d9200de787b7c2a6dca03d2cff3_modified