Originally Posted by
someone1
временно подключил модем (речь всё идет про E3276) в Zyxel Keenetic 4G
с прошивкой 2.01 - всё работает и "ни единого разрыва".
Кстати, вот там в fw_v1 кое-что нашлось и для Мегафон M100-1/M150-1:
PHP Code:
# fixups for any modems
# M100-1 AT^QCNCFG? 00 - Auto, 01 - 2G, 02 - 3G, 03 - LTE
44) echo "Huawei E353/E369/E39x/E3276 3G/LTE" > $MODEM_TYPE
grep -q 'Vendor=12d1 ProdID=1506' /proc/bus/usb/devices && MODEM=44
45) echo "M100-1 3G/LTE" > $MODEM_TYPE
grep -q 'Vendor=0408 ProdID=ea40' /proc/bus/usb/devices && MODEM=45
grep -q 'Vendor=0408 ProdID=ea42' /proc/bus/usb/devices && MODEM=45
3276) echo "Huawei E3276 3G/LTE" > $MODEM_TYPE
"E3276")
if [ $MODEM = 44 ]; then
MODEM=3276
# add modem port and hw reset
grep -q 'Sub=02 Prot=10 Driver=option' /proc/bus/usb/devices || {
echo -e "AT^SETPORT=\"A1,A2;10,12,16,A1,A2\"\r" > /dev/ttyUSB0
sleep 1
echo -e "AT+CFUN=4\r" > /dev/ttyUSB0
sleep 1
echo -e "AT+CFUN=6\r" > /dev/ttyUSB0
echo "Modem E3276 has been reconfigured...."
rm $DEVTTYFILE 2> /dev/null
rm /var/lock/modem 2> /dev/null
exit
AT^SETPORT:A1,A2;12,16,A1,A2 - включен режим CDC NCM (Network Card Mode) (по умолчанию)
PHP Code:
= AT+CFUN =
== AT+CFUN? ==
Request current hardware functionality level. Returns the value `x` below.
== AT+CFUN=x[,y] ==
Set the hardware functionality to a certain level.
* `AT+CFUN=0`: minimal functionality [default].
* `AT+CFUN=1`: full functionality.
* `AT+CFUN=2`: disable transmit RF circuits (not supported usually)
* `AT+CFUN=3`: disable receive RF circuits (not supported usually)
* `AT+CFUN=4`: disable transmit and receive RF circuits (//flight mode//)
* `AT+CFUN=5`: GSM only
* `AT+CFUN=6`: WCDMA only
* `AT+CFUN=$x,1` do the same as above, but reset the modem first. USB devices as well
as Mini-PCI-Express devices will detach and reattach after this command is sent.
'''Note:''' FreeBSD 7 and below panic when the USB device disappears and reappears.
The USB stack does not handle detachment properly. This is not easily fixable.
'''Note:''' FreeBSD 8 and up require all open serial ports on the device to be closed
before it will fully detach (symptom: the USB detach message appears, but the device
does not attach again). Example: Attach to the modem with `cu` and type `AT+CFUN=1,1`.
Attach happens only after you exit `cu`. This is intentional behaviour in the TTY
layer to avoid reclaiming names in /dev prematurely.
https://www.anywi.com/3g/wiki/AtCommandCfun