linuxweb.net

linuxweb.net
improve websites creatively

merchandize
web design is our passionary profession
login
register for free!
shopping cart
en
Choose your language/Sprache auswählen:
English:en|Deutsch:de

CMS Corporate Design/Logo Server Apache fine tuning Linux ( ) linuxweb.net

Surfstick on gentoo (1und1 ZTE MF 823)

Finally! (more detail than other work arounds, will be completed - this doc is still in process) Getting it work can be tricky if your stick must be activated, here my solution works for ZTE MF 823 (1und1 surfstick). It take a lot of time to figure out how to get the stick work, so i will share my experiences with you! Kernel used:4.4.6 You HAVE to disable your current connections! on my system, guess the connections will go down by switching?:
ifconfig enp2s0 down
 ifconfig wlp3s0 down
or so, will do this ... init
emerge --ask wvdial && emerge --ask kppp && emerge --ask usb_modeswitch
Kernel Config;
Device Drivers  --->
     [*] Network device support  --->
         <*>   PPP (point-to-point protocol) support
         [*]     PPP filtering
         <*>     PPP support for async serial ports
         <*>     PPP support for sync tty ports
         <*>     PPP Deflate compression 
         <*>     PPP BSD-Compress compression
     [*] USB support  --->
         [M]   USB Serial Converter support  --->
             [M]   USB Serial Console device support 
             <*>   USB driver for GSM and CDMA modems
compile kernel and add to bootloader, reboot start ppp
Add user to group:
gpasswd -a username uucp
(eg dialout on other distros)
init: lsusb:
Bus 003 Device 008: ID 19d2:1225 ZTE WCDMA Technologies MSM 
for detailed info use:
lsusb -v -d 19d2:1225
(1403 is not modem mode!) 1. to be sure add all modes ...

 modprobe option
 echo "19d2 1225" | tee /sys/bus/usb-serial/drivers/option1/new_id
 modprobe option
 echo "19d2 1403" | tee /sys/bus/usb-serial/drivers/option1/new_id
 modprobe option
 echo "19d2 1405" | tee /sys/bus/usb-serial/drivers/option1/new_id
2.after plugin your stick run:
modprobe usbserial
3. will work out of the box if configured:
usb_modeswitch -v 19d2 -p 1225 -K
 usb_modeswitch -v 19d2 -p 1405 -W -H
succesfully switched your devices should be recognized as 19d2:1405 and ls /dev/ttyS0 not /dev/ttyUSB1 must be present. The stick is recognized as ethernet connection in your system!
lsmod
 Module                  Size  Used by
 usbserial              22405  0
 cdc_ether               4549  0
 usbnet                 20297  1 cdc_ether
 [...]
WOW! This is headway:
ifconfig
 enp0s20u3: flags=4163  mtu 1500
         inet 192.168.0.196  netmask 255.255.255.0  broadcast 192.168.0.255
         inet6 fe80::de9d:433a:18be:e8ff  prefixlen 64  scopeid 0x20
         ether 36:4b:50:b7:ef:a0  txqueuelen 1000  (Ethernet)
         RX packets 47  bytes 3300 (3.2 KiB)
         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 711  bytes 55825 (54.5 KiB)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
When everything is fine you should be able to connect to http://192.168.0.1 ! enter your pin and have fun ....
cmsimgmanager cmsimgmanager
after reboot modprobe usbserial is enough to connect on my system, when a udev rule is specified jump to udev.
add modules="usbserial"to /etc/conf.d/modules to load it on default runlevel.

Connect

unstable!

Optional:

You can choose usb_modeswitch with static conf too:
add this lines to: /etc/usb_modeswitch.conf:

 HuaweiMode=1
 NeedResponse=0
 
 DefaultVendor=0x19d2
 DefaultProduct=0x1225
 
 TargetVendor=0x19d2
 TargetProduct=0x1405
 
 #MessageEndpoint=0x04
 
 CheckSuccess=20
 
 MessageContent="55534243123456780000000000000011062000000100000000000000000000"
for switching use:
usb_modeswitch -c /etc/usb_modeswitch.conf

other dailers

run:
# wvdialconf
1und1 config:
[Dialer Defaults]
 Init1 = ATZ
 Init2 = ATQ0 V1 E1 S0=0 &C1 &D2  FCLASS=0
 Modem Type = USB Modem
 ISDN = 0
 Modem = /dev/ttyUSB1
 Baud = 9600 
 
 [Dialer 1und1]
 Phone = *99#
 New PPD = yes
 Stupid Mode = 1
 Init3 = AT CGDCONT=1,"ip","web.vodafone.de"
 
 [Dialer mypin]
 Init4 = AT CPIN=1234
before using connections or other dialers such as kppp run:
wvdial mypin

Kppp

[...]

Troubleshooting:

create udev rules for device.
/etc/udev/61-option-modem-modeswitch.rules : usbudev.txt

zum Angebot von 1und1Was it helpful? Give feedback! Help, if something is wrong!

- 5237 Chars , Views: 7229 Bewerten:           Rating:0.19
letzte Aktualisierung 2018-05-20 06:50:39 von admin

tuxlayer