arduino-libraries / ArduinoBLE

ArduinoBLE library for Arduino
GNU Lesser General Public License v2.1
314 stars 205 forks source link

Missing house keeping logic for ATT class #127

Open dreamstyler opened 4 years ago

dreamstyler commented 4 years ago

The ATT class is missing an end() function to clean up ATT variables. This end function then needs to be called inside BLELocalDevice::end().

Proposed function:

void ATTClass::end()
{  
  for (int i = 0; i < ATT_MAX_PEERS; i++) {
    if (_peers[i].connectionHandle == 0xffff) {
      continue;
    }
    _peers[i].connectionHandle = 0xffff;
    _peers[i].role = 0x00;
    _peers[i].addressType = 0x00;
    memset(_peers[i].address, 0x00, sizeof(_peers[i].address));
    _peers[i].mtu = 23;

    if (_peers[i].device) {
      delete _peers[i].device;
      _peers[i].device = NULL;
    }
  }
}

I set up my BLE as a peripheral and use it to stream data to an android device. The mobile requests data using an index (writes to a characteristic) and then my IoT33 nano has a data characteristic which it updates. The mobile app listens for change notifications on the data characteristic, and once it read it requests the next index. I am using a MTU of 242. This works ok but the Arduino seems to crash at some random points. From 10000 data requests it can crash at any point.

To address this I restart the BLE module by calling end() and then being(). I noticed that sometimes the MTU from the peers in ATT were not being cleared. After further investigation, I noticed there is some house keeping missing in ATT end() to clean all the _peers.

Not sure if this is an issue, but disconnect() should probably clean up all _peers even if HCI.disconnect(_peers[i].connectionHandle) does not return 0;

polldo commented 4 years ago

Hi @dreamstyler . Thanks for reporting. Rather than resetting the BLE stack, I would try to detect the cause of your 'crash at some random point'. Could you post the sketch you are using and attach the debug information printed into the serial monitor? (To print the debug information you should insert this statement BLE.debug(Serial); after the begin of the serial monitor in your sketch).

However, thanks also for this report https://github.com/arduino-libraries/ArduinoBLE/issues/129 . I will address it in the coming days!

dreamstyler commented 4 years ago

Thanks for your reply,

I will check later to give some sample code.

Please find below a log dump

NOTE: It would be good to have a way to check what MTU was negotiated with the other BLE device as this informs one on how much data can be transferred. (this is stored on peers but there is no where to check what that is)

There are a few cases where this below happens, but id does seem to keep working HCI EVENT RX <- 04130004 13 5 1 0 0 1 0

At there points is when coms stops working and a reboot is required. Its as if the Ardrino BLE module freezes and does not accept new requests from other BLE device. Did try query the BLE mac address of the Arduino at this point and it return 0's. Reboot is where I trigger a reboot.

