Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to connect using WWAN Fibocom L850GL on debian #505

Open
kopax opened this issue Nov 27, 2019 · 0 comments
Open

Impossible to connect using WWAN Fibocom L850GL on debian #505

kopax opened this issue Nov 27, 2019 · 0 comments

Comments

@kopax
Copy link

@kopax kopax commented Nov 27, 2019

I use modem-manager-gui to send/receive SMS and I wanted to do it from command line.

Your module comes at first search and seems to be the reference.

I have a Lenovo X1 Carbon gen 7 with a Fibocom L850GL WWAN card.

I have installed gammu but couldn't talk to the card (timeout).

I am now trying with gammu-smsd and same issue.

This is what gammu-detect have found

; Configuration file generated by gammu-detect.
; Please check The Gammu Manual for more information.

[gammu]
device = /dev/ttyACM0
name = Fibocom MBIM_+_3_CDC-ACM
connection = at

[gammu1]
device = /dev/ttyACM1
name = Fibocom MBIM_+_3_CDC-ACM
connection = at

[gammu2]
device = /dev/ttyACM2
name = Fibocom MBIM_+_3_CDC-ACM
connection = at

[gammu3]
device = /dev/ttyS1
name = Phone on serial port 1
connection = at

[gammu4]
device = /dev/ttyS2
name = Phone on serial port 2
connection = at

[gammu5]
device = /dev/ttyS3
name = Phone on serial port 3
connection = at

This is the content of /etc/gammu-smsdrc

dka@dka:[~/.cache/modem-manager-gui]: cat  /etc/gammu-smsdrc 
# SMSD configuration, see gammu-smsdrc(5)
[smsd]
service = files
logfile = syslog
# Increase for debugging information
debuglevel = 255

# Paths where messages are stored
inboxpath = /var/spool/gammu/inbox/
outboxpath = /var/spool/gammu/outbox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/


[gammu]
device = /dev/ttyACM0
name = Fibocom MBIM_+_3_CDC-ACM
connection = at

[gammu1]
device = /dev/ttyACM1
name = Fibocom MBIM_+_3_CDC-ACM
connection = at

[gammu2]
device = /dev/ttyACM2
name = Fibocom MBIM_+_3_CDC-ACM
connection = at

[gammu3]
device = /dev/ttyS1
name = Phone on serial port 1
connection = at

[gammu4]
device = /dev/ttyS2
name = Phone on serial port 2
connection = at

[gammu5]
device = /dev/ttyS3
name = Phone on serial port 3
connection = at
dka@dka:[~/.cache/modem-manager-gui]: sudo service gammu-smsd status
● gammu-smsd.service - SMS daemon for Gammu
   Loaded: loaded (/lib/systemd/system/gammu-smsd.service; enabled; vendor preset: enabled)
   Active: deactivating (stop-sigterm) since Thu 2019-11-28 00:34:58 CET; 1min 9s ago
     Docs: man:gammu-smsd(1)
  Process: 28994 ExecStart=/usr/bin/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon (code=exited, status=0/SUCCESS)
 Main PID: 28995 (gammu-smsd)
    Tasks: 1 (limit: 4915)
   Memory: 1.8M
   CGroup: /system.slice/gammu-smsd.service
           └─28995 /usr/bin/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon

Nov 28 00:33:50 dka gammu-smsd[28994]: Warning: No PIN code in /etc/gammu-smsdrc file
Nov 28 00:33:50 dka gammu-smsd[28995]: Created POSIX RW shared memory at 0x7f43bb6b9000
Nov 28 00:33:50 dka gammu-smsd[28995]: Starting phone communication...
Nov 28 00:33:50 dka systemd[1]: Started SMS daemon for Gammu.
Nov 28 00:34:50 dka gammu-smsd[28995]: Error at init connection: No response in specified timeout. Probably the phone is not connected. (TIMEOUT[14])
Nov 28 00:34:50 dka gammu-smsd[28995]: Already hit 250 errors
Nov 28 00:34:50 dka gammu-smsd[28995]: Terminating communication: No response in specified timeout. Probably the phone is not connected. (TIMEOUT[14])
Nov 28 00:34:50 dka gammu-smsd[28995]: Starting phone communication...
Nov 28 00:34:58 dka systemd[1]: Stopping SMS daemon for Gammu...
Nov 28 00:35:50 dka gammu-smsd[28995]: Error at init connection: No response in specified timeout. Probably the phone is not connected. (TIMEOUT[14])

