-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 224 port certification mode #215
Comments
Hi, was going to look at this last weekend but ran out of time. But now that we have #196 merged, I think it's time to do it. I think I am going to do it actually in the ardunio-lorawan code, because then I can use C++ and move more quickly. But I may change my mind and do it all in the lmic, or at least put the port-224 code here as a library function. Note to self: the referenced code from IMST is LoRaMac-node. |
I've started working on this, using a RedwoodComm RWC 5020A as the tester. I'm using test-driven development, and I'll push my code to branch issue215 occasionally. First step was to get an internal fix for #229, so I can code the message receive logic sanely. I then created an application ( I'm now to the point where I can click start on the test, and the device will join with the tester, print a message ( |
Changed subject to be more helpful. |
@I-Connect I'm now working on this; I'm not sure you were notified by github when I created the issue. Anyway, you'll get noise on this from here on. |
Further note; I'm just referring to the LoRaWAN certification docs, which I have, as my starting poin. The plan is to add an engine that can be called from the user's message processor. The engine has the following parts.
lmic_cert_rx_action_t
LMIC_certRxMessage(
uint8_t port, const uint8_t *pMessage, size_t nMessage
); A function to be called from the user's message RX handler, before doing any work. It will check for port 224, and take appropriate actions based on the body of the message. The caller must check the return in order to determine how to proceed.
|
Status as of fa68184: The LMIC now processes the activate and deactivate test mode messages correctly. It fails the mandatory directed join requests -- it prints EV_REJOIN_FAILED. Since this is the first time I've used LMIC_tryRejoin(), I suspect it's just broken. Also, it doesn't seem to be using the 500 kHz channels at all. And the random channel selection really slows down test; a shuffle would be much better. Oh well, that's what happens when you test. I can trivially test on EU868 as well, maybe I'll try that when I get a chance. |
Current status: everything in the port 224 code, except for CW generation in the FSM, is verified. The biggest problem is that the |
I'm starting to prepare a pull request to bring this onto head. I'm doing a code review. I decided that |
Regression testing was indicated. In order to find my bugs, I had to straighten out a number of things.
I think this is already enough better than master that it's time to do a pull request. |
I've created pull request #260 -- I'll wait a day or two to merge. Interested parties are welcome to review and/or test. I'm sure there are things that need to be documented in README.md that I've missed. |
I reviewed the changes in #260 this morning, and it looks good to me. I'll hold off a little while longer before committing, but as I want to continue chasing #258, and I want to post corrections for #261, #262, #263, and think that should be on a separate branch building on this, I'm anxious to get this on the main development branch. |
I'm interested in looking into the changes, but I'm going to be quite busy in the next few days. |
Hi @terrillmoore , would be very nice if the lib will have the 224 port test included, I know for a fact there are others also asking on another forum if this is possible. I was at the LoRaWan conference 1,5 week ago and quality is one of the main items that has focus, would be very nice if boards like RFM95 together with the LMIC lib are compliant.
I am in contact with IMST (a german certification test house), they mentioned you can do a pre certification yourself without having to send your device to them, I have asked how this can be done, will keep you informed and would be happy to test it.
Regards,
Jeroen
edit: Just checked out MCCI, nice company :-). All open source, vey nice! You are probably way ahead of me, but still if I can help would be great.
Originally posted by @I-Connect in #196 (comment)
The text was updated successfully, but these errors were encountered: