Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
JasonH
Posts: 21
Joined: Sun Jul 05, 2015 1:54 pm

Huawei E1750

Post by JasonH » Mon Jul 06, 2015 4:23 am

I am not sure if I should start a new thread here, or pick up this older thread. (http://www.draisberghof.de/usb_modeswit ... 750#p14301)

I am having problems connecting my Huawei E1750 reliably. I was previously using the standard usb_modeswitch included in raspbian (I think 1.2.3 or so) but it would sometimes switch correctly and other times not. I really couldn't discern a pattern to it. For that reason I upgraded to the latest source release of usb-modeswitch 2.2.3. (I did this upgrade from a clean install of everything via my ansible scripts without ever installing the raspbian dpkg versions.) I am using the latest raspbian on a raspberry pi 2 with a device that identifies as:

Code: Select all

Bus 001 Device 007: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552/E1800/E173 (HSPA modem)
This is through lsusb with usb-modeswitch not installed (and externally on the physical package it is identified as a huawei E1750)

With the latest usb-modeswitch installed the device is switched into:

Code: Select all

Bus 001 Device 007: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
However there is no modem listed in /dev/gsm*

I tried turning logging on and tried disabling mode switch through the /etc/usb_modeswitch.conf but for some reason these settings are not "sticking" and it is not logging anything to /var/log/... and mode switch has not disabled automatic switching. See (http://www.draisberghof.de/usb_modeswit ... 750#p15259)

In any case continuing on the thread from the previous topic on the E1750 here is the detailed output of lsusb (once switching has occurred):

Code: Select all

[pi@pi008:/usr/share/usb_modeswitch] $ lsusb -v -d 12d1:1001

Bus 001 Device 007: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x1001 E169/E620/E800 HSDPA Modem
  bcdDevice            0.00
  iManufacturer           3 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          131
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          1 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
and here is the output of dmesg | grep usb

The USB modem is powered through a powered hub to ensure it has sufficient juice...

Code: Select all

[pi@pi008:/usr/share/usb_modeswitch] $ dmesg | grep usb
[    0.764055] usbcore: registered new interface driver usbfs
[    0.764163] usbcore: registered new interface driver hub
[    0.764315] usbcore: registered new device driver usb
[    0.918536] usbcore: registered new interface driver smsc95xx
[    1.320089] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.320142] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.320192] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.320569] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.320590] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.320608] usb usb1: Product: DWC OTG Controller
[    1.320625] usb usb1: Manufacturer: Linux 3.18.16-v7+ dwc_otg_hcd
[    1.320641] usb usb1: SerialNumber: bcm2708_usb
[    1.322570] usbcore: registered new interface driver usb-storage
[    1.363206] usbcore: registered new interface driver usbhid
[    1.363219] usbhid: USB HID core driver
[    1.696385] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.896758] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.896790] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.176508] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.276886] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.276918] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.340655] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:72:5b:8f
[    2.416535] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[    2.525745] usb 1-1.2: New USB device found, idVendor=046d, idProduct=c52b
[    2.525774] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.525791] usb 1-1.2: Product: USB Receiver
[    2.525808] usb 1-1.2: Manufacturer: Logitech
[    2.534691] input: Logitech USB Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:046D:C52B.0001/input/input0
[    2.535222] hid-generic 0003:046D:C52B.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-bcm2708_usb-1.2/input0
[    2.549165] input: Logitech USB Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C52B.0002/input/input1
[    2.550332] hid-generic 0003:046D:C52B.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-bcm2708_usb-1.2/input1
[    2.563755] hid-generic 0003:046D:C52B.0003: hiddev0,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-bcm2708_usb-1.2/input2
[    2.656584] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
[    2.769657] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0604
[    2.769689] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.769708] usb 1-1.4: Product: USB Hub
[    3.016708] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
[    3.126225] usb 1-1.5: New USB device found, idVendor=05ac, idProduct=1006
[    3.126380] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.126400] usb 1-1.5: Product: Keyboard Hub
[    3.126425] usb 1-1.5: Manufacturer: Apple, Inc.
[    3.126444] usb 1-1.5: SerialNumber: 000000000000
[    3.198022] usb 1-1.4.2: new full-speed USB device number 7 using dwc_otg
[    3.301162] usb 1-1.4.2: not running at top speed; connect to a high speed hub
[    3.314270] usb 1-1.4.2: New USB device found, idVendor=12d1, idProduct=1001
[    3.314306] usb 1-1.4.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[    3.314324] usb 1-1.4.2: Product: HUAWEI Mobile
[    3.314341] usb 1-1.4.2: Manufacturer: HUAWEI Technology
[    3.320425] usb-storage 1-1.4.2:1.0: USB Mass Storage device detected
[    3.327239] usb-storage 1-1.4.2:1.1: USB Mass Storage device detected
[    3.333965] usb-storage 1-1.4.2:1.2: USB Mass Storage device detected
[    3.337749] usb-storage 1-1.4.2:1.3: USB Mass Storage device detected
[    3.349833] scsi host3: usb-storage 1-1.4.2:1.3
[    3.351215] usb-storage 1-1.4.2:1.4: USB Mass Storage device detected
[    3.360875] scsi host4: usb-storage 1-1.4.2:1.4
[    3.406620] usb 1-1.5.2: new low-speed USB device number 8 using dwc_otg
[    3.518337] usbcore: registered new interface driver usbserial
[    3.519634] usbcore: registered new interface driver usbserial_generic
[    3.519804] usbserial: USB Serial support registered for generic
[    3.522244] usb 1-1.5.2: New USB device found, idVendor=05ac, idProduct=0220
[    3.522274] usb 1-1.5.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.522291] usb 1-1.5.2: Product: Apple Keyboard
[    3.522308] usb 1-1.5.2: Manufacturer: Apple, Inc
[    3.543079] usbcore: registered new interface driver option
[    3.543345] usbserial: USB Serial support registered for GSM modem (1-port)
[    3.555571] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB0
[    3.560303] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB1
[    3.561652] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB2
[    3.653077] input: Apple, Inc Apple Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.5/1-1.5.2/1-1.5.2:1.0/0003:05AC:0220.0004/input/input2
[    3.656997] apple 0003:05AC:0220.0004: input,hidraw3: USB HID v1.11 Keyboard [Apple, Inc Apple Keyboard] on usb-bcm2708_usb-1.5.2/input0
[    3.663298] input: Apple, Inc Apple Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.5/1-1.5.2/1-1.5.2:1.1/0003:05AC:0220.0005/input/input3
[    3.663957] apple 0003:05AC:0220.0005: input,hidraw4: USB HID v1.11 Device [Apple, Inc Apple Keyboard] on usb-bcm2708_usb-1.5.2/input1
and hints as to what I should change in the configuration. I gather usb-modeswitch is picking up the file in /usr/share/usb_modeswitch/12d1:1446 but this might not be doing the switching correctly? I am not sure...