I wonder if modem-manager-gui was conflicting so I uninstalled it. I still have modemmanager install, should I also remove it ?

 dpkg -l | grep modemmanager
ii  modemmanager                          1.10.0-1                             amd64        D-Bus service for managing modems

My gammu version:

 dpkg -l | grep gammu
ii  gammu                                 1.40.0-1                             amd64        mobile phone management utility
ii  gammu-smsd                            1.40.0-1                             amd64        SMS message daemon
ii  libgammu-i18n                         1.40.0-1                             all          mobile phone management library (i18n files)
ii  libgammu8                             1.40.0-1                             amd64        mobile phone management library

My wwan usb

 lsusb -d  2cb7:0007 -v

Bus 001 Device 014: ID 2cb7:0007  
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x2cb7 
  idProduct          0x0007 
  bcdDevice            3.33
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0125
    bNumInterfaces          8
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass      14 
      bFunctionProtocol       0 
      iFunction               4 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass     14 
      bInterfaceProtocol      0 
      iInterface              5 
      CDC Header:
        bcdCDC               1.20
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1 
      CDC MBIM:
        bcdMBIMVersion       1.00
        wMaxControlMessage   512
        bNumberFilters       32
        bMaxFilterSize       192
        wMaxSegmentSize      1500
        bmNetworkCapabilities 0x00
      CDC MBIM Extended:
        bcdMBIMExtendedVersion           1.00
        bMaxOutstandingCommandMessages      1
        wMTU                             1500
      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               4
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 
      bInterfaceProtocol      2 
      iInterface              6 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 
      bInterfaceProtocol      2 
      iInterface              7 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 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               0
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         2
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass       2 Abstract (modem)
      bFunctionProtocol       0 
      iFunction               8 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      0 
      iInterface              9 
      CDC Header:
        bcdCDC               1.20
      CDC Union:
        bMasterInterface        2
        bSlaveInterface         3 
      CDC Call Management:
        bmCapabilities       0x03
          call management
          use DataInterface
        bDataInterface          3
      CDC ACM:
        bmCapabilities       0x07
          sends break
          line coding and serial state
          get/set/clear comm features
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               4
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface             10 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 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     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         4
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass       2 Abstract (modem)
      bFunctionProtocol       0 
      iFunction              11 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      0 
      iInterface             12 
      CDC Header:
        bcdCDC               1.20
      CDC Union:
        bMasterInterface        4
        bSlaveInterface         5 
      CDC Call Management:
        bmCapabilities       0x03
          call management
          use DataInterface
        bDataInterface          5
      CDC ACM:
        bmCapabilities       0x07
          sends break
          line coding and serial state
          get/set/clear comm features
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               4
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        5
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface             13 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 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     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         6
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass       2 Abstract (modem)
      bFunctionProtocol       0 
      iFunction              14 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        6
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      0 
      iInterface             15 
      CDC Header:
        bcdCDC               1.20
      CDC Union:
        bMasterInterface        6
        bSlaveInterface         7 
      CDC Call Management:
        bmCapabilities       0x03
          call management
          use DataInterface
        bDataInterface          7
      CDC ACM:
        bmCapabilities       0x07
          sends break
          line coding and serial state
          get/set/clear comm features
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               4
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        7
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface             16 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x88  EP 8 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     0x08  EP 8 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

for n in `ls /sys/class/*/*{ACM,wdm}*/device/interface`;do echo $(echo $n|awk -F '/' '{print $5}') : $(cat $n);done
ttyACM0 : CDC ACM
ttyACM1 : CDC ACM
ttyACM2 : CDC ACM
cdc-wdm0 : CDC MBIM

@kopax kopax changed the title Impossible to connect Impossible to connect using WWAN Fibocom L850GL on debian Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.