mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
648 stars 212 forks source link

Set TX power #551

Open usernamevalis opened 4 years ago

usernamevalis commented 4 years ago

Describe your question or issue How do I set the TX power of my module? If someone could point me to the relevant code.

Environment

This information is all important; it's hard to help without a complete set of answers.

terrillmoore commented 4 years ago

The LMIC sets the transmit power automatically based on information from the network. (ADR is enabled by default.) Since this is a SAMR34, if you're not seeing adequate TX power, it's likely that your module pin-mapping is not optimized. There are sketchy instructions in the README file's "advanced initialization" section.

FedericoAndrades commented 4 years ago

Hello, I am wanting to run the SAMR34 on the AU915 band, and I cannot. The code runs and with the DEBUG active I see that it communicates with the SX1276 but the uplinks never reach the gateway. I am using a "SAMR34 Xplained Pro" demo board with BASTWAN soft as a base. If you had a similar project where you can assess what I am doing wrong, I would appreciate it.

sabas1080 commented 3 years ago

@FedericoAndrades for BastWAN I have added support in our fork working https://github.com/ElectronicCats/arduino-lmic

cnmicha commented 3 years ago

Related to #23