Setting LoRa Frequency
I want to change LoRa Frequency to 868100000 Hz.
So, I typed as follows...
from network import LoRa
lora = LoRa(mode=LoRa.LORAWAN, frequency=868100000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: frequency 868100000 out of range
I could not change frequency to 868100000 Hz.
While 915000000 Hz works as follows
from network import LoRa
lora = LoRa(mode=LoRa.LORAWAN, frequency=915000000)
Can I change frequecy to 868100000 Hz?
livius last edited by
After selecting South Africa as my region, I updated the firmware using the Pycom Firmware Update tool.
South Africa use the 868 Mhz range, and yet my Lopy is reporting the 915Mhz range when I query it. In reading this set of posts I understand that a custom firmware update is required. The unix example seems quite comprehensive but I cannot find anything for Windows.
Please could a patient soul explain how I can update my firmware to use the 868 Mhz frequency using a windows update tool. The Pycom tool will not allow for a country change.
I thank you in advance for your assistance.
Anyone already did this ?
could anyone help me for custom channel frq for sK920. anyone can help me?
South Korea 920-923 MHz
922.1 - SF7BW125 to SF12BW125
922.3 - SF7BW125 to SF12BW125
922.5 - SF7BW125 to SF12BW125
922.7 - SF7BW125 to SF12BW125
922.9 - SF7BW125 to SF12BW125
923.1 - SF7BW125 to SF12BW125
923.3 - SF7BW125 to SF12BW125
Uplink channels 1-7
921.9 - SF12BW125 (RX2 downlink only; SF12BW125 might be changed to SF9BW125)
Just a very small suggestion - in the lora.frequency documentation, it states:
Get or set the frequency in raw LoRa mode (LoRa.LORA). The allowed range is between 863000000 and 870000000 Hz for the 868MHz band version or between 902000000 and 928000000 Hz for the 915MHz abdn version.
I too was confused about this - please consider adding a note about the fact that the "version" is referring to the regional/frequency-range of the installed firmware etc etc.
(also note the typo - "abdn" should read "band")
I assume that the Pycom supplied antenna and connecting cable are tuned to work in EITHER band - correct? Or, do Pycom ship the appropriate antenna & cable for the purchaser's region? If the former, is it tuned to work equally well in either range, or is it optimised to work a little better in a particular frequency range?
Thanks for your reply.
I temporarily forgot about that.
I'll try, thank you.
The 915MHz and 868MHz bands are used in different regulatory regions. The firmware is currently built for one or the other (the frequency parameter is to choose a channel within the range). Switching between them is currently done by downloading the appropriate firmware (that's why the firmware updater asks for your country). Switching at runtime would be relevant for a LoPy that travels between these regions.