Home
ZTE Wireless Modem UserGuide For EmbeddedLinux
Contents
1. In the event that the connection is lost due to any reason a manual reconnect is required You can configure your connection to automatically redial on disconnect 4 2 DNS issues For DNS related issues please verify entries in etc resolv conf file Please refer to your Linux distribution s user manual for more information about fixing this problem 4 3 How to get log If some error occurred please provide us the QXDM LOG The LOG can be captured on Linux by the tools provided by ZTE named DiagLog which can be found in directory dir tools DiagLog 8 Ke lt U EMAER APEE DA BRS TA AMM gt All Rights reserved No Spreading abroad without Permission of ZTE
2. 3 55W ne au ZTE py A ah FF Internal Use Only A User and password may be different due to mobile operator If operator do not provide username and password please use Anyname and Anypassword File 3 zte_ppp_dialer ABORT NO CARRIER ABORT ERROR TIMEOUT 120 as ATE SAY ATE ECHO ON OK ATH OK ATP OK AT CGDCONT 1 IP 3GNET OK ATD 99 CONNECT Note the number 99 may vary with your mobile operator 99 is valid in CHINA UNICOM CMNET is the APN may vary with your mobile operator 3GNET is valid in CHINA UNICOM File4 disconnect bin sh killall pppd 3 2 Sample script for data connect using CDMA modem File 1 ppp on bin sh clear OPTION_FILE zte_options DIALER_SCRIPT pwd zte_ppp_dialer exec usr sbin pppd file 0PTION_FILE connect usr sbin chat v f DIALER_SCRIPT This file is the main script using option file zte_options and zte_ppp_dialer File 2 zte_options dev ttyUSBO 115200 crtscts modem persist lock noauth noipdefault debug nodetach s o lt U EMAER APEE DA BRA TA AIM All Rights reserved No Spreading abroad without Permission of ZTE ZTE py A ah AF Internal Use Only A user card password card ipcp accept local ipcp accept remote replacedefaultroute defaultroute usepeerdns noccp nobsdcomp novj dump Note dev ttyUSBO is the
3. LTEDR PETN Internal Use Only A ZTE Wireless Modem UserGuide For EmbeddedLinux Content ZTE Wireless Modem UserGuide For EmbeddedLinuXx essessessessesserssrsresreresestrsedesretesbersesersse 1 CONTENT E el ec ceil AE AAN EEA AE 1 1 Tint Muti OM inminente iniret niia EEE EATE AEE E N E aa a 2 E ra o E A E E A R E E E T 2 OANE E E E E E E EE E EE o EEE 2 1 3 CONVENEONS A A A T EE A A 2 L4 Revision hist ty sissies AE Buf prias eindir 2 2 Driver INE Stan onusta nai e A aee oriin a Ea EE aa AESA ESNE 3 2 1 Enable USB modem driver from kernel oseestenssssessssseresssrssersresessresessresessresessreseseresesrs 3 2 2 Add VID PID to USB modem river eeeecesessceseeeseceseeeseeeseeeeeeseeeeeeeeeeeeeeeeeeeeseeeaees 3 2 3 Enable PPP feature from kernel ne Qo visciviacsAcvsccvaleveccvaccviecvacevsecvscuvsesvaneveesvacuvdasvacevaeevaecva 3 2 4 Build the Kernel cis cesvcsssciveessncs A S vactenes ads evettndinnettndssvetbecsuwes nds swettndeanesedeawetbeceunets 3 2 5 Vertify whether modem driver is loaded 0 00 ees esceesceeseeeneceteceseceaeceseceseceaeeeaeeeseeeseeeaeeeaeees 4 3 Make Data Connection Using PPPD and CHAT 00 eee eee ceseeeeeeeetseeeeeeeecaecaeseeesseeaeeeeseeeaee 5 3 1 Sample script for data connect using WCDMA modem ue eee eee ese eseeeeeeseeseeeeeeeeneees 5 3 2 Sample script for data connect using CDMA modem ec eeeeeeeeseeseeseeeeceeeeseeseeeeeeseeas 6 3 3 Start to dal and CONNEC car
4. TER y CONFIG_PPP_ASYNC y CONFIG_PPP_SYNC_TTY y 2 4 Build the Kernel Build kernel and flash this kernel file to target board reboot target board 8 U lt U EMAER APEE DA BRA TA AIM gt All Rights reserved No Spreading abroad without Permission of ZTE ZTE py A ah AF Internal Use Only A 2 5 Vertify whether modem driver is loaded After reboot target system Plug in the modem then driver can be loaded successfully now Although it is not necessary to verify the result of the driver integration step above if you want to be sure that the driver is now associated with your modem Attach the modem to the target board and run the following on the command line dmesglgrep i ttyUSB You should see something like usb 5 1 generic converter now attached to ttyUSBO usb 5 1 generic converter now attached to ttyUSB1 usb 5 1 generic converter now attached to ttyUSB2 This LOG indicates the driver has been loaded In general each ZTE modem has multiports In Linux user can use modem port and AT port For different ZTE modem the device node of modem port and AT port may different Please contact customer manager of ZTE to get Modem interface descriptor lists For example MF206 and AC100 may have the port information as table 2 1 Table 2 1 0 Diag interface dev ttyUSBO PID 0x0117 EnO 1 AT interface dev ttyUSB1 2 Modem interface dev ttyUSB2 0 Mod
5. em interface dev ttyUSBO PID 0x152 A100 1 Diag interface dev ttyUSB1 2 AT interface dev ttyUSB2 B A lt U EMAER APEE DA BRS TA AMM gt All Rights reserved No Spreading abroad without Permission of ZTE ZTE py A ah AF Internal Use Only A 3 Make Data Connection Using PPPD and CHAT This section gives an example for how to setup a data connection using pppd and chat program You should have done Section 2 so that your device can be recognized by the system This also assumes you have already downloaded pppd and install on your current Linux distribution 3 1 Sample script for data connect using WCDMA modem File 1 ppp on bin sh clear OPTION_FILE zte_options DIALER_SCRIPT pwd zte_ppp_dialer exec usr sbin pppd file 0PTION_FILE connect usr sbin chat v f DIALER_SCRIPT This file is the main script using option file zte_options and zte_ppp_dialer File 2 zte_options dev ttyUSB2 115200 crtscts modem persist lock noauth noipdefault debug nodetach user Anyname password Anypassword ipcp accept local ipcp accept remote replacedefaultroute defaultroute usepeerdns noccp nobsdcomp novj dump Note dev ttyUSB2 is the modem interface of your device please ref table 2 1 to use proper modem interface lt U EMAER PEDA BRA TA AMM gt All Rights reserved No Spreading abroad without Permission of ZTE
6. ini nennir ai Eeen EEr EEEE EE center haedteen sented cetenn ai E 7 eR DB e Te EE E E E ede nied edits 8 4 TROUBRESHOQ TING ics scisccssscisecuieciieassccbunssaecvuegsiaddvacsancvieusasidvacsaecviegsaadduassaadviagsaedsvarsaadviassaacvi 9 Al Dropped COMMECUON niisiis na aa an a E aaa E iaa aia 9 A SAIINS o E A A A A A E A A T A 9 EROA TCO 10 Pet O A A A A A 9 lt U ERATARA PO TBO IRS TA AMES FIR All Rights reserved No Spreading abroad without Permission of ZTE ZTE py A ah AF Internal Use Only A 1 Introduction 1 1 Purpose This document is intended as a guide to describe how to set up and connect to the Internet using ZTE Wireless Modem on the EmbeddedLinux platform using open source software packages Although this document is provided to guide current Linux users to use ZTE Wireless Modems on any EmbeddedLinux distribution however the setup instructions in this document has been tested with uCLinux For setup on other Linux distributions you should still be able to follow the instructions after you download and install the necessary software packages outlined below 1 2 Scope The readers of this document are assumed to software developers generally familiar with EmbeddedLinux development 1 3 Conventions Function declarations function names type declarations and code samples appear in a different font For example include Red font means the information should be notes if ign
7. modem interface of your device please ref table 2 1 to use proper modem interface User and password may be different due to mobile operator If operator does not provide username and password please use Anyname and Anypassword The username and password card is valid in CHINA TELECOM File 3 zte_ppp_dialer ABORT NO CARRIER ABORT ERROR TIMEOUT 120 wy ATE SAY ATE ECHO ON OK ATH OK ATP OK AT ZCAPN card card OK ATD 777 CONNECT Note the number 777may vary with your mobile operator 777 is valid in CHINA TELECOM AT ZCAPN card usrname card password sets the username and password may be different due to mobile operator If operator do not provide username and password please do not add this command File4 disconnect bin sh killall pppd 3 3 Start to dial and connect Open a terminal window and run the Main script ppp on start to dial and connect s lt U EMAER APEE DA BRA TA AMM gt All Rights reserved No Spreading abroad without Permission of ZTE ZTE py A ah AF Internal Use Only A 3 4 Disconnect The way 1 entry ctrl c at a terminal window The way 2 run the disconnect script s o0 lt U EMAER APEE DA BRS TA AMM gt All Rights reserved No Spreading abroad without Permission of ZTE ZTE py A ah AF Internal Use Only A 4 TROUBLESHOOTING 4 1 Dropped connection
8. ore this may cause some failures For example dev ttyUSB 1 4 Revision history The revision history for this document is shown in Table 1 1 Table 1 1 DATE AUTHOR NOTES 18 July 2012 Zhang Yile Initial version of document S N lt U ERA EAA POSE TBO RASHA AMES All Rights reserved No Spreading abroad without Permission of ZTE ZTE py A ah FF Internal Use Only A 2 Driver Integration 2 1 Enable USB modem driver from kernel USB modem driver may be not enabled in the kernel so please go to kernel do make menuconfig and select Device Drivers gt USB gt USB serial gt GSM modem then enable it to be built in CONFIG_USB_SERIAL y CONFIG_USB_SERIAL_GENERIC y CONFIG_USB_SERIAL_OPTION y 2 2 Add VID PID to USB modem driver Modify driver file option c which locates in linux source 2 6 XX drivers usb serial Add modem PID and VID in driver id_table static struct usb_device_id option_idsL USB_DEVICE 0x19d2 0x117 0x19d2 is ZTE VID it is appropriate for all ZTE wireless modems 0x0117 is modem PID which may vary with the modem you use you can use lsusb to get it 2 3 Enable PPP feature from kernel PPP may not enable in the kernel Managed to fix the issue by go to kernel do make menuconfig and select Device Drivers gt Network Device Support gt and then enable following to be built in CONFIG_PPP y CONFIG_PPP_ MULTILINK y CONFIG_PPP_FIL
Download Pdf Manuals
Related Search
Related Contents
User`s manual - Schneider Electric Heureux si je veux Manual Density - Vetek Weighing AB Manual de Instrucciones MODE D`EMPLOI - Communauté d`agglomération Tours Plus Tycon Systems POE-YSPLT-S cable splitter or combiner Panasonic 4GB SDHC Silver Copyright © All rights reserved.
Failed to retrieve file