Thanks for any help!!

Cheers,
Jason

JasonH
Posts: 21
Joined: Sun Jul 05, 2015 1:54 pm

Re: Huawei E1750

Post by JasonH » Thu Jul 09, 2015 4:59 pm

I managed to get the log file to display it's information and it now states:

Code: Select all

[pi@pi008:/var/log] $ more usb_modeswitch_1-1.4\:1.0 

USB_ModeSwitch log from Fri Jul 10 02:31:47 NZST 2015

Use global config file: /etc/usb_modeswitch.conf
Raw args from udev: 1-1.4/1-1.4:1.0

Use top device dir /sys/bus/usb/devices/1-1.4

----------------
USB values from sysfs:
  manufacturer	HUAWEI Technology
  product	HUAWEI Mobile
  serial	
----------------
bNumConfigurations is 1 - don't check for active configuration
ConfigList: /usr/share/usb_modeswitch/12d1:1446 /usr/share/usb_modeswitch/12d1:#linux
SCSI attributes not needed, move on
Check config: /usr/share/usb_modeswitch/12d1:1446
! matched. Read config data
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -W -D -u -1 -b 1 -g 7 -v 12d1 -p 1446 -f $flags(config)

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------

Read long config from command line

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.2.3 (C) Josua Dietze 2015
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1446
TargetVendor=   0x12d1
TargetProductList="1001,1404,1406,140b,140c,1412,1417,141b,1429,1432,1433,1436,14ac,1506,150c,1511"
HuaweiNewMode=1
NeedResponse=0
System integration mode enabled

