Hi,
Find attached and bellow some further info.
Scanning WLAN I can find our “Pulse” Guest-Wlan but cannot connect…?!
Thanks a lot for your help!
PS: By the way, is it also possible to access Kura WebUI only with https(443)?
wpa_supplicant.conf File:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Pulse"
psk="psk_phrase"
key_mgmt=WPA-PSK
}
pi@maximo_mmitogateway /etc/wpa_supplicant $ sudo wpa_supplicant -D nl80211 -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
wlan0: Failed to initialize driver interface
pi@maximo_mmitogateway /etc/wpa_supplicant $ sudo wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
wlan0: Trying to associate with 38:ea:a7:7a:af:f0 (SSID='Pulse' freq=2412 MHz)
wlan0: Association request to the driver failed
wlan0: CTRL-EVENT-DISCONNECTED bssid=38:ea:a7:7a:af:f0 reason=0
wlan0: Trying to associate with 38:ea:a7:7a:af:10 (SSID='Pulse' freq=2442 MHz)
wlan0: Association request to the driver failed
wlan0: CTRL-EVENT-DISCONNECTED bssid=38:ea:a7:7a:af:10 reason=0
wlan0: Trying to associate with 88:51:fb:84:3d:70 (SSID='Pulse' freq=2442 MHz)
wlan0: Association request to the driver failed
wlan0: Associated with 38:ea:a7:7a:af:f0
wlan0: WPA: Key negotiation completed with 38:ea:a7:7a:af:f0 [PTK=CCMP GTK=TKIP]
wlan0: CTRL-EVENT-CONNECTED - Connection to 38:ea:a7:7a:af:f0 completed [id=0 id_str=]
^Y^X^Cioctl[SIOCSIWAP]: Operation not permitted
wlan0: CTRL-EVENT-DISCONNECTED bssid=38:ea:a7:7a:af:f0 reason=3 locally_generated=1
ioctl[SIOCSIWAP]: Operation not permitted
wlan0: CTRL-EVENT-TERMINATING
pi@maximo_mmitogateway /etc/wpa_supplicant $
Mit freundlichen Grüßen / Best regards
Christian Voller-Niederl
Maintenance System Manager
Maintenance System
Mayr-Melnhof Karton Gesellschaft m.b.H.
Wannersdorf 80, 8130 Frohnleiten, Austria
Tel: +43 3126 2511 538
Fax: +43 3126 2511 101
E-Mail:
christian.voller-niederl@xxxxxxxxxxxxx
Homepage: www.mm-karton.com
------------------------------------------------------------------------------
Mayr-Melnhof Karton Gesellschaft m.b.H.
Sitz der Gesellschaft: Frohnleiten
Handelsregister Graz: FN 62874m
UID-Nr: ATU 37002202
Geschäftsführer: Dr. Wilhelm Hörmanseder, Mag. Gernot Schleiss
Diese E-Mail enthält keine verbindlichen Erklärungen. Ausschließlich Erklärungen der vertretungsbefugten Personen der Gesellschaft
sind verbindlich und wirksam.
This e-mail does not include any binding declarations. Only declarations by authorized representatives of the company shall be deemed
legally enforceable and binding.
Von: kura-dev-bounces@xxxxxxxxxxx [mailto:kura-dev-bounces@xxxxxxxxxxx]
Im Auftrag von Binshtok, Ilya
Gesendet: Montag, 21. Dezember 2015 18:53
An: Kura Developers mailing list; kura-dev-request@xxxxxxxxxxx
Betreff: Re: [kura-dev] Kura on Raspbian 2 with WLAN and HTTPS
Hi Cristian,
Thank you for the info. Based on the Wlan setup you have configured unit for the 'Station' modem and trying to connect an access point. Is this correct?
If so, please send me your /etc/wpa_supplicant.conf file, as well as the /var/log/kura.log as well as /var/log/kura-console.log files.
I would also like to know if wpa_suplicant process is running. Just run the 'ps -ef ' command and see if there is a wpa_supplicant process.
If there is no such process, please kill Kura and try to run the wpa_supplicant manually as shown below:
root@eurotech-pi:~# /etc/init.d/kura stop
root@eurotech-pi:~# wpa_supplicant -D nl80211 -i wlan0 -c /etc/wpa_supplicant.conf
and let me know if wpa_supplicant fails, and if so, what the error is. If wpa_supplicant complains about nl80211 driver, please try to lainch it with wext: 'wpa_supplicant
-D wext -i wlan0 -c /etc/wpa_supplicant.conf' and let me know if this helps.
Best regards,
Ilya
USA – 12721 Metcalf Ave STE 102 | Overland Park Kansas 66085 | Tel. +1 913.549.1000 | Fax +1 913.549.1001 |
www.eurotech.com
Hi
Ilya ,
Thanks for your fast reply!!
Packages are installed…!
Wlan Setup:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "pulse"
wpa-psk "password"
pi@maximo_mmitogateway ~ $ lsusb
Bus 001 Device 006: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 005: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 004: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@maximo_mmitogateway ~ $ ifconfig wlan0
wlan0 Link encap:Ethernet Hardware Adresse 74:da:38:5e:03:18
inet6-Adresse: fe80::d118:522c:1e45:b30c/64 Gültigkeitsbereich:Verbindung
UP BROADCAST MULTICAST MTU:1500 Metrik:1
RX packets:0 errors:0 dropped:893 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
pi@maximo_mmitogateway ~ $ iw dev wlan0 info
command failed: No such device (-19)
pi@maximo_mmitogateway ~ $ iwconfig wlan0
wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Mit freundlichen Grüßen / Best regards
Christian Voller-Niederl
Maintenance System Manager
Maintenance System
Mayr-Melnhof Karton Gesellschaft m.b.H.
Wannersdorf 80, 8130 Frohnleiten, Austria
Tel: +43 3126 2511 538
Fax: +43 3126 2511 101
E-Mail:
christian.voller-niederl@xxxxxxxxxxxxx
Homepage: www.mm-karton.com
------------------------------------------------------------------------------
Mayr-Melnhof Karton Gesellschaft m.b.H.
Sitz der Gesellschaft: Frohnleiten
Handelsregister Graz: FN 62874m
UID-Nr: ATU 37002202
Geschäftsführer: Dr. Wilhelm Hörmanseder, Mag. Gernot Schleiss
Diese E-Mail enthält keine verbindlichen Erklärungen. Ausschließlich Erklärungen der vertretungsbefugten Personen der Gesellschaft sind verbindlich
und wirksam.
This e-mail does not include any binding declarations. Only declarations by authorized representatives of the company shall be deemed legally enforceable
and binding.
Hi Christian,
I tried Edimax USB dongle on my Raspberry Pi 2 and it works. Here is what I am getting:
1. Use lsusb to see if Wifi stick is detected as USB device:
root@eurotech-pi:/home/pi# lsusb
Bus 001 Device 006: ID 7392:7318 Edimax Technology Co., Ltd
Bus 001 Device 005: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 001 Device 004: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
2. Check if wlan0 interface is there:
root@eurotech-pi:/home/pi# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:1f:1f:55:62:12
inet addr:172.16.1.1 Bcast:172.16.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:1fff:fe55:6212/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:8260 (8.0 KiB)
3. Check WiFi mode. Note that Kura switched wifi to the Access Point mode by default.
root@eurotech-pi:/home/pi# iw dev wlan0 info
Interface wlan0
ifindex 3
wdev 0x1
addr 00:1f:1f:55:62:12
ssid kura_gateway_B8:27:EB:64:95:23
type AP
wiphy 0
channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz
or
root@eurotech-pi:/home/pi# iwconfig wlan0
wlan0 IEEE 802.11bg Mode:Master Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Please let me know what responses to above commands are you getting ...
Also, note that for Kura to run properly, the following packages must be installed:
sudo apt-get install telnet
sudo apt-get install dos2unix
sudo apt-get install ethtool
sudo apt-get install iw
sudo apt-get install bind9
sudo apt-get install hostapd
sudo apt-get install openvpn
sudo apt-get install isc-dhcp-server
Best regards,
Ilya
USA – 12721 Metcalf Ave STE 102 | Overland Park Kansas 66085 | Tel. +1 913.549.1000 | Fax +1 913.549.1001 |
www.eurotech.com
Hi,
I want to use Kura in a big IoT Project in our Mill (Condition Monitoring).
Therefore we are planning to use Raspbian 2 with Kura as a Gateway.
On big point is to read sensors from places difficult to access so we need WLAN!!!
Using USB WLAN Sticks Edimax does not work…!!!
Can I also configure Kura WebUI only for HTTPS? How is this possible?
Thanks a lot.
Mit freundlichen Grüßen / Best regards
Christian Voller-Niederl
Maintenance System Manager
Maintenance System
Mayr-Melnhof Karton Gesellschaft m.b.H.
Wannersdorf 80, 8130 Frohnleiten, Austria
Tel: +43 3126 2511 538
Fax: +43 3126 2511 101
E-Mail:
christian.voller-niederl@xxxxxxxxxxxxx
Homepage: www.mm-karton.com
------------------------------------------------------------------------------
Mayr-Melnhof Karton Gesellschaft m.b.H.
Sitz der Gesellschaft: Frohnleiten
Handelsregister Graz: FN 62874m
UID-Nr: ATU 37002202
Geschäftsführer: Dr. Wilhelm Hörmanseder, Mag. Gernot Schleiss
Diese E-Mail enthält keine verbindlichen Erklärungen. Ausschließlich Erklärungen der vertretungsbefugten Personen der Gesellschaft sind verbindlich
und wirksam.
This e-mail does not include any binding declarations. Only declarations by authorized representatives of the company shall be deemed legally enforceable
and binding.
Classified as
MM Internal / MM Project