helium / longfi-arduino

Apache License 2.0
62 stars 48 forks source link

Unable to send data to HELIUM network #35

Closed saadi-tech closed 2 years ago

saadi-tech commented 3 years ago

Hi, I am using a TTGO - T-beam V1.0 module. I am using EU868 frequency, and I created a device on Helium Console. I followed all the steps given in the repository like editing the configuration file to LMIC, then updated the credentials and then ran the code. The code was giving "MSG QUEUED" again and again, (ocassionally msg discarded too) Please help me out what could have been gone wrong. Any hints for the solution or any method to check even if the LoRa module is working fine or not.

Please respond ASAP. Thank you so much.

saadi-tech commented 3 years ago

One more thing please, do I need to use Device name and ID from helium console anywhere? I did not use them at any of the required steps.

kent-williams commented 3 years ago

Hi @saadi-tech, you only need to use dev_eui, app_eui, and app_key from Console. Would you be able to share the serial debug output from your device after reset please.

saadi-tech commented 3 years ago

Hi @kent-williams thank you for getting back to me. Sure, I will share the serial debug screen in a while with you. The strange thing now is, that I can send data to "TheThingsNetwork" now, but still no activity on helium. :-P

I will share more information here with you

Thank you

kent-williams commented 3 years ago

@saadi-tech Do you see anything in the Console event log, or nothing at all?

saadi-tech commented 3 years ago

Hi @kent-williams , sorry I could not respond earlier. I have been out of the HELIUM coverage area from 4 days. I will get back to you once I get there and do some tests again. Thanks! :)

mauricecyril commented 3 years ago

Hi I'm getting a similar error but the issue seems to be on the helium console side to the mappers site (https://mappers.helium.com/). The request is sent to the network but the response keeps on getting returned invalid from https://mappers.helium.com/api/v1/ingest/uplink . On the console I've setup the following decode function: https://github.com/helium/longfi-arduino/blob/master/TTGO-TBeam-Tracker/console-decoders/mapper_decoder.js

The Uplink shows an error for Integration Response.

Serial output: -> Screen: Message queued

-> TRANSMITTED -> EV_TXCOMPLETE (inc. RX win. wait)

The arduino code contains the following: if (0 < gps_hdop() && gps_hdop() < 50 && gps_latitude() != 0 && gps_longitude() != 0 && gps_altitude() != 0) { char buffer[40]; snprintf(buffer, sizeof(buffer), "Latitude: %10.6f\n", gps_latitude()); screen_print(buffer); snprintf(buffer, sizeof(buffer), "Longitude: %10.6f\n", gps_longitude()); screen_print(buffer); snprintf(buffer, sizeof(buffer), "Accuracy/HDOP: %4.2fm\n", gps_hdop()); screen_print(buffer);

buildPacket(txBuffer);
kent-williams commented 2 years ago

@saadi-tech any progress on this?

saadi-tech commented 2 years ago

@kent-williams , Hi I tried it out right now, (the code I am using works with TTN perfectly, but not working with the Helium.) (I did use the credentials from Helium device) Here is the serial output. (I have enabled debug msg display from LMC library):

(it gives UNKNOWN EVENT: 20)

helium_issue

kent-williams commented 2 years ago

@saadi-tech is this working for you now?

saadi-tech commented 2 years ago

@kent-williams surprisingly yes!! I mean its ghost activity. One day it wasn't working at all ... Nd now its working perfectly. And I didn't change anything 🤣

kent-williams commented 2 years ago

That's great to hear. The network has experienced a few outages over the last month, it's best to subscribe to https://status.helium.com/, so you know if they occur. Do you mind closing this issue if that is all please!

saadi-tech commented 2 years ago

Sure @kent-williams . Thank you for assistance

saadi-tech commented 2 years ago

Just got it working... Don't know how