I'm using more than one 4G Huawei 3372h modems. These dongles mode of operation is HiLink, so I have to use usb_modeswitch to operate them. The problem is that these dongles are one-by-one copies.. there are no any differences in ether, serial number and so.. and there are no possibilities to change serial or ether.
When the system is booted, dongles are recognized as eth1, eth2, ... but the numbering is always random, depending on how fast modem is connected to the cellular network.
I want to hardly associate USB PORT numbers with eth numbers (to be able to specify static IP settings).
This link https://askubuntu.com/questions/49910/h ... l-adapters says that it is possible to recognize two identical devices by using USB Port numbers. However, I am newbee and cant understand HOW to do this..
I'm trying to run lsusb, but the dongle is always recognized as a device 005 independently on what usb port is used (You can replug, but after restart it becomes 005 again).
Code: Select all
pi64 /etc # lsusb
Bus 001 Device 005: ID 12d1:14dc Huawei Technologies Co., Ltd. E33372 LTE/UMTS/GSM HiLink Modem/Networkcard
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
https://paste.pound-python.org/show/qHz ... UylX9M12t/
It will be great to get some help, advises or some links to read.. Please remember that I;m not an experience linux user and udev man does not have examples on device mapping based on USB port number.


