USBタイプモバイルルーター(ドングル)
(Huawei E8231)と Raspberry pi を使ってネット接続を考えています。
SIMカードはLINE SIMを入れています。
参考サイト:http://illmaticindustries.com/?p=535
pi@raspberrypi:~ $ lsusb Bus 001 Device 009: ID 12d1:14db Huawei Technologies Co., Ltd. Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 009: ID 12d1:14db Huawei Technologies Co., Ltd.
と認識されています。
CDドライブとして認識されているとかでイジェクトをしてみました。
pi@raspberrypi:~ $ sudo usb_modeswitch -v 12d1 -V 12d1 -p 14db -P 14db -M "55534243123456780000000000000011062000000101000100000000000000" Look for target devices ... product ID matched Found devices in target mode or class (1) Look for default devices ... product ID matched Found devices in default mode (1) Access device 009 on bus 001 Current configuration number is 1 Use interface number 0 Error: message endpoint not given or found. Abort
エラーが出たので検索してみるとこちらのページに辿り着きました。
http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=4&t=1226
IDを確かめろと行っているのでしょうか?
こちらのコマンドを入力したまでは良いのですが、IDが同じ(ID 12d1:14db)なのでこのあとどうすれば良いのか分からなくなってしまいました。
pi@raspberrypi:~ $ lsusb -v -d 12d1:14db Bus 001 Device 009: ID 12d1:14db Huawei Technologies Co., Ltd. Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 2 Communications bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x12d1 Huawei Technologies Co., Ltd. idProduct 0x14db bcdDevice 1.02 iManufacturer 1 iProduct 2 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 71 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 2 Communications bInterfaceSubClass 6 Ethernet Networking bInterfaceProtocol 0 iInterface 5 CDC Header: bcdCDC 1.10 CDC Union: bMasterInterface 0 bSlaveInterface 1 CDC Ethernet: iMacAddress 7 (??) bmEthernetStatistics 0x00000000 wMaxSegmentSize 1514 wNumberMCFilters 0x0000 bNumberPowerFilters 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0010 1x 16 bytes bInterval 9 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 10 CDC Data bInterfaceSubClass 6 bInterfaceProtocol 0 iInterface 6 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0
ls /dev/tty* を実行した時に USB* などが出てこないことも問題だと感じています。
pi@raspberrypi:~ $ ls /dev/tty* /dev/tty /dev/tty16 /dev/tty24 /dev/tty32 /dev/tty40 /dev/tty49 /dev/tty57 /dev/tty8 /dev/tty0 /dev/tty17 /dev/tty25 /dev/tty33 /dev/tty41 /dev/tty5 /dev/tty58 /dev/tty9 /dev/tty1 /dev/tty18 /dev/tty26 /dev/tty34 /dev/tty42 /dev/tty50 /dev/tty59 /dev/ttyAMA0 /dev/tty10 /dev/tty19 /dev/tty27 /dev/tty35 /dev/tty43 /dev/tty51 /dev/tty6 /dev/ttyprintk /dev/tty11 /dev/tty2 /dev/tty28 /dev/tty36 /dev/tty44 /dev/tty52 /dev/tty60 /dev/tty12 /dev/tty20 /dev/tty29 /dev/tty37 /dev/tty45 /dev/tty53 /dev/tty61 /dev/tty13 /dev/tty21 /dev/tty3 /dev/tty38 /dev/tty46 /dev/tty54 /dev/tty62 /dev/tty14 /dev/tty22 /dev/tty30 /dev/tty39 /dev/tty47 /dev/tty55 /dev/tty63 /dev/tty15 /dev/tty23 /dev/tty31 /dev/tty4 /dev/tty48 /dev/tty56 /dev/tty7
どうすれば ls /dev/tty* を実行した時に Huawei E8231を確認することができるのでしょうか?
分かり方らいらっしゃいましたらご教示頂けますと幸いです。
どうぞよろしくお願いいたします。
ーーーーーー追記2017年3月12日ーーーーーーーー
pi@raspberrypi:~ $ sudo usb_modeswitch -v 12d1 -V 12d1 -p 14db -P 1f01 -M "55534243123456780000000000000011062000000101000100000000000000" Look for target devices ... No devices in target mode or class found Look for default devices ... product ID matched Found devices in default mode (1) Access device 009 on bus 001 Current configuration number is 1 Use interface number 0 Error: message endpoint not given or found. Abort
あなたの回答
tips
プレビュー