UPTPTW 第10次聚會 [論壇 - Ubuntu 與自由軟體相關活動版]


正在瀏覽:   1 名遊客


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

« 1 2 (3) 4 »


回覆: UPTPTW 第10次聚會
會員四級
註冊日期:
2010/8/12 15:54
所屬群組:
已註冊使用者
等級: 18
HP : 0 / 443
MP : 135 / 16362
EXP: 72
離線
在忠孝新生了,待會見
行動網卡我也沒裝過,等下再看看吧

2011/2/16 18:27
應用擴展 工具箱
回覆: UPTPTW 第10次聚會
會員三級
註冊日期:
2009/8/27 21:33
所屬群組:
已註冊使用者
等級: 13
HP : 0 / 312
MP : 69 / 12402
EXP: 48
離線
poloshiao 寫到:
你的 usb 碟 可能 內預裝了 模擬 CD 的 firmware
所以 你剛插入 它就 辨識爲 CD-Rom
因此 唯讀 且 無法寫入
這在 windows 是沒問題 因爲 windows 會去讀 它的 *.exe 自動執行檔
但是 ubuntu 沒辦法 讀 它的 *.exe 自動執行檔
所以 ubuntu 需要 安裝 USB_ModeSwitch, 改爲 辨識 它爲 modem
...

失敗了...
好不容易裝了 USB_ModeSwitch,
很奇怪的是連 CLI 中下 usb-modeswitch -h 都說沒這個命令
套件管理員中明明就看得到啊
手動退出那個光碟片也沒有其他效果
好像這一款網卡沒在支援名單裡面耶

2011/2/16 22:37
應用擴展 工具箱
回覆: UPTPTW 第10次聚會
會員二級
註冊日期:
2009/10/15 23:13
所屬群組:
已註冊使用者
等級: 5
HP : 0 / 102
MP : 13 / 4042
EXP: 11
離線
剛才聚會時有人裝不了 Docky ,似乎是因為那時 tw.archive.ubuntu.com 壞掉了 XD

2011/2/16 23:07
應用擴展 工具箱
回覆: UPTPTW 第10次聚會
會員四級
註冊日期:
2010/8/12 15:54
所屬群組:
已註冊使用者
等級: 18
HP : 0 / 443
MP : 135 / 16362
EXP: 72
離線
自由車自由人 寫到:
失敗了...
好不容易裝了 USB_ModeSwitch,
很奇怪的是連 CLI 中下 usb-modeswitch -h 都說沒這個命令
套件管理員中明明就看得到啊
手動退出那個光碟片也沒有其他效果
好像這一款網卡沒在支援名單裡面耶


http://smallhose.blogspot.com/2009/12/ubuntud-link-dwm-156-375g.html

這個網頁的方式 試過沒?

2011/2/16 23:30
應用擴展 工具箱
回覆: UPTPTW 第10次聚會
會員五級
註冊日期:
2008/6/15 2:56
所屬群組:
已註冊使用者
等級: 38
HP : 0 / 945
MP : 757 / 40866
EXP: 81
離線
usb_modeswitch

2011/2/16 23:47
應用擴展 工具箱
回覆: UPTPTW 第10次聚會
會員三級
註冊日期:
2009/8/27 21:33
所屬群組:
已註冊使用者
等級: 13
HP : 0 / 312
MP : 69 / 12402
EXP: 48
離線
poloshiao 寫到:
所以 ubuntu 需要 安裝 USB_ModeSwitch, 改爲 辨識 它爲 modem
...
試試看 有問題 再貼文

辛辛苦苦搞了三個晚上,總結一下目前的狀態

首先終於發現命令打錯了
usb-modeswitch -h 應該改為
usb_modeswitch -h
就差底線變成減號啊...

接下來終於用 lsusb 發現 product ID 跟網路上的不一樣
當然呼叫不到
我下的命令依序如下
# lsusb
# usb_modeswitch -v 0x07d1 -p 0xa804
# lsusb
# modprobe usbserial vendor=0x07d1 product=0xa804
# echo AT+CPIN=**** > /dev/ttyUSB0 (我有加上 PIN 密碼)

