{"id":414,"date":"2010-03-02T14:02:44","date_gmt":"2010-03-02T07:02:44","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=414"},"modified":"2010-03-02T14:02:44","modified_gmt":"2010-03-02T07:02:44","slug":"zte-modem","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=414","title":{"rendered":"ZTE usb Modem AC2726 on KLIXs"},"content":{"rendered":"<p><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/03\/zte_ac2726.jpg\" rel=\"lightbox[414]\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-full wp-image-648\" title=\"zte_ac2726\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/03\/zte_ac2726.jpg\" alt=\"\" width=\"127\" height=\"240\" \/><\/a>My friend got this cdma ZTE usb modem this week and tested on KLIXs but he never manage to get this modem running, so here is the steps to make it work using usb_modeswitch :<br \/>\nFirst of all, we have to learn something by investigating the lsusb output at the time this modem was inserted into usb slot :<br \/>\n{code type=css}[root@jfklixs-domain SOURCES]# lsusb<br \/>\nBus 001 Device 003: ID 0402:5602 ALi Corp. Video Camera Controller<br \/>\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br \/>\nBus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\nBus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\nBus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\n<strong>Bus 002 Device 005: ID 19d2:fff5 ONDA Communication S.p.A.<\/strong><br \/>\nBus 002 Device 002: ID 046d:c047 Logitech, Inc. Laser Mouse<br \/>\nBus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\n[root@jfklixs-domain SOURCES]#{\/code}<br \/>\nNow see what dmesg give us for more information :<br \/>\n{code type=css}scsi 2:0:0:0: CD-ROM            ZTE      USB Storage FFF1 2.31 PQ: 0 ANSI: 2<br \/>\nscsi 2:0:0:0: Attached scsi generic sg1 type 5<br \/>\nusb-storage: device scan complete<br \/>\nDriver &#8216;sr&#8217; needs updating &#8211; please use bus_type methods<br \/>\nsr0: scsi-1 drive<br \/>\nsr 2:0:0:0: Attached scsi CD-ROM sr0<br \/>\nsr0: CDROM (ioctl) error, command: Get configuration 46 00 00 00 00 00 00 00 20 00<br \/>\nsr: Sense Key : No Sense [current]<br \/>\nsr: Add. Sense: No additional sense information<br \/>\n[root@jfklixs-domain software]#{\/code}<br \/>\nIt&#8217;s not hard to know by investigating the dmesg output that this device has a flip flop device state that the usb device now acting as standard usb storage cdrom rather than a modem, so we must switch them unto a modem device by using usb_modeswitch.<br \/>\nInstall usb_modeswitch package from synaptic, and add this at the end of \/etc\/usb_modeswitch.conf before running usb_modeswitch :<br \/>\n{code type=css}########################################################<br \/>\n# \/etc\/usb_modeswitch.conf<br \/>\n#<br \/>\n# Smart ZTE AC2726 (EVDO)<br \/>\n#<\/p>\n<p>DefaultVendor=  0x19d2<br \/>\nDefaultProduct= 0xfff5<\/p>\n<p>TargetVendor=   0x19d2<br \/>\nTargetProduct=  0xfff1<\/p>\n<p>MessageContent=&#8221;5553424312345678c00000008000069f030000000000000000000000000000&#8243;{\/code}<br \/>\nSave it and now run the usb_modeswitch :<br \/>\n{code type=css}[root@jfklixs-domain SOURCES]# usb_modeswitch<br \/>\nLooking for target devices &#8230;<br \/>\nNo devices in target mode or class found<br \/>\nLooking for default devices &#8230;<br \/>\nFound default devices (1)<br \/>\nAccessing device 005 on bus 002 &#8230;<br \/>\nUsing endpoints 0x0a (out) and 0x89 (in)<br \/>\nInquiring device details; driver will be detached &#8230;<br \/>\nLooking for active driver &#8230;<br \/>\nOK, driver found (&#8220;usb-storage&#8221;)<br \/>\nOK, driver &#8220;usb-storage&#8221; detached<\/p>\n<p>Received inquiry data (detailed identification)<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nVendor String: ZTE<br \/>\nModel String: USB Storage FFF1<br \/>\nRevision String: 2.31<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>Device description data (identification)<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nManufacturer: ZTE, Incorporated<br \/>\nProduct: USB Storage<br \/>\nSerial No.: 000000000002<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nSetting up communication with interface 0 &#8230;<br \/>\nTrying to send the message to endpoint 0x0a &#8230;<br \/>\nOK, message successfully sent<br \/>\nDevice is gone, skipping any further commands<br \/>\n-&gt; Run lsusb to note any changes. Bye.<br \/>\n[root@jfklixs-domain SOURCES]#{\/code}<br \/>\nThe usb_modeswitch should flip up the usb storage device turns into usb modem, and this should be noted using lsusb which now show fff1 product code :<br \/>\n{code type=css}[root@jfklixs-domain SOURCES]# lsusb<br \/>\nBus 001 Device 003: ID 0402:5602 ALi Corp. Video Camera Controller<br \/>\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br \/>\nBus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\nBus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\nBus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\n<strong>Bus 002 Device 006: ID 19d2:fff1 ONDA Communication S.p.A.<\/strong><br \/>\nBus 002 Device 002: ID 046d:c047 Logitech, Inc. Laser Mouse<br \/>\nBus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\n[root@jfklixs-domain SOURCES]#{\/code}<br \/>\nNow modprobe and pickup the modem usbserial driver so it create the modem device node as ttyUSB0<br \/>\n{code type=css}[root@jfklixs-domain SOURCES]# modprobe usbserial vendor=0x19d2 product=0xfff1<br \/>\n[root@jfklixs-domain SOURCES]#{\/code}<br \/>\nCheck the corresponding created modem device node using dmesg again :<br \/>\n{code type=css}usbcore: registered new interface driver usbserial<br \/>\nusbserial: USB Serial support registered for generic<br \/>\nusbserial_generic 2-2:1.0: generic converter detected<br \/>\nusb 2-2: generic converter now attached to ttyUSB0<br \/>\nusbserial_generic 2-2:1.1: generic converter detected<br \/>\nusb 2-2: generic converter now attached to ttyUSB1<br \/>\nusbserial_generic 2-2:1.2: generic converter detected<br \/>\nusb 2-2: generic converter now attached to ttyUSB2<br \/>\nusbserial_generic 2-2:1.3: generic converter detected<br \/>\nusb 2-2: generic converter now attached to ttyUSB3<br \/>\nusbserial_generic 2-2:1.4: generic converter detected<br \/>\nusb 2-2: generic converter now attached to ttyUSB4<br \/>\nusbcore: registered new interface driver usbserial_generic<br \/>\nusbserial: USB Serial Driver core<br \/>\n[root@jfklixs-domain software]#{\/code}<br \/>\nDone, Now you could possibly create the modem connection setup and account setup using KPPP.<br \/>\nI create some small desktop script just to ease my friend so he has not to always type that command all over again each time he plugged the zte modem.<\/p>\n<p>Oh btw, use this Init String command to avoid modem disconnecting problem if that bothers you :<br \/>\n{code type=css}ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0{\/code}<br \/>\nsomehow the modem connection using smart provider was perform well on my friend laptop, but not on mine, so I have to use that command init string to stay connected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My friend got this cdma ZTE usb modem this week and tested on KLIXs but he never manage to get this modem running, so here is the steps to make it work using usb_modeswitch : First of all, we have to learn something by investigating the lsusb output at the time this modem was inserted [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,9],"tags":[245,246],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/414"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=414"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/414\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}