Wiz-IO / platform-sam-lora

Microchip Atmel SAM34/35 platform for PlatformIO
26 stars 6 forks source link

Support AU_915 #2

Closed 524c closed 4 years ago

524c commented 4 years ago

Hello, congratulations on the project.

I am working on a project with the frequency AU_915. I would like to contribute the necessary changes for it in Beelan-LoRaWAN, but I confess that I'm a little lost and I didn't understand the relationship between the values of the sequences of defines with the frequencies.

typedef enum {
#if defined(US_915)
    SF10BW125   = 0x00,
    SF9BW125    = 0x01,
    SF8BW125    = 0x02,
    SF7BW125    = 0x03,
    SF8BW500    = 0x04,
    SF12BW500   = 0x08,
    SF11BW500   = 0x09,
    SF10BW500   = 0x0A,
    SF9BW500    = 0x0B,
    SF7BW500    = 0x0D
#elif defined(EU_868)
    SF12BW125   = 0x00,
    SF11BW125   = 0x01,
    SF10BW125   = 0x02,
    SF9BW125    = 0x03,
    SF8BW125    = 0x04,
    SF7BW125    = 0x05,
    SF7BW250    = 0x06
#endif
} dataRates_t;

I'm working with this for changes.
AU915-928
Uplink:

916.8 - SF7BW125 to SF10BW125
917.0 - SF7BW125 to SF10BW125
917.2 - SF7BW125 to SF10BW125
917.4 - SF7BW125 to SF10BW125
917.6 - SF7BW125 to SF10BW125
917.8 - SF7BW125 to SF10BW125
918.0 - SF7BW125 to SF10BW125
918.2 - SF7BW125 to SF10BW125
917.5 SF8BW500

Downlink:
923.3 - SF7BW500 to SF12BW500
923.9 - SF7BW500 to SF12BW500
924.5 - SF7BW500 to SF12BW500
925.1 - SF7BW500 to SF12BW500
925.7 - SF7BW500 to SF12BW500
926.3 - SF7BW500 to SF12BW500
926.9 - SF7BW500 to SF12BW500
927.5 - SF7BW500 to SF12BW500

Can you please help me on this most basic point?

Wiz-IO commented 4 years ago

this only enum for changing https://github.com/Wiz-IO/framework-sam-lora/blob/master/arduino/libraries/Beelan-LoRaWAN/src/arduino-rfm/RFM95.cpp#L208

Beelan is not my library: info@ideetron.nl or Miguel Romaní mr3188@gmail.com

Regards