Проблема с wbc-4g

Здравствуйте, есть два проблемных устройства с проблемой 4g. До этого эти два устройства работали стабильно, но через какой-то промежуток времени usb0 перестал подниматься.

Характеристика устройств и их настройка связи:

Первое устройство :

Спойлер

Debian GNU/Linux 9
Wiren Board 6.9.1 (s/n AVJYU2EN), release wb-2207 (as stable)
Linux *** 5.10.35-wb120+wb101 #2 Tue Nov 22 12:48:20 UTC 2022 armv7l GNU/Linux

wb-utils Version: 3.7.0-wb108

Второе устройство было сброшено для проверки того устранилась ли данная проблема в обновлениях, но проблема не решилась.
Второе устройство :

Спойлер

Debian GNU/Linux 11
Wiren Board 6.9.1 (s/n ARGTA4VK), release wb-2307 (as stable)
Linux wirenboard-ARGTA4VK 5.10.35-wb142 #1 Thu Jul 20 07:59:09 UTC 2023 armv7l GNU/Linux

wb-utils Version: 4.12.0-wb107

Как изначально были настроены устройства:

Спойлер

echo “source-directory /etc/network/interfaces.d” >> /etc/network/interfaces
cat <<‘EOF’ > /etc/network/interfaces.d/usb0

4G/LTE MODEM:

auto usb0
allow-hotplug usb0
iface usb0 inet dhcp

for beeline:

#apn internet.beeline.ru

for megafon:

#apn internet

for mts:

#apn internet.mts.ru

for tele2:

apn ****.tele2.ru
pre-up wb-gsm restart_if_broken
pre-up /usr/sbin/chat -s TIMEOUT 20 ABORT “ERROR” ECHO ON “” “AAAAAAAAAAAAAT” OK “AT+CPIN?” OK “AT+USBNETIP=1” OK “AT+CMGF=1” OK “AT+DIALMODE=0” OK “AT+CGDCONT=1,"IP","${IF_APN:-internet}"” OK “AT+CGCONTRDP” “OK” > /dev/ttyGSM < /dev/ttyGSM
pre-up sleep 10
EOF

Спойлер

cat <<‘EOF’ > /root/gsm_autoconnect.sh
#!/bin/sh
echo --------------- --------------- --------------- –
echo $(date)
echo --------------- --------------- --------------- –
echo GSM CONTROLL RESTART
echo --------------- --------------- --------------- –
PINGRESORCE2=“...
PINGRESORCE1=“...
if (! ping -q -c3 ${PINGRESORCE1} > /dev/null 2>&1)
then
if (! ping -q -c3 ${PINGRESORCE2} > /dev/null 2>&1)
then
echo ---------------ping ... --------------- --------------- –
! ping -q -c3 ${PINGRESORCE1} >> /var/log/gsm.log 2>&1;
echo ---------------ping ... --------------- --------------- –
! ping -q -c3 ${PINGRESORCE2} >> /var/log/gsm.log 2>&1;
echo --------------- --------------- --------------- –
echo “$(date) wb-gsm off”;
DEBUG=TRUE wb-gsm off >> /var/log/gsm.log 2>&1;
echo --------------- --------------- --------------- –
echo “$(date) restart”;
DEBUG=TRUE wb-gsm restart_if_broken >> /var/log/gsm.log 2>&1;
echo --------------- --------------- --------------- –
echo “$(date) ifup usb0”;
ifup usb0 >> /var/log/gsm.log 2>&1;
echo ---------------ping ... --------------- --------------- –
! ping -q -c3 ${PINGRESORCE1} >> /var/log/gsm.log 2>&1;
echo ---------------ping ... --------------- --------------- –
! ping -q -c3 ${PINGRESORCE2} >> /var/log/gsm.log 2>&1;
echo --------------- --------------- --------------- –
echo “$(date) end script”
echo --------------- --------------- --------------- –
else
echo ---------------ping ... --------------- --------------- –
! ping -q -c3 ${PINGRESORCE1} >> /var/log/gsm.log 2>&1;
echo ---------------ping ... --------------- --------------- –
! ping -q -c3 ${PINGRESORCE2} >> /var/log/gsm.log 2>&1;
echo --------------- --------------- --------------- –
echo “internet ok”;
echo “$(date) end script”;
fi
else
echo ---------------ping ... --------------- --------------- –
! ping -q -c3 ${PINGRESORCE1} >> /var/log/gsm.log 2>&1;
echo ---------------ping ... --------------- --------------- –
! ping -q -c3 ${PINGRESORCE2} >> /var/log/gsm.log 2>&1;
echo --------------- --------------- --------------- –
echo “internet ok”;
echo “$(date) end script”
fi
EOF
chmod +x /root/gsm_autoconnect.sh
В крон табе */5 * * * * root /root/gsm_autoconnect.sh >> /var/log/gsm.log 2>&1

Ошибка:

Спойлер

