NU MU-Q101 3.5G無線網卡 [論壇 - Ubuntu硬體支援]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

« 1 2 (3) 4 5 »


tick
回覆: NU MU-Q101 3.5G無線網卡
Anon:tick
Actually, the problem of Q101 is that Q101 will not turn GSM modem to full function properly while plug-in.
Therefore, you will need to turn it on manually.

The way to turn it on the writing "AT+CFUN=1" to the /dev/ttyUSB2, after q101 switch to modem mode.

You can use minicom, cu, tickminicom, or screen to do that. You can choose whatever tool you want to use. :)

if you want to use tickminicom.
you can do as following:
> git clone git://gitorious.org/tickminicom/mainline.git tickminicom
> cd tickminicom;make;sudo cp tickminicom /usr/local/bin/tickminicom_x86


Note:
1. You will need to add q101 swtting to the usb_modeswitch.conf

>diff usb_modeswitch.conf /etc/usb_modeswitch.conf
883a884,897
> ########################################################
> # Quanta MU-Q101
> #
> # Contributor:
>
> DefaultVendor= 0x0408
> DefaultProduct= 0x1000
>
> TargetVendor= 0x0408
> TargetProduct= 0xea02
>
> MessageEndpoint=0x05
> MessageContent="5553424338474ffc0002000000000a2a000000003300000100000000000000"
>

2. wvdial.conf need to be setup properly. (see former posts)

>cat /etc/wvdial.conf
[Dialer Defaults]
Phone = *99#
Username = username
Password = passwd
Stupid Mode = 1
Dial Command = ATDT
Check Def Route = on
Dial Attempts = 3
Modem = /dev/ttyUSB0
Baud = 460800
Init1 = ATZ
Init2 = ATE0V1&D2&C1S0=0
Init3 = ATQ0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1, "IP","Internet"
ISDN = 0
Modem Type = Analog Modem
New PPPD = yes



This way I can get the network without many troubles. The only issue is that I may not get DNS prperly, but I think it's a issue from ISP service. You can Ctrl+c and run again. normally, it will work well within two runs.

2009/4/28 1:07 | 5a90b 82455 2317b 52ba7
應用擴展 工具箱
訪客
回覆: NU MU-Q101 3.5G無線網卡
Anon:訪客
Sorry!!excuse me,Mr. tick
This way can use for ubuntu 9.04?
because,I can not modprobe usbserial.
usb modes already change to vendor=0x0408 product=0xea02.
This is my lsusb
Bus 005 Device 002: ID 0b05:b700 ASUSTek Computer, Inc.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 010: ID 058f:6335 Alcor Micro Corp.
Bus 001 Device 005: ID 04f2:b071 Chicony Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 010: ID 0408:ea02 Quanta Computer, Inc.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c521 Logitech, Inc. MX620 Laser Cordless Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

but modprobe will be failed
-->like this
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/blacklist.backup, it will be ignored in a future release.
FATAL: Module usbserial not found.

Thanks

2009/4/28 10:57 | 147a3 1cc68 a6186 dd696
應用擴展 工具箱
akila.claymore@gmail.com
回覆: NU MU-Q101 3.5G無線網卡
Anon:akila.claymore@gmail.com
經過漫長的實驗
Ubuntu 9.04
Kernel 2.6.28.11 不支援usbserial 無線抓的到
Kernel 2.6.30.020630rc1 支援usbserial 無線抓不到 xorg效能很差

Q101在支援的kernel下
你可以先安裝gkxdatacard.deb
重開機
lsusb | grep Qu
檢查他是否如下面一樣
Bus 003 Device 010: ID 0408:ea02 Quanta Computer, Inc.
一樣的話
檢查ttyUSB
ls /dev | grep ttyUSB
sudo wvdialconf
sudo wvdial
這樣他就撥接成功囉

======
EEE PC 1000
OS Ubuntu 9.04 x86

2009/4/28 12:07 | 147a3 1cc68 a6186 dd696
應用擴展 工具箱
Tick
回覆: NU MU-Q101 3.5G無線網卡
Anon:Tick
我昨天 upgrade 到 9.04 試了一下

用起來還蠻正常的,小修了一下 q101wireless

Filename: /usr/local/bin/q101wireless

