vt m2m g335 x000b software user manual › uploads › 20200525 › f4f4a0c15c379bbaa… · cert...

57
VT-M2M-G335 Software User Manual Page 1 / Total 57 VT_M2M_G335 Software User Manual Chengdu Vantron Technology Ltd. Co. www.vantrontech.com.cn All Rights Reserved

Upload: others

Post on 05-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 1 / Total 57

VT_M2M_G335Software User Manual

Chengdu Vantron Technology Ltd. Co.www.vantrontech.com.cn

All Rights Reserved

Page 2: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 2 / Total 57

Contents1 Prepare Development Environment...............................................................62 Explore Device Web Pages.............................................................................7

2.1 Web Page Login..................................................................................... 72.2 Setup.........................................................................................................7

2.2.1 Basic Setup................................................................................... 72.2.1.1 WAN Setup......................................................................... 8

2.2.1.1.1 WAN Connection Type........................................... 82.2.1.1.2 3G Basic Settings.................................................... 92.2.1.1.3 3G Advanced and Optional Settings.................. 10

2.2.2 Network Setup............................................................................ 122.2.1.2.1 Router IP Settings........................................................ 132.2.1.2.2 Network Address Server Settings (DHCP)...............132.2.1.2.3 Time Settings................................................................ 14

2.2.3 DNS..............................................................................................152.3 Wireless................................................................................................. 16

2.3.1 Basic Settings.............................................................................162.3.1.1 Wireless AP Mode Settings............................................162.3.1.2 Wireless Client Mode Settings.......................................17

2.3.2 Wireless Security........................................................................182.3.2.1 Wireless Security Policy “WPA Personal”....................182.3.2.2 Wireless Security Policy “WPA Enterprise”................. 192.3.2.3 Wireless Security Policy “802.1x”..................................20

2.4 Services................................................................................................. 212.4.1 SNMP Service Settings.............................................................212.4.2 Secure Shell Service Settings..................................................222.4.3 System Log Service Settings................................................... 222.4.4 Telnet Service Settings............................................................. 232.4.5 NAS.............................................................................................. 232.4.6 OpenVPN.................................................................................... 25

2.5 NAT.........................................................................................................262.5.1 Port Forwarding..........................................................................26

2.6 Administration....................................................................................... 282.6.1 Management...............................................................................28

2.6.1.1 Router Management........................................................282.6.1.2 Web Access......................................................................292.6.1.3 Remote Access................................................................29

2.6.2 Keep Alive................................................................................... 302.6.2.1 Schedule Reboot............................................................. 302.6.2.2 System Watchdog............................................................30

2.6.3 Commands..................................................................................312.6.4 Factory Defaults......................................................................... 32

Page 3: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 3 / Total 57

2.6.5 Firmware Upgrade..................................................................... 322.6.6 Backup......................................................................................... 32

2.7 Status..................................................................................................... 342.7.1 Router Status..............................................................................34

2.7.1.1 System, CPU, Memory and Space Usage...................342.7.1.2 Network and Modem....................................................... 36

2.7.2 WAN Status.................................................................................372.7.3 LAN Status.................................................................................. 382.7.4 Wireless Status...........................................................................39

3 Advanced Console Debug.............................................................................413.1 Console Login....................................................................................... 413.2 Console Test Commands....................................................................41

3.2.1 External Modules Power Control.............................................413.2.2 LORA1301/Zigbee..................................................................... 42

3.2.2.1 LORA1301........................................................................ 423.2.2.1 Zigbee................................................................................42

3.2.3 3G................................................................................................. 443.2.4 Wifi................................................................................................443.2.5 microSD....................................................................................... 443.2.6 Real-Time-Clock.........................................................................443.2.7 GPS..............................................................................................443.2.8 CAN..............................................................................................453.2.9 Get CPU Freq............................................................................. 453.2.10 Bluetooth................................................................................... 45

3.2.10.1 Pair to other device....................................................... 463.2.10.2.Bluetooth send/recive file............................................. 463.2.10.3 Bluetooth Serial Port..................................................... 473.2.10.4 Other command............................................................. 49

3.2.11 COM1 (DB9)............................................................................. 493.2.11.1 DB9 RS232 Test............................................................493.2.11.2 DB9 RS485Test.............................................................49

3.2.12 RS232/RS485/RS422 on Green Connector........................493.2.12.1 RS232 Test.....................................................................503.2.12.2 RS485Test......................................................................503.2.12.3 RS422 Test.....................................................................50

3.2.13 GPIO.......................................................................................... 513.2.14 Manually Run AT Commands................................................51

4 Update and boot..............................................................................................534.1 Boot Mode............................................................................................. 534.2 Booting from Micro SD card................................................................534.3 Booting from EMMC.............................................................................544.4 Update Via Web Page......................................................................... 54

Page 4: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 4 / Total 57

5 Install Vantron Provided Toolchain.............................................................. 556 Restore Factory Settings...............................................................................56

6.1 Restore Factory Settings by pressing Renew Button.....................566.2 Restore via web page..........................................................................566.3 Restore all partitions by pressing Renew Button.............................56

Appendix A: Getting Help.........................................................................................57

Page 5: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 5 / Total 57

History Revisions

