Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Mobile Broadband

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
vladimir
Posts: 9
Joined: 2017-08-28 18:26

Mobile Broadband

#1 Post by vladimir »

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.

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Mobile Broadband

#2 Post by peter_irich »

Try first use mmcli. Does ModemManager detect this modem?

Code: Select all

mmcli -L
Peter.

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

Re: Mobile Broadband

#3 Post by vladimir »

It says "No modem were found".

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

Re: Mobile Broadband

#4 Post by vladimir »

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.

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Mobile Broadband

#5 Post by peter_irich »

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

Peter.

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Mobile Broadband

#6 Post by peter_irich »

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 ... -commands/
or you can download pdf, but for other model, by searching
AT Command Interface Specification - Huawei

Peter.

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

Re: Mobile Broadband

#7 Post by vladimir »

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.

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Mobile Broadband

#8 Post by peter_irich »

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.

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

Re: Mobile Broadband

#9 Post by vladimir »

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.

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Mobile Broadband

#10 Post by peter_irich »

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.

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

Re: Mobile Broadband

#11 Post by vladimir »

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.

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Mobile Broadband

#12 Post by peter_irich »

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: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Mobile Broadband

#13 Post by peter_irich »

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.

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

Re: Mobile Broadband

#14 Post by vladimir »

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

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Mobile Broadband

#15 Post by peter_irich »

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.

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

Re: Mobile Broadband

#16 Post by vladimir »

No, I dont have installed those packages.

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Mobile Broadband

#17 Post by peter_irich »

vladimir wrote:No, I dont have installed those packages.
Then install its, reboot the computer and again insert modem.
Its are mandatory for usb-modems.

Peter.

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

Re: Mobile Broadband

#18 Post by vladimir »

To install Usb-modeswitch I need Make command and to install Make I need C compiler, to install C compiler I need Make...Because target machine is offline and cant use Apt-get. Im giving up, will try to install Debian from DVD instead from CD, I hope there will be all needed packages.

Sposibo bolshoe batyushka. :)

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Mobile Broadband

#19 Post by peter_irich »

I'm not a batyushka, I'm the secular man. "batyushka" - is a priest on Russian.
I hope, after usb-modeswitch and usb-modeswitch-data installing your modem will work.
Or you can itself place it in /lib/udev/rules.d/40-usb_modeswitch.rules.

Peter

Post Reply