WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Updated USB Modeswitch OR WWAN0?  (Read 5962 times)

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Updated USB Modeswitch OR WWAN0?
« on: October 19, 2021, 02:16:21 AM »
Hi there,

I'm trying to get a modem :

Code: [Select]
Bus 001 Device 007: ID 12d1:14fe Huawei Technologies Co., Ltd. Modem (Mass Storage Mode)
To connect in the easiest mode (Previously was cdc_ether / Hi Link mode on an older similar modem)

Now this modem is either not switching correctly as USB Modeswitch is OLD, OR I now need to use a wwan0 interface and get a connection that way as that seems to be the only mode it will switch to as :

Code: [Select]
Bus 001 Device 006: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Any ideas where I start?


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Updated USB Modeswitch OR WWAN0?
« Reply #1 on: October 19, 2021, 05:03:15 AM »
usb-modeswitch posted (not tested)

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #2 on: October 19, 2021, 06:25:05 AM »
Thank you Juanito - Appreciated.

Saly this hasn't made any difference from what I can see - I still can't seem to get the modem into the "old cdc_ether" / Hilink mode.

It is still only switching to a wwan0 interface with no connection.

Have you ever worked with this setup before?

It's so weird, I had on Friday a connection in what I thought was hi link mode, but nothing I do now can replicate this - I've followed just about every google search option for how to connect this modem but no luck.

There is no ttyUSB interface created, and no eth1 interface either.

Any suggestions on how I get this connected?

Thanks again.

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #3 on: October 19, 2021, 06:49:37 AM »
I could be way off - BUT when I look at the switched modem in the mode that supposedly could work :

Code: [Select]
Bus 001 Device 012: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
I see this :

Code: [Select]
   Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2
      bInterfaceProtocol     22
      iInterface              0
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  06 24 1a 00 01 1f
      ** UNRECOGNIZED:  0d 24 0f 01 05 00 00 00 ea 05 03 00 01
      ** UNRECOGNIZED:  05 24 06 01 01

I don't know enough, but to me this looks like TC13 hasn't been able to bring the interface up and this is perhaps why I am not seeing anything even though the mode switch has actually happened? Perhaps?

Thanks

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: Updated USB Modeswitch OR WWAN0?
« Reply #4 on: October 19, 2021, 07:55:27 AM »
Do they have a windows driver/configuration tool?   Some devices can be programmed as to which mode they startup in.

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #5 on: October 19, 2021, 09:25:10 AM »
Sadly I can't find anything. I found a firmware tool and ran that just to see if made any difference but nothing changed. With new firmware still the same.

So what to try?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Updated USB Modeswitch OR WWAN0?
« Reply #6 on: October 19, 2021, 10:56:01 AM »
Does dmesg show any usb/modem related error messages?

Are and drivers in net-usb-KERNEL required?

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #7 on: October 19, 2021, 11:58:48 AM »
My dmesg does show the wwan0 interface but no connection is started and according to forums I need to set AT command to start the connection on /dev/ttyUSB or /dev/cdc-wdm - BUT none of those interfaces come up :( My dmesg after switch looks like :

Code: [Select]
[   85.375925] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1506, bcdDevice= 1.02
[   85.375944] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[   85.375959] usb 1-1.2: Product: HUAWEI Mobile
[   85.375974] usb 1-1.2: Manufacturer: HUAWEI
[   85.379638] usb-storage 1-1.2:1.4: USB Mass Storage device detected
[   85.380440] scsi host0: usb-storage 1-1.2:1.4
[   85.381333] usb-storage 1-1.2:1.5: USB Mass Storage device detected
[   85.382117] scsi host1: usb-storage 1-1.2:1.5
[   85.411642] usbcore: registered new interface driver cdc_wdm
[   85.435373] cdc_ncm 1-1.2:1.1: MAC-Address: 58:2c:80:13:92:63
[   85.435387] cdc_ncm 1-1.2:1.1: setting rx_max = 16384
[   85.435613] cdc_ncm 1-1.2:1.1: setting tx_max = 16384
[   85.436173] cdc_ncm 1-1.2:1.1 wwan0: register 'cdc_ncm' at usb-3f980000.usb-1.2, Mobile Broadband Network Device, 58:2c:80:13:92:63
[   85.436337] usbcore: registered new interface driver cdc_ncm
[   85.438191] usbcore: registered new interface driver cdc_mbim
[   86.395541] scsi 0:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[   86.395996] scsi 1:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
[   86.446276] sd 1:0:0:0: [sda] Attached SCSI removable disk

So scratching head ;) where to now?


Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: Updated USB Modeswitch OR WWAN0?
« Reply #8 on: October 19, 2021, 01:40:19 PM »
I don't have a device like this, but from what I gather, USB modeswitch needs to switch the mode prior to the kernel loading the USB storage drivers.   Which means you have to do it with a udev rule.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Updated USB Modeswitch OR WWAN0?
« Reply #9 on: October 19, 2021, 09:37:49 PM »
usb-modeswitch-data contains a database of usb ids and a udev rule - I see 12d1:1505 at /usr/local/share/usb_modeswitch, but not 12d1:1506, is it in /usr/local/share/usb_modeswitch/new.lst?

See also: https://www.draisberghof.de/usb_modeswitch/#usage
« Last Edit: October 19, 2021, 10:27:17 PM by Juanito »

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #10 on: October 21, 2021, 10:07:52 AM »
Hi guys,

2 more days at poking ta this and no luck :( - How do I add a udev rule? As now today maybe just maybe it is a udev issue as the system is switching the usb stick perhaps before my usb modeswitch command - Reason I say this is today I have used a different usb stick and according to lsusb, it's now the same - very odd???? It's as if the udev rule (if that's what they do) is setting the mode when I plug the stick in before I get to run the manual modeswitch.

So where to now? Perhaps Paul you're able to help? I can even open direct ssh access to this system if that will prove to be easier - I really just need to solve this :(

Hope we can soon - Regards.

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #11 on: October 21, 2021, 10:41:54 AM »
Aha, maaaybe a small step forward - I added tcz usb-serial and now I managed to get the mentioned /dev/ttyUSB paths show.

However, the next step of issuing a command on these /dev/ttyUSB interfaces to initiate an internet connection doesn't seem to work.


Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: Updated USB Modeswitch OR WWAN0?
« Reply #12 on: October 21, 2021, 12:19:21 PM »
Seems like it would be much easier to get a different wifi stick that is directly supported under the RPI Linux kernel.

EdiMax EW-7811Un is a tried and true device.

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #13 on: October 21, 2021, 12:26:10 PM »
Thanks for that thought Paul - Although the USB stick is a GSM modem, not wifi. I also have 100+ devices I need to get live asap as part of a bigger network of a few thousand devices :( - This modem worked on TC8.1.5 so really think it should be possible on TC13.0.3?

As I've mentioned in a previous post - ANY urgent help will be appreciated so I can solve this :( - ANY takers to see where I'm going wrong?

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: Updated USB Modeswitch OR WWAN0?
« Reply #14 on: October 21, 2021, 12:37:40 PM »
Oh, GSM modem.  That is a different beast.  I have no experience there.