<?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>SLIP protocol in serial boot-loader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54257/slip-protocol-in-serial-boot-loader</link><description>We are implementing a DFU controller in a microcontroller that communicates with the nRF boot-loader over serial. The target device is nRF52832 using SDKv15.3.0. The boot-loader is from the example DFU secure serial boot-loader. 
 According to the Bluetooth</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Nov 2019 02:30:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54257/slip-protocol-in-serial-boot-loader" /><item><title>RE: SLIP protocol in serial boot-loader</title><link>https://devzone.nordicsemi.com/thread/220453?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 02:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d762c8c0-e656-491f-a721-e257c88d5103</guid><dc:creator>Phil</dc:creator><description>&lt;p&gt;Thanks.&amp;nbsp; That would be useful.&amp;nbsp; If a 0xC0 is received immediately after a 0xC0 this can be treated as receiving a zero-length SLIP frame.&amp;nbsp; The SLIP receiver should only indicate when it has received a non-zero length SLIP frame.&amp;nbsp; It shouldn&amp;#39;t be necessary to have any special handling for consecutive 0xC0 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLIP protocol in serial boot-loader</title><link>https://devzone.nordicsemi.com/thread/220240?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 09:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcc94d16-2f7b-4bc3-9643-07b8eb3e6451</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Will add the update to the SLIP library as a feature request in our internal issues database.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for pointing this out. We appreciate the feedback!&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLIP protocol in serial boot-loader</title><link>https://devzone.nordicsemi.com/thread/219769?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 21:58:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fe7da51-cc02-4b69-b030-a6e4234d6d00</guid><dc:creator>Phil</dc:creator><description>&lt;p&gt;Thanks for your reply.&amp;nbsp; Yes we found a solution.&amp;nbsp; However, instead of updating the documentation, I recommend that Nordic update the SLIP library so that it can handle two or more consecutive END bytes between frames as per the Bluetooth Core Specification.&amp;nbsp; It is a simple thing to do.&amp;nbsp; Another reason for doing this is that the SLIP sending device can send a couple of 0xC0 bytes back-to-back to reset the SLIP receiver at the other end.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLIP protocol in serial boot-loader</title><link>https://devzone.nordicsemi.com/thread/219726?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 15:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ae99c2f-deab-4f2f-8d9e-eea848afc971</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Phil,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad to hear you found a solution. No action needed from me I guess? Will provide this feedback to the developers so that the documentation can be updated to state this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLIP protocol in serial boot-loader</title><link>https://devzone.nordicsemi.com/thread/219571?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 02:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b1b02f0-1147-4483-b5df-cbc89e3cdb16</guid><dc:creator>Phil</dc:creator><description>&lt;p&gt;RFC1055 specifies an END byte (0xC0) is sent only at the end of a SLIP frame.&amp;nbsp; Therefore there is only one END byte between SLIP frames.&lt;/p&gt;
&lt;p&gt;It is optional to send an END byte before and after a SLIP frame, so there will be 2 END bytes between SLIP frames.&amp;nbsp; This is mentioned in RFC1055, and the SLIP decoder should just ignore consecutive END bytes.&amp;nbsp; The Bluetooth Core Specification describes SLIP frame encoding with END byte at the start and end of the frame.&lt;/p&gt;
&lt;p&gt;A robust SLIP receiver should be capable of receiving any number of END bytes between SLIP frames.&amp;nbsp; Apparently the SLIP receiver used in the bootloader requires exactly one END byte between SLIP frames.&lt;/p&gt;
&lt;p&gt;We modified our SLIP encoder and decoder in the microcontroller to use only one END byte and it now communicates correctly with the boot-loader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>