Version Number Date Comment1.0 2018-01-24 VT-M2M-G335 XOS First Version1.1 2018-01-26 Update the method to upgrade1.2 2018-05-03 Update description about UART1.3 2018-05-03 Add jumper set for UART mode1.4 2018-07-03 Add LORA1301/ZIGBEE1.5 2018-07-18 Fix piscan function of bluetooth1.6 2018-08-20 Fix Wireless Security.1.7 2018-11-09 Fix the operation of renew button.1.8 2018-11-20 Fix description about GPS1.9 2019-05-07 Add Modem PDP CID and Modem

Broadband Provider

Page 6: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 6 / Total 57

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 computer access the

device

● Vantron provided dedicate 12V power adapter.

● Have already read the “Release Note” and are trying to follow instructions

list in current “User Manual”.

If you want to login into device console via Telnet, SSH or UART DebugPort, 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 into the Debug

UART Console.

If you want to compile your own source code with Vantron providedtoolchain, and download it onto the device to start it, the below OperatingSystem is suggested to be pre-installed on the host computer.

● Ubuntu 11.10 64 bits, Ubuntu 12.0432bits and Ubuntu 10.04 32bits are verified to be ok for development.Other Linux popular distributions should be ok but not verified by Vantron.

Page 7: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 7 / Total 57

2 Explore Device Web Pages

Insert a network cable into the Ethernet port, insert the dedicate 12V DCinto the power jack. Device will be powered up within 20 seconds until a shortbuzz.

2.1 Web Page Login

Commonly the default IP address of G335 is “192.168.0.1”, the defaultlogin username and password are “admin/admin”. These settings are listed inthe Software Release Note, which might be variable between differentdistributions.

The first login requires user to change the default username and password.These modified login settings will affect login via web pages, 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”.

Page 8: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 8 / Total 57

2.2.1.1 WAN Setup

2.2.1.1.1 WAN Connection Type

[Web Page]

[Options List]Option/Status Explanation

3G/UMTS/4G/LTE 3G Modem is WAN , br0 is LAN, br0 include eth0 andWIFI AP

WLAN/WIFI WIFI Client is WAN , br0 is LAN, br0 include eth0

AutomaticConfiguration-DHCP

Eth0 is WAN and get IP from DHCP, br0 is LAN, br0include WIFI AP

Static IP Eth0 is WAN and IP is static, br0 is LAN, br0 includeWIFI AP

Disabled Disabled WAN function

Page 9: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 9 / Total 57

2.2.1.1.2 3G Basic Settings

[Web Page]

[Options List]Option/Status Explanation

User Name 3G network login username

Password 3G network login password

Dial String This field sets the modem dial string that is used when

Page 10: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 10 / Total 57

VTM2MG335 initiates its connection to the PPP network

APNEnter the APN (Access Point Name) of the cellularprovider’s data connection. This is supplied by the cellularprovider.

Modem PDPCID

The Package Data Protocol Context Identifier is supplied bythe cellular provider.

ModemBroadbandProvider

This is optional. If it is shows there, please select your SIMcard provider.

PIN PIN code of SIM card

4G/3G/2GMode

4G/3G/2G network switching strategy, option choices areself-explained well.options are: Auto 4G/3G/2G, Force 3G, Force 2G, Prefer3G, Prefer 2G, 3G first, on error 2G, Force 4G

PPP ChatMode

Which PPP Chat Mode should be used when building pppconnectionsOptions are: Built-in Chat, Script Chat, Both

PPP ChatScript

If PPP Chat Mode is not Built-in Chat, PPP Chat Script willbe 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 HeartBeat Timeout 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]

Page 11: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 11 / Total 57

[Options List]Option/Status ExplanationLink Control EchoInterval Interval between LCP echo-requests

Link Control EchoFailure Tolerance to unanswered echo-requests

PPP Redial Period Redial interval after the previous dialing failed

PPP MPPECompression Enable or disable MPPE compression and encryption

PPP AsyncMap Async Control Character Map

PPP MTU/MRU Maximum Transmission Unit/Maximum Receive Unitof PPP

Router Name The name of VTM2MG335 device

Host Name System’s DNS name

Domain Name System’s NIS domain name

MTU Maximum Transmission Unit, Auto is suggested

STP Signaling Transfer Point

Page 12: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 12 / Total 57

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]

Page 13: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 13 / Total 57

2.2.1.2.1 Router IP SettingsAny devices connected to the M2M-G335 via Ethernet or WIFI can access

the G335 with these addresses.

Option/Status ExplanationLocal IP Address IP address of LAN

Subnet Mask Mask of LAN

Gateway Gateway IP address of LAN

Local 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 be assigned

address with these settings.

Option/Status ExplanationDHCP Type DHCP work mode type

DHCP Server Enable or Disable DHCP server

Start IP Address The start IP address from which DHCP serverdistribute to client

Maximum DHCPUsers Maximum count of DHCP client

Client Lease Time How long the leased IP address will be retrieved byDHCP server

Static DNS 1/2/3 DNS IP address which will be told when client requestDHCP server

WINS Windows Internet Naming Server

Use DNSMasq forDHCP Use application DNSMasq as DHCP server

use DNSMasq forDNS Use application DNSMasq as DNS forwarder

DHCP Authoritative Assume we are the only DHCP server on the localnetwork

Page 14: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 14 / Total 57

For an example:If router’s Local IP Address is set to “192.168.16.1”, and client devicesconnected will be assigned with IP address such as 192.168.16.xxx, thenbelow settings should be ok.

2.2.1.2.3 Time Settings

Option/Status ExplanationNTP Client Enable or Disable NTP client

Time Zone System time zone

SummerTime(DST) System Summer Time(DST)

Server IP/Name List of IP address or host name of NTP server separatedby white space

Page 15: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 15 / Total 57

2.2.3 DNS[Web Page Tab]

[Options List]Option/Status ExplanationDDNS Server Choice of Dynamic DNS servers

User Name Login user name of selected DDNS server

Password Login password of selected DDNS server

Host Name System’s Internet host name hosted in the selectedDDNS server

Type Static or dynamic type of DDNS server

Wildcard Enable or disable wildcard

Do not useexternal ip check If enable, do not use external IP check

Force UpdateInterval Interval of update system’s IP address to DDNS server

DDNS Status The status of system’s DDNS client

Page 16: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 16 / Total 57

2.3 Wireless

M2M-G335 on-board wireless module supports act as AP or Client mode.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 VTM2MG335 wireless can work in AP and Clientmode

Wireless NetworkMode

VTM2MG335 wireless can work inMixed/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(ACK Timing) Sensitivity range of the wireless signals

Note:

Page 17: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 17 / Total 57

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 VTM2MG335 wireless can work in AP and Clientmode

Wireless NetworkMode

VTM2MG335 wireless can work inMixed/B-Only/G-Only/N-Only mode

Wireless NetworkName(SSID)

Service Set Identifier which is used to identifywireless network

SensitivityRange(ACK Timing) Sensitivity range of the wireless signals

Page 18: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 18 / Total 57

2.3.2 Wireless Security

2.3.2.1 Wireless Security Policy “WPA Personal”

[Wireless WPA Personal Webpage Tab]

[Wireless WPA Personal Options List]Option/Status ExplanationSecurity Mode Encryption and security method, it can be WPA,

WPA Algorithms Algorithms(TKIP,AES,TKIP+AES) when WPAmode is selected

WPA Shared Key Shared encryption key that will be used by WPA

Key RenewalInterval(in seconds) How long the WPA shared key will be renewed

Page 19: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 19 / Total 57

2.3.2.2 Wireless Security Policy “WPA Enterprise”[Wireless WPA Enterprise Webpage Tab]

[Wireless WPA Enterprise Options List]Option/Status ExplanationSecurity Mode Encryption and security method, it can be WPA,

WPA Algorithms Algorithms(TKIP,AES,TKIP+AES) when WPA modeis selected

Radius Auth ServerAddress The IP Address of have enabled Freeradius server

Radius Auth ServerPort The Port of have enabled Freeradius server

Radius Auth SharedSecret

Ensured the encryption key that be shared byFreeradius Client

Key RenewalInterval(in seconds) How long the WPA shared key will be renewed

Notes: If we used local freeradius, when need set the radius address with localaddress.

Page 20: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 20 / Total 57

2.3.2.3 Wireless Security Policy “802.1x”[Wireless 802.1x Webpage Tab]

[Wireless 802.1x Options List]Option/Status Explanation

Security Mode Encryption and security method, the wifi client mustbe 802.1x when the wifi AP is WPA Enterprise.

User The username that Users of FreeRadius shared

Passward The password that Users of FreeRadius shared

Page 21: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 21 / Total 57

2.4 Services

[Services Webpage TAB]

2.4.1 SNMP Service SettingsOption/Status ExplanationSNMP Enable or disable SNMP service

Location Set the location of system

Contact Set the contact information of system

Name Set the name of system

RO Community Set the Read-Only community access permission, publicor private

RW Community Set the Read-Write community access permission, publicor private

Page 22: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 22 / Total 57

When SNMP is enabled, you can use SNMP tools to discover theVT-M2M-G335device. Following picture is a SNMP walk throughVT-M2M-G335 (with “tools/ManageEngine_MibBrowser_FreeTool.exe”).

2.4.2 Secure Shell Service SettingsOption/Status ExplanationSSHd Enable or disable SSH service

SSH TCPForwarding Enable or disable SSH TCP Forwarding

Password Login Enable or disable Password Login

Port SSHd port number

Authorized Keys Keys used for AuthorizationWindows terminal tools such as “putty” for windows and Linux commands

such as “ssh” can be used to login into device console. For an example, belowLinux commands can login into console:

# ssh [email protected]

2.4.3 System Log Service SettingsOption/Status ExplanationSyslogd Enable or disable syslogd service

Remote Server Remote syslog server IP address or domain name, if noip or domain name provide, use local syslogd

Backup When use local syslogd, set system log backup period

Page 23: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 23 / Total 57

Period(days)

Set the remote server:

Set the remote server IP address, and install the syslog desktop no windows,you can find the software in release package tools directory.

2.4.4 Telnet Service SettingsOption/Status ExplanationTelnet Enable or disable telnet server

Windows terminal tools such as “putty” for windows and Linux commandssuch as “telnet” can be used to login into device console. For an example,below Linux commands can login into console:

# telnet [email protected]

2.4.5 NAS[NAS Webpage TAB]

Page 24: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 24 / Total 57

[NAS Options]Option/Status ExplanationProFTPD Enable or disable ProFTPD

