Hide thumbs Also See for N720:

Advertisement

N720 User Manual
Linux
Version 1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the N720 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Neoway N720

  • Page 1 N720 User Manual Linux Version 1.0...
  • Page 2 Neoway provides customers complete technical support. If you have any question, please contact your account manager or email to the following email addresses: Sales@neoway.com...
  • Page 3 N720 User Manual (Linux) Revision Record Issue Changes Revised By Date V1.0 Initial draft Luojian 2017-07 Copyright © Neoway Technology Co., Ltd...
  • Page 4: Table Of Contents

    5.5 Test and Disconnection ........................22 5.5.1 Testing the Connection ......................22 5.5.2 Disconnecting the Connection....................23 6 Establishing Connection Using ECM ................24 6.1 Checking Device ..........................24 6.2 Adding VID and PID ........................24 Copyright © Neoway Technology Co., Ltd...
  • Page 5 6.3 Adding ECM Driver to Kernel ......................24 6.4 Dialing Up Using RNDIS ......................... 26 6.5 Test and Disconnection ........................27 6.5.1 Testing the Connection ......................27 6.5.2 Disconnecting the Connection....................27 7 FAQ ............................ 28 Copyright © Neoway Technology Co., Ltd...
  • Page 6 N720 User Manual (Linux) About This Document This document provides guidance about how to add the USB driver of the N720 and how to share the Internet access of an N720 on Linux. Copyright © Neoway Technology Co., Ltd...
  • Page 7: Port Mapping

    N720 User Manual (Linux) 1 Port Mapping N720 supports network share via pppd, RNDIS, ECM, and RMNET. Each mode corresponds to different VID and PID. Developers can switch the mode by sending AT command (AT+NETSHAREMODE). The mapping between the ports and share modes is shown as follows: VID: 0x2949 PID: 0x8241 Support pppd/RNDIS dialup ...
  • Page 8: Loading Usb Driver

    In the figure above, the VID of N720 is 0x2949 and the PID of N720 is 0x8241. If the host does not identify N720, check whether N720 is connected to the host, whether it is powered up and started, or whether it is connected to the host through USB.
  • Page 9: Testing At Commands

    Power up the host again and execute ls /dev/ttyUSB*. If N720 is loaded successfully, ttyUSB0 to ttyUSBx are listed under /dev. Two ttyUSB ports can be used to send AT commands. One is used as modem port and the other one is used as AT port.
  • Page 10 Test AT commands. Using a serial port debugging tool  Open the UART debugging tool and configure the UART port. minicom –s Configure the setting as shown in the above figure. Send AT commands. Copyright © Neoway Technology Co., Ltd...
  • Page 11 AT+CGREG? ////Query the registration status of the PS domain (data service) +CGREG: 0,1 AT$MYSYSINFO //Query the mode of the network registered. $MYSYSINFO: 4,03 //Registered China Telecom 4G network. AT+COPS? //Query carrier's information. +COPS: 0,0,"CHINA TELECOM",7 //China Telecom Copyright © Neoway Technology Co., Ltd...
  • Page 12 Only modem port or AT port can be used to send AT commands.  If any messages are displayed to ask for permission, modify the permission for the ttyUSB port.  If the AT command contains any special character, add \ before it.  Copyright © Neoway Technology Co., Ltd...
  • Page 13: Establishing Connection Using Pppd

    PPP connection using pppd. 3.1 Checking Device Execute lsusb to check if N720 is identified. N720 has been identified with a VID of 0x2949 and a PID of 0x8241. 3.2 Adding VID and PID In kernel/drivers/usb/serial/option.c, add VID:0x2949 PID:0x8241 to option_ids.
  • Page 14: Dialing Up

    AT commands and response to them between chat and the GPRS module. Check the carrier information and network mode, and the set APN. AT+CGDCONT=1,”IP”,”APN_XXX” XXX indicates the carrier APN. For example, 2G, 3G, and 4G of China Mobile: CMNET Copyright © Neoway Technology Co., Ltd...
  • Page 15 "card" password "card" remotename cmnet ipparam cmnet usepeerdns connect '/usr/sbin/chat -s -v -f /etc/ppp/peers/gprs-chat' Set the modem port as the dialup port. Otherwise, the module cannot dial up a network successfully. /etc/ppp/gprs-chat − Copyright © Neoway Technology Co., Ltd...
  • Page 16 N720 User Manual (Linux) TIMEOUT 5 ABORT "BUSY" ABORT "DELAYED" ABORT "ERROR" ABORT "NODIALTONE" ABORT "NOCARRIER" TIMEOUT 5 ''AT OK AT+CSQ OK AT+CGDCONT=1,"IP","ctnet" OK ATD*99# Execute pppd call gprs-dial &. CONNECT '' Copyright © Neoway Technology Co., Ltd...
  • Page 17: Test And Disconnection

    Ping a valid domain name. If a website can be reached through IP address but cannot be reached through its domain name, add DNS(114.114.114.114) to /etc/resolv.conf. 3.5.2 Disconnecting the Connection Execute the ppp-off script. Copyright © Neoway Technology Co., Ltd...
  • Page 18 N720 User Manual (Linux) Run the # killall pppd command. Copyright © Neoway Technology Co., Ltd...
  • Page 19: Establishing Connection Using Rmnet

    4 Establishing Connection Using RMNET N720 supports dialup and connection setup using RMNET with a VID of 0x2949 and a PID of 0x8243. GobitNet driver is used to interact with N720 on the Linux for network dialup through RMNET. GobitNet will create a network device called ethX and a /dev/qcqmiX character device.
  • Page 20 [M]Gobi USB driver for NWY module Compile the kernel again and burn the kernel to the host. Power up the host and check whether the driver is loaded successfully. Input lsusb –t to check whether the driver is identified. Copyright © Neoway Technology Co., Ltd...
  • Page 21: Configuring Before Dialup

    Check if qcqmi1 is created successfully. 4.4 Configuring Before Dialup To dial up and set a connection through RMNET on Linux, developers need to use Neoway dialup program. Execute make under the NWY-CM-code/src directory to obtain the NWY-CM program. Assign the NWY-CM program execution permission.
  • Page 22: Dialing Up Using Rmnet

    0: No authentication auth: authentication 1: PAP method 2: CHAP Save dialing -f logfilename log. 4.5 Dialing Up Using RMNET Run the following commands to confirm that N720 registered a network. AT+CPIN? AT+CSQ AT+CREG? AT+CGREG? AT$MYSYSINFO Copyright © Neoway Technology Co., Ltd...
  • Page 23: Test And Disconnection

    Execute NWY0CM to dial up and establish a network connection. 4.6 Test and Disconnection 4.6.1 Testing the Connection Input ifconfig to check the IP address of eth1. Ping a valid IP address to check if the host is connected to the Internet. Copyright © Neoway Technology Co., Ltd...
  • Page 24: Disconnecting The Connection

    N720 User Manual (Linux) Ping a valid domain name. 4.6.2 Disconnecting the Connection Run the killall NWY-CM command. Copyright © Neoway Technology Co., Ltd...
  • Page 25: Establishing Connection Using Rndis

    N720 User Manual (Linux) 5 Establishing Connection Using RNDIS N720 supports dialup and connection setup using RMNET with a VID of 0x2949 and a PID of 0x8241. Send AT+NETSHAREMODE=2 to N720 to switch the configuration if t1.1he PID is not 0x8241.
  • Page 26: Dialing Up Using Rndis

    Query whether the RNDIS driver is loaded successfully. Input lsusb –t. Input lsmod | grep rndis. 5.4 Dialing Up Using RNDIS Run the following commands to confirm that N720 registered a network. AT+CPIN? //Query SIM card status. AT+CSQ //Query signal.
  • Page 27: Test And Disconnection

    After dialing up and establishing a connection using RNDIS, the module cannot dial up or establish a connection using pppd anymore. 5.5 Test and Disconnection 5.5.1 Testing the Connection Input ifconfig to check the IP address of usb0. Copyright © Neoway Technology Co., Ltd...
  • Page 28: Disconnecting The Connection

    N720 User Manual (Linux) Ping a valid website to see if the connection works properly. 5.5.2 Disconnecting the Connection Send AT+NETSHAREACT=1,0,0 to disconnect the connection. Copyright © Neoway Technology Co., Ltd...
  • Page 29: Establishing Connection Using Ecm

    N720 User Manual (Linux) 6 Establishing Connection Using ECM N720 supports dialup and connection setup using ECM with a VID of 0x2949 and a PID of 0x8242. Send AT+NETSHAREMODE=2 to N720 to switch the configuration if t1.1he PID is not 0x8242.
  • Page 30 Compile the kernel again and burn the kernel to the host. Power up the host and check whether the usb0 is displayed. Query whether the ECM driver is loaded successfully. Input lsusb –t. Input lsmod | grep cdc. Copyright © Neoway Technology Co., Ltd...
  • Page 31: Dialing Up Using Rndis

    N720 User Manual (Linux) 6.4 Dialing Up Using RNDIS Run the following commands to confirm that N720 registered a network. AT+CPIN? //Query SIM card status. AT+CSQ //Query signal. AT+CREG? AT+CGREG? AT$MYSYSINFO //Query network mode. Send AT commands to dial up.
  • Page 32: Test And Disconnection

    6.5.1 Testing the Connection Input ifconfig to check the IP address of usb0. Ping a valid website to see if the connection works properly. 6.5.2 Disconnecting the Connection Send AT+NETSHAREACT=1,0,0 to disconnect the connection. Copyright © Neoway Technology Co., Ltd...
  • Page 33: Faq

    Input lsusb or dmesg to check the USB device information. Check the VID and PID are added correctly. Check if the modifications are compiled by the system. You can find the USB ports by inputting ls /dev/ttyUSB* if all the above are correct. Copyright © Neoway Technology Co., Ltd...

Table of Contents

Save PDF