Single Channel Gateway part 2


For ESP8266

(Somsak) #133

Good summary @bluejedi

If in the case it does not support OTAA, it means that gateway only have one way communication, right? It will be excepted by my country law if it does not transmit or transmit < 50mW (eirp).




OTAA requires downstream traffic from gateway to node (‘end-device’). ABP only requires upstream traffic from node to gateway. So upstream only.

In practice it would be possible to support downstream messages but not support OTAA, but hallard’s gateway for Raspberry Pi (currently) supports neither OTAA nor downstream messages.

(Arjan) #135

True, but only if the node does not use ADR or other downlinks. (For ABP, there is simply no joining phase as the “session” keys have already been programmed into the device, so no downlinks are needed to join the network. Once those keys are known, OTAA and ABP devices act the same for uplinks, downlinks, ADR, and so on, until an OTAA device somehow loses its keys and needs to join again.)

Hmmm, assuming we’re referring to gateways for TTN: I doubt that. If TTN thinks a gateway can do downlinks, I don’t think it’s going to use that only for “data” downlinks, and not for OTAA (or ADR, or other MAC commands)? Gateways just forward whatever the node or backend gives them; they don’t know if a downlink is some OTAA Join Accept or any other type of downlink.

(It Paradyske) #136

Thanks I now have the whole chain working!
Node, single channel gateway, ttn configuration and http output to my own website…


(Deux Vis) #137

In the ESP32 section there also is the lorawan nano gateway code for the LoPy - written in µpython.


Thanks. If you or someone else can specify which features and MCU platforms this single channel gateway supports then I can update it in above list of single channel gateways.

(Deux Vis) #139

It supports OTAA, ABP and downstream messages.
The configuration is kept separately in a dedicated file that can be uploaded to the board using USB or FTP - and maybe other network protocols on the wifi side like HTTP, haven’t tried.
It listens on a single frequency, but I’m not sure about multiple SF or not.

As for the MCU, this was written for a LoPy : ESP32 board running the micropython “interpreter” from pycom. I don’t know if it is possible to flash that on a different ESP32 board, but it should with some tweaking as it’s all opensource.


Thanks. Added it to the list.



(Pity that the code lacks any instructions in a

(Janisalnis) #152

Thanks to LoRa ESP developers! Wanted to share idea to use Tic-Tac enclosure for the LORA ESP8266 single ch GW glued to the window glass and a Thing with Arduino and HTU21.

  1. Tic-Tac plastic boxes can be easily cleaned from printed labels using WD-40.
  2. In the Thing had to supply HTU21 from 5V and use a pullup 10k on SDA signal.
  3. Example with SF7 works, but when tried to change registers to transmit in SF12 mode then the GW receives it but data are errorness.
  4. I use simple wire antena. Range is ca 200 m in the city. Would it make big difference to use enamelled transformer wire for antena?

(Arjan) #153

Also, Tic-Tac boxes can easily be cut to get a smaller size, while still fitting their white top:

(Joostwestra) #154

Do you think this module can be used a non-solder single channel Lora Gateway?

(Deux Vis) #155

It has all the hardware needed for that yes, but I am not sure anyone have done the software part yet (porting a single channel gateway code to that platform).

More information on those boards in BIG ESP32 / SX127x topic a somewhat lengthy read.


See List of single channel gateway implementations higher up.


While not as good as your external SMA antenna, for the fun factor using one of these small GSM PCB antenna’s could make it fit all inside a single tic tac box, antenna included.

Small GSM PCB antennas

(Deux Vis) #158

FYI, as GSM antennas might not be the best match : Someone designed some of those which fit Lora frequencies, available on

Post reference :

Probably a bit too long for a tic tac box then.


we continue here Single Channel Gateway part 3