Click here to view log ``` > READ ERROR > REBOOTING SYSTEM: HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300E4060000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1764 HCI ACLDATA TX -> 020000F600F20004001B0500E40600001E4DE81F2705000101010101FF000000214DE81F270696019701970195010000B94DE81F27078622AC22CE22682200009189E81F2705000100010101FF0000004D89E81F2706960198019801950100004889E81F270782222A22CE222A2200004BC5E81F2705000100010101FF00000010C5E81F270697019601980196010000EAC5E81F270781228322CE222A2200000E01E91F2705000100010101FF0000001301E91F270697019701980196010000AA01E91F27079822EA22EA222A2200004B3DE91F270500010101010100010000073DE91F270697019701980196010000BD3DE91F27078F229822EA | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300F2060000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1778 HCI ACLDATA TX -> 020000F600F20004001B0500F20600001E3DE91F27078F229822EA222A2200007B79E91F2705000101010101000100003E79E91F270697019601980196010000C779E91F27078D229E22EA222A22000054B5E91F27050001010101010001000075B5E91F27069601960197019601000066B5E91F270793226122EA225A22000096F1E91F2705000100010101000100000FF1E91F27069601950197019501000012F1E91F27079822B322EA225A220000CB2DEA1F270501010101010100010000752DEA1F270696019601970195010000202DEA1F270786225322D52253220000E969EA1F2705010101010101000100004C69EA1F27069601960197 | bytes loaded: 480 HCI EVENT RX <- 04130004 13 5 1 0 0 1 0 HCI ACLDATA RX <- 0200200B000700040012030000070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1792 HCI ACLDATA TX -> 020000F600F20004001B0500000700001E69EA1F2706960196019701950100001969EA1F270777223822D5221C220000C5A5EA1F27050101010101010001000007A5EA1F27069601960196019501000065A5EA1F27078022DC22DC221C22000089E1EA1F2705010101010101000100003EE1EA1F27069601950196019501000099E1EA1F270780228322DC221C220000571DEB1F270501010101010101010000971DEB1F2706960196019601950100007A1DEB1F270777228322DC221C2200008659EB1F270501010101010101010000AE59EB1F2706960196019701950100007459EB1F270771229822DC221C2200009295EB1F27050101010101 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203000E070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1806 HCI ACLDATA TX -> 020000F600F20004001B05000E0700001E95EB1F270501010101010101010000E595EB1F2706960194019701940100003695EB1F270781223F22DC223F22000064D1EB1F270501010101010101010000DCD1EB1F27069501930197019301000012D1EB1F27077D229822B3223F220000CA0DEC1F2705010101010101010100009B0DEC1F270695019301970193010000550DEC1F27078222BA22BA223F220000E449EC1F270501010101010101010000A249EC1F2706940192019701920100006E49EC1F270786225A22BA223F220000BD85EC1F270501010101010101010000E985EC1F2706930191019601910100000785EC1F27079422EA22EA | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203001C070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1820 HCI ACLDATA TX -> 020000F600F20004001B05001C0700001E85EC1F27079422EA22EA223F2200007FC1EC1F270501010101010101010000D0C1EC1F27069301910194019101000050C1EC1F27079A229E22EA225A22000047FDEC1F270501010101010101010000C7FDEC1F270692019201930191010000C9FDEC1F27079C22B322EA225A2200001239ED1F270501010101010101010000C439ED1F270692019001930190010000C339ED1F2707A222F722F7225A2200003875ED1F2705010101010101010100009975ED1F27069101920193018F010000F175ED1F2707AA22CE22F7226822000099B1ED1F270501010101010101010000B6B1ED1F27069101910193 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203002A070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1834 HCI ACLDATA TX -> 020000F600F20004001B05002A0700001EB1ED1F27069101910193018F0100001BB1ED1F27078822D121F722D1210000A4EDED1F2705010101010201010100007AEDED1F27069101900192018F010000FAEDED1F27077B224522F722D12100004129EE1F2705010101010201010100002129EE1F270690018E0192018E0100000D29EE1F270770223122F722D1210000D765EE1F2705020103010301010100008665EE1F270690018D0192018D0100001D65EE1F27076C22C722CE22D12100003CA1EE1F270502010301030101010000A9A1EE1F27069001900191018D01000043A1EE1F27077922EA22EA22D12100003CDDEE1F27050201010103 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030038070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1848 HCI ACLDATA TX -> 020000F600F20004001B0500380700001EDDEE1F27050201010103010101000033DDEE1F27068F018F0191018D010000C3DDEE1F27079D22DC22EA22312200001219EF1F270502010201030101010000F519EF1F27068F018F0191018D010000C019EF1F2707B022C122EA22312200005A55EF1F270502010201030101010000A855EF1F27068F018E0191018D010000DE55EF1F2707B2228322EA2275220000A391EF1F2705020102010301010100008791EF1F27068E018D0190018D010000CD91EF1F2707B722DC22EA2275220000B6CDEF1F27050201020102010101000025CDEF1F27068E018C018F018C010000EBCDEF1F2707AA22B322DC | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030046070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1862 HCI ACLDATA TX -> 020000F600F20004001B0500460700001ECDEF1F2707AA22B322DC2275220000D009F01F2705020102010201010100004509F01F27068D018C018F018C010000C009F01F2707B122F022F02275220000D645F01F2705020103010301010100006C45F01F27068D018D018E018C010000E945F01F2707AC226122F022612200008F81F01F2705020102010301010100000081F01F27068B0185018D0185010000B081F01F2707B3223F22FE223F220000E8BDF01F270502010301030102010000DCBDF01F27068A0187018D0185010000EFBDF01F2707AF227C22FE223F2200000AF9F01F270502010201030102010000A6F9F01F2706890185018D | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030054070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1876 HCI ACLDATA TX -> 020000F600F20004001B0500540700001EF9F01F2706890185018D01850100001BF9F01F2707A122CE22FE22E62100001D35F11F2705020103010301020100008235F11F2706880188018D0185010000CE35F11F27078D223F22FE22E6210000B371F11F270502010301030102010000BB71F11F2706860186018801850100001571F11F27079822C722FE22E621000016ADF11F2705020102010301020100007BADF11F270686018701880185010000D5ADF11F270798229E22D522E6210000AFE9F11F27050201020103010201000042E9F11F270686018701880185010000ECE9F11F2707A122DC22DC22E6210000F325F21F27050201030103 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030062070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1890 HCI ACLDATA TX -> 020000F600F20004001B0500620700001E25F21F2705020103010301020100003E25F21F2706870188018801860100006F25F21F2707AE22A522DC223F2200001861F21F2705020103010301020100000761F21F2706870189018901860100002261F21F2707B522E322E32275220000E89DF21F2705020103010301020100000D9DF21F270688018801890186010000159DF21F2707AD22F022F022612200002DD9F21F270503010301030102010000FAD9F21F2706880188018901860100002CD9F21F2707AE227C22F02261220000F215F31F2705030103010301030100001215F31F2706880183018901830100002515F31F27079B224C22F0 | bytes loaded: 480 HCI EVENT RX <- 04130004 13 5 1 0 0 1 0 HCI ACLDATA RX <- 0200200B000700040012030070070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1904 HCI ACLDATA TX -> 020000F600F20004001B0500700700001E15F31F27079B224C22F0224C2200008D51F31F2705030103010301030100002B51F31F270686018001890180010000E151F31F27079C229E22F0224C220000E58DF31F270503010301030103010000A88DF31F270685018201890180010000AF8DF31F270790221622F0221622000028C9F31F27050301030103010301000091C9F31F27068301820189018001000000C9F31F270785228A22CE22162200008705F41F2705030104010401030100004B05F41F27068201800189017E010000A305F41F270780224C22CE22162200009D41F41F270503010301040103010000A241F41F27068101850185 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203007E070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1918 HCI ACLDATA TX -> 020000F600F20004001B05007E0700001E41F41F27068101850185017E010000FA41F41F27078222A522CE22162200003B7DF41F270503010301040103010000B57DF41F27068101800185017E010000BB7DF41F270785226122F72216220000C1B9F41F2705030104010401030100004AB9F41F27068001810185017C0100001EB9F41F27079222C722F7224C22000090F5F41F2705040104010401030100004FF5F41F270680017F0185017C010000DDF5F41F2707AB22F722F7224C2200000D31F51F2705040103010401030100009C31F51F270680017F0185017C010000DE31F51F2707A2223822F72238220000616DF51F27050401040104 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203008C070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1932 HCI ACLDATA TX -> 020000F600F20004001B05008C0700001E6DF51F270504010401040103010000D96DF51F27068001810181017C010000096DF51F2707A7228322F72238220000A8A9F51F270504010401040103010000F6A9F51F27068001810181017C01000026A9F51F2707A8229E22F72238220000D1E5F51F270504010401040103010000ABE5F51F27068001820182017F0100006FE5F51F27079E226F22F72238220000AA21F61F270504010401040103010000F021F61F27068001800182017F010000B221F61F270781223822C72238220000E35DF61F2705040104010401040100006A5DF61F270680017A0182017A010000A45DF61F27078B229122C7 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203009A070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1946 HCI ACLDATA TX -> 020000F600F20004001B05009A0700001E5DF61F27078B229122C722382200000F99F61F2705040104010401040100004599F61F27067E0178018201780100001599F61F270785225322C72238220000CDD5F61F2705040105010501040100006CD5F61F27067C0179018201780100008ED5F61F27077A228322982238220000C411F71F2705040105010501040100006F11F71F27067A017601810176010000AD11F71F270786227C22FE2238220000F14DF71F270505010601060104010000A84DF71F2706780176017E0176010000EB4DF71F27079D229E22FE2253220000B489F71F2705050106010601040100008789F71F27067701720179 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300A8070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1960 HCI ACLDATA TX -> 020000F600F20004001B0500A80700001E89F71F2706770172017901720100002489F71F270796225322FE225322000051C5F71F270505010601060104010000DAC5F71F270676017201790172010000B7C5F71F2707A2228A22FE22532200002D01F81F270506010601070105010000BB01F81F2706750172017701720100007D01F81F2707B122F022FE2253220000A13DF81F270506010801080105010000313DF81F270674017101770171010000E93DF81F2707AB229122FE2253220000FB79F81F270506010701080105010000F279F81F270672016F0177016F0100008679F81F2707A422DC22F022532200009AB5F81F27050701070108 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300B6070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1974 HCI ACLDATA TX -> 020000F600F20004001B0500B60700001EB5F81F270507010701080106010000FFB5F81F270671016C0174016C01000092B5F81F2707B122F722F72275220000FBF1F81F2705070108010801060100003CF1F81F270670016F0174016C010000A0F1F81F2707A1221622F72216220000A62DF91F2705070108010801070100001C2DF91F27066F01710172016C010000622DF91F270781223122F72216220000E969F91F2705070108010801070100002569F91F27066F01700172016C0100001869F91F27078022C122F7221622000039A5F91F27050801080108010701000010A5F91F27067001710172016C01000022A5F91F27078722C122F7 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300C4070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 1988 HCI ACLDATA TX -> 020000F600F20004001B0500C40700001EA5F91F27078722C122F722162200002AE1F91F27050801080108010701000029E1F91F270670016F0172016F0100007EE1F91F270779225A22E32216220000A21DFA1F270508010901090108010000B91DFA1F270670016E0172016E010000CC1DFA1F270787228322E32223220000EC59FA1F2705080109010901080100008059FA1F27066F016D0172016D0100008A59FA1F27079622C122E3222A2200000B95FA1F270509010A010A01080100009995FA1F27066D0165017101650100002B95FA1F270798228322E3222A2200003FD1FA1F2705090109010A010801000065D1FA1F27066B01660170 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300D2070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2002 HCI ACLDATA TX -> 020000F600F20004001B0500D20700001ED1FA1F27066B01660170016501000076D1FA1F27079722C722CE222A220000D80DFB1F270509010A010A01080100000F0DFB1F2706690165016F0165010000E60DFB1F27079D22F022F0222A2200000649FB1F27050A010A010A01080100007D49FB1F2706670165016E01650100005849FB1F270795228322F0222A2200006985FB1F27050A010A010A0109010000B985FB1F2706660165016701650100004B85FB1F2707A022AC22F02231220000D5C1FB1F27050A010B010B0109010000F4C1FB1F270666016401670164010000BEC1FB1F27079D22A522F02231220000AAFDFB1F27050A010B010B | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300E0070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2016 HCI ACLDATA TX -> 020000F600F20004001B0500E00700001EFDFB1F27050A010B010B010A0100006BFDFB1F27066501660166016401000053FDFB1F27079122AC22F02231220000E139FC1F27050B010B010B010A0100004E39FC1F2706650165016601640100007D39FC1F27079A229822E3226F2200004175FC1F27050B010B010B010A0100001375FC1F270665016401660163010000E575FC1F2707B5222023202375220000ABB1FC1F27050B010B010B010A0100003CB1FC1F270664016301660163010000D4B1FC1F2707B7228322202375220000C3EDFC1F27050B010C010C010B01000073EDFC1F270664016101660161010000C0EDFC1F2707AD22752220 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300EE070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2030 HCI ACLDATA TX -> 020000F600F20004001B0500EE0700001EEDFC1F2707AD227522202345220000458100000005000000000000000000003C8100000006560154015901540100003081000000072A217F217F21D4200000F2550300000500000000000000000000AF5503000006580157015801570100006955030000075D216421642156210000A991030000050000000000000000000080910300000658015801580157010000BC9103000007672149219B2149210000D1EF5F1D2705000000000000000000002FEF5F1D27065301510154015101000063EF5F1D27076E2142219B2142210000ED2B601D270500000000000000000000B22B601D27064F014C0154 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300FC070000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2044 HCI ACLDATA TX -> 020000F600F20004001B0500FC0700001E2B601D27064F014C0154014A010000032B601D2707A521D821DF2142210000A57C601D270500000000000000000000DA7C601D270649014801490148010000FE7C601D27079021D121D1214F2100002332631D270500000000000000000000EA32631D2706480146014A0146010000F532631D2707CA21ED21ED21A8210000496E631D2705000000000000000000007F6E631D2706480149014A01460100009A6E631D2707BB21BD21ED219B21000032AA631D27050000000000000000000050AA631D2706470142014A01420100002AAA631D2707AD21C421ED215D2100002BE6631D27050000000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203000A080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2058 HCI ACLDATA TX -> 020000F600F20004001B05000A0800001EE6631D2705000000000000000000000DE6631D2706460140014A014001000038E6631D270786212021ED2104210000AE22641D270500000000000000000000E622641D2706450144014A01400100008D22641D270778218D21ED21F72000004E5E641D270500000000000000000000FA5E641D2706450145014901400100008B5E641D27075C214221C421F7200000D89A641D270500000000000000000000D59A641D2706440144014801400100001E9A641D27075721B621C421F7200000A8D6641D27050000000000000000000088D6641D2706440148014801400100007CD6641D27075921D821D8 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030018080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2072 HCI ACLDATA TX -> 020000F600F20004001B0500180800001ED6641D27075921D821D821F72000003B12651D2705000000000000000000008B12651D2706440147014801420100008212651D27076B213421D821F7200000254E651D2705000000000000000000001E4E651D270645014701480142010000D94E651D27076B214221D821342100008CC6651D27051B011B011B011B01000006C6651D2706420143014301420100001EC6651D270775217F217F216B2100001902661D27051B011B011B011B0100005D02661D270644014501450142010000F202661D270760218621862112210000423E661D27051B011B011B011B0100004A3E661D27064301420145 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030026080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2086 HCI ACLDATA TX -> 020000F600F20004001B0500260800001E3E661D2706430142014501420100006D3E661D270752212D21862112210000D17A661D27051B011B011B011B010000737A661D2706430146014601400100001F7A661D27076021ED21ED211221000059B6661D27051B011B011B011B01000038B6661D27064301450146014001000091B6661D270767218621ED211221000044F2661D27051B011B011B011B01000001F2661D27064401460146014001000035F2661D27076D217F21ED2112210000902E671D27051B011B011C011B0100002B2E671D270644014301460140010000CC2E671D27078121D821ED2126210000456A671D27051B011C011C | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030034080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2100 HCI ACLDATA TX -> 020000F600F20004001B0500340800001E6A671D27051B011C011C011B010000C26A671D270644013F0146013F0100004D6A671D270787215D21ED21262100002EA6671D27051C011C011C011B010000D1A6671D27064301450146013F01000047A6671D270781218621D821492100009FE2671D27051C011C011C011B010000E8E2671D27064301440146013F0100003DE2671D27078721D121D82149210000FD496C1D270520011F0120011F0100003D496C1D27063B013C013C013B0100004F496C1D27075F2841287E2841280000FF856C1D27051F011F0120011F010000DC856C1D27063E013F0143013B010000A0856C1D27071F28B8277E | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030042080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2114 HCI ACLDATA TX -> 020000F600F20004001B0500420800001E856C1D27071F28B8277E28B82700002CC16C1D27051F011F0120011F010000E5C16C1D27063D013B0143013B010000C7C16C1D2707E92766277E286627000004FD6C1D27051F011F0120011F010000F2FD6C1D27063D013D0143013901000044FD6C1D2707B227EB267E28EB26000027396D1D27051F011F0120011E0100007E396D1D27063E014601460139010000BD396D1D27078227C2267E28C2260000D2346F1D2705250126012601250100007C346F1D270645013C014E013C0100009A346F1D27075B266226622655260000FE706F1D270526012801280125010000A4706F1D270642013A014E | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030050080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2128 HCI ACLDATA TX -> 020000F600F20004001B0500500800001E706F1D270642013A014E013A01000061706F1D27072326D3256226D325000042AC6F1D27052501220128012201000046AC6F1D27063E0139014E013501000075AC6F1D2707F0257A2562267A250000210A000000041FFF00000000000000009A0A0000000410FF0000000000000000E40A000000041FFF00000000000000009A0B000000041FFF00000000000000001A0D000000041FFF0000000000000000310D000000041FFF00000000000000003110000000041FFF00000000000000002F14000000041EFF0000000000000000D318000000041FFF00000000000000004B19000000041FFF000000 | bytes loaded: 480 HCI EVENT RX <- 04130004 13 5 1 0 0 1 0 HCI ACLDATA RX <- 0200200B00070004001203005E080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2142 HCI ACLDATA TX -> 020000F600F20004001B05005E0800001E19000000041FFF0000000000000000CB48701D27041FFE0000000000000000B249701D27041FFF0000000000000000964D701D27041FFF0000000000000000A457701D27041FF800000000000000004658701D27041FFF0000000000000000DE5A701D27041FFF0000000000000000C75C701D27041FFF0000000000000000EC61701D27041F410000000000000000AF61701D27041FFE0000000000000000DF62701D27041FFE00000000000000004668701D2705280129012901280100001E68701D270646014D014D013F0100002C68701D27072B2528252F25282500002E67701D27041FFF000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203006C080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2156 HCI ACLDATA TX -> 020000F600F20004001B05006C0800001E67701D27041FFF00000000000000005068701D27041FFF00000000000000009F69701D2704010D0000000000000000126B701D27041FFE0000000000000000A26C701D27041FFF0000000000000000AD6C701D2704010D0000000000000000A06C701D27041FFF0000000000000000AD6D701D270401040000000000000000D96D701D270401E10000000000000000C574701D270400FE00000000000000009775701D27041FF80000000000000000D680701D2704010400000000000000009B80701D2704010D00000000000000006282701D2704010400000000000000008282701D2704010D000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203007A080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2170 HCI ACLDATA TX -> 020000F600F20004001B05007A0800001E82701D2704010D00000000000000007B88701D270401040000000000000000FF88701D2704010D0000000000000000068B701D2704020000000000000000008F8B701D2704020D0000000000000000D48F701D270202000000000000000000719E701D270203000000000000000000F7A4701D27052801290129012801000055A4701D270641013E014D013D01000048A4701D2707F424A6242F25A6240000F9A8701D27020100000000000000000018B8701D270401040000000000000000BEB9701D2704010D0000000000000000C7BF701D27040104000000000000000015C0701D2704010D000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030088080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2184 HCI ACLDATA TX -> 020000F600F20004001B0500880800001EC0701D2704010D000000000000000069E0701D270528012501290125010000CEE0701D27063F013A014D013701000032E0701D2707C8244D242F254D240000601C711D270527012501290125010000961C711D27063F0143014D0137010000C81C711D2707A7242B242F252B2400006258711D2705260121012901210100007A58711D2706400143014D01370100007258711D27078424E6232F25E62300004273711D2704010400000000000000007273711D2704010D00000000000000008B75711D2704010400000000000000005976711D2704010D0000000000000000397B711D2704010B000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030096080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2198 HCI ACLDATA TX -> 020000F600F20004001B0500960800001E7B711D2704010B00000000000000001C7B711D270210000000000000000000FA7F711D2704010B00000000000000002E83711D2704010B00000000000000002487711D2704010B0000000000000000168B711D2704010B0000000000000000408F711D2704010B00000000000000007293711D2704010B0000000000000000EC94711D270525012201290121010000BF94711D2706420147015C0137010000C594711D27073A24A223D624A2230000A497711D2704010B0000000000000000DE9B711D2704010B0000000000000000889F711D2704010B0000000000000000BAA3711D2704010B000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300A4080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2212 HCI ACLDATA TX -> 020000F600F20004001B0500A40800001EA3711D2704010B0000000000000000ADA7711D2704010B00000000000000009FAB711D2704010B0000000000000000C9AF711D2704010B0000000000000000FBB3711D2704010B000000000000000065B7711D2704010B000000000000000057BB711D2704010B000000000000000001BF711D2704010B000000000000000033C3711D2704010B00000000000000002FC7711D2704010B00000000000000001DCB711D2704010B00000000000000004BCF711D2704010B000000000000000079D0711D270523012101270121010000C6D0711D270645014B015C01370100009BD0711D27070024A22391 | bytes loaded: 480 HCI EVENT RX <- 04130004 13 5 1 0 0 1 0 > READ ERROR > REBOOTING SYSTEM: HCI COMMAND TX -> 01060403000013 HCI ACLDATA RX <- 0200200B0007000400120300B2080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 HCI EVENT RX <- 040F0400050604 HCI EVENT RX <- 0413050100000100 1 HCI COMMAND TX -> 01030C00 HCI EVENT RX <- 040E0405030C00 HCI COMMAND TX -> 01011000 HCI EVENT RX <- 040E0C05011000080E030860000E03 HCI COMMAND TX -> 01010C08FFFFFFFFFFFFFF3F HCI EVENT RX <- 040E0405010C00 HCI COMMAND TX -> 01022000 HCI EVENT RX <- 040E0705022000FB000A > BLE addService() ================== advertise ====================== HCI COMMAND TX -> 0106200FA000A0000000000000000000000700 HCI EVENT RX <- 040E0405062000 HCI COMMAND TX -> 010820200302010600000000000000000000000000000000000000000000000000000000 HCI EVENT RX <- 040E0405082000 HCI COMMAND TX -> 010920200E0D094879647261204C6F676765720000000000000000000000000000000000 HCI EVENT RX <- 040E0405092000 HCI COMMAND TX -> 010A200101 HCI EVENT RX <- 040E04050A2000 > Task Bluetooth: Started waiting for connections BLE characteristics cleared HCI EVENT RX <- 043E13010000000101C453F0FCB8481C000000F40101 > Connected: 48:b8:fc:f0:53:c4 BLE update queue length 2539 BLE load log data idx: 0 HCI ACLDATA TX -> 0200001B00170004001B0500000000001E4A5E1F27051A01290129010B010000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400100100FFFF0028 HCI ACLDATA TX -> 0200001A0016000400111401000A0014128A7604D16C4F7E5301000000B119 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400100B00FFFF0028 HCI ACLDATA TX -> 0200001A001600040011140B00120014128A7604D16C4F7E5302000000B119 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400101300FFFF0028 > ATTClass::sendError() HCI ACLDATA TX -> 020000090005000400011013000A HCI EVENT RX <- 043E0A0300000006000000F401 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004000801000A000228 > ATTClass::sendError() HCI ACLDATA TX -> 020000090005000400010801000A HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004000801000A000328 HCI ACLDATA TX -> 0200001B0017000400091502000A030014128A7604D16C4F7E5301000100B119 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004000803000A000328 HCI ACLDATA TX -> 0200001B00170004000915040012050014128A7604D16C4F7E5301000200B119 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004000805000A000328 HCI ACLDATA TX -> 0200001B0017000400091507000A080014128A7604D16C4F7E5301000300B119 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004000808000A000328 HCI ACLDATA TX -> 0200001B001700040009150900020A0014128A7604D16C4F7E5301000400B119 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400080A000A000328 > ATTClass::sendError() HCI ACLDATA TX -> 02000009000500040001080A000A HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200900050004000406000600 HCI ACLDATA TX -> 0200000A0006000400050106000229 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400080B0012000228 > ATTClass::sendError() HCI ACLDATA TX -> 02000009000500040001080B000A HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400080B0012000328 HCI ACLDATA TX -> 0200001B001700040009150C000A0D0014128A7604D16C4F7E5302000200B119 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400080D0012000328 HCI ACLDATA TX -> 0200001B001700040009150E000A0F0014128A7604D16C4F7E5302000100B119 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400080F0012000328 HCI ACLDATA TX -> 0200000D0009000400090710001A1100ED2A HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040008110012000328 > ATTClass::sendError() HCI ACLDATA TX -> 020000090005000400010811000A HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200900050004000412001200 HCI ACLDATA TX -> 0200000A0006000400050112000229 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 02002007000300040002E801 HCI ACLDATA TX -> 02000007000300040003F200 HCI EVENT RX <- 043E0A030000001C000000F401 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200900050004001206000100 HCI ACLDATA TX -> 02000005000100040013 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200700030004000A0A00 HCI ACLDATA TX -> 0200000900050004000BEB090000 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300B2080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2226 HCI ACLDATA TX -> 020000F600F20004001B0500B20800001ED0711D27070024A2239124942300005BD3711D2704010B0000000000000000E7D7711D2704010B0000000000000000D5DB711D2704010B000000000000000083DF711D2704010B0000000000000000B1E3711D2704010B0000000000000000A6E7711D2704010B000000000000000094EB711D2704010B0000000000000000C2EF711D2704010B0000000000000000F0F3711D2704010B00000000000000006EF7711D2704010B00000000000000005CFB711D2704010B00000000000000000AFF711D2704010B00000000000000003803721D2704010B00000000000000004607721D2704010B000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300C0080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2240 HCI ACLDATA TX -> 020000F600F20004001B0500C00800001E07721D2704010B0000000000000000740B721D2704010B0000000000000000220C721D270522012101250121010000910C721D2706470146015C013E010000060C721D2707C02305235B2405230000540F721D2704010B00000000000000001013721D2704010B00000000000000008E17721D2704010B0000000000000000BC1B721D2704010B0000000000000000EA1F721D2704010B0000000000000000D823721D2704010B0000000000000000CF27721D2704010B0000000000000000FD2B721D2704010B0000000000000000AB2F721D2704010B00000000000000009933721D2704010B000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300CE080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2254 HCI ACLDATA TX -> 020000F600F20004001B0500CE0800001E33721D2704010B00000000000000000737721D2704010B0000000000000000353B721D2704010B0000000000000000633F721D2704010B00000000000000005143721D2704010B00000000000000004D47721D2704010B00000000000000007F48721D2705210120012301200100009D48721D2706480140015C01400100006F48721D27078523FE220924FE220000624B721D2704010B0000000000000000294F721D2704010B00000000000000001B53721D2704010B00000000000000008557721D2704010B0000000000000000B75B721D2704010B0000000000000000E15F721D2704010B000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300DC080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2268 HCI ACLDATA TX -> 020000F600F20004001B0500DC0800001E5F721D2704010B0000000000000000D363721D2704010B0000000000000000C467721D2704010B0000000000000000F66B721D2704010B0000000000000000A06F721D2704010B00000000000000009273721D2704010B00000000000000000C79721D2702010000000000000000001584721D270521012001220120010000E184721D2706490144015C0140010000FF84721D270741239822D22398220000C7C0721D27052001200121011F0100009DC0721D2706460143014B0140010000B6C0721D27070D23A522A22398220000FAFC721D270520011F0121011F0100008CFC721D27064401430148 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300EA080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2282 HCI ACLDATA TX -> 020000F600F20004001B0500EA0800001EFC721D2706440143014801400100007DFC721D2707D42261225723612200002338731D270520011F0121011F0100008F38731D2706440147014801400100006B38731D2707AA223822422338220000E274731D27051F011E0120011E0100008374731D2706440147014701410100009D74731D27077C223122C7223122000028B0731D27051F011E0120011E010000ACB0731D270645014A014A01410100004AB0731D270763221622C72216220000BBEC731D27051F01200121011E0100004BEC731D270649015701570143010000D4EC731D27073C22DF219E22DF2100003628741D27051F01210121 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300F8080000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2296 HCI ACLDATA TX -> 020000F600F20004001B0500F80800001E28741D27051F01210121011E010000E328741D27064B014A015701440100001428741D27071A22C4217C22C42100008364741D27052001220122011E0100008864741D27064B0146015701460100007164741D2707F621A1214522A121000020400C0000041EE000000000000000005B400C0000041FFF000000000000000025400C0000041FF000000000000000002F400C0000041CFE0000000000000000CA400C0000041EFF0000000000000000EB410C0000041EFC00000000000000009E410C00000410FE00000000000000007F410C0000041CFE00000000000000004A420C0000041FFC000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030006090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2310 HCI ACLDATA TX -> 020000F600F20004001B0500060900001E420C0000041FFC0000000000000000C9430C00000418F80000000000000000B3450C0000041CFC000000000000000029450C00000410FF0000000000000000E9450C0000041CFF0000000000000000DC450C0000041FFF000000000000000097450C0000041FF80000000000000000C0450C00000400FF0000000000000000A5450C0000041CFF0000000000000000DC450C0000041FFF000000000000000097450C0000041FFE000000000000000033450C0000041FF000000000000000009D450C0000041FF80000000000000000C0460C0000041FFE0000000000000000AA460C0000041FFE000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030014090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2324 HCI ACLDATA TX -> 020000F600F20004001B0500140900001E460C0000041FFE0000000000000000AA470C0000041FF80000000000000000D9480C0000041FFE0000000000000000E5480C0000041FFF000000000000000041490C0000041CF00000000000000000804A0C0000041FFF0000000000000000584A0C0000041FFF0000000000000000584A0C00000418F80000000000000000574A0C0000041FFF0000000000000000584A0C00000410F80000000000000000714B0C0000041FFF0000000000000000D84D0C0000041FC000000000000000002E4D0C00000410FE0000000000000000294F0C00000418FF0000000000000000B2500C0000041FFF000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030022090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2338 HCI ACLDATA TX -> 020000F600F20004001B0500220900001E500C0000041FFF0000000000000000ED500C0000041FFF0000000000000000ED500C0000041FFE000000000000000049520C0000041CFE00000000000000001B530C0000041FFF000000000000000074540C0000041FFF0000000000000000DF550C0000041FFE0000000000000000FB550C0000041CFC0000000000000000E1570C0000041FFE0000000000000000E2580C0000041CFF0000000000000000C2590C0000041CFF0000000000000000425B0C0000041CFF00000000000000005B5B0C0000041FFE0000000000000000B45C0C0000041CFF0000000000000000F05D0C0000041820000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030030090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2352 HCI ACLDATA TX -> 020000F600F20004001B0500300900001E5D0C00000418200000000000000000A4640C0000020100000000000000000004730C0000040104000000000000000009730C000004010D0000000000000000F0BE861D2704010400000000000000004EBE861D2704010D0000000000000000B7BE861D2704010400000000000000004EBE861D2704010D0000000000000000B7F3861D27040104000000000000000093F5861D2704010D00000000000000004186871D2705280127012901270100001186871D27062D012D0131012B010000EE86871D27071D001C001E001C000000F379881D270401040000000000000000697A881D2704010D000000 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203003E090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2366 HCI ACLDATA TX -> 020000F600F20004001B05003E0900001E7A881D2704010D000000000000000009B2881D270528012A012A012601000075B2881D2706350136013A0130010000A5B2881D270721001D002A001C000000AE608A1D2704010400000000000000001D608A1D2704010D0000000000000000E4AD8A1D270202000000000000000000F3AF8A1D2704010D000000000000000036AF8A1D270401040000000000000000CFBB8A1D270203000000000000000000DEC58A1D2702010000000000000000005E5DA71D27053E013F0140013C010000995DA71D2706F700F3000101F10000005C5DA71D270725001D0033001D000000E489A81D27054001410141 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203004C090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2380 HCI ACLDATA TX -> 020000F600F20004001B05004C0900001E89A81D27054001410141013F0100003D89A81D2706F50001010101EA000000B389A81D27071A0019001E0019000000F3B5A91D270541014001420140010000E0B5A91D2706EE00E7000001E7000000DEB5A91D2707170016001A00160000008FE1AA1D2705410141014101400100007FE1AA1D2706F600F3000401EA00000031E1AA1D270715001500160015000000BF0DAC1D270542014101430141010000FF0DAC1D2706FE0001010701F3000000530DAC1D2707140014001500130000004839AD1D270541014101420141010000DC39AD1D2706EE00F900F900E9000000FF39AD1D27071300120013 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B00070004001203005A090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2394 HCI ACLDATA TX -> 020000F600F20004001B05005A0900001E39AD1D270713001200130012000000E165AE1D2705420141014201410100007665AE1D2706FA00F3000901EA000000DA65AE1D2707120011001300110000008391AF1D2705400141014101400100006791AF1D27060001F4002001F10000006C91AF1D270711001100120011000000BDBDB01D270541014201420140010000A5BDB01D2706F300ED000301ED00000044BDB01D270711001000110010000000B8E9B11D270541014001420140010000FEE9B11D2706FD0000010601F200000052E9B11D2707110011001100100000002614B31D27053F013D0140013D010000F314B31D2706F600F600FD | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030068090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2408 HCI ACLDATA TX -> 020000F600F20004001B0500680900001E14B31D2706F600F600FD00EF0000008614B31D2707100010001100100000007940B41D27053A0137013D01370100007E40B41D27060A0110011401FA0000009B40B41D270716000900350009000000266CB51D270537013701370137010000B96CB51D27060F01190119010A0100004C6CB51D2707060005000800050000001398B61D2705370137013801370100008798B61D27061201130116010E0100006798B61D2707040004000500040000000AC4B71D27053601360137013601000018C4B71D27061301120116011201000079C4B71D270704000300040003000000D2F0B81D27053701360137 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030076090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2422 HCI ACLDATA TX -> 020000F600F20004001B0500760900001EF0B81D27053701360137013601000018F0B81D270613011101180111010000E9F0B81D270703000300030003000000C11CBA1D2705350135013601350100007D1CBA1D2706170114011B0114010000EE1CBA1D2707030003000300030000005B48BB1D2705360136013601350100002E48BB1D270612010C011B010C010000B448BB1D2707030003000300030000008674BC1D2705360136013601360100007574BC1D2706080108010D0103010000EE74BC1D27070300030003000300000055A0BD1D270535013501360135010000B8A0BD1D270608010B010C0103010000D7A0BD1D27070300030003 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030084090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2436 HCI ACLDATA TX -> 020000F600F20004001B0500840900001EA0BD1D27070300030003000200000011CCBE1D27053501350135013501000041CCBE1D27060D01090110010901000011CCBE1D270703000300030002000000B1F8BF1D2705340134013501330100009AF8BF1D2706100117011701080100001EF8BF1D2707030003000300030000006124C11D270534013501350134010000A124C11D270611010E0118010D010000B624C11D2707030003000300030000009F50C21D270534013401350134010000EE50C21D27060D0112011201090100006950C21D270703000300030003000000937CC31D2705340134013501340100001D7CC31D27060F010E0113 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B000700040012030092090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2450 HCI ACLDATA TX -> 020000F600F20004001B0500920900001E7CC31D27060F010E0113010D0100004D7CC31D27070300030003000300000060A8C41D270534013401350133010000B8A8C41D27060C01090112010801000043A8C41D27070300030003000300000043D4C51D27053401330135013301000058D4C51D27060E010C0114010801000012D4C51D270705000400080003000000CD00C71D2705340134013401330100000000C71D2706FE00F0000D01EE000000A500C71D270703000300040003000000492CC81D270534013401340134010000E42CC81D2706F700F3000001F00000008D2CC81D270703000300030003000000AE58C91D27053501350135 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300A0090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2464 HCI ACLDATA TX -> 020000F600F20004001B0500A00900001E58C91D2705350135013501340100000A58C91D2706F200F6000601E90000004B58C91D270703000300030003000000FA84CA1D270535013501350134010000FD84CA1D2706F600F300FC00ED0000008784CA1D2707030003000300030000000DB0CB1D270535013501350134010000A2B0CB1D2706F500F900FB00F00000001FB0CB1D27070300030003000300000052DCCC1D27053401330135013301000069DCCC1D2706F400F600FD00EE000000A4DCCC1D2707030003000300030000004208CE1D270533013201330132010000F008CE1D2706FC00F3000101F30000000C08CE1D27070300030003 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300AE090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2478 HCI ACLDATA TX -> 020000F600F20004001B0500AE0900001E08CE1D270703000300030003000000FD34CF1D2705320132013201320100003234CF1D2706FD0002010301F80000005A34CF1D270703000300030003000000C660D01D2705320132013301310100003360D01D2706020106010901FB000000C360D01D270703000300030003000000788CD11D270532013201320131010000EA8CD11D2706F900F8000101F50000005C8CD11D27070300030003000300000096ADD31D27053101330133013101000084ADD31D2706F900FB000301F5000000A6ADD31D270711001100110011000000D6D9D41D270532013201330132010000B8D9D41D2706F600F800F9 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300BC090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2492 HCI ACLDATA TX -> 020000F600F20004001B0500BC0900001ED9D41D2706F600F800F900F1000000DFD9D41D2707110011001100110000006A67D81D270531013001310130010000CD67D81D270603010301090100010000C767D81D270711001200120011000000279EDA1D2705310132013201310100007D9EDA1D2706080106010E0103010000119EDA1D2707120012001200110000008CCADB1D27053201320132013201000063CADB1D27060B010D011001070100002ECADB1D270712001200120012000000D955DD1D2705320132013201310100001255DD1D27060F010F011C01070100003F55DD1D2707120012001200120000002081DE1D27053201320132 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300CA090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2506 HCI ACLDATA TX -> 020000F600F20004001B0500CA0900001E81DE1D2705320132013201310100008181DE1D27060B010C010F0108010000E281DE1D270712001200120012000000B3ADDF1D27053201320132013101000072ADDF1D27060D010A0114010A010000B0ADDF1D27071200120012001200000040360100000521012001230120010000723601000006250124012D0123010000893601000007140013001500130000009162020000051F011E011F011E0100001B62020000062501250125012401000068620200000713001300130013000000FE8E030000051E011E011E011D010000848E0300000626012701270125010000AA8E030000071300130013 | bytes loaded: 480 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300D8090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2520 HCI ACLDATA TX -> 020000F600F20004001B0500D8090000138E03000007130013001300120000009FBA040000051E011E011E011D01000033BA040000062801280128012701000074BA0400000713001300130013000000A7E6050000051E011D011E011D0100004FE60500000628012801290127010000FAE605000007130013001300120000009112070000051D011D011D011D0100006B12070000062A012A012B01280100003B120700000713001200130012000000E43E080000051D011D011D011D010000093E080000062C012C012C012B010000513E0800000713001300130012000000C56A090000051C011C011D011C010000D66A090000062D012E012F | bytes loaded: 304 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 HCI ACLDATA RX <- 0200200B0007000400120300E6090000 Log 19B10001-0001-537E-4F6C-D104768A1214 characteristic event written bytes: 4 HCI ACLDATA TX -> 02000005000100040013 BLE load log data idx: 2534 HCI ACLDATA TX -> 020000F600F20004001B0500E6090000056A090000062D012E012F012D010000946A09000007130012001300120000005B960A0000051C011D011D011C010000EB960A0000063001310132012F010000E5960A00000713001300130013000000E900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | bytes loaded: 80 HCI EVENT RX <- 0413050100000100 HCI EVENT RX <- 0413050100000100 ```
dreamstyler commented 4 years ago

Added a sample project, the actual project is much larger. I use FreeRTOS so I had to "unpluck some functions" to add vTaskSuspendAll, xTaskResumeAll, vTaskDelay Also commented out some code, like reading data from SD card, but this should give you an idea of what I have done thus far.

BlueTest.zip

P.S. I am using a "arduino iot 33 nano"