<?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>Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92882/antenna-pattern-aod</link><description>I&amp;#39;m using nRF5340 DK for BLE, AoD (Connection). I am also using the TX example from nordic. I can add extra antennas to the ant_patterns[] (up to 17), with no errors. I also changed #define BLE_ANT_PATTERN to 17. But in reality, while connecting to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Nov 2022 07:10:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92882/antenna-pattern-aod" /><item><title>RE: Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/thread/393778?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 07:10:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7dd9ea4-9f8d-4eb6-8482-fac468c82099</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Got an update from our devs: The Kconfig value of&amp;nbsp;&lt;strong&gt;BT_CTLR_DC_MAX_ANT_SW_PATTERN_LEN&lt;/strong&gt;&amp;nbsp;is used by the controller to check that the provided number of antenna IDs is not greater than the value used during building. By default it&amp;#39;s 12 as seen below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;config BT_CTLR_DF_MAX_ANT_SW_PATTERN_LEN
    int &amp;quot;Maximum length of antenna switch pattern&amp;quot;
    range 2 38 if SOC_COMPATIBLE_NRF
    range 2 75 if !SOC_COMPATIBLE_NRF
    default 12
    help
      Defines maximum length of antenna switch pattern that controller
      is able to store. For nRF5x-based controllers, the hardware imposes
      the value is within range 2 to 38, where last value is maximum.
      For general use cases Bluetooth Core 5.1 spec. required the value
      to be within range 2 up to 75.&lt;/pre&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: Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/thread/393720?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 14:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de78c109-af77-4885-b588-821657b7a1c6</guid><dc:creator>enoop</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, here is a screenshot of what I receive every time after changing the char size. U can see the sizeArg = 1 all the time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;As an alternative, do you think I can read the antenna pattern from a .text file? (Instead of inputting&amp;nbsp;a pattern as a command? I actually tried reducing the size of my command, so that I can have larger strings, but still, I get the same message.)&amp;nbsp;Therefore, I think the problem should be somewhere else.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m very sorry for such a time-consuming question. I truly appreciate your patience and your kind responses.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2022_2D00_11_2D00_02-15_2D00_38_2D00_38.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/thread/393659?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 13:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a56949c6-fcbf-42bb-ab61-0ce04896ea5c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Not as far as I know but I have asked the developers to make sure. I will get back to you when I know. In the meantime, can you confirm that you also get the &amp;quot;too many arguments&amp;quot; when the number of elements are set to more than 10?&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: Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/thread/393552?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 21:51:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b418c719-e39d-4744-af57-bbd5450b5858</guid><dc:creator>enoop</dc:creator><description>&lt;p&gt;Dear Simon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already changed this value to more than 10 (for example 14), yet I still receive the same Error. May I ask if the Zephyr has any limitations on this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/thread/393194?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2022 10:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:342dc6d3-961f-4c11-8039-cc856f2b30e7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;From your screenshot it seems like you&amp;#39;ve set the array size to include/support 10 elements yourself ( &lt;strong&gt;char elem [10];&amp;nbsp;&lt;/strong&gt;), and then you get this error of too many arguments when trying to write 11 elements in your array (since 40 is printed twice). Can&amp;#39;t you just increase the size of this array on your end, as I don&amp;#39;t know of a restriction in the Zephyr controller on the number of antennas you can use.&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: Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/thread/392940?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2022 06:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65e3f840-48d0-48b4-a28b-b3d9efe7b7aa</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Simon is OoO until Monday and he is a right person to answer you. It would be great if you can wait until Monday. Thanks a lot for your patience so far.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/thread/392406?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 13:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:536fb62d-e96a-4a07-ba2c-32f986ff796e</guid><dc:creator>enoop</dc:creator><description>&lt;p&gt;I added these two files myself. It&amp;#39;s a compatible Zephyr version, but I&amp;#39;m only using the necessary parts for my application from the SDK. So, I&amp;#39;m combining several codes with each other. (That&amp;#39;s why I have Bluetooth.h)&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working directly with&amp;nbsp;&lt;span&gt;Zephyr&lt;/span&gt;, and I&amp;#39;m sending a command through the shell to specify the antenna pattern. Here is the code screenshot: (Is there a limit on the number of arguments with Zephyr?)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/ble_5F00_pattern.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the problem. I try to connect to the serial port, and I&amp;#39;m sending this command to change the antenna pattern, but I receive the following message.&amp;nbsp;(40, 41, ... are the gpios for the antennas)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can it be a limit to the length of command in the terminal? I&amp;#39;m using minicom to connect to the port.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2022_2D00_10_2D00_14-22_2D00_53_2D00_29.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/thread/392036?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 07:48:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ebd8c6f-b2c0-4fcc-9de4-7202de7220f8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Pooneh&lt;/p&gt;
