Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Require an app without GUI interface for connecting to 4G dongle


    Hi,

    We are developing an application for our embedded linux system (i.e. linux running on a router device). It has an usb host port.

    once 4G usb dongle is inserted into the router device, the application should do the mode switching and provide command line features such as connect/disconnect, signal strength, connection status etc.

    For mode switching the dongle, we have already cross compiled and installed usb_modeswitch application.

    For establishing internet connection, there are modem manager and network manager applications which are dependent on many libraries, and meant for a desktop PC.
    Currently facing issues in cross compiling modem manager.

    Observed in the router device that, when 4G dongle is inserted, cdc_ether kernel module gets loaded and eth3 interface along with Mac address is created.

    Need help in suggesting any application which nearly matches
    with this type of requirement ?


    Regards
    Praveen Deshpande

  2. #2
    Also pasting below descriptors from ZTE dongle outputted from lsusb -v -s 002:020 command :-

    Bus 002 Device 020: ID 19d2:1403 ZTE WCDMA Technologies MSM
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    idVendor 0x19d2 ZTE WCDMA Technologies MSM
    idProduct 0x1403
    bcdDevice f0.7c
    iManufacturer 2 ZTE,Incorporated
    iProduct 3 ZTE WCDMA Technologies MSM
    iSerial 4 MF8250ZTED000000
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 98
    bNumInterfaces 3
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xa0
    (Bus Powered)
    Remote Wakeup
    MaxPower 500mA
    Interface Association:
    bLength 8
    bDescriptorType 11
    bFirstInterface 0
    bInterfaceCount 2
    bFunctionClass 224 Wireless
    bFunctionSubClass 1 Radio Frequency
    bFunctionProtocol 3 RNDIS
    iFunction 7 RNDIS
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 2 Communications
    bInterfaceSubClass 2 Abstract (modem)
    bInterfaceProtocol 255 Vendor Specific (MSFT RNDIS?)
    iInterface 5 RNDIS Communications Control
    CDC Header:
    bcdCDC 1.10
    CDC Call Management:
    bmCapabilities 0x00
    bDataInterface 1
    CDC ACM:
    bmCapabilities 0x00
    CDC Union:
    bMasterInterface 0
    bSlaveInterface 1
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x82 EP 2 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0008 1x 8 bytes
    bInterval 9
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 1
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 10 CDC Data
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0
    iInterface 6 RNDIS Ethernet Data
    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 0
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 2
    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 0x83 EP 3 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 0x02 EP 2 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 1
    Device Qualifier (for other device speed):
    bLength 10
    bDescriptorType 6
    bcdUSB 2.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    bNumConfigurations 1
    Device Status: 0x0000
    (Bus Powered)
    [root@ghajini home]#




    / #
    / #
    / #dmesg

    ------------------------> skipped all previous dmesg output and pasting only below usb device event


    [1727258.446405] VIRT-USB: USB device disconnected
    [1727258.901212] usb 1-1.1: new high speed USB device using fsl-ehci and address 11
    [1727259.013688] usb 1-1.1: New USB device found, idVendor=19d2, idProduct=1408
    [1727259.013706] usb 1-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
    [1727259.013718] usb 1-1.1: Product: ZTE WCDMA Technologies MSM
    [1727259.013728] usb 1-1.1: Manufacturer: ZTE,Incorporated
    [1727259.013737] usb 1-1.1: SerialNumber: MF8250ZTED000000
    [1727259.014306] usb 1-1.1: configuration #1 chosen from 1 choice
    [1727259.021490] eth3: register 'cdc_ether' at usb-fsl-ehci.0-1.1, CDC Ethernet Device, 34:4b:50:b7:ef:4a
    [1727259.027879] VIRT-USB: USB device inserted, vid = 0, pid = 0
    [1727259.027885] IntClass 8, IntSubClass 6, IntProt 80
    / #
    / #
    / #
    / #
    / # ifconfig
    eth0 Link encap:Ethernet HWaddr 00:22:AB:CD:01:23
    inet addr:10.10.10.2 Bcast:10.255.255.255 Mask:255.0.0.0
    inet6 addr: fe80::222:abff:fecd:123/64 Scope:Link
    UP BROADCAST RUNNING PROMISC MULTICAST MTU:1536 Metric:1
    RX packets:740585 errors:0 dropped:0 overruns:0 frame:0
    TX packets:881410 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:25518747 (24.3 MiB) TX bytes:119052343 (113.5 MiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:33 errors:0 dropped:0 overruns:0 frame:0
    TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:3696 (3.6 KiB) TX bytes:3696 (3.6 KiB)

    / #
    / #
    / #
    / #
    / #
    / # ifconfig eth3
    eth3 Link encap:Ethernet HWaddr 34:4B:50:B7:EF:4A
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    / #
    / #
    / #

  3. #3
    Linux Guru
    Join Date
    Dec 2013
    Posts
    2,747
    -->
    why shouldn't networkmanager be up to the task?
    it does not require a gui.

    if you're having trouble with your particular device, i'm sure a search "linux networkmanager <yourdevice> 4g lte" will return something.

$spacer_open
$spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •