Проекты GitHub SourceForge |
OpenAP /
E3276LTE модем Huawei 822FT/etc/udev/rules.d/50-huawei-822ft.rules# ## This rules are for the new version of udev( >= udevinfo, version 098 ). ## The command to check the version is : udevinfo -V ## ################################################################################### ACTION=="add", SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1*ip50", RUN+="/usr/sbin/usb_modeswitch -v 0x12D1 -p 0x155B -M 55534243000000000000000000000011060000000100000000000000000000" ACTION=="add", SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1506*", RUN+="/sbin/modprobe usbserial vendor=0x12d1 product=0x1506" SUBSYSTEMS=="usb", ENV{MODALIAS}=="usb:v12D1p1506*", ENV{MODALIAS}="option" SUBSYSTEMS=="usb",ATTRS{modalias}=="usb:v12D1*", KERNEL=="ttyUSB*", ATTRS{bInterfaceSubClass}=="02", ATTRS{bInterfaceProtocol}=="61", SYMLINK+="ttyUSB_utps_modem" SUBSYSTEMS=="usb",ATTRS{modalias}=="usb:v12D1*", KERNEL=="ttyUSB*", ATTRS{bInterfaceSubClass}=="02", ATTRS{bInterfaceProtocol}=="62", SYMLINK+="ttyUSB_utps_pcui" SUBSYSTEMS=="usb",ATTRS{modalias}=="usb:v12D1*", KERNEL=="ttyUSB*", ATTRS{bInterfaceSubClass}=="02", ATTRS{bInterfaceProtocol}=="63", SYMLINK+="ttyUSB_utps_diag" SUBSYSTEMS=="usb",ATTRS{modalias}=="usb:v12D1*", KERNEL=="ttyUSB*", ATTRS{bInterfaceSubClass}=="02", ATTRS{bInterfaceProtocol}=="64", SYMLINK+="ttyUSB_utps_pcsc" SUBSYSTEMS=="usb",ATTRS{modalias}=="usb:v12D1*", KERNEL=="ttyUSB*", ATTRS{bInterfaceSubClass}=="02", ATTRS{bInterfaceProtocol}=="66", SYMLINK+="ttyUSB_utps_control" SUBSYSTEMS=="usb",ATTRS{modalias}=="usb:v12D1*", KERNEL=="ttyUSB*", ATTRS{bInterfaceSubClass}=="02", ATTRS{bInterfaceProtocol}=="76", SYMLINK+="ttyUSB_utps_ncm" /etc/ppp/peers/mts3g# # This is the default configuration used by pon(1) and poff(1). # See the manual page pppd(8) for information on all the options. # MUST CHANGE: replace myusername@realm with the PPP login name given to # your by your provider. # There should be a matching entry with the password in /etc/ppp/pap-secrets # and/or /etc/ppp/chap-secrets. user "mts" # MUST CHANGE: replace ******** with the phone number of your provider. # The /etc/chatscripts/pap chat script may be modified to change the # modem initialization string. connect "/usr/sbin/chat -v -f /etc/chatscripts/mts3g" # Serial device to which the modem is connected. /dev/ttyUSB_utps_modem # Speed of the serial line. 2097152 # Assumes that your IP address is allocated dynamically by the ISP. noipdefault # Try to get the name server addresses from the ISP. usepeerdns # Use this connection as the default route. defaultroute replacedefaultroute # Makes pppd "dial again" when the connection is lost. persist mtu 1460 # Do not ask the remote to authenticate. noauth /etc/chap-secrets# Secrets for authentication using CHAP # client server secret IP addresses mts mts-3g mts * /etc/chatscripts/mts3g'' \rATZ OK 'AT+CGDCONT=1, "IP", "internet.mts.ru"' OK ATDT*99# /etc/chatscripts/mts4g'' \rAT^NDISDUP=1,1,"internet.mts.ru"' '^NDISSTAT:1,,,"IPV4"' |