Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:network:wan:wwan:ethernetoverusb_ncm [2024/02/02 22:50] – [Use NCM USB Dongle for WAN connection] andrewz | docs:guide-user:network:wan:wwan:ethernetoverusb_ncm [2024/11/17 11:17] – [Network configuration] andrewz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Use NCM USB Dongle for WAN connection ====== | ====== Use NCM USB Dongle for WAN connection ====== | ||
| - | [[http:// | + | [[http:// |
| + | |||
| + | The same applies to external modems connected to USB ports ("dongles") and internal models installed into M.2(NGFF) or mPCIe slots. | ||
| For more information about other protocols commonly used: | For more information about other protocols commonly used: | ||
| Line 24: | Line 26: | ||
| ==== Required Packages ==== | ==== Required Packages ==== | ||
| - | To make use of NCM protocol, packages '' | + | To make use of NCM protocol, packages '' |
| - | To access the PC UI Interface (AT Command port) package '' | + | To access the PC UI Interface (AT Command port) package '' |
| ==== Optional Packages ==== | ==== Optional Packages ==== | ||
| Line 36: | Line 38: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | 1. Install all the needed packages | + | 1. Install all the needed packages |
| + | |||
| + | * For Huawei modems: | ||
| < | < | ||
| - | opkg update | + | root@OpenWrt: |
| - | opkg install kmod-usb-net-huawei-cdc-ncm luci-proto-ncm picocom | + | root@OpenWrt: |
| </ | </ | ||
| - | Other modules will be automatically installed as // | + | * other modems may require different packages, this is an example for Mikrotik modems: |
| - | + | ||
| - | :!: If your have not enough space on your device - think of installing [[docs: | + | |
| - | :!: Another option is Hardware memory upgrade. Refer to your router Forum thread for possibility and instructions. | ||
| - | |||
| - | 2. Reboot the router | ||
| < | < | ||
| - | reboot | + | root@OpenWrt: |
| + | root@OpenWrt: | ||
| </ | </ | ||
| - | 3. Check that everything is OK and you got new device: | + | Additional packages will be automatically installed as //dependencies// |
| - | < | + | |
| - | ls -l /dev/cdc-wdm0 | + | |
| - | crw-r--r-- | + | You can also add the necessary packages when building a new image with [[https://firmware-selector.openwrt.org/|Firmware Selector]]. |
| - | </code> | + | |
| - | If you have no such device - try to find out what went wrong: | + | :!: If your have not enough space on your device - think about upgrading your hardware or installing [[docs:guide-user: |
| - | try **dmesg** to read kernel logs on USB init | + | 2. Reboot the router by executing '' |
| + | |||
| + | 3. Check if you got a new //device//: | ||
| < | < | ||
| - | dmesg | + | root@OpenWrt: |
| + | |||
| + | crw-r--r-- | ||
| </ | </ | ||
| - | or look info about USB devices and interfaces present in the system: | ||
| - | < | ||
| - | cat / | ||
| - | ... | + | If there is no such device found, there is a possibility that completely different name is in use by the device driver, like '' |
| + | * Open System Log from Luci web interface and see what it shows regarding newly discovered USB device(s) | ||
| + | * execute '' | ||
| + | * check the details about USB devices detected by the system by running '' | ||
| + | < | ||
| + | [...] | ||
| T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 | T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 | ||
| D: Ver= 2.10 Cls=00(> | D: Ver= 2.10 Cls=00(> | ||
| Line 96: | Line 100: | ||
| E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms | E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms | ||
| E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=125us | E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=125us | ||
| - | |||
| - | ... | ||
| </ | </ | ||
| Line 107: | Line 109: | ||
| ^ Name ^ Type ^ Required | ^ Name ^ Type ^ Required | ||
| - | | device | + | | device |
| - | | apn | string | + | | apn | string |
| | pincode | | pincode | ||
| | username | | username | ||
| Line 114: | Line 116: | ||
| | auth | string | | auth | string | ||
| | mode | string | | mode | string | ||
| - | | pdptype | + | | pdptype |
| + | | profile | ||
| | delay | number | | delay | number | ||
| - | | profile | ||
| - | You can configure | + | You can configure |
| :!: If option " | :!: If option " | ||
| Line 124: | Line 126: | ||
| ==== Network configuration ===== | ==== Network configuration ===== | ||
| - | Using Luci web interface: navigate to Network → Interfaces → Add new interface… → Protocol : NCM, Interface: " | + | Using Luci web interface: navigate to Network → Interfaces → Add new interface… → Protocol : NCM, Interface: "ttyUSB1" |
| + | |||
| + | The interface selected above is the "AT Command Port" or " | ||
| Enter your APN and select the 'IP Protocol' | Enter your APN and select the 'IP Protocol' | ||
| Line 136: | Line 140: | ||
| config interface ' | config interface ' | ||
| option proto ' | option proto ' | ||
| - | option device '/dev/cdc-wdm0' | + | option device '/dev/ttyUSB1' |
| option pdptype ' | option pdptype ' | ||
| option apn ' | option apn ' | ||