pjalocha / esp32-ogn-tracker

OGN Tracker implementation on ESP32 devices
56 stars 27 forks source link

TX power limitation? #24

Open Paulie92 opened 4 years ago

Paulie92 commented 4 years ago

Hi Pawel,

I am working on my own hardware for OGN Tracker based on ESP32 and SX1276 RF module. I am thinking of using a "EBYTE E19-868M30S" module, which has higher TX power. As I found in youre code, there is a limitation of TX Power to max 20dBm:

#if defined(WITH_RFM95) || defined(WITH_SX1272) void WriteTxPower(int8_t TxPower=0) { if(TxPower>17) { if(TxPower>20) TxPower=20; WriteByte(0x87, REG_PADAC); WriteByte(0xF0 | (TxPower-5), REG_PACONFIG); } else // if(TxPower>14) { if(TxPower<2) TxPower=2; WriteByte(0x84, REG_PADAC); WriteByte(0xF0 | (TxPower-2), REG_PACONFIG); }

Is this limitation needed in the code? Can I just increase the limitation for the specific module?

Second question is, that the module has one extra pin, which has to be set HIGH during the transmission. Do you think that only setting a specific output pin HIGH on the beggining of static uint8_t Transmit(uint8_t TxChan, const uint8_t *PacketByte, uint8_t Thresh, uint8_t MaxWait=7) function, and on the end setting the pin back to LOW would work? Or is there any other code that is also used for other transmition?

Thank you for your answers in advance.

Pavel

rvt commented 5 months ago

I know it's a old question, but the power limitations (should) be set to local laws. If hardware can give you higher output it doesn't mean you are allowed to or even should...

In addition, it's best that everybody uses similar power outputs so everybody can see and hear eachother equally. With higher outputs you run in the chance that you ruin somebody else the packages because you transmit over them, afterall you did not hear them so the hardware though the channel was free. This will distrurb communications. So, stick to the local laws is best for safity, it will not even help your transmitter or receiver...

Note: With 'you' I mean the hardware ofcourse...