Wiz Wifi Script Set-Up


rbusa

Member
Joined
Apr 28, 2010
Messages
127
Age
28
Location
Czech Rep
I have complete set USB Host adapter + Wifi stick MSI US330EX Lite, (thanks AndY and crow_riot) I downloaded from the archive script, but I have trouble with set-up for run:
My RT2870STA.dat :
#The word of "Default" must not be removed
Default
CountryRegion=5
CountryRegionABand=7
CountryCode=DE
ChannelGeography=1
SSID=networkName
NetworkType=Adhoc
WirelessMode=4
Channel=6
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
AuthMode=OPEN
EncrypType=NONE
WPAPSK=
DefaultKeyID=2
Key1Type=1
Key1Str=
Key2Type=0
Key2Str=SecretPassword
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
PSMode=CAM
AutoRoaming=0
RoamThreshold=70
APSDCapable=0
APSDAC=0;0;0;0
HT_RDG=1
HT_EXTCHA=0
HT_OpMode=1
HT_MpduDensity=4
HT_BW=1
HT_BADecline=0
HT_AutoBA=1
HT_BADecline=0
HT_AMSDU=0
HT_BAWinSize=64
HT_GI=1
HT_MCS=33
HT_MIMOPSMode=3
HT_DisallowTKIP=1
IEEE80211H=0
TGnWifiTest=0
WirelessEvent=0
CarrierDetect=0
AntDiversity=0
BeaconLostTime=4
Can someone complete this file?

network name: NetworkName
country: Czech Republic
encryption: WEP
type: 802.11b
auth type: Open
passphrase: SecretPassword

Thanks

SaS
 
Code:
#The word of "Default" must not be removed
Default
CountryRegion=5
CountryRegionABand=7
CountryCode=CZ
ChannelGeography=1
SSID=NetworkName
NetworkType=Infra
WirelessMode=1
Channel=6
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
AuthMode=WEPAUTO 
EncrypType=WEB
WPAPSK=
DefaultKeyID=1
Key1Type=1
Key1Str=SecretPassword
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
PSMode=CAM
AutoRoaming=0
RoamThreshold=70
APSDCapable=0
APSDAC=0;0;0;0
HT_RDG=1
HT_EXTCHA=0
HT_OpMode=1
HT_MpduDensity=4
HT_BW=1
HT_BADecline=0
HT_AutoBA=1
HT_BADecline=0
HT_AMSDU=0
HT_BAWinSize=64
HT_GI=1
HT_MCS=33
HT_MIMOPSMode=3
HT_DisallowTKIP=1
IEEE80211H=0
TGnWifiTest=0
WirelessEvent=0
CarrierDetect=0
AntDiversity=0
BeaconLostTime=4

Try this settings...
 
sbock said:
Try this settings...
For me does not work

It logged to conole this (termula2x):
mkdir: cannot create directory /etc/Wireless': File exists
mkdir: cannot create directory /etc/Wireless/RT2870STA': File exists
Using rt3070sta.ko
then it returned me to main menu, I launched QTopia and Opera and Opera cannot connect.
Stick's status light blinks like when is it browsing internet on PC.

SaS
 
Last edited by a moderator:
install dropbear on the wiz.

if you can connect to the wiz using ssh (i use putty) then your wifi dongle is working correctly. the ssh user is 'root' and there's no password set, btw.

what you might need to connect from your wiz to the web then is the correct nameserver entry in the file /etc/resolv.conf
 
crow_riot said:
install dropbear on the wiz.

if you can connect to the wiz using ssh (i use putty) then your wifi dongle is working correctly. the ssh user is 'root' and there's no password set, btw.

what you might need to connect from your wiz to the web then is the correct nameserver entry in the file /etc/resolv.conf
Sorry that i ain't mentioned, but I am relatively newbie in Linux system applications. The best I can do with Unix-like is to compile program from source.
Again with network applications. The best I did was to set up Ad-Hoc on Windows system.

So... is there some step-by step guide howto? (can be on Linux or Windows)

SaS
 
Last edited by a moderator:
crow_riot said:
install dropbear on the wiz.

if you can connect to the wiz using ssh (i use putty) then your wifi dongle is working correctly.
Duno how to. Anyway, when I establish Ad-Hoc network with params as in readme, Windows shows me "Unknown Network" when Wiz on after Script up.
When I turn my Wiz off, i writes "Waiting for users"

So I tink that Dongle is working correctly

and that resolv.conf - there is one line of text
"nameserver 192.168.1.101"

There is very detailed info:
description: 802.11bgn 1T2R Mini Card Wireless Adapter
physic adress: 00-21-85-7A-3D-**
DHCP enabled: yes
IPv4 addr.: 192.168.1.101
IPv4 masc: 255.255.255.0
default IPv4 gate: 192.168.1.1
DHCP IPv4 server: 192.168.1.1
DNS IPv4 server: 10.3.1.1; 212.80.**.7
IPv6 addr. :
Wot to put there then?

SaS
 
Last edited by a moderator:
you dont need ipv6.

about the nameserver - it depends on your ISP what to put there, when you have some dialup your connection usually gets this automatically assigned. you need to check in your connection settings.

google has some publicly available nameserver though, so you can just put
Code:
nameserver 8.8.8.8

into resolv.conf
 
crow_riot said:
you dont need ipv6.

