2021-10-15 05:03 PM
root@yocto-linux:~# ./phio -s -Z=1 -S
[V]open fd 3 for /dev/stmvl53lx_ranging
[V]started status 0
[V]keep using fd 3
[ 195.463147] STMVL53LX IPP Err in send_client_msg 115 :fail to send data size 608 to pid 1
[ 195.463147]
[ 195.472822] STMVL53LX IPP Err in stmvl53lx_ipp_do 205 :fail to send msg -1
[ 195.479736] stmvl53lx_ipp_do_wrapper: stmvl53lx_ipp_do err -1
#I 0 dts= 0 range ts 168 StreamCount(0), SpadCount(0.00)
- [0] *NOTARGET* st 255 d=8191mm min/max=8191/8191 sigma= 0.00 rate= 0.00/ 0.00
[V]keep using fd 3
[V]stopped status 0
d cl end
Any idea? It seems like the error came from line 113 of stmvl53l1_ipp_nl.c,
rc = nlmsg_unicast(nl_sk, skb_out, daemon_pid);
Here is my setup.
System: NXP i.mx8m.
Kernel: 5.4.110
2021-10-25 02:38 PM
I'm going to guess you didn't start the daemon before running the phio code.
I didn't see much in the document saying you had to, so this is not surprising.
Look for the Android daemon directory, and get the VL53L3x daemon running.
After that it should work.