1

Topic: Wifi not working

Hi I have a small problem and being a newbie not sure what to do.
I have assembled the kit and can get it to work via hdmi, keyboard and mouse
When I start I get a long list of script and can see the IP address but cannot connect via wifi and laptop
I run startx and can get the gui by entering http://atlas3d/, tried the IP address but that didn't work
When I go into the gui to setup the wifi it cannot find any router after a scan so I think the wifi dongle is not working
So will updating the sd card cure the problem and how do I do it via hdmi, keyboard, mouse and cable to my modem
Thanks in advance
Bill

D4S + S3d 18 months and still learning
Filastruder

2

Re: Wifi not working

Bill,

Did you run the WiFi config tool on the desktop?  Are you using a Pi 2 or Pi 1.  With the WiFi dongle installed, run the following commands and let me know their output.

lsusb
sudo iwlist wlan0 scan
cat /proc/cpuinfo | grep Hardware
lsmod

Uriah

3

Re: Wifi not working

Hi Uriah wifi config tool if thats the one on the desktop it cannot find any details
Im using a pi 2+
I ran the comands like you said but loads of stuff but when I ran the second line for scan it is finding a modem but not mine so the dongle must be working
The one it is finding is a British Telecom hot spot which actually is my modem but for public use my side of the modem use a different sisd
So how do I conf to search for mine
Cheers
Bill

D4S + S3d 18 months and still learning
Filastruder

4 (edited by Mwaypilot 2015-11-20 17:10:28)

Re: Wifi not working

Uriah
Please note the dots after some of the numbers where I have put two spaces should not be there I am working off a ipad and it put them automaticly (11. Q) example
Lsusb= bus 001 device 002 standard microsystems corp
                                   001 linux foundation 2.0 root hub
                                   003 standard microsystems corp
                                    004 creative labs keyboard
                                     005 pixart optical mouse
                                     006 realtek semiconductor corp
Sudo iwlist wlan0 scan = cel 04 address 00:91:f9:44:c9:a8
Essid:  BTHub5-NM2M
Protocol : ieee 802.11bgn
Mode master
Frequency : 2.437 GHz chan 6
Encription kye :on
Bit rate : 144 Mb/s
Ie: ieee 802.11 i/wpa2 version 1
Quality=18/100 signal level =90/100
Extra :fm=0003

Cat / proc/cpuinfo grep hardware = BCM2709

Lsmod = snd bcm2835. 18649. 0
                    Pcm          73475. 1 snd bcm2835
                    Seq.          53078. 0
                     Seq dev     5628   1 snd seq
                 Timer        17784. 2 snd pcm, snd seq
                 Snd.                51038 5. Snd bcm2835, snd timer, snd pcm, snd seq, snd seq device
                 8188cu.           871034. 0
                 Cfg80211.       386508. 1. 8188eu
                 Rfkill.              16651. 1. cfg80211
                 Evdev.             9950. 3
                 Joydev            8879. 0
                 Uio pdrv genirg 2958. 0
                Uio.                   8119. 1. Uio pdrv genirg

When I try to config from the desktop I get the message
  " could not get status from wpa-supplicant

It all seem as if this wpa-supplicant is missing
Bill

D4S + S3d 18 months and still learning
Filastruder

5

Re: Wifi not working

When I boot up the system I can see the following in the list of operations

{....} Configuring network interfaces.....wpa-supplicant: /sbin/wpa-supplicant daemon failed to start run-parts: /etc/network/if-pre-up.d/wpasupplicant exitted with return code 1
Faild to connect to wpa_supplicant - wpa_ctrl_open: no such file or directory
wpa_supplicant: /sbin/wpa_cli daemon faild to start
Run-parts: /etc/network/if-up.d/wpasupplicant exited with return code 1
Done.

D4S + S3d 18 months and still learning
Filastruder

6

Re: Wifi not working

Bill,

What does it output if you type the following.

 sudo cat /etc/wpa_supplicant/wpa_supplicant.conf  

You need to change the psk and ssid properties to match the name of your wireless device and password.

7

Re: Wifi not working

Uriah this is what I get when entering

Ctrl_interface=DIR=/var/run/wpa_supplicant Group=netdev
update_config=1
Network={
scan_ssid=1
proto=wpa
key_mgnt=wpa-psk
pairwise=CCMP TKIP
group=CCMP TKIP
}

Where do I put ssid "BTHub5-NM2M
Psk :  52xxxxxx2a
Cheers

D4S + S3d 18 months and still learning
Filastruder

8

Re: Wifi not working

Please update the file to look like the following.  Replace MY_WIFI_NETWORK with the name of your WiFi access point, and replace MY_WIFI_PASSWORD with the password (the quotes are required).

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="MY_WIFI_NETWORK"
    psk="MY_WIFI_PASSWORD"
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=TKIP
    group=TKIP WEP104 WEP40
    auth_alg=OPEN
}

You can edit the file with nano with the following command.

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Press CTRL+X, save the file and run the following to connect the WiFi.

sudo ifdown wlan0
sudo ifup wlan0

After a while if you run the following command, you should see an IP address associated with wlan0.

ifconfig

9

Re: Wifi not working

When I input sudo ifdown wlan0 and sudo ifup wlan0 I get the message

/etc/network/interfaces file :7: misplaced option
ifup: couldn't read interfaces file "/etc/network/interfaces"

So I look at interface and see

