I want to support multiple 3G/4G USB sticks for my openwrt setup.
I have two dongles that need different pppd_options and different chatscripts.
I've managed to add the pppd_options to the network-config, by adding it on hotuplugging and detecting the usb id, however, the two dongles have a slightly different AT command set, which is why I need to change them
I couldn't find if there is a way to specify the chatscript used by the 3g protocol in network config. Has anyone found such a way?
I know that another option is to symlink /etc/chatscripts/3g.chat to whichever chatscript I need but if I could do everything with just uci commands that would be neat.
The sticks I'm using are a Huawei E3531 and an Alcatel IK41VE M2M.
I'm using the guide from [OpenWrt Wiki] Use 3g/UMTS USB Dongle for WAN connection which tells you to use the 3g protocol in the network configuration. Then it seems that the 3g protocol just sets up the connection through PPP.
The alcatel dongle uses mbim and the huawei dongle uses cdc_ether if I understand this all correctly.
The main issue is that the huawei dongle has AT+SYSCFG=<...> while the alcatel dongle only has the AT^SYSCFGEX=<...> to change band settings. That's why I'd like to set the chatscript depending on the dongle that is being used