helium / longfi-arduino

Apache License 2.0
63 stars 48 forks source link

transmit issues #41

Closed kritch83 closed 3 years ago

kritch83 commented 3 years ago

So, I can't get my data to the console. Every two min or so it trys to join, but it just keeps looping. Join Request -> Join Accept, over & over. My board is the TTGO TBeam v1.1. I followed these examples:

https://github.com/helium/longfi-arduino/tree/master/TTGO-TBeam-Tracker Same result. Then I tried this one:

https://github.com/hekopath/ttgo-rev1-helium Same exact thing happening.

In the configuration file under LORAWAN_PORT, what port should I be using?

In the ttn.ino file under LMIC_selectSubBand(2), is subband 2 the correct one?

This is the serial output:

Screen: Latitude: 45.042828 Screen: Longitude: -93.125610 Screen: Accuracy/HDOP: 1.52m

Lat: 45.042829 Lng: -93.125613 Alt: 320 Hdop: 15 Sats: 6 Screen: Message queued

TRANSMITTED

Screen: Latitude: 45.042831 Screen: Longitude: -93.125671 Screen: Accuracy/HDOP: 1.53m

Lat: 45.042832 Lng: -93.125670 Alt: 326 Hdop: 15 Sats: 6 Screen: Message discarded

TRANSMITTED

In the counsel this is what its showing over & over: image

I feel like I'm missing something obvious. The spreading on the hotspot is SF10BW500.

My decoder script for the ttgo-rev1-helium example. For the TTGO-TBeam-Tracker I used the file included with it.

function Decoder(bytes, port) {
    var decoded = {};

    decoded.latitude = ((bytes[0]<<16)>>>0) + ((bytes[1]<<8)>>>0) + bytes[2];
    decoded.latitude = (decoded.latitude / 16777215.0 * 180) - 90;

    decoded.longitude = ((bytes[3]<<16)>>>0) + ((bytes[4]<<8)>>>0) + bytes[5];
    decoded.longitude = (decoded.longitude / 16777215.0 * 360) - 180;

    var altValue = ((bytes[6]<<8)>>>0) + bytes[7];
    var sign = bytes[6] & (1 << 7);
    if(sign) decoded.altitude = 0xFFFF0000 | altValue;
    else decoded.altitude = altValue;

    decoded.hdop = bytes[8] / 10.0;
    decoded.accuracy = bytes[8] / 10.0;
    decoded.sats = bytes[9];

    return decoded;
}

In intergration details, It says 1 piped device and for a uplink it is https://mappers.helium.com/api/v1/ingest/uplink with defaults for the rest.

Also after about 15min or so the gps stops updating and it just says Helium join failed repeating. Ive tried the example and reconfiguring my console fresh two times with the same result.

kritch83 commented 3 years ago

turned out to be a issue with the esp32 core in platformio.