<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Device disconnected and not going connecting again</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23919/device-disconnected-and-not-going-connecting-again</link><description>I was writing 3 character to ble device .but I got below error and ble device got disconnected. LED lights got off... 
 [CoreBluetooth] API MISUSE: &amp;lt;CBPeripheral: 0x1572b660, identifier = 82616B5B-3759-43F2-82DF-61573C2BDCD0, name = AP-09-9999 ^B, state</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Jul 2017 15:06:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23919/device-disconnected-and-not-going-connecting-again" /><item><title>RE: Device disconnected and not going connecting again</title><link>https://devzone.nordicsemi.com/thread/94137?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 15:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46a2e6ad-fabb-4cfa-8e11-e38ab92b69a9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Vijyendra: You need to debug the application please follow &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;this guide&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device disconnected and not going connecting again</title><link>https://devzone.nordicsemi.com/thread/94138?ContentTypeID=1</link><pubDate>Sun, 30 Jul 2017 22:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37322630-4953-42a7-8d7d-bb1a86b4d306</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Did you connect a debug terminal to your BLE device and confirm you did not crash it ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device disconnected and not going connecting again</title><link>https://devzone.nordicsemi.com/thread/94139?ContentTypeID=1</link><pubDate>Sun, 30 Jul 2017 15:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82f2910f-f265-4a46-89c8-a229939a12ca</guid><dc:creator>Vijyendra</dc:creator><description>&lt;p&gt;Its iOS app using Nordic type app with custom framework. While a tried to update 3 character then only it crashed. I was able to update single character successfully... like date&lt;/p&gt;
&lt;p&gt;written code:&lt;/p&gt;
&lt;p&gt;let bytes : [UInt8] = [ 0x00, 0x09, 0x98 , 0x88, 0x83, 0x92, 0xD3, 0x39, 0x39, 0x39, 0x39, 0x39 ]
let datar = Data(bytes:bytes)
deviceNameCharacterToUpdate?.service.peripheral.writeValue(datar as Data, for: deviceNameCharacterToUpdate!, type: CBCharacteristicWriteType.withResponse)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    let bytess : [UInt8] = [ 0x43, 0x67, 0x61 , 0x6E, 0x64, 0x72, 0x61, 0x20 ]
    let dataLoca = Data(bytes:bytess)
    locationCharacterToUpdate?.service.peripheral.writeValue(dataLoca as Data, for: locationCharacterToUpdate!, type: CBCharacteristicWriteType.withResponse)

    
    let data = self.dataWithHexString(hex: hexDateToWrite)
    dateCharacterToUpdate?.service.peripheral.writeValue(data, for: dateCharacterToUpdate!, type: CBCharacteristicWriteType.withResponse)
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device disconnected and not going connecting again</title><link>https://devzone.nordicsemi.com/thread/94136?ContentTypeID=1</link><pubDate>Sun, 30 Jul 2017 08:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbc79a01-502f-4f76-a797-23d30dc76726</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Give more details&lt;/p&gt;
&lt;p&gt;What BLE device are you using e.g. what firmware are you running in it, what App e.g. iOS or Android are you using.&lt;/p&gt;
&lt;p&gt;etc&lt;/p&gt;
&lt;p&gt;BTW. If its your own custom firmware in the BLE device, it sounds like you crashed it while writing those 3 characters&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>