OpenMarine

Full Version: [SOLVED] AP RPi2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,Sailoog,

I got this morning your image, put it onto the SD card, booted and didn't find anymore the Acces-Point. I fiddled around with the diffenrent Options of network tab, especially RPi3 AP + Client and RPi3+ AP + Client, but without success.

My installation is running on a RPi 2, with the Edimax WiFi-Dongle, which worked nicely in 0.17. Do I understand that you changed the whole networking way when you passed to Raspian stretch? Is hostap still the same?

Thanks for some hints.
Christian
If you have a Pi2 with only one usb wifi stick, you have to change the udev rules.(With two wifi sticks it should work)
You can try:
"pi@openplotter:~ $ nano .config/openplotter/Network/pi3_wlan1_wlan0/udev/rules.d/72-static-name.rules"
change the line:
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="brcmfmac", NAME="wlan1"
to
ACTION=="add", SUBSYSTEM=="ieee80211", KERNEL=="phy0",NAME="wlan1"
In openplotter you have to select RPi3: AP + client
click set
click apply
click yes
reboot
Now you should have your wlan1 as AP (I hope so)
(2018-06-02, 02:13 PM)e-sailing Wrote: [ -> ]If you have a Pi2 with only one usb wifi stick, you have to change the udev rules.(With two wifi sticks it should work)
You can try:
"pi@openplotter:~ $ nano .config/openplotter/Network/pi3_wlan1_wlan0/udev/rules.d/72-static-name.rules"
change the line:
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="brcmfmac", NAME="wlan1"
to
ACTION=="add", SUBSYSTEM=="ieee80211", KERNEL=="phy0",NAME="wlan1"
In openplotter you have to select RPi3: AP + client
click set
click apply
click yes
reboot
Now you should have your wlan1 as AP (I hope so)
Thank you, e-sailing, for the quick answer. As you said, this is a Pi 2B with just one WiFi-Stick.

I tried to change the udev-rules but no luck, the AP didn't show up. any other ideas?

fair winds
Christian
Try:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", KERNEL=="wlan*", NAME="wlan1"
(2018-06-02, 05:04 PM)e-sailing Wrote: [ -> ]Try:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", KERNEL=="wlan*", NAME="wlan1"
Still no success 
[Image: sad.png]

but thanks for your support
Christian
Hello e-sailing,

well, I managed to get it to work - by plugging in a second USB-dongle, still lying around in a drawer - so getting wlan0 for client and wlan1 for AP functionality.

additionally I had to add the modification mentioned in https://github.com/sailoog/openplotter/pull/213

But I'd rather work with only one dongle, and on my standalone system I don't need client functionality, only AP. Where do I need to modify the config?

Thanks in advance
Christian
Hello,

I appreciate very much your hard work, but this question has been without new answer since ten days.
Are you going to address this issue, or am I on my own?

In my humble opinion it would be useful to have a config for "just AP" as there is a config for "just client", but this is just my idea.

TIA
Christian
Just a guess: Did you try changing the device the "Sharing internet device" menu?
Hi CottageCruiser,

yes, I tried every combination. 
I guess it didn't work, because the kernel named the interface always wlan0, and the Accesspoint configs in OP are made for wlan1.
One could probably force the kernel via udev and the usb-id, to have wlan1 for this specific dongle, but I didn't dive further into this


In the end I changed the config directly in /etc/* , I have now a working AP. Just hoping any new update won't undo my changes...

Cheers
Christian
Ok. I agree with you, that there should be an option for just AP, which would work out-of-the-box, without such tweaks.

Pekka

Lähetetty minun TA-1032 laitteesta Tapatalkilla
Pages: 1 2