<?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>Need to change RF RCV/TX distance through software not hardware</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21862/need-to-change-rf-rcv-tx-distance-through-software-not-hardware</link><description>My Issue, 
 I need to be able to set radio RCV/TX signals to a specific distance. I would like to control this
through the firmware. Do you have any recommendations or examples using Nordic products. 
 I want to do RCV/TX at 5 feet
8 feet
12 feet</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 May 2017 08:16:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21862/need-to-change-rf-rcv-tx-distance-through-software-not-hardware" /><item><title>RE: Need to change RF RCV/TX distance through software not hardware</title><link>https://devzone.nordicsemi.com/thread/85849?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 08:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:463a7e01-8365-4e52-b66c-6cd9f747bdfd</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello Gillgen1&lt;/p&gt;
&lt;p&gt;Setting signals to achieve a specific range is a bit complicated, as there are many factors that affect this. Transmitter output power, matching between the transmitter amplifier and the antenna, matching between the receiver amplifier and antenna, antenna types, polarization of transmitting and receiving antenna in relation to each other, line of sight, multipath propagation, noise sources etc.&lt;/p&gt;
&lt;p&gt;If you already have a board, there&amp;#39;s a couple of things you can do. First, you can adjust the radio output power, to try to achieve the range you want. If you are using a proprietary radio protocol you can adjust the radio output power with the TXPOWER hardware peripheral register. If you are using our softdevices you can use the sd_ble_gap_tx_power_set() API call. Do note that there are limitations to what output powers you can choose.&lt;/p&gt;
&lt;p&gt;The maximum range between two devices can be approximated with Friis propagation equation (for an introduction see &lt;a href="http://www.antenna-theory.com/basics/friis.php"&gt;this link&lt;/a&gt;) when you know transmitted power, antenna gains, and the requirement for minimum received power. Do note that this equation is based on free space propagation and it does not take things like multipath fading or obstructions into consideration. The environment your devices are in will affect the range you can achieve.&lt;/p&gt;
&lt;p&gt;Another way to affect range would be to adjust the bitrate of your transfer. Lower bitrates give the receiving system more time to make out the transmitted signal from noise, which results in longer range. In an environment with a lot of obstructions or noise, you could also transmit smaller packets, with a short connection interval. This way the system will not have to retransmit large amounts of data whenever a packet is lost, and packets are transmitted often.&lt;/p&gt;
&lt;p&gt;At short range, with few obstructions, you can go for larger packets and higher throughput.&lt;/p&gt;
&lt;p&gt;For adjusting throughput, you can look at the ble_app_att_mtu_throughput example in the examples-&amp;gt;ble_central_and_peripheral-&amp;gt;experimental folder.&lt;/p&gt;
&lt;p&gt;For adjusting the transmit power using the hardware peripheral registers see&lt;/p&gt;
&lt;p&gt;nRF51 reference manual, page 93, table 112: TXPOWER.&lt;/p&gt;
&lt;p&gt;nRF52832 PS, page 219, table 23.14.10: TXPOWER&lt;/p&gt;
&lt;p&gt;nRF52840 PS, page 274, table 22.14.10: TXPOWER&lt;/p&gt;
&lt;p&gt;For adjusting the transmit power using the BLE Softdevice call see the sd_ble_gap_tx_power_set function description at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s120.api.v2.1.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=3_7_1_0_0_2_1_4_26#ga0f1931af876bef39520c58de5ac060ca"&gt;Infocenter&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>