DEBUG: wb_of_parse: Parsing hardware-specific environment from OF
DEBUG: of_get_prop_gpio: /wirenboard/gpios/A1_OUT io-gpios
DEBUG: of_get_prop_gpio: gpio 34 15 0
DEBUG: of_gpio_to_num: Unpacked gpio 64:15:0 → 64+15
DEBUG: of_get_prop_gpio: /wirenboard/gpios/A4_IN io-gpios
DEBUG: of_get_prop_gpio: gpio 34 27 1
DEBUG: of_gpio_to_num: Unpacked gpio 64:27:1 → 64+27
DEBUG: of_get_prop_gpio: /wirenboard/gpios/A1_IN io-gpios
DEBUG: of_get_prop_gpio: gpio 34 14 1
DEBUG: of_gpio_to_num: Unpacked gpio 64:14:1 → 64+14
DEBUG: of_get_prop_gpio: /wirenboard/gpios/5V_OUT io-gpios
DEBUG: of_get_prop_gpio: gpio 42 27 0
DEBUG: of_gpio_to_num: Unpacked gpio 0:27:0 → 0+27
DEBUG: of_get_prop_gpio: /wirenboard/gpios/A2_OUT io-gpios
DEBUG: of_get_prop_gpio: gpio 34 16 0
DEBUG: of_gpio_to_num: Unpacked gpio 64:16:0 → 64+16
DEBUG: of_get_prop_gpio: /wirenboard/gpios/A3_IN io-gpios
DEBUG: of_get_prop_gpio: gpio 34 28 1
DEBUG: of_gpio_to_num: Unpacked gpio 64:28:1 → 64+28
DEBUG: of_get_prop_gpio: /wirenboard/gpios/A3_OUT io-gpios
DEBUG: of_get_prop_gpio: gpio 34 17 0
DEBUG: of_gpio_to_num: Unpacked gpio 64:17:0 → 64+17
DEBUG: of_get_prop_gpio: /wirenboard/gpios/V_OUT io-gpios
DEBUG: of_get_prop_gpio: gpio 34 9 0
DEBUG: of_gpio_to_num: Unpacked gpio 64:9:0 → 64+9
DEBUG: of_get_prop_gpio: /wirenboard/gpios/V_OUT_OK io-gpios
DEBUG: of_get_prop_gpio: gpio 34 8 0
DEBUG: of_gpio_to_num: Unpacked gpio 64:8:0 → 64+8
DEBUG: of_get_prop_gpio: /wirenboard/gpios/A2_IN io-gpios
DEBUG: of_get_prop_gpio: gpio 34 13 1
DEBUG: of_gpio_to_num: Unpacked gpio 64:13:1 → 64+13
DEBUG: of_get_prop_gpio: /wirenboard/gpios/A4_OUT io-gpios
DEBUG: of_get_prop_gpio: gpio 34 18 0
DEBUG: of_gpio_to_num: Unpacked gpio 64:18:0 → 64+18
DEBUG: of_get_prop_gpio: //soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2 power-gpios
DEBUG: of_get_prop_gpio: gpio 33 4 0
DEBUG: of_gpio_to_num: Unpacked gpio 128:4:0 → 128+4
DEBUG: of_get_prop_gpio: //soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2 pwrkey-gpios
DEBUG: of_get_prop_gpio: gpio 34 20 0
DEBUG: of_gpio_to_num: Unpacked gpio 64:20:0 → 64+20
DEBUG: of_get_prop_gpio: //soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2 status-gpios
DEBUG: of_get_prop_gpio: gpio 34 19 1
DEBUG: of_gpio_to_num: Unpacked gpio 64:19:1 → 64+19
DEBUG: of_get_prop_gpio: //soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2 simselect-gpios
DEBUG: of_get_prop_gpio: gpio 34 24 0
DEBUG: of_gpio_to_num: Unpacked gpio 64:24:0 → 64+24
DEBUG: main: Called from pid 29142 (gsm_autoconnect)
DEBUG: guess_of_node: Got of_gsm_node: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2
DEBUG: restart_if_broken: Modem switched off, switch it on instead of testing the connection
DEBUG: ensure_on: switching on GSM modem using POWER FET
DEBUG: toggle: toggle GSM modem state using PWRKEY
DEBUG: ensure_on: Waiting for modem to start
DEBUG: init_usb_connection: Will wait up to 30s untill usb port becomes available
Turning OFF modem’s POWER FET
DEBUG: of_get_prop_gpio: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2 power-gpios
DEBUG: of_get_prop_gpio: gpio 33 4 0
DEBUG: of_gpio_to_num: Unpacked gpio 128:4:0 → 128+4
Force exit: no usb device after 30s
1: /usr/lib/wb-utils/wb-gsm-common.sh:518 init_usb_connection(…)
2: /usr/lib/wb-utils/wb-gsm-common.sh:554 ensure_on(…)
3: /usr/bin/wb-gsm:29 restart_if_broken(…)
Error in /usr/lib/wb-utils/wb-gsm-common.sh:71. ‘[[ -n $unlinked_ports ]]’ exited with status 0
Call tree:
1: /usr/lib/wb-utils/wb-gsm-common.sh:1 force_exit_handler(…)
2: /usr/lib/wb-utils/wb-gsm-common.sh:165 force_exit(…)
3: /usr/lib/wb-utils/wb-gsm-common.sh:518 init_usb_connection(…)
4: /usr/lib/wb-utils/wb-gsm-common.sh:554 ensure_on(…)
5: /usr/bin/wb-gsm:29 restart_if_broken(…)
Exiting with status 1

