2015年5月8日金曜日

Raspberry piでUSBモバイルモデム

L02C

lsusbコマンドでUSBのリストで確認
Bus 008 Device 003: ID 1004:618f LG Electronics, Inc.

sudo /sbin/modprobe usbserial vendor=0x1004 product=0x618f

sudo apt-get install wvdial
sudo apt-get install eject
sudo eject sr0
sudo modprobe usbserial vendor=0x1004 product=0x618f
sudo chmod 666 /dev/ttyUSB*

sudo nano /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = ATH

Modem Type = Analog Modem
Stupid Mode = yes
Baud = 576000
New PPPD = yes
APN = lte-d.ocn.ne.jp
Modem = /dev/ttyUSB3
ISDN = 0
Phone =  *99***1#
Password = puhd4*
Username = a75hswu4@one.ocn.ne.jp
Carrier Check = no

sudo wvdial


/etc/udev/rules.d/40-L02C.rules
ACTION=="add",ATTRS{idVendor}=="1004",ATTRS{idProduct}=="618f",RUN+="/sbin/modprobe usbserial vendor=0x1004 product=0x618"


0 件のコメント:

コメントを投稿

Translate