MLS Lorawan attributes

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello, I'm developing a firmware for the SAMR35 with the MLS. And I´m having trouble reading the documentation.

The moment a confirmed uplink gets timed out the module stays on busy state for approximately 20 seconds and after that  all I get is transmit error.

So I tried to implement a simple query of attribute "LORAWAN_STATUS" :

StackRetStatus_t res = LORAWAN_GetAttr(LORAWAN_STATUS, 0, &lorawanStatus);

The value of res is SUCCESS, but the value deposited in "lorawanStatus" is sometimes 6177, sometimes 9, sometimes 5, and other numbers too.

I tried looking in the MLS documentations as always, but this time I didn't find an answer to what the value of "lorawanStatus" means.

This is all the reference I found:

 

LORAWAN_STATUS | uint32 0x00000000-0xffffffff | Read Only | 0x00

 

The documentation for reference is: SAM R34/R35 Microchip LoRaWAN Stack Software API Reference Manual

Also there is this : SAM R34 MLS Getting Started Guide

 

Is there some other documentation or post that could help with this problem?

 

Thank you!

This topic has a solution.
Last Edited: Thu. Jun 10, 2021 - 05:06 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Hello Friend,

Open a technical support ticket and describe your problem.  Mark your ticket as non-critical.  They will give you a full answer.  yes

Last Edited: Thu. Jun 3, 2021 - 04:47 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you, I'll try that and comment here if a solution is achieved.

 

Edit: I must say I'm having a hard time trying to find the support ticket system

Last Edited: Fri. Jun 4, 2021 - 12:49 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

They modify their web pages from time to time.  It is the current one:

https://www.microchip.com/en-us/...

 

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I got help from the microchip technical support team, the value for the LORAWAN_STATUS attribute is not in the SAM R34/R35 Microchip LoRaWAN™ Stack Software API Reference Manual

However the information can be found in the "lorawan.h" file inside the MLS code for SAMR34/35:

/* LORAWAN Status information*/
typedef union _LorawanStatus
{
    uint32_t value;
    struct
    {   /* If set, the network is joined */
        unsigned networkJoined :1;
        /* determines the state of trasmission (rx window open, between tx and rx, etc*/
        unsigned macState :3;
        /* If set, ACK and uplink packets sent due to FPending will be sent immediately */
        unsigned automaticReply :1;
        /* If set, adaptive data rate is requested by server or application */
        unsigned adr :1;
        /* If set, the Mac command duty cycle request was received */
        unsigned silentImmediately :1;
        /* If set, the mac Pause function was called. LoRa modulation is not possible */
        unsigned macPause :1;
        /* If set, data is ready for reception */
        unsigned rxDone :1;
        /* If set, linkCheck mechanism is enabled */
        unsigned linkCheck :1;
        /* If set, new channels are added via CFList or NewChannelRequest command or enabled/disabled via Link Adr command */
        unsigned channelsModified :1;
        /* If set, the txPower was modified via Link Adr command */
        unsigned txPowerModified :1;
        /* If set, the number of repetitions for unconfirmed frames has been modified */
        unsigned nbRepModified :1;
        /* If set, the prescaler has changed via duty cycle request */
        unsigned prescalerModified :1;
        /* If set, the second receive window parameters have changed */
        unsigned secondReceiveWindowModified :1;
        /* If set, the delay between the end of the TX uplink and the opening of the first reception slot has changed */
        unsigned rxTimingSetup :1;
        /* If set, the device must be rejoined as a frame counter issue happened */
        unsigned rejoinNeeded :1;
        /* If set, Multicast frame reception feature is enabled */
        unsigned mcastEnabled :1;
    };
} LorawanStatus_t;

 

Thank you to the technical support team, and thank you HKPhysicist.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That's why you won't see me asking deep hardware problems here.  wink yes