PINE64
Wifi module able to share ethernet connection? Connection is unstable! - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32)
+---- Forum: Wifi/BT Module (https://forum.pine64.org/forumdisplay.php?fid=33)
+---- Thread: Wifi module able to share ethernet connection? Connection is unstable! (/showthread.php?tid=1879)

Pages: 1 2


Wifi module able to share ethernet connection? Connection is unstable! - cr2016 - 07-28-2016

Hi,

First of all, thanks to longsleep, lenny, and others for their work to provide working images for the pine64.

Now running the pine64+ 2GB with the wifi/BT module. After several trials, both latest debian-mate and ubuntu-mate seems to work fine after I changed the HDMI cable from 1m to 0.5m.
The 1m cable was only working with longsleep 20160507-1 image, and always failed to output the HDMI signal with the newest kernel Undecided
The 0.5m seems to be fine with the latest images :-)

I have a question regarding the capabilities of the wifi module: can I connect to the pine64 through wifi from a phone and share the pine ethernet connection or are the module capabilities limited to connect the pine64 to already existing wifi networks?
I would like to set the 1st option, if possible, in order to connect my phone through wifi to the pine64 that is already wired connected...

Thanks in advance for any help and advice!
Cheers!


RE: Wifi module able to share ethernet connection? - xalius - 07-28-2016

Creating an access point should be possible with any wifi interface on Linux nowadays, nothing specific to the hardware. As long as the firmware for the Realtek chipset does Ad-hoc or master mode you should be good.


RE: Wifi module able to share ethernet connection? - cr2016 - 07-29-2016

Yes, it's what I thought... but no luck so far!

I can see other wifi networks (likely from the neighbourhood).
I tried several combinations to add a wifi network but I could not see the new SSID when my phone was scanning.
I also tried to change the wifi management from false to true in the network manager config file: I then saw two times the list of wifi networks, but could not create one visible from my phone.

I will try the following next:
http://ubuntuhandbook.org/index.php/2014/09/3-ways-create-wifi-hotspot-ubuntu/

Update:
Used the 3rd method from the above link "Using Unity’s Default Network Manager with a little hack".
Its working now with my android phone, but for some reason it does not connect using an iphone: the wifi network is recognized but the password is always rejected?!?!



RE: Wifi module able to share ethernet connection? Android now ok, iphone not! - vigor - 08-04-2016

I've figured out Access Point mode (mostly followed this post https://help.ubuntu.com/community/WifiDocs/WirelessAccessPoint)
it is visible from iPhones, Androids, MacBook, I have not tested actual communication yet, but i do see AP in the air and can connect to it
OS image is xubuntu longsleep , WiFi card ordered from pine64 kickstarter

my /etc/hostapd/hostapd.conf contains this
auth_algs=1
beacon_int=50
channel=3
country_code=US
disassoc_low_ack=1
driver=nl80211
hw_mode=g
ht_capab=[HT40+][HT40-][SHORT-GI-40]
ieee80211d=1
ieee80211n=1
interface=wlan1
require_ht=0
rsn_pairwise=CCMP
ssid=myaccesspointname
wmm_enabled=1
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_passphrase=0123456789


RE: Wifi module able to share ethernet connection? Android now ok, iphone not! - cr2016 - 08-05-2016

Another thing: after a fresh start the wifi is working but the connection is lost after few minutes; the hotspot does not appear anymore on the phone in the list of available wifi networks. Need to restart to get it back, or there might be a command to restart the network without restarting the pine?!?!

Thanks vigor, I will check that ;-)


RE: Wifi module able to share ethernet connection? Android now ok, iphone not! - vigor - 08-06-2016

(08-05-2016, 07:07 PM)cr2016 Wrote: Another thing: after a fresh start the wifi is working but the connection is lost after few minutes; the hotspot does not appear anymore on the phone in the list of available wifi networks. Need to restart to get it back, or there might be a command to restart the network without restarting the pine?!?!

Thanks vigor, I will check that ;-)

I have to say my pine64 access point is pretty solid, it allocates dhcp addresses 10.0.0.1/24 and i connect to it via http and ssh - no problem. I left it running overnight and it was still up this morning.

I noticed - you have to be 7 to 15 feet away from Access point (Pine64) then connection is stable, if you are too close - it does not work at all or unstable.

One thing i noticed about network stack in general, i have to comment out all lines in /etc/network/interfaces.d/eth0
if the ethernet wire not plugged in, then wifi works stable after boot. I am not sure how to handle that, but i would like to run it with only two wifi interfaces - no ethernet wires. The pine64 will be located where there is no wires.


RE: Wifi module able to share ethernet connection? Android now ok, iphone not! - cr2016 - 08-12-2016

No time to try something new...
I hope that the method described in your post is more stable than the one I found previously ;-)
Need some quiet time to try out!


RE: Wifi module able to share ethernet connection? Android now ok, iphone not! - cr2016 - 08-20-2016

Tried again the wifi connection with 2 other devices. Same problem: can create the access point, can see it, can connect to it from 3 different devices and can share the wired connection, but the wifi connection is unstable and the access point is not visible anymore after few hours.
Is there a way to log/monitor the wifi activity over time?


RE: Wifi module able to share ethernet connection? Connection is unstable! - vigor - 08-21-2016

I am not entirely sure it will help with pine64, like i said before mine wifi in Access point mode works stable with Ubunutu, but in Raspberry pi disabling power management helps to keep wifi up:

sudo vim /etc/modprobe.d/8192cu.conf
and add the following line :

options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

original here : http://www.raspberrypi-spy.co.uk/2015/06/how-to-disable-wifi-power-saving-on-the-raspberry-pi/


RE: Wifi module able to share ethernet connection? Connection is unstable! - greenleafthered - 10-10-2016

I've attempted to get a hotspot running on my Pine64 2GB board (Ubuntu longsleep, but I forget what image version I installed from), first following the same instructions I followed to run a hotspot on my Raspberry Pi (http://www.movingelectrons.net/blog/2016/06/26/backup-photos-while-traveling-with-a-raspberry-pi.html), then modifying my hostapd.conf to match the one posted by vigor above in this thread. The hotspot appears to be running, but I can't seem to connect to it. I've tried connecting with an Android tablet and phone, and with a Macbook Pro. They all see it, but just will not establish a connection.