Сейчас gsm не поднимается совсем:

Спойлер

Sep 5 12:18:54 kernel: [ 1023.395667] usb 2-1.3: new high-speed USB device number 62 using ci_hdrc
Sep 5 12:18:54 kernel: [ 1023.551059] usb 2-1.3: New USB device found, idVendor=1286, idProduct=812a, bcdDevice= 0.00
Sep 5 12:18:54 kernel: [ 1023.559601] usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Sep 5 12:18:54 kernel: [ 1023.567134] usb 2-1.3: Product: WUKONG
Sep 5 12:18:54 kernel: [ 1023.570967] usb 2-1.3: Manufacturer: MARVELL
Sep 5 12:18:55 kernel: [ 1023.871922] usb 2-1.3: USB disconnect, device number 62
Sep 5 12:18:56 wb-rules[1974]: Error: Write start address failed, return code -1
Sep 5 12:18:59 wb-rules[1974]: Error: Write start address failed, return code -1
Sep 5 12:19:01 kernel: [ 1030.056165] usb 2-1.3: new high-speed USB device number 63 using ci_hdrc
Sep 5 12:19:01 kernel: [ 1030.216374] usb 2-1.3: config 1 has an invalid interface number: 5 but max is 4
Sep 5 12:19:01 kernel: [ 1030.223744] usb 2-1.3: config 1 has no interface number 3
Sep 5 12:19:01 kernel: [ 1030.245492] usb 2-1.3: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 1.00
Sep 5 12:19:01 kernel: [ 1030.253937] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 5 12:19:01 kernel: [ 1030.261312] usb 2-1.3: Product: Mobile Composite Device Bus
Sep 5 12:19:01 kernel: [ 1030.266914] usb 2-1.3: Manufacturer: Marvell
Sep 5 12:19:01 kernel: [ 1030.271191] usb 2-1.3: SerialNumber: 200806006809080000
Sep 5 12:19:01 kernel: [ 1030.328972] rndis_host 2-1.3:1.0 usb0: register ‘rndis_host’ at usb-ci_hdrc.1-1.3, RNDIS device, 36:33:a9:21:61:d3
Sep 5 12:19:01 kernel: [ 1030.374288] option 2-1.3:1.2: GSM modem (1-port) converter detected
Sep 5 12:19:01 kernel: [ 1030.393957] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
Sep 5 12:19:01 kernel: [ 1030.416820] option 2-1.3:1.4: GSM modem (1-port) converter detected
Sep 5 12:19:01 kernel: [ 1030.437840] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
Sep 5 12:19:01 kernel: [ 1030.466153] option 2-1.3:1.5: GSM modem (1-port) converter detected
Sep 5 12:19:01 kernel: [ 1030.485742] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
Sep 5 12:19:02 kernel: [ 1030.783749] usb 2-1.3: USB disconnect, device number 63
Sep 5 12:19:02 kernel: [ 1030.799618] rndis_host 2-1.3:1.0 usb0: unregister ‘rndis_host’ usb-ci_hdrc.1-1.3, RNDIS device
Sep 5 12:19:02 kernel: [ 1030.825208] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Sep 5 12:19:02 kernel: [ 1030.864533] option 2-1.3:1.2: device disconnected
Sep 5 12:19:02 kernel: [ 1030.870139] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Sep 5 12:19:02 kernel: [ 1030.883722] option 2-1.3:1.4: device disconnected
Sep 5 12:19:02 kernel: [ 1030.895472] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Sep 5 12:19:02 kernel: [ 1030.917485] option 2-1.3:1.5: device disconnected

Если необходима дополнительная информация по устройствам или необходимо скинуть что-то дополнительно дайте знать.

Добрый день.

Судя по выводу - модем не включается.
Нужно проеверить следующее: как сконфигурирован модем в /etc/wb-hardware.conf
Ожидаю (в актуальном релизе)

    "wbc": {
        "module": "wbc-4g-usb",
        "options": {}
    },

То есть - что сконфигурирован именно тот модем который физически установлен в контроллере.
В релизе wb-2304 и новее модемом управляет modemManager, поэтому использоваиние wb-gsm deprecated, соответствено скрипты автоконнекта - не годятся, совсем.

