Node with ESP8266 and RFM95W

hi ,

we try to use a RFM9x LORA radio with an ESP D1 mini .we have big problem with wiring the module . in the monitor we see that messages are normally send . but we don t have anything in the data console of ttn .
as you can see we have this in the monitor :lorawan

i think the problem is the " unknown event" that happened at each time .

for our pin mapping we do this ;
// Pin mapping
const lmic_pinmap lmic_pins = {
.nss = 15,
.rxtx = LMIC_UNUSED_PIN,
.rst = LMIC_UNUSED_PIN,
.dio = {4, 5, LMIC_UNUSED_PIN},
};

we donā€™t know if itā€™s correct or not .

see How should I wire an RFM95 to an ESP8266/WeMos D1 mini?

D8 (GPIO15) -> NSS
D5 (GPIO4)->SCK
D7 (GPIO13)->MOSI
D6 (GPIO12)->MISO
D1(GPIO5)->DIO 0
D2(GPIO4)->DIO 1

const lmic_pinmap lmic_pins = {
.nss = 15,
.rxtx = LMIC_UNUSED_PIN,
.rst = LMIC_UNUSED_PIN,
.dio = {4, 5, LMIC_UNUSED_PIN},
};

seems ok ā€¦ check again :wink:

2 Likes

we do , but no sucess .
i think the wiring is different for our module because we donā€™t have just lora module but wa have something like this ;
lora
do you tkink this type of module work same as the green card ?
what can be the unknown event ?

I do like you post because you are clearly talk about the PinMappingā€¦ which is a bit a confusing topic (GPIO X vs DIO Y vs MISO) an so onā€¦

But I guess you did like to write D5 (GPIO14)->SCK >> GPIO14 right?

Thanks Marcel

It is possble to connet mutiple devices to I2C. Just connect datapins to the CS line of the sensors and RFM. Trip that datapin when trying to read or write to that device.

Not sure what you are trying to say here but

Is just plain nonsense because I2C sensors do not have a chip select (CS) pin.

Stop responding to OLD posts/threads if you have nothing useful to add!

@Charles

I have 3 diodes from the 3 DIO-pins and a pull down to GPIO15 of the ESP12. Same pin-mapping as in:

May I use the next option in the Pin mapping to make it universal for LoRaWAN and FSK?
.dio = {15, 15, 15},
or
.dio = { 15, LMIC_UNUSED_PIN, LMIC_UNUSED_PIN},

There was a topic of it, but I couldā€™n find it.

Thanks and regardsā€¦

I appreciate this is an old postā€¦ Iā€™m trying to get this to work using software/documentation [provided by Maarten Westenberg]((GitHub - things4u/ESP-1ch-Gateway: Version 6 of the single channel gateway)

The code compiles and and when I upload it to a Wemos D1 Pro, I get debug information in my Arduino IDE. When I connect the RFM95W I get nothing in my debug window. My questions:

  1. Iā€™m powering the unit from the USB port on my laptop. Will that work or does it require too much current?
  2. I see various mentions of diodes, pull up resistors etc but I donā€™t use any and instead just use the wiring described on this page.

TTN is no longer able to support Single Channel Packet Forwarders - they are very non-compliant, devices expect to transmit on any one of 8 channels, they cause disruption to the network & other users and the owner. Please search the forum for more information.

The TTIG is a good low cost compliant gateway.