Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-29 Thread Miroslav Skoric

On 11/28/18 2:53 PM, ael wrote:



I just dug out one of my old dongles and plugged it into a debian
testing laptop.

The mode switch seems to be automatic, which is what I remembered, and
someone else said had been true of recent kernels.

Here is an extract from dmesg:


Very good. Will test it next time I go to the club. Tnx!

Misko
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-29 Thread Miroslav Skoric

On 11/28/18 11:41 AM, Rick Moen wrote:



I haven't read any of those in detail.  I just wanted to illustrate that
you can find _possibly_ promising coverage of Linux support for, e.g.,
the Huawei E3372 by Web-searching for 'Huawei E3372 Linux' (and then, of
course, favouring more-clueful sites among search hits, e.g., the Arch
Linux wiki, Stack Exchange, etc.



Sure, will search in days to come. I asked in this list after supposing 
that someone might have already tried some of those modems in Devuan.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-29 Thread Miroslav Skoric

On 11/27/18 8:08 PM, info at smallinnovations dot nl wrote:


__


It is a while ago that I struggled with a USB modem but your device
should be recognized by your system (supported since 2.6.18).

A old bug i found was that usbstorage is too fast for usbswitch. The
remedy would be to create a file /etc/modprobe.d/usb-storage.conf:

options usb-storage delay_use=3


or a higher number.



Ok, will try that next week. Tnx!
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-28 Thread Rick Moen
Quoting Miroslav Skoric (sko...@uns.ac.rs):

> Hello all,
> 
> What is needed to install so that Devuan Jessie recognizes Huawei modems:
> 
> - Huawei Mobile Connect - 3G modem (Wintendo sees it as such)
> - Huawei USB modem E3372 4G
> - Huawei Mobile Wifi router E5573C 4G

Try Web-searching for specific model numbers + 'Linux', and see if you
can find relevant tips.  Maybe
https://wiki.debian.org/Modem/3G#Extra_Steps_for_the_Huawei_Cards
for the middle one, for example.

Maybe
https://unix.stackexchange.com/questions/213663/huawei-e3372s-linux-rasbian-incoming-connections-problem
for the model E3372.

Maybe https://forums.whirlpool.net.au/archive/2677153 for the model
E5573C.

I haven't read any of those in detail.  I just wanted to illustrate that
you can find _possibly_ promising coverage of Linux support for, e.g.,
the Huawei E3372 by Web-searching for 'Huawei E3372 Linux' (and then, of
course, favouring more-clueful sites among search hits, e.g., the Arch
Linux wiki, Stack Exchange, etc.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-28 Thread Rick Moen
Quoting Adam Borowski (kilob...@angband.pl):

> Back in 2002, I made a pictorial HOWTO wrt dealing with Wintendo-only
> modems: https://angband.pl/fun/winmodem/ -- as you can see, they can be a
> tough nut to crack.  This HOWTO hasn't lost a bit of its value.

You da man!

Back in the 1990s, I was writing stuff like
http://linuxmafia.com/~rick/faq/modems.html#winmodem .

(Also from the same page, even before I got to the bit about winmodems:
Q:  I'm having problems with my internal PC modem. Will you help me? 
A:  Yes: Your internal modem, if roasted and ground sufficiently finely,
will make surprisingly strong espresso. [...])

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-27 Thread info at smallinnovations dot nl
On 27-11-18 13:53, Miroslav Skoric wrote:
> On 11/23/18 5:02 PM, Adam Borowski wrote:
>> On Fri, Nov 23, 2018 at 01:28:00PM +0100, Alessandro Selli wrote:
>>
>>>    Right, many USB modems show up as something different than a
>>> networking device when they are plugged-in.  I haven't used any of them
>>> for a long time, but I remember many of them show up as a CDROM device
>>> which carries the Windows drivers and/or some Windows utility.  The
>>> actual modem shows up after the CDROM device is unmounted or ejected.
>>
>> Ie, usbmodeswitch.  This might or might not work with modemmanager --
>> in my
>> experience, it works _randomly_.  Including having the dongle suddenly
>> switch while the connection is running, with obviously fatal
>> results.  And
>> modemmanager seems to be unable to recover.
>>
>
> Ok, today I paid a visit to the seniors' club to see what can be done.
> I found their old USB stick modem, inserted it into the Devuan box ...:
>
> root@devuan:~# lsusb
> Bus 002 Device 005: ID 19d2:0017 ZTE WCDMA Technologies MSM
> Bus 002 Device 003: ID 0951:1642 Kingston Technology DT101 G2
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 003 Device 002: ID :3825
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> root@devuan:~# usb_modeswitch -v 19d2 -p 0017
> Look for default devices ...
>    product ID matched
>  Found devices in default mode (1)
> Access device 005 on bus 002
> Current configuration number is 1
> Use interface number 0
>
> USB description data (for identification)
> -
> Manufacturer: ZTE,Incorporated
>  Product: ZTE WCDMA Technologies MSM
>   Serial No.: MF6670VIPD01
> -
> Warning: no switching method given. See documentation
> -> Run lsusb to note any changes. Bye!
>
> root@devuan:~#
>
>
> ... then I tried again but with some more options:
>
>
> root@devuan:~# usb_modeswitch -v 19d2 -p 0017 -K
> Look for default devices ...
>    product ID matched
>  Found devices in default mode (1)
> Access device 005 on bus 002
> Current configuration number is 1
> Use interface number 0
> Use endpoints 0x01 (out) and 0x81 (in)
>
> USB description data (for identification)
> -
> Manufacturer: ZTE,Incorporated
>  Product: ZTE WCDMA Technologies MSM
>   Serial No.: MF6670VIPD01
> -
> Sending standard EJECT sequence
> Looking for active driver ...
>  OK, driver detached
> Set up interface 0
> Use endpoint 0x01 for message sending ...
> Trying to send message 1 to endpoint 0x01 ...
>  OK, message successfully sent
> Read the response to message 1 (CSW) ...
>  Response reading failed (error -7)
>  Device is gone, skip any further commands
> -> Run lsusb to note any changes. Bye!
>
> root@devuan:~# lsusb
> Bus 002 Device 005: ID 19d2:0017 ZTE WCDMA Technologies MSM
> Bus 002 Device 003: ID 0951:1642 Kingston Technology DT101 G2
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 003 Device 002: ID :3825
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> root@devuan:~# usb_modeswitch -v 19d2 -p 0017 -K -R
> Look for default devices ...
>    product ID matched
>  Found devices in default mode (1)
> Access device 009 on bus 002
> Current configuration number is 1
> Use interface number 0
> Use endpoints 0x01 (out) and 0x81 (in)
>
> USB description data (for identification)
> -
> Manufacturer: ZTE,Incorporated
>  Product: ZTE WCDMA Technologies MSM
>   Serial No.: MF6670VIPD01
> -
> Sending standard EJECT sequence
> Looking for active driver ...
>  OK, driver detached
> Set up interface 0
> Use endpoint 0x01 for message sending ...
> Trying to send message 1 to endpoint 0x01 ...
>  OK, message successfully sent
> Read the response to message 1 (CSW) ...
>  Response reading failed (error -7)
>  Device is gone, skip any further commands
> Device handle empty, skip USB reset
> -> Run lsusb to note any changes. Bye!
>
> root@devuan:~#
>
>
> ... seems that -K (eject memory stich driver) and -R (reset) did not
> change much (if anything). Any idea?
>
>>>     The package modemmanager is supposed to take care of the correct
>>> initialization of a number of known and supported modems using udev's
>>> rules (the ASCII package install 18 such rules).  Yet, I think
>>> sometimes
>>> human intervention is still needed, and of course several USB modems
>>> (as
>>> well as PCMCIA/CardBus ones and some WiFi dongles and Access Points)
>>> are
>>> partially, poorly or not supported at all.
>>

Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-23 Thread Alessandro Selli
On 23/11/18 at 17:02, Adam Borowski wrote:
> Back in 2002, I made a pictorial HOWTO wrt dealing with Wintendo-only
> modems: https://angband.pl/fun/winmodem/ -- as you can see, they can be a
> tough nut to crack.  This HOWTO hasn't lost a bit of its value.


  LOL!  This is getting mad a a piece of hardware!  You only spared it
the flame-thrower!



-- 
Alessandro Selli 
VOIP SIP: dhatarat...@ekiga.net
Chiave firma e cifratura PGP/GPG signing and encoding key:
  BA651E4050DDFC31E17384BABCE7BD1A1B0DF2AE




signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-23 Thread Adam Borowski
On Fri, Nov 23, 2018 at 01:28:00PM +0100, Alessandro Selli wrote:
> On 23/11/18 at 12:02, Miroslav Skoric wrote:
> > On 11/22/18 4:28 PM, ael wrote:
> >> On Thu, Nov 22, 2018 at 03:10:15PM +0100, Miroslav Skoric wrote:
> >>>
> >>> What is needed to install so that Devuan Jessie recognizes Huawei
> >>> modems:
> >>>
> >>> - Huawei Mobile Connect - 3G modem (Wintendo sees it as such)
> >>> - Huawei USB modem E3372 4G
> >>> - Huawei Mobile Wifi router E5573C 4G

> > I found some info on the net that such dongles might require to be
> > switched from the bulk memory stick mode to the modem mode, or
> > something like that, to be able to activate in Linux.

>   Right, many USB modems show up as something different than a
> networking device when they are plugged-in.  I haven't used any of them
> for a long time, but I remember many of them show up as a CDROM device
> which carries the Windows drivers and/or some Windows utility.  The
> actual modem shows up after the CDROM device is unmounted or ejected.

Ie, usbmodeswitch.  This might or might not work with modemmanager -- in my
experience, it works _randomly_.  Including having the dongle suddenly
switch while the connection is running, with obviously fatal results.  And
modemmanager seems to be unable to recover.

>    The package modemmanager is supposed to take care of the correct
> initialization of a number of known and supported modems using udev's
> rules (the ASCII package install 18 such rules).  Yet, I think sometimes
> human intervention is still needed, and of course several USB modems (as
> well as PCMCIA/CardBus ones and some WiFi dongles and Access Points) are
> partially, poorly or not supported at all.

Alas, we're deeply in the "sacrifice a young black goat" land.  The quality
of drivers, firmware and _hardware_ is so egregious that it's far more
effort effective to take an old phone and set up tethering.

I'd point at a particular piece of crap from A4Tech as a newcomer to my
shitlist, but I imagine they're on par with their competition.


Back in 2002, I made a pictorial HOWTO wrt dealing with Wintendo-only
modems: https://angband.pl/fun/winmodem/ -- as you can see, they can be a
tough nut to crack.  This HOWTO hasn't lost a bit of its value.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ A dumb species has no way to open a tuna can.
⢿⡄⠘⠷⠚⠋⠀ A smart species invents a can opener.
⠈⠳⣄ A master species delegates.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-23 Thread Alessandro Selli
On 23/11/18 at 12:02, Miroslav Skoric wrote:
> On 11/22/18 4:28 PM, ael wrote:
>
>> On Thu, Nov 22, 2018 at 03:10:15PM +0100, Miroslav Skoric wrote:
>>>
>>> What is needed to install so that Devuan Jessie recognizes Huawei
>>> modems:
>>>
>>> - Huawei Mobile Connect - 3G modem (Wintendo sees it as such)
>>> - Huawei USB modem E3372 4G
>>> - Huawei Mobile Wifi router E5573C 4G
>>
>
> 
>
>> Above was on Debian. I imagine that your dongles are more recent: maybe
>> quite different.
>>
>> I wrote some notes on getting a huwai dongle going, but I don't have
>> them to hand just now. I think that most of the information was on line.
>>
>
> Well, yesterday I visited some ISP shops here and they mostly offered
> dongles or routers as the second and third above, E3372 4G and/or
> E5573C 4G. And in the veterans club here they had an older dongle
> (i.e. the first one above, 3G) that was earlier used at some Wintendo
> machine. I inserted it for test into a dual-boot Wintendo / Devuan
> Jessie 64bit and nothing happened. (On the other side, Wintendo
> installed drivers and app from files located within the dongle memory.)
>
> I found some info on the net that such dongles might require to be
> switched from the bulk memory stick mode to the modem mode, or
> something like that, to be able to activate in Linux.


  Right, many USB modems show up as something different than a
networking device when they are plugged-in.  I haven't used any of them
for a long time, but I remember many of them show up as a CDROM device
which carries the Windows drivers and/or some Windows utility.  The
actual modem shows up after the CDROM device is unmounted or ejected. 
IIRC many others instead show up as serial devices and only start
operating as a networking device after they're fed a firmware image.

   The package modemmanager is supposed to take care of the correct
initialization of a number of known and supported modems using udev's
rules (the ASCII package install 18 such rules).  Yet, I think sometimes
human intervention is still needed, and of course several USB modems (as
well as PCMCIA/CardBus ones and some WiFi dongles and Access Points) are
partially, poorly or not supported at all.


Alessandro


-- 
Alessandro Selli 
VOIP SIP: dhatarat...@ekiga.net
Chiave firma e cifratura PGP/GPG signing and encoding key:
  BA651E4050DDFC31E17384BABCE7BD1A1B0DF2AE




signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-23 Thread Miroslav Skoric

On 11/22/18 4:28 PM, ael wrote:


On Thu, Nov 22, 2018 at 03:10:15PM +0100, Miroslav Skoric wrote:


What is needed to install so that Devuan Jessie recognizes Huawei modems:

- Huawei Mobile Connect - 3G modem (Wintendo sees it as such)
- Huawei USB modem E3372 4G
- Huawei Mobile Wifi router E5573C 4G







Above was on Debian. I imagine that your dongles are more recent: maybe
quite different.

I wrote some notes on getting a huwai dongle going, but I don't have
them to hand just now. I think that most of the information was on line.



Well, yesterday I visited some ISP shops here and they mostly offered 
dongles or routers as the second and third above, E3372 4G and/or E5573C 
4G. And in the veterans club here they had an older dongle (i.e. the 
first one above, 3G) that was earlier used at some Wintendo machine. I 
inserted it for test into a dual-boot Wintendo / Devuan Jessie 64bit and 
nothing happened. (On the other side, Wintendo installed drivers and app 
from files located within the dongle memory.)


I found some info on the net that such dongles might require to be 
switched from the bulk memory stick mode to the modem mode, or something 
like that, to be able to activate in Linux.


However, I asked in this list here because I wondered if Devuan distro 
might have some special requirements regarding running such modem 
dongles. So, in general I wonder what software packages from repository 
are used with such type of peripherals.


Misko
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan Jessie + Huawei USB modems

2018-11-22 Thread ael
On Thu, Nov 22, 2018 at 03:10:15PM +0100, Miroslav Skoric wrote:
> 
> What is needed to install so that Devuan Jessie recognizes Huawei modems:
> 
> - Huawei Mobile Connect - 3G modem (Wintendo sees it as such)
> - Huawei USB modem E3372 4G
> - Huawei Mobile Wifi router E5573C 4G

I used to use a couple of dongle/modems. I used "raw" chat scripts.

As I recall, the dongles were recognised and connected by the kernal via
/dev/ttyUSBn, with n = 0,1,2,3,...
Or maybe the other  /dev/??? name for a serial usb device: I forget for
the moment. Perhaps I had to load a module explicity, but I don't
think so.

The horrible Modem Manager sometimes worked and sometimes didn't. I
hated it because it was a complex black box that I couldn't easily
debug when it failed. It did (does?) have an associated database of
network operators and their various connection protocols/passwords.
Checking that database might be useful for information in writing chat
scripts. 

Above was on Debian. I imagine that your dongles are more recent: maybe
quite different.

I wrote some notes on getting a huwai dongle going, but I don't have
them to hand just now. I think that most of the information was on line.

ael

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng