Maintian BLE link before starting HomeKit Firmware Update

Homekit BLE will disconnect if no data is exchanged for a period. But if I would like to perform a firmware update with my owm smart phone app, what is the appropirate operation to avoid disconnection before transmitting the image file? Perhaps keep sending some packet from iphone?