This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SERVICES Discovery between slave and BTOOL

Other Parts Discussed in Thread: CC2541

Hi EveryBody

I created a communication between a slave (cc2541 msp430 +) and a Masters (BTOOL).

I created a service on slave :

packet[0] = 0x01; //command
packet[1] = 0xFC;//opcode
packet[2] = 0xFD;//opcode
packet[3] = 0x05; parameter length
packet[4] = 0x00; // UUID (Primary Service)
packet[5] = 0x28; // UUID (Primary Service)
packet[6] = 0x02; // nbr d'attribut
packet[7] = 0x00; // nbr d'attribut
packet[8] = 0x07; //EncKeySize

I created attribute on slave :

packet[0] = 0x01;//command
packet[1] = 0xFE;//opcode
packet[2] = 0xFD;//opcode
packet[3] = 0x03;//parameter length
packet[4] = 0x00; // UUID (Primary Service)
packet[5] = 0x28; // UUID (Primary Service)
packet[6] = 0x01;//permission 

I received Statut Ok for each command

With Btool I send GATT_DiscAllPrimaryServices

I received this event on Slave

I want respond with my services with Att_ReadByGrpTypeRsp command

packet[0] = 0x01;//command
packet[1] = 0x11;//opcode
packet[2] = 0xFD;//opcode
packet[3] = 0x03;//parameter count
packet[4] = 0x01; // attribute length
packet[5] = 0x00;
packet[6] = 0x28;

But I have always ACK response : statut = 0x02 INVALIDPARAMETER

Can you help me please