Use given bus/device number: 001/007 ...
Look for default devices ...
 bus/device number matched
  found USB ID 12d1:1446
   vendor ID matched
   product ID matched
 Found devices in default mode (1)
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Using standard Huawei switching message
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
Reset response endpoint 0x81
Reset message endpoint 0x01
ok:busdev
--------------------------------
(end of usb_modeswitch output)

Check success of mode switch for max. 20 seconds ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...

Target config not matching - current values are
    1-1.4:1.0/bInterfaceClass: 08
    bConfigurationValue:       1
    bNumConfigurations:        1
    busnum:                    1
    devnum:                    7
    idProduct:                 1446
    idVendor:                  12d1
    manufacturer:              HUAWEI Technology
    product:                   HUAWEI Mobile
    serial:                    

Mode switching may have failed. Exit

[pi@pi008:/var/log] $ 
Any hints? I did have this intermittently working to some degree under the default usb_modeswitch installed with the raspberry pi. There are a few too many variables at play here. Eg the version I compiled up uses the following ansible rules:

Code: Select all

    # http://www.libusb.org/
  - name: unarchive libusb (a usb-modeswitch dependency)
    unarchive: src=libusb-1.0.9.tar.bz2 dest=/usr/local/src
  - name: configure libsub
    shell: ./configure chdir=/usr/local/src/libusb-1.0.9 creates=/usr/local/src/libusb-1.0.9/Makefile
  - name: make install libsub
    shell: make install chdir=/usr/local/src/libusb-1.0.9 creates=/usr/local/lib/libusb-1.0.so.0.1.0

    # I have tweaked the sources just a tiny bit as per: http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2337&p=15255#p15255
    # http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-2.2.3.tar.bz2
  - name: unarchive the latest usb-modeswitch
    unarchive: src=usb-modeswitch-2.2.3a.tar.bz2 dest=/usr/local/src
  - name: make install usb-modeswitch
    shell: make install chdir=/usr/local/src/usb-modeswitch-2.2.3 creates=/usr/sbin/usb_modeswitch

    # http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20150627.tar.bz2
  - name: unarchive the latest usb-modeswitch-data
    unarchive: src=usb-modeswitch-data-20150627.tar.bz2 dest=/usr/local/src
  - name: make install usb-modeswitch-data
    shell: make install chdir=/usr/local/src/usb-modeswitch-data-20150627 creates=/lib/udev/rules.d/40-usb_modeswitch.rules