#!/bin/sh
while ! [ $usbPort ];do
echo "Try to set usbPort"
usbPort=`lsusb | grep Quanta | cut -d ' ' -f 2 | sed 's/0//g'`
sleep 1
done
echo "USB device port on: usb$usbPort"
sudo rmmod usbserial
sudo modprobe usbserial vendor=0x0408 product=0xea02
sudo usb_modeswitch
echo "Switch usb mode"
echo " "
sleep 3
if ! [ -e /dev/ttyUSB1 ];then
echo "Suspend Usb storage device"
echo " "
echo "suspend" | sudo tee /sys/bus/usb/devices/usb$usbPort/$usbPort-1/power/level
echo "Lock the usb device"
echo " "
fi
sleep 15
STARTPORT=`dmesg | awk '{a = match($0, "USB Serial support registered for GSM modem");if (a != 0 ) {CHECK=1};if (CHECK!=0) {m=match($0,"converter now attached to");if (m!=0){STARTINGPORT=substr($11, 7);CHECK=0}}} END{if (STARTINGPORT) {print STARTINGPORT}}'`
if [ $STARTPORT ];then
let CONTROLPORT=$STARTPORT+2
echo "AT+CFUN=1" | tickminicom_x86 /dev/ttyUSB${STARTPORT}
sleep 3
echo "wvdial ppp dialing...."
echo " "
sed "s,Modem = /dev/ttyUSB0,Modem = /dev/ttyUSB${STARTPORT}," /etc/wvdial.conf > /tmp/wvdial.conf
wvdial -C /tmp/wvdial.conf
else
echo "Cannot dial out."
fi

2009/4/29 10:56 | 327ac a5983 36696 788b0
應用擴展 工具箱
Tick
回覆: NU MU-Q101 3.5G無線網卡
Anon:Tick
This seems had been built in ubuntu latest kernel.
Therefore you cannot modprobe it.

In my test, it does not effect too much.
Actually you can ignore this error message. IMHO

2009/4/29 13:52 | 926d6 82a2d 4c936 bd244
應用擴展 工具箱
Tick
回覆: NU MU-Q101 3.5G無線網卡
Anon:Tick
Sorry 再修掉一些小 bug. 和大家分享

Filename: /usr/local/bin/q101wireless

#!/bin/sh
while ! [ $usbPort ];do
echo "Try to set usbPort"
usbPort=`lsusb | grep Quanta | cut -d ' ' -f 2 | sed 's/0//g'`
sleep 1
done
echo "USB device port on: usb$usbPort"
sudo rmmod usbserial
sudo modprobe usbserial vendor=0x0408 product=0xea02
sudo usb_modeswitch
echo "Switch usb mode"
echo " "
sleep 3
if ! [ -e /dev/ttyUSB1 ];then
echo "Suspend Usb storage device"
echo " "
echo "suspend" | sudo tee /sys/bus/usb/devices/usb$usbPort/$usbPort-1/power/level
echo "Lock the usb device"
echo " "
fi
sleep 15
STARTPORT=`dmesg | awk '{a = match($0, "configuration #1 chosen from 1 choic");if (a != 0 ) {CHECK=1};if (CHECK!=0) {m=match($0,"converter now attached to");if (m!=0){STARTINGPORT=substr($11, 7);CHECK=0}}} END{if (STARTINGPORT) {print STARTINGPORT}}'`
if [ $STARTPORT ];then
let CONTROLPORT=$STARTPORT+2
echo "AT+CFUN=1" | tickminicom_x86 /dev/ttyUSB${CONTROLPORT}
sleep 3
echo "wvdial ppp dialing...."
echo " "
sed "s,Modem = /dev/ttyUSB0,Modem = /dev/ttyUSB${STARTPORT}," /etc/wvdial.conf > /tmp/wvdial.conf
wvdial -C /tmp/wvdial.conf
else
echo "Cannot dial out."
fi

2009/4/29 14:46 | 9b5f2 64f21 ca0c6 1dfaf
應用擴展 工具箱
akila.claymore@gmail.com
回覆: NU MU-Q101 3.5G無線網卡
Anon:akila.claymore@gmail.com
這是沒有用minicom等軟體的方法
自己試是成功,因為我有試插不同的usb-port他要suspend的位置會重 $usbPort-1 >> $usbPort-2
我貼我的請大家試試看 修改自Tick大大的不知道好不好用


#!/bin/sh
while ! [ $usbPort ];do
echo "Try to set usbPort"
usbPort=`lsusb | grep Quanta | cut -d ' ' -f 2 | sed 's/0//g'`
sleep 1
done
sleep 5
usbPortN=`sudo ls /sys/bus/usb/devices/usb$usbPort/ | grep $usbPort | sed -n '2p'`
echo "USB device port on: usb$usbPort"
sudo rmmod usbserial
sudo modprobe usbserial vendor=0x0408 product=0xea02
sudo usb_modeswitch
echo "Switch usb mode"
echo " "
if ! [ -e /dev/ttyUSB1 ];then
echo "Suspend Usb storage device"
echo " "
echo "suspend" | sudo tee /sys/bus/usb/devices/usb$usbPort/$usbPortN/power/level
echo "Lock the usb device"
echo " "
fi
sleep 3

