2019-08-29 02:12 AM
Hi, i am making some tests with my BL072Z board, with SF7 uplinks and downlinks are ok, but when y run the code with SF12 i only can send uplinks, in TTN i can see the scheduled downlink and in the next uplink the downlink is sent but in the BL072Z board i don't receive anything, mi configs are:
#define OVER_THE_AIR_ACTIVATION 0
#define LORAWAN_DUTYCYCLE_ON false
#define APP_TX_DUTYCYCLE 10000
#define LORAWAN_ADR_STATE LORAWAN_ADR_OFF
#define LORAWAN_DEFAULT_DATA_RATE DR_0
#define EU868_DEFAULT_DATARATE DR_0
//the deafult frequencies were 868100000, 868300000, 868500000 but i am using a single channel gateway working in 868100000, that is why i changed the config, if i keep the default values some uplinks are lost
/*!
* LoRaMac default channel 1
* Channel = { Frequency [Hz], RX1 Frequency [Hz], { ( ( DrMax << 4 ) | DrMin ) }, Band }
*/
#define EU868_LC1 { 868100000, 0, { ( ( DR_5 << 4 ) | DR_0 ) }, 1 }
//LoRaMac default channel 2
#define EU868_LC2 { 868100000, 0, { ( ( DR_5 << 4 ) | DR_0 ) }, 1 }
// LoRaMac default channel 3
#define EU868_LC3 { 868100000, 0, { ( ( DR_5 << 4 ) | DR_0 ) }, 1 }
the single channel gateway also is configured with SF12, thanks.
2019-08-31 07:17 AM
I have noticed something in the gateway:
In the terminal I can see that the messages from the gateway with SF7 (and node with SF7) produces a downlink at 868.1Mhz and SF7BW125, but when I change the gateway config to SF12 (and node to SF12) it sends a downlink at 869.525Mhz and SF9BW125
[ 786.969] Sent downlink packet scheduled on 246.579, at 869.525 Mhz using SF9BW125: b'`\xf7\x1f\x01&\x00\x01\x00\x01@\xceK\x9c\xe2'
I changed my node config to:
#define EU868_RX_WND_2_FREQ 869525000
#define EU868_RX_WND_2_DR DR_3
but is the same problem, downlinks are not received, uplinks are OK