about the nameserver - it depends on your ISP what to put there, when you have some dialup your connection usually gets this automatically assigned. you need to check in your connection settings.

google has some publicly available nameserver though, so you can just put
Code:
nameserver 8.8.8.8

into resolv.conf
So:

I changed /etc/resolv.conf to
Code:
nameserver 8.8.8.8
Used sbock's driver code
Installed dropbear
Made Ad-Hoc connection between Wiz and Windows PC (with original conf)

And still cannot connect with qtopia's Opera :eek: :blink: :angry: :unsure:

SaS
 
Last edited by a moderator:
did you enable 'internet connection sharing' ? i have no idea about ad-hoc connections, i'm directly connecting to my wifi router using sbock's scripts and it works...

you said you installed dropbear - can you connect with ssh now? if yes, you could try "ping 8.8.8.8" and should get something like this:

Code:
Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=31ms TTL=55
Reply from 8.8.8.8: bytes=32 time=31ms TTL=55
 
here's my wiz wlan startup script, slightly modified to match my ip addresses

Code:
#!/bin/sh

WIZIP=192.168.0.100
ROUTERIP=192.168.0.1

#mkdir /etc/Wireless
#mkdir /etc/Wireless/RT2870STA
#cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat

insmod rt3070sta.ko
ifconfig ra0 inet $WIZIP up
route add default gw $ROUTERIP

cd /usr/gp2x
./gp2xmenu


WIZIP - thats the IP the wiz will have when wifi gets started correctly.
ROUTERIP - thats the ip of my router, you probably need to change this to you PCs local IP address!

i've commented out (=#) the mkdir/cp lines because copying the .dat file is only required once for a working setup. it doesn't need to be done everytime.

to check if your wifi is started correctly, you could also try a ping on the windows commandline (windows-key+R, cmd.exe, enter) to your wiz "ping <ip.addy.of.wiz>" and you should get some result like from the ping to the nameserver
 
crow_riot said:
here's my wiz wlan startup script, slightly modified to match my ip addresses

Code:
#!/bin/sh

WIZIP=192.168.0.100
ROUTERIP=192.168.0.1

#mkdir /etc/Wireless
#mkdir /etc/Wireless/RT2870STA
#cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat

insmod rt3070sta.ko
ifconfig ra0 inet $WIZIP up
route add default gw $ROUTERIP

cd /usr/gp2x
./gp2xmenu


WIZIP - thats the IP the wiz will have when wifi gets started correctly.
ROUTERIP - thats the ip of my router, you probably need to change this to you PCs local IP address!

i've commented out (=#) the mkdir/cp lines because copying the .dat file is only required once for a working setup. it doesn't need to be done everytime.

to check if your wifi is started correctly, you could also try a ping on the windows commandline (windows-key+R, cmd.exe, enter) to your wiz "ping <ip.addy.of.wiz>" and you should get some result like from the ping to the nameserver
PING command and PuTTy @ SSH (port 22) - All runs fine (finally :lol: :D )
PuTTy @ SSH runs identical to USBSerial

What to do now to enable the Wiz browse WWWs?
 
Last edited by a moderator:
more tips


1) connect to your wiz using ssh (so to ensure your wifi works); try issuing ping 8.8.8.8 on the wiz - if it doesnt work theres something wrong with the gateway settings. thats the 'ROUTERIP=192.168.0.1' line in the script. really, you need to figure out what your gateway is and add a route from your wiz to that gateway, otherwise it cannot work. maybe it's just the IP of your main computer?

2) on windows, go to the commandline (windows-key+R, cmd.exe, you know) then enter "ipconfig /all" and copy/paste the result here.
connect to wiz using ssh, enter 'ifconfig -a' (i dont know if that command is available but i think so) and paste the result here.

that's probably the easiest way to see whats the ip addresses of your system to figure out how it must be configured correctly.
 
Output from ifconfig -a from SSH
Code:
root@wiz:/usr/gp2x# ifconfig -a
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:200 (200.0 B)  TX bytes:200 (200.0 B) 

ra0       Link encap:Ethernet  HWaddr 00:1F:CF:52:48:89
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2206 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:169234 (165.2 KiB)  TX bytes:10771 (10.5 KiB)

SaS
 
ok

resolv.conf:
Code:
nameserver 212.80.66.7


wlan_startup.gpe
Code:
#!/bin/sh

WIZIP=192.168.1.10
ROUTERIP=192.168.1.1

#mkdir /etc/Wireless
#mkdir /etc/Wireless/RT2870STA
#cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat

insmod rt3070sta.ko
ifconfig ra0 inet $WIZIP up
route add default gw $ROUTERIP

cd /usr/gp2x
./gp2xmenu

from what i understand it should work then. if not, sorry, i'm out of help then.
 
crow_riot said:
ok

resolv.conf:
Code:
nameserver 212.80.66.7


wlan_startup.gpe
Code:
#!/bin/sh

WIZIP=192.168.1.10
ROUTERIP=192.168.1.1

#mkdir /etc/Wireless
#mkdir /etc/Wireless/RT2870STA
#cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat

insmod rt3070sta.ko
ifconfig ra0 inet $WIZIP up
route add default gw $ROUTERIP

cd /usr/gp2x
./gp2xmenu

from what i understand it should work then. if not, sorry, i'm out of help then.

Crow, you are real lifesaver. :D

Everything works :) Thank you

SaS
 
Last edited by a moderator:
Back
Top