You can find here the code related to the following article: https://www.sciencedirect.com/science/article/pii/S0140366422003401
Based on the LoRaWAN-SIM simulator: https://github.com/deltazita/LoRaWAN-SIM
For any serious enquires, please contact the author: dimzorbas@ieee.org