On 2023/04/06 09:13, Gerhard Roth wrote:
> 2) query the list of modes with "AT!UDUSBCOMP=?". Example result:
> 
> 0  - reserved                                     NOT SUPPORTED
> 1  - DM   AT                                      SUPPORTED
> 2  - reserved                                     NOT SUPPORTED
> 3  - reserved                                     NOT SUPPORTED
> 4  - reserved                                     NOT SUPPORTED
> 5  - reserved                                     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             NOT SUPPORTED
> 14 - Config1: comp6    Config2: comp9             SUPPORTED
> 15 - Config1: comp6    Config2: comp10            NOT SUPPORTED
> 16 - Config1: comp6    Config2: comp11            NOT SUPPORTED
> 17 - Config1: comp6    Config2: comp12            NOT SUPPORTED
> 18 - Config1: comp7    Config2: comp8             NOT SUPPORTED
> 19 - Config1: comp7    Config2: comp9             SUPPORTED
> 20 - Config1: comp7    Config2: comp10            NOT SUPPORTED
> 21 - Config1: comp7    Config2: comp11            NOT SUPPORTED
> 22 - Config1: comp7    Config2: comp12            NOT SUPPORTED
> 
> There is no guarantee that the table doesn't change. And every
> device has a differnt set of supported modes.
> 
> 3) select the desired mode with "AT!UDUSBCOMP=X"

Take care with this. You can put the modem in a mode where you no
longer have an AT interface to be able to reset it (there maybe
a different way to reset it via USB commands rather than AT commands,
but that won't be straightforward from OpenBSD).


> 4) wait for the device to reset itself
> 
> > 
> > Index: umsm.c
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/usb/umsm.c,v
> > retrieving revision 1.125
> > diff -u -p -r1.125 umsm.c
> > --- umsm.c      2 Apr 2023 23:57:57 -0000       1.125
> > +++ umsm.c      6 Apr 2023 08:40:30 -0000
> > @@ -271,6 +271,7 @@ static const struct umsm_type umsm_devs[
> >         {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_AIRCARD_340U}, 0},
> >         {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_AIRCARD_770S}, 0},
> >         {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC7455}, 0},
> > +       {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC7700}, 0},
> >  
> >         {{ USB_VENDOR_SIMCOM, USB_PRODUCT_SIMCOM_SIM5320}, 0},
> >         {{ USB_VENDOR_SIMCOM, USB_PRODUCT_SIMCOM_SIM7600E}, 0},
> > 
> 


Reply via email to