cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L3CX BareDrive

Mika17
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
John E KVAM
ST Employee

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


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.

View solution in original post

1 REPLY 1
John E KVAM
ST Employee

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


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.