Quantcast
Channel: The Things Network - Latest posts
Viewing all articles
Browse latest Browse all 116818

Single Channel Gateway

$
0
0

Hi,

Nice project but something wrong with my configuration:

I build the Single Channel Gateway with a RFM95W and a Raspberry Pi B+. The code is from https://github.com/tftelkamp/single_chan_pkt_fwd and running on Raspbian Wheezy.

When I start the package forwarder I get the error:

"Unrecognized Transceiver"

I've searched for that error and found in the main.cpp:

void SetupLoRa()
{

digitalWrite(RST, HIGH);
delay(100);
digitalWrite(RST, LOW);
delay(100);

byte version = readRegister(REG_VERSION);

if (version == 0x22) {
    // sx1272
    printf("SX1272 detected, starting.\n");
    sx1272 = true;
} else {
    // sx1276?
    digitalWrite(RST, LOW);
    delay(100);
    digitalWrite(RST, HIGH);
    delay(100);
    version = readRegister(REG_VERSION);
    if (version == 0x12) {
        // sx1276
        printf("SX1276 detected, starting.\n");
        sx1272 = false;
    } else {
        printf("Unrecognized transceiver.\n");
        //printf("Version: 0x%x\n",version);
        exit(1);
    }
}

I thought that HopeRFM95W is compatible with the SX1276.
Any ideas what coud be wrong here?


Viewing all articles
Browse latest Browse all 116818


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>