The objective of the Unified Software Platform (USP) Architecture is to allow
- the use of multiple protocols supported by the radio,
- easy integration of new MCU and related boards,
- easy integration of new Radio and related boards,
- easy use of the SW in a modern SW development environment.
The main SW components:
- Radio Access Controller (RAC)
- allows a unified access to radios
- manages the time scheduling of requests from the application, the protocols, and other services,
- brings with the drivers of the different radios.
- Protocols
- provides a database of existing protocols and services compliant with Radio Access Controller: LBM
- can be extended with other protocols based on provided documentation and SW glue.
- MCU HAL, Radio HAL& BSP tools to allow porting on multiple HW boards.
- Sample applications including Multi-Protocol capabilities demonstrators
The Main Examples, Protocols, and RAC lib SW components are platform-agnostic and independent from any SW Platform porting (RTOS, baremetal). Porting to a new SW Platform (RTOS, baremetal) primarly involves adapting the MCU HAL & Radio HAL & PCB configuration layers.
Directory Tree Format of the USP library :
usp/
├── smtc_rac_lib/
│ ├── smtc_rac/
│ └── smtc_rac_api/
├── protocols/
│ └── lbm_lib/
└── examples/LoRa Basic Modem proposes a full implementation of the TS001-LoRaWAN L2 1.0.4 and Regional Parameters RP2-1.0.3 specifications.
LoRa Basic Modem embeds an implementation of all LoRaWAN packages dedicated to Firmware Update Over The Air (FUOTA):
- Application Layer Clock Synchronization (ALCSync) TS003-1.0.0 / TS003-2.0.0
- Fragmented Data Block Transport TS004-1.0.0 / TS004-2.0.0
- Remote Multicast Setup TS005-1.0.0 / TS005-2.0.0
- Firmware Management Protocol (FMP) TS006-1.0.0
- Multi-Package Access (MPA) TS007-1.0.0
LoRa Basic Modem embeds an implementation of the Relay LoRaWAN® Specification TS011-1.0.1
- Relay Tx (relayed end-device)
- Relay Rx
+--------------------+ +------------------+
| Wake On Radio | | LoRaWAN |
| protocol + LoRaWAN | | Class A, B, or C |
+--------------------+ +------------------+
\ /
\ /
\ /
Relay Tx v v
( End-Device ) <----> (Relay Rx) <----> (Gateway) <----> (Network Server)
^ ^
\ /
-------------------------------
LoRa Basic Modem embeds an implementation of the LoRaWAN certification process
- LoRaWAN certification process TS009-1.2.1
LoRa Basic Modem offers:
- Geolocation services in combination with LoRa Edge chips
LoRa Basics Modem library code can be found in folder protocols/lbm_lib .
Please refer to README.mdLOCAL ONLINE to get all information related to LoRa Basics Modem library
To Be Updated
- uplink LoRaWAN : TX
- Ranging is started
- When collision is expected, one ranging round is canceled to allow LoRaWAN RX1 & RX2
- Ranging go on when possible
- uplink LoRaWAN : TX
- Ranging is started
- When collision is expected, LoRaWAN RX1 & RX2 are canceled to allow ranging to continue
USP/RAC is managing the time scheduling of Modulation Transactions.
- If a scheduled transaction is scheduled but conflicts with another one of higher priority, it is aborted
- If a scheduled transaction is scheduled but conflicts with another request of lower or equal priority not yet finished, the request is aborted at the scheduled date.
- If a ASAP transaction conflicts with another transaction, it is postponed. After a while (defined delay), the ASAP transaction is promoted to a scheduled one and fired as soon as a window is found.
- In other cases, the transactions are scheduled at programmed timestamp in sequence.
In case a transaction is aborted:
smtc_usp_submit_radio_transaction()returnsSMTC_USP_SUCCESS.callback_pre_radio_transaction()is not triggeredcallback_post_radio_transaction()is triggered withRP_STATUS_TASK_ABORTEDrp_status_t at the timestamp when the selected transaction has successfully completed just after Its successful Handle Event
- In Red, the scheduled transaction that failed because of time conflict
- In case the transaction failed,
- the
callback_pre_radio_transaction()Start Event is not called, - the
callback_post_radio_transaction()Result Event is called after the successful transaction called itscallback_post_radio_transaction()Result Event
- the
ASAP transaction is programmed but cannot be fired before the end of a scheduled transaction of any priority:

In case the ASAP transaction is postponed for too long time, after 120 seconds, It is promoted as a scheduled transaction in order to have more change to be fired:

In case ASAP transaction priority is lower than scheduled priority, It is cancelled:
Notes:
- In Red, the scheduled transaction that failed because of time conflict
In case ASAP transaction priority is higher than scheduled priority, It is postponed during maximum 120 seconds and then promoted as scheduled. The lowest scheduled transaction is then canceled.
Notes:
- In Red, the scheduled transaction that failed because of time conflict





