ELASTEL EG500 Programming Manual

ELASTEL EG500 Programming Manual

Edge computing gateway
Hide thumbs Also See for EG500:

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for ELASTEL EG500

  • Page 1 Edge Computing Gateway EG500 Administrator Programming Guide ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 2: Table Of Contents

    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...
  • Page 3: Initial Driver Installation

    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...
  • Page 4: Serial Port (Rs232 And Rs485)

    $ chmod +x install.sh $ sudo ./install.sh 2. Serial Port (RS232 and RS485) 2.1 PIN Definition and Wiring Description RS232 transmit line RS232 receive line Ground (Reference potential) RS485 difference line high RS485 difference line low ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 5: 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') ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 6: Di & Do

    3.1 PIN Definition and Wiring Interfaces PIN Level of active PIN of GPIO from BCM2711 HIGH GPIO4 HIGH GPIO17 HIGH GPIO18 HIGH GPIO27 HIGH GPIO23 HIGH GPIO24 HIGH GPIO22 HIGH GPIO20 HIGH GPIO13 HIGH GPIO12 HIGH GPIO16 HIGH GPIO19 ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 7: Programming

    #GPIO22 which is user of DO0 $ cd gpio22 $ echo out > direction $ echo 1 > value # turn on the DO0, HIGH active $ echo 0 > value # turn off the DO0 ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 8 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...
  • Page 9: Pin Definition And Wiring

    Voltage type analog input channel 1 - VI2+ Voltage type analog input channel 2 + VI2- Voltage type analog input channel 2 - Current type analog input channel 0 Current type analog input channel 1 Current type analog input channel 2 ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 10: Programming

    4.2 Programming Use the Elastel prebuilt commands read_vi 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...
  • Page 11: Programming

    WiFi status indicator LED 8 Alarm indicator 5.2 Programming Use the Elastel prebuilt command led_ctl to control the LEDs. Examples as below: $ led_ctl led_ctl -m < system | wifi | alarm | online | sig > -s <on | off |none | low | high>...
  • Page 12: Cellular Module Over Mini-Pcie 1

    #enable root account privileges $ cd /sys/class/gpio $ echo 5 > export #GPIO5 which is reset signal $ cd gpio5 $ echo out > direction $ echo 1 > value # release the reset signal of Mini PCIe ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 13 3.610498] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3 $ ifconfig -a …… wwan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 169.254.58.161 netmask 255.255.0.0 broadcast 169.254.255.255 inet6 fe80::9e8a:5252:d4c8:15cb prefixlen 64 scopeid 0x20<link> ether c6:00:46:68:12:80 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 14: Dialing Programming

    TX packets 133 bytes 33576 (32.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 6.2 Dialing Programming Connect to the network using the Elastel prebuilt command quectel-CM Execute $quectel-CM –h for more details. $ sudo quectel-CM [08-02_09:39:09:900] Quectel_QConnectManager_Linux_V1.6.0.24...
  • Page 15: Gps Programming

    1) Send AT command to enable GPS data acquisition to /dev/ttyUSB2 block AT+QGPS=1 # To enable GPS acquisition. AT+QGPS=0 # To disable GPS acquisition. Example: echo -en "AT+QGPS=1\r\n" > /dev/ttyUSB2 | cat /dev/ttyUSB2 & return: 2) Obtain the GPS data from /dev/ttyUSB1 Example: cat /dev/ttyUSB1 Return: ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 16: Wifi

    1000 (Ethernet) RX packets 6760 bytes 877872 (857.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 376 bytes 31652 (30.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 17: Sta Mode

    3. Enable WIFI Hotspot (1) Create WiFi hotspot without password. create_ap wlan0 eth0 MyAccessPoint (2) Create WiFi hotspot with WPA+WPA2 authentication. create_ap wlan0 eth0 MyAccessPoint MyPassPhrase (3) Create WiFI Hotspot without internet sharing create_ap -n wlan0 MyAccessPoint MyPassPhrase ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 18: Lorawan Module Over Mini-Pcie 2

    8. LoRaWAN Module over Mini-PCIe 2 8.1 Module Installation EG500 reserved another mini-PCIe socket for LoRaWAN module which develop from Semtech SX1301, SX1302 solution. Users are allowed to install a LoRaWAN module into mini-PCIe socket 2 as drawing blue area add-on module position, only one M2x5 screw is needed.
  • Page 19: Driver Installation

    Aug 02 12:36:51 Elastel gwstart.sh[27753]: ##### 2022-08-02 11:36:51 GMT ##### Aug 02 12:36:51 Elastel gwstart.sh[27753]: ### [UPSTREAM] ### Aug 02 12:36:51 Elastel gwstart.sh[27753]: # RF packets received by concentrator: 0 Aug 02 12:36:51 Elastel gwstart.sh[27753]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: ELASTEL TECHNOLOGY CO., LTD.
  • Page 20 0.00% Aug 02 12:36:51 Elastel gwstart.sh[27753]: # RF packets forwarded: 0 (0 bytes) Aug 02 12:36:51 Elastel gwstart.sh[27753]: # PUSH_DATA datagrams sent: 1 (122 bytes) Aug 02 12:36:51 Elastel gwstart.sh[27753]: # PUSH_DATA acknowledged: 0.00% Aug 02 12:36:51 Elastel gwstart.sh[27753]: ### [DOWNSTREAM] ### Aug 02 12:36:51 Elastel gwstart.sh[27753]: # PULL_DATA sent: 3 (100.00% acknowledged)
  • Page 21: Wifi Halow

    You are allowed to mount SX-NEWAH by yourself. Attention! You may need special weld tool and skill to mount SX-NEWAH on EG500 by yourself. Incorrect operation may destroy the carrier board and SX-NEWAH.
  • Page 22: Driver Installation

    9.2 Driver Installation $ cd ~ $ git clone https://github.com/Elastel/halow-wifi.git $ cd halow-wifi $ sudo chmod +x install.sh $ sudo ./install.sh $ sudo reboot 9.3 How to Start in AP Mode ⚫ Sample command to start in AP mode ① sudo insmod /lib/modules/$(uname -r)/nrc.ko fw_name=nrc7292_cspi.bin bd_name =nrc7292_bd.dat hifspeed=16000000...
  • Page 23: Wdt (Watch Dog Timer)

    8. Get Into WDT-FEED mode, at least one pulse should be feed into WDI in at least every 2 seconds, if not, the WDT module should output a negative pulse to reset the system. 9. Go to 2. ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 24: Rtc (Real Time Clock)

    Below example describe the process of setting up a Bluetooth connectivity. 1. Execute bluetoothctl command to operate Bluetooth feature. $ sudo bluetoothctl 2. Enable the agent on to scan and discovery other Bluetooth devices. [bluetooth]# agent on [bluetooth]# scan on ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...
  • Page 25 4. The fist time pair, it will connect with it immediately. If the connectivity disconnected since Bluetooth device out of range, we need use “connect” command to reconnect it. connect [XX:XX:XX:XX:XX:XX] 5. Use “trust” command to make the Bluetooth device be trusted after first time pair. trust [XX:XX:XX:XX:XX:XX] -END- ELASTEL TECHNOLOGY CO., LTD. WWW.ELASTEL.COM...

Table of Contents