cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to run vl53l3cx on yocto-linux using ST provided linux driver. The module is loaded and can read register through i2c. However, when I try to start range measurement, I have this error.

NChai.1
Associate

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

1 REPLY 1
John E KVAM
ST Employee

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.

  • john

If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.