RaspbmcCrystalbuntu

Post Reply 
 
Thread Rating:
  • 1 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[how to] Configure Networkmanager for wifi
06-28-2012, 05:39 AM
Post: #21
RE: Configure Networkmanager for wifi
(06-28-2012 04:30 AM)craley1 Wrote:  
(06-24-2012 08:17 PM)mxpwr Wrote:  [802-11-wireless]
ssid= ssid in byte array separated by ; (i used matlab to convert)
mode=infrastructure
security=802-11-wireless-security

Well I guess this is the way to do it. My biggest hangup is that I am not familiar with matlab.

mxpwr, can you give me a quick matlab code line to convert my SSID to byte array? Or can you direct me to a resource that convert it for me? Or can you just convert it for me (how lazy am I)? Any help would be appreciated.

As s7mx1 posted, you can use his script to convert your ssid via

Code:
wget http://db.tt/tcFXKYeU -O /tmp/ssid.py
python /tmp/ssid.py "Simple"

For the record, this is the Matlab code to do it

Code:
bytes = unicode2native('Your SSID', 'ISO-8859-1')
Find all posts by this user
Quote this message in a reply
06-28-2012, 04:37 PM
Post: #22
RE: Configure Networkmanager for wifi
(06-28-2012 05:39 AM)mxpwr Wrote:  As s7mx1 posted, you can use his script to convert your ssid via

Code:
wget http://db.tt/tcFXKYeU -O /tmp/ssid.py
python /tmp/ssid.py "Simple"

For the record, this is the Matlab code to do it

Code:
bytes = unicode2native('Your SSID', 'ISO-8859-1')

I feel like a dummy. I did not understand what s7mx1 was talking about in that post. Thanks for the direction and quick response.
Find all posts by this user
Quote this message in a reply
06-28-2012, 09:29 PM
Post: #23
RE: [how to] Configure Networkmanager for wifi
Tried a bunch of different things but this one finally worked for me.
Connected to router using WPA.

Dongle: D-Link Xtreme N Dual Band USB Adapter (DWA-160, HW ver.A2)
Chipset: Atheros AR9170
ID: 07d1:3a09

Connected through a powered USB Hub.
Find all posts by this user
Quote this message in a reply
07-02-2012, 08:38 PM
Post: #24
RE: [how to] Configure Networkmanager for wifi
Howdy, newbie here!

I've been following mxpwr's instructions, but have got a bit stuck. If I '$ iwlist wlan0 scan' my router shows up, so that part seems to have gone ok, but I get a syntax error when trying to run the python script to generate the byte array. I've not used python before, and my 'programming' skills only extend as far as some html, so I'm probably missing something obvious!
The second problem is I created a 'name.ini' file and did the 'chmod' but now can no longer access it. I was under the impression that 'sudo...' gave you full access?

I realise I'm probably trying to run before I can walk here, but I was hoping to be able to muddle through enough to get the wifi up, so I can use it on my TV.

Cheers
Find all posts by this user
Quote this message in a reply
07-02-2012, 08:51 PM
Post: #25
RE: [how to] Configure Networkmanager for wifi
You have to explain what you did and what's the end results (output from console/putty etc) here. Otherwise it's bit hard for others to help even they want to.

(07-02-2012 08:38 PM)SiR Wrote:  Howdy, newbie here!

I've been following mxpwr's instructions, but have got a bit stuck. If I '$ iwlist wlan0 scan' my router shows up, so that part seems to have gone ok, but I get a syntax error when trying to run the python script to generate the byte array. I've not used python before, and my 'programming' skills only extend as far as some html, so I'm probably missing something obvious!
The second problem is I created a 'name.ini' file and did the 'chmod' but now can no longer access it. I was under the impression that 'sudo...' gave you full access?

I realise I'm probably trying to run before I can walk here, but I was hoping to be able to muddle through enough to get the wifi up, so I can use it on my TV.

Cheers
Find all posts by this user
Quote this message in a reply
07-03-2012, 10:52 AM
Post: #26
RE: [how to] Configure Networkmanager for wifi
Finally got mine working! Here are some tips for those struggling.

Firstly, you can convert the SSID string online here:

http://people.csail.mit.edu/pgbovine/python/tutor.html

by pasting in the following code:

Code:
print ';'.join(str(ord(c)) for c in 'your_SSID')+';'

where your_SSID is replaced by your actual case sensitive SSID.

Secondly, my network is setup with WEP authentication, not WPA like in the example. Using the previously posted link:

http://projects.gnome.org/NetworkManager...ec-08.html

I altered the name.ini file to end like this:

Code:
[802-11-wireless-security]
key-mgmt=none
wep-tx-keyidx=0
wep-key-type=1
wep-key0=codeforinternetaccesshere
Find all posts by this user
Quote this message in a reply
07-04-2012, 06:21 PM
Post: #27
RE: [how to] Configure Networkmanager for wifi
Ok I managed to get my wifi adapter(airlink 101 n RTL8188CU chipset) running through alot of trial and error mostly using this http://omer.me/2012/04/setting-up-wirele...pberry-pi/ but when i reboot i do not auto connect i have to exit xbmc and go into the command line and use

$ sudo /etc/init.d/networking restart
$ sudo initctl stop xbmc
$ sudo initctl start xbmc
to get wifi working again once i do it works great any ideas on how i can get it to start at boot???

