ELASTEL EG500 Instrucciones de funcionamiento

ELASTEL TECHNOLOGY CO., LTD.
WWW.ELASTEL.COM
Edge Computing Gateway
EG500
Administrator Programming Guide

ELASTEL TECHNOLOGY CO., LTD.
WWW.ELASTEL.COM
Contents
1. Initial Driver Installation.....................................................................................................................3
1.1 Install Ethernet Port Driver ..............................................................................................3
1.2 Install commands .............................................................................................................3
2. Serial Port (RS232 and RS485)............................................................................................................4
2.1 PIN Definition and Wiring ................................................................................................4
2.2 Programming....................................................................................................................5
3. DI & DO...............................................................................................................................................6
3.1 PIN Definition and Wiring ................................................................................................6
3.2 Programming....................................................................................................................7
4. VI & AI ................................................................................................................................................9
4.1 PIN Definition and Wiring ................................................................................................9
4.2 Programming..................................................................................................................10
5. LED....................................................................................................................................................10
5.1 LED Definition.................................................................................................................10
5.2 Programming..................................................................................................................11
6. Cellular Module over Mini-PCIe 1....................................................................................................12
6.1 Module Installation........................................................................................................12
6.2 Dialing Programming......................................................................................................14
6.3 GPS Programming ..........................................................................................................15
7. WiFi ..................................................................................................................................................16
7.1 STA Mode .......................................................................................................................17
7.2 AP Mode.........................................................................................................................17
8. LoRaWAN Module over Mini-PCIe 2 ................................................................................................18
8.1 Module Installation........................................................................................................18
8.2 Driver installation...........................................................................................................19
9. WiFi HaLow ......................................................................................................................................21
9.1 Module Installation........................................................................................................21
9.2 Driver Installation...........................................................................................................22
9.3 How to Start in AP Mode ...............................................................................................22
9.4 How to Start in STA Mode..............................................................................................22
10. WDT (Watch Dog Timer) ................................................................................................................23
10.1 Block Diagram ..............................................................................................................23
10.2 How it works ................................................................................................................23
11. RTC (Real Time Clock).....................................................................................................................24
11.1 Block Diagram ..............................................................................................................24
11.2 Configuration ...............................................................................................................24
12. Bluetooth .......................................................................................................................................24

ELASTEL TECHNOLOGY CO., LTD.
WWW.ELASTEL.COM
1. Initial Driver Installation
1.1 Install Ethernet Port Driver
The Ethernet port labeled “LAN” on EG500 was bridged from PCIe by Realtek network chipset,
you may need install the Ethernet port driver to run it up.
$ cd ~
$ sudo apt-get update
$ sudo apt-get install raspberrypi-kernel-headers
$ git clone https://github.com/Elastel/r8168.git
$ cd r8168
$ sudo ./autorun.sh
1.2 Install commands
Also Elastel provide some prebuilt commands for I/O ports and others operating. They are,
Command Name
Usage description
read_di
Read the Digital input ports value
read_do
Read the Digital output ports value
write_do
Write the Digital output ports value
read_ai
Read the current type analog input value
read_vi
Read the voltage type analog input value
led_ctl
LED control
quectl-CM
The cellular module dialing program
Use below commands to install it.

ELASTEL TECHNOLOGY CO., LTD.
WWW.ELASTEL.COM
$ cd ~
$ git clone https://github.com/Elastel/elastel_command.git
$ cd elastel_command
$ chmod +x install.sh
$ sudo ./install.sh
2. Serial Port (RS232 and RS485)
2.1 PIN Definition and Wiring
PIN
Description
TX
RS232 transmit line
RX
RS232 receive line
GND
Ground (Reference potential)
A
RS485 difference line high
B
RS485 difference line low

ELASTEL TECHNOLOGY CO., LTD.
WWW.ELASTEL.COM
2.2 Programming
There are two individual serial ports in the system. The /dev/ttyACM1 for RS232 port, and
/dev/ttyACM0 for RS485 port. Use RS232 as an example.
$ python
>>> import serial
>>> ser=serial.Serial('/devttyACM1',115200,timeout=1)
>>> ser.isOpen()
true
>>> ser.write('1234567890')
10

