problem with wifi connection

Started by ellecieffe, February 10, 2013, 01:31:33 PM

Previous topic - Next topic

ellecieffe

Hello to all.
I have a A13 Olinuxino WiFi, booted with original 2GB Debian image and wired to the laptop trough USB-serial cable (with Putty on Ubuntu 12.04)

I'm trying to follow this guide to install Debian with graphical interface but I have some problems to establish a wifi connection.http://olimex.wordpress.com/2012/11/23/running-debian-with-xfce4-on-a13-olinuxino/

I have created a wireless network with ubuntu ...then on Putty I have typed:

ifconfig -a

indeed (like in the guide)
wlan1 Link encap:Ethernet HWaddr 48:02:2a:eb:21:1c
    inet addr:192.168.0.229 Bcast:192.168.0.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:166 errors:0 dropped:726 overruns:0 frame:0
    TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:31361 (30.6 KiB) TX bytes:1248 (1.2 KiB)


I have found
   
  wlan2     Link encap:Ethernet  HWaddr 48:02:2a:c5:f2:58
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


However I tried to follow the guide and I've typed

vi /etc/network/interfaces

and then I edited like as follows

auto lo
iface lo inet loopback

auto eth1
iface eth1 inet dhcp

#auto wlan1
iface wlan1 inet dhcp

#auto wlan2
iface wlan2 inet dhcp

wpa-ssid **ssidname**
wpa-psk  **password**

#wpa-ssid OlimexAP
#wpa-psk Yourwifipassword
#    wpa-driver wext
#    wpa-ssid yourssidhere
#    wpa-key-mgmt WPA-PSK
#    wpa-psk encodedpskhere


I have rebooted and check again my connection with ifconfig -a but I have found again

wlan2     Link encap:Ethernet  HWaddr 48:02:2a:c5:f2:58
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Where is the problem??
Thanks


ellecieffe

extra: at the beginning I typed
auto wlan2
iface wlan2 inet dhcp

wpa-ssid **ssidname**
wpa-psk  **password**

without #

So,when I rebooted it didn't found the connection,i think, and had entered  in a loop...  so I had to go edit again trough vi /etc/network/interfaces, modify that line (with the problem of check the line continuosly covered by the lines of boot) and reboot..wifi chip had become very hot !!
(Sorry for the non-technical language)

jwischka

Quote from: ellecieffe on February 10, 2013, 01:41:37 PM
extra: at the beginning I typed
auto wlan2
iface wlan2 inet dhcp

wpa-ssid **ssidname**
wpa-psk  **password**

without #

So,when I rebooted it didn't found the connection,i think, and had entered  in a loop...  so I had to go edit again trough vi /etc/network/interfaces, modify that line (with the problem of check the line continuosly covered by the lines of boot) and reboot..wifi chip had become very hot !!
(Sorry for the non-technical language)

Put it all together:


auto wlan2
iface wlan2 inet dhcp
wpa-ssid **ssidname**
wpa-psk  **password**


Also make sure you have the wpasupplicant package installed, which isn't by default. Or flash my image, and just modify the /etc/network/interfaces file with your information.

ellecieffe

hi jwischka, thanks for the reply!

I modified the code by removing the white space ( I will look the result at the next reboot). [ I used the more user friendly editor nano, instead of vi ]

The wpasupplicant package should to be installed on debian, on Ubuntu or on both ?

Unfortunately I haven't a microSD card reader,so I can't flash your image.
I'll do it just I can

ellecieffe

