Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2021 15:18:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        usb@FreeBSD.org
Subject:   [Bug 234578] Support for Sierra Wireless EM7455 modem
Message-ID:  <bug-234578-19105-p7Rj5kgl6e@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-234578-19105@https.bugs.freebsd.org/bugzilla/>
References:  <bug-234578-19105@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234578

--- Comment #14 from mike@sentex.net ---
(In reply to Tomasz "CeDeROM" CEDRO from comment #13)

On Linux, we do=20
http://git.mork.no/?p=3Dwwan.git;a=3Dblob_plain;f=3Dscripts/swi_setusbcomp.=
pl
you might need to install the necessary perl libs

   apt-get install build-essential
   apt-get install libuuid-tiny-perl libipc-shareable-perl libjson-perl
   /tmp/swi_setusbcomp.pl --device=3D/dev/cdc-wdm0 --usbcomp=3D19

Note, its not always 19. Run the command above and it will list the current
mode as well as supported modes. Sometimes the target value is 6. e.g in th=
is
example, we re-ran it with usbcomp=3D6 to pick the right mode (qmi)

root@ali-u21-6port:/usr/bin# swi_setusbcomp.pl --device=3D/dev/cdc-wdm0
--usbcomp=3D6
Running in MBIM mode (driver=3Dcdc_mbim)
MBIM OPEN succeeded
QMI msg '0x0021' returned status =3D 1
MBIM QMI support verified
supports 17 QMI subsystems:
  0x00 (1.5)    'QMI_CTL'       - Control service
  0x01 (1.12)   'QMI_WDS'       - Wireless data service
  0x02 (1.7)    'QMI_DMS'       - Device management service
  0x03 (1.21)   'QMI_NAS'       - Network access service
  0x04 (1.3)    'QMI_QOS'       - Quality of service, err, service=20
  0x05 (1.4)    'QMI_WMS'       - Wireless messaging service
  0x06 (1.10)   'QMI_PDS'       - Position determination service
  0x07 (1.1)    'QMI_AUTH'      - Authentication service
  0x08 (1.1)    'QMI_AT'        - AT command processor service
  0x09 (2.1)    'QMI_VOICE'     - Voice service
  0x0a (2.0)    'QMI_CAT2'      - Card application toolkit service (new)
  0x0b (1.4)    'QMI_UIM'       - UIM service
  0x0c (1.4)    'QMI_PBM'       - Phonebook service
  0x11 (1.0)    'QMI_SAR'       - Specific absorption rate service
  0x1a (1.0)    'QMI_WDA'       - Wireless data administrative service
  0xe0 (2.0)    'QMI_CAT'       - Card application toolkit service
  0xe1 (1.0)    'QMI_RMS'       - Remote management service
QMI msg '0x0022' returned status =3D 1
Got QMI DMS client ID '4'
QMI msg '0x555b' returned status =3D 1
Current USB composition: 14
USB compositions:
   0 - HIP  DM    NMEA  AT    MDM1  MDM2  MDM3  MS      NOT SUPPORTED
   1 - HIP  DM    NMEA  AT    MDM1  MS                  NOT SUPPORTED
   2 - HIP  DM    NMEA  AT    NIC1  MS                  NOT SUPPORTED
   3 - HIP  DM    NMEA  AT    MDM1  NIC1  MS            NOT SUPPORTED
   4 - HIP  DM    NMEA  AT    NIC1  NIC2  NIC3  MS      NOT SUPPORTED
   5 - HIP  DM    NMEA  AT    ECM1  MS                  NOT SUPPORTED
   6 - DM   NMEA  AT    QMI                             SUPPORTED
   7 - DM   NMEA  AT    RMNET1 RMNET2 RMNET3            SUPPORTED
   8 - DM   NMEA  AT    MBIM                            SUPPORTED
   9 - MBIM                                             SUPPORTED
  10 - NMEA MBIM                                        SUPPORTED
  11 - DM   MBIM                                        SUPPORTED
  12 - DM   NMEA  MBIM                                  SUPPORTED
  13 - Config1: comp6    Config2: comp8                 SUPPORTED
* 14 - Config1: comp6    Config2: comp9                 SUPPORTED
  15 - Config1: comp6    Config2: comp10                SUPPORTED
  16 - Config1: comp6    Config2: comp11                SUPPORTED
  17 - Config1: comp6    Config2: comp12                SUPPORTED
  18 - Config1: comp7    Config2: comp8                 SUPPORTED
  19 - Config1: comp7    Config2: comp9                 SUPPORTED
  20 - Config1: comp7    Config2: comp10                SUPPORTED
  21 - Config1: comp7    Config2: comp11                SUPPORTED
  22 - Config1: comp7    Config2: comp12                SUPPORTED
QMI msg '0x555c' returned status =3D 1
QMI msg '0x0023' returned status =3D 1
Then reboot the modem (disconnect / reconnect). If you see ttyUSB3, you sho=
uld
be good to go.


root@virtbox1b:/dev# miniterm=20

--- Available ports:
---  1: /dev/ttyS0           'ttyS0'
---  2: /dev/ttyS1           'ttyS1'
---  3: /dev/ttyUSB0         'MC7700'
---  4: /dev/ttyUSB1         'MC7700'
---  5: /dev/ttyUSB2         'MC7700'
--- Enter port index or full name: 5
--- Miniterm on /dev/ttyUSB2  9600,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ati
Manufacturer: Sierra Wireless, Incorporated
Model: MC7700
Revision: SWI9200X_03.05.29.03ap r6485 CNSHZ-ED-XP0031 2014/12/02 17:53:15
IMEI: 012626001461340
IMEI SV: 23
FSN: CDC2793208110
3GPP Release 8
+GCAP: +CGSM,+DS,+ES


OK
at&v
&C: 1; &D: 2; &E: 0; &F: 0; &S: 0; &W: 0; E: 1; L: 0; M: 0; Q: 0; V: 1;
X: 1; Z: 0; \Q: 3; \S: 0; \V: 0; O: 0; S0: 0; S2: 43; S3: 13; S4: 10;
S5: 8; S6: 2; S7: 0; S8: 2; S9: 6; S10: 14; S11: 95; S30: 0; S103: 1;
S104: 1; +FCLASS: 0; +ICF: 3,3; +IFC: 2,2; +IPR: 115200; +DR: 0;
+DS: 0,0,2048,6; +CMEE: 2; +WS46: 12; +CFUN:; +CBST: 0,0,1;
+CRLP: (61,61,48,6,0),(61,61,48,6,1),(240,240,52,6,2);
+CV120: 1,1,1,0,0,0; +CHSN: 0,0,0,0; +CSSN: 0,0; +CREG: 0; +CGREG: 0;
+CEREG: 0; +CSCS: "IRA"; +CSTA: 129; +CR: 0; +CRC: 0;=20
+CGDCONT:
(1,"IP","fast.t-mobile.com","0.0.0.0",0,0),(2,"IP","wap.cingular","0.0.0.0"=
,0,0);
+CGDSCONT: ; +CGTFT: ; +CGEQREQ: ; +CGEQMIN: ; +CGEQOS: ; +CGQREQ: ;
+CGQMIN: ; +CGEREP: 0,0; +CGDATA: "PPP"; +CGCLASS: "A"; +CGSMS: 0;
+CSMS: 0; +CMGF: 0; +CSAS: 0; +CRES: 0; +CSCA: "",; +CSMP: ,,0,0;
+CSDH: 0; +CSCB: 0,"",""; +FDD: 0; +FAR: 0; +FCL: 0; +FIT: 0,0; +ES: ,,;
+ESA: 0,,,,0,0,255,; +CMOD: 0; +CEMODE: 3; +CVHU: 0;
+CPIN: =C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=
=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=
=BD,=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=
=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=
; +CMEC: 0,0,0,0;
+CIND: 0,0,0,0,0,0,0,0;
+CMER: 0,0,0,0,0; +CGATT: 0;  +CGACT: 0; +CPBS: "SM";
+CPMS: "SM","SM","SM"; +CNMI: 0,0,0,0,0; +CMMS: 0; +FTS: 0; +FRS: 0;
+FTH: 3; +FRH: 3; +FTM: 96; +FRM: 96; +CCUG: 0,0,0; +COPS: 0,0,"";
+CUSD: 0; +CAOC: 1; +CCWA: 0; +CCLK: ""; +CPOL: 0,2,"",0,0,0,0; +CPLS: 0;
+CTZR: 0; +CTZU: 0; +CLIP: 0; +COLP: 0; +CDIP: 0; +CLIR: 0;
+CMUX: 0,0,5,31,10,3,30,10,2; !CMUX: 0,0,5,31,10,3,30,10,2

OK
AT!ENTERCND=3D"A710"
OK
AT!UDPID=3D68A3
OK
AT!RESET
OK

AT!ENTERCND=3D"A710"
AT!UDPID=3D68A3
AT!RESET




--- exit ---
You should now see an extra serial port, and when you attach the device to
FreeBSD, it will attach as u3g and you should see the familiar /dev/cuaU0.x
ports to use.


root@virtbox1b:/dev# ls -lat | head
total 4
crw-rw-rw-  1 root tty       5,   2 Oct 10 14:04 ptmx
drwxr-xr-x 21 root root        4400 Oct 10 14:04 .
drwxr-xr-x  2 root root        4120 Oct 10 14:04 char
drwxr-xr-x  4 root root          80 Oct 10 14:04 serial
crw-rw----  1 root dialout 188,   0 Oct 10 14:04 ttyUSB0
crw-rw----  1 root dialout 188,   1 Oct 10 14:04 ttyUSB1
crw-rw----  1 root dialout 188,   2 Oct 10 14:04 ttyUSB2
crw-rw----  1 root dialout 188,   3 Oct 10 14:04 ttyUSB3
crw-rw----  1 root dialout 188,   4 Oct 10 14:04 ttyUSB4
root@virtbox1b:/dev# ls -lat | head
total 4
crw-rw-rw-  1 root tty       5,   2 Oct 10 14:04 ptmx
drwxr-xr-x 21 root root        4400 Oct 10 14:04 .
drwxr-xr-x  2 root root        4120 Oct 10 14:04 char
drwxr-xr-x  4 root root          80 Oct 10 14:04 serial
crw-rw----  1 root dialout 188,   0 Oct 10 14:04 ttyUSB0
crw-rw----  1 root dialout 188,   1 Oct 10 14:04 ttyUSB1
crw-rw----  1 root dialout 188,   2 Oct 10 14:04 ttyUSB2
crw-rw----  1 root dialout 188,   3 Oct 10 14:04 ttyUSB3
crw-rw----  1 root dialout 188,   4 Oct 10 14:04 ttyUSB4

root@virtbox1b:/dev# lsusb=20
Bus 003 Device 025: ID 1199:68a3 Sierra Wireless, Inc. MC8700 Modem

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234578-19105-p7Rj5kgl6e>