ELASTEL TECHNOLOGY CO., LTD.
WWW.ELASTEL.COM
3. DI & DO
3.1 PIN Definition and Wiring
Interfaces
PIN Level of active
PIN of GPIO from BCM2711
DI0
HIGH
GPIO4
DI1
HIGH
GPIO17
DI2
HIGH
GPIO18
DI3
HIGH
GPIO27
DI4
HIGH
GPIO23
DI5
HIGH
GPIO24
COM
/
/
COM
/
/
DO0
HIGH
GPIO22
DO1
HIGH
GPIO20
DO2
HIGH
GPIO13
DO3
HIGH
GPIO12
DO4
HIGH
GPIO16
DO5
HIGH
GPIO19

ELASTEL TECHNOLOGY CO., LTD.
WWW.ELASTEL.COM
DO_24V
/
/
DO_GND
/
/
3.2 Programming
Use DI0 as an example to test the DI function.
$ sudo -i #enable root account privileges
$ cd /sys/class/gpio
$ echo 4 > export #GPIO4 which is user of DO0
$ cd gpio4
$ echo in > direction
$ cat value # View the value of DI
Use DO0 as an example to test the DO function.
$ sudo -i #enable root account privileges
$ cd /sys/class/gpio
$ echo 22 > export #GPIO22 which is user of DO0
$ cd gpio22
$ echo out > direction
$ echo 1 > value # turn on the DO0, HIGH active
OR
$ echo 0 > value # turn off the DO0

ELASTEL TECHNOLOGY CO., LTD.
WWW.ELASTEL.COM
Another way is using the Elastel prebuilt commands read_di, read_do, write_do to control
the interfaces. Examples as below:
$ sudo read_di
read_di <0|1|2|3|4|5>, eg: read_di 1
$ sudo read_di 0
DI0 = 0
$ sudo read_do
read_do <0|1|2|3|4|5>, eg: read_do 1
$ sudo read_do 0
DO0 = 1
$ sudo write_do
write_do <0|1|2|3|4|5> 1|0, eg: write_do 1 1
$ sudo write_do 0 0
success to write DO0:0

ELASTEL TECHNOLOGY CO., LTD.
WWW.ELASTEL.COM
4. VI & AI
4.1 PIN Definition and Wiring
PIN
Description
VI0+
Voltage type analog input channel 0 +
VI0-
Voltage type analog input channel 0 -
VI1+
Voltage type analog input channel 1 +
VI1-
Voltage type analog input channel 1 -
VI2+
Voltage type analog input channel 2 +
VI2-
Voltage type analog input channel 2 -
AI0
Current type analog input channel 0
AI1
Current type analog input channel 1
AI2
Current type analog input channel 2

ELASTEL TECHNOLOGY CO., LTD.
WWW.ELASTEL.COM
4.2 Programming
Use the Elastel prebuilt commands read_vi and read_ai to get the values of analog input value.
Examples as below:
$ read_vi
read_vi <0|1|2>; eg: read_vi 1
$ read_vi 0
VI0 = 0.009V
$ read_ai
read_ai <0|1|2>; eg: read_ai 1
$ read_ai 0
AI0 = 0.000mA
5. LED
5.1 LED Definition
Otros manuales para EG500
1
Tabla de contenidos
Otros manuales de Puerta de ELASTEL
Manuales populares de Puerta de otras marcas

LST
LST M500RFE-AS Manual de usuario

Kinnex
Kinnex Media Gateway Manual de usuario

2N Telekomunikace
2N Telekomunikace 2N StarGate Manual de usuario

Mitsubishi Heavy Industries
Mitsubishi Heavy Industries Superlink SC-WBGW256 Manual de usuario

ZyXEL Communications
ZyXEL Communications ZYWALL2 ET 2WE Manual de usuario

Telsey
Telsey CPVA 500 - SIP Manual de usuario