auto lo
Iface lo inet loopback
Iface eth0 inet dhcp
Allow-hotplug wlan0
Iface wlan0 inet manual
Auto wlan0
Wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

So I think there is something in there that shouldn't be

Bill

D4S + S3d 18 months and still learning
Filastruder

10

Re: Wifi not working

Are the capitalized words in your response actually capitalized in the file?  For example, does it say Allow-hotplug wlan0 or does it say allow-hotplug wlan0?

11

Re: Wifi not working

Hi
No they are not capitalised in the file its this ipad doing it every time I start a new line and I forgot to change them.
Bill

D4S + S3d 18 months and still learning
Filastruder

12

Re: Wifi not working

When I input sudo ifup wlan0
I get

wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-if-pre-up.d/wpasupplicant exited with return code 1
Failed to connect to wpa_supplicant - wpa_ctrl-open: No such file or directory
wpa_supplicant: /sbin_cli daemon failed to start
run-parts: /etc/if-up.d/wpasupplicant exited with return code 1
Bill

D4S + S3d 18 months and still learning
Filastruder

13

Re: Wifi not working

Hi Uriah
I was looking through the Atlas 3D scanner software instructions from the BYO pl and found a line missing on the network/interfaces page

"Iface dfault inet  dhcp" so put that in and also had to change the dongle
So everything is working now (good to go) as they say over the pond.

Many thanks for your help

D4S + S3d 18 months and still learning
Filastruder

14

Re: Wifi not working

If anyone else has this problem, it sounds very similar to a problem I had getting my wifi dongle to work with OctoPi. Here is the info I followed, I hope it helps someone else! http://www.tested.com/tech/3d-printing/ … ng-octopi/

FuseBox 1.5 CoreXY - e3dv6 - Graphic Smart Display
Solidoodle 2 - e3dv6 - Hobb Goblin - e3d Titan - lawsy carriages - Direct Drive Y Axis - T8 Z axis - OctoPi

15

Re: Wifi not working

Bill,

No problem, I'm glad it is working for you now.

Uriah

16 (edited by mp3pete 2016-02-12 14:22:37)

Re: Wifi not working

I keep getting the same error as well. I'm using the new Raspberry Pi 2 B 1GB:
pi@atlas3d ~ $ sudo ifdown wlan0
pi@atlas3d ~ $ sudo ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
wpa_supplicant: /sbin/wpa_cli daemon failed to start
run-parts: /etc/network/if-up.d/wpasupplicant exited with return code 1

dmsg shows the wifi dongle
[  133.411465] usb 1-1.3: USB disconnect, device number 4
[  161.814448] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[  161.915783] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8179
[  161.915810] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  161.915827] usb 1-1.2: Product: 802.11n NIC
[  161.915843] usb 1-1.2: Manufacturer: Realtek
[  161.915859] usb 1-1.2: SerialNumber: [XXXXXXXXXXX]

Here's my wpa_supplicant.conf file:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="PeterNET"
psk="xxxxxxxxxxxxx"
proto=RSN
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP WEP104 WEP40
auth_alg=OPEN
}

Here's my /etc/network/interfaces file:
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual

wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

auto wlan0



pi@atlas3d ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:a1:0e:f5
          inet addr:192.168.2.109  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:127 errors:0 dropped:0 overruns:0 frame:0
          TX packets:110 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14362 (14.0 KiB)  TX bytes:16664 (16.2 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1104 (1.0 KiB)  TX bytes:1104 (1.0 KiB)

pi@atlas3d ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp.

pi@atlas3d ~ $ sudo iwlist wlan0 scan
wlan0     Interface doesn't support scanning.

pi@atlas3d ~ $ cat /proc/cpuinfo | grep Hardware
Hardware        : BCM2709

pi@atlas3d ~ $ lsmod
Module                  Size  Used by
snd_bcm2835            18649  0
snd_pcm                73475  1 snd_bcm2835
snd_seq                53078  0
snd_seq_device          5628  1 snd_seq
snd_timer              17784  2 snd_pcm,snd_seq
snd                    51038  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
uio_pdrv_genirq         2958  0
uio                     8119  1 uio_pdrv_genirq

Here's iwconfig:
pi@atlas3d ~ $ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.


Not sure what else I can do. I'm running WPA2 on my router and everything else connects. With Ethernet I've updated to the latest scanning software giving me a Network screen that show's nothing in the dropdown for networks. If I use Hidden it also fails to work.

Any help appreciated.

17

Re: Wifi not working

Okay I solved my problem above but it wasn't straight forward.

I ended up updating the firmware to the latest firmware.

pi@atlas3d ~ $ uname -a
Linux atlas3d 4.1.17-v7+ #838 SMP Tue Feb 9 13:15:09 GMT 2016 armv7l GNU/Linux

Then I updated gcc to be as good as or better than the Pi2 compiler. This took a while. Original gcc complier is for Pi1 so it won't let you build a driver.

pi@atlas3d ~ $ cat /proc/version
Linux version 4.1.17-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #838 SMP Tue Feb 9 13:15:09 GMT 2016
pi@atlas3d ~ $ gcc --version
gcc (Raspbian 4.8.4-1) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Then went here:
https://www.raspberrypi.org/forums/view … p?p=462982
and got the latest wifi driver for the dongle that comes with the kit. Note there are two versions of this wifi dongle. Mine was 0bda:8179 so I was good.

Installed it and wlan0 is now up and working.