Professional Documents
Culture Documents
User Guide
Version 1.0
Trademarks
is the trademark of Neoway Technology Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
This document applicable models are: N720, N710.
This document is intended for system engineers (SEs), development engineers, and test engineers.
The information in this document is subject to change without notice due to product version update or
other reasons.
Every effort has been made in preparation of this document to ensure accuracy of the contents, but all
statements, information, and recommendations in this document do not constitute a warranty of any kind,
express or implied.
Sales@neoway.com
Support@neoway.com
Website: http://www.neoway.com
Revision Record
Issue Date Changes
V1.0 2017-04 Initial draft
Content
1 About This Document ...................................................................................................... 1
2 RIL Driver ........................................................................................................................... 2
2.1 VID and PID List................................................................................................................................ 2
2.2 Function .............................................................................................................................................. 2
2.3 Software Version ................................................................................................................................ 2
3 USB Driver Configuration ............................................................................................... 3
3.1 Adding VID/PID ................................................................................................................................. 3
3.2 Configuring the Serial Port Driver in Menuconfig GUI ..................................................................... 3
3.3 Testing ................................................................................................................................................ 4
4 Configuring USB NDIS Kernel ...................................................................................... 5
4.1 Configuring NDIS in Menuconfig GUI .............................................................................................. 5
4.2 Test ..................................................................................................................................................... 6
5 RIL Integration ................................................................................................................... 7
5.1 About RIL ........................................................................................................................................... 7
5.1.1 Communication between AP and BP......................................................................................... 7
5.1.2 Position of RIL in Android System ........................................................................................... 8
5.2 Configuring RIL ................................................................................................................................. 8
6 FAQ .................................................................................................................................... 11
6.1 How to Set APN ................................................................................................................................11
6.2 How to Capture Logs........................................................................................................................ 13
6.3 How to Analyze Dialup Failure ........................................................................................................ 13
2 RIL Driver
2.1 VID and PID List
Neoway has several models of 4G LTE modules, which support NDIS and PPP dial-up. The following
table shows corresponding VID and PID list.
Model no VID PID
N720 0x2949 0x8241
N710 0x05c6 0x8080
2.2 Function
Function Support or Not
Data service YES
Step 4 Select USB Gadget Drivers (Serial Gadget (with CDC ACM and CDC OBEX support)).
Step 5 Go back to the previous directory, select USB Serial Converter support.
3.3 Testing
After compiling and reflashing and the serial port is configured, check whether /dev/ttyUSB* is generated
in the setting node.
If it is generated, upper applications can communicate with the module via these ports (send AT
commands, etc.).
4.2 Test
Recompile the software and reflash into device. Power on the device again and plug in module. After the
device is powered on, usb0 is added when querying using the netcfg command.
5 RIL Integration
Decompression Neoway_Android_Ril.tar.gz.
libreference-ril.so (PPP dialup)
libreference-ril_ndis.so (used for NDIS dialup. Modify the library name when using it)
init.gprs-pppd (PPP dialup script)
Neoway_Android_RIL_Driver_User_Guide_V1.0
NDIS
Specify the library name as shown below. Then jump to Step 5 to add the file.
service ril-daemon /system/bin/rild –l libreference-ril.so
class main
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio sdcard_rw
PPP
Perform the following steps:
1. Specify the library and serial device name.
Delete the RIL library file and serial device name after -1 in service rild and add the following
contents:
service ril-daemon /system/bin/rild -l libreference-ril.so
class main
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio sdcard_rw
ril-deamon and /system/bin/rild, used to start RILD are the executable files, which are generated
after hardware/ril/rild.c. The parameters are as follows:
− -l: Specifies that the AT-related dynamic link library is libreference-ril.so;
− -d: Specifies that the AT port is /dev/ttyUSB0 (depends on the number displayed).
2. Add a dialup script.
service pppd_gprs /etc/init.gprs-pppd
class main
disabled
oneshot
group radio cache inet misc
3. Add permissions.
Create peers and chat directories.
on post-fs-data
......
mkdir /data/ppp 0777 root root
mkdir /data/ppp/peers 0777 root root
mkdir /data/ppp/chat 0777 root root
PPP dialup
Preset init.gprs-ppspd and 3gdata_call.conf to the path specified by init.rc and modify the
permissions.
adb push init.gprs-pppd /etc
adb push libreference-ril.so /system/lib
adb shell chmod 777 /etc/init.gprs-pppd
adb shell chmod 777 /system/lib/libreference-ril.so
6 FAQ
6.1 How to Set APN
Perform the steps as follows:
Step 1 Tap the settings and navigate to the Access Point Names page.