But within that there are a lot of things which could change. In terms of reproducibility I am really not sure that the libusb-1.0.9 library is what I want? Or the devel library? I feel like a more methodical approach here would be good, but I guess that is hard to do? BTW is there a github repo or bitbucket repo for modeswitch? (The only repos I saw were https://github.com/digidietze/usb-modeswitch-data and https://github.com/trevd/usb-modeswitch but these both look massively out of date...)

So I have never gotten the compiled from source versions to work at all with any of my E1750, E169, or E1800.

I guess I will continue to play around with the installed version in the latest raspberian...

Any hints or help?

Thanks, Jason

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: Huawei E1750

Post by Josh » Fri Jul 10, 2015 3:58 pm

Hmm, I tested 2.2.2 on Pi 2 with current Raspbian and did not encounter problems. However, I did not try all of my 10+ modems. I will do so and see if the problem pops up.

JasonH
Posts: 21
Joined: Sun Jul 05, 2015 1:54 pm

Re: Huawei E1750

Post by JasonH » Fri Jul 10, 2015 7:21 pm

Note: Just to note, the sources I am using are 2.2.3a whereas above you said you are on 2.2.2 (where a is the tweak to include the fix you pointed out in http://www.draisberghof.de/usb_modeswit ... f=2&t=2337)

BTW is there some kind of repo for this somewhere so we can try different versions throughout the history of the project?

(Just to confirm I reinstalled everything from scratch and now on

Code: Select all

[pi@pi008:~] $ dpkg -l
...
ii  usb-modeswitch 1.2.3+repack armhf        mode switching tool for controlli
ii  usb-modeswitch 20120815-2   all          mode switching data for usb-modes
...
So with the E1750 modem plugged directly into the pi, then modeswitch 1.2.3+repack works and wvdial seems to connect without problems. (I have not tested long term stability, getting stuck, retailing, etc but it seems to work on the short time scale of minutes)

When operating on a connected USB hub modeswitch 1.2.3+repack seems not to work...

Code: Select all

[pi@pi008:/var/log] $ more usb_
usb_modeswitch_ttyUSB0  usb_modeswitch_ttyUSB1  usb_modeswitch_ttyUSB2  
[pi@pi008:/var/log] $ more usb_modeswitch_ttyUSB0


USB_ModeSwitch log from Sat Jul  11 05:07:52 NZST 2015

usb_modeswitch called with --symlink-name
 parameter: /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.0/ttyUSB0/tty/ttyUSB0

My name is ttyUSB0

Checking my endpoints ...
 in /sys/devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.0
  checking ep_01 ...
  checking ep_81 ...
  ep_81 has interrupt transfer type

--> I am an interrupt port

--> No interrupt interface below me

Return symlink name "gsmmodem" and exit
[pi@pi008:/var/log] $ more usb_modeswitch_ttyUSB1


USB_ModeSwitch log from Sat Jul  11 05:07:52 NZST 2015

usb_modeswitch called with --symlink-name
 parameter: /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.1/ttyUSB1/tty/ttyUSB1

My name is ttyUSB1

Checking my endpoints ...
 in /sys/devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.1
  checking ep_02 ...
  checking ep_83 ...

--> I am not an interrupt port

Return empty name and exit
[pi@pi008:/var/log] $ more usb_modeswitch_ttyUSB2


USB_ModeSwitch log from Sat Jul  11 05:07:52 NZST 2015

usb_modeswitch called with --symlink-name
 parameter: /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.2/ttyUSB2/tty/ttyUSB2

My name is ttyUSB2

Checking my endpoints ...
 in /sys/devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.2
  checking ep_03 ...
  checking ep_84 ...

--> I am not an interrupt port

Return empty name and exit
So the summary of the configurations I have tried so far:

Code: Select all

WORKS       modeswitch=1.2.3+repack     modem=E1750     connection=directUSBOnPi    /dev/gsmmodem=present      /var/log/usb_modeswitch*=present
WORKS       modeswitch=1.2.3+repack     modem=E169      connection=directUSBOnPi    /dev/gsmmodem=present      /var/log/usb_modeswitch*=present
NOTWORKING  modeswitch=1.2.3+repack     modem=E1750     connection=ThroughUSBHub1   /dev/gsmmodem=missing      /var/log/usb_modeswitch*=present
NOTWORKING  modeswitch=1.2.3+repack     modem=E169      connection=ThroughUSBHub2   /dev/gsmmodem=missing      /var/log/usb_modeswitch*=present
NOTWORKING  modeswitch=2.2.3a           modem=E1750     connection=directUSBOnPi    /dev/gsmmodem=missing      /var/log/usb_modeswitch*=present
NOTWORKING  modeswitch=2.2.3a           modem=E169      connection=directUSBOnP2    /dev/gsmmodem=missing      /var/log/usb_modeswitch*=present
I am not entirely sure all of those are totally correct since during that time I have been trying this and that things to get the modems to go and be recognized but I can confirm I can get the E169 and the E1750 working somewhat repeatably using the old version and no hub...

Are there any steps I should be doing differently to ensure this works with the hub?

I am wondering if I am building 2.2.3a with the wrong / different libusb?

Ohhh and one final question -- with your 10+ modems -- are there any you recommend as being more stable than others? Using less power? Generally better / more reliable that the others? (I am trying to get a mini fleet of around 10 pi's being able to phone home and report stuff (IOT's sort of applications...)

Thanks again for all the help!
Jason

JasonH
Posts: 21
Joined: Sun Jul 05, 2015 1:54 pm

Re: Huawei E1750

Post by JasonH » Fri Jul 10, 2015 7:50 pm

Further to this on modeswitch 1.2.3+repack the only difference in log file /var/log/usb_modeswitch_ttyUSB0 when connected to the hub vs connected directly to the pi appears to be:

(1) the time of the log (obviously)
(2) direct to pi the device is 1-1.4, and on the hub the device is 1-1.4.1

See the attached file for the visual diff...
Screen Shot 2015-07-10 at 7.48.50 pm.png
Screen Shot 2015-07-10 at 7.48.50 pm.png (91.16 KiB) Viewed 3717 times

Post Reply