<?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>How to configure nrf7002&amp;#39;s MAC manually</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101820/how-to-configure-nrf7002-s-mac-manually</link><description>I am trying to use nrf7002 in accord with nrf52840 to build a wifi sniffer recently. As a begineer of nrf70 series, I use wifi sample supplied in ncs 2.4.0 as a start, which is the &amp;quot;shell&amp;quot; sample. After programming sample app to nrf52840. I got some error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Nov 2024 05:45:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101820/how-to-configure-nrf7002-s-mac-manually" /><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/512031?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 05:45:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:934f0b05-51af-4e61-b69a-ea4aa2aa74ef</guid><dc:creator>Rajendran Veerakaran</dc:creator><description>&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/511844?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 09:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04511f1a-3668-4be4-84f2-1ecd94f0bae6</guid><dc:creator>Ben_Squar3d</dc:creator><description>&lt;p&gt;Hi, thank you for the trick, it works perfeclty!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/511778?ContentTypeID=1</link><pubDate>Sun, 24 Nov 2024 10:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f63b4b6-0bb4-464a-a944-d7a8aec97d01</guid><dc:creator>Rajendran Veerakaran</dc:creator><description>&lt;p&gt;Use C:\ncs\v2.x.x\nrf\samples\wifi\radio_test&lt;/p&gt;
&lt;p&gt;step 1. Give following cmd to check spi communication b/w host and nRF700x&lt;br /&gt; cmd 1 -&amp;gt; wifi_radio_ficr_prog&lt;br /&gt; &lt;br /&gt;step 2. Use following cmd to get write access&lt;br /&gt; cmd 2 -&amp;gt; wifi_radio_ficr_prog otp_write_params 0x100 0x50FA50FA&lt;br /&gt; &lt;br /&gt;step 3. Use following cmd to write your own mac address&lt;br /&gt; cmd 3 -&amp;gt; wifi_radio_ficr_prog otp_write_params 0x120 0xA1B2C3D4 0x1111&lt;br /&gt; &lt;br /&gt;step 4. you should reset the device after given cmd 3&lt;/p&gt;
&lt;p&gt;step 5. Use following cmd to check succesfully the mac address writtern or not&lt;br /&gt; cmd 4 -&amp;gt; wifi_radio_ficr_prog otp_get_status&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/511766?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2024 14:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dcba44a-359d-4c44-9c8a-04e1a9eed9f9</guid><dc:creator>Rajendran Veerakaran</dc:creator><description>&lt;p&gt;we can short this problem in online&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/511589?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 04:32:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:361663a9-8564-4421-bb90-b8f50004cea1</guid><dc:creator>Rajendran Veerakaran</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will share it with you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/511555?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 17:15:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53797ff7-2f8f-4487-aabe-f03015f3d24d</guid><dc:creator>Ben_Squar3d</dc:creator><description>&lt;p&gt;Hi, I face the same issue. Adding the exact same code at beginning of my main does not solve the issue. Any update?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/461677?ContentTypeID=1</link><pubDate>Tue, 26 Dec 2023 08:40:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63fe9c1c-8b8e-483a-96e6-f8e57101ef04</guid><dc:creator>jrt</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried this code but nothing changes. It seems that the wifi_nrf is initialised before the entry in main function and I got the &lt;strong&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;&lt;span style="color:rgba(255, 0, 0, 1);"&gt;&amp;lt;err&amp;gt; wifi_nrf: wifi_nrf_if_start_zep: Invalid MAC address: 00:00:00:00:00:00&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Maybe there is something to do in the prj.conf to avoid this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/447366?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 07:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c5c414c-8212-487f-9eaf-1b2d30fd7f23</guid><dc:creator>Rajendran Veerakaran</dc:creator><description>&lt;p&gt;Hi Arvin&lt;/p&gt;
&lt;p&gt;Thank you for your response and sharing. I will try and update you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/447333?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 03:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f19702f0-5770-4a0e-84a5-8a753cf26924</guid><dc:creator>Arvin Chen</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Rajendran Veerakaran,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; It can be achieved through net mgmt command. Please refer to the example down below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//header for net mgmt command
#include &amp;lt;zephyr/net/net_if.h&amp;gt;
#include &amp;lt;zephyr/net/ethernet.h&amp;gt;
#include &amp;lt;zephyr/net/ethernet_mgmt.h&amp;gt;

