We have an STM32L486 Node (which we call an EP) and have gotten simple Class A communication (in North America) between our EP and MultiTech’s Conduit GateWay (GW) based on both LoRaWAN (V1.0.2) and separately on IBM’s LMIC (V1.6) libraries, and we now need to decide which library to use going forward (with the caveat of upgrading to LoRaWAN V1.0.3 if we decide on that route). They both seem to have Pros and Cons, and I am interested in the opinions of others re which library is preferred. LMIC seems to be better documented, whereas LoRaWAN appears to be somewhat simpler. The LMIC examples are based on STM32L1xx (I’m guessing an STM32L152) and use TIMER9 in Stop Mode. As far as I can tell, the examples use a 32MHz system clock, with 640 programmed into the prescaler of TIMER9, which seems to imply a 1.4s maximum low-power time, assuming I understand the examples correctly. This would imply that every 1.4s, the controller needs to come out of sleep, and check the time to see if it is necessary to send data. This seems awfully wasteful of power; am I misunderstanding something here? In our Port to the 486, we used LPTIM1 running off LSE (32768 Hz) which can give a stop time of up to 240s, but we think even this might not be adequate in applications where batteries need to last for 10 years+; again any thoughts? LoRaWAN uses the RTC clock for waking from Stop and this can be programmed for much longer times, but has a resolution (in the examples) of 1/1024 s using the sub-secs field; I think this is adequate, but also increases complexity; any thoughts?
LMIC supports Class B (although we haven’t gotten to porting it yet) whereas LoRaWAN doesn’t yet support Class B. In applications where EPs are primarily being controlled from the Server (for example, controlling lights and other household devices) then it seems Class B is necessary; do others agree? And if so, doesn’t this also really impact battery life?
Once one of the libraries has been chosen, switching to other library may be difficult; I am very interested in getting the opinions of others re which approach they think best. Thanks.