Problem Wifi withA13-OLinuXino-WIFI

Started by xyphos07, January 22, 2014, 10:02:44 PM

Previous topic - Next topic

xyphos07

Dear all,
i just receive the A13 wifi, and i have a problem with the wifi, is very unstable.
I saw in this forum, other users have the same problem.
I download the last img A13 Debian 4GB SD-card image release-8 but the problem is also present in this img.

is there exist a patch or some correction??

thanks

progmetalbg

Could you paste us the result of

dmesg | tail -50

Your problem might be related to http://linux-sunxi.org/Wifi#8192cu

xyphos07

hi,
i send you the result. When the board start the wifi is ok during few minutes, the ping is correct, but after the interface is always up but don't run.
I done what you send but i have the same problem.
Thanks for your help


4.189312] [mmc-err] Failed to release sdc0 reset
[    4.222267] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.236554] [mmc-msg] sdc0 set round clock 400000, src 24000000
[    4.338063] [mmc-err] smc 0 err, cmd 52,  RTO
[    4.346535] [mmc-err] smc 0 err, cmd 52,  RTO
[    4.359244] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.379336] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.394062] [mmc-err] smc 0 err, cmd 5,  RTO
[    4.402371] [mmc-err] smc 0 err, cmd 5,  RTO
[    4.410676] [mmc-err] smc 0 err, cmd 5,  RTO
[    4.418984] [mmc-err] smc 0 err, cmd 5,  RTO
[    4.432206] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.449937] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.470024] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.514775] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    4.532506] [mmc-msg] sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    4.547139] [mmc-msg] sdc0 set round clock 42857142, src 300000000
[    4.622412] [mmc-msg] sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    4.641321] mmc0: new high speed SDHC card at address 1234
[    4.650548] mmcblk0: mmc0:1234 SA08G 7.28 GiB
[    4.658623]  mmcblk0: p1 p2
[    4.715519] kjournald starting.  Commit interval 5 seconds
[    4.725288] EXT3-fs (mmcblk0p2): using internal journal
[    4.736363] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[    4.748235] VFS: Mounted root (ext3 filesystem) on device 179:2.
[    4.758875] devtmpfs: mounted
[    4.764689] Freeing init memory: 172K
[    5.724967] udevd[160]: starting version 175
[    7.401567] ERR: script_parser_fetch usb_controller_type failed
[    7.617806] usbcore: registered new interface driver rtl8192cu
[    7.691600] udevd[191]: renamed network interface wlan0 to wlan5
[   15.786415] EXT3-fs (mmcblk0p2): using internal journal
[   16.237295] UMP: UMP device driver  loaded
[   16.386262] Mali: permit MALI_IOC_MEM_MAP_EXT ioctl for framebuffer (paddr=0x5A000000, size=33554432)
[   16.412346] mali: use config clk_div 2
[   16.417950] mali: clk_div 2
[   16.421293] Mali: mali clock set completed, clock is  180000000 Hz
[   16.434771] mali: use config clk_div 2
[   16.440309] mali: clk_div 2
[   16.443648] Mali: mali clock set completed, clock is  180000000 Hz
[   16.458257] Mali: Mali device driver loaded
[   16.568473] sunxi_gpio driver init ver 1.3
[   16.590377] gpiochip_add: registered GPIOs 1 to 14 on device: A1X_GPIO
[   16.658476] [cedar dev]: install start!!!
[   16.670527] [cedar dev]: install end!!!
[   16.818095] pwm-sunxi: pwm0 configured - period: 10000, duty_percent: 99, duty: 9900
[   60.222612] Warning: this sunxi disp driver will see significant redesign.
[   60.235032] Applications using /dev/disp directly will break.
[   60.248320] For more information visit: http://linux-sunxi.org/Sunxi_disp_driver
[   60.269109] [DISP] layer allocated: 0,101

progmetalbg

Well, it is probably not the same issue, but just try to disable the Wifi power management as described in the link that I posted above.

QuoteTo fix the problem create a file /etc/modprobe.d/8192cu.conf with the following contents:
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

Then save the file and reboot.

xyphos07

Hi, thos file already exist with this configuration.

Michel De Meester

Hi All,

Same problem here, Wifi is very unstable and stops completely after some data transfer, running  Debian (official release 8.) or Android doesn't make any difference.

8192cu.conf was already edited with the rtw_power_mgt=0

For me the A13 board is completely useless (and money thrown away) because I really need the wifi connection for my project.

Somebody has the solution for this annoying problem?

Thanks

Michel

LubOlimex

Hey there,

Is it possible to confirm that your wifi modem/router/switch doesn't have any firewall or packet scheduler or anti-virus enabled?

