Skip to main content
NChai.1
Visitor II
October 16, 2021
Question

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.

  • October 16, 2021
  • 1 reply
  • 717 views

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

This topic has been closed for replies.

1 reply

John E KVAM
ST Employee
October 25, 2021

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