| 565 | === Additional Notes for Improving Stability === |
| 566 | * ublox SARA-R4 Firmware 06.08 resolves MTU issues that caused QMI to fail (pings work as they are 64byte packets but IP wouldn't work on old firmware). Both the older and newer firmware versions are reliable with pppd but when using pppd you must take it down to use AT commands which means your can create a lapse of IP. To update the firmware you must use the ublox Windows EasyFlash utility. |
| 567 | |
| 568 | * The default wget timeout in OpenWrt (uclient-fetch) has a 30sec timeout by default. Be aware of this if using this for testing as you may want to increase that timeout depending on your situation. |
| 569 | |
| 570 | * Boot failures can occasionally occur where the wan interface is not up in OpenWrt if the modem registration takes longer than OpenWrt's default timeout of 10 seconds. This can be set with the 'timeout' option in the QMI config (see config below). |
| 571 | |
| 572 | * Configuring the modem via profiles works much better than trying to specify the items within the parameters manually. An example profile is: |
| 573 | |
| 574 | {{{ |
| 575 | DEVICE=/dev/$(for i in $(ls -d /sys/bus/usb/drivers/option/*/ttyUSB*); |
| 576 | do basename $i; done | tail -n1) |
| 577 | stty -F $DEVICE ignbrk -brkint -icrnl -opost -onlcr -isig -icanon |
| 578 | -iexten -echo -echoe -echok -echoctl -echoke |
| 579 | cat $DEVICE & |
| 580 | pid=$! |
| 581 | at() { echo -n -e "$1\r" > $DEVICE; } |
| 582 | at "AT+CGMI" # u-blox |
| 583 | at "AT+CGMM" # SARA-R410M-52B |
| 584 | at "AT+CSQ" # signal quality |
| 585 | at "AT+COPS=2" # disconnect from network |
| 586 | at "AT+UMNOPROF=0" # set to auto |
| 587 | at "AT+UMNOPROF=3" # set to VZW |
| 588 | at "AT+CFUN=15" # reset modem which will re-enumerate |
| 589 | Show quoted text |
| 590 | set it to 0 first so that it re-configured everything in the profile |
| 591 | |
| 592 | Gateworks OpenWrt configuration: |
| 593 | - OpenWrt 18.06.02 (sha a02809f61bf9fda0387d37bd05d0bcfe8397e25d) |
| 594 | TARGET_imx6=y |
| 595 | TARGET_MULTI_PROFILE=y |
| 596 | TARGET_DEVICE_imx6_DEVICE_ventana-large=y |
| 597 | TARGET_DEVICE_imx6_DEVICE_ventana-normal=y |
| 598 | CONFIG_BUSYBOX_CONFIG_STTY=y |
| 599 | PACKAGE_uqmi=y |
| 600 | PACKAGE_kmod-usb-net-qmi-wwan=y |
| 601 | uci set network.lan= |
| 602 | Show quoted text |
| 603 | uci set network.wan=interface |
| 604 | uci set network.wan.ifname=wwan0 |
| 605 | uci set network.wan.proto=qmi |
| 606 | uci set network.wan.device=/dev/cdc-wdm0 |
| 607 | uci set network.wan.timeout=30 |
| 608 | uci commit network |
| 609 | |
| 610 | }}} |
| 611 | |