Skip to main content
Explorer
October 30, 2024
Solved

VL53L3CX BareDrive

  • October 30, 2024
  • 1 reply
  • 818 views

In vl53lx_platform.c  functions VL53LX_WriteMulti() and VL53LX_ReadMulti()  are taking care of the VL53LX_COMMS_CHUNK_SIZE which was set to 56.

So, data is send in telegram chunks if length exceeds this definition.

I'm wondering if this is due to VL53LX chip limitations or maybe the telegram length shouldn't  be too long for safe transmission or lack of transmission buffer size?

Best answer by John E KVAM

I'm pretty sure this was an example of how one could use an MCU that was incapable of sending more than 64 bytes in one I2C transfer. The sensor doesn't care, and an STM32 works find sending transfers of 0x8000. 

So change the chunksize to whatever you like, based on your MCU. 

I'm thinking the max transfer is 24 4-byte integers so maybe a CHUNKSIZE of 128 makes sense. 

 

- john

1 reply

John E KVAM
John E KVAMBest answer
ST Employee
November 5, 2024

I'm pretty sure this was an example of how one could use an MCU that was incapable of sending more than 64 bytes in one I2C transfer. The sensor doesn't care, and an STM32 works find sending transfers of 0x8000. 

So change the chunksize to whatever you like, based on your MCU. 

I'm thinking the max transfer is 24 4-byte integers so maybe a CHUNKSIZE of 128 makes sense. 

 

- john