Help yes, on this forum, do all the work, not so much.
Could be, the reality is that you’ve got the measurement script done. Sending sensor data is a well solved problem here, as that’s what LoRaWAN tends to be about - all you need to do is use the Heltec LoRaWAN firmware to send the WindSpeed value. If you need documentation on CubeCell programming, what is wrong with the materials on the Heltec website?
Alternatively you could use a ready made Dragino LT device that does pulse counting.
Not sure which editor you got the code from, but the libraries look like standard Arduino, so you would have to swap all the ” and ” characters for ".
The Arduino Adafruit libraries used do not appear to be compatible with CubeCell core in the Arduino IDE , so the code would need to be re-written for a known compatible library.
Hello, I read your post with interest.
Unfortunately, I’m not a programmer, so I’m looking for a ready-made program solution with a decoder for an anemometer (wind gauge) for my small weather station. I would then like to send the data to TTN and evaluate them graphically with ThingSpeak.
I’m looking for a sketch for a CubeCell board and the associated decoder (payload parser).
Do you have a sketch like that?
And do you know of such a project?
Hi everybody, really stupid question here but I have been struggling all day without finding an answer online.
I am sending 13 bytes uplinks with the AB02 but on TTN i can only see 8 bytes (even if I copy the payload to my clipboard with the relevant button).
I am using ADR and UNconfirmed uplinks, the gateway is really close (i’m testing the system) and the datarate is SF7125.
At first I was sending messages once every 30 seconds (just for test purposes and for short periods of time) but now I have let it on for a bit less than a couple of hours with a message every 10 minutes but it didn’t change.
I tested decreasing the appDataSize to see if I was doing something wrong but it looks like fine (e.g if I put appDataSize = 4 i only see the first 4 bytes of my message. Howether if I set it again to 13 i only see the first 8 bytes on TTN).
Any clue on what am I missing?
Thanks a lot in advance
The elipsice in the screen shot implies that there is more data to see.
But first, please be kind to the community and give us some feedback on your understanding of the Fair Use Policy and why unconfirmed uplinks are normal and confirmed are very rare.
There is never any need to have a device transmitting on a schedule when you are developing - a push to send does everything you need and means you can keep up with the information on the console.
Thanks a lot for your fast answer.
I did use the right appTxDutyCycle, I already knew it was in milliseconds.
uint32_t appTxDutyCycle = 600000;
I don’t know why I have two uplinks in 6 seconds, maybe I disconnected it by mistake and reconnected it, but usually it sends the uplink every 10 minutes as it should be.
Concerning what I am sending it’s a 13 byte payload (I am sure it is because I print it on Serial Monitor before sending) containing some encoded sensor readings.
Thanks you for your kind answer.
When you cite the elipsice do you mean the three dots at the end of the payload? (e.g 05 55 09 47 14 82 01 00 …)? (sorry for my lack of understanding)
If so, I noticed them and I that’s what makes me think that TTN receives the full payload but displays only the first 8 bytes. However both when I copy the payload or when I use the button “toggle array formatting” I don’t see the remaining part of the payload.
Concerning the feedback you asked, I don’t have a solid knowledge base but I think I grasped the idea behind the Fair Use Policy (I already used the air time calculator someone posted earlier) while I just know that confirmed uplinks should be avoided unless necessary (I think I have a vague intuition about why).
Last minute discovery (I wrote this answer yesterday but I wanted to check one last time):
If I pass my mouse over the payload I noticed that I can see the full payload. So I guess it’s only a visualization problem… I am sorry I wasted people’s time, hope this will save someone else from my same mistake. I am still unable to copy the payload though.
(sorry for the bad quality but I had to do a photo).
If you use the copy button next to the payload and past it into notepad, you will see the entire payload. Also if you select the message (click on it) you will see all the metadata about the uplink or downlink.
Erm, int’s aren’t bytes and the int_i is just the same as i, so whilst it will work, but not the %i as it’s not a printf nor does it have a parameter, try:
appDataSize = 13;
for (uint8_t i = 0; i < 13; i++) {
appData[i] = i;
}
[/quote]
As for the payload formatter, the TTS default one automagically does the same thing: