KDDI DATA07は、「WIN HIGH SPEED」に対応したUSB型のデータ通信端末です。
従来のDebian 6.0(Squeeze)環境に加え、先日β公開されたDebian 7.0(Wheezy)環境での検証も行います。
OBDN技術ブログによる動作検証は、該当するデバイスの動作を保証およびサポートを行うものではありません。
内容に関するご指摘などありましたら、ブログ記事の担当までご連絡下さい。
内容に関するご指摘などありましたら、ブログ記事の担当までご連絡下さい。
<検証環境>
Debian 6.0 Squeeze
OpenBlocks AX3/4 kernel: 3.0.6
OpenBlocks A6 kernel: 2.6.31.8
Debian 7.0 Wheezy
OpenBlocks AX3/4 kernel: 3.2.36
OpenBlocks A6 kernel: 3.2.36
OpenBlocks AX3/4 kernel: 3.0.6
OpenBlocks A6 kernel: 2.6.31.8
Debian 7.0 Wheezy
OpenBlocks AX3/4 kernel: 3.2.36
OpenBlocks A6 kernel: 3.2.36
<使用機器>
OpenBlocks AX3
OpenBlocks A6
KDDI DATA07 USBデータ通信端末
OpenBlocks A6
KDDI DATA07 USBデータ通信端末
1. 対応ドライバと事前準備
本デバイスは、HUAWEI E398で、多くのHUAWEIのデバイスはusbserialデバイスおよびusb-strageデバイスの複合デバイスとして認識されます。
・AX3で使用する場合
AX3は、Debian 6.0パッケージにて提供される3.0.6カーネル/Debian 7.0パッケージにて提供される3.2.36カーネルのどちらにおいても、特に設定など必要なく認識されます。
dmesgでは以下の様に出力されます。
usb 1-1: USB disconnect, device number 2
usb 1-1: new high-speed USB device number 3 using ehci_marvell
usb 1-1: New USB device found, idVendor=12d1, idProduct=1506
usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
usb 1-1: Product: HUAWEI Mobile
usb 1-1: Manufacturer: Huawei Technologies
scsi4 : usb-storage 1-1:1.2
scsi5 : usb-storage 1-1:1.3
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
scsi 4:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
scsi 5:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
sd 5:0:0:0: Attached scsi generic sg1 type 0
sd 5:0:0:0: [sdb] Attached SCSI removable disk
sr0: scsi-1 drive
sr 4:0:0:0: Attached scsi CD-ROM sr0
sr 4:0:0:0: Attached scsi generic sg2 type 5
usb 1-1: new high-speed USB device number 3 using ehci_marvell
usb 1-1: New USB device found, idVendor=12d1, idProduct=1506
usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
usb 1-1: Product: HUAWEI Mobile
usb 1-1: Manufacturer: Huawei Technologies
scsi4 : usb-storage 1-1:1.2
scsi5 : usb-storage 1-1:1.3
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
scsi 4:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
scsi 5:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
sd 5:0:0:0: Attached scsi generic sg1 type 0
sd 5:0:0:0: [sdb] Attached SCSI removable disk
sr0: scsi-1 drive
sr 4:0:0:0: Attached scsi CD-ROM sr0
sr 4:0:0:0: Attached scsi generic sg2 type 5
・A6 で使用する場合
(1)Debian 6.0/kernel 2.6.31における設定
A6で使用する場合は、Debian 6.0パッケージにて提供される2.6.31カーネルのusbserial/optionモジュールではデバイスを認識しないため、modprobeコマンドによりデバイスIDを指定して組み込む必要があります。
# modprobe usbserial vendor=0x12d1 product=0x1506
起動時に組み込む場合は、/etc/modulesに、以下の記述を追加してください。
usbserial vendor=0x12d1 product=0x1506
dmesgは以下の様に出力されます。
モジュール組み込み前
usb 1-1.3: new high speed USB device using ehci_marvell and address 5
usb 1-1.3: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
usb 1-1.3: USB disconnect, address 5
usb 1-1.3: new high speed USB device using ehci_marvell and address 6
usb 1-1.3: configuration #1 chosen from 1 choice
scsi6 : SCSI emulation for USB Mass Storage devices
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
scsi 7:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
sd 7:0:0:0: Attached scsi generic sg1 type 0
scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
sd 7:0:0:0: [sdb] Attached SCSI removable disk
usb-storage: device scan complete
sr0: scsi-1 drive
sr 6:0:0:0: Attached scsi CD-ROM sr0
sr 6:0:0:0: Attached scsi generic sg2 type 5
usb-storage: device scan complete
usb 1-1.3: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
usb 1-1.3: USB disconnect, address 5
usb 1-1.3: new high speed USB device using ehci_marvell and address 6
usb 1-1.3: configuration #1 chosen from 1 choice
scsi6 : SCSI emulation for USB Mass Storage devices
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
scsi 7:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
sd 7:0:0:0: Attached scsi generic sg1 type 0
scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
sd 7:0:0:0: [sdb] Attached SCSI removable disk
usb-storage: device scan complete
sr0: scsi-1 drive
sr 6:0:0:0: Attached scsi CD-ROM sr0
sr 6:0:0:0: Attached scsi generic sg2 type 5
usb-storage: device scan complete
モジュール組み込み後
# modprobe usbserial vendor=0x12d1 product=0x1506
# dmesg
:
:
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbserial_generic 1-1.3:1.0: generic converter detected
usb 1-1.3: generic converter now attached to ttyUSB0
usbserial_generic 1-1.3:1.1: generic converter detected
usb 1-1.3: generic converter now attached to ttyUSB1
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
# dmesg
:
:
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbserial_generic 1-1.3:1.0: generic converter detected
usb 1-1.3: generic converter now attached to ttyUSB0
usbserial_generic 1-1.3:1.1: generic converter detected
usb 1-1.3: generic converter now attached to ttyUSB1
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
(2)Debian 7.0(β)/kernel 3.2.36における設定
β版が提供されている、Debian 7.0パッケージにて提供される3.2.36カーネルでは特に設定などは必要ありません。
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
option 1-1.3:1.0: GSM modem (1-port) converter detected
sr0: scsi-1 drive
cdrom: Uniform CD-ROM driver Revision: 3.20
usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1.3:1.1: GSM modem (1-port) converter detected
sr 2:0:0:0: Attached scsi CD-ROM sr0
usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
sd 0:0:0:0: Attached scsi generic sg0 type 0
sr 2:0:0:0: Attached scsi generic sg1 type 5
sd 3:0:0:0: Attached scsi generic sg2 type 0
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
option 1-1.3:1.0: GSM modem (1-port) converter detected
sr0: scsi-1 drive
cdrom: Uniform CD-ROM driver Revision: 3.20
usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1.3:1.1: GSM modem (1-port) converter detected
sr 2:0:0:0: Attached scsi CD-ROM sr0
usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
sd 0:0:0:0: Attached scsi generic sg0 type 0
sr 2:0:0:0: Attached scsi generic sg1 type 5
sd 3:0:0:0: Attached scsi generic sg2 type 0
デバイス名は、/dev/ttyUSB0~/dev/ttyUSB1が出てきますが、
pppdによる接続の場合は、/dev/ttyUSB0を使用します。
なお、本デバイスに関しては、lsusbの結果として、12d1:1506が出力されていますが、webからの情報では、0x1446が帰ってくる場合があるようで、その場合はusb_modeswitchによる対策が必要になります。(今回使用したデバイスでは必要ありませんでした)
# lsusb
Bus 001 Device 006: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Bus 001 Device 006: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
2. 接続方法
接続は、他のモバイル通信アダプタと同様、pppconfigで設定を行います。
pppconfigをインストールします。
# aptitude install pppconfig
pppconfigの設定は以下の通りです。
Provider Name | au |
Configure Nameservers (DNS) | Dynamic |
Authentication Method for test | PAP |
User Name | アカウント名(*1) |
Password | パスワード(*1) |
Speed | 460800 |
Pulse or Tone | Tone |
Phone Number | * 99**24#(*2) |
Choose Modem Config Method | No |
Select Modem Port | Manual |
Manually Select Modem Port | /dev/ttyUSB0 |
(*1) プロバイダより提供されたアカウント名、パスワードを使用してください。
(*2) プロバイダより提供された番号を使用してください。
eth0や他のインタフェースが有効になっている場合は、/etc/ppp/peers/auに、以下の行を加えることにより、defaultrouteが変更されます。
replacedefaultroute
上記設定により、外部のサーバにアクセス出来ることを確認しました。
# pon au
# ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:xxx.xxx.xxx.xx P-t-P:xxx.xx.xx.xxx Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:198 (198.0 B) TX bytes:138 (138.0 B)
# ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:xxx.xxx.xxx.xx P-t-P:xxx.xx.xx.xxx Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:198 (198.0 B) TX bytes:138 (138.0 B)
ftpによるダウンロード例
# ftp ftp.plathome.co.jp
Connected to download.plathome.co.jp.
220 ProFTPD 1.3.3a Server (ftp.plathome.co.jp) [::ffff:202.221.227.237]
Name (ftp.plathome.co.jp:root): anonymous
331 Anonymous login ok, send your complete email address as your password
Password:
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd pub/OBSAX3
250 CWD command successful
ftp> get debian_license.txt
local: debian_license.txt remote: debian_license.txt
200 PORT command successful
150 Opening BINARY mode data connection for debian_license.txt (797885 bytes)
226 Transfer complete
797885 bytes received in 4.24 secs (183.8 kB/s)
ftp>
Connected to download.plathome.co.jp.
220 ProFTPD 1.3.3a Server (ftp.plathome.co.jp) [::ffff:202.221.227.237]
Name (ftp.plathome.co.jp:root): anonymous
331 Anonymous login ok, send your complete email address as your password
Password:
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd pub/OBSAX3
250 CWD command successful
ftp> get debian_license.txt
local: debian_license.txt remote: debian_license.txt
200 PORT command successful
150 Opening BINARY mode data connection for debian_license.txt (797885 bytes)
226 Transfer complete
797885 bytes received in 4.24 secs (183.8 kB/s)
ftp>
0 件のコメント:
コメントを投稿