WioLoRaWANFieldTester icon indicating copy to clipboard operation
WioLoRaWANFieldTester copied to clipboard

Optimisation: LoRa E5 channel selection AT command

Open mcauser opened this issue 3 years ago • 1 comments

I noticed on these two lines: https://github.com/disk91/WioLoRaWANFieldTester/blob/master/LoRaComE5.cpp#L273 https://github.com/disk91/WioLoRaWANFieldTester/blob/master/LoRaComE5.cpp#L344

They are looping over all 72 channels and calling AT+CH=chn,OFF to disable channels.

An alternate way of doing it (in a single AT command) is by calling AT+CH=NUM, from-to, eg AT+CH=NUM, 8-15. This enables 8-15 and disables all other channels.

7x less AT commands isn't going to make a huge difference, but every bit helps.

Page 31 in LoRa E5 AT Command specs v1.0 pdf:

docs

mcauser avatar Nov 21 '22 10:11 mcauser

Thank you for the proposal, good idea, I'll consider this in a future release

disk91 avatar Apr 10 '23 17:04 disk91