&lt;p&gt;Did you change the dfe-antenna-num to match the number of antennas you&amp;#39;d like to use, as this is the number of antennas you want to use. &lt;strong&gt;dfe-pdu-antenna&lt;/strong&gt; sets what antenna you want to be the default used for PDU transmissions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These mBluetooth.h and gBluetooth.c does not seem to be part of the nRF Connect SDK at all, have you added these yourself or are you using a version of Zephyr outside of the nRF Connect SDK?&lt;/p&gt;
&lt;p&gt;Can you upload the log where this &amp;quot;too many arguments&amp;quot; message is returned as well so we can get a better idea of what&amp;#39;s happening?&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: Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/thread/391977?ContentTypeID=1</link><pubDate>Sat, 22 Oct 2022 10:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bf23447-7fec-470d-9e41-b7e602efe803</guid><dc:creator>enoop</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your response. I am using the Zephyer Controller.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I only have one *.overlay file in my child image that is written based on nRF5x SoC . dfe-antenna-num = &amp;lt;&lt;strong&gt;4&lt;/strong&gt;&amp;gt;; in this file. Also in this file, I defined 7 gpios. (dfegpio0-gpios = &amp;lt;&amp;amp;gpio1 1 0&amp;gt;; &amp;hellip;). In this file, I also define: dfe-pdu-antenna = &amp;lt;0x40&amp;gt;. That&amp;rsquo;s all!&lt;/p&gt;
&lt;p&gt;(I am using an antenna array with&lt;strong&gt; 4&lt;/strong&gt; switches that each of which switches 16 antennae. (64 in total) Separately, they all are functioning well)&lt;/p&gt;
&lt;p&gt;In my mBluetooth.h file (in modules), I have defined the BLE_ANT_PATTERN 17,&lt;/p&gt;
&lt;p&gt;In the gBluetooth.c file (in src), I have: static unit8_t ant_pattern[] = {0x40, &amp;hellip;} (I&amp;rsquo;m using gpio 4)&lt;/p&gt;
&lt;p&gt;Then I build the whole project, with no errors. (build target = nrf5340dk_nrf5340_cpuapp)&lt;/p&gt;
&lt;p&gt;Once I programmed my dev board, I connect to the Port (ttyACM1), to change the antenna pattern, and then, I come across the error that I can not put more than 10 gpios when entering the new pattern. (I am using aod_tx )&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Pooneh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Antenna pattern AoD</title><link>https://devzone.nordicsemi.com/thread/390981?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 11:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41f8505c-160e-477b-a946-f9d29de1355d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I assume you&amp;#39;re using the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/direction_finding_peripheral/README.html"&gt;Direction Finding peripheral&lt;/a&gt; sample project, correct? And are you using the SoftDevice controller or the Zephyr controller? Can you check what&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;dfe-antenna-num is set to in your nrf5340dk_nrf5340.overlay file? In our sample project this is set to 12 for the nRF52833 and nRF53 builds, but 10 for the nRF52820 overlay file. This is the first thing that comes to mind when you ask for why more than 10 defined antennas would cause issues. However I don&amp;#39;t see why it wouldn&amp;#39;t trig until you set the antenna pattern above 17 though, so I might have to ask the developers if there is some setting I&amp;#39;m not aware of here. But please, first answer my questions and check what dfe-antenna-num is set to in your application.&lt;/span&gt;&lt;/div&gt;
&lt;/div&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>