1 (edytowany przez marcinwijata 2023-07-19 22:10:54)

Temat: EC200U-EU

Witajcie,
OpenWRT19.07
Chcę dodać obsługę modemu EC200U-EU.
W systemie widać go jako:

Bus 001 Device 004: ID 2c7c:0901 Quectel Wireless Solutions Co., Ltd.

Poszukałem nieco i jedyna podpowiedź jaką znalazłem jest taka:
https://forums.quectel.com/t/ec200u-cn- … inux/21761

You don’t need to change the kernel code, the device you see has nothing to do with Quectel.
You need to manually add your modem ID’s to the standard option driver:
# echo "2c7c 0901" > /sys/bus/usb-serial/drivers/option1/new_id
then check with cat /sys/kernel/debug/usb/devices
Please do not use pictures.

Faktycznie, po dodaniu
# echo "2c7c 0901" > /sys/bus/usb-serial/drivers/option1/new_id
widać w systemie aż 6 nowych interfejsów:

[  238.927708] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[  238.942137] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[  238.956497] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[  238.970618] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[  238.985443] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
[  238.999877] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB5
[  239.014572] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB6

Niestety po restarcie należy ponownie dodać komendą :
# echo "2c7c 0901" > /sys/bus/usb-serial/drivers/option1/new_id
ponieważ nie widać tych portów.
Jak zrobić, żeby to na stałe "zostało" w systemie?
Wydaje mi się, że tych interfejsów pojawia się zbyt dużo jak na modem...ale może się mylę

2

Odp: EC200U-EU

Dodaj to do /etc/rc.local

Czemu w ogóle używasz tak starego wydania?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.