Author Topic: No ack on time at 2.4kbps?  (Read 1234 times)

luisgcu

  • Newbie
  • *
  • Posts: 30
  • Country: us
No ack on time at 2.4kbps?
« on: May 12, 2016, 10:46:34 PM »
hello guys,
I am testing the MotionMote    with the gateway example.. it work fine with the default configuration 4.8kbps, but I want to use lower baud rate trying to  reach long ranges.

I am using this settings
             { REG_BITRATEMSB, RF_BITRATEMSB_2400},  // 2400kbps
       { REG_BITRATELSB, RF_BITRATELSB_2400},  //2400kbps
      { REG_FDEVMSB, RF_FDEVMSB_50000},       
      { REG_FDEVLSB, RF_FDEVLSB_50000},

with that configuration on  register 0x05,0x06  gateway receive the data ok, but No ack
I tried to play with the ACK_TIME on the motion mote with no luck.
I notice that the  ACK_TIME is listed on variables definition .. but  was no used on  radio.sendWithRetry, I added that at the end , but  still no ack ..
can anyone here please point me to right direction to  adjust what is required to get the ack when the bitrate have been modified  from default value?
thanks
update..
 Not sure what the heck I am doing wrong with non lora RFM modules .. but range is pretty bad..
definitely   I need more  time digging in here...
« Last Edit: May 13, 2016, 11:17:36 PM by luisgcu »
..Knowing other is wisdom,
knowing yourself is Enlightenment..

rocsta

  • Newbie
  • *
  • Posts: 32
Re: No ack on time at 2.4kbps?
« Reply #1 on: May 14, 2016, 07:42:31 PM »
I had also some problems to find working values for RegFdevMsb / RegFdevLsb.

Try these configurations for 1.2kbps:

Code: [Select]
radio.writeReg(REG_BITRATEMSB, RF_BITRATEMSB_1200);      //RegBitrateMsb 1200 bitrate
radio.writeReg(REG_BITRATELSB, RF_BITRATELSB_1200);      //RegBitrateLsb 1200 bitrate


Code: [Select]
radio.writeReg(REG_BITRATEMSB, RF_BITRATEMSB_1200);      //RegBitrateMsb 1200 bitrate
radio.writeReg(REG_BITRATELSB, RF_BITRATELSB_1200);      //RegBitrateLsb 1200 bitrate
radio.writeReg(REG_TESTLNA, RF_TESTLNA_HIGH_SENSITIVITY);      //see https://lowpowerlab.com/forum/index.php/topic,114.msg599.html#msg599


Code: [Select]
radio.writeReg(0x03,0x68);      //RegBitrateMsb 1200 bitrate
radio.writeReg(0x04,0x2B);      //RegBitrateLsb 1200 bitrate
radio.writeReg(0x05,0x00);      //RegFdevMsb     2000
radio.writeReg(0x06,0x52);      //RegFdevLsb     2000
radio.writeReg(0x19,0x40|0x10|0x05);      //RegRxBw  DccFreq:010, RxBw_Mant:24, RxBw_Exp:5
radio.writeReg(0x18,0x00|0x00|0x01);      //RegLna  LnaZin:50ohm, LowPower:Off, CurrentGain:MAX

all with:

Code: [Select]
#define TCN_RETRIES 20
#define TCN_RETRYWAITTIME 2000

blabla ...
result = radio.sendWithRetry(gateway_adress, (const void*)(&TheDate), sizeof(TheData), TCN_RETRIES, TCN_RETRYWAITTIME);
« Last Edit: May 14, 2016, 07:51:34 PM by rocsta »

luisgcu

  • Newbie
  • *
  • Posts: 30
  • Country: us
Re: No ack on time at 2.4kbps?
« Reply #2 on: May 22, 2016, 10:40:37 AM »
I had also some problems to find working values for RegFdevMsb / RegFdevLsb.

Try these configurations for 1.2kbps:

Code: [Select]
radio.writeReg(REG_BITRATEMSB, RF_BITRATEMSB_1200);      //RegBitrateMsb 1200 bitrate
radio.writeReg(REG_BITRATELSB, RF_BITRATELSB_1200);      //RegBitrateLsb 1200 bitrate


Code: [Select]
radio.writeReg(REG_BITRATEMSB, RF_BITRATEMSB_1200);      //RegBitrateMsb 1200 bitrate
radio.writeReg(REG_BITRATELSB, RF_BITRATELSB_1200);      //RegBitrateLsb 1200 bitrate
radio.writeReg(REG_TESTLNA, RF_TESTLNA_HIGH_SENSITIVITY);      //see https://lowpowerlab.com/forum/index.php/topic,114.msg599.html#msg599


Code: [Select]
radio.writeReg(0x03,0x68);      //RegBitrateMsb 1200 bitrate
radio.writeReg(0x04,0x2B);      //RegBitrateLsb 1200 bitrate
radio.writeReg(0x05,0x00);      //RegFdevMsb     2000
radio.writeReg(0x06,0x52);      //RegFdevLsb     2000
radio.writeReg(0x19,0x40|0x10|0x05);      //RegRxBw  DccFreq:010, RxBw_Mant:24, RxBw_Exp:5
radio.writeReg(0x18,0x00|0x00|0x01);      //RegLna  LnaZin:50ohm, LowPower:Off, CurrentGain:MAX

all with:

Code: [Select]
#define TCN_RETRIES 20
#define TCN_RETRYWAITTIME 2000

blabla ...
result = radio.sendWithRetry(gateway_adress, (const void*)(&TheDate), sizeof(TheData), TCN_RETRIES, TCN_RETRYWAITTIME);

thanks for sharing.. I am going to try your settings .. and see if i can increase the range.. I did some test using the radio head library and I was able to get some decent range..
but I will love to get same range using Lowpowerlab library just because it have a lot more interesting features, one of my interest is the Listen mode , I would  like to  use that mode  for longer distances.
..Knowing other is wisdom,
knowing yourself is Enlightenment..