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

nrfConnect - DFU Option not shown but DFU Service is running

Hello,

i try to use the nrfConnect (PC version) to update my devices via DFU. The DFU service is running on the device (update with Andoid nrfToolbox works without any problems). But the nrfConnect SW does not show the DFU Button. Whats going wrong?

Thanks!

Parents
  • MCP should work with any nRF51 and nRF52 DK. Could you try with the DK ?

    nRFConnect doesn't support legacy DFU.

    Note that the DFU code that MCP uses is written in python and you can see and use the source code inside C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.10.0.14\lib\nordicsemi\dfu .

    You may think of using the python code directly.

Reply
  • MCP should work with any nRF51 and nRF52 DK. Could you try with the DK ?

    nRFConnect doesn't support legacy DFU.

    Note that the DFU code that MCP uses is written in python and you can see and use the source code inside C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.10.0.14\lib\nordicsemi\dfu .

    You may think of using the python code directly.

Children
  • Sorry, i have clicked the wrong link. I would not convert your comment to an answer but it can not be undone... Which connectivity firmware should be used for the MCP with nRF51DK or nRF52DK? I have tried with the build in master emulator and nrf51DK but this dont work. The bootloader at my device is started but the upload does not start. Message: "Error during firmware upload. Data could not be send - failed!", the Log contain a message "Failed to reopen transport backend.". If this work, than i need some hints how to call the python script for a PC controlled update via a CMD file or script file.

  • I seems to be the bootloader on the device is started, the connection by MCP ist lost (due to invoking the bootloader) and there is no new connection establishment to the DFU device. Than i have try to connect to the already running DFU, but the connection is terminated during the service discovery. Perhaps it is better to convert this conversation to a support case? The benefit is, i can send you log - files or screen shots.

  • @AD1170: If there is no confidential info you can upload your log here by editing your question.

    I would need you to make sure you can use the MCP and nRF51DK without problem. Leave DFU aside, could you try to test any example in the SDK, ble_app_hrs for example, and keep them connected for a few minutes.

    " the connection is terminated during the service discovery" => Please attach log.

    Please try to test with just the DFU bootloader, don't flash your application. Try to do a DFU with application image from one of our example.

    Which SDK are you using ? We don't have SDK v8.9.

  • I can connect with the MCP to my application, service dicovery works and the connection is hold for any time. Is this statement sufficent or should i try to connet to your hrm example.

  • Here is the last part of the Log file when i try the FW download:

        1530;16:12:26.3167 [681093730][MainThread] Connecting
    1531;16:12:26.3437 [681093730][MainThread] Enter Connect
    1532;16:12:26.3487 [681093730][MainThread] TST-Client: Sending Create LL connection to D26DC4210772
    1533;16:12:26.3687 [681093730][MainThread] HCI command: BTLE_CMD_LE_CREATE_CONNECTION, ConnIntervalMin: 20ms, ConnIntervalMax: 20ms, SupervisionTimeout: 3000ms, PeerAddress: 0x72-07-21-C4-6D-D2, PeerAddressType: BTLE_ADDR_TYPE_RANDOM, OwnAddressType: BTLE_ADDR_TYPE_PUBLIC, ConnLatency: 0, ScanInterval: 250ms, ScanWindow: 200ms, FilterPolicy: BTLE_INITIATOR_FILTER_SKIP_WHITELIST, MinCeLength: 160, MaxCeLength: 160
    1534;16:12:26.3697 [681093730][MainThread] Serial port write: 01-0D-20-19-90-01-40-01-00-01-72-07-21-C4-6D-D2-00-10-00-10-00-00-00-2C-01-A0-00-A0-00
    1535;16:12:26.3717 [681093730][ReadPacketQueueThread] Serial port read: 04-0F-04-00-01-0D-20
    1536;16:12:26.3717 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_COMMAND_STATUS, OpCode: BTLE_CMD_LE_CREATE_CONNECTION, Status: BTLE_STATUS_CODE_SUCCESS
    1537;16:12:26.3817 [681093730][ReadPacketQueueThread] Serial port read: 04-3E-13-01-00-00-00-00-01-72-07-21-C4-6D-D2-10-00-00-00-2C-01-01
    1538;16:12:26.3817 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_LE_CONNECTION_COMPLETE, Status: BTLE_STATUS_CODE_SUCCESS, ConnectionHandle: 0x0000, Role: BTLE_CONNECTION_ROLE_MASTER, AddressType: BTLE_ADDR_TYPE_RANDOM, PeerAddress: 0xD26DC4210772, ConnectionInterval: 20ms, Latency: 0, Timeout: 3000ms, ClockAccuracy: BTLE_CLOCK_ACCURACY_250_PPM
    1539;16:12:26.3857 [681093730][MainThread] TST-Client: Waiting for LL Connection Created Event
    1540;16:12:26.4007 [681093730][MainThread] TST-Client: Connection created successful. ConnectionId: 0
    1541;16:12:26.4097 [681093730][MainThread] ----------------------------
    Connected to device
    PeerAddress: 0xD26DC4210772
    Connection Interval: 20ms
    Connection Latency: 0
    Supervision Timeout: 3000ms
    ----------------------------
    1542;16:12:26.4097 [681093730][MainThread] [16:12:26.409] [Emulator] Connected to D26DC4210772
    
    1543;16:12:26.4097 [681093730][MainThread] Connected to D26DC4210772
    1544;16:12:26.4117 [681093730][ReadPacketQueueThread] [16:12:26.411] Connected to peer device
    
    1545;16:12:26.4357 [681093730][MainThread] [16:12:26.435] --- Connected ---
    
    1546;16:12:26.4447 [681093730][MainThread] [16:12:26.444] [Emulator] Discover pipes
    
    1547;16:12:26.4447 [681093730][MainThread] Discover pipes
    1548;16:12:26.4517 [681093730][] SERVER: Received packet <HciEvent: eventCode=0x05> - <HciEvent: eventCode=0x05>
    1549;16:12:26.4607 [681093730][] DeviceDiscovered worker completed
    1550;16:12:26.4787 [681093730][MainThread] GATT: Discovering all Primary Services of type 0x15301212EFDE1523785FEABCD123
    1551;16:12:26.4827 [681093730][MainThread] GATT: Sending Find By Type Value Request, start handle 0x0001
    1552;16:12:26.5167 [681093730][MainThread] WRITE DATA PACKET:17-00-04-00-06-01-00-FF-FF-00-28-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-30-15-00-00
    1553;16:12:26.5177 [681093730][MainThread] Sending packet: AttFindByTypeValueRequest, 06-01-00-FF-FF-00-28-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-30-15-00-00, StartHandle: 0x0001, EndHandle: 0xFFFF, AttributeType: 0x2800, AttributeValue: 23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-30-15-00-00
    1554;16:12:26.5177 [681093730][MainThread] Serial port write: 02-00-00-1B-00-17-00-04-00-06-01-00-FF-FF-00-28-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-30-15-00-00
    1555;16:12:26.5177 [681093730][MainThread] Data buffer queue length (+1): 1 
    1556;16:12:26.5177 [681093730][MainThread] Number of data packets sent: 1
    1557;16:12:26.5257 [681093730][ReadPacketQueueThread] Serial port read: 04-13-05-01-00-00-01-00
    1558;16:12:26.5257 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS, NumberOfHandles: 1, ConnectionHandle: 0x0000, NumberOfPackets: 1
    1559;16:12:26.5257 [681093730][ReadPacketQueueThread] Data buffer queue length: 0
    1560;16:12:26.5437 [681093730][ReadPacketQueueThread] Serial port read: 02-00-20-09-00-05-00-04-00-07-2E-00-FF-FF
    1561;16:12:26.5457 [681093730][ReadPacketQueueThread] Received packet: AttFindByTypeValueResponse, 07-2E-00-FF-FF, FoundAttributeHandle: 0x002E, GroupEndHandle: 0xFFFF 
    1562;16:12:26.6047 [681093730][MainThread] GATT: Received <class 'protocol.Att.AttFindByTypeValueResponse'> - [0x07, 0x2E, 0x00, 0xFF, 0xFF]
    1563;16:12:26.6047 [681093730][MainThread] GATT: Received Find By Type Value Response
    1564;16:12:26.6047 [681093730][MainThread] GATT: Found Service handle start 0x002E and end 0xFFFF
    1565;16:12:26.6527 [681093730][MainThread] GATT: Discovering all Characteristics of service 0x15301212EFDE1523785FEABCD123
    1566;16:12:26.6527 [681093730][MainThread] GATT: Sending Read By Type Request, start handle 0x002F
    1567;16:12:26.6667 [681093730][MainThread] WRITE DATA PACKET:07-00-04-00-08-2F-00-FF-FF-03-28
    1568;16:12:26.6677 [681093730][MainThread] Sending packet: AttReadByTypeRequest, 08-2F-00-FF-FF-03-28, StartHandle: 0x002F, EndHandle: 0xFFFF, AttributeType: 0x2803
    1569;16:12:26.6677 [681093730][MainThread] Serial port write: 02-00-00-0B-00-07-00-04-00-08-2F-00-FF-FF-03-28
    1570;16:12:26.6677 [681093730][MainThread] Data buffer queue length (+1): 1 
    1571;16:12:26.6677 [681093730][MainThread] Number of data packets sent: 2
    1572;16:12:26.7037 [681093730][ReadPacketQueueThread] Serial port read: 04-13-05-01-00-00-01-00
    1573;16:12:26.7037 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS, NumberOfHandles: 1, ConnectionHandle: 0x0000, NumberOfPackets: 1
    1574;16:12:26.7037 [681093730][ReadPacketQueueThread] Data buffer queue length: 0
    1575;16:12:26.7237 [681093730][ReadPacketQueueThread] Serial port read: 02-00-20-1B-00-17-00-04-00-09-15-2F-00-04-30-00-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-32-15-00-00
    1576;16:12:26.7257 [681093730][ReadPacketQueueThread] Received packet: AttReadByTypeResponse, 09-15-2F-00-04-30-00-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-32-15-00-00, Length: 21, Handle: 0x002F, Value: 04-30-00-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-32-15-00-00 
    1577;16:12:26.7477 [681093730][MainThread] GATT: Received <class 'protocol.Att.AttReadByTypeResponse'> - [0x09, 0x15, 0x2F, 0x00, 0x04, 0x30, 0x00, 0x23, 0xD1, 0xBC, 0xEA, 0x5F, 0x78, 0x23, 0x15, 0xDE, 0xEF, 0x12, 0x12, 0x32, 0x15, 0x00, 0x00]
    1578;16:12:26.7477 [681093730][MainThread] GATT: Received Read By Type Response
    1579;16:12:26.7677 [681093730][MainThread] GATT: Sending Read By Type Request, start handle 0x0030
    1580;16:12:26.7687 [681093730][MainThread] WRITE DATA PACKET:07-00-04-00-08-30-00-FF-FF-03-28
    1581;16:12:26.7687 [681093730][MainThread] Sending packet: AttReadByTypeRequest, 08-30-00-FF-FF-03-28, StartHandle: 0x0030, EndHandle: 0xFFFF, AttributeType: 0x2803
    1582;16:12:26.7687 [681093730][MainThread] Serial port write: 02-00-00-0B-00-07-00-04-00-08-30-00-FF-FF-03-28
    1583;16:12:26.7687 [681093730][MainThread] Data buffer queue length (+1): 1 
    1584;16:12:26.7687 [681093730][MainThread] Number of data packets sent: 3
    1585;16:12:26.7837 [681093730][ReadPacketQueueThread] Serial port read: 04-13-05-01-00-00-01-00
    1586;16:12:26.7837 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS, NumberOfHandles: 1, ConnectionHandle: 0x0000, NumberOfPackets: 1
    1587;16:12:26.7837 [681093730][ReadPacketQueueThread] Data buffer queue length: 0
    1588;16:12:26.8037 [681093730][ReadPacketQueueThread] Serial port read: 02-00-20-1B-00-17-00-04-00-09-15-31-00-18-32-00-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-31-15-00-00
    1589;16:12:26.8037 [681093730][ReadPacketQueueThread] Received packet: AttReadByTypeResponse, 09-15-31-00-18-32-00-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-31-15-00-00, Length: 21, Handle: 0x0031, Value: 18-32-00-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-31-15-00-00 
    1590;16:12:26.8067 [681093730][MainThread] GATT: Received <class 'protocol.Att.AttReadByTypeResponse'> - [0x09, 0x15, 0x31, 0x00, 0x18, 0x32, 0x00, 0x23, 0xD1, 0xBC, 0xEA, 0x5F, 0x78, 0x23, 0x15, 0xDE, 0xEF, 0x12, 0x12, 0x31, 0x15, 0x00, 0x00]
    1591;16:12:26.8067 [681093730][MainThread] GATT: Received Read By Type Response
    1592;16:12:26.8067 [681093730][MainThread] GATT: Sending Read By Type Request, start handle 0x0032
    1593;16:12:26.8067 [681093730][MainThread] WRITE DATA PACKET:07-00-04-00-08-32-00-FF-FF-03-28
    1594;16:12:26.8067 [681093730][MainThread] Sending packet: AttReadByTypeRequest, 08-32-00-FF-FF-03-28, StartHandle: 0x0032, EndHandle: 0xFFFF, AttributeType: 0x2803
    1595;16:12:26.8067 [681093730][MainThread] Serial port write: 02-00-00-0B-00-07-00-04-00-08-32-00-FF-FF-03-28
    1596;16:12:26.8067 [681093730][MainThread] Data buffer queue length (+1): 1 
    1597;16:12:26.8067 [681093730][MainThread] Number of data packets sent: 4
    1598;16:12:26.8237 [681093730][ReadPacketQueueThread] Serial port read: 04-13-05-01-00-00-01-00
    1599;16:12:26.8237 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS, NumberOfHandles: 1, ConnectionHandle: 0x0000, NumberOfPackets: 1
    1600;16:12:26.8237 [681093730][ReadPacketQueueThread] Data buffer queue length: 0
    1601;16:12:26.8437 [681093730][ReadPacketQueueThread] Serial port read: 02-00-20-1B-00-17-00-04-00-09-15-34-00-02-35-00-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-34-15-00-00
    1602;16:12:26.8437 [681093730][ReadPacketQueueThread] Received packet: AttReadByTypeResponse, 09-15-34-00-02-35-00-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-34-15-00-00, Length: 21, Handle: 0x0034, Value: 02-35-00-23-D1-BC-EA-5F-78-23-15-DE-EF-12-12-34-15-00-00 
    1603;16:12:26.8527 [681093730][MainThread] GATT: Received <class 'protocol.Att.AttReadByTypeResponse'> - [0x09, 0x15, 0x34, 0x00, 0x02, 0x35, 0x00, 0x23, 0xD1, 0xBC, 0xEA, 0x5F, 0x78, 0x23, 0x15, 0xDE, 0xEF, 0x12, 0x12, 0x34, 0x15, 0x00, 0x00]
    1604;16:12:26.8527 [681093730][MainThread] GATT: Received Read By Type Response
    1605;16:12:26.8527 [681093730][MainThread] GATT: Sending Read By Type Request, start handle 0x0035
    1606;16:12:26.8527 [681093730][MainThread] WRITE DATA PACKET:07-00-04-00-08-35-00-FF-FF-03-28
    1607;16:12:26.8527 [681093730][MainThread] Sending packet: AttReadByTypeRequest, 08-35-00-FF-FF-03-28, StartHandle: 0x0035, EndHandle: 0xFFFF, AttributeType: 0x2803
    1608;16:12:26.8527 [681093730][MainThread] Serial port write: 02-00-00-0B-00-07-00-04-00-08-35-00-FF-FF-03-28
    1609;16:12:26.8527 [681093730][MainThread] Data buffer queue length (+1): 1 
    1610;16:12:26.8527 [681093730][MainThread] Number of data packets sent: 5
    1611;16:12:26.8637 [681093730][ReadPacketQueueThread] Serial port read: 04-13-05-01-00-00-01-00
    1612;16:12:26.8637 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS, NumberOfHandles: 1, ConnectionHandle: 0x0000, NumberOfPackets: 1
    1613;16:12:26.8637 [681093730][ReadPacketQueueThread] Data buffer queue length: 0
    1614;16:12:26.8837 [681093730][ReadPacketQueueThread] Serial port read: 02-00-20-09-00-05-00-04-00-01-08-35-00-0A
    1615;16:12:26.8837 [681093730][ReadPacketQueueThread] Received packet: AttErrorResponse, 01-08-35-00-0A, OpCode: ReadByTypeRequest, Handle: 0x0035, ErrorCode: AttributeNotFound
    1616;16:12:26.8997 [681093730][MainThread] GATT: Received <class 'protocol.Att.AttErrorResponse'> - [0x01, 0x08, 0x35, 0x00, 0x0A]
    1617;16:12:26.9007 [681093730][MainThread] GATT: Received Error Response on handle 0x0035 reason 0x0A
    1618;16:12:26.9197 [681093730][MainThread] Found characteristic with matching uuid (0x15321212EFDE1523785FEABCD123)
    1619;16:12:26.9207 [681093730][MainThread] [16:12:26.920] [Emulator] Discovered pipe 1 (characteristic 0x15321212EFDE1523785FEABCD123, service 0x15301212EFDE1523785FEABCD123)
    
    1620;16:12:26.9207 [681093730][MainThread] Discovered pipe 1 (characteristic 0x15321212EFDE1523785FEABCD123, service 0x15301212EFDE1523785FEABCD123)
    1621;16:12:26.9227 [681093730][MainThread] Found characteristic with matching uuid (0x15311212EFDE1523785FEABCD123)
    1622;16:12:26.9227 [681093730][MainThread] [16:12:26.922] [Emulator] Discovered pipe 2 (characteristic 0x15311212EFDE1523785FEABCD123, service 0x15301212EFDE1523785FEABCD123)
    
    1623;16:12:26.9227 [681093730][MainThread] Discovered pipe 2 (characteristic 0x15311212EFDE1523785FEABCD123, service 0x15301212EFDE1523785FEABCD123)
    1624;16:12:26.9227 [681093730][MainThread] Found characteristic with matching uuid (0x15311212EFDE1523785FEABCD123)
    1625;16:12:26.9237 [681093730][MainThread] [16:12:26.923] [Emulator] Discovered pipe 3 (characteristic 0x15311212EFDE1523785FEABCD123, service 0x15301212EFDE1523785FEABCD123)
    
    1626;16:12:26.9237 [681093730][MainThread] Discovered pipe 3 (characteristic 0x15311212EFDE1523785FEABCD123, service 0x15301212EFDE1523785FEABCD123)
    1627;16:12:26.9317 [681093730][MainThread] GATT: Discovering all the Descriptors of Characteristic 0x15311212EFDE1523785FEABCD123, start handle 0x0033, end handle 0x0033
    1628;16:12:26.9317 [681093730][MainThread] GATT: Sending Find Information Request, start handle 0x0033
    1629;16:12:26.9377 [681093730][MainThread] WRITE DATA PACKET:05-00-04-00-04-33-00-33-00
    1630;16:12:26.9377 [681093730][MainThread] Sending packet: AttFindInformationRequest, 04-33-00-33-00, StartHandle: 0x0033, EndHandle: 0x0033
    1631;16:12:26.9377 [681093730][MainThread] Serial port write: 02-00-00-09-00-05-00-04-00-04-33-00-33-00
    1632;16:12:26.9377 [681093730][MainThread] Data buffer queue length (+1): 1 
    1633;16:12:26.9377 [681093730][MainThread] Number of data packets sent: 6
    1634;16:12:26.9637 [681093730][ReadPacketQueueThread] Serial port read: 04-13-05-01-00-00-01-00
    1635;16:12:26.9637 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS, NumberOfHandles: 1, ConnectionHandle: 0x0000, NumberOfPackets: 1
    1636;16:12:26.9637 [681093730][ReadPacketQueueThread] Data buffer queue length: 0
    1637;16:12:26.9837 [681093730][ReadPacketQueueThread] Serial port read: 02-00-20-0A-00-06-00-04-00-05-01-33-00-02-29
    1638;16:12:26.9837 [681093730][ReadPacketQueueThread] Received packet: AttFindInformationResponse, 05-01-33-00-02-29, Format: HandleAnd16BitUuid, Handle: 0x0033, Uuid: 0x2902 
    1639;16:12:27.0007 [681093730][MainThread] GATT: Received <class 'protocol.Att.AttFindInformationResponse'> - [0x05, 0x01, 0x33, 0x00, 0x02, 0x29]
    1640;16:12:27.0007 [681093730][MainThread] GATT: Received Find Information Response
    1641;16:12:27.0007 [681093730][MainThread] GATT: Found Descriptor 0x2902 on handle 0x0033
    1642;16:12:27.0127 [681093730][MainThread] GATT: Sending Read Request on Characteristic descriptor 0x2902 on handle=0033
    1643;16:12:27.0167 [681093730][MainThread] WRITE DATA PACKET:03-00-04-00-0A-33-00
    1644;16:12:27.0167 [681093730][MainThread] Sending packet: AttReadRequest, 0A-33-00, Handle: 0x0033
    1645;16:12:27.0167 [681093730][MainThread] Serial port write: 02-00-00-07-00-03-00-04-00-0A-33-00
    1646;16:12:27.0167 [681093730][MainThread] Data buffer queue length (+1): 1 
    1647;16:12:27.0167 [681093730][MainThread] Number of data packets sent: 7
    1648;16:12:27.0217 [681093730][ReadPacketQueueThread] Serial port read: 04-13-05-01-00-00-01-00
    1649;16:12:27.0217 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS, NumberOfHandles: 1, ConnectionHandle: 0x0000, NumberOfPackets: 1
    1650;16:12:27.0217 [681093730][ReadPacketQueueThread] Data buffer queue length: 0
    1651;16:12:27.0437 [681093730][ReadPacketQueueThread] Serial port read: 02-00-20-07-00-03-00-04-00-0B-00-00
    1652;16:12:27.0437 [681093730][ReadPacketQueueThread] Received packet: AttReadResponse, 0B-00-00, AttributeValue: 00-00
    1653;16:12:27.0567 [681093730][MainThread] GATT: Received <class 'protocol.Att.AttReadResponse'> - [0x0B, 0x00, 0x00]
    1654;16:12:27.0567 [681093730][MainThread] GATT: Received Read Response
    1655;16:12:27.0617 [681093730][MainThread] [16:12:27.061] [Emulator] Discovered pipe 3 CCCD (descriptor 0x2902, service 0x15301212EFDE1523785FEABCD123)
    
    1656;16:12:27.0617 [681093730][MainThread] Discovered pipe 3 CCCD (descriptor 0x2902, service 0x15301212EFDE1523785FEABCD123)
    1657;16:12:27.0637 [681093730][MainThread] Pipe setup after pipe discovery:
    1658;16:12:27.0677 [681093730][MainThread] 1: {'descriptor_info': None, 'pipe_store': 2, 'handle': 48, 'service_id': 1, 'parent_service_uuid': 429739147100953594165605640753443L, 'cccd_handle': None, 'pipe_uuid': 429897603425982122840792728654115L, 'pipe_type': 2, 'parent_service_handle': None, 'char_properties': 4, 'char_id': 1, 'parent_char_uuid': None, 'namespace_description': None}
    1659;16:12:27.0677 [681093730][MainThread] 2: {'descriptor_info': None, 'pipe_store': 2, 'handle': 50, 'service_id': 1, 'parent_service_uuid': 429739147100953594165605640753443L, 'cccd_handle': None, 'pipe_uuid': 429818375263467858503199184703779L, 'pipe_type': 4, 'parent_service_handle': None, 'char_properties': 24, 'char_id': 2, 'parent_char_uuid': None, 'namespace_description': None}
    1660;16:12:27.0677 [681093730][MainThread] 3: {'descriptor_info': None, 'pipe_store': 2, 'handle': 50, 'service_id': 1, 'parent_service_uuid': 429739147100953594165605640753443L, 'cccd_handle': 51, 'pipe_uuid': 429818375263467858503199184703779L, 'pipe_type': 8, 'parent_service_handle': None, 'char_properties': 24, 'char_id': 2, 'parent_char_uuid': None, 'namespace_description': None}
    1661;16:12:27.0677 [681093730][MainThread] PIPES RETURN VALUE: True
    1662;16:12:27.0677 [681093730][MainThread] [16:12:27.067] --- Pipes discovered ---
    
    1663;16:12:27.0897 [681093730][MainThread] [16:12:27.089] [Emulator] Opening pipe 3
    
    1664;16:12:27.0897 [681093730][MainThread] Opening pipe 3
    1665;16:12:27.0907 [681093730][MainThread] GATT: Sending Read Request on Characteristic descriptor 0x2902 on handle=0033
    1666;16:12:27.0907 [681093730][MainThread] WRITE DATA PACKET:03-00-04-00-0A-33-00
    1667;16:12:27.0907 [681093730][MainThread] Sending packet: AttReadRequest, 0A-33-00, Handle: 0x0033
    1668;16:12:27.0917 [681093730][MainThread] Serial port write: 02-00-00-07-00-03-00-04-00-0A-33-00
    1669;16:12:27.0917 [681093730][MainThread] Data buffer queue length (+1): 1 
    1670;16:12:27.0917 [681093730][MainThread] Number of data packets sent: 8
    1671;16:12:27.1037 [681093730][ReadPacketQueueThread] Serial port read: 04-13-05-01-00-00-01-00
    1672;16:12:27.1037 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS, NumberOfHandles: 1, ConnectionHandle: 0x0000, NumberOfPackets: 1
    1673;16:12:27.1037 [681093730][ReadPacketQueueThread] Data buffer queue length: 0
    1674;16:12:27.1237 [681093730][ReadPacketQueueThread] Serial port read: 02-00-20-07-00-03-00-04-00-0B-00-00
    1675;16:12:27.1237 [681093730][ReadPacketQueueThread] Received packet: AttReadResponse, 0B-00-00, AttributeValue: 00-00
    1676;16:12:27.1377 [681093730][MainThread] GATT: Received <class 'protocol.Att.AttReadResponse'> - [0x0B, 0x00, 0x00]
    1677;16:12:27.1377 [681093730][MainThread] GATT: Received Read Response
    1678;16:12:27.1427 [681093730][MainThread] GATT: Sending Write Request on Characteristic descriptor 0x2902 on handle=0033
    1679;16:12:27.1477 [681093730][MainThread] WRITE DATA PACKET:05-00-04-00-12-33-00-01-00
    1680;16:12:27.1477 [681093730][MainThread] Sending packet: AttWriteRequest, 12-33-00-01-00, Handle: 0x0033, Value: 01-00
    1681;16:12:27.1477 [681093730][MainThread] Serial port write: 02-00-00-09-00-05-00-04-00-12-33-00-01-00
    1682;16:12:27.1477 [681093730][MainThread] Data buffer queue length (+1): 1 
    1683;16:12:27.1477 [681093730][MainThread] Number of data packets sent: 9
    1684;16:12:27.1637 [681093730][ReadPacketQueueThread] Serial port read: 04-13-05-01-00-00-01-00
    1685;16:12:27.1637 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS, NumberOfHandles: 1, ConnectionHandle: 0x0000, NumberOfPackets: 1
    1686;16:12:27.1637 [681093730][ReadPacketQueueThread] Data buffer queue length: 0
    1687;16:12:27.2037 [681093730][ReadPacketQueueThread] Serial port read: 02-00-20-05-00-01-00-04-00-13
    1688;16:12:27.2047 [681093730][ReadPacketQueueThread] Received packet: AttWriteResponse, 13
    1689;16:12:27.2117 [681093730][MainThread] GATT: Received <class 'protocol.Att.AttWriteResponse'> - [0x13]
    1690;16:12:27.2117 [681093730][MainThread] GATT: Att Write Response
    1691;16:12:27.2567 [681093730][MainThread] Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 86816
    
    1692;16:12:27.2587 [681093730][MainThread] Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.
    
    1693;16:12:27.2727 [681093730][MainThread] Sending 'START DFU' command
    
    1694;16:12:27.3077 [681093730][MainThread] GATT: Sending Write Request on Characteristic Value uuid 0x15311212EFDE1523785FEABCD123 on handle=0032
    1695;16:12:27.3077 [681093730][MainThread] WRITE DATA PACKET:05-00-04-00-12-32-00-01-04
    1696;16:12:27.3077 [681093730][MainThread] Sending packet: AttWriteRequest, 12-32-00-01-04, Handle: 0x0032, Value: 01-04
    1697;16:12:27.3077 [681093730][MainThread] Serial port write: 02-00-00-09-00-05-00-04-00-12-32-00-01-04
    1698;16:12:27.3077 [681093730][MainThread] Data buffer queue length (+1): 1 
    1699;16:12:27.3077 [681093730][MainThread] Number of data packets sent: 10
    1700;16:12:27.3237 [681093730][ReadPacketQueueThread] Serial port read: 04-13-05-01-00-00-01-00
    1701;16:12:27.3237 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS, NumberOfHandles: 1, ConnectionHandle: 0x0000, NumberOfPackets: 1
    1702;16:12:27.3237 [681093730][ReadPacketQueueThread] Data buffer queue length: 0
    1703;16:12:30.3419 [681093730][ReadPacketQueueThread] Serial port read: 04-05-04-00-00-00-08
    1704;16:12:30.3429 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_DISCONNECTION_COMPLETE ConnectionHandle: 0x0000, Reason: BTLE_CONNECTION_TIMEOUT
    1705;16:12:30.3519 [681093730][ReadPacketQueueThread] Received LL Connection Termination Event, reason 08
    1706;16:12:30.3539 [681093730][ReadPacketQueueThread] Lost connection to device
    1707;16:12:30.3609 [681093730][ReadPacketQueueThread] [16:12:30.360] Disconnected from peer device
    
    1708;16:12:30.3669 [681093730][ReadPacketQueueThread] Device disconnected, reason: ConnectionTimeout
    
    1709;16:12:30.3949 [681093730][] SERVER: Received packet <HciEvent: eventCode=0x0A> - <HciEvent: eventCode=0x0A>
    1710;16:12:30.3949 [681093730][] SERVER: Received Link Loss
    1711;16:12:30.4029 [681093730][MainThread] Wait canceled: no connection.
    1712;16:12:30.4029 [681093730][MainThread] GATT: Received None - None
    1713;16:12:30.4049 [681093730][MainThread] [16:12:30.404] [Emulator] Failed to send data on pipe number 2
    
    1714;16:12:30.4049 [681093730][MainThread] Failed to send data on pipe number 2
    1715;16:12:30.4929 [681093730][MainThread] Data could not be sent - failed!
    1716;16:12:31.4989 [681093730][MainThread] [16:12:31.498] Not connected - Skipping
    
    1717;16:12:31.5069 [681093730][MainThread] SERVER: Stopping server
    1718;16:12:31.5079 [681093730][MainThread] [16:12:31.507] [Emulator] Close
    
    1719;16:12:31.5079 [681093730][MainThread] Close
    1720;16:12:31.5109 [681093730][MainThread] HciH4Driver closed
    1721;16:12:32.3990 [681093730][] SERVER: Server has stopped
    1722;16:12:45.5207 [681093730][MainThread] nrfjprog.dll 5.2.0.45231
    1723;16:12:45.5237 [681093730][MainThread] HciJLinkDriver opened (COM11, 1000000-8-None-1-RequestToSend)
    1724;16:12:45.5257 [681093730][MainThread] JLinkARM.dll 5.12g
    1725;16:12:45.5368 [681093730][MainThread] 681093730 - COM11
    1726;16:12:46.6668 [681093730][MainThread] HCI command: BTLE_CMD_READ_BD_ADDR
    1727;16:12:46.6668 [681093730][MainThread] Serial port write: 01-09-10-00
    1728;16:12:46.6668 [681093730][MainThread] Waiting for event packet. Timeout is 500ms
    1729;16:12:46.6728 [681093730][ReadPacketQueueThread] Serial port read: 04-0E-0A-01-09-10-00-56-FF-99-00-CD-29
    1730;16:12:46.6728 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_COMMAND_COMPLETE, OpCode: BTLE_CMD_READ_BD_ADDR, Status: BTLE_STATUS_CODE_SUCCESS, BdAddress: 0x29CD0099FF56
    1731;16:12:46.6728 [681093730][MainThread] Finished waiting for event packet. PacketReceived:True
    1732;16:12:46.6738 [681093730][MainThread] HCI command: NRF_CMD_SET_BD_ADDR, Address: 0x40-27-06-BC-8B-5A
    1733;16:12:46.6738 [681093730][MainThread] Serial port write: 01-03-FC-06-40-27-06-BC-8B-5A
    1734;16:12:46.6738 [681093730][MainThread] Waiting for event packet. Timeout is 500ms
    1735;16:12:46.6768 [681093730][ReadPacketQueueThread] Serial port read: 04-0E-04-01-03-FC-00
    1736;16:12:46.6768 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_COMMAND_COMPLETE, OpCode: NRF_CMD_SET_BD_ADDR, Status: BTLE_STATUS_CODE_SUCCESS
    1737;16:12:46.6768 [681093730][MainThread] Finished waiting for event packet. PacketReceived:True
    1738;16:12:46.6768 [681093730][MainThread] HCI command: NRF_CMD_GET_VERSION_INFO
    1739;16:12:46.6768 [681093730][MainThread] Serial port write: 01-06-FC-00
    1740;16:12:46.6768 [681093730][MainThread] Waiting for event packet. Timeout is 500ms
    1741;16:12:46.6808 [681093730][ReadPacketQueueThread] Serial port read: 04-0E-2C-01-06-FC-00-6D-65-66-77-5F-6E-72-66-35-31-38-32-32-5F-30-2E-31-31-2E-30-2E-31-38-33-37-38-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    1742;16:12:46.6808 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_COMMAND_COMPLETE, OpCode: NRF_CMD_GET_VERSION_INFO, Status: BTLE_STATUS_CODE_SUCCESS, VersionInfo: mefw_nrf51822_0.11.0.18378
    1743;16:12:46.6808 [681093730][MainThread] Finished waiting for event packet. PacketReceived:True
    1744;16:12:47.2218 [681093730][ScriptThread] Failed to import ecdsa, cannot do signing
    1745;16:12:47.2448 [681093730][ScriptThread]  - - Start of script: (2017-03-22 15:12:47) - - 
    1746;16:12:47.2778 [681093730][ScriptThread] HCI command: BTLE_CMD_READ_BD_ADDR
    1747;16:12:47.2788 [681093730][ScriptThread] Serial port write: 01-09-10-00
    1748;16:12:47.2969 [681093730][ReadPacketQueueThread] Serial port read: 04-0E-0A-01-09-10-00-40-27-06-BC-8B-5A
    1749;16:12:47.2969 [681093730][ReadPacketQueueThread] HCI event: BTLE_EVENT_COMMAND_COMPLETE, OpCode: BTLE_CMD_READ_BD_ADDR, Status: BTLE_STATUS_CODE_SUCCESS, BdAddress: 0x5A8BBC062740
    1750;16:12:47.3559 [681093730][ScriptThread] Device address: 0x5A8BBC062740
    1751;16:12:47.3569 [681093730][ScriptThread] Ready
    1752;16:12:47.4199 [681093730][] Successfully parsed the server setup: 
    1: R_PERM:yes NOTIFY:no UUID:0x2800 W_PERM:no INDICATE:no DATA:0x[0, 18]
    2: R_PERM:yes NOTIFY:no UUID:0x2803 W_PERM:no INDICATE:no DATA:0x[6, 3, 0, 0, 2A]
    3: R_PERM:yes NOTIFY:no UUID:0x2A00 W_PERM:yes INDICATE:no DATA:0x[4D, 61, 73, 74, 65, 72, 20, 43, 6F, 6E, 74, 72, 6F, 6C, 20, 50, 61, 6E, 65, 6C]
    4: R_PERM:yes NOTIFY:no UUID:0x2800 W_PERM:no INDICATE:no DATA:0x[1, 18]
    1753;16:12:47.4199 [681093730][] CreateServerFromObject()
    1754;16:12:47.4499 [681093730][] Starting Server
    1755;16:12:47.5349 [681093730][] SERVER: Server has started
    1756;16:12:47.5539 [681093730][MainThread] ServerStartupWorker completed
    
Related