I have rebooted from the SD card but didn't work again,so I had to add # at the line one more time :'( . However I've discovered that the same "loop" is generated if I type
ifup wlan2

jwischka

Quote from: ellecieffe on February 10, 2013, 06:01:42 PM
I have rebooted from the SD card but didn't work again,so I had to add # at the line one more time :'( . However I've discovered that the same "loop" is generated if I type
ifup wlan2

wpasupplicant needs to be installed on the card that you're putting in the board. Try removing security on your router and seeing if you can connect then.

Do you actually have two wireless adapters installed? I would remove the second one, if not.

ellecieffe

#6
I tried to follow this guide(in italian),http://guide.debianizzati.org/index.php/Configurazione_di_una_connessione_wireless   :
root@debian:~# apt-get install wpasupplicant wireless-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
wireless-tools is already the newest version.
wpasupplicant is already the newest version .
0 upgraded, 0 newly installed, 0 to remove and 129 not upgraded.

and
root@debian:~# iwlist scan
lo        Interface doesn't suppDriverStopped=1
[  321.060000] bDriverStopped=1
ort scanning.

tunl0     Interface doesn't support scanning.

wlan2     No scan results

note   " Interface doesn't suppDriverStopped=1
[  321.060000] bDriverStopped=1

ort scanning."  ???
btw at the point "Rete Wireless protetta con WPA" we have:
network={
   ssid="olinuxino"
    psk=cc989812bc2cd489f960d8c1b2428d98d3c5555dac62d70ff691762fb4cc418a
   key_mgmt=WPA-EAP WPA-PSK
   proto=RSN WPA
   pairwise=CCMP TKIP
}

note that I have used wpa_passphrase and I've used WPA2-Personal (are key_mgmt,proto and pairwise ok?)
then Ihaven't used
pre-up wpa_supplicant -iwlan0 -c /etc/wpa_supplicant.conf -B
but I've changed /etc/network/interfaces like this:
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet dhcp


#auto wlan1
iface wlan1 inet dhcp

#auto wlan2
iface wlan2 inet dhcp
wpa-ssid olinuxino
wpa-psk cc989812bc2cd489f960d8c1b2428d98d3c5555dac62d70ff691762fb4cc418a

#wpa-ssid OlimexAP
#wpa-psk Yourwifipassword
#    wpa-driver wext
#    wpa-ssid yourssidhere

but
root@debian:~# iwconfig wlan2
wlan2     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated
          Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


If I try to type ifup wlan2 begins a cycle like this:

rfpwrstate_check call ips_leave....
[  926.740000]
[  926.740000]  rfpwrstate_check call ips_leave....
==>ips_leave cnts:20
[  926.740000] ==>ips_leave cnts:20
===>  rtw_ips_pwr_up..............
[  926.750000] ===>  rtw_ips_pwr_up..............
===> ips_netdrv_open.........
[  926.760000] ===> ips_netdrv_open.........
===> FirmwareDownload91C() fw:Rtl819XFwImageArray_UMC_B
[  926.770000]  ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_UMC_B
FirmwareDownload92C accquire FW from embedded image
[  926.780000] FirmwareDownload92C accquire FW from embedded image
fw_ver=v79, fw_subver=0, sig=0x88c0
[  926.790000] fw_ver=v79, fw_subver=0, sig=0x88c0
fw download ok!
[  926.840000] fw download ok!
Set RF Chip ID to RF_6052 and RF type to 1T1R.
[  926.840000] Set RF Chip ID to RF_6052 and RF type to 1T1R.
IQK:Start!!!
[  927.270000] IQK:Start!!!
Path A IQK Success!!
[  927.290000] Path A IQK Success!!
Path A IQK Success!!
[  927.300000] Path A IQK Success!!
IQK: final_candidate is 0
[  927.310000] IQK: final_candidate is 0
IQK: RegE94=fe RegE9C=8 RegEA4=fb RegEAC=4 RegEB4=0 RegEBC=0 RegEC4=0 RegECC=0
[  927.320000] IQK: RegE94=fe RegE9C=8 RegEA4=fb RegEAC=4 RegEB4=0 RegEBC=0 RegEC4=0 RegECC=0
[  927.320000]  Path A IQ Calibration Success !
Path A IQ Calibration Success !
pdmpriv->TxPowerTrackControl = 1
[  927.460000] pdmpriv->TxPowerTrackControl = 1
MAC Address from REG_MACID = 48:02:2a:c5:f2:58
[  927.470000] MAC Address from REG_MACID = 48:02:2a:c5:f2:58
rtl8192cu_hal_init in 710ms
[  927.480000] rtl8192cu_hal_init in 710ms
<===  rtw_ips_pwr_up.............. in 740ms
[  927.490000] <===  rtw_ips_pwr_up.............. in 740ms
==> ips_leave.....LED(0x00028080)...
[  927.500000] ==> ips_leave.....LED(0x00028080)...
survey done event(0)
[  928.810000] survey done event(0)
==>pwr_state_check_handler .fw_state(8)
[  929.490000] ==>pwr_state_check_handler .fw_state(8)
==> rtw_ps_cmd  , enqueue CMD
[  929.490000] ==> rtw_ps_cmd  , enqueue CMD
==>rtw_ps_processor .fw_state(8)
[  929.500000] ==>rtw_ps_processor .fw_state(8)
==>ips_enter cnts:21
[  929.510000] ==>ips_enter cnts:21
==>power_saving_ctrl_wk_hdl change rf to OFF...LED(0x00028000)....

[  929.510000] ==>power_saving_ctrl_wk_hdl change rf to OFF...LED(0x00028000)....
[  929.510000]
===> rtw_ips_pwr_down...................
[  929.520000] ===> rtw_ips_pwr_down...................
====> rtw_ips_dev_unload...
[  929.530000] ====> rtw_ips_dev_unload...
usb_read_port_cancel
[  929.560000] usb_read_port_cancel
usb_write_port_cancel
[  929.570000] usb_write_port_cancel
==> rtl8192cu_hal_deinit
[  929.570000] ==> rtl8192cu_hal_deinit
bkeepfwalive(0)
[  929.580000] bkeepfwalive(0)
card disble without HWSM...........
[  929.580000] card disble without HWSM...........
<=== rtw_ips_pwr_down..................... in 80ms
[  929.600000] <=== rtw_ips_pwr_down..................... in 80ms


and I have to reset

AARRGHHH  >:(

help please :'(

ellecieffe

Maybe I've figured out the  problem. I'm trying to use my acertravelmate 6592 as an access point but apparently the Intel Wireless WiFi Link 4965AGN is not suitable.
however,can I  still make an ad hoc network?

iso9660

#8
Are you sure you have the required firmware wifi card file installed in /lib/firmware folder? Depending on the wifi card you use it might need a firmware.
http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree

ellecieffe

I've found this documentation http://wireless.kernel.org/en/users/Drivers/iwlegacy
.... so I can't use my acer in AP mode but only in IBSS (Ad-Hoc) mode .
Can you suggest me a Guide to do this,please ?


ellecieffe

Hi guys...
Like you can see in the previous posts , I can't use my acer in AP mode but only in IBSS (Ad-Hoc) mode .

I've get a 8GB microSD and I've flashed the jwhischka image,R15....so, how I can configure the connection?
(I use USB to TTL Serial Cable to connect olinuxino to my PC,where I've installed PuTTY)

Thank to all

JohnS

If the info above is no good and google also isn't then probably buy an AP.

John

jwischka

Quote from: ellecieffe on February 14, 2013, 08:15:38 PM
Hi guys...
Like you can see in the previous posts , I can't use my acer in AP mode but only in IBSS (Ad-Hoc) mode .

I've get a 8GB microSD and I've flashed the jwhischka image,R15....so, how I can configure the connection?
(I use USB to TTL Serial Cable to connect olinuxino to my PC,where I've installed PuTTY)

Thank to all

Have you edited /etc/network/interfaces in the image again? I assume you're trying to connect with the built-in wireless adapter on the A13-WIFI to an actual router? Or are you trying to connect it to your laptop?

If it's the second, I would echo what John said and just buy a real AP/router to use - they're cheap, and it will save you a lot of configuration headaches.

ellecieffe

I was trying to connect olinuxino with my laptop...ok, I will buy a router !!
thanks! good night all :)