WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: WiFi stack added  (Read 122673 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: WiFi stack added
« Reply #30 on: February 10, 2013, 03:48:21 AM »
Yes, it is a lot :(
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: WiFi stack added
« Reply #31 on: February 10, 2013, 04:34:55 AM »
More dropped than received...
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: WiFi stack added
« Reply #32 on: February 10, 2013, 06:34:51 AM »
Gerrelt@

Can you try it without WPA?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Gerrelt

  • Full Member
  • ***
  • Posts: 182
Re: WiFi stack added
« Reply #33 on: February 10, 2013, 08:23:58 AM »
Yes, but not at the moment. I think my family members will get angry when I fool around with the router now..  ;D

I have a second SD card, I will install Raspbian wheezy on it, and see if it also drops this much packages. If yes, it's something with my dongle or router.
« Last Edit: February 10, 2013, 09:34:41 AM by Gerrelt »
my Raspberry Pi page: http://raspberry.gerrelt.nl

Offline Gerrelt

  • Full Member
  • ***
  • Posts: 182
Re: WiFi stack added
« Reply #34 on: February 10, 2013, 09:36:59 AM »
OK, installed wheezy and squeezelite on the second SD card... And, also dropping packages like crazy...  :(

Code: [Select]
wlan0     Link encap:Ethernet  HWaddr 00:9e:85:9d:55:79
          inet addr:192.168.0.109  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2411 errors:0 dropped:2433 overruns:0 frame:0
          TX packets:1480 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2298483 (2.1 MiB)  TX bytes:156045 (152.3 KiB)

The good news: there's nothing wrong with tinycore. The bad news: I have to find out what's going wrong.. :o
my Raspberry Pi page: http://raspberry.gerrelt.nl

Offline Cloudcentric

  • Newbie
  • *
  • Posts: 15
Re: WiFi stack added
« Reply #35 on: February 10, 2013, 10:14:38 AM »

If you have a N 150 Router you should only use CCMP to connect at N speed, if you have a 54G Router just use TKIP

http://en.wikipedia.org/wiki/CCMP

Though it could be a power issue, maybe turn of the power management of the WiFi Dongle ? so it reads something like this

wlan0     IEEE 802.11bg  ESSID:"acme"  Nickname:"rtl_wifi"
          Mode:Managed  Frequency:2.447 GHz  Access Point: 00:21:29:69:C2:D8   
          Bit Rate:54 Mb/s   Sensitivity:0/0 
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level=100/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Offline Gerrelt

  • Full Member
  • ***
  • Posts: 182
Re: WiFi stack added
« Reply #36 on: February 10, 2013, 11:17:13 AM »

I've checked, powermanagement is allready off :

Code: [Select]
wlan0     IEEE 802.11bgn  ESSID:"SeinfeldsHouse"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:9E:95:90:5A:75
          Bit Rate:150 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=99/100  Signal level=76/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Apperently it's a common issue, see: raspberrypi.org thread
They suspect it's nothing to worry about.. ???


my Raspberry Pi page: http://raspberry.gerrelt.nl

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: WiFi stack added
« Reply #37 on: February 10, 2013, 11:40:34 AM »
One possible reason is a jamming from a neighbour station using the same channel. Check list of heard AP's.

Also would be good to see the result connecting WiFi dongle to an external powered USB hub.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Gerrelt

  • Full Member
  • ***
  • Posts: 182
Re: WiFi stack added
« Reply #38 on: February 10, 2013, 11:51:50 AM »
I've checked the wifi channel, it's on a unique channel, not used by anybody else in the range.
The dongle is connected to an externally powered USB hub.

My dongle is 150 Mb/s, and my wifi router is 300 Mb/s. I could try setting the router to 150 Mb/s, to see if it makes any difference.
my Raspberry Pi page: http://raspberry.gerrelt.nl

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: WiFi stack added
« Reply #39 on: February 10, 2013, 11:47:23 PM »
Do test on a "regular" box too, to see if it's the stick or the Pi.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: WiFi stack added
« Reply #40 on: February 11, 2013, 12:18:59 AM »
It may happen that 150MBit/s is too high bitrate for the Pi and  it can't handle. Switch back to 54 Mbit/s and check.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: WiFi stack added
« Reply #41 on: February 11, 2013, 07:47:27 AM »
Hi bmarkus.

I Will report my findings lager tonight.

Is it possible to set the speed on the raspberry side? I mean how do i force the USB wifi to operate at 54 mbit instead of 150?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: WiFi stack added
« Reply #42 on: February 11, 2013, 08:30:24 AM »
Hi sbp
The  rate  option of  iwconfig  should let you set that, see:
http://linux.die.net/man/8/iwconfig

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: WiFi stack added
« Reply #43 on: February 11, 2013, 11:14:22 AM »
Hi
Regarding the WiFi issue.
I'm using the Raspberry as a Squeezebox player (the PicoPlayer - I made). It is working really fine on a LAN cable.

The problem with the player on WiFi is that the sound is breaking up. It helps a bit to increase the buffer in the player but still I'm unable to listen for more than a few minutes it breaks up. It then buffers for some seconds before it starts again often stuttering. This is vi the audio jack. It seems OK if I use a USB-DAC, then it plays without problems.

I have noticed that if the I play music via the Wifi, the Raspberry seems pressed to its limits, if I write something via putty, there is considerable lag from a keypress and to it is written to the screen.

Now to my experiments:
If connected to my D-link 665 Router -N speed, it is connected with 150 Mbit/sec and react as described above (I haven't checked different protection schemes - see below).

If I connect to a Linksys WAP54G it only connects at 54 Mbit/sec, as shown below there is still a lot of dropped RX-packages, but the player is playing without any problems and there is no hic-ups.

This is without any protection:

Code: [Select]
iwconfig
lo        no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"linksys"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:18:39:1A:CF:2F
          Bit Rate:54 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=100/100  Signal level=100/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0



Code: [Select]
wlan0     Link encap:Ethernet  HWaddr 00:0F:12:82:13:1F
          inet addr:192.168.1.25  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:68313 errors:0 dropped:125046 overruns:0 frame:0
          TX packets:32770 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:100723162 (96.0 MiB)  TX bytes:2823088 (2.6 MiB)


With WPA2-Personel protection enabled - the audio is breaking up again (on the Linksys - which played fine without protection) However it still has a lot of dropped packages.

Code: [Select]
wlan0     Link encap:Ethernet  HWaddr 00:0F:12:82:13:1F
          inet addr:192.168.1.25  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5904 errors:0 dropped:5925 overruns:0 frame:0
          TX packets:3705 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7968557 (7.5 MiB)  TX bytes:374187 (365.4 KiB)


With WPA-Personel - the audio is fine (on the same Linksys)
Code: [Select]
wlan0     Link encap:Ethernet  HWaddr 00:0F:12:82:13:1F
          inet addr:192.168.1.25  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:28876 errors:0 dropped:58810 overruns:0 frame:0
          TX packets:14628 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:50879966 (48.5 MiB)  TX bytes:1867817 (1.7 MiB)

In conclusion: there is a lot of dropped packages no matter what kind of protection, but the audio is playing fine without protection and with WAP-Personel protection - So I think that the problem is the WPA2-Personel protection which seems to bring the Raspberry to its knees.

So is there a setting in Microcore that could tell the WiFi USB dongle to use WPA (as my router accepts both WPA and WPA2 connections?)

Steen


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: WiFi stack added
« Reply #44 on: February 11, 2013, 11:24:49 AM »
It's a wpasupplicant config.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."