Most of the newer devices on the market come with bunch of software installed and block communication with some boards based on some heuristic analysis performed or pre-programmed.

This is very often an issue.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

Michel De Meester

Hello,

<Bad English Mode>

I've planned a few tests but due to lack of time it can take a while.
-   Connecting a 7" LCD so I can use the board on battery power
-   testing the board on many places on different wifi accespoints / routers connected to different providers.
-   Setting up an ADHOC connection between the A13 board and different laptops, tablets and other wifi capable devices

Had the board (running latest ver. 9 debian image) powered up for a few days now, "wifi connection signal box"  stays around 95% all the time, as soon as I started data traffic today (just accesing a few websites) it tries to reconnect a few times (spinning symbol) and after a few attempts is says "no network connection"

For now I'm testing the board at work (a university hospital) where several SSID 's are transmitted on a 300+ AP's AeroHive wifi network where employees (WPA2) and visitors (unsecure) can connect.
Never got any complains that somebody was unable to connect, never seen the same problem with a lot of different wifi clients.

Hope this helps you solving the problem

</Bad English Mode>

Michel

LubOlimex

Hey Michel,

Thank you for the feedback.

Please can you write down exactly the steps you take when the disconnect appears so I can try to replicate them here.

What data transfer causes this disconnect? Is there a specific web-site that you visit? Is reboot the only option after a disconnect? How do you power the board?

Finally please use release 9 of the Debian that is now available and check if the problem persists: https://drive.google.com/file/d/0B-bAEPML8fwlRHN4UzhrWVhzQms/edit?usp=sharing.

We have performed hundreds of tests and we have never been able to replicate the disconnect problem that are mentioned in some of the forum threads. We have received boards with this problem back and they work fine here.

There is no problem to replace the board just I'm not convinced it is an Olimex issue. And if it is an Olimex issue we can probably fix it if we are able to identify it.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

Lurch

@Michel De Meester
I have several A13 boards and they all seem to work well with the latest releases.
If you want to check the routers etc., you could just plug in a USB-Wifi stick like the Edimax etc. 
They're very cheap and will work with the releases without any changes - you just have to change the wlanx number and comment out the one for the built-in Wifi.  This will show you if your problem is due to hardware or network.

Michel De Meester

Hello Lub/OLIMEX, Lurch

Thanks for the replies and trying to solve the problem.

I will test the board at home this week (sorry but I don't have much spare time) with the on board wifi device and with an USB wifi "stick".

I'll keep you posted.

Michel


Michel De Meester

Hello All

Took the board at home and installed it very basic, just a VGA monitor, keyboard, mouse and power supply.

Running the latest Debian release ver.9

Connected seamlessly to my wireless home network, playing streaming radio for about an hour, downloading all the available upgrades......

Till now, not any disconnection happened

I will do some more test and keep you guys (and girls) posted.

Michel

Lurch


diracsbracket

Hi Michel,
I have exactly the problem you described:

The WIFI on my 2nd  board does not work properly.
(This is my 2nd (!) board because the first broke due USB hardware problem...)

I build my own SD card image according to the instructions on the Olimex site:

http://olimex.wordpress.com/2014/01/15/building-debian-linux-bootable-sd-card-with-hardware-accelerated-video-decoding-and-kernel-3-4-for-a13-olinuxino/

BUT:

1. The WIFI module gets HOT!?
   I don't remember this happening on my first board.

2. The connection breaks in the middle of an apt-get install,
   and is useless afterwards, unless I reboot!

You say your problems were "solved" by using the Release 9 official image
from Olimex (which should be identical to the one made by following
their official step as per the above link?) but that does not say what was
wrong in the first place.

Anyway, I replaced my SD card with the release 9 official image, and
I still get the same problem: starts to download, then breaks. Even ping
does not work anymore!

Is this board crap or what? Sorry, but I'm getting more and more frustrated
about this board, which should now be mature, no?

vellamy

I've already received my A13 Wifi. The main reason that I bougth this board is because it has Wifi. I was very excited to begin but Wifi is disconnected automatically. Furthermore, the chip over the wifi module is too hot.  >:( >:( >:( >:( >:(. One of my purpose with Olimexino is to learn how the embbeded sy
system works, so I've not knowledge of linux and now I have to try by the hard way. SHIT!

Quote from: Michel De Meester on March 24, 2014, 02:25:52 PM
Hi All,

Same problem here, Wifi is very unstable and stops completely after some data transfer, running  Debian (official release 8.) or Android doesn't make any difference.

8192cu.conf was already edited with the rtw_power_mgt=0

For me the A13 board is completely useless (and money thrown away) because I really need the wifi connection for my project.

Somebody has the solution for this annoying problem?

Thanks

Michel