Hi, kind of newbie here, I reopened my LoRa project recently, using arduinos Portenta H7 with Vision Shield - LoRa. I am in EU region
I Installed MKRWAN firmware, and I successfully made LoRa work with TTN v3, and I am able to send messages . . . as long as they are 64B
So my first question would be: Why is the cap 64B, when looking at document here, minimum should be 51B? Is this how the code is optimized?
Given I adhere to the regulations, if I change code rate, I should be able to use bigger payloads with higher CRs, right? Looking into the document from STM, on page 17 there is description of AT+SEND command, and payload is described there as “maximum 242B”
I’ve even found the line (and it’s area) in github, that caps data at 64 here.
So I guess my questions are:
Why the cap of 64B instead of 51B?
I should be able to adjust the library to allow bigger payload on coderates I want to use?
Will the LoRa chip / TTN warn me if I will mess up and send “illegal” packets?
IIRC The LoRaWAN overhead is 13B so 51 + 13 = … Guess you need to consider payload vs msg length. As @cslorabox says in some jurisdictions things like Dwell time may limit further and with overhead actual length may be 11 or 12B max payload. I believe you are EU based so at SF12 51B would indeed be max payload, with 64B message length… You should aim to keep payload as short as possible - look at bits/byte/encoding and compression methods where you can to minimise airtime etc. Poss use FPort to indicate type of data etc.