#STARTPORT=`dmesg | awk '{a = match($0, "USB Serial support registered for GSM modem");if (a != 0 ) {CHECK=1};if (CHECK!=0) {m=match($0,"converter now attached to");if (m!=0){STARTINGPORT=substr($11, 7);CHECK=0}}} END{if (STARTINGPORT) {print STARTINGPORT}}'`
#if [ $STARTPORT ];then
# let CONTROLPORT=$STARTPORT+2
# echo "AT+CFUN=1" | tickminicom_x86 /dev/ttyUSB${STARTPORT}
# sleep 3
# echo "wvdial ppp dialing...."
# echo " "
# sed "s,Modem = /dev/ttyUSB0,Modem = /dev/ttyUSB${STARTPORT}," /etc/wvdial.conf > /tmp/wvdial.conf
# wvdial -C /tmp/wvdial.conf
#else
# echo "Cannot dial out."
#fi

#add line
ttyDetect=""
until [ $ttyDetect != ""];do
echo "Try to detect /dev/ttyUSB"
#usbPort=`lsusb | grep Quanta | cut -d ' ' -f 2 | sed 's/0//g'`
ttyDetect=`ls /dev/ | grep ttyUSB`
sleep 1
done
#ttyDetect=`ls /dev/ | grep ttyUSB`
#echo "$ttyDetect"
#if [$ttyDetect != ""];then
sudo wvdialconf
sleep 5
nl /etc/wvdial.conf | sed "s,ATZ,AT+CFUN=1," > /sdb/wvdial.conf.tmp
#sudo mv /etc/wvdial.conf.tmp /etc/wvdial.conf
sudo cp /sdb/wvdial.conf.tmp /etc/wvial.conf
sleep 1
sudo wvdial
#fi

2009/4/29 20:56 | 4bb23 fccc0 3c82f 79484
應用擴展 工具箱
akila.claymore@gmail.com
回覆: NU MU-Q101 3.5G無線網卡
Anon:akila.claymore@gmail.com
上面的有問題~Sorry!!

2009/4/29 21:32 | 75878 66430 9b1e1 2165b
應用擴展 工具箱
akila.claymore@gmail.com
回覆: NU MU-Q101 3.5G無線網卡
Anon:akila.claymore@gmail.com
不死心繼續玩
1.先將以內容貼到
sudo gedit /etc/wvdial.conf 裡面

[Dialer Defaults]
Init1 = AT+CFUN=1
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = ATQ0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1, "IP","Internet"
Password = passwd
Check Def Route = on
Phone = *99#
Modem Type = Analog Modem
Stupid Mode = 1
Baud = 9600
New PPPD = yes
Dial Command = ATDT
Dial Attempts = 3
Modem = /dev/ttyUSB0
ISDN = 0
Username = username

2. 新增q101 修改自Tick
sudo gedit /usr/local/bin/q101
sudo chmod +x /usr/local/bin/q101
sudo chown user /usr/local/bin/q101
/usr/local/bin/q101 內容
#!/bin/sh
while ! [ $usbPort ];do
echo "Try to set usbPort"
usbPort=`lsusb | grep Quanta | cut -d ' ' -f 2 | sed 's/0//g'`
sleep 1
done
sleep 5
usbPortN=`sudo ls /sys/bus/usb/devices/usb$usbPort/ | grep $usbPort | sed -n '2p'`
echo "USB device port on: usb$usbPort"
sudo rmmod usbserial
sudo modprobe usbserial vendor=0x0408 product=0xea02
sudo usb_modeswitch
echo "Switch usb mode"
echo " "
if ! [ -e /dev/ttyUSB1 ];then
echo "Suspend Usb storage device"
echo " "
echo "suspend" | sudo tee /sys/bus/usb/devices/usb$usbPort/$usbPortN/power/level
echo "Lock the usb device"
echo " "
fi
sleep 3

ttyDetect=""

until [ "$ttyDetect" != "" ];do
echo "Try to detect /dev/ttyUSB"
echo "."
ttyDetect=`ls /dev/ | grep ttyUSB | sed -n '1p' | sed 's,ttyUSB,,' `
echo "$ttyDetect"
sleep 1
done

sudo wvdialconf
sleep 1
cat /etc/wvdial.conf | sed "s,ATZ,AT+CFUN=1," > ~/wvdial.conf.tmp
sudo cp ~/wvdial.conf.tmp /etc/wvdial.conf
sleep 1
sudo wvdial

2009/4/29 22:33 | 75878 66430 9b1e1 2165b
應用擴展 工具箱
回覆: NU MU-Q101 3.5G無線網卡
會員一級
註冊日期:
2008/10/30 13:25
所屬群組:
已註冊使用者
等級: 3
HP : 0 / 68
MP : 8 / 1808
EXP: 73
離線
Akila兄真是厲害又有耐心啊!

2009/4/30 1:16
應用擴展 工具箱

« 1 2 (3) 4 5 »

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.