Packet Error Reception Calculation

Hey, I am new to LoRa. I am performing some experiments to test the impact of PHY layer parameters on the Packet Error Reception of LoRa packets.
I am using the TTGO LoRa board and TTN console. I am able to establish a connection between the node and the gateway. Is there a way I can get the count of error packets and total sent packets to calculate PER?

Edit: If this has already been discussed, kindly point me there. TIA.