Выполните (на контроллере со старым релизом ```DEBUG=true wb-gsm on в консоли и покажите результат. Также - проверьте верно ли выбран модем.

На прошитом сейчас поправил конфиг, как вы сказали. Проверил включен ли Network и Modem Manager все включено, но результат не поменялся:

Спойлер

root@wirenboard-ARGTA4VK:~# [ 278.562346] usb 2-1.3: new high-speed USB device number 40 using ci_hdrc
[ 278.773115] usb 2-1.3: config 1 has an invalid interface number: 5 but max is 4
[ 278.780488] usb 2-1.3: config 1 has no interface number 3
[ 278.799810] usb 2-1.3: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 1.00
[ 278.808287] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 278.815667] usb 2-1.3: Product: Mobile Composite Device Bus
[ 278.821258] usb 2-1.3: Manufacturer: Marvell
[ 278.825553] usb 2-1.3: SerialNumber: 200806006809080000
[ 278.946669] usb 2-1.3: can’t set config #1, error -71
[ 279.035808] usb 2-1.3: USB disconnect, device number 40

на старом Debug=true

Спойлер

b-gsm on
DEBUG: main: Called from pid 10822 (bash)
DEBUG: guess_of_node: Got of_gsm_node: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2
[ 215.946992] usb 2-1.3: new high-speed USB device number 29 using ci_hdrc
[ 216.107939] usb 2-1.3: config 1 has an invalid interface number: 5 but max is 4
[ 216.115301] usb 2-1.3: config 1 has no interface number 3
[ 216.137811] usb 2-1.3: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 1.00
[ 216.146222] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 216.153617] usb 2-1.3: Product: Mobile Composite Device Bus
[ 216.159228] usb 2-1.3: Manufacturer: Marvell
[ 216.163505] usb 2-1.3: SerialNumber: 200806006809080000
[ 216.240349] rndis_host 2-1.3:1.0 usb0: register ‘rndis_host’ at usb-ci_hdrc.1-1.3, RNDIS device, 4a:70:1c:75:32:11
[ 216.276525] option 2-1.3:1.2: GSM modem (1-port) converter detected
[ 216.294998] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 216.314003] option 2-1.3:1.4: GSM modem (1-port) converter detected
[ 216.342887] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 216.370649] option 2-1.3:1.5: GSM modem (1-port) converter detected
[ 216.395070] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[ 216.676298] usb 2-1.3: USB disconnect, device number 29
[ 216.690509] rndis_host 2-1.3:1.0 usb0: unregister ‘rndis_host’ usb-ci_hdrc.1-1.3, RNDIS device
[ 216.761485] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 216.819396] option 2-1.3:1.2: device disconnected
[ 216.870613] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 216.908996] option 2-1.3:1.4: device disconnected
[ 216.946703] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 216.983847] option 2-1.3:1.5: device disconnected
[ 220.807097] usb 2-1.3: new high-speed USB device number 30 using ci_hdrc
[ 220.974254] usb 2-1.3: New USB device found, idVendor=1286, idProduct=812a, bcdDevice= 0.00
[ 220.982745] usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 220.990094] usb 2-1.3: Product: WUKONG
[ 220.993861] usb 2-1.3: Manufacturer: MARVELL
DEBUG: ensure_on: switching on GSM modem using POWER FET
[ 221.284442] usb 2-1.3: USB disconnect, device number 30
DEBUG: toggle: toggle GSM modem state using PWRKEY
DEBUG: ensure_on: Waiting for modem to start
[ 227.467004] usb 2-1.3: new high-speed USB device number 31 using ci_hdrc
[ 227.627802] usb 2-1.3: config 1 has an invalid interface number: 5 but max is 4
[ 227.635161] usb 2-1.3: config 1 has no interface number 3
[ 227.655345] usb 2-1.3: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 1.00
[ 227.663779] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 227.671152] usb 2-1.3: Product: Mobile Composite Device Bus
[ 227.676734] usb 2-1.3: Manufacturer: Marvell
[ 227.681030] usb 2-1.3: SerialNumber: 200806006809080000
[ 227.821989] rndis_host 2-1.3:1.0: RNDIS_MSG_QUERY(0x01010101) failed, -71
[ 227.828862] rndis_host 2-1.3:1.0: rndis get ethaddr, -71
[ 227.888110] rndis_host: probe of 2-1.3:1.0 failed with error -71
[ 227.927538] option 2-1.3:1.2: GSM modem (1-port) converter detected
[ 227.948550] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 228.011796] option 2-1.3:1.4: GSM modem (1-port) converter detected
[ 228.026045] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 228.054320] option 2-1.3:1.5: GSM modem (1-port) converter detected
[ 228.070484] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[ 228.104074] usb 2-1.3: USB disconnect, device number 31
[ 228.172383] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 228.235067] option 2-1.3:1.2: device disconnected
[ 228.269483] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 228.333849] option 2-1.3:1.4: device disconnected
[ 228.370239] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 228.417157] option 2-1.3:1.5: device disconnected
DEBUG: init_usb_connection: Will wait up to 30s untill usb port becomes available
[ 232.077007] usb 2-1.3: new high-speed USB device number 32 using ci_hdrc
[ 232.234768] usb 2-1.3: New USB device found, idVendor=1286, idProduct=812a, bcdDevice= 0.00
[ 232.243355] usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 232.250819] usb 2-1.3: Product: WUKONG
[ 232.254643] usb 2-1.3: Manufacturer: MARVELL
[ 232.548648] usb 2-1.3: USB disconnect, device number 32
[ 238.726983] usb 2-1.3: new high-speed USB device number 33 using ci_hdrc
[ 238.897957] usb 2-1.3: config 1 has an invalid interface number: 5 but max is 4
[ 238.905405] usb 2-1.3: config 1 has no interface number 3
[ 238.918160] usb 2-1.3: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 1.00
[ 238.926726] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 238.934440] usb 2-1.3: Product: Mobile Composite Device Bus
[ 238.940203] usb 2-1.3: Manufacturer: Marvell
[ 238.944560] usb 2-1.3: SerialNumber: 200806006809080000
[ 238.969464] rndis_host 2-1.3:1.0 usb0: register ‘rndis_host’ at usb-ci_hdrc.1-1.3, RNDIS device, ca:5f:dd:80:0c:55
[ 238.989796] option 2-1.3:1.2: GSM modem (1-port) converter detected
[ 238.999977] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 239.009940] option 2-1.3:1.4: GSM modem (1-port) converter detected
[ 239.021959] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 239.031880] option 2-1.3:1.5: GSM modem (1-port) converter detected
[ 239.043373] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[ 239.204306] usb 2-1.3: USB disconnect, device number 33
[ 239.247208] rndis_host 2-1.3:1.0 usb0: unregister ‘rndis_host’ usb-ci_hdrc.1-1.3, RNDIS device
[ 239.317808] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 239.355660] option 2-1.3:1.2: device disconnected
[ 239.382529] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 239.409892] option 2-1.3:1.4: device disconnected
[ 239.430342] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 239.449680] option 2-1.3:1.5: device disconnected
[ 243.597013] usb 2-1.3: new high-speed USB device number 34 using ci_hdrc
[ 243.762355] usb 2-1.3: New USB device found, idVendor=1286, idProduct=812a, bcdDevice= 0.00
[ 243.770811] usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 243.778189] usb 2-1.3: Product: WUKONG
[ 243.781945] usb 2-1.3: Manufacturer: MARVELL
[ 243.844996] usb 2-1.3: can’t set config #1, error -71
[ 243.874429] usb 2-1.3: USB disconnect, device number 34
[ 249.997000] usb 2-1.3: new high-speed USB device number 35 using ci_hdrc
[ 250.147836] usb 2-1.3: config 1 has an invalid interface number: 5 but max is 4
[ 250.155200] usb 2-1.3: config 1 has no interface number 3
[ 250.188170] usb 2-1.3: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 1.00
[ 250.196571] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 250.203969] usb 2-1.3: Product: Mobile Composite Device Bus
[ 250.209568] usb 2-1.3: Manufacturer: Marvell
[ 250.213858] usb 2-1.3: SerialNumber: 200806006809080000
[ 250.306943] rndis_host 2-1.3:1.0 usb0: register ‘rndis_host’ at usb-ci_hdrc.1-1.3, RNDIS device, fa:0d:88:ab:c8:42
[ 250.345689] option 2-1.3:1.2: GSM modem (1-port) converter detected
[ 250.398490] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 250.439252] option 2-1.3:1.4: GSM modem (1-port) converter detected
[ 250.472056] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 250.531132] option 2-1.3:1.5: GSM modem (1-port) converter detected
[ 250.570729] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[ 250.724291] usb 2-1.3: USB disconnect, device number 35
[ 250.764991] rndis_host 2-1.3:1.0 usb0: unregister ‘rndis_host’ usb-ci_hdrc.1-1.3, RNDIS device
[ 250.878395] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 250.960464] option 2-1.3:1.2: device disconnected
[ 251.015401] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 251.084607] option 2-1.3:1.4: device disconnected
[ 251.127155] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 251.160680] option 2-1.3:1.5: device disconnected
[ 254.856966] usb 2-1.3: new high-speed USB device number 36 using ci_hdrc
[ 255.022257] usb 2-1.3: New USB device found, idVendor=1286, idProduct=812a, bcdDevice= 0.00
[ 255.030794] usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 255.038293] usb 2-1.3: Product: WUKONG
[ 255.042090] usb 2-1.3: Manufacturer: MARVELL
[ 255.332488] usb 2-1.3: USB disconnect, device number 36
[ 261.516948] usb 2-1.3: new high-speed USB device number 37 using ci_hdrc
[ 261.677810] usb 2-1.3: config 1 has an invalid interface number: 5 but max is 4
[ 261.685188] usb 2-1.3: config 1 has no interface number 3
[ 261.722549] usb 2-1.3: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 1.00
[ 261.731001] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 261.738373] usb 2-1.3: Product: Mobile Composite Device Bus
[ 261.743971] usb 2-1.3: Manufacturer: Marvell
[ 261.748268] usb 2-1.3: SerialNumber: 200806006809080000
[ 261.860382] usb 2-1.3: can’t set config #1, error -71
[ 261.988308] usb 2-1.3: USB disconnect, device number 37


[ 289.098318] usb 2-1.3: Product: WUKONG
[ 289.102111] usb 2-1.3: Manufacturer: MARVELL
[ 289.380762] usb 2-1.3: USB disconnect, device number 42
[ 295.566907] usb 2-1.3: new high-speed USB device number 43 using ci_hdrc
[ 295.727684] usb 2-1.3: config 1 has an invalid interface number: 5 but max is 4
[ 295.735047] usb 2-1.3: config 1 has no interface number 3
[ 295.770475] usb 2-1.3: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 1.00
[ 295.778923] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 295.786280] usb 2-1.3: Product: Mobile Composite Device Bus
[ 295.791900] usb 2-1.3: Manufacturer: Marvell
[ 295.796187] usb 2-1.3: SerialNumber: 200806006809080000
[ 295.940289] usb 2-1.3: can’t set config #1, error -71
[ 296.036427] usb 2-1.3: USB disconnect, device number 43
[ 300.166990] usb 2-1.3: new high-speed USB device number 44 using ci_hdrc
[ 300.322254] usb 2-1.3: New USB device found, idVendor=1286, idProduct=812a, bcdDevice= 0.00
[ 300.330794] usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 300.338277] usb 2-1.3: Product: WUKONG
[ 300.342070] usb 2-1.3: Manufacturer: MARVELL
[ 300.644611] usb 2-1.3: USB disconnect, device number 44
Turning OFF modem’s POWER FET
DEBUG: of_get_prop_gpio: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2 power-gpios
DEBUG: of_get_prop_gpio: gpio 33 4 0
DEBUG: of_gpio_to_num: Unpacked gpio 128:4:0 → 128+4
Force exit: no usb device after 30s
1: /usr/lib/wb-utils/wb-gsm-common.sh:518 init_usb_connection(…)
2: /usr/bin/wb-gsm:25 ensure_on(…)
Error in /usr/lib/wb-utils/wb-gsm-common.sh:71. ‘[[ -n $unlinked_ports ]]’ exited with status 0
Call tree:
1: /usr/lib/wb-utils/wb-gsm-common.sh:1 force_exit_handler(…)
2: /usr/lib/wb-utils/wb-gsm-common.sh:165 force_exit(…)
3: /usr/lib/wb-utils/wb-gsm-common.sh:518 init_usb_connection(…)
4: /usr/bin/wb-gsm:25 ensure_on(…)
Exiting with status 1

Может еще что-то можно попробовать в таком случае ?

Для “старого”: такое впечатление что модем выключается.
Для нового:

то же самое.
Дайте, наверно диагностический архив с контроллеров,
перед созданием архива как раз снова выполните включение модема.
Заодно: от чего контроллеры питаются? модем при включении потребляет довольно много.

Первое устройство:
diag_output_AVJYU2EN_2023-09-08-08.32.51.zip (90,4 КБ)

Второе устройство:
diag_output_ARGTA4VK_2023-09-08-01.45.59.zip (127,7 КБ)

Воспроизвел похожее.
Модем так же себя веден на контроллере 6.x при подключенном в USB мощном потребителе:

DEBUG=true wb-gsm on
DEBUG: main: Called from pid 10347 (bash)
DEBUG: guess_of_node: Got of_gsm_node: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2
DEBUG: ensure_on: switching on GSM modem using POWER FET
DEBUG: toggle: toggle GSM modem state using PWRKEY
DEBUG: ensure_on: Waiting for modem to start
DEBUG: init_usb_connection: Will wait up to 30s untill usb port becomes available
DEBUG: probe_usb_ports: Probing all modem's usb ports
DEBUG: test_connection: (port:/dev/ttyUSB0; timeout:2) => 137
DEBUG: test_connection: (port:/dev/ttyUSB1; timeout:2) => 4
DEBUG: test_connection: (port:/dev/ttyUSB2; timeout:2) => 4
DEBUG: probe_usb_ports: Modem's usb ports: ttyUSB0 ttyUSB1 ttyUSB2
DEBUG: probe_usb_ports: Answered to 'AT':
Turning OFF modem's POWER FET
DEBUG: of_get_prop_gpio: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2 power-gpios
DEBUG: of_get_prop_gpio: gpio 33 4 0
DEBUG: of_gpio_to_num: Unpacked gpio 128:4:0 -> 128+4
Force exit: no valid usb-AT connection after 30s
 1: /usr/lib/wb-utils/wb-gsm-common.sh:518 init_usb_connection(...)
 2: /usr/bin/wb-gsm:25 ensure_on(...)
Error in /usr/lib/wb-utils/wb-gsm-common.sh:71. '[[ -n $unlinked_ports ]]' exited with status 0
Call tree:
 1: /usr/lib/wb-utils/wb-gsm-common.sh:1 force_exit_handler(...)
 2: /usr/lib/wb-utils/wb-gsm-common.sh:184 force_exit(...)
 3: /usr/lib/wb-utils/wb-gsm-common.sh:518 init_usb_connection(...)
 4: /usr/bin/wb-gsm:25 ensure_on(...)
Exiting with status 1

Отключаю:

root@wirenboard-ANHVBI4B:~# DEBUG=true wb-gsm on
DEBUG: main: Called from pid 10347 (bash)
DEBUG: guess_of_node: Got of_gsm_node: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2
DEBUG: ensure_on: switching on GSM modem using POWER FET
DEBUG: toggle: toggle GSM modem state using PWRKEY
DEBUG: ensure_on: Waiting for modem to start
DEBUG: init_usb_connection: Will wait up to 30s untill usb port becomes available
DEBUG: probe_usb_ports: Probing all modem's usb ports
DEBUG: test_connection: (port:/dev/ttyUSB0; timeout:2) => 137
DEBUG: test_connection: (port:/dev/ttyUSB1; timeout:2) => 0
DEBUG: test_connection: (port:/dev/ttyUSB2; timeout:2) => 0
DEBUG: probe_usb_ports: Modem's usb ports: ttyUSB0 ttyUSB1 ttyUSB2
DEBUG: probe_usb_ports: Answered to 'AT': /dev/ttyUSB1 /dev/ttyUSB2
DEBUG: init_usb_connection: Got modem model a7600x from dtso => reversing port symlinks
DEBUG: link_ports: /dev/ttyUSB2 /dev/ttyUSB1 => /dev/ttyGSM0 /dev/ttyGSM1
DEBUG: link_ports: /dev/ttyGSM0 => /dev/ttyGSM

В dmesg в первом случае аналогично:

[3693231.657817] usb 2-1.3: new high-speed USB device number 12 using ci_hdrc
[3693231.838691] usb 2-1.3: config 1 has an invalid interface number: 5 but max is 4
[3693231.846362] usb 2-1.3: config 1 has no interface number 3
[3693231.891673] usb 2-1.3: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 1.00
[3693231.900342] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[3693231.907927] usb 2-1.3: Product: Mobile Composite Device Bus
[3693231.913681] usb 2-1.3: Manufacturer: Marvell
[3693231.918160] usb 2-1.3: SerialNumber: 200806006809080000
[3693232.075591] rndis_host 2-1.3:1.0 usb0: register 'rndis_host' at usb-ci_hdrc.1-1.3, RNDIS device, c2:da:b0:46:d2:c3
[3693232.148132] option 2-1.3:1.2: GSM modem (1-port) converter detected
[3693232.187869] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[3693232.236113] option 2-1.3:1.4: GSM modem (1-port) converter detected
[3693232.268392] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[3693232.301284] option 2-1.3:1.5: GSM modem (1-port) converter detected
[3693232.331883] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[3693241.093419] usb 2-1.3: USB disconnect, device number 12
[3693241.123152] rndis_host 2-1.3:1.0 usb0: unregister 'rndis_host' usb-ci_hdrc.1-1.3, RNDIS device
[3693241.171361] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[3693241.236457] option 2-1.3:1.2: device disconnected
[3693241.286082] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[3693241.337341] option 2-1.3:1.4: device disconnected
[3693241.363858] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[3693241.416112] option 2-1.3:1.5: device disconnected

Что-то в USB подключно? Вижу что нет, но может быть что-то только питающееся, как у меня для теста.
Что-то подключено к клемме +5V контроллера?
Значения
Screenshot_20230908_105619
плюс-минут такие же?

Ничего дополнительного не подключено

А какое напряжение на +5V?

5Vout 5.04 В

Vin 10 . 53

А если запитать контроллер, для проверки, от большего напряжением источника питания?

Мало вероятно что проблема именно в питании, если вы выше скидываете то что у вас вышло это повторить на 24 В. Но со своей стороны проверим как будет возможность.

Да, собственно надо причину установить. Вообще с виду явный аппаратный баг.

Сейчас пробую следующее wb-adc/Vin 47.72 В, wb-adc/5Vout 5.02

Спойлер

DEBUG=true wb-gsm on
DEBUG: main: Called from pid 9342 (bash)
DEBUG: guess_of_node: Got of_gsm_node: /soc/bus@2100000/usb@2184200/usb-hub@1/wb c-modem@2
DEBUG: ensure_on: switching on GSM modem using POWER FET
DEBUG: toggle: toggle GSM modem state using PWRKEY
DEBUG: ensure_on: Waiting for modem to start
DEBUG: init_usb_connection: Will wait up to 30s untill usb port becomes availabl e
Turning OFF modem’s POWER FET
DEBUG: of_get_prop_gpio: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2 power-gpios
DEBUG: of_get_prop_gpio: gpio 33 4 0
DEBUG: of_gpio_to_num: Unpacked gpio 128:4:0 → 128+4
Force exit: no usb device after 30s
1: /usr/lib/wb-utils/wb-gsm-common.sh:518 init_usb_connection(…)
2: /usr/bin/wb-gsm:25 ensure_on(…)
Error in /usr/lib/wb-utils/wb-gsm-common.sh:71. ‘[[ -n $unlinked_ports ]]’ exited with status 0
Call tree:
1: /usr/lib/wb-utils/wb-gsm-common.sh:1 force_exit_handler(…)
2: /usr/lib/wb-utils/wb-gsm-common.sh:165 force_exit(…)
3: /usr/lib/wb-utils/wb-gsm-common.sh:518 init_usb_connection(…)
4: /usr/bin/wb-gsm:25 ensure_on(…)
Exiting with status 1

Спойлер

DEBUG=true wb-gsm off
DEBUG: main: Called from pid 9342 (bash)
DEBUG: guess_of_node: Got of_gsm_node: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2
DEBUG: switch_off: Modem is already OFF

Спойлер

DEBUG=true wb-gsm restart_if_broken
DEBUG: main: Called from pid 9342 (bash)
DEBUG: guess_of_node: Got of_gsm_node: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2
DEBUG: restart_if_broken: Modem switched off, switch it on instead of testing the connection
DEBUG: ensure_on: switching on GSM modem using POWER FET
DEBUG: toggle: toggle GSM modem state using PWRKEY
DEBUG: ensure_on: Waiting for modem to start
DEBUG: init_usb_connection: Will wait up to 30s untill usb port becomes available
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/*’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/configuration’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/descriptors’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/dev’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/devnum’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/devpath’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/devspec’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/driver’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/ep_00’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/idProduct’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/idVendor’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/ltm_capable’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/manufacturer’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/maxchild’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/of_node’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/port’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/power’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/product’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/quirks’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/removable’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/remove’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/rx_lanes’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/serial’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/speed’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/subsystem’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/tx_lanes’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/uevent’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/urbnum’: No such file or directory
ls: cannot access ‘/sys/bus/usb/devices/2-1.3/version’: No such file or directory
ls: cannot open directory ‘/sys/bus/usb/devices/2-1.3/2-1.3:1.4’: No such file or directory
ls: cannot open directory ‘/sys/bus/usb/devices/2-1.3/2-1.3:1.5’: No such file or directory

Turning OFF modem’s POWER FET
DEBUG: of_get_prop_gpio: /soc/bus@2100000/usb@2184200/usb-hub@1/wbc-modem@2 power-gpios
DEBUG: of_get_prop_gpio: gpio 33 4 0
DEBUG: of_gpio_to_num: Unpacked gpio 128:4:0 → 128+4
Force exit: no usb device after 30s
1: /usr/lib/wb-utils/wb-gsm-common.sh:518 init_usb_connection(…)
2: /usr/lib/wb-utils/wb-gsm-common.sh:554 ensure_on(…)
3: /usr/bin/wb-gsm:29 restart_if_broken(…)
Error in /usr/lib/wb-utils/wb-gsm-common.sh:71. ‘[[ -n $unlinked_ports ]]’ exited with status 0
Call tree:
1: /usr/lib/wb-utils/wb-gsm-common.sh:1 force_exit_handler(…)
2: /usr/lib/wb-utils/wb-gsm-common.sh:165 force_exit(…)
3: /usr/lib/wb-utils/wb-gsm-common.sh:518 init_usb_connection(…)
4: /usr/lib/wb-utils/wb-gsm-common.sh:554 ensure_on(…)
5: /usr/bin/wb-gsm:29 restart_if_broken(…)
Exiting with status 1

Есть смысл сбросить\обновить\прошить сам модем связи ?

Предполагаю что шить модем нет смысла.

Давайте мы бесплатно поменяем вам оборудование. Курьер привезёт новое оборудование и заберёт старое:

  • WB7 - 2 шт
  • WBC 4g - 2шт

Предполагаемый дефект: потеря модема при его включении, предположительно просадка питания +5V.

Для возврата напишите, пожалуйста, письмо на info@wirenboard.com.

В письме укажите:

  1. ссылку на эту тему,
  2. серийный номера устройств, AVJYU2EN, ARGTA4VK
  3. ваш действующий телефон, адрес доставки, ФИО получателя.

Эта тема была автоматически закрыта через 7 дней после последнего ответа. В ней больше нельзя отвечать.