在做了 modprobe 之後終於出現 /dev/ttyUSB0 了
可是我用 wvdial 跟 vodafone-mobile-connect 都還是不能撥號
沒法連線

另外還有一件奇怪的事情
如果把網卡裡面附的 Linux 版驅動程式灌上去
那麼插上網卡就不會出現那個虛擬的 USB 光碟
還會自動出現 /dev/ttyUSB0
這時候使用 lsusb
會看到這支網卡的 product ID 竟然變成 0x7e11
真詭異!

另外,我在命令列裡執行他的網卡管理程式
會回應說找不到一個 qt 的檔案 (qt????????.so.3 什麼的)
可是我用 whereis 去找,確實存在一個 amd64 的版本
連結也有做啊, Why?

2011/2/18 0:01
應用擴展 工具箱
回覆: UPTPTW 第10次聚會

註冊日期:
2009/12/6 10:32
所屬群組:
已註冊使用者
等級: 71
HP : 1053 / 1756
MP : 4456 / 68350
EXP: 24
離線
# modprobe usbserial vendor=0x07d1 product=0xa804
# echo AT+CPIN=**** > /dev/ttyUSB0 (我有加上 PIN 密碼)

1. sudo gedit /etc/network/interfaces
auto lo
iface lo inet loopback
只留這兩行
其它都不要留 (有 # 的例外)

2. sudo gedit /etc/NetworkManager/nm-system-settings.conf
managed=true
把 false 改成 true
其它不要該

重開機

看看 右上方 有沒有 一個 網路提示 ?

3. 這時 把 D-Link DWM-156 插上去 usb 插孔
大約 20 ~ 40 秒左右
網路提示 按右鍵 編輯連線 行動寬頻 會出現你的 手機連線名稱
如果沒有出現 手機連線名稱, 你按 加入 看看有沒有反應
按一下該手機連線名稱 輸入必要的設定資訊
按關閉
網路提示 按右鍵 就會有一個 行動寬頻 的選項 按一下
就會 開始 連上網

如果你是 先插着 再開機 開機後 就會自動連上網

以上是使用 network manager 管理上網
沒有用 WvDial

4. 如果 沒連上網 行動寬頻 插着時
ifconfig -a 看看 有沒有啓動 行動寬頻

5. 以上 是憑印象寫的 如果有錯誤訊息 請再貼文

2011/2/18 1:06
應用擴展 工具箱
回覆: UPTPTW 第10次聚會
會員一級
註冊日期:
2009/9/1 12:18
所屬群組:
已註冊使用者
等級: 1
HP : 0 / 15
MP : 2 / 598
EXP: 60
離線
請問之後會不會有假日的場次
平常日不住台北的話,就沒法參加到了

2011/2/19 5:04
應用擴展 工具箱
回覆: UPTPTW 第10次聚會
會員三級
註冊日期:
2009/8/27 21:33
所屬群組:
已註冊使用者
等級: 13
HP : 0 / 312
MP : 69 / 12402
EXP: 48
離線
poloshiao 寫到:
...2. sudo gedit /etc/NetworkManager/nm-system-settings.conf
managed=true
把 false 改成 true
其它不要該

重開機

看看 右上方 有沒有 一個 網路提示 ?

3. 這時 把 D-Link DWM-156 插上去 usb 插孔
...

依照你的說明試過了,為了減少問題,還關掉 PIN 密碼

# vi /etc/network/interfaces
auto lo
iface lo inet loopback

# /etc/NetworkManager/nm-system-settings.conf
[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

結果 Network Manager 完全沒感覺到網卡的存在
最後只好手動掛載:

# lsusb
Bus 002 Device 003: ID 0b05:1712 ASUSTek Computer, Inc. BT-183 Bluetooth 2.0+EDR adapter
Bus 002 Device 002: ID 09da:000a A4 Tech Co., Ltd Port Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 07d1:a804 D-Link System
Bus 001 Device 005: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive
Bus 001 Device 004: ID 0ac8:0321 Z-Star Microelectronics Corp. Vimicro generic vc0321 Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# usb_modeswitch -v 0x07d1 -p 0xa804

Looking for default devices ...
Found devices in default mode, class or configuration (1)
Accessing device 006 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
Vendor String: HSPA
Model String: USB SCSI CD-ROM
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: D-Link,Incorporated
Product: D-Link WCDMA Technologies MSM
Serial No.: MF112DDLKD010000
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.

# lsusb
Bus 002 Device 003: ID 0b05:1712 ASUSTek Computer, Inc. BT-183 Bluetooth 2.0+EDR adapter
Bus 002 Device 002: ID 09da:000a A4 Tech Co., Ltd Port Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 07d1:a804 D-Link System
Bus 001 Device 005: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive
Bus 001 Device 004: ID 0ac8:0321 Z-Star Microelectronics Corp. Vimicro generic vc0321 Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# modprobe usbserial vendor=0x07d1 product=0xa804
# ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 2011-02-19 09:46 /dev/ttyUSB0

出現 ttyUSB0之後,打開 Network Manager 仍然抓不到網卡
嘗試改用 wvdial

# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

抓不到,手動製作設定檔

# vi /etc/wvdial.conf
[Dialer Defaults]
Phone = *99#
APN = internet
Username = username
Password = password
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
#Init1 = AT+CPIN=----
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem


# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.


Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://open.nit.ca/wiki/?WvDial

If you still have problems, send mail to <wvdial-list@lists.nit.ca>.

再度失敗之後,又把 D-Link 的驅動程式灌上去
這次灌好以後,插上網卡當然還是不會出現 USB 光碟
只是也沒出現 ttyUSB0
突然想到可以在奇怪的新 Product ID 試試 usbserial
結果居然變這樣

# lsusb
Bus 002 Device 003: ID 0b05:1712 ASUSTek Computer, Inc. BT-183 Bluetooth 2.0+EDR adapter
Bus 002 Device 002: ID 09da:000a A4 Tech Co., Ltd Port Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 010: ID 07d1:7e11 D-Link System
Bus 001 Device 004: ID 0ac8:0321 Z-Star Microelectronics Corp. Vimicro generic vc0321 Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# modprobe usbserial vendor=0x07d1 product=0x7e11
# ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 2011-02-20 10:11 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 2011-02-20 10:11 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 2011-02-20 10:11 /dev/ttyUSB2

三個 ttyUSB ??
而且這個時候 Network Manager 抓到行動網卡了
只是設定完之後,只能做撥號動作,卻沒辦法連接
再用wvdial

# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: D-Link CORPORATION
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: D-Link CORPORATION
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB1.
Modem configuration written to /etc/wvdial.conf.
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
# cat /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Password = password
Phone = *99#
APN = internet
Modem Type = Analog Modem
Stupid Mode = 1
Baud = 460800
Dial Command = ATDT
Modem = /dev/ttyUSB1
ISDN = 0
Username = username

# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

沒效,所以又把 /etc/wvdial.conf 裡的 ttyUSB1 改成 ttyUSB2

# vi /etc/wvdial.conf
# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
ERROR
--> Invalid dial command.
--> Disconnecting at Sun Feb 20 10:35:45 2011

還是不行...
唉...

2011/2/20 19:53
應用擴展 工具箱
回覆: UPTPTW 第10次聚會
會員三級
註冊日期:
2009/8/27 21:33
所屬群組:
已註冊使用者
等級: 13
HP : 0 / 312
MP : 69 / 12402
EXP: 48
離線
SWNT 寫到:
請問之後會不會有假日的場次
平常日不住台北的話,就沒法參加到了

嗯,原本領航小聚時間就是排在每個月第三個禮拜三
當初考量就是北台灣的地區性網聚而已
看看主辦人要怎麼考量吧...

2011/2/20 19:57
應用擴展 工具箱

« 1 2 (3) 4 »

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


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