background image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Wireless Module Driver User Guide 

for EmbeddedLinux 

 

 

 

Welink Your Smart

 

Version 

1.1, 2014-08-04 

MW3820 

Summary of Contents for Welink MW3820

Page 1: ...Wireless Module Driver User Guide for EmbeddedLinux Welink Your Smart Version 1 1 2014 08 04 MW3820 ...

Page 2: ...ing in R D manufacture and sales of wireless module product is the registered trademark of ZTEWelink The name and logo of ZTEWelink are ZTEWelink s trademark or registered trademark Meanwhile ZTEWelink is granted to use ZTE Corporation s registered trademark The other products or company names mentioned in this document are the trademark or registered trademark of their respective owner Without th...

Page 3: ...ddedLinux All Rights reserved No Spreading abroad without Permission of ZTEWelink II MW3820 Revision History Version Date Description 1 0 2014 01 24 1st version 1 1 2014 08 04 Update the template and format of this document Update the Table 2 1 ...

Page 4: ...h Industrial Park Nanshan District Shenzhen P R China Web www ztewelink com Phone 86 755 86360200 8679 E Mail ztewelink zte com cn Note Consult our website for up to date product descriptions documentation application notes firmware upgrades troubleshooting tips and press releases Besides ZTEWelink provides various technical support ways to the customers such as support by phone website instant me...

Page 5: ... 5 2 Driver Integration 6 2 1 Enable USB modem driver from kernel 6 2 2 Add VID PID to USB modem driver 6 2 3 Enable PPP feature from kernel 6 2 4 Build the kernel 7 2 5 Verify whether modem driver is loaded 7 3 Make Data Connection Using PPPD and CHAT 8 3 1 Sample script for data connect using WCDMA modem 8 3 2 Start to dial and connect 9 3 3 Disconnect 9 4 TROUBLESHOOTING 10 4 1 Dropped connecti...

Page 6: ...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 developm...

Page 7: ...dem 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_ids USB_DEVICE 0x19d2 0xFFEB 0x19d2 is ZTE VID it is appropriate for all ZTEWelink wireless modems 0xFFEB 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 ...

Page 8: ...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 dmesg grep i ttyUSB You should see something like usb 2 1 3 generic converter now attached to ttyUSB0 usb 2 1 3 generic converter now attached to ttyUSB1 usb 2 1 3 generic converter now attached to ttyUSB2 This ...

Page 9: ...ve 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 OPTION_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 1152...

Page 10: ...se use Anyname and Anypassword File 3 zte_ppp_dialer ABORT NO CARRIER ABORT ERROR TIMEOUT 120 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 Start to dial and conne...

Page 11: ...ped connection 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 ...

Reviews: