<?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>Peripheral Device Knowing Bluetooth Type of connection.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57190/peripheral-device-knowing-bluetooth-type-of-connection</link><description>Hello to everyone and thanks in advance. 
 First of all, im new at this and would i might be asking something stupid. 
 I have a development, that one of the features would be an adaptive transfer bitrate, depending on the bluetooth version that the central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Feb 2020 12:33:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57190/peripheral-device-knowing-bluetooth-type-of-connection" /><item><title>RE: Peripheral Device Knowing Bluetooth Type of connection.</title><link>https://devzone.nordicsemi.com/thread/234634?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 12:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:022fbbbe-580e-47d7-aa58-d07af9aea0f0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I took a closer look at this and I think I know how to go about this.&lt;/p&gt;
&lt;p&gt;In the peripheral, you can use the function &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_5_3_1_2_1_3_27#gab845ddf7b56ef556ab9c2c74d5199ff8"&gt;sd_ble_gap_phy_update(..)&lt;/a&gt;&amp;nbsp;after a connection is established,&amp;nbsp;to update the speed to 2 Mbps. You will then get a response from the central whether the PHY is supported or not. If it is not supported you will receive the BLE event&amp;nbsp;BLE_GAP_EVT_PHY_UPDATE with a status equal &amp;quot;Not Supported&amp;quot; (=BLE_HCI_UNSUPPORTED_REMOTE_FEATURE) and if it is supported you will receive this BLE event with status equal &amp;quot;Sucess&amp;quot; (=BLE_HCI_STATUS_CODE_SUCCESS). The Message Sequence Chart &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___g_a_p___p_e_r_i_p_h_e_r_a_l___p_h_y___u_p_d_a_t_e.html?cp=4_5_2_1_2_1_5_7_1"&gt;Peripheral PHY Update&lt;/a&gt;&lt;span&gt;&amp;nbsp;gives you a better overview of this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The example&amp;nbsp;&lt;em&gt;examples\ble_central_and_peripheral\experimental\ble_app_att_mtu_throughput&amp;nbsp;&lt;/em&gt;might be helpful to take a look at if you are going to implement this in your application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral Device Knowing Bluetooth Type of connection.</title><link>https://devzone.nordicsemi.com/thread/233518?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2020 12:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b78187e1-a5e6-4709-b773-92ce1b840c22</guid><dc:creator>Farhouse</dc:creator><description>&lt;p&gt;Thanks Simon for your anwnser.&lt;/p&gt;
&lt;p&gt;May i ask another thing?&lt;/p&gt;
&lt;p&gt;is there a flag or something inside the NRF52832 that would allow me to change the behaviour of my nrf device to make it run faster if the bluetooth connection its 5.0 instead of 4.2. As you explained, if the central device its a 4.2 connection, it wont use the 2Mbps bandwidth. Therefor, it doesnt make any sense to read the sensor at a higher speed, since it wont be using that bandwidth.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;If the central device has only 4.2, the peripheral device will only read 25 times the sensor, and make a string that fixes in the 1Mbps bandwidth.&lt;/p&gt;
&lt;p&gt;But if the central device uses 5.0, that means i have 2Mbps bandwidth and i could read the sensor 50 times.&lt;/p&gt;
&lt;p&gt;Thats why im asking if there is a way for the peripheral device to know what type of connection the central stablished, and change the way it sends data to use that extra bandwidth. I know that if there isnt, i can just send a command over uart that means use the 2Mbps bandwidth.&lt;/p&gt;
&lt;p&gt;thanks again for all the help and patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral Device Knowing Bluetooth Type of connection.</title><link>https://devzone.nordicsemi.com/thread/233489?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2020 11:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:927b42c3-81ad-480d-9bb0-e653f76780f0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Bluetooth 5 is backward compatible, which means that a BLE 5.0 device can connect to a BLE 4.2 device. Take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30580/bluetooth-5-vs-4-2/121122#121122"&gt;this&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50718/ble-4-2-softdevice-s132/202887#202887"&gt;this&lt;/a&gt; case, which explains this in more detail.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;&amp;quot;I don&amp;#39;t know whether you are aware of it, but BLE 5.0 is backwards compatible, so you don&amp;#39;t need to restrict yourself to a strict BLE 4.2 softdevice. All the features in 5.0 are optional, and you can chose to not support any of them. If you do support some of them, but want to communicate with &lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;a device that doesn&amp;#39;t support that feature (a 4.2 device) then they will simply not use that feature.&lt;/span&gt;&lt;/strong&gt;&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral Device Knowing Bluetooth Type of connection.</title><link>https://devzone.nordicsemi.com/thread/232103?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 14:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7a8ea9a-8aa9-4d03-af93-7c2ec646736b</guid><dc:creator>Farhouse</dc:creator><description>&lt;p&gt;I would try to explain better.&lt;/p&gt;
&lt;p&gt;The NRF52832 can work in bluetooth 4.2 and Bluetooth 5.0. meaning that it can work at 1Mbs or 2Mbs. for better compatibility with android devices im currently using 4.2 version, but i would like to allow devices that support 5.0 to use that version of bluetooth with my nrf52832 and also make my firmware transfer more data, as new speeds are available in the 5.0 version.&lt;/p&gt;
&lt;p&gt;is there a simple way to do it? or i need to do it in a &amp;quot;propietary&amp;quot; way. (example: my own app sends me a data saying that the device supports bluetooth 5 and switch to that version).&lt;/p&gt;
&lt;p&gt;is it better now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral Device Knowing Bluetooth Type of connection.</title><link>https://devzone.nordicsemi.com/thread/232098?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 13:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fa16393-adfc-45e9-92b7-dbb593baa38f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure if I understand what you are asking about? Could you be more specific?&lt;/p&gt;
&lt;p&gt;A BLE central device scans for advertisements from a peripheral device and establishes a connection through &lt;a href="https://learn.adafruit.com/introduction-to-bluetooth-low-energy/gatt"&gt;GATT&lt;/a&gt;. Check out our BLE tutorials for a deeper understanding:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-central-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-central-tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>