I wrote a wrapper script around nm-modem-probe.
It turns out it works only if you probe the modem twice!
I tried sleeping for 3, 5, 8, 10 seconds and then probing once, but that didn't work.
I could probe using /dev/.tmp-char-188:0 the first time and /dev/ttyUSB0 the second time, the other way around, or the same device twice.
The only thing that mattered was that I probed the device twice.
3975 13:30:47 nm-modem-probe /dev/.tmp-char-188:0: E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 E: error writing command: 5 ID_NM_MODEM_PROBED=1 3975 13:30:53 nm-modem-probe /dev/ttyUSB0: ID_NM_MODEM_GSM=1 ID_NM_MODEM_PROBED=1
I wrote a wrapper script around nm-modem-probe.
It turns out it works only if you probe the modem twice!
I tried sleeping for 3, 5, 8, 10 seconds and then probing once, but that didn't work.
I could probe using /dev/.tmp- char-188: 0 the first time and /dev/ttyUSB0 the second time, the other way around, or the same device twice.
The only thing that mattered was that I probed the device twice.
3975 13:30:47 nm-modem-probe /dev/.tmp- char-188: 0: PROBED= 1 PROBED= 1
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
E: error writing command: 5
ID_NM_MODEM_
3975 13:30:53 nm-modem-probe /dev/ttyUSB0:
ID_NM_MODEM_GSM=1
ID_NM_MODEM_