-
Notifications
You must be signed in to change notification settings - Fork 152
Can't connect on Raspberry Pi (Jessie) #102
Comments
You can do this to see what wifi is calling out to. scheme = # ...
print(' '.join(['/sbin/ifup'] + self.as_args())) Then you can run that command manually. Then can you post that output here? Thanks, |
I am no longer using wifi |
On fully updated Jessie I run the following code after boot:
and get the following:
But if I run the same code one more time it connects to the wifi. |
hmm, that's weird. Can you do this: scheme = # ...
print(' '.join(['/sbin/ifup'] + self.as_args())) and paste the output here? Thanks, |
Added print statement. /sbin/ifup wlan0=wlan0-nox1203 -o wpa-psk=fdd89aca0489ddf5b88286c495371ecd695b1b341a3d1263f90e34277f02852a -o wpa-ssid=nox1203 -o wireless-channel=auto It is identical on both runs. |
Can you try running that command directly and post the output here? On Fri, Jul 15, 2016 at 4:40 AM nox1203 notifications@github.com wrote:
-Rocky |
pi@raspberrypi:~ $ sudo /sbin/ifup wlan0=wlan0-nox1203 -o wpa-psk=fdd89aca0489ddf5b88286c495371ecd695b1b341a3d1263f90e34277f02852a -o wpa-ssid=nox1203 -o wireless-channel=auto ifconfig says: |
oh, you were already connected. Can you disconnect and then run this command? |
I was not connected. There is no inet ip for wlan. |
oh sorry, I mean, your interface was already up. Can you turn off the On Fri, Jul 15, 2016 at 6:01 AM nox1203 notifications@github.com wrote:
-Rocky |
pi@raspberrypi:~ $ sudo /sbin/ifdown wlan0 Listening on LPF/wlan0/00:c1:41:31:0b:b3 |
I'm having a similar issue, I need to run the command 2-3 times before it connects to the network. Any fixes for this? I'm on Jessie too |
Hi, rockymeza!
before call to activate() and it looks like now I get successful connection. And few details probably will be useful for you:
P.S. IF_WLAN is constant with name of my WLAN interface |
I was about to report a new issue, but I think this is related. Basically there is a small bug I believe in line 172 in scheme.py
For interface names like wlan0-foobar, this would fail. A simple change fixes it. self.interface should be replaced with self.iface That solved my problem. |
Same thing happening here! I follow @rockymeza advice but the same error is appearing! I am using a very simple script based on @nox1203 commentary and adding the ifdown command before calling activate(). Any idea? |
I am using wifi class in python (indentation not showing here, changed password).
When it gets to activate, the pi disconnects my xrdp session, can't be pinged, and I have to restart it to get another wifi connection by default reboot.
my interfaces file at the end looks like:
The normal connection wifi entry is
Am I doing something wrong? Does the wpa_supplicant.conf format still work with your scheme format? Ideas?
The text was updated successfully, but these errors were encountered: