Geneko GWR series User Application Examples

Text of the manual

User application examples

1 User Application Examples on Geneko Cellular Routers Document version: 1.2 Date: September 2016

User application examples

Abstract This document describes user application examples delivered on Geneko Cellular Routers. Document Control Version 1.2 File GWR User Application Examples 2016 Sep Rev C.pdf Document: Status Valid Role Name Author Tanja Savic Creation: Review C Role Name Approval: Team Leader Darko Kojic Trademark Geneko ® is the registered trademark of Geneko Company. © 2016 Geneko Company. All rights reserved. Copying of this document or parts of it is prohibited.

User application examples

Content ABSTRACT .................................................................................................................................................... 3 DOCUMENT CONTROL ............................................................................................................................... 3 TRADEMARK ................................................................................................................................................ 3 LIST OF FIGURES........................................................................................................................................... 5 1. INTRODUCTION........................................................................................................................................ 6 1.1 Purpose ............................................................................................................................................. 6 2. USER APPLICATION ENVIRONMENT........................................................................................................ 7 3. EXAMPLES................................................................................................................................................. 8 3.1 Connection and access of FTP server............................................................................................ 8 3.2 Get modem info ............................................................................................................................... 8 3.3 Read data from serial port............................................................................................................ 10 3.4 Read received SMS messages....................................................................................................... 11 3.5 Remove SIM card PIN................................................................................................................... 12 3.6 Report ppp_0 status ...................................................................................................................... 13 3.7 Router Network configuration .................................................................................................... 14 3.8 Connect and access of TCP server............................................................................................... 16 3.9 SMS Send ........................................................................................................................................ 17 3.10 E-mail send................................................................................................................................... 18 3.11 General Purpose Input/Output (GPIO)................................................................................... 19 3.11.1 gpio_functionality................................................................................................................... 20 3.11.2 gpio_send_sms ....................................................................................................................... 21

User application examples

List of Figures Figure 1 – GWG Gateway display of examples ......................................................................................... 7 Figure 2 – ftp_connect script......................................................................................................................... 8 Figure 3 – FileZilla client............................................................................................................................... 8 Figure 4 – Result after execution get_modem_info................................................................................... 9 Figure 5 – Result after execution serial_read_example........................................................................... 10 Figure 6 – Display serial_read_example ................................................................................................... 10 Figure 7 – Result after execution read_sms_perform_action................................................................. 11 Figure 8 – Display read_sms_perform #1................................................................................................. 12 Figure 9 – Result after execution remove_sim_card_pin........................................................................ 12 Figure 10 – Display remove_sim_card_pin .............................................................................................. 13 Figure 11 – Result after execution report_ppp_status............................................................................. 14 Figure 12 – Display report_ppp_status..................................................................................................... 14 Figure 13 – Result after execution router_network_configuration_example ...................................... 15 Figure 14 – Display router_network_configuration_example #1.......................................................... 15 Figure 15 – Result after execution tcp_server_example.......................................................................... 16 Figure 16 – PuTTY configuration............................................................................................................... 16 Figure 17 – PuTTY display.......................................................................................................................... 17 Figure 18 – Display sms_send .................................................................................................................... 18 Figure 19 – Result after execution script send_e-mail............................................................................. 18 Figure 20 – Display send_e_mail ............................................................................................................... 19 Figure 21 - Result after execution gpio_functionality.sh........................................................................ 20 Figure 22 - gpio_functionality ................................................................................................................... 21 Figure 23 - Result after execution gpio_send_sms.sh ............................................................................. 21 Figure 24 - gpio_send_sms.......................................................................................................................... 22

Other Network Router Manuals