Cześć,
Mam problem z rozłączenim się tego modemu (podejrzewam, że dzieje się to w sytuacji utraty zasięgu, choć pewności nie mam):
[ 1790.106033] usb 1-1: USB disconnect, device number 2
[ 1790.111548] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 1790.120062] option 1-1:1.0: device disconnected
[ 1790.125449] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 1790.134222] option 1-1:1.1: device disconnected
[ 1790.192893] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 1790.201327] option 1-1:1.2: device disconnected
[ 1790.206394] qmi_wwan 1-1:1.3 wwan0: unregister 'qmi_wwan' usb-1b000000.usb-1, WWAN/QMI device
po czym modem ponownie jest podłączany:
[ 1790.722619] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 1790.924811] option 1-1:1.0: GSM modem (1-port) converter detected
[ 1790.931404] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
ale w systemie pojawia się jedynie /dev/ttyUSB0 i nie jest już nawiązywane połączenie LTE bo nie pojawia się w systemie ani ttyUSB1 ani ttyUSB1.
konfiguracja network dla modemu:
config interface 'wan'
option device '/dev/ttyUSB2'
option proto '3g'
option pdptype 'IP'
option apn 'internet'
option delay '5'
Jedynie pomaga reboot, wtedy proces wygląda tak:
[ 27.705252] usbcore: registered new interface driver cdc_mbim
[ 27.726230] usbcore: registered new interface driver option
[ 27.732074] usbserial: USB Serial support registered for GSM modem (1-port)
[ 27.739845] option 1-1:1.0: GSM modem (1-port) converter detected
[ 27.746436] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 27.753928] option 1-1:1.1: GSM modem (1-port) converter detected
[ 27.760491] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 27.767984] option 1-1:1.2: GSM modem (1-port) converter detected
[ 27.774592] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Wed Apr 9 07:36:53 2025 daemon.notice pppd[2863]: pppd 2.5.1 started by root, uid 0
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: abort on (BUSY)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: abort on (NO CARRIER)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: abort on (ERROR)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: report (CONNECT)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: timeout set to 10 seconds
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: send (AT&F^M)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: expect (OK)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: AT&F^M^M
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: OK
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: -- got it
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: send (ATE1^M)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: expect (OK)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: ^M
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: ATE1^M^M
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: OK
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: -- got it
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: send (AT+CGDCONT=1,"IP","internet"^M)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: timeout set to 30 seconds
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: expect (OK)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: ^M
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: AT+CGDCONT=1,"IP","internet"^M^M
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: OK
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: -- got it
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: send (ATD*99***1#^M)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: expect (CONNECT)
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: ^M
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: ATD*99***1#^M^M
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: CONNECT
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: -- got it
Wed Apr 9 07:36:55 2025 local2.info chat[2915]: send ( ^M)
Wed Apr 9 07:36:55 2025 daemon.info pppd[2863]: Serial connection established.
Co należy poprawić w konfiguracji, żeby po rozłączeniu modem automatycznie nawiązywał połączenie?