//code example setting the MAC manually
struct net_if *iface = net_if_get_default();
struct ethernet_req_params params;
static const uint8_t my_mac_addr[6] = { 0x02, 0x80, 0xe1, 0x69,  0x80,  0xc2 };
memcpy(params.mac_address.addr, my_mac_addr, 6);

int ret = net_mgmt(NET_REQUEST_ETHERNET_SET_MAC_ADDRESS, iface, &amp;amp;params, sizeof(struct ethernet_req_params));
if(ret) goto out;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR.&lt;/p&gt;
&lt;p&gt;Arvin Chen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/447311?ContentTypeID=1</link><pubDate>Sun, 24 Sep 2023 03:31:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc5ded02-72f0-417e-a08b-54fb6b303364</guid><dc:creator>Rajendran Veerakaran</dc:creator><description>&lt;p&gt;Hi Arvin,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Now I am working with nRF9160 + nRF7000. I am facing the same problem. may I know function how did you change MAC address in run time. Thanks in advance.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/436442?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 10:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aee9ae45-f1d4-44bb-8309-35bee203e963</guid><dc:creator>Arvin Chen</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thanks for your help. The problem mentioned above seems to result from HW&amp;#39;s power sequence. Now wifi stack can scan and discover APs nearby.&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;Arvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/436375?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 03:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa89bb2c-37af-40a0-8fc5-e934f960bc8e</guid><dc:creator>Arvin Chen</dc:creator><description>&lt;p&gt;Hi Keeneth,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a customized board, in other words, the onboard nrf7002 is brand new. I had referred to the nrf7002DK&amp;#39;s dts pin setting making it almost the same, including the bias (pull-up or pull-down), and still don&amp;#39;t show any AP&amp;#39;s SSID after the scan command.&lt;/p&gt;
&lt;p&gt;Many thanks&lt;br /&gt;Arvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/436298?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 14:39:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c3a2520-fa7b-4d66-9f46-677441cf287f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you tell me details about the nRF7002-DK you are using? Which version it is for instance.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/436295?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 14:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e6a793c-773d-4d18-b429-5289522e39e7</guid><dc:creator>Arvin Chen</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. Wi-Fi stack starts to run successfully after I set the MAC manually. So I had tried to use sample&amp;#39;s shell command &lt;strong&gt;wifi scan&amp;nbsp;&lt;/strong&gt;to check the APs nearby but the result is contrary to the actual deployment, at mean time, there are no error message.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I have no idea what this kinds of situation result from. If it means &lt;span&gt;nrf7002&amp;#39;s&amp;nbsp;&lt;/span&gt;pin setting is incorrect？&amp;nbsp;&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/pastedimage1689257506643v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure nrf7002's MAC manually</title><link>https://devzone.nordicsemi.com/thread/436253?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 12:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2bbe081-a994-424b-a1f8-52a151e1f786</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use the alternative method mentioned in the documentation like this.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;struct net_if *iface;
struct ethernet_req_params params;

...

ret = net_mgmt(NET_REQUEST_ETHERNET_SET_MAC_ADDRESS, iface, &amp;amp;params, sizeof(struct ethernet_req_params));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The MAC address need to be given to params.mac_address.addr. It can be provided directly in the code, for example:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static const uint8_t my_mac_addr[6] = { 0x01, 0x02, 0x03, 0x04,  0x05,  0x07 };
memcpy(params.mac_address.addr, my_mac_addr, 6);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>