<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[PINE64 - Wifi/BT Module]]></title>
		<link>https://forum.pine64.org/</link>
		<description><![CDATA[PINE64 - https://forum.pine64.org]]></description>
		<pubDate>Sat, 18 Apr 2026 10:05:44 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Wifi / Bluetooth Board Update]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=10733</link>
			<pubDate>Sun, 19 Jul 2020 22:13:19 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=4843">S265</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=10733</guid>
			<description><![CDATA[OS is Fedora 5.7.8-200.fc32.aarch64<br />
<br />
I have been content to use Ethernet Networking since acquiring the Pine64. This works well. However I would like to use the cable for another project and wish to activate the Wifi board. I have googled and searched the docs for a way to do this in Fedora. Some help from the Pine64 IRC suggested the wifi module and firmware was needed. This is a very new kernel but despite a few posts that the firmware was to be integrated  - it does not seem to be the case. Can anyone suggest how to go about this in Fedora?]]></description>
			<content:encoded><![CDATA[OS is Fedora 5.7.8-200.fc32.aarch64<br />
<br />
I have been content to use Ethernet Networking since acquiring the Pine64. This works well. However I would like to use the cable for another project and wish to activate the Wifi board. I have googled and searched the docs for a way to do this in Fedora. Some help from the Pine64 IRC suggested the wifi module and firmware was needed. This is a very new kernel but despite a few posts that the firmware was to be integrated  - it does not seem to be the case. Can anyone suggest how to go about this in Fedora?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[A64 Wireless issue]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=7482</link>
			<pubDate>Sat, 11 May 2019 19:06:54 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=11849">dpcons</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=7482</guid>
			<description><![CDATA[I didn't see a discussion group for the old Pine64, just the Pine64+ so the moderator will probably need to move it.  I just purchased and installed the Pine wifi card for my board.  It didn't have any instructions or ducumentation included so I assumed the installation would be automatic.  Not so.  The system doesn't appear to recognize the board...at least in the configuration.   I'm not sure if drivers need to be installed or updated, etc.  If been running on ethernet for some time and the systems been running pretty good...although slow but wireless would be nice. If I run iwconfig I get this:<br />
<br />
dan@pine64:~&#36; sudo iwconfig<br />
[sudo] password for dan: <br />
eth0      no wireless extensions.<br />
<br />
lo        no wireless extensions.<br />
<br />
wlan0     unassociated  Nickname:"&lt;WIFI@REALTEK&gt;"<br />
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   <br />
          Sensitivity:0/0  <br />
          Retry:off   RTS thr:off   Fragment thr:off<br />
          Encryption key:off<br />
          Power Management:off<br />
          Link Quality:0  Signal level:0  Noise level:0<br />
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0<br />
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0<br />
<br />
enxc8d719d80388  no wireless extensions.<br />
<br />
so it appears the system sees is but that's about it  Anybody know what's happening?]]></description>
			<content:encoded><![CDATA[I didn't see a discussion group for the old Pine64, just the Pine64+ so the moderator will probably need to move it.  I just purchased and installed the Pine wifi card for my board.  It didn't have any instructions or ducumentation included so I assumed the installation would be automatic.  Not so.  The system doesn't appear to recognize the board...at least in the configuration.   I'm not sure if drivers need to be installed or updated, etc.  If been running on ethernet for some time and the systems been running pretty good...although slow but wireless would be nice. If I run iwconfig I get this:<br />
<br />
dan@pine64:~&#36; sudo iwconfig<br />
[sudo] password for dan: <br />
eth0      no wireless extensions.<br />
<br />
lo        no wireless extensions.<br />
<br />
wlan0     unassociated  Nickname:"&lt;WIFI@REALTEK&gt;"<br />
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   <br />
          Sensitivity:0/0  <br />
          Retry:off   RTS thr:off   Fragment thr:off<br />
          Encryption key:off<br />
          Power Management:off<br />
          Link Quality:0  Signal level:0  Noise level:0<br />
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0<br />
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0<br />
<br />
enxc8d719d80388  no wireless extensions.<br />
<br />
so it appears the system sees is but that's about it  Anybody know what's happening?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Connecting an Antenna]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=7380</link>
			<pubDate>Sun, 14 Apr 2019 03:27:58 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=11312">km782</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=7380</guid>
			<description><![CDATA[The signal strength is pretty weak so I would like to add an antenna.  I thought that the connector was u.fl so I ordered this:<br />
<br />
<a href="https://www.amazon.com/HUACAM-5-8GHz-Dual-Band-Wireless-Network-Antenna/dp/B06WD7FZV4/" target="_blank" rel="noopener" class="mycode_url">https://www.amazon.com/HUACAM-5-8GHz-Dua...06WD7FZV4/</a><br />
<br />
<br />
However, when I pulled the old wires off of the module and tried to connect the new one, the connector is too big.  Is the connector on the WIFI/BT module not u.fl?  What do I need to get to connect to this board?<br />
<br />
Thank you<br />
<hr class="mycode_hr" />
Actually, now I'm wondering if the connector on the module is w.fl?]]></description>
			<content:encoded><![CDATA[The signal strength is pretty weak so I would like to add an antenna.  I thought that the connector was u.fl so I ordered this:<br />
<br />
<a href="https://www.amazon.com/HUACAM-5-8GHz-Dual-Band-Wireless-Network-Antenna/dp/B06WD7FZV4/" target="_blank" rel="noopener" class="mycode_url">https://www.amazon.com/HUACAM-5-8GHz-Dua...06WD7FZV4/</a><br />
<br />
<br />
However, when I pulled the old wires off of the module and tried to connect the new one, the connector is too big.  Is the connector on the WIFI/BT module not u.fl?  What do I need to get to connect to this board?<br />
<br />
Thank you<br />
<hr class="mycode_hr" />
Actually, now I'm wondering if the connector on the module is w.fl?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[split] Better WiFi/BT module?]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=7213</link>
			<pubDate>Thu, 28 Feb 2019 12:13:04 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=11057">moriel5</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=7213</guid>
			<description><![CDATA[If possible, could you please add Intel Wireless-AC 3168 or 3165 modules?<br />
Also Qualcomm Atheros cards would be good.<br />
The main issue with Realtek WiFi, is the the drivers are absolutely horrendous, and usually very unstable (former beta tester here, and Realtek did not seem to care about the quality of their drivers when I spoke with them about it).<br />
Broadcom is also alright, however on Linux the best quality is with Intel and Qualcomm (due to them actually being serious about supporting Linux).<br />
<br />
Regarding firmware, Also Realtek utilizes closed-source firmware, so that is not a real reason to go with them.<br />
Realtek being the only option (I do not see any other boards I can connect to the WiFi/BT socket) is currently my main blocker from buying any Pine64 boards (and I'd love to switch over from Raspberry Pis), with my secondary blocker is (for me) inadequate USB I/O (I require at least 4 ports, not including USB-C, so 4 USB2 ports is better for me than 2 USB2 and 1 USB3).<br />
<br />
I am interested in AMPAQ's quality though, so if anyone can post about it, I'd be very happy.<br />
<br />
By the way, since the RockPro64 already has a PCIe x4 connector, why not start using M.2 for WiFi/BT on future iterations of Pine64 products? This will widen compatibility with more cards, as well as allow for more bandwidth (say if one would wish to use the Intel Wireless-AX 22260 for up to 600Mbts on 2.4Ghz Wireless-AX, or up to ~2400Mbts on 5Ghz Wireless-AX).]]></description>
			<content:encoded><![CDATA[If possible, could you please add Intel Wireless-AC 3168 or 3165 modules?<br />
Also Qualcomm Atheros cards would be good.<br />
The main issue with Realtek WiFi, is the the drivers are absolutely horrendous, and usually very unstable (former beta tester here, and Realtek did not seem to care about the quality of their drivers when I spoke with them about it).<br />
Broadcom is also alright, however on Linux the best quality is with Intel and Qualcomm (due to them actually being serious about supporting Linux).<br />
<br />
Regarding firmware, Also Realtek utilizes closed-source firmware, so that is not a real reason to go with them.<br />
Realtek being the only option (I do not see any other boards I can connect to the WiFi/BT socket) is currently my main blocker from buying any Pine64 boards (and I'd love to switch over from Raspberry Pis), with my secondary blocker is (for me) inadequate USB I/O (I require at least 4 ports, not including USB-C, so 4 USB2 ports is better for me than 2 USB2 and 1 USB3).<br />
<br />
I am interested in AMPAQ's quality though, so if anyone can post about it, I'd be very happy.<br />
<br />
By the way, since the RockPro64 already has a PCIe x4 connector, why not start using M.2 for WiFi/BT on future iterations of Pine64 products? This will widen compatibility with more cards, as well as allow for more bandwidth (say if one would wish to use the Intel Wireless-AX 22260 for up to 600Mbts on 2.4Ghz Wireless-AX, or up to ~2400Mbts on 5Ghz Wireless-AX).]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Wireless Module Driver Source code]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=6376</link>
			<pubDate>Wed, 08 Aug 2018 22:26:17 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=8942">mido2018</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=6376</guid>
			<description><![CDATA[Hi, <br />
I am trying to find the source code of the Wireless module's driver. I could find the driver's source code for the Bluetooth part but not for the WiFi part of the module. Can someone help me with that?]]></description>
			<content:encoded><![CDATA[Hi, <br />
I am trying to find the source code of the Wireless module's driver. I could find the driver's source code for the Bluetooth part but not for the WiFi part of the module. Can someone help me with that?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Installing another WiFi module on one of the buses]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=6294</link>
			<pubDate>Thu, 19 Jul 2018 21:59:58 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=8942">mido2018</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=6294</guid>
			<description><![CDATA[Hi,<br />
Is it possible to install another WiFi module on one of the two buses? the Pi-bus or the euler bus.]]></description>
			<content:encoded><![CDATA[Hi,<br />
Is it possible to install another WiFi module on one of the two buses? the Pi-bus or the euler bus.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Footprint for the recommended Wi-Fi+BT breakout board]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=5953</link>
			<pubDate>Mon, 09 Apr 2018 10:28:19 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=8378">Madhuwesly</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=5953</guid>
			<description><![CDATA[Hello,<br />
<br />
Can anyone ping me here the package/Footprint information for the recommended Wi-Fi+BT breakout board for SoPine A64 Baseboard?<br />
<br />
<br />
Awaiting a reply.<br />
<br />
Thanks in advance.]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
Can anyone ping me here the package/Footprint information for the recommended Wi-Fi+BT breakout board for SoPine A64 Baseboard?<br />
<br />
<br />
Awaiting a reply.<br />
<br />
Thanks in advance.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Schematics of Wifi/BT module]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=5609</link>
			<pubDate>Sun, 21 Jan 2018 18:51:34 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=7505">gamelaster</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=5609</guid>
			<description><![CDATA[Hello,<br />
<br />
Is there available the schematics of Wifi/BT module?<br />
<br />
Thank you]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
Is there available the schematics of Wifi/BT module?<br />
<br />
Thank you]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Pine64 doesn't recognize Wifi/BT Module]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=4757</link>
			<pubDate>Fri, 14 Jul 2017 01:11:07 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=5954">clobeca</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=4757</guid>
			<description><![CDATA[I have two Pine A64 boards, one with 1GB RAM and one with 2GB. I plugged the Wifi/BT module into the 1GB board but accidentally plugged it in off by one pin on the connectors. The board booted up, but restarted a couple of times before finally coming up. Naturally, it did not recognize the Wifi module. When I saw my mistake, I removed power and repositioned the module. It still did not recognize the module. I tried plugging the module on the 2GB board and it worked fine. I tried the module I originally had on the 2GB board on the 1GB board and it didn't recognize that one either.<br />
<br />
So final result: the 2GB board sees both Wifi/BT modules, but the 1GB board doesn't see either one. I'm guessing I smoked the interface on the 1GB board. Everything else appears to be working on it so far. Has anyone else experienced this?]]></description>
			<content:encoded><![CDATA[I have two Pine A64 boards, one with 1GB RAM and one with 2GB. I plugged the Wifi/BT module into the 1GB board but accidentally plugged it in off by one pin on the connectors. The board booted up, but restarted a couple of times before finally coming up. Naturally, it did not recognize the Wifi module. When I saw my mistake, I removed power and repositioned the module. It still did not recognize the module. I tried plugging the module on the 2GB board and it worked fine. I tried the module I originally had on the 2GB board on the 1GB board and it didn't recognize that one either.<br />
<br />
So final result: the 2GB board sees both Wifi/BT modules, but the 1GB board doesn't see either one. I'm guessing I smoked the interface on the 1GB board. Everything else appears to be working on it so far. Has anyone else experienced this?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Create a WiFi hotspot on Debian 8]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=4383</link>
			<pubDate>Sun, 19 Mar 2017 22:36:12 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=467">JulianM</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=4383</guid>
			<description><![CDATA[Hello together!<br />
<br />
I tried something to create a WiFi hotspot with officially <a href="https://www.pine64.org/?product=wifi-802-11bgn-bluetooth-4-0-module" target="_blank" rel="noopener" class="mycode_url">WiFi/bluetooth module</a> by pine64 via ethernet and this is my solution.<br />
Feel free to discuss about this topic <img src="https://forum.pine64.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
Note: The WiFi hotspot is using the internet connection via ethernet. I wasn't able to bridge the internet connection from wlan0 to wlan1!<br />
Note 2: I haven't installed NetworkManager on my system. NetworkManager can be responsible for problems with these instructions.<br />
<br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Install hostapd </span>(create a hotspot)<span style="font-weight: bold;" class="mycode_b">, dnsmasq </span>(dhcp server)<span style="font-weight: bold;" class="mycode_b"> </span><span style="font-weight: bold;" class="mycode_b">and iptables-persistent </span>(firewall settings)<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>apt-get install hostapd dnsmasq iptables-persistent</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Change the config of </span><span style="font-weight: bold;" class="mycode_b">hostapd</span><br />
/etc/hostapd/hostapd.conf<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>interface=wlan0<br />
driver=nl80211<br />
ssid=MyPrivateHotspot<br />
hw_mode=g<br />
channel=6<br />
macaddr_acl=0<br />
auth_algs=1<br />
ignore_broadcast_ssid=0<br />
wpa=3<br />
wpa_passphrase=MyVeryStrongPassword<br />
wpa_key_mgmt=WPA-PSK<br />
wpa_pairwise=TKIP<br />
rsn_pairwise=CCMP</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Change the config of </span><span style="font-weight: bold;" class="mycode_b">dnsmasq</span><br />
/etc/dnsmasq.conf<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>no-resolv<br />
interface=wlan0<br />
dhcp-range=10.0.0.3,10.0.0.20,12h<br />
server=8.8.8.8<br />
server=8.8.4.4</code></div></div>Restart dnsmasq to apply the new config<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/etc/init.d/dnsmasq restart</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Activate forwarding of IPv4</span><br />
/etc/sysctl.conf<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Just uncomment the following line:<br />
net.ipv4.ip_forward=1</code></div></div>Apply it without reboot with the following command:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>sysctl -w net.ipv4.ip_forward=1</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Setup the network configuration</span><br />
/etc/network/interfaces<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>auto lo<br />
iface lo inet loopback<br />
<br />
auto eth0<br />
iface eth0 inet dhcp<br />
        pre-up iptables-restore &lt; /etc/network/iptables.rules<br />
<br />
iface wlan1 inet manual<br />
<br />
auto wlan0<br />
iface wlan0 inet static<br />
        address 10.0.0.1<br />
        broadcast 10.0.0.255<br />
        netmask 255.255.255.0</code></div></div>And restart the network:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/etc/init.d/networking restart</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Apply iptables rules</span><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>iptables -A FORWARD -o eth0 -i wlan0 -s 10.0.0.1/24 -m conntrack --ctstate NEW -j ACCEPT<br />
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT<br />
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE </code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Save the iptables rules</span><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>iptables-save &gt; /etc/network/iptables.rules</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Create the WiFi hotspot</span><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>hostapd /etc/hostapd/hostapd.conf</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">You're done!</span><br />
<br />
<br />
Best regards<br />
Julian]]></description>
			<content:encoded><![CDATA[Hello together!<br />
<br />
I tried something to create a WiFi hotspot with officially <a href="https://www.pine64.org/?product=wifi-802-11bgn-bluetooth-4-0-module" target="_blank" rel="noopener" class="mycode_url">WiFi/bluetooth module</a> by pine64 via ethernet and this is my solution.<br />
Feel free to discuss about this topic <img src="https://forum.pine64.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
Note: The WiFi hotspot is using the internet connection via ethernet. I wasn't able to bridge the internet connection from wlan0 to wlan1!<br />
Note 2: I haven't installed NetworkManager on my system. NetworkManager can be responsible for problems with these instructions.<br />
<br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Install hostapd </span>(create a hotspot)<span style="font-weight: bold;" class="mycode_b">, dnsmasq </span>(dhcp server)<span style="font-weight: bold;" class="mycode_b"> </span><span style="font-weight: bold;" class="mycode_b">and iptables-persistent </span>(firewall settings)<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>apt-get install hostapd dnsmasq iptables-persistent</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Change the config of </span><span style="font-weight: bold;" class="mycode_b">hostapd</span><br />
/etc/hostapd/hostapd.conf<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>interface=wlan0<br />
driver=nl80211<br />
ssid=MyPrivateHotspot<br />
hw_mode=g<br />
channel=6<br />
macaddr_acl=0<br />
auth_algs=1<br />
ignore_broadcast_ssid=0<br />
wpa=3<br />
wpa_passphrase=MyVeryStrongPassword<br />
wpa_key_mgmt=WPA-PSK<br />
wpa_pairwise=TKIP<br />
rsn_pairwise=CCMP</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Change the config of </span><span style="font-weight: bold;" class="mycode_b">dnsmasq</span><br />
/etc/dnsmasq.conf<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>no-resolv<br />
interface=wlan0<br />
dhcp-range=10.0.0.3,10.0.0.20,12h<br />
server=8.8.8.8<br />
server=8.8.4.4</code></div></div>Restart dnsmasq to apply the new config<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/etc/init.d/dnsmasq restart</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Activate forwarding of IPv4</span><br />
/etc/sysctl.conf<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Just uncomment the following line:<br />
net.ipv4.ip_forward=1</code></div></div>Apply it without reboot with the following command:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>sysctl -w net.ipv4.ip_forward=1</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Setup the network configuration</span><br />
/etc/network/interfaces<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>auto lo<br />
iface lo inet loopback<br />
<br />
auto eth0<br />
iface eth0 inet dhcp<br />
        pre-up iptables-restore &lt; /etc/network/iptables.rules<br />
<br />
iface wlan1 inet manual<br />
<br />
auto wlan0<br />
iface wlan0 inet static<br />
        address 10.0.0.1<br />
        broadcast 10.0.0.255<br />
        netmask 255.255.255.0</code></div></div>And restart the network:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/etc/init.d/networking restart</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Apply iptables rules</span><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>iptables -A FORWARD -o eth0 -i wlan0 -s 10.0.0.1/24 -m conntrack --ctstate NEW -j ACCEPT<br />
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT<br />
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE </code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Save the iptables rules</span><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>iptables-save &gt; /etc/network/iptables.rules</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Create the WiFi hotspot</span><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>hostapd /etc/hostapd/hostapd.conf</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">You're done!</span><br />
<br />
<br />
Best regards<br />
Julian]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Better WiFi/BT module?]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=3225</link>
			<pubDate>Tue, 07 Feb 2017 19:20:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=6070">fonix232</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=3225</guid>
			<description><![CDATA[Would it be possible for a 3rd party to create a better module?<br />
<br />
I believe with the SDIO interface, it <span style="font-style: italic;" class="mycode_i">should </span>be possible to implement a Broadcom BCM4356 (which supports SDIO v3.0 for WiFi and GPIO for BT4.0), and achieve WiFi speeds up to 867Mbps (not to mention this chip has a built-in FM receiver, which could also be used).<br />
<br />
Also I understand that this would raise prices for such a wireless module, but for many, it would be a better choice (especially as there's no PCIe or USB3.0 port onboard). I just feel like 150Mbps is quite limited for such a versatile device.]]></description>
			<content:encoded><![CDATA[Would it be possible for a 3rd party to create a better module?<br />
<br />
I believe with the SDIO interface, it <span style="font-style: italic;" class="mycode_i">should </span>be possible to implement a Broadcom BCM4356 (which supports SDIO v3.0 for WiFi and GPIO for BT4.0), and achieve WiFi speeds up to 867Mbps (not to mention this chip has a built-in FM receiver, which could also be used).<br />
<br />
Also I understand that this would raise prices for such a wireless module, but for many, it would be a better choice (especially as there's no PCIe or USB3.0 port onboard). I just feel like 150Mbps is quite limited for such a versatile device.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[RF connector on wifi\bt board]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=2947</link>
			<pubDate>Thu, 15 Dec 2016 11:48:38 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=1005">kb1qzh</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=2947</guid>
			<description><![CDATA[Hi,<br />
<br />
What's the RF connector on the wifi\bt board? U.fl?<br />
Want to connect the board to a better antenna.<br />
I think i picked up a mmcx cable and that didn't fit.<br />
<br />
Thansk]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
What's the RF connector on the wifi\bt board? U.fl?<br />
Want to connect the board to a better antenna.<br />
I think i picked up a mmcx cable and that didn't fit.<br />
<br />
Thansk]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[wifi direct]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=2672</link>
			<pubDate>Fri, 04 Nov 2016 08:48:39 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=4640">bj_jung</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=2672</guid>
			<description><![CDATA[Hello. Do you know how to connect wifi-direct on ubuntu with wifi/bt module]]></description>
			<content:encoded><![CDATA[Hello. Do you know how to connect wifi-direct on ubuntu with wifi/bt module]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Howto: Getting Bluetooth (serial console) working on Debian]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=2248</link>
			<pubDate>Tue, 20 Sep 2016 09:18:05 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=3142">pfeerick</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=2248</guid>
			<description><![CDATA[Tested on a Pine64+ 1GB running Debian 8 “jessie” (3.10.102-3) using the official <a href="https://www.pine64.org/?product=wifi-802-11bgn-bluetooth-4-0-module" target="_blank" rel="noopener" class="mycode_url">WIFI 802.11BGN/BLUETOOTH 4.0 Module</a>.<br />
<br />
<span style="font-style: italic;" class="mycode_i">What's it all about? </span>These were the steps I followed to be able to view the text output of a bluetooth-enabled USB power meter, and most of these steps apply to getting bluetooth working at all if it isn't already configured in your chosen image. If it is already enabled, you can probably jump straight to step 5. Regardless<span style="font-style: italic;" class="mycode_i">, s</span>teps 1-5 should get your bluetooth working and a device paired with your pine64, but what you do after that if you don't want the text output (ie. you instead want a bluetooth mouse, audio) like I did I wouldn't know! <img src="https://forum.pine64.org/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Step 1:</span> Make sure you have the bluetooth stack and utilities installed! If you want to all make sure you have  all of the stuff this guide uses in one hit, you can add "<span style="font-family: Courier New;" class="mycode_font">rfkill git screen minicom</span>" to the list of stuff to install. <br />
<span style="font-family: Courier New;" class="mycode_font">sudo apt-get install bluez</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><br />
Step 2:</span> Get the firmware binaries for the BT from <a href="https://github.com/lwfinger/rtl8723bs_bt" target="_blank" rel="noopener" class="mycode_url">https://github.com/lwfinger/rtl8723bs_bt</a><br />
<br />
This repo contains the programs and firmware to operate the Bluetooth section of the RTL8723BS. This basically loads the firmware into the module, which makes it a bluetooth module! if you don't have git, install it by running "<span style="font-family: Courier New;" class="mycode_font">sudo apt-get install git</span>".<br />
<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">git clone <a href="https://github.com/lwfinger/rtl8723bs_bt.git" target="_blank" rel="noopener" class="mycode_url">https://github.com/lwfinger/rtl8723bs_bt.git</a></span></blockquote>
<br />
<span style="font-weight: bold;" class="mycode_b"><br />
Step 3:</span> Compile and load the firmware. <br />
Change into the newly cloned repo, and run "<span style="font-family: Courier New;" class="mycode_font">make</span>", which will compile the main program needed, rtk_hciattach. Then run "<span style="font-family: Courier New;" class="mycode_font">sudo make install</span>" to install the firmware.<br />
<br />
You’ll then want the following command to run at bootup, so perhaps put it in /etc/rc.local. For the moment though, you can run it as shown below. <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo ./start_bt.sh</span></blockquote>
<br />
<br />
This is the command that does real magic… it configures the BT module and makes it available for use. <br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Step 4:</span> Remove soft block, scan for devices<br />
For some reason or another, the device is "soft blocked" (meaning it is blocked by software),  which is easy to fix when you know how. Run <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo rfkill list</span></blockquote>
<br />
and you should see something like this (if you don’t, something has gone horribly, horribly wrong already). If you get a message saying rfkill can’t be found, thats ok… just run "<span style="font-family: Courier New;" class="mycode_font">sudo apt-get install rfkill</span>" to install it, and try again. <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">0: sunxi-bt: Bluetooth<br />
Soft blocked: no<br />
Hard blocked: no<br />
1: phy0: Wireless LAN<br />
Soft blocked: no<br />
Hard blocked: no<br />
2: phy1: Wireless LAN<br />
Soft blocked: no<br />
Hard blocked: no<br />
3: hci0: Bluetooth<br />
Soft blocked: <span style="font-weight: bold;" class="mycode_b">yes</span><br />
Hard blocked: no</span></blockquote>
<br />
<br />
The entry of interest is the last one (the one for hci0: Bluetooth). That is the bluetooth adapter we’re trying to use, and as you can see, it is currently soft blocked. To fix that, just run (if yours is listed as 3 also)<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo rfkill unblock 3</span></blockquote>
<br />
and it will be unblocked. You sould then see if you run "<span style="font-family: Courier New;" class="mycode_font">sudo rfkill list</span>" again that this is the case, and if you run hcitool dev, you should also have something like this as the ouput, listing the MAC address of the pine64’s BT adapter.<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">Devices:<br />
hci0 34:C3<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />2:71:BE:ED</span></blockquote>
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Step 5:</span> Power on bluetooth module and pair your device<br />
You can then run bluetoothctl (as sudo) in order tha manage the bluetooth connection. Install via ‘<span style="font-family: Courier New;" class="mycode_font">sudo apt-get install bluez-utils</span>’ if it is missing. You should get an immediate message about a new bluetooth controller… this is a good sign… everything is working so far if you get that message. If you get a  message about no default controller, something is wrong. Assuming you don’t have any issues, run the following commands, which power on the BT module and sets it as the default BT agent.<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">power on</span><br />
<span style="font-family: Courier New;" class="mycode_font">agent on</span><br />
<span style="font-family: Courier New;" class="mycode_font">default-agent</span></blockquote>
<br />
If all has gone well, you should be seeing something like this.<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">[<span style="color: #33cc33;" class="mycode_color">NEW</span>] Controller 34:C3<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />2:71:BE:ED pine64 [default]</span><br />
<span style="font-family: Courier New;" class="mycode_font">[<span style="color: #33cc66;" class="mycode_color">NEW</span>] Device 00:BA:55:56<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />8:7E SPP-CA</span><br />
<span style="font-family: Courier New;" class="mycode_font">[<span style="color: #3366cc;" class="mycode_color">bluetooth</span>]# power on</span><br />
<span style="font-family: Courier New;" class="mycode_font">Changing power on succeeded</span><br />
<span style="font-family: Courier New;" class="mycode_font">[<span style="color: #3366cc;" class="mycode_color">bluetooth</span>]# agent on</span><br />
<span style="font-family: Courier New;" class="mycode_font">Agent registered</span><br />
<span style="font-family: Courier New;" class="mycode_font">[<span style="color: #3366cc;" class="mycode_color">bluetooth</span>]# default-agent</span><br />
<span style="font-family: Courier New;" class="mycode_font">Default agent request successful</span></blockquote>
<br />
<br />
You can then then enter "<span style="font-family: Courier New;" class="mycode_font">scan on</span>" to start discovery of BT devices, and if you have any devices available for pairing, you should see messages about them appear (prefixed by [NEW]). If they’re not ready for pairing, this is the time to make them ready. <br />
<br />
Once your device appears, you can run "<span style="font-family: Courier New;" class="mycode_font">scan off</span>" to make the system a bit more responsive again, as it seems pretty laggy at times whilst the scan process is running.<br />
<br />
To pair the device you’re trying to pair the pine64 with, enter  the command "<span style="font-family: Courier New;" class="mycode_font">pair &lt;your-bluetooth-deviceaddress&gt;</span>" . For example, my USB power meter with BT serial had an address of  “00:BA:55:56<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />8:7E”, so I entered “pair 00:BA:55:56<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />8:7E” and entered the device pin when prompted. Once you see a message about the pair being successful (I had to do it a couple of times, it didn’t seem to take the first time) you can exit the bluetoothctl program with the <span style="font-family: Courier New;" class="mycode_font">quit</span> command.<br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Step 6:</span> Bind  bluetooth device for usage<br />
This step is what makes the bluetooth device available for you to access. It’s really simple.. just run<span style="font-family: Courier New;" class="mycode_font"> "sudo rfcomm bind hci0 &lt;your-bluetooth-device-address&gt;</span>"<br />
<br />
For example,<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo rfcomm bind hci0 00:BA:55:56<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />8:7E</span></blockquote>
<br />
<br />
This binds hci0 (which you might remember from the rfkill list output from earlier) to the bluetooth device you specificied (usb power meter in my case). <br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Step 7:</span> Do something with it!<br />
Since I simply wanted to view the serial output from the meter, and I prefer using screen I ran <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo screen /dev/rfcomm0 9600</span></blockquote>
<br />
in order to connect to the bluetooth device (made available at /dev/rfcomm0) at 9600 baud. (run "<span style="font-family: Courier New;" class="mycode_font">sudo apt-get install screen</span>" to use screen as it’s not installed by default). For those of you who prefer minicom, you could do the same thing by running <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo minicom -D /dev/rfcomm0 -b 9600</span></blockquote>
<br />
And then try figuring out how to exit it – hint: it’s Ctrl+a, z, q, enter).I then get a line like this every 5 seconds (the  update rate I have the meter set to) telling me the voltage and amperage being measured by the meter. Success!<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>052496,005516<br />
052496,005420 </blockquote>
<br />
All it needs then is some simple decoding to change the interger values sent to their decimal equivalents (ie. the second line is 5.2496v and 0.5420A). <br />
<br />
Assuming you were working with a device that didn’t work one way (the meter only ouputs the data, it doesn’t have any configuration or anything over the BT link), you sould then have proper two-way communication via your device and the pine64 over bluetooth!<br />
<br />
<hr class="mycode_hr" />
<br />
<span style="font-weight: bold;" class="mycode_b">Acknowledgements:</span><br />
This information/guide would not be possible without the following sources:<ul class="mycode_list"><li><a href="https://github.com/lwfinger/rtl8723bs_bt" target="_blank" rel="noopener" class="mycode_url">https://github.com/lwfinger/rtl8723bs_bt</a> – info on compiling and installing the BT firmware<br />
</li>
<li><a href="http://forum.pine64.org/showthread.php?tid=2187&amp;pid=19891#pid19891" target="_blank" rel="noopener" class="mycode_url">http://forum.pine64.org/showthread.php?t...1#pid19891</a> – post by another Pine64 user, Arjun, detailing how to use bluetoothctl<br />
</li>
<li><a href="http://forum.pine64.org/showthread.php?tid=1392" target="_blank" rel="noopener" class="mycode_url">http://forum.pine64.org/showthread.php?tid=1392</a> – posts by xalius and Faye on getting the BT firmware loaded and unblocked.<br />
</li>
<li>Bashing my head against a screen for an afternoon and finally winning! <img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" /> <br />
</li>
</ul>
<hr class="mycode_hr" />
<br />
<span style="font-weight: bold;" class="mycode_b">Errata:</span><br />
<br />
2016-09-25 - removed redundant part of step 3<br />
2016-10-10 - removed reference to bluez-utils as isn't needed (or available!) for jessie]]></description>
			<content:encoded><![CDATA[Tested on a Pine64+ 1GB running Debian 8 “jessie” (3.10.102-3) using the official <a href="https://www.pine64.org/?product=wifi-802-11bgn-bluetooth-4-0-module" target="_blank" rel="noopener" class="mycode_url">WIFI 802.11BGN/BLUETOOTH 4.0 Module</a>.<br />
<br />
<span style="font-style: italic;" class="mycode_i">What's it all about? </span>These were the steps I followed to be able to view the text output of a bluetooth-enabled USB power meter, and most of these steps apply to getting bluetooth working at all if it isn't already configured in your chosen image. If it is already enabled, you can probably jump straight to step 5. Regardless<span style="font-style: italic;" class="mycode_i">, s</span>teps 1-5 should get your bluetooth working and a device paired with your pine64, but what you do after that if you don't want the text output (ie. you instead want a bluetooth mouse, audio) like I did I wouldn't know! <img src="https://forum.pine64.org/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Step 1:</span> Make sure you have the bluetooth stack and utilities installed! If you want to all make sure you have  all of the stuff this guide uses in one hit, you can add "<span style="font-family: Courier New;" class="mycode_font">rfkill git screen minicom</span>" to the list of stuff to install. <br />
<span style="font-family: Courier New;" class="mycode_font">sudo apt-get install bluez</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><br />
Step 2:</span> Get the firmware binaries for the BT from <a href="https://github.com/lwfinger/rtl8723bs_bt" target="_blank" rel="noopener" class="mycode_url">https://github.com/lwfinger/rtl8723bs_bt</a><br />
<br />
This repo contains the programs and firmware to operate the Bluetooth section of the RTL8723BS. This basically loads the firmware into the module, which makes it a bluetooth module! if you don't have git, install it by running "<span style="font-family: Courier New;" class="mycode_font">sudo apt-get install git</span>".<br />
<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">git clone <a href="https://github.com/lwfinger/rtl8723bs_bt.git" target="_blank" rel="noopener" class="mycode_url">https://github.com/lwfinger/rtl8723bs_bt.git</a></span></blockquote>
<br />
<span style="font-weight: bold;" class="mycode_b"><br />
Step 3:</span> Compile and load the firmware. <br />
Change into the newly cloned repo, and run "<span style="font-family: Courier New;" class="mycode_font">make</span>", which will compile the main program needed, rtk_hciattach. Then run "<span style="font-family: Courier New;" class="mycode_font">sudo make install</span>" to install the firmware.<br />
<br />
You’ll then want the following command to run at bootup, so perhaps put it in /etc/rc.local. For the moment though, you can run it as shown below. <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo ./start_bt.sh</span></blockquote>
<br />
<br />
This is the command that does real magic… it configures the BT module and makes it available for use. <br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Step 4:</span> Remove soft block, scan for devices<br />
For some reason or another, the device is "soft blocked" (meaning it is blocked by software),  which is easy to fix when you know how. Run <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo rfkill list</span></blockquote>
<br />
and you should see something like this (if you don’t, something has gone horribly, horribly wrong already). If you get a message saying rfkill can’t be found, thats ok… just run "<span style="font-family: Courier New;" class="mycode_font">sudo apt-get install rfkill</span>" to install it, and try again. <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">0: sunxi-bt: Bluetooth<br />
Soft blocked: no<br />
Hard blocked: no<br />
1: phy0: Wireless LAN<br />
Soft blocked: no<br />
Hard blocked: no<br />
2: phy1: Wireless LAN<br />
Soft blocked: no<br />
Hard blocked: no<br />
3: hci0: Bluetooth<br />
Soft blocked: <span style="font-weight: bold;" class="mycode_b">yes</span><br />
Hard blocked: no</span></blockquote>
<br />
<br />
The entry of interest is the last one (the one for hci0: Bluetooth). That is the bluetooth adapter we’re trying to use, and as you can see, it is currently soft blocked. To fix that, just run (if yours is listed as 3 also)<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo rfkill unblock 3</span></blockquote>
<br />
and it will be unblocked. You sould then see if you run "<span style="font-family: Courier New;" class="mycode_font">sudo rfkill list</span>" again that this is the case, and if you run hcitool dev, you should also have something like this as the ouput, listing the MAC address of the pine64’s BT adapter.<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">Devices:<br />
hci0 34:C3<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />2:71:BE:ED</span></blockquote>
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Step 5:</span> Power on bluetooth module and pair your device<br />
You can then run bluetoothctl (as sudo) in order tha manage the bluetooth connection. Install via ‘<span style="font-family: Courier New;" class="mycode_font">sudo apt-get install bluez-utils</span>’ if it is missing. You should get an immediate message about a new bluetooth controller… this is a good sign… everything is working so far if you get that message. If you get a  message about no default controller, something is wrong. Assuming you don’t have any issues, run the following commands, which power on the BT module and sets it as the default BT agent.<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">power on</span><br />
<span style="font-family: Courier New;" class="mycode_font">agent on</span><br />
<span style="font-family: Courier New;" class="mycode_font">default-agent</span></blockquote>
<br />
If all has gone well, you should be seeing something like this.<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">[<span style="color: #33cc33;" class="mycode_color">NEW</span>] Controller 34:C3<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />2:71:BE:ED pine64 [default]</span><br />
<span style="font-family: Courier New;" class="mycode_font">[<span style="color: #33cc66;" class="mycode_color">NEW</span>] Device 00:BA:55:56<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />8:7E SPP-CA</span><br />
<span style="font-family: Courier New;" class="mycode_font">[<span style="color: #3366cc;" class="mycode_color">bluetooth</span>]# power on</span><br />
<span style="font-family: Courier New;" class="mycode_font">Changing power on succeeded</span><br />
<span style="font-family: Courier New;" class="mycode_font">[<span style="color: #3366cc;" class="mycode_color">bluetooth</span>]# agent on</span><br />
<span style="font-family: Courier New;" class="mycode_font">Agent registered</span><br />
<span style="font-family: Courier New;" class="mycode_font">[<span style="color: #3366cc;" class="mycode_color">bluetooth</span>]# default-agent</span><br />
<span style="font-family: Courier New;" class="mycode_font">Default agent request successful</span></blockquote>
<br />
<br />
You can then then enter "<span style="font-family: Courier New;" class="mycode_font">scan on</span>" to start discovery of BT devices, and if you have any devices available for pairing, you should see messages about them appear (prefixed by [NEW]). If they’re not ready for pairing, this is the time to make them ready. <br />
<br />
Once your device appears, you can run "<span style="font-family: Courier New;" class="mycode_font">scan off</span>" to make the system a bit more responsive again, as it seems pretty laggy at times whilst the scan process is running.<br />
<br />
To pair the device you’re trying to pair the pine64 with, enter  the command "<span style="font-family: Courier New;" class="mycode_font">pair &lt;your-bluetooth-deviceaddress&gt;</span>" . For example, my USB power meter with BT serial had an address of  “00:BA:55:56<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />8:7E”, so I entered “pair 00:BA:55:56<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />8:7E” and entered the device pin when prompted. Once you see a message about the pair being successful (I had to do it a couple of times, it didn’t seem to take the first time) you can exit the bluetoothctl program with the <span style="font-family: Courier New;" class="mycode_font">quit</span> command.<br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Step 6:</span> Bind  bluetooth device for usage<br />
This step is what makes the bluetooth device available for you to access. It’s really simple.. just run<span style="font-family: Courier New;" class="mycode_font"> "sudo rfcomm bind hci0 &lt;your-bluetooth-device-address&gt;</span>"<br />
<br />
For example,<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo rfcomm bind hci0 00:BA:55:56<img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />8:7E</span></blockquote>
<br />
<br />
This binds hci0 (which you might remember from the rfkill list output from earlier) to the bluetooth device you specificied (usb power meter in my case). <br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Step 7:</span> Do something with it!<br />
Since I simply wanted to view the serial output from the meter, and I prefer using screen I ran <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo screen /dev/rfcomm0 9600</span></blockquote>
<br />
in order to connect to the bluetooth device (made available at /dev/rfcomm0) at 9600 baud. (run "<span style="font-family: Courier New;" class="mycode_font">sudo apt-get install screen</span>" to use screen as it’s not installed by default). For those of you who prefer minicom, you could do the same thing by running <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><span style="font-family: Courier New;" class="mycode_font">sudo minicom -D /dev/rfcomm0 -b 9600</span></blockquote>
<br />
And then try figuring out how to exit it – hint: it’s Ctrl+a, z, q, enter).I then get a line like this every 5 seconds (the  update rate I have the meter set to) telling me the voltage and amperage being measured by the meter. Success!<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>052496,005516<br />
052496,005420 </blockquote>
<br />
All it needs then is some simple decoding to change the interger values sent to their decimal equivalents (ie. the second line is 5.2496v and 0.5420A). <br />
<br />
Assuming you were working with a device that didn’t work one way (the meter only ouputs the data, it doesn’t have any configuration or anything over the BT link), you sould then have proper two-way communication via your device and the pine64 over bluetooth!<br />
<br />
<hr class="mycode_hr" />
<br />
<span style="font-weight: bold;" class="mycode_b">Acknowledgements:</span><br />
This information/guide would not be possible without the following sources:<ul class="mycode_list"><li><a href="https://github.com/lwfinger/rtl8723bs_bt" target="_blank" rel="noopener" class="mycode_url">https://github.com/lwfinger/rtl8723bs_bt</a> – info on compiling and installing the BT firmware<br />
</li>
<li><a href="http://forum.pine64.org/showthread.php?tid=2187&amp;pid=19891#pid19891" target="_blank" rel="noopener" class="mycode_url">http://forum.pine64.org/showthread.php?t...1#pid19891</a> – post by another Pine64 user, Arjun, detailing how to use bluetoothctl<br />
</li>
<li><a href="http://forum.pine64.org/showthread.php?tid=1392" target="_blank" rel="noopener" class="mycode_url">http://forum.pine64.org/showthread.php?tid=1392</a> – posts by xalius and Faye on getting the BT firmware loaded and unblocked.<br />
</li>
<li>Bashing my head against a screen for an afternoon and finally winning! <img src="https://forum.pine64.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" /> <br />
</li>
</ul>
<hr class="mycode_hr" />
<br />
<span style="font-weight: bold;" class="mycode_b">Errata:</span><br />
<br />
2016-09-25 - removed redundant part of step 3<br />
2016-10-10 - removed reference to bluez-utils as isn't needed (or available!) for jessie]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Using Bluetooth for Sending serial data]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=2187</link>
			<pubDate>Sun, 11 Sep 2016 09:04:39 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=4110">Arjun</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=2187</guid>
			<description><![CDATA[I'm using Ubuntu long sleep OS on pine64+, I'm trying to send serial data from the pine 64+ to the Arduino UNO over bluetooth.<br />
For that i installed Bluez package and when i check for the bluetooth device using "Hcitool dev", its empty. <br />
<br />
But i checked the status of bluetooth using "etc/init.d/bluetooth status", the result is,<br />
          <br />
<blockquote class="mycode_quote"><cite>Quote:</cite>● bluetooth.service - Bluetooth service<br />
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)<br />
   Active: active (running) since Sun 2016-09-11 05:43:23 UTC; 3h 18min ago<br />
     Docs: man:bluetoothd(8)<br />
 Main PID: 7439 (bluetoothd)<br />
   Status: "Running"<br />
   CGroup: /system.slice/bluetooth.service<br />
           └─7439 /usr/lib/bluetooth/bluetoothd</blockquote>
<br />
<br />
When i add a USB bluetooth adapter to pine 64+, it gets detected and works fine.<br />
<br />
I tried this using the procedure given in the following link:<br />
           <a href="http://blog.whatgeek.com.pt/2015/09/bluetooth-communication-between-raspberry-pi-and-arduino/" target="_blank" rel="noopener" class="mycode_url">http://blog.whatgeek.com.pt/2015/09/blue...d-arduino/</a>]]></description>
			<content:encoded><![CDATA[I'm using Ubuntu long sleep OS on pine64+, I'm trying to send serial data from the pine 64+ to the Arduino UNO over bluetooth.<br />
For that i installed Bluez package and when i check for the bluetooth device using "Hcitool dev", its empty. <br />
<br />
But i checked the status of bluetooth using "etc/init.d/bluetooth status", the result is,<br />
          <br />
<blockquote class="mycode_quote"><cite>Quote:</cite>● bluetooth.service - Bluetooth service<br />
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)<br />
   Active: active (running) since Sun 2016-09-11 05:43:23 UTC; 3h 18min ago<br />
     Docs: man:bluetoothd(8)<br />
 Main PID: 7439 (bluetoothd)<br />
   Status: "Running"<br />
   CGroup: /system.slice/bluetooth.service<br />
           └─7439 /usr/lib/bluetooth/bluetoothd</blockquote>
<br />
<br />
When i add a USB bluetooth adapter to pine 64+, it gets detected and works fine.<br />
<br />
I tried this using the procedure given in the following link:<br />
           <a href="http://blog.whatgeek.com.pt/2015/09/bluetooth-communication-between-raspberry-pi-and-arduino/" target="_blank" rel="noopener" class="mycode_url">http://blog.whatgeek.com.pt/2015/09/blue...d-arduino/</a>]]></content:encoded>
		</item>
	</channel>
</rss>