background image

LEW840X, OpenSource Multiple Network Gateways          

Dra$ Ver 0.21  Mar. 2020

3. Firmware Development and Programming

LEW840X gateways is pre-loaded with WiFi+ELTE M (Optional) demonstration codes.

When connected to internet, LEW840X gateway sends temperature and humidity sensor data to Fanstel 

MQTT server. You can use Fanstel MQTT PC tool or mobile APP to monitor data.

MQTT tool or MQTT APP<->MQTT broker <->LEW840F<->BLE Sensor

It is easier to test gateway and load firmware by removing gateway PCBA from enclosure.

Ethernet and WiFi

Check the Ethernet. 

Connect UART_Bridge Board “TO WIFI(ESP)” into the JS1 of LEW840X PCBA.

Make sure the switch on Bridge board is turn o

.

Connect micro USB to PC and open the teminal tool.

11

Summary of Contents for OpenSource LEW840X Series

Page 1: ...nRF9160 have CryptoCell coprocessor embedded Secure connection can be established from Bluetooth mesh to cloud server Private label and custom hardware can be supported Some BLE 5 Gateways will be up...

Page 2: ...s 5 WiFi or Ethernet Interfaces 6 Bluetooth 5 Thread Zigbee Interfaces 7 Bluetooth 5 1 Thread Zigbee Interfaces 8 LoRa Interfaces 9 Power Supply and Power over Ethernet 10 Operating Temperature Range...

Page 3: ...tion and maintenance supports are simplified When multiple networks are available back up routing can assure of cloud connection during one or more networks failures Alternatively your can select a si...

Page 4: ...et PHY interface ESP32 communicates with nRF9160 LTE M NB IoT module using an UART interface It also communicates with BT840F BLE 5 module using a second UART BT840F controls LoRa module LR62E through...

Page 5: ...teways IP51 gateway without PoE is powered by a micro USB AC adapter IP65 gateway without PoE is powered by 48V DC Up to 3 external antennas can be supported LTE and LoRa interfaces need external ante...

Page 6: ...card connector on board Power saving features DRX eDRX PSM IP v4 v6 stack Secure socket TLS DTLS API WiFi or Ethernet Interfaces ESP32M16 WiFi module with an Expressif ESP32 D0WD dual core Xtensa 32...

Page 7: ...stel and non Fanstel sensors beacons BT840E with ANT060 antenna will provide the best receiver sensitivity if antennas are deployed in parallel horizontal polarization Brief specifications of BT840F S...

Page 8: ...files needing processing power e g BLE 5 1 directional finding audio Brief Specifications BT40F Series modules nRF5340 QKAA dual core ARM Cortex M33 Application Core 128 64 MHz Cortex M33 with FPU and...

Page 9: ...Ra Interfaces LR62E module with Semtech SX1262 transceiver u FL connector Up to 22 dBm transceiver USA version at 902 to 928 MHz Panel mounted SMA connector for external antenna LoRa stacks for cloud...

Page 10: ...ating temperature range 40oC to 80oC PoE IP51 gateway has operating temperature range of 40oC to 80oC Operating temperature range of 48V DC power supply is 20oC to 60oC Non PoE IP65 gateway has operat...

Page 11: ...nd humidity sensor data to Fanstel MQTT server You can use Fanstel MQTT PC tool or mobile APP to monitor data MQTT tool or MQTT APP MQTT broker LEW840F BLE Sensor It is easier to test gateway and load...

Page 12: ...g in the Ethernet and reset the board Gateway should get DHCP IP address Check WiFi setup network first Hold SW1 when resetting The LEW840X will enter AP mode Use a smartphone and into the Setup WiFi...

Page 13: ...LEW840X OpenSource Multiple Network Gateways Dra Ver 0 21 Mar 2020 Setup the SSID and password for your router 13...

Page 14: ...i should be got ID and connected Check MQTT Connect UART_Bridge Board To Log into the JS1 Open the MQTT PC tool and type the ID The ID is esp32_XXXXXX and same as AP name You should able see the ID in...

Page 15: ...and programming ESP32 firmware Open mos yml in folder mqtt_sensorWiFi_Ethernet_esp32 Change the SSID and password to match your router wifi sta ssid FanstelSystems wifi sta pass 1234567890 Save the f...

Page 16: ...Network Gateways Dra Ver 0 21 Mar 2020 Programming the ESP32 Connect UART_Bridge Board TO WIFI ESP into the JS1 Make sure the switch on Bridge board is turn on Type command mos flash port COM9 The por...

Page 17: ...ected nRF52 DK debug out to LEW840F JS2 Download and install Nrf5x Command Line Tools https www nordicsemi com Software and Tools Development Tools nRF5 Command Line Tools Download the nRF Connect des...

Page 18: ...loaded by the following links Get start with Nordic chip and all online documents http infocenter nordicsemi com index jsp topic com nordic infocenter nrf52 dita nrf52 development nrf52_dev_kit html c...

Page 19: ...LEW840X OpenSource Multiple Network Gateways Dra Ver 0 21 Mar 2020 Download and install nRF Connect https www nordicsemi com sc_itemid B935528E 8BFA 42D9 8BB5 83E2A5E1FF5C 19...

Page 20: ...eways Dra Ver 0 21 Mar 2020 Programming the nRF9160 Module Connected nRF9160 DK debug out to LEW840F JS3 Open nRF connect programmer and load the softdevice and application Erase and write The MQTT ID...

Page 21: ...tart setup md https mongoose os com docs mongoose os quickstart develop in c md Mongoose forum https community mongoose os com Nordic online document https infocenter nordicsemi com index jsp topic co...

Page 22: ...nSource Multiple Network Gateways Dra Ver 0 21 Mar 2020 Revision History Jan 2020 Ver 0 10 Initial draft release Feb 2020 Ver 0 20 Add draft programming information Mar 2020 Ver 0 21 Update sample sto...

Page 23: ...com Website www fanstel com Taiwan Fanstel Corp 10F 10 79 Xintai Wu Road Xizhu New Taipei City Taiwan 22101 79 10 10 22101 Tel 886 2 2698 9328 Fax 886 2 2698 4813 Email info fanstel com Website www fa...

Reviews: