VT-M2M-L335 Software User Manual
VT-M2M-L335Software User Manual
Chengdu Vantron Technology Ltd. Co.www.vantrontech.com.cn
All Rights Reserved
VT-M2M-L335 Software User Manual
Page 2 / Total 52
Contents1 Prepare Development Environment........................................52 Explore Device Web Pages.........................................................6
2.1 Web Page Login....................................................................62.2 Setup........................................................................................6
2.2.1 Basic Setup................................................................. 62.2.1.1 WAN Setup........................................................6
2.2.1.1.1 WAN Connection Type.......................62.2.1.1.2 3G Basic Settings................................72.2.1.1.3 3G Advanced and OptionalSettings......................................................................92.2.1.2.1 Router IP Settings.............................102.2.1.2.2 Network Address Server Settings(DHCP)..................................................................... 102.2.1.2.3 Time Settings.....................................11
2.2.2 Network Setup.........................................................122.2.3 DNS..............................................................................13
2.3 Wireless................................................................................ 132.3.1 Basic Settings..........................................................14
2.3.1.1 Wireless AP Mode Settings...................... 142.3.1.2 Wireless Client Mode Settings................15
2.3.2 Wireless Security....................................................152.3.2.1 Wireless Security Policy “WPA Personal”152.3.2.2 Wireless Security Policy “WPAEnterprise”....................................................................162.3.2.3 Wireless Security Policy “802.1x”.........17
2.4 Servces................................................................................. 182.4.1 SNMP Service Settings......................................... 182.4.2 Secure Shell Service Settings............................192.4.3 System Log Service Settings.............................192.4.4 Telnet Service Settings........................................202.4.5 NAS..............................................................................202.4.6 OpenVPN....................................................................21
2.5 NAT.........................................................................................232.5.1 Port Forwarding.......................................................23
2.6 Administration....................................................................242.6.1 Management............................................................24
2.6.1.1 Router Management...................................252.6.1.2 Web Access....................................................252.6.1.3 Remote Access.............................................25
2.6.2 Keep Alive.................................................................262.6.2.1 Schedule Reboot..........................................27
VT-M2M-L335 Software User Manual
Page 3 / Total 52
2.6.2.2 System Watchdog.......................................272.6.3 Commands................................................................272.6.4 Factory Defaults..................................................... 282.6.5 Firmware Upgrade.................................................282.6.6 Backup........................................................................29
2.7 Status.................................................................................... 292.7.1 Router Status...........................................................30
2.7.1.1 System, CPU, Memory and Space Usage302.7.1.2 Network and Modem..................................31
2.7.2 WAN Status...............................................................332.7.3 LAN Status................................................................ 332.7.4 Wireless Status....................................................... 35
3 Advanced Console Debug.........................................................373.1 Console Login.....................................................................373.2 Console Test Commands................................................37
3.2.1 External Modules Power Control.......................373.2.2 Python / Nodejs.......................................................38
3.2.2.1 python2.7.......................................................383.2.2.2 nodejs.............................................................. 38
3.2.3 3G.................................................................................393.2.4 Wifi...............................................................................393.2.5 microSD..................................................................... 393.2.6 Real-Time-Clock......................................................403.2.7 Zigbee.........................................................................403.2.8 GPS.............................................................................. 403.2.9 CAN..............................................................................403.2.10 Get CPU Freq.........................................................413.2.11 Bluetooth................................................................ 413.2.12 Services Init........................................................... 413.2.13 Bluetooth recv file...............................................423.2.14 Bluetooth send file..............................................423.2.15 Pair to other device.............................................43
4 L335 Control M3...........................................................................445 Update and boot.......................................................................... 49
5.1 Update from Micro SD card...........................................495.1.1 Making the Recovery Install tool SD driver..495.1.2 Recovery to EMMC.................................................50
5.2 Update kernel, u-boot, rootfs VIA Web Page..........505.3 Update m3 firmware VIA Web Page...........................50
6 Restore Factory Settings...........................................................516.1 Restore by pressing reset button............................... 516.2 Restore via web page......................................................51
VT-M2M-L335 Software User Manual
Page 4 / Total 52
6.3 Restore all parts................................................................51Appendix A: Getting Help.............................................................52
History RevisionsVersionNumber
Author Comment
1.0 lc.zong VT-M2M-L335 XOS.1.1 z.zeng VT-M2M-L335 Gen2 XOS.1.2 z.zeng Fix some wrong thing in this doc.1.3 jl.tang Fix description about restore
button.1.4 h.liu Add python2.7 and nodejs7.10 .
Add Freeradius.
VT-M2M-L335 Software User Manual
Page 5 / Total 52
1 Prepare Development EnvironmentIf you want evaluate system via device integrated web pages,
you need have below items prepared:
● A host computer with browser pre-installed
● A network cable for the device which allow the host computeraccess the device
● Vantron provided dedicate 12V power adapter.
● Have already read the “Release Note” and are trying to followinstructions list in current “User Manual”.
If you want to login into device console via Telnet, SSH or UARTDebug Port, the below items are required.
● A Terminal Tool should be installed on the host computer(SecureCRT, PUTTY, or telnet/ssh/minicom of Linux).
● A female-male non-crossed RS232 cable, if you want login intothe Debug UART Console.
If you want to compile your own source code with Vantronprovided toolchain, and download it onto the device to start it, thebelow Operating System is suggested to be pre-installed on the hostcomputer.
● Ubuntu 11.10 64 bits, Ubuntu12.04 32bits and Ubuntu 10.04 32bits are verified to be okfor development. Other Linux popular distributions should be okbut not verified by Vantron.
VT-M2M-L335 Software User Manual
Page 6 / Total 52
2 Explore Device Web PagesInsert a network cable into the Ethernet port, insert the dedicate
12V DC into the power jack. Device will be powered up within 20seconds until a short buzz.
2.1 Web Page Login
Commonly the default IP address of L335 is “192.168.0.1”, thedefault login username and password are “admin/admin”. Thesesettings are listed in the Software Release Note, which might bevariable between different distributions.
The first login requires user to change the default username andpassword. These modified login settings will affect login via webpages, SSH and Telnet.
2.2 Setup
2.2.1 Basic SetupThe “Basic Setup” consists of “WAN Setup” and “Network Setup”.
Local network settings reside in “Network Setup”.
2.2.1.1 WAN Setup
2.2.1.1.1 WAN Connection Type
VT-M2M-L335 Software User Manual
Page 7 / Total 52
[Web Page]
[Options List]Option/Status Explanation
3G/UMTS/4G/LTE 3G Modem is WAN , br0 is LAN, br0 includeeth0 and WIFI AP
WLAN/WIFI WIFI Client is WAN , br0 is LAN, br0 includeeth0
AutomaticConfiguration-DHCP
Eth0 is WAN and get IP from DHCP, br0 is LAN,br0 include WIFI AP
Static IP Eth0 is WAN and IP is static, br0 is LAN, br0include WIFI AP
Disabled Disabled WAN function
WAN/LAN Struct
2.2.1.1.2 3G Basic Settings
[Web Page]
VT-M2M-L335 Software User Manual
Page 8 / Total 52
[Options List]Option/Status Explanation
User Name 3G network login usernamePassword 3G network login password
Dial StringThis field sets the modem dial string that is usedwhen VTM2ML335 initiates its connection to the PPPnetwork
APNEnter the APN (Access Point Name) of the cellularprovider’s data connection. This is supplied by thecellular provider.
PIN PIN code of SIM card
4G/3G/2GMode
4G/3G/2G network switching strategy, optionchoices are self-explained well.options are: Auto 4G/3G/2G, Force 3G, Force 2G,Prefer 3G, Prefer 2G, 3G first, on error 2G, Force 4G
PPP Chat Which PPP Chat Mode should be used when building
VT-M2M-L335 Software User Manual
Page 9 / Total 52
Mode ppp connectionsOptions are: Built-in Chat, Script Chat, Both
PPP ChatScript
If PPP Chat Mode is not Built-in Chat, PPP Chat Scriptwill be used as chat script
Link HeartBeat enable/disable PPP link heart beat feature
Link HeartBeat IP PPP Link Heart Beat IP address
Link HeartBeat Second PPP Link Heart Beat count every second
Link HeartBeatTimeout
PPP Link Heart Beat Timeout in millisecond unit.
PPP Debug enable/disable PPP debug
2.2.1.1.3 3G Advanced and Optional Settings
[Web Page]
[Options List]Option/Status Explanation
VT-M2M-L335 Software User Manual
Page 10 / Total 52
Link Control EchoInterval Interval between LCP echo-requests
Link Control EchoFailure Tolerance to unanswered echo-requests
PPP Redial Period Redial interval after the previous dialing failedPPP MPPECompression
Enable or disable MPPE compression andencryption
PPP AsyncMap Async Control Character Map
PPP MTU/MRU Maximum Transmission Unit/Maximum ReceiveUnit of PPP
Router Name The name of VTM2ML335 deviceHost Name System’s DNS nameDomain Name System’s NIS domain nameMTU Maximum Transmission Unit, Auto is suggestedSTP Signaling Transfer Point
2.2.1.2.1 Router IP Settings
Any devices connected to the M2M-L335 via Ethernet or WIFI canaccess the L335 with these addresses.Option/Status ExplanationLocal IP Address IP address of LANSubnet Mask Mask of LANGateway Gateway IP address of LANLocal DNS DNS IP address of LAN
2.2.1.2.2 Network Address Server Settings (DHCP)
Any client devices connected via Ethernet or WIFI are to beassigned address with these settings.Option/Status ExplanationDHCP Type DHCP work mode typeDHCP Server Enable or Disable DHCP server
Start IP Address The start IP address from which DHCP serverdistribute to client
Maximum DHCP Maximum count of DHCP client
VT-M2M-L335 Software User Manual
Page 11 / Total 52
Users
Client Lease Time How long the leased IP address will beretrieved by DHCP server
Static DNS 1/2/3 DNS IP address which will be told when clientrequest DHCP server
WINS Windows Internet Naming ServerUse DNSMasq forDHCP Use application DNSMasq as DHCP server
use DNSMasq forDNS Use application DNSMasq as DNS forwarder
DHCPAuthoritative
Assume we are the only DHCP server on thelocal network
For an example:If router’s Local IP Address is set to “192.168.16.1”, and clientdevices connected will be assigned with IP address such as192.168.16.xxx, then below settings should be ok.
2.2.1.2.3 Time Settings
Option/Status Explanation
NTP Client Enable or Disable NTP clientTime Zone System time zone
VT-M2M-L335 Software User Manual
Page 12 / Total 52
SummerTime(DST) System Summer Time(DST)
ServerIP/Name
List of IP address or host name of NTP serverseparated by white space
2.2.2 Network SetupLocal network settings, include IP address of the router, DHCP
Server and Network Time Protocol reside in the “network Setup” tab.[Web Page Tab]
VT-M2M-L335 Software User Manual
Page 13 / Total 52
2.2.3 DNS[Web Page Tab]
[Options List]Option/Status Explanation
DDNS Server Choice of Dynamic DNS serversUser Name Login user name of selected DDNS serverPassword Login password of selected DDNS server
Host Name System’s Internet host name hosted in theselected DDNS server
Type Static or dynamic type of DDNS serverWildcard Enable or disable wildcardDo not useexternal ipcheck
If enable, do not use external IP check
Force UpdateInterval
Interval of update system’s IP address to DDNSserver
DDNS Status The status of system’s DDNS client
2.3 Wireless
VT-M2M-L335 Software User Manual
Page 14 / Total 52
M2M-L335 on-board wireless module supports act as AP or Clientmode. Also the security parameters can be changed.
2.3.1 Basic Settings
2.3.1.1 Wireless AP Mode Settings
[Web Page of Wireless AP Mode]
[Setting Options of Wireless AP Mode]Option/Status Explanation
Wireless Mode VTM2ML335 wireless can work in AP andClient mode
Wireless NetworkMode
VTM2ML335 wireless can work in Mixed/B-Only/G-Only/N-Only/A-Only mode
Wireless NetworkName(SSID)
Service Set Identifier which is used to identifywireless network
Wireless Channel Wireless frequence channels (suport 5G)Wireless SSIDBroadcast Enable or disable SSID broadcast
SensitivityRange(ACKTiming)
Sensitivity range of the wireless signals
Note:
VT-M2M-L335 Software User Manual
Page 15 / Total 52
2.3.1.2 Wireless Client Mode Settings[Web Page of Wireless Client Mode]
[Setting Options of Wireless Client Mode]Option/Status Explanation
Wireless Mode VTM2ML335 wireless can work in AP andClient mode
Wireless NetworkMode
VTM2ML335 wireless can work in Mixed/B-Only/G-Only/N-Only mode
Wireless NetworkName(SSID)
Service Set Identifier which is used to identifywireless network
SensitivityRange(ACKTiming)
Sensitivity range of the wireless signals
2.3.2 Wireless Security
2.3.2.1 Wireless Security Policy “WPA Personal”[Wireless WPA Personal Webpage Tab]
VT-M2M-L335 Software User Manual
Page 16 / Total 52
[Wireless WPA Personal Options List]Option/Status Explanation
Security Mode Encryption and security method, it can beWPA,
WPA Algorithms Algorithms(TKIP,AES,TKIP+AES) when WPAmode is selected
WPA Shared Key Shared encryption key that will be used byWPA
Key RenewalInterval(in seconds)
How long the WPA shared key will berenewed
2.3.2.2 Wireless Security Policy “WPA Enterprise”[Wireless WPA Enterprise Webpage Tab]
[Wireless WPA Enterprise Options List]Option/Status Explanation
Security Mode Encryption and security method, it can beWPA,
WPA Algorithms Algorithms(TKIP,AES,TKIP+AES) when WPAmode is selected
Radius AuthServer Address
The IP Address of have enabled Freeradiusserver
Radius AuthServer Port The Port of have enabled Freeradius server
VT-M2M-L335 Software User Manual
Page 17 / Total 52
Radius AuthShared Secret
Ensured the encryption key that be shared byFreeradius Client
Key RenewalInterval(inseconds)
How long the WPA shared key will be renewed
Notes: If we used local freeradius, when need set the radius addresswith local address.
2.3.2.3 Wireless Security Policy “802.1x”[Wireless 802.1x Webpage Tab]
[Wireless 802.1x Options List]Option/Status Explanation
Security ModeEncryption and security method, the wifi clientmust be 802.1x when the wifi AP is WPAEnterprise.
User The username that Users of FreeRadius sharedPassward The password that Users of FreeRadius shared
VT-M2M-L335 Software User Manual
Page 18 / Total 52
2.4 Servces
[Services Webpage TAB]
2.4.1 SNMP Service Settings
Option/Status Explanation
SNMP Enable or disable SNMP serviceLocation Set the location of systemContact Set the contact information of systemName Set the name of systemROCommunity
Set the Read-Only community access permission,public or private
RW Set the Read-Write community access permission,
VT-M2M-L335 Software User Manual
Page 19 / Total 52
Community public or private
When SNMP is enabled, you can use SNMP tools to discover theVT-M2M-L335device. Following picture is a SNMP walk through VT-M2M-L335 (with “tools/ManageEngine_MibBrowser_FreeTool.exe”).
2.4.2 Secure Shell Service SettingsOption/Status ExplanationSSHd Enable or disable SSH serviceSSH TCPForwarding Enable or disable SSH TCP Forwarding
Password Login Enable or disable Password LoginPort SSHd port numberAuthorizedKeys Keys used for Authorization
Windows terminal tools such as “putty” for windows and Linuxcommands such as “ssh” can be used to login into device console.For an example, below Linux commands can login into console:
# ssh [email protected]
2.4.3 System Log Service SettingsOption/Status Explanation
VT-M2M-L335 Software User Manual
Page 20 / Total 52
Syslogd Enable or disable syslogd service
Remote ServerRemote syslog server IP address or domainname, if no ip or domain name provide, use localsyslogd
BackupPeriod(days)
When use local syslogd, set system log backupperiod
Set the remote server:
Set the remote server IP address, and install the syslog desktop nowindows, you can find the software in release package toolsdirectory.
2.4.4 Telnet Service SettingsOption/Status ExplanationTelnet Enable or disable telnet serverWindows terminal tools such as “putty” for windows and Linux
commands such as “telnet” can be used to login into device console.For an example, below Linux commands can login into console:
# telnet 192.168.0.1
2.4.5 NAS
VT-M2M-L335 Software User Manual
Page 21 / Total 52
[NAS Webpage TAB]
[NAS Options]Option/Status ExplanationProFTPD Enable or disable ProFTPDServer Port ProFTPD port number
Files Directory Directory in which files will beupload/download
Allow Write Enable or disable writable in Files DirectoryUser PasswordList
Username and password that will be acceptwhen login from client
AnonymousLogin(Read-only)
Enable or disable anonymous read-only accessto ProFTPD
AnonymousHome Sub-directory
Subdirectory that allow anonymous read-onlyaccess
2.4.6 OpenVPN[VPN Webpage TAB]
VT-M2M-L335 Software User Manual
Page 22 / Total 52
[OpenVPN Client Options]Option/Status Explanation
ServerIP/Name OpenVPN server IP or web name
port Port connected to the serverTUN MTU Set TUN MTU
VT-M2M-L335 Software User Manual
Page 23 / Total 52
SettingLZOCompression Enable or disable LZO
TunnelProtocol UDP/TCP protocol connected to the server
Tunnel Device TUN create a routed IP tunnel, TAP create anethernet tunnel
CA Cert The ca.crt file contentPublic ClientCert The client.crt file content
Private ClientKey Then client.key file content
2.5 NAT
2.5.1 Port Forwarding[NAT Port Forwarding Webpage TAB]
[NAT Port Forwarding Options]Option/Status Explanation
Application Rule name of port forward
ProtocolInternet side protocol (before translation) for theporttranslation table entry
VT-M2M-L335 Software User Manual
Page 24 / Total 52
Source NetInternet side IP address (before translation) forthe porttranslation table entry
Port FromInternet side (before translation) port number (1 -65535) forthe port translation table entry
IP Address LAN side IP address (after translation) for the porttranslation table entry
Port toLAN side (after translation) port number (1 -65535) forthe port translation table entry
Enable Enable or disable this rule
2.6 Administration
2.6.1 Management[Administration Management Webpage TAB]
VT-M2M-L335 Software User Manual
Page 25 / Total 52
2.6.1.1 Router Management[Router Management Options]Option/Status Explanation
RouterUsername Web login username
RouterPassword Web login password
Re-enter toconfirm Retyped web login password
2.6.1.2 Web Access[Web Access Options]Option/Status Explanation
Protocol Web access protocol (http or https)Auto-Refresh(inseconds)
Interval in seconds that page will be refreshed
Enable InfoSite If enable, display info page before login web
Info SitePasswordProtection
If enable, user should input username/passwordto login web
Info Site MACMasking
If enable, MAC address won’t be showed in webpage
2.6.1.3 Remote Access[Remote Access Options]Option/Status Explanation
Web GUIManagement If enabled, the following two options can be set
Use HTTPS If checked, web is available via https protocol
VT-M2M-L335 Software User Manual
Page 26 / Total 52
Web GUI Port Change web access port numberSSHManagement If enabled, SSH remote port can be set
SSH RemotePort Change the ssh port number
TelnetManagement If enabled, Telnet port can be set
TelnetRemote Port Change the Telnet port number
Allow AnyRemote IP
Enable or disable remote access from any IPaddress
Note: if enable “SSH Management”, and the “SSH Remote Port” canset to different from the “SSHd port”, or keep the same with it. Forexample, set “SSH Remote Port” to be “22224” different form “SSHdport” “22223”, please enable the “SSH TCP Forwarding”. Andaccordingly, if enable the “SSH TCP Forwarding” and the “SSHmanagement” , must configure the “SSH Remote Port” and “SSHdport” to be different. And if want keep this two ports be same,please disable “SSH TCP Forwarding”, and the effective port settingis “SSHd port”.The configuration of “SSHd port” and “SSH TCP Forwarding”, pleaserefer to chapter “2.4.2 Secure Shell Service Settings”.
2.6.2 Keep Alive[Keep Alive Webpage TAB]
VT-M2M-L335 Software User Manual
Page 27 / Total 52
2.6.2.1 Schedule Reboot[Keep Alive Options]Option/Status ExplanationSchedule Reboot Enable or disable schedule rebootInterval(inseconds) Choose to reboot in configured seconds
At a set Time Choose to reboot at a configured time
2.6.2.2 System WatchdogSystem Watchdog SettingsOption/Status ExplanationEnableWatchdog Enable or disable system level watchdog
Interval(inseconds)
Watchdog feed interval, if the system is hung,watchdog will reboot in configured time
2.6.3 CommandsInput the shell command in the text area and click the button to
execute it, the standard output of the shell command will bedisplayed after the execution.[Commands Webpage TAB]
Button DescriptionRun Commands Commands will be executed once at button
clickedSave Startup Commands will be saved, and execute at
every boot
VT-M2M-L335 Software User Manual
Page 28 / Total 52
Save Shutdown Commands will be saved, and executebefore every shutdown
Save Custom Script Same to “Save Startup”
This feature is very useful for user to integrate their customizedapplication into VT-M2M-L335 device. For an example, if user wantsto integrate private application ‘test’ into the system and want itauto start at every boot. Below commands can be pasted into theinput box, and then click “Save Startup”.#!/bin/sh/sbin/testPlease refer to the chapter 4 Integrate Customized Application
for more details about the application integrate.
2.6.4 Factory DefaultsClick button Apply Settings will restore the system settings and
reboot the VT-M2M-L335 device.
[Factory Defaults Webpage TAB]
2.6.5 Firmware UpgradeClick button “Browse” to find and select the binary image (vt-
m2m-l335-remote-upgrade-xos-<DATE>.tar.gz) or m3 firmware(vt-m2m-l335-m3app-remote-upgrade-<DATE>.tar.gz), and then clickbutton “Upgrade” to proceed to upgrade. VT-M2M-L335 device willreboot after the upgrade complete. If “Reset to Default settings” isselected, all options will be restored to factory settings.
[Firmware Upgrade Webpage TAB]
VT-M2M-L335 Software User Manual
Page 29 / Total 52
2.6.6 BackupClick button “Backup” will collect all current settings into a
binary file and then start to download it. Click button “Browse” tofind and select the backup binary file, and then click button“Restore” to upload and apply it. VT-M2M-L335 will automaticallyreboot then apply the Restore settings once the file is uploaded.
[Backup Webpage TAB]
2.7 StatusThe Status page displays several groups of status of the VT-M2M-
L335 device.
VT-M2M-L335 Software User Manual
Page 30 / Total 52
2.7.1 Router Status
2.7.1.1 System, CPU, Memory and Space Usage[Status Webpage TAB]
[System Status Options]Option/Status ExplanationRouter Name Display VT-M2M-L335 device nameFirmwareVersion
Display the version number and build time of thefirmware
Host Name Display the host nameWAN DomainName Display WAN domain name
Current Time Display current system timeUptime Display length of time since last boot
VT-M2M-L335 Software User Manual
Page 31 / Total 52
[CPU Status Options]Option/Status ExplanationCPU Model Display the CPU Modle nameCPU Clock Display the CPU clock rate
Load Average Display system load avg over the last 1, 5 and15 minutes
[Memory Status Options]Option/Status Explanation
Total Available Display “total available”/”physical installed”memory space
Free Display “free memory”/”total memory”Used Display “used memory”/”total memory”Buffers Display “buffered memory”/”used memory”Cached Display “cached memory”/”used memory”Active Display “active memory”/”used memory”Inactive Display “inactive memory”/”used memory”
[Space Usage Status Options]Option/Status ExplanationNVRAM Used/Total size of NVRAM space
2.7.1.2 Network and Modem[Network and Modem Status Webpage TAB]
VT-M2M-L335 Software User Manual
Page 32 / Total 52
[Network Status Options]Option/Status ExplanationIP FilterMaximum Ports Display maximum ports of IP Filter
Active IPConnections Display current active IP connections
[Modem Status Options]Option/Status ExplanationSimCard IsInserted If SimCard is inserted, it display “Yes” or “No”
SimCard CSQ Display CSQ number of sim cardSimCard IMMS Display IMMS number of sim cardSimCard RegisterStatus
If sim card is registered, it display “Yes”, or“No”
SimCard RegisterType
Display whether or not sim card is registeredto the network
Modem ICCID Display sim number(ICCID stands for
VT-M2M-L335 Software User Manual
Page 33 / Total 52
integrated circuit card identifier)
Modem IMEI Display International Mobile Station EquipmentIdentity(IMEI)
2.7.2 WAN Status[WAN Status Webpage TAB]
[WAN Status Options]Option/Status ExplanationConnection Type Display current connection type of WANLogin Status Display current login status of WANConnectionUptime
Display the length of time since connected toWAN
IP Address Display current IP address of WANSubnet Mask Display current network mask of WANGateway Display current gateway IP address of WANDNS 1/2/3 Display current DNS 1/2/3 of WAN
2.7.3 LAN Status[LAN Status Webpage TAB]
VT-M2M-L335 Software User Manual
Page 34 / Total 52
[LAN Status Options]Option/Status ExplanationMAC Address Display MAC address of LAN PHYIP Address Display current IP address of LANSubnet Mask Display network mask of LANGateway Display gateway IP address of LANLocal DNS Display DNS IP address of LAN
Active ClientsList connected web clients, includes host name, ipaddress, MAC address, count of connections andradio info
DHCP Server Display DHCP server status(enabled or disabled)DHCP Daemon Display what kind of DHCP daemon is usedStart IPAddress Display the start IP address of DHCP
End IPAddress Display the end IP address of DHCP
Client Lease Display the configured lease time for client
VT-M2M-L335 Software User Manual
Page 35 / Total 52
Time
2.7.4 Wireless Status[Wireless Status Webpage TAB]
[Wireless Status Options]Option/Status ExplanationMAC Address Display the MAC address of wireless PHYRadio Display current radio status of wirelessMode Display current wireless mode of wirelessNetwork Display current network mode of wirelessSSID Display SSID of wirelessChannel Display current channel of wirelessXmit Display current transmit power of wirelessRate Display current transmit rate of wireless
Encryption Display current encryption type and method ofwireless
VT-M2M-L335 Software User Manual
Page 36 / Total 52
Received(RX) Display received packet countsTransmitted(TX) Display transmitted packet counts
Wireless NodesDisplay connected WIFI Devices. It includes MACaddress, Signal power, transmission rate, SNRand signal quality
VT-M2M-L335 Software User Manual
Page 37 / Total 52
3 Advanced Console DebugBesides change and evaluate settings via web pages, users are
allowed to login into the device console, and then input commandsand check response to do some advanced debugging andevaluations.
3.1 Console LoginUsers can login into the console via TELNET or SSH, but first
need confirm these daemons (services) are set to start enabled.Login via serial debug is always allowed, a female-male serial cableshould be connected between the serial debug ports of VT-M2M-L335 device and a host computer.
The default login account and password are “root/admin”, thismight be different within different software distributions. Users aresupposed to get the login account from the Software Release Note.
[A sample to login via telnet on Linux Operating System]# telnet 192.168.0.1Default username: rootDefault password: admin
3.2 Console Test CommandsThis chapter describes all useful console commands. With these
commands, power on and off, data in and out would be manuallyestablished and controlled. This is very helpful when users are tryingto dig into the low level of implementation, or debugging attachedexternal module with Linux commands or tools and without thedisturb of web pages or exist logical process.
3.2.1 External Modules Power ControlBefore read from or write to one external module, the power of
that module should be enabled first. Under the file system directory“/sys/power”, most external modules have correspond powermanage entries. Writing 0 or 1 to these entries will cause thecorrespond modules being powered on or off.
The details of specific module will be described in the followingchapters. Here is a sample of 3G module.# echo “0” > /sys/power/3g-on // power on 3g module
VT-M2M-L335 Software User Manual
Page 38 / Total 52
# echo “1” > /sys/power/3g-on // power off 3g module# cat /sys/power/3g-on // check power status of 3gmodule
3.2.2 Python / Nodejs
3.2.2.1 python2.7When VT-IOT-SOC start up, the python2.7 is available.You can use below ccommand to test it:# python -v
Or you can ues the python demo scripts”viper-vantron.zip” to checkit.Copy it to VT-IOT-SOC,and uncompress it, then run below command:# python viper-vantron/main.py
When VT-IOT-SOC start up, the pip of python is also available.You can use below ccommand to install packages about python:# pip install <Package>
3.2.2.2 nodejsWhen VT-IOT-SOC start up, the nodejs is available.You can use below ccommand to test it:# node -vv7.10.0# echo "console.log(\"Hello World!\")" > HelloWord.js# node HelloWord.jsHello World!
When VT-IOT-SOC start up, the npm is also available.You can use below ccommand to test it:# npm -v4.2.0# npm -h
Usage: npm <command>
where <command> is one of:access, adduser, bin, bugs, c, cache, completion,config, ddp, dedupe, deprecate, dist-tag, docs, doctor,
VT-M2M-L335 Software User Manual
Page 39 / Total 52
edit, explore, get, help, help-search, i, init, install,install-test, it, link, list, ln, login, logout, ls,outdated, owner, pack, ping, prefix, prune, publish, rb,rebuild, repo, restart, root, run, run-script, s, se,search, set, shrinkwrap, star, stars, start, stop, t,team, test, tst, un, uninstall, unpublish, unstar, up,update, v, version, view, whoami
npm <cmd> -h quick help on <cmd>npm -l display full usage infonpm help <term> search for help on <term>npm help npm involved overview
Specify configs in the ini-formatted file:/tmp/root/.npmrc
or on the command line via: npm <command> --key valueConfig info can be viewed via: npm help config
[email protected] /usr/lib/node_modules/npm
3.2.3 3GOn-board software has complete policy for the 3G module, do
not use any commands to break the exist process.
3.2.4 WifiOn-board software has complete policy for the WIFI module, do
not use any commands to break the exist process.
3.2.5 microSDInsert a MicroSD card into the device card slot, it need to be
mounted .# mount /dev/mmcblk1p1 /mnt/Commonly below partition file system formats are supported:● FAT16/32● EXT2● EXT3
VT-M2M-L335 Software User Manual
Page 40 / Total 52
3.2.6 Real-Time-ClockManually change RTC clock by commands# date -s "2012-xx-xx xx:xx:xx"# hwclock -wReboot the device and check it by# date
If NTP Client is enabled (configure it via web page), the clockmight be changed in background by the NTP Client daemon.
3.2.7 Zigbee//Power on zigbee Module#echo 1 > /sys/power/zigbee_power
//open the UART to communicate with Zigbee#at 9600 /dev/ttyO1+++ok
//Power off zigbee Module#echo 0 > /sys/power/zigbee_power
3.2.8 GPS//Power on GPS Module#echo 1 > /sys/power/gps_power
//open the UART to communicate with Zigbee#gps 9600 /dev/ttyO5
//Power off GPS Module#echo 0 > /sys/power/gps_power
3.2.9 CANThis chapter describes a way to evaluate CAN communication
between two VT-M2M-L335 devices. If users have customized CANend devices and special data protocol that need customization fromVantron, please contact Vantron Support.
Prepare two VT-M2M-L335 devices, their CAN physicalconnection should be:
VT-M2M-L335 Software User Manual
Page 41 / Total 52
Device A Device BCANH <-> CANHCANL <-> CANLSend Data -> Receive Data
Then, first run candump on B# echo 1 > /sys/power/can_power# ip link set can0 type can bitrate 100000//Configure can, set can’s baud rate to 100000(100kbps) ~1000000(1000kbps)# ifconfig can0 up# candump can0
Send data from A# ifconfig can0 up# cansend can0 5A1#11.2233.44556677.88 // Data will print on B
3.2.10 Get CPU FreqCheck the current CPU freq:~ #cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
3.2.11 Bluetooth
If the Bluetooth PAN service has been started ,the chapter of3.1.15.1’s commands have been running.So we can overleap thecommands in this chapter.
3.2.12 Services InitAfter booting up the target, type the following command in turn tostart bluetoothd service.# start_bluetooth.sh (has already been started by default)# sdptool add --channel=10 OPUSH
Type command 'hciconfig <dev> piscan', other device would beseen it.# hciconfig 0 piscan[Note :] please do not use iphone to test this function, android is ok,the same 7056 is better.
VT-M2M-L335 Software User Manual
Page 42 / Total 52
3.2.13 Bluetooth recv fileUsing obexftpd receive file:# obexftpd -b 10 -c ./data &
3.2.14 Bluetooth send fileFor send file:# hcitool scan
Getting devices:98:6C:F5:B3:CD:E7 xxxx
Getting OBEX File Transfer# sdptool browse 98:6C:F5:B3:CD:E7
Service Name: OBEX Object PushService RecHandle: 0x1000cService Class ID List:"OBEX Object Push" (0x1105)Protocol Descriptor List:"L2CAP" (0x0100)"RFCOMM" (0x0003)
Channel: 12"OBEX" (0x0008)Profile Descriptor List:"OBEX Object Push" (0x1105)
Version: 0x0100
Service Name: OBEX File Transfer <==========This is service weuse.
Service RecHandle: 0x1000dService Class ID List:"OBEX File Transfer" (0x1106)Protocol Descriptor List:"L2CAP" (0x0100)"RFCOMM" (0x0003)Channel: 20<==========This channel we'll use."OBEX" (0x0008)Profile Descriptor List:"OBEX File Transfer" (0x1106)
Version: 0x0101
VT-M2M-L335 Software User Manual
Page 43 / Total 52
Using obexftp send file:# obexftp -b 98:6C:F5:B3:CD:E7 -B 20(get channel No. from sdptoolbrowse result) -p <local send file dir>
If getting "The operation failed with return code 97", you may typecommand like
"obexftp -b xx:xx..:xx -B 20 -p <local file> -c <dest dir>"For return code 68, you may using wrong dest dir.[Note:] The receive file is saved in local dir.
3.2.15 Pair to other device
In some occasions, pairing other device may use pincodes.Disable the simple pairing, type command as bellow:# hciconfig 0 sspmode 0If in the disabled simple pairing mode, "0000" is the PIN.Input the previous PIN code at target device, pairing will be finished.
In simple pairing mode, (hciconfig 0 sspmode 1), tool "agent" mayusing simple mode PIN to pair.# agent --adapter hci0 --path /test/agent 0000 &
[Note:] hci0 is local bluetooth device, the dir "test/agent" couldchange, "0000" is the PIN.
In simple mode, other device pair to target will show the random PINcode in device,and will display in terminal.
In terminal:Confirmation request of 837114 for device/org/bluez/1898/hci0/dev_74_51_BA_E0_EB_97 //The "837114" isthe random PIN.
VT-M2M-L335 Software User Manual
Page 44 / Total 52
4 L335 Control M3Use this command controlling M3,you can consult the belowmethods. The below commands are supposed to be executed in VT-M2M-L335 console:~ # m2mconnectUsage:m2mconnect errorversion
rs232_485 <count|read|write>rtc set gwtom3rtc set m3togwrtc show <current>rtc set current <YY MM DD hh mm ss>tmpdin show <1 | 2 | 3 | 4 | 5 | 6 | all>ainled <on |off>relay <on |off> <1 |2 |3>beep <on | off>batshakeresetrestorepower off|on GW <delay time>power off_on <off_delay_time on_delay_time>helpnvram set name valuenvram get nameupgrade <file directory>can off|on
a) Get M3 firmware version~# m2mconnect version
b) Control M3 serial , the name is J14PIN Description1 TX/RS485A/RS422 TX+2 RX/RS485B/RS422 TX-3 RS422 RX+
VT-M2M-L335 Software User Manual
Page 45 / Total 52
4 RS422 RX-5 GND
Firstly, configure the M3 serial:~# m2mconnect nvram set uart3_baud 115200~# m2mconnect nvram set power_rs232_485_422 1~# m2mconnect nvram set uart3_mode 0 /*0-232,1-485,2-422*/~# m2mconnect reset /*reset the m3, and wait it boot up*/Then communicate with the M3 serial:~# m2mconnect rs232_485 read /* read data from the M3 serial inhex */~# m2mconnect rs232_485 write /* write ascii string “hello,world”to the M3 serial */
c) Set L335 time into M3.~# m2mconnect rtc set gwtom3
d) Show the current time on M3.~# m2mconnect rtc show current
e) Set the manual time onto M3.~# m2mconnect rtc set current 2016 6 23 9 30 30
f) Get the board temperature.~# m2mconnect tmp
g) Get M3 gpios input value, the pins on J17show <1 | 2 | 3 | 4 | 5 | 6 | all>
~# m2mconnect din show all~# m2mconnect din show 1~# m2mconnect din show 2
h) Get ains value.~# m2mconnect ainThe return value is read from ADC.
i) Control the led status <on | off>
Turn on the Report LED:~# m2mconnect led on
Turn off the Report LED:
VT-M2M-L335 Software User Manual
Page 46 / Total 52
~# m2mconnect led off
j) Control relay power <on | off> <1 | 2 | 3>~# m2mconnect relay on 1~# m2mconnect relay off 1
k) Control beep <on | off>~# m2mconnect beep on~# m2mconnect beep off
l) Get the battery value~# m2mconnect batIf “bat.power_supply_status=3”,the battery is charging.If “bat.power_supply_status=2”,the battery is uncharge.If “bat.power_supply_status=1”,the battery is full.If no battery,the “bat.power_supply_status” unreliable.m) reset M3~# m2mconnect reset
n) restore~# m2mconnect restore
o) Control the L335 power when the delay time reach.power off | on L335 <delay time>
~# m2mconnect power on GW delay_time
p) Control the L335 power on and off time.power off_on <off_delay_time on_delay_time>
~# m2mconnect power off_on 2 25
q) Set the M3 config values.~# m2mconnect nvram set 3Axes.enable 1
r) Get the M3 config values.~# m2mconnect nvram get 3Axes.enable
s) Upgrade the M3 firmware~# m2mconnect upgrade file_directory
nvram parameters:ADC.enable=1 1-enable, 0-disable. Set ADC work or not
VT-M2M-L335 Software User Manual
Page 47 / Total 52
work on the basis of configuration when init.BQ24192.enable=1 1-enalbe,0-disable.Control the BQ24192
electric quantityBQ27520.enable=1 1-enable,0-disable.Control the BQ27520
battery.tmp112.enable=1 1-enable,0-disable.Control the temperature
detector.3Axes.enable=0 1-enable,0-disable.Control the
accelerometer.3Axes.awake_m4.enable=0
1-enalbe,0-distable.Enable this value,allow3axes wake up the L335,but need enableaccelerometer at the first.
3Axes.sensitivity=8 Set the accelerometer sensitivity.uart3_mode=0 Set the serial(J14) mode,0-232,1-485,2-422
power_rs232_485_422=1
1-enable,0-disable,Set the serial(J14) power
uart3_baud=11520 Set the serial(J14) baudrestore_defaults=0 1-enable,0-disable,Restore the M3 config
values.gpio_power_ain=1 1-enable,0-disable,analog input power.gpio_power_gin=1 1-enable,0-disable,digital input power.
ex1: Open the RS232.~# m2mconnect nvram set uart3_baud 115200~# m2mconnect nvram set power_rs232_485_422 0~# m2mconnect nvram set uart3_mode 0 /*0-232,1-485,2-422*/~# m2mconnect resetWaiting for the 5 seconds, the M3 will reset, and then use serial.
~# m2mconnect rs232_485 read /*the ASCII of recived char will beget*/~# m2mconnect rs232_485 write /*the “hello,world” will be sent*/
ex2: Open the RS485.~# m2mconnect nvram set uart3_baud 115200~# m2mconnect nvram set power_rs232_485_422 1~# m2mconnect nvram set uart3_mode 1 /*0-232,1-485,2-422*/~# m2mconnect resetWaiting for the 5 seconds, the M3 will reset, and then use serial.
VT-M2M-L335 Software User Manual
Page 48 / Total 52
~# m2mconnect rs232_485 read /*the ASCII of recived char will beget*/~# m2mconnect rs232_485 write /*the “hello,world” will be sent*/
ex3: Open the RS422.~# m2mconnect nvram set uart3_baud 115200~# m2mconnect nvram set power_rs232_485_422 1~# m2mconnect nvram set uart3_mode 2 /*0-232,1-485,2-422*/~# m2mconnect resetWaiting for the 5 seconds, the M3 will reset, and then use serial.
~# m2mconnect rs232_485 read /*the ASCII of recived char will beget*/~# m2mconnect rs232_485 write /*the “hello,world” will be sent*/
ex4: Analog input.
~# m2mconnect nvram set gpio_power_ain 1~# m2mconnect nvram set ADC.enable 1~# m2mconnect resetWaiting for the 5 seconds, then get the ain values:~# m2mconnect ain
ex5:Digital input.
~# m2mconnect nvram set gpio_power_gin 1~# m2mconnect resetWaiting for the 5 seconds, then get the gin values:~# m2mconnect din show all~# m2mconnect din show 1~# m2mconnect din show 2
ex6:Axes wake up.~# m2mconnect nvram set 3Axes.sensitivity 8~# m2mconnect nvram set 3Axes.enable 1~# m2mconnect nvram set 3Axes.awake_m4.enable 1~# m2mconnect resetWhen the device quake, then the L335 will be powered on.
VT-M2M-L335 Software User Manual
Page 49 / Total 52
5 Update and boot
The board support to boot from on-board eMMC or externalMicro SD card. Booting from the external Micro SD card will makethe program debugging more convenient, because it’s very easy toupgrade the Micro SD content. Booting from on-board eMMC is astandard for Linux tablet, the on-board eMMC is the internalstorage, and the Micro SD card is the external storage. Everydistribution package released from Vantron must have identifiers toindicate the package is released for Micro SD booting, eMMCbooting, or both. If you need to change selection between the 2booting ways, you must know how to set the physical bootingjumpers.
Set S1 to 1100 (from PIN 1 to PIN 4, 0 means off while 1means on) , the board will boot from the on-board eMMC chip.This is the factory setting.
[Table 5-1 Boot Jumpers]
5.1 Update from Micro SD card
5.1.1 Making the Recovery Install tool SD driverTo make a recovery install tool SD driver, you need:
1. A 4GB or larger Micro SD card.2. An X86 PC runs Linux OS.
Then do like follow:1. Insert the Micro SD card into your host computer.2. Open a terminal window.3. Change to the root user, go to the release package then
execute the following commands to transfer the recoveryimage to the target device.~# cd img/sdcard/~# sudo ./usb_upgrade.sh ./vt-m2m-l335-usb-update-<date>-<MD5SUM>.tar.gz /dev/sdX
BOOT Mode Pin1 Pin2 Pin3 Pin4eMMC ON ON OFF OFFSD card OFF OFF ON OFF
VT-M2M-L335 Software User Manual
Page 50 / Total 52
NOTE: Replace the placeholder /dev/sdX with the specificdevice file assigned to your Micro SD card when it wasinserted.If the Micro SD card mounted automatically when youinserted it (that is, if an icon appeared on the desktop or afile manager window opened), you must unmount it first.
4. After the command prompt returns and the activity light (ifany) on your flash drive stops blinking, remove the Micro SDcard from your PC.
5.1.2 Recovery to EMMC1. Set S1to 0010, connect the debug UART to the device.2. Insert the recovery install tool SD driver into the SD slot.3. Power on VT-M2M-L335 and login in, then execute:
# cd /opt/#./mkemmc.sh
4. Unplug the evaluation image recovery tool Micro SD card.5. Set S1 to 1100, then power on VT-M2M-L335.
5.2 Update kernel, u-boot, rootfs VIA Web PageWhen system is up, you can update system via web browser.
Please refer to chapter 2.6.5 Firmware Upgrade for more details.Again, update file for web page always has name of ‘vt-m2m-
l335-remote-upgrade-xos-<date>.tar.gz’.
5.3 Update m3 firmware VIA Web PageWhen system is up, you can update system via web browser.
Please refer to chapter 2.6.5 Firmware Upgrade for more detailsAgain, update file for web page always has name of ‘vt-m2m-
l335-m3app-remote-upgrade-xos-<date>.tar.gz’.
VT-M2M-L335 Software User Manual
Page 51 / Total 52
6 Restore Factory SettingsThere are three ways restore F/W back to factory settings.
6.1 Restore by pressing reset buttonKeep pressing Renew button more than 5 seconds, system will
restore factory settings and then follows a reboot. Partition etc anddata will slave.
6.2 Restore via web pageOpen a browser to access device’s web page ‘Administration ->
Factory Defaults’, select “YES” then click “Apply Settings”. Pleaserefer to chapter “2.6.4 Factory Defaults” for details. Partition etcand data will slave.
6.3 Restore all partsReset the device, at the same time, we press "Restore" button
until listen the beep on and off.
VT-M2M-L335 Software User Manual
Page 52 / Total 52
Appendix A: Getting HelpUS Office: Vantron Technology, Inc.Address: 440 Boulder Court, Suite 300,Pleasanton, CA 94566Tel: 916-202-7042Email: [email protected]
China Office: Chengdu Vantron Technology, LtdAddress: 6th floor, 1st building, No.9, 3rd WuKe East Street, WuHouDistrict,Chengdu, P.R. China 610045Tel: 86-28-8512-3930/3931, 8515-7572/6320Email: [email protected]