Server Port ProFTPD port number

Files Directory Directory in which files will be upload/download

Allow Write Enable or disable writable in Files Directory

User Password List Username and password that will be accept whenlogin from client

AnonymousLogin(Read-only)

Enable or disable anonymous read-only access toProFTPD

Anonymous HomeSub-directory Subdirectory that allow anonymous read-only access

Page 25: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 25 / Total 57

2.4.6 OpenVPN

To configure the service OpenVPN Client, please ensure the “ServerIP/Name” could access via WAN device, and please check the settings of NTPserver referring to 2.2.1.2.3 Time Settings, so G335 could update time from the“ Server IP/Name” of Time Settings.

[VPN Webpage TAB]

Page 26: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 26 / Total 57

[OpenVPN Client Options]Option/Status ExplanationServer IP/Name OpenVPN server IP or web name

port Port connected to the server

TUN MTUSetting Set TUN MTU

LZOCompression Enable or disable LZO

Tunnel Protocol UDP/TCP protocol connected to the server

Tunnel Device TUN create a routed IP tunnel, TAP create an ethernettunnel

CA Cert The ca.crt file content

Public 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

Page 27: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 27 / Total 57

Application Rule name of port forward

Protocol Internet side protocol (before translation) for the porttranslation table entry

Source Net Internet side IP address (before translation) for the 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 to LAN side (after translation) port number (1 - 65535) forthe port translation table entry

Enable Enable or disable this rule

Page 28: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 28 / Total 57

2.6 Administration

2.6.1 Management[Administration Management Webpage TAB]

2.6.1.1 Router Management[Router Management Options]Option/Status ExplanationRouterUsername Web login username

RouterPassword Web login password

Re-enter toconfirm Retyped web login password

Page 29: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 29 / Total 57

2.6.1.2 Web Access[Web Access Options]Option/Status ExplanationProtocol Web access protocol (http or https)

Auto-Refresh(inseconds) Interval in seconds that page will be refreshed

Enable Info Site If enable, display info page before login web

Info SitePasswordProtection

If enable, user should input username/password to loginweb

Info Site MACMasking If enable, MAC address won’t be showed in web page

2.6.1.3 Remote Access[Remote Access Options]Option/Status ExplanationWeb GUIManagement If enabled, the following two options can be set

Use HTTPS If checked, web is available via https protocol

Web GUI Port Change web access port number

SSHManagement If enabled, SSH remote port can be set

SSH RemotePort Change the ssh port number

TelnetManagement If enabled, Telnet port can be set

Telnet RemotePort Change the Telnet port number

Allow AnyRemote IP Enable or disable remote access from any IP address

Note: if enable “SSH Management”, and the “SSH Remote Port” can set todifferent from the “SSHd port”, or keep the same with it. For example, set “SSHRemote Port” to be “22224” different form “SSHd port” “22223”, please enablethe “SSH TCP Forwarding”. And accordingly, if enable the “SSH TCPForwarding” and the “SSH management” , must configure the “SSH Remote

Page 30: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 30 / Total 57

Port” and “SSHd port” to be different. And if want keep this two ports be same,please disable “SSH TCP Forwarding”, and the effective port setting is “SSHdport”.The configuration of “SSHd port” and “SSH TCP Forwarding”, please refer tochapter “2.4.2 Secure Shell Service Settings”

2.6.2 Keep Alive[Keep Alive Webpage TAB]

2.6.2.1 Schedule Reboot[Keep Alive Options]Option/Status ExplanationSchedule Reboot Enable or disable schedule reboot

