<?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>Set a fixed WiFi connection for the Nordic OTBR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50331/set-a-fixed-wifi-connection-for-the-nordic-otbr</link><description>Hi, 
 
 I am trying to set a fixed WiFi connection in the &amp;quot;/etc/wpa_supplicant/wpa_supplicant.conf &amp;quot; file, but it gets lost on every reboot. I assume it is because of the Access Point feature. Could you please tell me what I have to do to disable it and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Aug 2019 12:43:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50331/set-a-fixed-wifi-connection-for-the-nordic-otbr" /><item><title>RE: Set a fixed WiFi connection for the Nordic OTBR</title><link>https://devzone.nordicsemi.com/thread/201882?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 12:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bb88e6c-c22c-4971-8b50-d900a75f2857</guid><dc:creator>rodruizronald</dc:creator><description>&lt;p&gt;Yeah, it works know.&lt;/p&gt;
&lt;p&gt;Thank you very much Edvin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a fixed WiFi connection for the Nordic OTBR</title><link>https://devzone.nordicsemi.com/thread/201467?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 09:16:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5077c69b-8ca5-40e4-b2bf-d4ff5c5f44de</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Did you try&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$ sudo systemctl disable ap-config.service&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;?&lt;/p&gt;
&lt;p&gt;In that case, it didn&amp;#39;t start up on reboot. You can enable it later if you like using:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$ sudo systemctl enable ap-config.service&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a fixed WiFi connection for the Nordic OTBR</title><link>https://devzone.nordicsemi.com/thread/201450?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 08:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5195e4b2-ce5c-4918-8258-54852577bec6</guid><dc:creator>rodruizronald</dc:creator><description>&lt;p&gt;Well, not exactly. Once the board has been powered up, I run manually&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$ nmcli connection down BorderRouter-AP&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;to disable the BorderRouter-AP and then the Nordic OTBR connects to the enterprise network automatically.&lt;/p&gt;
&lt;p&gt;I found that it is possible to remove the BorderRouter-AP instead of just shutting it down by executing&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$ nmcli connection delete BorderRouter-AP&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;but I decided not to do it and just disabling it on startup because at some point I may need the access point.&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a fixed WiFi connection for the Nordic OTBR</title><link>https://devzone.nordicsemi.com/thread/201440?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 08:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:829cdcb9-fe43-4dee-bc88-0e13bd6a96e0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So does this mean that you managed to both disable the BorderRouter-AP and connect to the enterprise network automatically on startup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a fixed WiFi connection for the Nordic OTBR</title><link>https://devzone.nordicsemi.com/thread/201328?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 15:10:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0166964-6e2b-441b-8b5a-c2ce25a9e096</guid><dc:creator>rodruizronald</dc:creator><description>&lt;p&gt;I tried the example and the result is the same. Here is the new configuration,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nmcli con add type wifi ifname wlan0 con-name uni-wifi ssid &amp;lt;your_ssid&amp;gt;
nmcli con edit id uni-wifi
nmcli&amp;gt; set wifi-sec.key-mgmt wpa-eap
nmcli&amp;gt; set 802-1x.eap ttls
nmcli&amp;gt; set 802-1x.identity &amp;lt;your_identity&amp;gt;
nmcli&amp;gt; set 802-1x.password &amp;lt;your_password&amp;gt;
nmcli&amp;gt; set 802-1x.phase2-auth mschapv2
nmcli&amp;gt; verify
nmcli&amp;gt; save
nmcli&amp;gt; activate&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My initial intention was to disable the BorderRouter-AP to connect the Nordic OTBR to a WPA2 enterprise network, so as long as I can connect to the network, I do mind disabling the BorderRouter-AP on reboot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a fixed WiFi connection for the Nordic OTBR</title><link>https://devzone.nordicsemi.com/thread/201310?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 14:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f06cc6f4-c76c-4f38-a5ed-952700076cb6</guid><dc:creator>rodruizronald</dc:creator><description>&lt;p&gt;Thanks for all the support Edvin. I found a solution here &lt;a href="https://askubuntu.com/questions/943787/how-to-connect-to-wpa2-enterprise-wifi-in-ubuntu-core-raspberry-pi-3"&gt;https://askubuntu.com/questions/943787/how-to-connect-to-wpa2-enterprise-wifi-in-ubuntu-core-raspberry-pi-3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nmcli connection edit type 802-11-wireless
nmcli&amp;gt; goto 802-11-wireless
nmcli 802-11-wireless&amp;gt; set ssid &amp;lt;your_ssid&amp;gt;
nmcli 802-11-wireless&amp;gt; back
nmcli&amp;gt; goto 802-11-wireless-security
nmcli 802-11-wireless-security&amp;gt; set key-mgmt wpa-eap
nmcli 802-11-wireless-security&amp;gt; back
nmcli&amp;gt; goto 802-1x
nmcli 802-1x&amp;gt; set eap peap
nmcli 802-1x&amp;gt; set identity &amp;lt;your_identity&amp;gt;
nmcli 802-1x&amp;gt; set password &amp;lt;your_password&amp;gt;
nmcli 802-1x&amp;gt; set phase2-auth mschapv2
nmcli 802-1x&amp;gt; back
nmcli&amp;gt; verify
nmcli&amp;gt; save
Saving the connection with &amp;#39;autoconnect=yes&amp;#39;. That might result in an immediate activation of the connection.
Do you still want to save? (yes/no) [yes] yes
Connection &amp;#39;wifi&amp;#39; (20e7bab0-6780-45a7-b650-eafb28e7912a) successfully saved.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It works, the only problem is that the Access Point is enabled on reboot. So I have to run&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$ nmcli connection down BorderRouter-AP&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;and then my WiFi connection is enabled. I think I need to specify somewhere that the WiFi connection should be the interface used on reboot, but I am not sure where.&lt;/p&gt;
&lt;p&gt;I will try your example and see if it works on reboot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a fixed WiFi connection for the Nordic OTBR</title><link>https://devzone.nordicsemi.com/thread/201294?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 14:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b0b6546-092d-483b-b2c7-51410231a7c2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you try this method?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.khmersite.net/2018/08/connect-to-a-wpa2-enterprise-connection-using-nmcli/"&gt;https://blog.khmersite.net/2018/08/connect-to-a-wpa2-enterprise-connection-using-nmcli/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have not tested it, but if it doesn&amp;#39;t work, I will ask the guy who thought me how to disable the AP network tomorrow (he is not in the office today).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a fixed WiFi connection for the Nordic OTBR</title><link>https://devzone.nordicsemi.com/thread/201234?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 12:04:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b8c255d-422a-4f22-9750-c174d14d1743</guid><dc:creator>rodruizronald</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I disable the &lt;em&gt;BorderRouter-AP&lt;/em&gt; as you suggested and it worked. Then, I configured my network manually by writing in the&amp;nbsp;&lt;strong&gt;/etc/wpa_supplicant/wpa_supplicant.conf&lt;/strong&gt; and &lt;strong&gt;/etc/network/interfaces&lt;/strong&gt; file, but it does not work. This is the way I do it since I got my RPi3 and it has always worked.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;/etc/wpa_supplicant/wpa_supplicant.conf&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;network={
  ssid=&amp;quot;newcastle-university&amp;quot;
  key_mgmt=WPA-EAP
  eap=TTLS
  identity=&amp;quot;your_login_name&amp;quot;
  password=&amp;quot;your_password&amp;quot;
  phase2=&amp;quot;auth=MSCHAPv2&amp;quot;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;/etc/network/interfaces&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you can see, it is an enterprise network. That is the reason I did not followed your example. You mention that the Border Router uses the NetworkManager module to manage it&amp;#39;s networks. Does this means that the only possible way of enable connection is through it? So, would I have to use the NetworkManager for enterprise networks?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ronald&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a fixed WiFi connection for the Nordic OTBR</title><link>https://devzone.nordicsemi.com/thread/201009?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 14:04:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83ec0468-0fdb-4c77-a523-741123bde818</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes. I have struggled a bit with the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is correct as you say, the Access Point service overwrites the default network configurations which is usually stored in wpa_supplicant/wpa_supplicant.conf.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The Border Router uses NetworkManager to module to manage it&amp;#39;s networks.&lt;/p&gt;
&lt;p&gt;I am not sure if step 1 is required, but at least it works if you include it.&lt;/p&gt;
&lt;p&gt;To disable the AP feature, type the command:&lt;/p&gt;
&lt;p&gt;1:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$ nmcli connection down BorderRouter-AP&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;2:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$ sudo systemctl disable ap-config.service&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;3:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$ nmcli connection add con-name &amp;lt;ssid&amp;gt; ifname wlan0 type wifi ssid &amp;lt;ssid&amp;gt; ipv6.method ignore wifi-sec.key-mgmt wpa-psk wifi-sec.psk &amp;lt;password&amp;gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;where &amp;lt;ssid&amp;gt; is the name of your network, and &amp;lt;password&amp;gt; is your password. So if you have a network named &amp;quot;MyNetwork&amp;quot; with password &amp;quot;MyPassword&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$ nmcli connection add con-name MyNetwork&amp;nbsp;ifname wlan0 type wifi ssid MyNetwork&amp;nbsp;ipv6.method ignore wifi-sec.key-mgmt wpa-psk wifi-sec.psk&amp;nbsp;MyPassword&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So this will add your network to the network manager. If you restart (&lt;em&gt;$ sudo reboot&lt;/em&gt;) it will connect to this network on the next startup.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>