I wanted to post this information somewhere on TTN forum as accessible as possible to users of the AU915 frequency plan. If anyone has a better Topic area; please suggest.
For those who use Pycom’s LoPy (or Pycom’s Micropython fork on other microcontrollers) you will no doubt be happy at their recent firmware upgrade which takes the hassle out of selecting the regional LoRaWAN frequencies.
Or so I thought…
Unfortunately, you still need to restrict the frequencies in code. For those lucky enough to be programming in Micropython, the code below does the job.
# Initialize LoRa in LORAWAN mode. lora = LoRa(mode=LoRa.LORAWAN) # credentials APP_EUI = 'XXXX' APP_KEY = 'YYYYYYY' print("Joining LoRa") # remove default channels for i in range(0, 72): lora.remove_channel(i) # adding the Australian channels print("add channels") for i in range(8, 15): lora.add_channel(i, frequency=915200000 + i * 200000, dr_min=0, dr_max=3) lora.add_channel(65, frequency=917500000, dr_min=4, dr_max=4) for i in range(0, 7): lora.add_channel(i, frequency=923300000 + i * 600000, dr_min=0, dr_max=3) # create an OTA authentication params app_eui = binascii.unhexlify(APP_EUI.replace(' ','')) app_key = binascii.unhexlify(APP_KEY.replace(' ','')) print("Joining") # join a network using OTAA if not previously done lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0) # wait until the module has joined the network while not lora.has_joined(): print("attempt...") time.sleep(2.5)