Interval(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 Settings

Option/Status ExplanationEnable Watchdog Enable or disable system level watchdog

Interval(inseconds)

Watchdog feed interval, if the system is hung,watchdog will reboot in configured time

Page 31: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 31 / Total 57

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 be displayed 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

bootSave Shutdown Commands will be saved, and execute before

every shutdownSave Custom Script Same to “Save Startup”

This feature is very useful for user to integrate their customized applicationinto VT-M2M-G335 device. For an example, if user wants to integrate privateapplication ‘test’ into the system and want it auto start at every boot. Belowcommands can be pasted into the input box, and then click “Save Startup”.#!/bin/sh/sbin/test

Please refer to the chapter 4 Integrate Customized Application for moredetails about the application integrate.

Page 32: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 32 / Total 57

2.6.4 Factory DefaultsClick button Apply Settings will restore the system settings and reboot the

VT-M2M-G335 device.[Factory Defaults Webpage TAB]

2.6.5 Firmware UpgradeClick button “Browse” to find and select the binary image

(vt-m2m-G335-remote-upgrade-xos-<DATE>.tar.gz) ,and then click button“Upgrade” to proceed to upgrade. VT-M2M-G335 device will reboot after theupgrade complete. If “Reset to Default settings” is selected, all options will berestored to factory settings.[Firmware Upgrade Webpage TAB]

2.6.6 BackupClick button “Backup” will collect all current settings into a binary file and

then start to download it. Click button “Browse” to find and select the backupbinary file, and then click button “Restore” to upload and apply it.VT-M2M-G335 will automatically reboot then apply the Restore settings oncethe file is uploaded.

Page 33: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 33 / Total 57

[Backup Webpage TAB]

Page 34: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 34 / Total 57

2.7 Status

The Status page displays several groups of status of the VT-M2M-G335device.

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-G335 device name

Firmware Version Display the version number and build time of thefirmware

Page 35: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 35 / Total 57

Host Name Display the host name

WAN DomainName Display WAN domain name

Current Time Display current system time

Uptime Display length of time since last boot

[CPU Status Options]Option/Status ExplanationCPU Model Display the CPU Modle name

CPU Clock Display the CPU clock rate

Load Average Display system load avg over the last 1, 5 and 15minutes

[Memory Status Options]Option/Status Explanation

Total Available Display “total available”/”physical installed” memoryspace

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

Page 36: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 36 / Total 57

2.7.1.2 Network and Modem

[Network and Modem Status Webpage TAB]

[Network Status Options]Option/Status ExplanationIP Filter MaximumPorts Display maximum ports of IP Filter

Active IPConnections Display current active IP connections

[Modem Status Options]Option/Status ExplanationSimCard Is Inserted If SimCard is inserted, it display “Yes” or “No”

SimCard CSQ Display CSQ number of sim card

SimCard IMMS Display IMMS number of sim card

SimCard RegisterStatus If sim card is registered, it display “Yes”, or “No”

Page 37: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 37 / Total 57

SimCard RegisterType

Display whether or not sim card is registered to thenetwork

Modem ICCID Display sim number(ICCID stands for integratedcircuit 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 WAN

Login Status Display current login status of WAN

Connection Uptime Display the length of time since connected to WAN

IP Address Display current IP address of WAN

Subnet Mask Display current network mask of WAN

Gateway Display current gateway IP address of WAN

DNS 1/2/3 Display current DNS 1/2/3 of WAN

Page 38: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 38 / Total 57

2.7.3 LAN Status[LAN Status Webpage TAB]

[LAN Status Options]Option/Status Explanation

MAC Address Display MAC address of LAN PHY

IP Address Display current IP address of LAN

Subnet Mask Display network mask of LAN

Gateway Display gateway IP address of LAN

Local DNS Display DNS IP address of LAN

Active ClientsList connected web clients, includes host name, ipaddress, MAC address, count of connections and radioinfo

DHCP Server Display DHCP server status(enabled or disabled)

DHCP Daemon Display what kind of DHCP daemon is used

Start IP Address Display the start IP address of DHCP

End IP Address Display the end IP address of DHCP

Client Lease Display the configured lease time for client

Page 39: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 39 / Total 57

Time

2.7.4 Wireless Status[Wireless Status Webpage TAB]

[Wireless Status Options]Option/Status ExplanationMAC Address Display the MAC address of wireless PHY

Radio Display current radio status of wireless

Mode Display current wireless mode of wireless

Network Display current network mode of wireless

SSID Display SSID of wireless

Channel Display current channel of wireless

Xmit Display current transmit power of wireless

Rate Display current transmit rate of wireless

Encryption Display current encryption type and method of wireless

Received(RX) Display received packet counts

Transmitted(TX) Display transmitted packet counts

Wireless Nodes Display connected WIFI Devices. It includes MAC

Page 40: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 40 / Total 57

address, Signal power, transmission rate, SNR andsignal quality

Page 41: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 41 / Total 57

3 Advanced Console Debug

Besides change and evaluate settings via web pages, users are allowed tologin into the device console, and then input commands and check responseto do some advanced debugging and evaluations.

3.1 Console Login

Users can login into the console via TELNET or SSH, but first needconfirm these daemons (services) are set to start enabled. Login via serialdebug is always allowed, a female-male serial cable should be connectedbetween the serial debug ports of VT-M2M-G335 device and a host computer.

The default login account and password are “root/admin”, this might bedifferent within different software distributions. Users are supposed to get thelogin 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 Commands

This chapter describes all useful console commands. With thesecommands, power on and off, data in and out would be manually establishedand controlled. This is very helpful when users are trying to dig into the lowlevel of implementation, or debugging attached external module with Linuxcommands or tools and without the disturb of web pages or exist logicalprocess.

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”, mostexternal modules have correspond power manage entries. Writing 0 or 1 tothese entries will cause the correspond modules being powered on or off.

The details of specific module will be described in the following chapters.Here is a sample of 3G module.# echo 0 > /sys/power/3g_power // power on 3g module# echo 1 > /sys/power/3g_power // power off 3g module

Page 42: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 42 / Total 57

# cat /sys/power/3g_power // check power status of 3gmodule

3.2.2 LORA1301/Zigbee

3.2.2.1 LORA1301

We support frequency 433|868|915MHz, and could configure it on the webpage, it is 868MHz by default.

You can remote access VT-M2M-G335, and start the following procedure:# app.elf &# usrapi &

Or you could create a shell script named “postinit”, and store it under folder“/etc”. Add the command “app.elf &” to it, then the procedure will be runautomatically when VT-M2M-G335 is booting up.# vi /etc/postinit#!/bin.shapp.elf &usrapi &# chmod 775 /etc/postinitReboot the VT-M2M-G335, the app.elf and usrapi will be run automatically.

3.2.2.1 ZigbeeWe need at least two devices to test Zigbee.VT-M2M-G335 integrated

DIGI XBee module. XBee can automatically setup Zigbee network and allocateaddress.

First we need to power it on, by# echo 1 > /sys/power/zigbee_reset

Page 43: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 43 / Total 57

The Zigbee module is attached at “/dev/ttyO3”, AT commands can bewritten to the tty device. To get the complete AT commands, please refer to theDatasheet of “Digi xbee S2C”.

Set one device to coordinator (default is route):# at 9600 /dev/ttyO3+++OKatce 1atnd........ (the route information , if return error add into network fail)atdh 0OKatdl ffffOKatcnOKHello world!

Another device is route:# at 9600 /dev/ttyO3+++OKatnd........ (the route information , if return error add into network fail)atdh 0OKatdl ffffOKatcnOKHello world!

The string ‘Hello word!’ is to be input on one device while will be receivedand printed on another device.

Zigbee AT CommandsAT Command Descriptions+++ Switch into AT modelatmy Response network addressatce 1 Set to coordinator role,

0 route , 1 coordinatoratdh 0 Set destination high address

0x00000000

Page 44: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 44 / Total 57

atdl ffff Set destination low address 0x0000ffffatnd Response route tablesatcn Exit AT mod

3.2.3 3GOn-board software has complete policy for the 3G module, do not use any

commands to break the exist process.If the module is VT-MOB-MPCIE-4G, please refer to the manual named

VT-MOB-MPCIE-4G User Manual On VT-XOS Vx.pdf

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/mmcblk0p1 /mnt/Commonly below partition file system formats are supported:● FAT16/32● EXT2● EXT3

3.2.6 Real-Time-ClockManually change RTC clock by commands:# date -s "2012-xx-xx xx:xx:xx"# hwclock -w

Reboot the device and check it by:# date

If NTP Client is enabled (configure it via web page), the clock might bechanged in background by the NTP Client daemon.

3.2.7 GPS//Power on GPS Module# echo 0 > /sys/power/gps_power# echo 1 > /sys/power/gps_reset

//open the UART to get message with GPS

Page 45: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 45 / Total 57

# gps 9600 /dev/ttyS0

//Power on GPS Module# echo 1 > /sys/power/gps_power# echo 0 > /sys/power/gps_reset

3.2.8 CANThis chapter describes a way to evaluate CAN communication between

two VT-M2M-G335 devices. If users have customized CAN end devices andspecial data protocol that need customization from Vantron, please contactVantron Support.

Prepare two VT-M2M-G335 devices, their CAN physical connection shouldbe:

Device A Device BCANH <-> CANHCANL <-> CANLSend Data -> Receive Data

Then, first run candump on B# ip link set can0 type can bitrate 100000//Configure can, set can’s baud rate to 100000(100kbps) ~100000(100kbps)# 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.9 Get CPU FreqCheck the current CPU freq:~ #cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

3.2.10 Bluetooth

If the Bluetooth PAN service has been started, the chapter of 3.1.15.1’scommands have been running. So we can overleap the commands in thischapter.

Page 46: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 46 / Total 57

3.2.10.1 Pair to other deviceAfter booting up the target, type the following command in turn.~ # dbus-daemon --system //default start~ # bluetoothd // //default start

In some occasions, pairing other device may use pin codes. Disable thesimple pairing, type command as bellow:~ # hciconfig 0 sspmode 0

Input the previous PIN code at target device, pairing is finished.In simple pairing mode, (hciconfig 0 sspmode 1), tool "agent" may using simplemode PIN to pair.~ # agent --adapter hci0 --path /test/agent 0000 & //default start

note: hci0 is local bluetooth device, the "test/agent" could change not solid,"0000" is the PIN.In simple mode, other device pair to target will show the random PIN code indevice,and bellow will display at command line.In target:Confirmation request of 837114 for device/org/bluez/1898/hci0/dev_74_51_BA_E0_EB_97The "837114" is the random PIN.If the disabled simple pairing mode, "0000" is the PIN.

3.2.10.2.Bluetooth send/recive fileType command 'hciconfig <dev> piscan', other device would be seen it.Example:~ # hciconfig 0 piscan //default startIf you want to close the function, you can type command 'hciconfig <dev>noscan'.

Using obexftpd receive file:~ # sdptool add --channel=10 OPUSH~ # obexftpd -b -c <recv file dir> &

For send file:~ # hcitool scanGetting devices:

98:6C:F5:B3:CD:E7 xxxx

Page 47: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 47 / Total 57

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 weuse service.

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

Using obexftp send file:~ # obexftp -b 98:6C:F5:B3:CD:E7 -B 20(get channel No. from sdptoolbrowse result) -c <the dest file dir> -p <local send file dir>

If getting "The operation failed with return code 97", you may type commandlike "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.10.3 Bluetooth Serial Port

Page 48: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 48 / Total 57

Add SP service~ # sdptool add --channel=<channel No.> SP

For server,~ # rfcomm listen /dev/rfcomm0 <channel No.> &For client,~ # rfcomm bind /dev/rfcomm0 <server addr> <channel No.> &

Please note using 'sdptool browse local' to make sure whether if local deviceopen SP service.

Service Name: Serial Port <======== serial port serviceService Description: COM PortService Provider: BlueZService RecHandle: 0x10004Service Class ID List:"Serial Port" (0x1101)

Protocol Descriptor List:"L2CAP" (0x0100)"RFCOMM" (0x0003)Channel: 3 <======== serial port channel

Language Base Attr List:code_ISO639: 0x656eencoding: 0x6abase_offset: 0x100

Profile Descriptor List:"Serial Port" (0x1101)Version: 0x0100

After binding serial port rfcomm0, using serial tool to open the port.For example,~ # microcom /dev/rfcomm0

If typing chacracters in client, using 'microcom /dev/rfcomm0 ' couldcommunicate with client.And using 'cat /dev/rfcomm0' could only get the same at server end.

Disconnecting from the /dev/rfcomm0, make sure the bind or connect to"rfcomm0" work well. If not,please disconnect or unbind it before connect or bind to.

Note: In general, the server disconnect /dev/rfcomm0 need rebind it. After the

Page 49: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 49 / Total 57

client could open the node over SP channel.

3.2.10.4 Other command"l2ping" like "ping" to check connection works,~ # l2ping xx:xx:xx:xx:xx:xxreturned as bellow:

0 bytes from 74:51:BA:E0:EB:97 id 0 time 38.56ms0 bytes from 74:51:BA:E0:EB:97 id 1 time 39.01ms0 bytes from 74:51:BA:E0:EB:97 id 2 time 21.64ms0 bytes from 74:51:BA:E0:EB:97 id 3 time 27.04ms0 bytes from 74:51:BA:E0:EB:97 id 4 time 39.43ms0 bytes from 74:51:BA:E0:EB:97 id 5 time 29.42ms0 bytes from 74:51:BA:E0:EB:97 id 6 time 19.42ms6 sent, 6 received, 0% loss

Zero or other bytes to returned, without loss, are all right."hcitool scan" could scan bluetooth device,

~ # hcitool scan38:BC:1A:D1:17:A0 xxgeting

78:4B:87:9F:6B:3F m2mMX674:51:BA:E0:EB:97 Founding22:22:CE:AD:EF:BC MMM

3.2.11 COM1 (DB9)The DB9 port of VT-M2M-G335 can be multiplexed as RS232 or RS485.

Before the test, prepare an opposite device for reading and writing data.

3.2.11.1 DB9 RS232 Test~# serial_mode -d /dev/ttyO4 -m rs232~# microcom /dev/ttyO4 -s 115200

3.2.11.2 DB9 RS485Test~# serial_mode -d /dev/ttyO4 -m rs485~# microcom /dev/ttyO4 -s 115200

3.2.12 RS232/RS485/RS422 on Green ConnectorSeveral PINs of Green Connector on font panel can be multiplexed as

RS232, RS485or RS422. The below table list the physical IO specification, thisis also described in the Hardware User Manual.

Page 50: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 50 / Total 57

Pin Description Remarks1 TX422-2 TX422+3 RX422-/ RS485_2_B/SRXD3 Jumper Set4 RX422+/RS485_2_A/STXD3 Jumper Set5 CANH6 CANL7 ISO_GND P8 IO_GND P9 GPIO_OUT1 IO10 GPIO_OUT2 IO11 GPIO_IN1 IO12 GPIO_IN2 IO

NOTE: Different contribution may have different jumper connected ways.

3.2.12.1 RS232 TestPlease unpack top cover, and remove jumper of JP2,JP3,JP4.~# serial_mode -d /dev/ttyO1 -m rs232~# microcom /dev/ttyO1 -s 115200

3.2.12.2 RS485TestPlease unpack top cover, and remove jumper JP2, and set jumper JP3,JP4.~# serial_mode -d /dev/ttyO1 -m rs485~# microcom /dev/ttyO1 -s 115200

3.2.12.3 RS422 TestPlease unpack top cover, and remove jumper of JP2,JP3,JP4.~# serial_mode -d /dev/ttyO1 -m rs422~# microcom /dev/ttyO1 -s 115200

PIN1

Page 51: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 51 / Total 57

3.2.13 GPIOThe PIN level of Out1&2 and IN1&2 can be written or read from the below fileentries (Out1&2 and IN1&2 are on the front green connector).External Port IO EntryIN1 /sys/power/gpio_in1IN2 /sys/power/gpio_in2OUT1 /sys/power/gpio_out1OUT2 /sys/power/gpio_out2Input IO:~# cat /sys/power/gpio_in1~# cat /sys/power/gpio_in2Output IO:~# echo 1 > /sys/power/gpio_out1~# echo 0 > /sys/power/gpio_out1

3.2.14 Manually Run AT CommandsA daemon process ‘redial_server’ is running on G335, it should be killed

before the execution of AT commands. And, the 3G module might be poweredoff at the time, no matter it is powered or not, give it a power recycle and resetto ensure the module is ready for manual AT commands.

The below commands are supposed to be executed in G335 console:// Kill 3G process# killall pppd# killall cron# killall redial_server

// Power off 3G Module# echo 1 > /sys/power/3g_power

// Power on 3G Module# echo 0 > /sys/power/3g_power

//Method 1: open serial port using microcom# microcom /dev/ttyUSB3 -s 115200ATOK// Go on with your AT commands…

Page 52: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 52 / Total 57

//Method 2: cat serial port# cat /dev/ttyUSB3 & //telit de910---/dev/ttyUSB3

//telit he910--/dev/ttyACM0//GE910 and MG323 /dev/ttyS1

# echo -e “at\r\n” > /dev/ttyUSB3OK// Go on with your AT commands…

Page 53: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 53 / Total 57

4 Update and boot

4.1 Boot Mode

The board support to boot from on-board eMMC or external Micro SD card. Bootingfrom the external Micro SD card will make the program debugging more convenient,because it’s very easy to upgrade the Micro SD content. Booting from on-board eMMCis a standard for Linux tablet, the on-board eMMC is the internal storage, and the MicroSD card is the external storage. Every distribution package released from Vantron musthave identifiers to indicate the package is released for Micro SD booting, eMMC booting,or both. If you need to change selection between the 2 booting ways, you must knowhow to set the physical booting jumpers.

Set dial switch to 1100 (from PIN 1 to PIN 4, 0 means off while 1 means on), theboard will boot from the on-board eMMC chip. This is the factory setting.

[Table 5-1 Boot Mode Switch]

The Boot Mode Switch is set to “ON:ON:OFF:ON” by default, and the unit bootfrom the on-board eMMC.Before change the Boot Mode Switch, please unpack the cover of unit.

4.2 Booting fromMicro SD card

To make a bootable Micro SD card, you need:1. a 4GB or larger Micro SD card2. a X86 pc runs linux OS

Then do like following: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 recovery image to the targetdevice.

~# cd image/sdimg/~#sudo ./usb_upgrade.sh ./vt-m2m-G335-usb-update-<date>-<MD5SUM>.tar.gz/dev/sdX

Boot Mode Pin1 Pin2 Pin3 Pin4

eMMC ON ON OFF ONSD card OFF OFF ON ON

Page 54: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 54 / Total 57

NOTE:1. Replace the placeholder /dev/sdX with the specific device file assigned toyour Micro SD card when it was inserted.2. If the Micro SD card mounted automatically when you inserted it (that is, ifan icon appeared on the desktop or a file manager window opened), you mustunmount the Micro SD card first.

4. After the command prompt returns and the activity light (if any) onyour flash drive stops blinking, remove the Micro SD card.

5. Set the Boot Mode Switch to boot from Micro SD card, referring to4.1 Boot Mode.

6. Inset Micro SD card to card slot on the unit and power on, it will bootfrom Micro SD card.

4.3 Booting from EMMC

To make a bootable eMMC, please make a bootable Micro SD card firstly,referring to step 1 to step 6 of 4.2 Booting from Micro SD card, thenplease do as following steps:1. login to G335, then execute:

# cd /opt/# ./mkemmc.sh

2. Power off the unit, and unplug the Micro SD card.3. Then please set the Boot Mode Switch to boot from on-board eMMC,

referring to 4.1 Boot Mode.4. Power on the unit, it will boot from eMMC.

4.4 Update Via Web Page

When system is up, you can update system via web browser. Please referto chapter 2.6.5 Firmware Upgrade for more details.

Again, update file for web page always has name of‘vt-m2m-g335-remote-upgrade-xos<date>.tar.gz’. Update with other file viawebpage may get unexpected errors.

Page 55: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 55 / Total 57

5 Install Vantron Provided Toolchain

As the chapter “1 prepare Development Environment ” discussed, if users

want to compile their own source with Vantron provided toolchain, a hostcomputer with Ubuntu operating system pre-installed is required. Executebelow commands on the host computer.Copy package/tools/poky-glibc-i686-core-image-sato-cortexa8hf-vfp-neon-toolchain-1.8.1.tar.gz into Ubuntu host.# tar -xvfpoky-glibc-i686-core-image-sato-cortexa8hf-vfp-neon-toolchain-1.8.1.tar.gz# ./poky-glibc-i686-core-image-sato-cortexa8hf-vfp-neon-toolchain-1.8.1.shInstall the toolchain into /opt/poky#source /opt/poky/environment-setup-cortexa8hf-vfp-neon-poky-linux-gnueabi

Write code with your favorite editor (ex “test.c”), compile it with belowcommands:# source /opt/poky/environment-setup-cortexa8hf-vfp-neon-poky-linux-gnueabi# vim test.c // write C doe# $CC -Wall -o test test.c# ls -l test

Page 56: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 56 / Total 57

6 Restore Factory Settings

There are three ways restore F/W back to factory settings.

6.1 Restore Factory Settings by pressing Renew Button

Keep pressing "Renew" button more than 5 seconds, system will restore tofactory settings and then follows a reboot.

Note: data in partitions etc and data will not be erased.

6.2 Restore via web page

Open a browser to access device’s web page ‘Administration -> FactoryDefaults’, select “YES” then click “Apply Settings”. Please refer to chapter“2.6.4 Factory Defaults” for details.

Note: data in partitions etc and data will not be erased.

6.3 Restore all partitions by pressing Renew Button

Reset the device, at the same time, press "Renew" button until the buzzerrings twice.

Note: data in partitions etc and data will be erased.

Page 57: VT M2M G335 x000B Software User Manual › uploads › 20200525 › f4f4a0c15c379bbaa… · Cert Theclient.crtfilecontent PrivateClient Key Thenclient.keyfilecontent 2.5NAT 2.5.1PortForwarding

VT-M2M-G335 Software User Manual

Page 57 / Total 57

Appendix A: Getting Help

US 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, WuHou District,Chengdu, P.R. China 610045Tel: 86-28-8512-3930/3931, 8515-7572/6320Email: [email protected]