Ubuntu 8.04でD12LCの接続
以下を参照させてもらって接続した。
Ubuntu日本語フォーラム / EMOBILE D12LCでネット接続するには?
PC接続時にD12LCも接続してあること。
http://www.draisberghof.de/usb_modeswitch/ ←ここからソースを取得
# wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.5.tar.bz2
# bzcat usb_modeswitch-0.9.5.tar.bz2 | tar xvf -
# cd usb_modeswitch-0.9.5
# apt-get install libusb-dev ←libusb-devこれがないとコンパイルが通らない1
# gcc -l usb -o usb_modeswitch usb_modeswitch.c
# cp usb_modeswitch /usr/local/sbin/
# cp usb_modeswitch.conf /usr/local/etc
# lsusb ←usbの確認
# vi /usr/local/etc/usb_modeswitch.conf
#コメントにする
#######################################################
# Option GlobeSurfer Icon (aka "Vodafone EasyBox")
#
# The message SHOULD be the same for all Option devices
;DefaultVendor= 0x05c6
;DefaultProduct= 0x1000
;TargetVendor= 0x0af0
;TargetProduct= 0x6600
;MessageEndpoint=0x05
;MessageContent="55534243123456780000000000000601000000000000000000000000000000"
#######################################################
# 追加
#######################################################
# Emobile D12LC
#
DefaultVendor= 0x1c9e
DefaultProduct= 0x9101
TargetVendor= 0x1c9e
TargetProduct= 0x9104
MessageEndpoint=0x01
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
# cp /usr/local/etc/usb_modeswitch.conf /etc/usb_modeswitch.conf
# modprobe usbserial vendor=0x1c9e product=0x9104
# vi /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
modprobe usbserial vendor=0x1c9e product=0x9104
exit 0
# usb_modeswitch
b_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 0.9.5 (C) Josua Dietze 2008
* Works with libusb 0.1.12 and probably other versions
Looking for target devices
No target device found
Looking for default devices
Found default devices (1)
Prepare switching, accessing latest device
Looking for active default driver to detach it
OK, driver found ("usb-storage")
OK, Driver "usb-storage" successfully detached
Setting up communication with device
Trying to send the message
OK, message successfully sent.
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye
# ls /dev/ttyUSB
ttyUSB0 ttyUSB1 ttyUSB2
# apt-get install gnome-ppp
画面の「インターネット」→「GNOME PPP」
Username ←em
Password ←em
Remember password ←check
Phone number ←*99***1#
「Setup」→「Modem」
Device ←/dev/ttyUSB2
Type ←Analog Modem
Speed ←460800
Phone Line ←Tone
Volume ←off
「Init Settings..」
init2 ←ATS0=0
「Setup」→「Options」
Minimize ←check
Dock in notification area ←check
Auto reconnect ←check
Abort connection if no dialtone ←check
Check default route ←check
Lgnore terminal strings (stupid mode) ←check
「Connect」
| 固定リンク





コメント
ありがとうございます。読ませていただきました。
ちょっとやってみましたが、接続を持続できませんでした。すぐに切断されてしまいます。
投稿: kagoya | 2009年2月21日 (土) 06時53分
コメントありがとうございます。
networkingにより他のネットワーク接続が有効になっていたりしませんでしょうか。
# sysv-rc-conf --list networking
# sysv-rc-conf networking off
こちらの環境ではすぐ切れることはないのですみませんがこれ以上は分かりません。
投稿: kenken | 2009年2月21日 (土) 16時07分