Poor Lora range with sidewalk on rak4630

Hello, I am trying to create a sidewalk product using the RAK4630. I seem to be having trouble reproducing the connectivity results that I was getting with the Nordic 52840 devkit with the Semtech SX1262MB2CAS Arduino Shield. The application code is the exact same minus some pin changes and the Git patch modifications needed to get the RAK to work properly. I can get it to connect over Lora but the range at which I can do so is significantly less.

Are there settings with the RAK that I need to change to increase the LORA range and improve my connection results to be similar to those experiences with the nordic devkit?

Hello Luke,

Can you give us more information about “poor” range? Do you have any numbers (RSSI, distance, …?)
What antenna are you using on the Nordic Dev Kit and on the RAK4630?

What Sidewalk Node are you using? An Echo 4 or something else?

How do you test the range?

Hey Bernd, I will include some more information about our “poor” range.

Our setup includes the parts below:

Module:

Lora Antenna:

BLE Antenna:

We are fairly new in the sidewalk aspect of connected devices so I don’t have a lot of information on the connectivity in terms of numbers. If you have any examples of how to obtain RSSI on the sidewalk network I can implement those and take a look, if not I will need to investigate some more into the Nordic samples and see where this information is made available.

The main test for us on this product has been trying to connect in a place that we know has struggled with cell service in the past. This poor cell service is the reason we are switching to sidewalk solution.

When near an echo 4 we don’t have any issues getting connected but we are hoping to get the coverage we are seeing with the test kits that don’t rely on known echo devices.

With these two test kits below we have had success connecting in this area:
https://sidewalk.amazon/testkit
and
https://nrfconnect.github.io/sdk-sidewalk/setting_up_sidewalk_environment/setting_up_hardware.html

So ultimately out range test has just been the comparison to these two product above. Which seem to have excellent coverage where we need them.

Considering the Ring test kit has a very small chip antenna I don’t think the antenna is our issue in this case.

We will be doing some more modifications on our board in the coming days to help debug the connection and see if we can eliminate anything that may be causing interference but what I was hoping to get from this post was if there was anything RAK knew of that could be an issue with the connection range when compared to a chip down solution such as the test kits above?

This could just be a problem with our design but any tips for the module would be helpful. We can also share our schematic and designs in private is this is something RAK can help with.

@lukevawkes We’re in a very similar situation to you! I’m hoping we can help each other.

We also get excellent range from the the Nordic Dev Kit and the Amazon Test Kit, but the range on the RAK kit is significantly lower. First off, I can offer some advice on collecting RSSI and SNR info on the Sidewalk network. That information is printed in the serial monitor when running the Nordic Dev Kit or the RAK Kit attached to a computer. Here’s an example of what it looks like.

We’ve gone as far as testing with an external antenna using an IPEX to SMA adapter, but it makes little to no difference. I also tried some modifications to the firmware where I adjusted the transmit power level from 20 to 22, but that also had no effect.

I’ve been looking into this issue for weeks now, but currently have no promising leads. My brainstorming is currently focused around understanding the differences between the RAK module and the Nordic/Amazon devices. The two things that currently stand out are:

  1. The RAK module seems to have a smaller ground plane (the layer of copper most RF boards have) than the Amazon Test Device (we took it apart to confirm) and a much smaller ground plane than the Nordic Kit (which is evident by the sheer size of the device).

  2. The presence of the NRF52840 and SX1262 in such a small package is something that stands out. I can’t help but wonder if their proximity is affecting the LoRa performance.

I’m currently working on some experiments designed around giving the RAK4630 a larger copper ground plane. Once I can figure out a way to do that I’m going to compare the before/after performance of the RSSI and SNR in the logs.

I’ll keep you posted with anything I find. Any new info that you’ve found that you could share with us as well would be greatly appreciated!

Cheers,

Jose

Good night,

In fact, when you talk about LoRa transmission you need to analyze both directions: uplink and downlink.

Uplink you will see in the LoRa Server (at least RSSI, SNR and SF) . What is your LoRa Network Server? AWS IoT Core for LoRaWAN or TTN…
Download you will see at your device the same parameters: RSSI, SNR and SF.

What is you LoRAWAN Gateway? How far it is from your device?

How they are ?

Regards,

Claudio

Hi @crmrosa

My LoRa server is AWS IoT Core. I don’t believe I know how to find the server-side RSSI and SNR on that platform. At my device, the RAK Sidewalk Starter Kit using PCB antennas, 3 meters from an Echo Show 5, my performance looks like this when I test from home:

The second test is done while parked approximately 80-100 meters from my house. I can confirm that both the Amazon Test Kit and the Nordic Dev Kit both successfully communicate with the server at this distance, but the RAK Module does not. At this distance I’ve also tried using an external antenna, but unfortunately that didn’t help.

Any help/guidance you could provide would be greatly appreciated! :slight_smile:

Jose

Hi Jose,

If your device is very close to your LoRaWAN Gate, you will need to reduce the power of your device.

Let´s analyze the scenario step-by-step:

  1. Let´s think about the architecture:

  2. Take a look in the figure below to have a idea about what behavior that you should expect related with the distance:

