VL53L3CX BareDrive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-30 6: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.
- Labels:
-
Time of flight
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-05 8: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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-05 8: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
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.
