I have been trying set up USB modem on my pi (Raspberry Pi 3 Model B+) but have not been successful. The modem in itself is recognized - lsusb shows the entry for the device - but I cant't get it connected to the Internet. I have a SIM card with a valid contract in the modem so that is not the problem. I would appreciate any help or advice on this.
I loosely followed this article, which ends with successfully using the exact same modem. But it didn't quite work out for me.
https://www.niandc.co.jp/sol/tech/date20151005_512.php
1. Checking USB device mode
First, My modem is probably in the modem mode, not the storage device mode. The id is the same 1004:6326 shown in the article.
2. modprobe command
Next is modprobe command. At first, /dev/tty does not have ttyUSB* files, but after running 'sudo modprobe' command, the following 4 files were created in /dev/.
crw-rw---- 1 root dialout 188, 0 Oct 10 07:07 /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 1 Oct 10 07:03 /dev/ttyUSB1 crw-rw---- 1 root dialout 188, 2 Oct 10 07:03 /dev/ttyUSB2 crw-rw---- 1 root dialout 188, 3 Oct 10 07:03 /dev/ttyUSB3
This step looks the same with the article above and is probably working fine. Also this behavior is consistent; every time I boot the rpi there are no /dev/ttyUSB* files and executing the modprobe command always creates four ttyUSB files above.
3. cu and wvdial
Next I tried two things but neither worked.
3-a. cu command
In the article, 'cu' command is used to confirm the connection so I tried it. I couldn't find which ttyUSB file maps to the modem, so I ran cu on all 4 ttyUSB? files.
cu command on different /dev/ttyUSB? files produces different results;
sudo cu -l ttyUSB0
→ Says 'Line in use and ttyUSB2'
sudo cu -l ttyUSB1
sudo cu -l ttyUSB3
→ Both print 'Connected.' and freeze
sudo cu -l ttyUSB2
→ Prints error messages below:
cu: Stale lock /var/lock/LCK..ttyUSB2 held by process 6807 created 2018-10-11 13:20:14 cu: remove (/var/lock/LCK..ttyUSB2): Operation not permitted cu: /dev/ttyUSB2: Line in use
3-b. wvdial
sudo wvdial on /dev/ttyUSB0 to /dev/ttyUSB3 all results in '--> Modem not responding.'
Update (Oct. 21, 2018)
As I stated in the comment, I should have checked the compatibility more thoroughly. Maybe there is not point anymore but here is lsusb and wvdial.conf
lsusb'Device 005' is the USB modem
Bus 001 Device 005: ID 1004:6327 LG Electronics, Inc. Bus 001 Device 004: ID 0424:7800 Standard Microsystems Corp. Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubwvdial.conf
[Dialer Defaults] Modem = /dev/ttyUSB3 ISDN = 0 Modem Type = Analog Modem Baud = 460800 Init1 = ATX3 Init2 = AT&F Q0 V1 E0 S0=0 &C1 &D2 +FCLASS=0 Init3 = at+cgdcont=1,"IP","i-aeonmobile.com" Phone = *99# Dial Attempts = 5 Stupid Mode = on Dial Command = ATDT Idle Seconds = 7200 Ask Passwords = 0 Password = "0000" Username = "user" Carrier Check = on New PPPD = 1 Auto DNS = on
Connected
, you are in the AT command interpreter. You should be able to typeATI
and get some info.lsusb
? Also post the content ofetc/wvdial.conf:
and make sure it readsModem = /dev/ttyUSB1
or3
. Then once you have connected message you need to fire up wvdial. and show all commands you used. (and the output)