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

Master Control Panel vs Gatttool

I'm in the process of migrating from SDK11 to SDK13. I have a custom UUID with 3 characteristics (2 notify chars for data and 1 r/w for sending commands), based off HRS and the LED command example.

I have it working now using Master Control Panel. I can connect, enable notifications, send commands, receive data etc.

HOWEVER, when I go to do the same thing from an off-the-shelf 4.0 bluetooth dongle and gatttool I can connect, and write to the characteristic configuration handle to enable notifications, but then I get a GATTC timeout (after about 6 seconds or so), and a BLE disconnect on my device.

Is there something that Master Control Panel is doing on connection that I need to manually do now with gatttool that is new to SDK13? (I have previously had this work with my prior revision on SDK11)

Command I'm presently using is:

gatttool -b {macID} -t random --char-write-req -a 0x{handle} -n 0100 --listen

Parents
  • Found it. HRS example was requesting MAX_MTU size. Since I don't yet need that and my laptop BLE dongle apparently does not yet support that, I have instead changed gatt configuration to the default, so it doesn't even attempt to issue an MTU request.

    ble_cfg.conn_cfg.params.gatt_conn_cfg.att_mtu = BLE_GATT_ATT_MTU_DEFAULT; //NRF_BLE_GATT_MAX_MTU_SIZE;
    
Reply
  • Found it. HRS example was requesting MAX_MTU size. Since I don't yet need that and my laptop BLE dongle apparently does not yet support that, I have instead changed gatt configuration to the default, so it doesn't even attempt to issue an MTU request.

    ble_cfg.conn_cfg.params.gatt_conn_cfg.att_mtu = BLE_GATT_ATT_MTU_DEFAULT; //NRF_BLE_GATT_MAX_MTU_SIZE;
    
Children
No Data
Related