What are the values that you see in your device?

  1. RSSI(dBm):
  2. SNR(dB):
    3: SF (spreading factor):

SNR x RSSI

Let´s take a look how what kind of relationship that you can expect between SNR x RSSI. In many cases too much power can cause a lot of problems. The power (RSSI) should be what the device need to do the job based on applications requirements. In the end of the day, a good SNR is one of the key of your success.

In the figure, each dot is a transmission with success. The SF means that 7 is the faster transmission and 12 is the slower. When you have the ADR (adaptive data rate), the device will adjust the SF for higher or lower data rate following the success or the failure in a transmission. For example, if your device try to do a transmission with SF7(faster) but a lot of packages was lost, the ADR will reduce the data rate, in other words, increase the spreading for the next transmission, for example do SF8. If the ADR is enable, the adjustment cycle will continue for all transmissions. The behavior can be good for mobile device, because the transmission scenario will change all the time, but for stationary device (no changes in the distance between the endnode and the gateway), if you see a continuous changes, you will need to analyze if you have problems in the connectors, cables and antennas. The ADR job you can see in the figure above .

Jose,

In the LoRa Network Server, you will need to configure in the AWS IoT Core for LoRaWAN, the gateway and the endnode:

Did you already did these configurations?

Cláudio

@jose_ota At this point we were not able to pinpoint anything in the RAK that was causing it have the connection issues. What we did find is that by testing out some new antennas we were able to get a similar RSSI to that of the Nordic Dev kit. This is the antenna we are going with: Antenna. We bought a handful and most of them seemed to help improve the RSSI with this one seeming to be around the best. I would say order one of these and see how it works for you.

I also went as far as to order the RAK19007+RAK4631 starter kit to make sure it wasn’t just our board and I can confirm on the RAK starter kit the results are identical to the custom board we have made.

If you happen to find anything else that improves your range results let me know. Thanks.

@crmrosa thank you so much, this is great info!

It’s good to know that I need to reduce power if I’m close to the gateway. It’s worth noting that when I’m close to the gateway (3 meters) I don’t encounter any issues. I only encounter issues when I’m farther away (100 meters).

I only get RSSI and SNR values while successfully testing close to the gateway (3 meters). The values I get are RSSI -123 and SNR -18. When I’m testing from farther away (100 meters) I don’t get any values because it never connects, so the console doesn’t show any info. Unfortunately the SF is never shown in any of the console information as far as I can tell.

As for your questions around configuring AWS IoT Core for LoRaWAN, I haven’t configured this in the way your screenshots show. I believe I misspoke earlier when I said my LoRa server is AWS IoT core, what I really meant to say is that it’s AWS Sidewalk. I have configured the devices in the following way.

Jose

@lukevawkes thank you for the antenna recommendation! I’m glad you were able to find a suitable antenna. We went through four different options and didn’t see improved performance so I had lost hope. I’ll order the one you suggested and see how we do!

I have some updates regarding my experiments with ground planes that might be worth sharing. I did a small experiment using the RAK Sidewalk Starter kit hooked up to the RAK PCB antenna 3 meters from my Amazon Echo. Using this “stock” configuration I was getting an SNR of about -18. I then used two very short jumper cables to hook up the WisBlock’s two ground pins to the ground pins of a separate PCB that has a large ground plane. Immediately after doing this, the SNR improved to -9. I then swapped in the external antenna using the IPEX-SMA adapter and the SNR improved to -1! This felt like strong evidence that suggested that the RAK module did in fact need a larger ground plane.

With that in mind, I’ve begun designing our custom board (around the RAK4630) using a large ground pour in one of the layers (approximately 100mm x 50mm). We briefly considered going away from the RAK module and started looking at separate modules for the NRF and the Semtech. I found a device called the BMD-340 the incorporates the NRF. Page 26 of its data sheet suggests a ground plane of this size, which led me to believe that the RAK may also need a ground plane of this size.

The size is much too big for our final custom solution, but I’m moving forward with making the custom board for the purposes of experimentation. Did you find that the ground plane in your custom solution made a difference, or was it a non-factor?

Hi @jose_ota ,

First of all, the numbers that you are showing, the meaning is that you have a poor reception:
I have two LoRaWAN gateways 5 meters far from my Field Tester at home:
your device RSSI= -123dBm => my device at GW1 RSSI=-31 dBm , at GW2= -24 dBm => the ADR is disabled
your device SNR= -18 dB , my device at GW1=13.2 dB , at GW2= 12.5 dB

Let´s pay attention that RAK4630 is the Core of the RAK Field Tester: RAK10701-P Field Tester for LoRaWAN Pro | RAKwireless Documentation Center , then numbers should be similar, but they are so far from each other.

As we can see in the IoT concepts in a endnode we have 5 components, and for each one, requirements that they should be verified if they are in compliance with the requirements:

  1. MCU: microcontroller unit
  2. Power Supply: a battery or a kind of power supply
  3. Peripherals(sensors/actuators): in my casa a GNSS/GPS sensor
  4. LoRa Radio: our external interface for network connectivity
  5. Antenna: it should be compliance with the frequency. In my case for Brazil AU915=915-928 MHz. In the case of VNA - Vector Network Analyzer, the “V” graphic should be how much is the attena reflection. I mean, the antenna should absorv as much as possible between 915-928 MHz. This graphic means the antenna project perform.

