How to use App upgrade lightning audio module?

My company was developed MFi Accessory(Lighning Audio Module, LAM), accorded to Apple MFi Specification that LAM accessory should use an External Accessoryprotocol for firmware update from Apple device. The match app, how to know need to update accessory's firmware? How to use External Accessory Protocol send firmware binary data to accessory?