Hello,
I have a project using CC2560B.
I have an issue with iPhone regarding Request App Launch.
A customer's app doesn't support app launch feature, so in the firmware that feature should be removed.
I am not sure how to remove that part.
Can I just fill with zeros like below in IAP2Info?
Thank you.
static const unsigned char IAP2Info[] =
{
/* Parameter: Name (utf8) */
0x00,0x12, /* Parameter Length (2 byte value) */
0x00,0x00, /* Parameter ID: 0 - Name */
'M','F','I',' ','A','c','c','e','s','s','o','r','y',0,
{
/* Parameter: Name (utf8) */
0x00,0x12, /* Parameter Length (2 byte value) */
0x00,0x00, /* Parameter ID: 0 - Name */
'M','F','I',' ','A','c','c','e','s','s','o','r','y',0,
/* Parameter: Model Identifier (utf8) */
0x00,0x0D, /* Parameter Length (2 byte value) */
0x00,0x01, /* Parameter ID: 1 - Model Identifier */
'M','y',' ','M','o','d','e','l',0,
0x00,0x0D, /* Parameter Length (2 byte value) */
0x00,0x01, /* Parameter ID: 1 - Model Identifier */
'M','y',' ','M','o','d','e','l',0,
/* Parameter: Manufacturer (utf8) */
0x00,0x0E, /* Parameter Length (2 byte value) */
0x00,0x02, /* Parameter ID: 2 - Manufacturer */
'D','e','m','o',' ','C','o','r','p',0,
0x00,0x0E, /* Parameter Length (2 byte value) */
0x00,0x02, /* Parameter ID: 2 - Manufacturer */
'D','e','m','o',' ','C','o','r','p',0,
/* Parameter: Serial Number (utf8) */
0x00,0x0E, /* Parameter Length (2 byte value) */
0x00,0x03, /* Parameter ID: 3 - Serial Number */
'1','2','3','4','5','6','7','8','9',0,
0x00,0x0E, /* Parameter Length (2 byte value) */
0x00,0x03, /* Parameter ID: 3 - Serial Number */
'1','2','3','4','5','6','7','8','9',0,
/* Parameter: Firmware Version (utf8) */
0x00,0x0A, /* Parameter Length (2 byte value) */
0x00,0x04, /* Parameter ID: 4 - Acc. Firmware Version */
'1','.','0','.','0',0,
0x00,0x0A, /* Parameter Length (2 byte value) */
0x00,0x04, /* Parameter ID: 4 - Acc. Firmware Version */
'1','.','0','.','0',0,
/* Parameter: Hardware Version (utf8) */
0x00,0x0A, /* Parameter Length (2 byte value) */
0x00,0x05, /* Parameter ID: 5 - Acc. Hardware Version */
'2','.','0','.','0',0,
0x00,0x0A, /* Parameter Length (2 byte value) */
0x00,0x05, /* Parameter ID: 5 - Acc. Hardware Version */
'2','.','0','.','0',0,
/* Parameter: Messages Sent By Accessory (blob) */
//0x00,0x06, /* Parameter Length (2 byte value) */
//0x00,0x06, /* Parameter ID: 6 - Messages Sent By Acc */
//0xEA,0x02, /* Message: 0xEA02 - App Launch */
//0x00,0x06, /* Parameter Length (2 byte value) */
//0x00,0x06, /* Parameter ID: 6 - Messages Sent By Acc */
//0xEA,0x02, /* Message: 0xEA02 - App Launch */
0x00,0x06, /* Parameter Length (2 byte value) */
0x00,0x00, /* Parameter ID: 6 - Messages Sent By Acc */
0x00,0x00, /* Message: 0xEA02 - App Launch */
0x00,0x00, /* Parameter ID: 6 - Messages Sent By Acc */
0x00,0x00, /* Message: 0xEA02 - App Launch */
/* Parameter: Messages Received From Device (blob) */
0x00,0x08, /* Parameter Length (2 byte value) */
0x00,0x07, /* Parameter ID: 7 - Messages Received */
/* From Device */
0xEA,0x00, /* Msg: External Accessory Protocol Start */
0xEA,0x01, /* Msg: External Accessory Protocol Stop */
0x00,0x08, /* Parameter Length (2 byte value) */
0x00,0x07, /* Parameter ID: 7 - Messages Received */
/* From Device */
0xEA,0x00, /* Msg: External Accessory Protocol Start */
0xEA,0x01, /* Msg: External Accessory Protocol Stop */
/* Parameter: Power Source Type (enum) */
0x00,0x05, /* Parameter Length (2 byte value) */
0x00,0x08, /* Parameter ID: 8 - Power Source Type */
0x00, /* Power Source Type: 0 (None) */
0x00,0x05, /* Parameter Length (2 byte value) */
0x00,0x08, /* Parameter ID: 8 - Power Source Type */
0x00, /* Power Source Type: 0 (None) */
/* Parameter: Maximum Current Drawn From Device (uint16) */
0x00,0x06, /* Parameter Length (2 byte value) */
0x00,0x09, /* Parameter ID: 9 - Max Current Drawn */
0x00,0x00, /* Maximum Current Drawn: 0 mA */
0x00,0x06, /* Parameter Length (2 byte value) */
0x00,0x09, /* Parameter ID: 9 - Max Current Drawn */
0x00,0x00, /* Maximum Current Drawn: 0 mA */
/*********************************************************************/
/* Parameter Group: Supported External Accessory Protocol */
/*********************************************************************/
0x00,0x20, /* Parameter Group Length (2 byte value) */
0x00,0x0A, /* Param. Group ID: Supported EA Protocol */
/* Parameter Group: Supported External Accessory Protocol */
/*********************************************************************/
0x00,0x20, /* Parameter Group Length (2 byte value) */
0x00,0x0A, /* Param. Group ID: Supported EA Protocol */
/* Parameter: External Accessory Protocol Identifier (uint8) */
0x00,0x05, /* Parameter Length (2 byte value) */
0x00,0x00, /* Parameter ID: 0 - Protocol Identifier */
0x01, /* Protocol Identifier: 1 */
0x00,0x05, /* Parameter Length (2 byte value) */
0x00,0x00, /* Parameter ID: 0 - Protocol Identifier */
0x01, /* Protocol Identifier: 1 */
/* Parameter: External Accessory Protocol Name (utf8) */
0x00,0x12, /* Parameter Length (2 byte value) */
0x00,0x01, /* Parameter ID: 1 - Protocol Name */
'c','o','m','.','d','e','m','o','.','d','a','t','a',0,
0x00,0x12, /* Parameter Length (2 byte value) */
0x00,0x01, /* Parameter ID: 1 - Protocol Name */
'c','o','m','.','d','e','m','o','.','d','a','t','a',0,
/* Parameter: External Accessory Protocol Match Action (enum) */
0x00,0x05, /* Parameter Length (2 byte value) */
0x00,0x02, /* Parameter ID: 2 - Match Action */
0x00, /* The device will not attempt to find a */
/* matching app, nor will there be a "Find */
/* App For This Accessory" button in */
/* Settings > General > About > Accessory. */
/*********************************************************************/
/* End Parameter Group */
/*********************************************************************/
0x00,0x05, /* Parameter Length (2 byte value) */
0x00,0x02, /* Parameter ID: 2 - Match Action */
0x00, /* The device will not attempt to find a */
/* matching app, nor will there be a "Find */
/* App For This Accessory" button in */
/* Settings > General > About > Accessory. */
/*********************************************************************/
/* End Parameter Group */
/*********************************************************************/
/*********************************************************************/
/* Parameter Group: Supported External Accessory Protocol */
/*********************************************************************/
0x00,0x23, /* Parameter Group Length (2 byte value) */
0x00,0x0A, /* Param. Group ID: Supported EA Protocol */
/* Parameter Group: Supported External Accessory Protocol */
/*********************************************************************/
0x00,0x23, /* Parameter Group Length (2 byte value) */
0x00,0x0A, /* Param. Group ID: Supported EA Protocol */
/* Parameter: External Accessory Protocol Identifier (uint8) */
0x00,0x05, /* Parameter Length (2 byte value) */
0x00,0x00, /* Parameter ID: 0 - Protocol Identifier */
0x02, /* Protocol Identifier: 2 */
0x00,0x05, /* Parameter Length (2 byte value) */
0x00,0x00, /* Parameter ID: 0 - Protocol Identifier */
0x02, /* Protocol Identifier: 2 */
/* Parameter: External Accessory Protocol Name (utf8) */
0x00,0x15, /* Parameter Length (2 byte value) */
0x00,0x01, /* Parameter ID: 1 - Protocol Name */
'c','o','m','.','d','e','m','o','.','c','o','n','t','r','o','l',0,
0x00,0x15, /* Parameter Length (2 byte value) */
0x00,0x01, /* Parameter ID: 1 - Protocol Name */
'c','o','m','.','d','e','m','o','.','c','o','n','t','r','o','l',0,
/* Parameter: External Accessory Protocol Match Action (enum) */
0x00,0x05, /* Parameter Length (2 byte value) */
0x00,0x02, /* Parameter ID: 2 - Match Action */
0x00, /* The device will not attempt to find a */
/* matching app, nor will there be a "Find */
/* App For This Accessory" button in */
/* Settings > General > About > Accessory. */
/*********************************************************************/
/* End Parameter Group */
/*********************************************************************/
0x00,0x05, /* Parameter Length (2 byte value) */
0x00,0x02, /* Parameter ID: 2 - Match Action */
0x00, /* The device will not attempt to find a */
/* matching app, nor will there be a "Find */
/* App For This Accessory" button in */
/* Settings > General > About > Accessory. */
/*********************************************************************/
/* End Parameter Group */
/*********************************************************************/
/* Parameter: App Match Team ID (utf8) */
0x00,0x0F, /* Parameter Length (2 byte value) */
0x00,0x0b, /* Parameter ID: 11 - Current Language */
'1','2','3','4','5','A','B','C','D','E',0,
0x00,0x0F, /* Parameter Length (2 byte value) */
0x00,0x0b, /* Parameter ID: 11 - Current Language */
'1','2','3','4','5','A','B','C','D','E',0,
/* Parameter: Current Language (utf8) */
0x00,0x07, /* Parameter Length (2 byte value) */
0x00,0x0C, /* Parameter ID: 12 - Current Language */
'e','n',0,
0x00,0x07, /* Parameter Length (2 byte value) */
0x00,0x0C, /* Parameter ID: 12 - Current Language */
'e','n',0,
/* Parameter: Supported Languages (utf8) */
0x00,0x07, /* Parameter Length (2 byte value) */
0x00,0x0D, /* Parameter ID: 13 - Supported Languages */
'e','n',0,
};
0x00,0x07, /* Parameter Length (2 byte value) */
0x00,0x0D, /* Parameter ID: 13 - Supported Languages */
'e','n',0,
};