You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is really informational. I'm new to this and needed a little help understanding how the UART Image Transfer sends multiple packets for the image. I followed the chain but don't see where it loops through the data to send.
You are close to the answer. If you check inside uartSentPacket you will see that it splits the data and calls itself recursively until all the image data has been sent (or the process has been cancelled).
So to sent a new image:
uartSendEachPacketSequentially calls uartSentPacket the image data and a starting offset of 0.
uartSendPacket splits the data depending on the maximum transfer unit (MTU) negotiated with the peripheral and
calls write with that packet. When write finishes uartSendPacket calls itself recursively but with a new starting offset.
This is really informational. I'm new to this and needed a little help understanding how the UART Image Transfer sends multiple packets for the image. I followed the chain but don't see where it loops through the data to send.
ImageTransferModuleManager -> sendImage
ImageTransferModuleManager -> sendCommandWithCrc
ImageTransferModuleManager -> sendCommand
UartPacketManager -> sendEachPacketSequentially
BlePeripheral -> uartSendEachPacketSequentially
BlePeripheral -> uartSentPacket
BlePeripheral -> write
It seems like UartPacketManager -> sendEachPacketSequentially should do it but I only see:
or
I'm not seeing where you loop through the image data.
The text was updated successfully, but these errors were encountered: