[solved] New SurfStick is recognized as CD Rom. Switching doesn't work.

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Bertium
Level 2
Level 2
Posts: 51
Joined: Mon Jun 12, 2023 12:58 am

[solved] New SurfStick is recognized as CD Rom. Switching doesn't work.

Post by Bertium »

Hello users, I have to annoy you again as a beginner.

I'm currently using LMDE5 32 bit
(The plan is to switch to LMDE6 64bit when this is running, since my processor suddenly supports 64bit and I'm constantly being downgraded to edge by the provider.)
I previously had a Huawei E1823 surf stick, it worked without any problems but it could only support 3G.
I bought a new 4G stick: Huawei E3372h-325. Supplied: Label E3372-325 Importer Huawai, Manufacturer HEYUAN 517000 (i.e. without h)

When plugged in, the stick was recognized as a CDROM. This is apparently normal.

++++++

I then entered the following into the terminal according to Ubuntu Wiki:

Code: Select all

norbert@norbert-acer:~$ sudo usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000011062000000100000000000000000000'
[sudo] Passwort ...        
Look for default devices ...
 No devices in default mode found. Nothing to do. Bye!
++++++++++++++++++

Then I searched the device for the tips in the forum with:

Code: Select all

norbert@norbert-acer:~$ lsusb
---
Bus 001 Device 015: ID 3566:2001 Mobile Mobile
---
Then:

Code: Select all

Norbert@norbert-acer:~$ sudo lsusb -vs  001:015 
[sudo] Passwort für norbert:           

Bus 001 Device 015: ID 3566:2001 Mobile Mobile
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x3566 
  idProduct          0x2001 
  bcdDevice           ff.ff
  iManufacturer           2 Mobile
  iProduct                3 Mobile
  iSerial                 4 123456789ABCD
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              1 Mass Storage
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000000
      (Missing must-be-set LPM bit!)
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x0004
      Device can operate at High Speed (480Mbps)
    bFunctionalitySupport   4
      Lowest fully-functional device speed is at an unknown speed!
    bU1DevExitLat           1 micro seconds
    bU2DevExitLat         500 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

+++++++++++++++++++++++++

Problem:
From here I don't know what to do, it's somehow getting too complicated.
1. What do I have to enter to switch to broadband modem?
2. Can I then get an Internet manager again that shows me the connection data etc.?

Otherwise I have to return the device within the deadline.

Thank you very much in advance Norbert

Code: Select all

System:    Kernel: 5.10.0-25-686 i686 bits: 32 compiler: gcc v: 10.2.1 Desktop: MATE 1.24.1 
           wm: marco dm: LightDM Distro: LMDE 5 Elsie base: Debian 11.2 bullseye 
Machine:   Type: Laptop System: Acer product: Aspire 5630 v: V3.50 serial: <filter> Chassis: 
           type: 10 serial: <filter> 
           Mobo: Acer model: Grapevine serial: <filter> BIOS: Acer v: 3.50 date: 02/13/2007 
Battery:   ID-1: BAT1 charge: 41.4 Wh condition: 41.4/47.5 Wh (87%) volts: 12.5/10.8 
           model: PANASONIC GC86503PAG0 serial: N/A status: Full 
CPU:       Info: Dual Core model: Intel Core2 T5500 bits: 64 type: MCP arch: Core Merom rev: 6 
           L2 cache: 2 MiB 
           flags: lm nx pae sse sse2 sse3 ssse3 bogomips: 6649 
           Speed: 997 MHz min/max: 1000/1667 MHz Core speeds (MHz): 1: 997 2: 997 
Graphics:  Device-1: NVIDIA G72M [Quadro NVS 110M/GeForce Go 7300] vendor: Acer Incorporated ALI 
           driver: nouveau v: kernel bus ID: 01:00.0 chip ID: 10de:01d7 
           Display: x11 server: X.Org 1.20.11 compositor: marco driver: loaded: nouveau 
           unloaded: fbdev,modesetting,vesa alternate: nv resolution: 1280x800~60Hz s-dpi: 96 
           OpenGL: renderer: NV46 v: 2.1 Mesa 20.3.5 direct render: Yes 
Audio:     Device-1: Intel NM10/ICH7 Family High Definition Audio vendor: Acer Incorporated ALI 
           driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:27d8 
           Sound Server: ALSA v: k5.10.0-25-686 
Network:   Device-1: Broadcom BCM4401-B0 100Base-TX vendor: Acer Incorporated ALI driver: b44 
           v: kernel port: 5420 bus ID: 06:01.0 chip ID: 14e4:170c 
           Device-2: Huawei E815 type: USB driver: option,option1,usb-storage bus ID: 5-5:3 
           chip ID: 12d1:14ac 
           IF-ID-1: eth0 state: down mac: <filter> 
           IF-ID-2: ppp0 state: unknown speed: N/A duplex: N/A mac: N/A 
Drives:    Local Storage: total: 111.79 GiB used: 12.53 GiB (11.2%) 
           ID-1: /dev/sda vendor: Toshiba model: MK1252GSX size: 111.79 GiB speed: <unknown> 
           serial: <filter> 
Partition: ID-1: / size: 39.4 GiB used: 12.53 GiB (31.8%) fs: ext4 dev: /dev/sda5 
Swap:      Alert: No Swap data was found. 
USB:       Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 2 rev: 1.1 speed: 12 Mb/s 
           chip ID: 1d6b:0001 
           Device-1: 1-1:2 info: Microsoft Basic Optical Mouse type: Mouse 
           driver: hid-generic,usbhid rev: 1.1 speed: 1.5 Mb/s chip ID: 045e:0084 
           Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 2 rev: 1.1 speed: 12 Mb/s 
           chip ID: 1d6b:0001 
           Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 1.1 speed: 12 Mb/s 
           chip ID: 1d6b:0001 
           Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 1.1 speed: 12 Mb/s 
           chip ID: 1d6b:0001 
           Hub-5: 5-0:1 info: Full speed (or root) Hub ports: 8 rev: 2.0 speed: 480 Mb/s 
           chip ID: 1d6b:0002 
           Device-1: 5-5:3 info: Huawei E815 type: Ethernet Network,CDC-Data,Mass Storage 
           driver: option,option1,usb-storage rev: 2.0 speed: 480 Mb/s chip ID: 12d1:14ac 
Sensors:   System Temperatures: cpu: 56.0 C mobo: 56.0 C gpu: nouveau temp: 56.0 C 
           Fan Speeds (RPM): N/A 
Repos:     Packages: 2247 apt: 2244 snap: 3 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //packages.linuxmint.com elsie main upstream import backport #id:linuxmint_main
           2: deb https: //deb.debian.org/debian bullseye main contrib non-free
           3: deb https: //deb.debian.org/debian bullseye-updates main contrib non-free
           4: deb http: //security.debian.org bullseye-security main contrib non-free
           5: deb https: //deb.debian.org/debian bullseye-backports main contrib non-free
Info:      Processes: 176 Uptime: 30m Memory: 2.96 GiB used: 1.09 GiB (36.7%) Init: systemd v: 247 
           runlevel: 5 Compilers: gcc: 10.2.1 alt: 10 Client: Unknown python3.9 client 
           inxi: 3.3.01 
Last edited by LockBot on Thu Mar 28, 2024 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Bertium
Level 2
Level 2
Posts: 51
Joined: Mon Jun 12, 2023 12:58 am

Info New SurfStick is recognized as CD Rom. Switching doesn't work.

Post by Bertium »

It works now!

I compiled some infos from different website and did a test. I dont know whats the meaning of the commands and all this stuff. But it works. See below. May be it helps other guys, having the same problem.

Code: Select all

sudo nano /etc/udev/rules.d/40-huawei.rules

#copy this text then save then close

# This is part of USB_ModeSwitch version 1.x.x
#
ACTION!="add", GOTO="modeswitch_rules_end"
SUBSYSTEM!="usb", GOTO="modeswitch_rules_end"

# All known install partitions are on interface 0
ATTRS{bInterfaceNumber}!="00", GOTO="modeswitch_rules_end"

# only storage class devices are handled; negative
# filtering here would exclude some quirky devices
ATTRS{bDeviceClass}=="e0", GOTO="modeswitch_rules_begin"
ATTRS{bInterfaceClass}=="e0", GOTO="modeswitch_rules_begin"
GOTO="modeswitch_rules_end"

LABEL="modeswitch_rules_begin"
# Huawei E3372-325
ATTRS{idVendor}=="3566", ATTRS{idProduct}=="2001", RUN+="/sbin/usb_modeswitch -v 3566 -p 2001 -W -R -w 400"
ATTRS{idVendor}=="3566", ATTRS{idProduct}=="2001", RUN+="/sbin/usb_modeswitch -v 3566 -p 2001 -W -R"

LABEL="modeswitch_rules_end"

#after close type: sudo udevadm trigger && sudo udevadm control --reload
#Dont forget to open the dongle setup site and check all settings , security and network profile!!!

Locked

Return to “Networking”