thanks
Find all posts by this user
Quote this message in a reply
07-05-2012, 05:01 PM (This post was last modified: 07-05-2012 05:07 PM by malnonn.)
Post: #28
RE: [how to] Configure Networkmanager for wifi
Hi,
Im having a problem getting my wireless card working it is a dlink DWA-140 and I have followed evertyhing on this post so far but not working. I have modified the source list and installed firmware-ralink but according to dmesg it seems to indicate that my card is not supported although I have checked the debian page and rt2800usb module does list my card. I use WPA-AUTO as encryption on my router.

lsusb:

pi@raspbmc:~$ lsusb
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 006: ID 07d1:3c0a D-Link System DWA-140 RangeBooster N Adapter(rev.B2) [Ralink RT3072]
pi@raspbmc:~$

tail end of dmesg after hot plugging the adaptor:

usb 1-1.2: new high speed USB device number 6 using dwc_otg
usb 1-1.2: New USB device found, idVendor=07d1, idProduct=3c0a
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: 11n Adapter
usb 1-1.2: Manufacturer: Ralink
usb 1-1.2: SerialNumber: 1.0
usb 1-1.2: reset high speed USB device number 6 using dwc_otg
ieee80211 phy3: Selected rate control algorithm 'minstrel_ht'
Registered led device: rt2800usb-phy3::radio
Registered led device: rt2800usb-phy3::assoc
Registered led device: rt2800usb-phy3::quality
phy3 -> rt2x00lib_request_firmware: Error - Current firmware does not support detected chipset.
pi@raspbmc:~$

lsmod:

pi@raspbmc:~$ lsmod | grep rt
rt2800usb 8988 0
rt2800lib 37036 1 rt2800usb
crc_ccitt 924 1 rt2800lib
rt2x00usb 6080 1 rt2800usb
rt2x00lib 24636 3 rt2800usb,rt2800lib,rt2x00usb
mac80211 169648 3 rt2800lib,rt2x00usb,rt2x00lib
cfg80211 117656 2 rt2x00lib,mac80211
pi@raspbmc:~$

IWCONFIG
pi@raspbmc:~$ sudo iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on

pi@raspbmc:~$

ifup
pi@raspbmc:~$ sudo ifup wlan0
Ignoring unknown interface wlan0=wlan0.
pi@raspbmc:~$

pi@raspbmc:~$
pi@raspbmc:~$ sudo nmcli dev
DEVICE TYPE STATE
eth0 802-3-ethernet connected
wlan0 802-11-wireless unavailable
pi@raspbmc:~$
Find all posts by this user
Quote this message in a reply
07-05-2012, 05:20 PM
Post: #29
RE: [how to] Configure Networkmanager for wifi
Your firmware is outdated. Get the latest one by
Code:
sudo wget "http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=blob_plain;f=rt2870.bin" -O /lib/firmware/rt2870.bin

(07-05-2012 05:01 PM)malnonn Wrote:  Hi,
Im having a problem getting my wireless card working it is a dlink DWA-140 and I have followed evertyhing on this post so far but not working. I have modified the source list and installed firmware-ralink but according to dmesg it seems to indicate that my card is not supported although I have checked the debian page and rt2800usb module does list my card. I use WPA-AUTO as encryption on my router.

lsusb:

pi@raspbmc:~$ lsusb
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 006: ID 07d1:3c0a D-Link System DWA-140 RangeBooster N Adapter(rev.B2) [Ralink RT3072]
pi@raspbmc:~$

tail end of dmesg after hot plugging the adaptor:

usb 1-1.2: new high speed USB device number 6 using dwc_otg
usb 1-1.2: New USB device found, idVendor=07d1, idProduct=3c0a
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: 11n Adapter
usb 1-1.2: Manufacturer: Ralink
usb 1-1.2: SerialNumber: 1.0
usb 1-1.2: reset high speed USB device number 6 using dwc_otg
ieee80211 phy3: Selected rate control algorithm 'minstrel_ht'
Registered led device: rt2800usb-phy3::radio
Registered led device: rt2800usb-phy3::assoc
Registered led device: rt2800usb-phy3::quality
phy3 -> rt2x00lib_request_firmware: Error - Current firmware does not support detected chipset.
pi@raspbmc:~$

lsmod:

pi@raspbmc:~$ lsmod | grep rt
rt2800usb 8988 0
rt2800lib 37036 1 rt2800usb
crc_ccitt 924 1 rt2800lib
rt2x00usb 6080 1 rt2800usb
rt2x00lib 24636 3 rt2800usb,rt2800lib,rt2x00usb
mac80211 169648 3 rt2800lib,rt2x00usb,rt2x00lib
cfg80211 117656 2 rt2x00lib,mac80211
pi@raspbmc:~$

IWCONFIG
pi@raspbmc:~$ sudo iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on

pi@raspbmc:~$

ifup
pi@raspbmc:~$ sudo ifup wlan0
Ignoring unknown interface wlan0=wlan0.
pi@raspbmc:~$

pi@raspbmc:~$
pi@raspbmc:~$ sudo nmcli dev
DEVICE TYPE STATE
eth0 802-3-ethernet connected
wlan0 802-11-wireless unavailable
pi@raspbmc:~$
Find all posts by this user
Quote this message in a reply
07-05-2012, 05:40 PM
Post: #30
RE: [how to] Configure Networkmanager for wifi
thx s7mx1 for the fast response, will try that and report back, will be later tonight.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Sponsored Advertisement