<?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>Basic Bluetooth Communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81526/basic-bluetooth-communication</link><description>Hello developers, 
 
 I saw the process of bluetooth scanning from nordic infocenter. 
 Scanning for advertisers performing legacy advertising 
 In this picture, I don&amp;#39;t understand with the process. 
 App sends a message to SD to start scanning and SD</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Nov 2021 12:29:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81526/basic-bluetooth-communication" /><item><title>RE: Basic Bluetooth Communication</title><link>https://devzone.nordicsemi.com/thread/338776?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 12:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f386f2c-5124-434d-919d-d58d2b4eb725</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="it0406"]&lt;blockquote&gt;&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81526/basic-bluetooth-communication/338187#338187"&gt;ovrebekk said:&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Not sure what you mean about the information being &amp;#39;right&amp;#39;?&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;
&lt;p&gt;I mean the return value like NRF_SUCCESS or other faults, whether APP got a correct information from SD.&lt;/p&gt;[/quote]
&lt;p&gt;On the scanner side you won&amp;#39;t get any event unless the advertise packet was successfully received. In other words,&amp;nbsp;the scan event is only triggered for correctly received advertise packets.&amp;nbsp;&lt;/p&gt;
[quote user="it0406"]As I understand, SD sends advertisement packets to APP and APP checks itself with CRC. If CRC fails, the packet won&amp;#39;t be used. Then SD doesn&amp;#39;t need reply or answer from APP.&amp;nbsp;Am I right?&amp;nbsp;[/quote]
&lt;p&gt;The CRC check is handled directly by the Bluetooth link layer in the SoftDevice, and does not involve the app at all. If the CRC check fails the packet will be ignored by the SoftDevice, and the app will not get any information about it from the SoftDevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;An important thing to understand about advertise packets is that there is always a lot of lost packets, since the advertiser and scanner is not synchronized. When sending advertise packets you should always assume that only a fraction of the packets you send are received by any one scanner.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Basic Bluetooth Communication</title><link>https://devzone.nordicsemi.com/thread/338663?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 23:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:899684e9-46c5-430b-9354-93251eddd71d</guid><dc:creator>it0406</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/81526/basic-bluetooth-communication/338187#338187"]Not sure what you mean about the information being &amp;#39;right&amp;#39;?[/quote]
&lt;p&gt;I mean the return value like NRF_SUCCESS or other faults, whether APP got a correct information from SD.&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/81526/basic-bluetooth-communication/338187#338187"]All BLE packets include a 24-bit CRC code at the end to detect bit errors, and if the CRC check fails the packet will be ignored.&amp;nbsp;[/quote]
&lt;p&gt;As I understand, SD sends advertisement packets to APP and APP checks itself with CRC. If CRC fails, the packet won&amp;#39;t be used. Then SD doesn&amp;#39;t need reply or answer from APP.&amp;nbsp;Am I right?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;it0406&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Basic Bluetooth Communication</title><link>https://devzone.nordicsemi.com/thread/338187?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 13:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e3123be-41fe-4272-8db0-eae38f3f0fc1</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user=""]As my logic, SD should also send a message to the advertiser like whether SD got the advertisement well or not.[/quote]
&lt;p&gt;There is no acknowledge of advertise packets.&amp;nbsp;Advertise packets are inherently asynchronous, and can be sent to any number of scanners at the same time, so&amp;nbsp;it doesn&amp;#39;t make sense to acknowledge them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The only thing a scanner is allowed to send to an advertiser is a scan request or a connection request.&amp;nbsp;&lt;/p&gt;
[quote user=""]OR APP and SD should communicate after advertising whether the infomation is right or the scanning is failed.[/quote]
&lt;p&gt;Not sure what you mean about the information being &amp;#39;right&amp;#39;?&lt;/p&gt;
&lt;p&gt;All BLE packets include a 24-bit CRC code at the end to detect bit errors, and if the CRC check fails the packet will be ignored.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>