2024-10-30 06:22 AM
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?
Solved! Go to Solution.
2024-11-05 08:52 AM
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
2024-11-05 08:52 AM
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