Hi,
I posted this question on StackOverflow but did not get the answer, so posting it here.
I’m trying to run LoRaWAN 1.0.4 certification tests on my mDot using LCTT Pre-testing Tool.
I use the latest Dot-AT-Firmware and libmDot v4.0.1.
Looking at the source code (line 918), I added MTS_RADIO_DEBUG_COMMANDS and enabled test mode using AT+TM! 1 command.
The first test that the LCTT tool executes is the Activation Pre-test. Everything goes well up until the last step. When the end device sends DutVersionsAns, I see the following message:
Packet received from unexpected FPort 01
After a few retries, I get another message and the test fails:
Attempts consumed in sending or receiving a Frame Command
According to the LoRaWAN 1.0.4 End Device Certification Requirement v1.1 document, the End Device must send DutVersionsAns on port 224. Looking at the source code again, I see that the application port is indeed set to 224 at line 1409. But when I check the result of setAppPort(), it returns -1. If i call getAppPort() right after that, I get port = 1.
Now, checking the description for setAppPort:
Set the device port to be used for lora application data (1-223)
it looks like setting the application port to 224 is illegal…
So, am I doing this wrong? Do I need to do anything else, besides adding MTS_RADIO_DEBUG_COMMANDS, to make it work?
Thanks.