image

Let me give some numbers about my Field Tester (RAK4630):

First, a Field Tester screenshot

A TTN screenshot about the reception:

I did lots of antenna testing for LoRAWAN. The ideal scenario when testing across hardware is to use the same antenna. Ideally use a 6" whip antenna, similar to what the gateways use, the bottom half of that antenna acts as a ground plane which helps remove the ground plane differences of the module + PCB. Range testing should be done at the edge of the network, should be done on the same ADR, same TX Power and same channel. All those recommendations help remove lots of external factors when comparing across hardware. Random note: There will always be asymmetry between edge node and gateway when you are at the edge of the network so dont worry too much that you get -15 SNR but the gateway is at -5 SNR.

Another random comment, When I am too close to the gateway in LoRAWAN, I found that sometimes the center frequency shifts because its so powerful and too close that the gateway thinks its on another channel and you get weird artifacts like -120 RSSI and -12 SNR even though you are like 5 feet away.

@jose_ota ,

Take a look what Semtech is saying in this articule: Predicting LoRaWAN Capacity | DEVELOPER PORTAL

They are the creator, then they are reference:
image

Based on the table above, the SNR should be greater than -20 dB and the target should be -7.5 dB.

This kind of articule can help to understand what is the standard or baseline

@crmrosa I just want to thank you again for your very thorough answers. The information is incredibly helpful and I’m learning a lot!

I agree that there’s definitely something wrong and I have poor reception. I should definitely be seeing a much better SNR being so close to the gateway.

I’m wondering if something is wrong with the Amazon Echo Show device that I’m using and it’s not actually acting as an Amazon Sidewalk Gateway. I’m going to disconnect it and do some additional testing to try to better understand what might be happening.

Thank you for the breakdown of components for the endnode. I am using the RAK Starter Kit for Amazon Sidewalk, so I think the various components should be in compliance with the requirements.

I’m going to keep investigating based on the information you’ve provided to try to better understand what’s going and will share what I find.

Jose

1 Like

@brolly759 thank you for the info on antenna behavior! I’m very new to RF and didn’t realize that the bottom half of whip antennas act as a ground plane, but that’s very good to know! I’ve tried using the following antennas. The first link is the Semtech dev shield, but I borrowed its antenna:
https://www.digikey.com/en/products/detail/semtech-corporation/SX1262MB2CAS/9625070
https://www.digikey.com/en/products/detail/te-connectivity-linx/ANT-916-CW-HWR-SMA/1139580
https://www.digikey.com/en/products/detail/raltron-electronics/RST-W1B6-10808-22M-FY-001/10273002

I connect those whip antennas to the RAK Starter Kit for Amazon Sidewalk module using the following adapter:

Unfortunately since I’m working with the Amazon Sidewalk network, I’m not entirely sure how to go about identifying the edge of the network and TX power/channel of the gateway. I’m going to look into the Sidewalk API documentation to see if there’s a way to retrieve this information.

You also make a good point about being too close to a gateway. I have a feeling I may be encountering something of the sort because I’m seeing very weird behavior being 8 feet away from my Echo Show which is supposed to be the Amazon Sidewalk Gateway. I’m going to leverage the info you and @crmrosa have been so kind in providing to try to see if I can find the root cause of my issues!

Jose

I talked with RAK support, I made an Amazon Sidewalk certified device using the RAK4630 which will be debuted at CES. I asked RAK support to do a range test with my device to see if they get better or worse range. I have BLE disabled after successful join to Amazon and it uses only LoRA only after BLE is disabled. Hopefully next week I will get some answers to the range test comparison.

I thought there was no way on the AWS side to know the RSSI/SNR because they were trying to hide that info so people couldnt use it for geolocating and create a security risk. I might be wrong.

Also, every Elexa device is capped at 500MB so if you use that much in a month you will need to connect to another amazon sidewalk gateway. Dont think that is the issue, but food for thought!

@brolly759 that’s awesome! Congrats on the certification and future debut at CES. Hope all goes well with the range test.

I’ll experiment with disabling BLE after successfully joining Sidewalk and see how the standalone LoRa does.

I suspect you’re right about knowing the AWS side to RSSI/SNR, and thanks for the heads up on the monthly limit!

Jose

@crmrosa @brolly759 Wanted to share a funny (and embarrassing) finding. The Echo Show I’ve been using was signed into my wife’s account, which originated in Mexico. As a result, the Sidewalk option didn’t even appear. It seemed weird that I never saw the option to disable it after checking multiple times, but I just assumed it was on and they simple removed the option to disable it. The reality was that it wasn’t acting as a Sidewalk gateway.

I’ve now restored it factory defaults and signed into my account. Lo and behold my average SNR values for my Nordic Dev Kit have gone from an average of -6 to an average of +4!

I’ll keep experimenting and share any other findings.