This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Unable to send consecutive commands to peripheral through bglib on C#

I am implementing Device Firmware Update using BGLib on C# using BLED112. When i am writing on the DFU Data point on Peripheral (which is a Nordic's nrf51 chipset), i need to provide atleast 100 ms delay between each 20bytes chunk. If i am providing less or no interval in between, peripheral is not recieving my data and refusing to execute the data chunk on Flash Page. My minimum and maximum connection interval is 8ms each (0x08 and 0x08), latency is 0 and timeout is 256 msec (0x100):

bglib.SendCommand(serialPort, bglib.BLECommandGAPConnectDirect(device.Value.sender, device.Value.address_type, 0x08, 0x08, 0x100, 0));

Can you provide me a way to reduce the inter-command delay because it is taking more than 12 minutes to transfer the whole firmware (almost 140KB).

Thank you.

Parents Reply Children
No Data
Related