If you haven't already, install the Meshtastic CLI tool:
pip install meshtastic
2. Connect to Your Device
Ensure your Meshtastic device is connected via USB or Bluetooth and discoverable. Then, connect to it:
meshtastic --host <device-address> --info
(Replace <device-address> with your device's serial port or Bluetooth address.)
3. Set the Frequency/Region
Use the --set command to configure the frequency or region. The available regions are defined in the LoRa frequency plans (e.g., US, EU_433, EU_868, AU_915, etc.).
Example: Set Region to US (915 MHz)
meshtastic --set lora.region US
(Replace US with your desired region, such as EU_868 for Europe.)
Example: Set a Custom Frequency (Advanced)
If you need a custom frequency (not recommended unless necessary), you can set it manually:
meshtastic --set lora.frequency 915000000
(Replace 915000000 with your desired frequency in Hz.)
4. Verify the Changes
Check the current configuration to confirm the changes:
meshtastic --get lora
This will display the current LoRa settings, including the region and frequency.
5. Restart the Device (if needed)
Some changes may require a reboot:
meshtastic --reboot
Available Regions
Here are some common regions you can set:
US (915 MHz)
EU_433 (433 MHz)
EU_868 (868 MHz)
AU_915 (915 MHz)
CN (470 MHz)
JP (920 MHz)
Troubleshooting
If the device doesn't respond, ensure it's properly connected.
If using Bluetooth, make sure the device is paired and discoverable.