DRAGINO problems and solutions topic part 2

How do i change the tx mode freq to 865402500?
Thanks in advance

Hi! I’m using Raspberry Pi 3 B and Dragino LoRa/GPS Hat as a node. I am trying the following code: https://github.com/ernstdevreede/lmic_pi/archive/master.zip

My pin mapping in thethingsnetwork-send-v1.cpp is:
// Pin mapping
lmic_pinmap pins = {
.nss = 6,
.rxtx = UNUSED_PIN, // Not connected on RFM92/RFM95
.rst = 0, // Needed on RFM92/RFM95
.dio = {7,4,5}

When executing the code, I am getting the following error:
On the site TTN, my application status is “never seen”. How can resolve this problem? Thanks!

That is fairly common. lmic is a bit of a disaster right now with the Dragino hat. However I have the same setup, so I have worked around some of those issues.

It is essentially just another fork, but I replaced the thethingsnetwork-send-v1.cpp with a different example that can be used to send arbitrary bytes to TTN via the command line.

I’m currently lmic for an arduino uno - dragino shield node set up. The problem is that the node unit would stop uploading to the console after I reboot the board or replug it. I then have to register a new device with new ABP keys, supply the sketch with them then it will start uploading to my application again. I would still see traffic going through my gateway while this is happening. How do I fix this?

by starting to give more information / use search

All LoRaWAN nodes use counters when sending data. For ABP nodes at boot the counter is reset and starts at 0. To prevent replay attacks a LoRaWAN back-end ignores all packets with counter values that have been used previously.
Search the forum for ‘Frame Counter Checks’ to see what you can do. (If you searched the forum before asking you would not have had ask as this question appears and is answered at least once every month)

Keep in mind ABP is nice for initial testing, however you should move to OTAA as soon as possible.