This repo contains the firmware for gateway node. Data corridor is reponsible for forwarding messages from gateway to individual nodes.
There are two firmwares that you need to flash into your devices to make the gateway work properly.
- Gateway Node Firmware
- Data Corridor Firmware (this)
- Clone the project
- Open the project in VS Code (with Platform IO extension installed)
- To run the projcet select
esp01_1m
environment - Some other steps go here
- Build and upload the code to ESP01s device
- Connect ESP32's
TX2
toRX
pin of ESP01. - Connect ESP32's
RX2
toTX
pin of ESP01. - Connect ESP32's
3v3
pin to3v3
pin of ESP01. - Connect ESP32's
GND
pin toGND
pin of ESP01. - Connect ESP01's
CH_PD
to3V3
to enable the chip. Otherwise the chip won't start.
If you wish to see the debug messages from data corridor. Connect an FTDI adapter to it. Pins connections:
- Connect
Tx
from FTDI toGPIO 0
of ESP01s - Connect
Rx
from FTDI toGPIO 2
of ESP01s - Connect
GND
from FTDI toGND
on ESP32/ESP01s board
Hardware serial interface is used to communicate with ESP32. Another software serial interface is created on pins 0 and 2 for putting out debug information. Gateway forwards every command to ESP01 through UART and then ESP01 is responsible for sending that command to its respective nodes.