Mobile Broadband

New to Debian (Or Linux in general)? Ask your questions here!

Mobile Broadband

Postby vladimir » 2017-08-28 19:20

Hi,

I installed Debian 9.1.0 from debian-9.1.0-xfce-CD-1 and everything worked well until I unplugged my Huawei e3251s 2 USB modem. When I plugged it back Debian havent recognized it. First time I ran it normally, just added connection in Network Manager, found my provider, saved it and it worked. After that I have googled whole day and couldnt find any solution. Tried to reboot system, to plug out and plug in modem I dont know for how many times, also tried few things with that "nmcli" command, dont know what (sorry, Im new to Linux), tried something with WVDial and havent succeed too. Somehow Im stucked on that Network Manager and when I type "nmcli device" in terminal there isnt listed modem but it is mounted as /media/cdrom1. I dont know is that relevant, but I run on Biostar MCP6P-M2 motherboard and AMD Sempron CPU.

Any solution would be really helpful becouse I need this for my college.

Thanks.
vladimir
 
Posts: 9
Joined: 2017-08-28 18:26

Re: Mobile Broadband

Postby peter_irich » 2017-08-28 19:47

Try first use mmcli. Does ModemManager detect this modem?
Code: Select all
mmcli -L


Peter.
peter_irich
 
Posts: 1194
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Mobile Broadband

Postby vladimir » 2017-08-29 11:06

It says "No modem were found".
vladimir
 
Posts: 9
Joined: 2017-08-28 18:26

Re: Mobile Broadband

Postby vladimir » 2017-08-29 17:40

I think the problem is because Debian recognizes USB modem as storage device not as broadband, but I dont have idea how to solve it.
vladimir
 
Posts: 9
Joined: 2017-08-28 18:26

Re: Mobile Broadband

Postby peter_irich » 2017-08-29 17:51

When it is inserting is new device in /dev appeared or not?
Is it unlocked?

Peter.
peter_irich
 
Posts: 1194
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Mobile Broadband

Postby peter_irich » 2017-08-29 18:16

vladimir wrote:I think the problem is because Debian recognizes USB modem as storage device not as broadband, but I dont have idea how to solve it.

If it is appeared in /dev try send to it command
Code: Select all
AT^u2diag?

it is request current modes.
//Set for modem only mode
Code: Select all
AT^u2diag=0

See, for example,
http://m2msupport.net/m2msupport/forums/topic/huawei-usb-modem-at-commands/
or you can download pdf, but for other model, by searching
AT Command Interface Specification - Huawei

Peter.
peter_irich
 
Posts: 1194
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Mobile Broadband

Postby vladimir » 2017-08-29 18:55

There is lot of files in /dev and I dont know what these files are, but when I checked in File Manager at bottom line of file manager there is four new items created, so I guess it appears there. Tried
Code: Select all
AT^u2diag?
command and it says command not found.
vladimir
 
Posts: 9
Joined: 2017-08-28 18:26

Re: Mobile Broadband

Postby peter_irich » 2017-08-29 19:02

AT-commands are modem commands! You must enter them in communication program like minicom.
In minicom you will see the modem answer.
What devices are appeared in /dev when modem is inserting?
minicom is needed on tweaking on certain port.

Peter.
peter_irich
 
Posts: 1194
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Mobile Broadband

Postby vladimir » 2017-08-29 19:36

When I plug modem it creates four files: sr1, sg2, sg3 and sdb. I had to look which files are created with ls -la command so I noticed that folders: block, bsg, char and disk are created at the same time when I plugged modem so I guess it is modified and it is probably interesting.
vladimir
 
Posts: 9
Joined: 2017-08-28 18:26

Re: Mobile Broadband

Postby peter_irich » 2017-08-29 19:49

These folders are always present. To modem may correspond /dev/ttyUSBn or /dev/ttyACMn, check carefully.
Try command
Code: Select all
ls /dev/tty*

before and after modem inserting.
Or find other modem, because workable modem works immediately and without problems.

Peter.
peter_irich
 
Posts: 1194
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Mobile Broadband

Postby vladimir » 2017-08-29 20:09

There is /dev/tty, /dev/tty1, /dev/tty2, ... , /dev/tty63 and /dev/ttyS0, ... , /dev/ttyS3 files, but these files were there and before I inserted modem. Btw, I read somewhere at Ubuntu forums its known thing for Huawei modems to "disappear" but their problem is solved by rebooting and mine isnt so I thought its problem with Debian, also its working on Windows without problems. Anyway, thank you for effort.
vladimir
 
Posts: 9
Joined: 2017-08-28 18:26

Re: Mobile Broadband

Postby peter_irich » 2017-08-30 05:39

According specification this modem works in Windows and in Mac OS, so that I was not sure that it will work in Linux.

Peter.
peter_irich
 
Posts: 1194
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Mobile Broadband

Postby peter_irich » 2017-08-30 11:50

Some modems works in one Windows version and not works in other, similarly in Linux, or needs on driver for concrete system.
Can you show output
Code: Select all
lsusb

when this modem is plugged?

Peter.
peter_irich
 
Posts: 1194
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Mobile Broadband

Postby vladimir » 2017-08-30 13:41

Code: Select all
root@debian:~# lsusb
Bus 001 Device 013: ID 12d1:14fe Huawei Technologies Co., Ltd. Modem (Mass Storage Mode)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
vladimir
 
Posts: 9
Joined: 2017-08-28 18:26

Re: Mobile Broadband

Postby peter_irich » 2017-08-30 14:04

Thank you, but I forgot to ask: are usb-modeswitch and usb-modeswitch-data installed?
This had remind me on other forum. It contains 12d1 for Huawei.

Peter.
peter_irich
 
Posts: 1194
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable