Gateway queries & ranges

Hi,

I’ve built a DIY Gateway with a Raspberry Pi and IMST board and have been using an internal antenna on it. However it’s range so far has been terrible (I get about 200-300 meters at best).

I brought one off amazon original which should be 7dbi instead of the 2dbi one apparently on it however this performed worse. (I suspect it’s not the correct one as the cable is 1M less than what was advertised.

I can put one on the outside of the building but can’t go too big.

Would one like https://www.aliexpress.com/item/806-2700MHz-Omnidirectional-Fiberglass-Antenna-for-GSM-CDMA-PCS-3G-WLAN-system-SMA-male/32674489646.html?spm=2114.10010108.1000013.1.n9mcsi&scm=1007.13339.33317.0&pvid=2e27570c-cd4d-43ad-ab1e-0628d982816d&tpp=1 work better or does anyone have any suggestions for ones based in the UK?

Edit
I’ve changed the title of this thread as it seems that is gone far off the original “Antenna size & value” topic. I hope this’ll help others to easily find out that the claimed ranges are quite hard to realistically get.

Probably something is wrong, I have the IMST board with Pi also in house, just below the roof. Range is easy some km, did try several antenna,s, the homemade GP and stacked vertical dipole were the best. Maybe the uFL connector or cable is the problem, if there is a short in this cable, the range is as you described.

Hi @Peter_dtn,

With the new antenna from amazon that came with a new u.fl connector too so two different antennas & connectors have been tested.

I get about -70 to -60 RSSI signal in my house and the antenna’s inside the garage. The amazon antenna is https://www.amazon.co.uk/gp/product/B07587JSWW/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1 and the other antenna is the one sold with LoPy modules.

If better would it be better for me to make a new troubleshooting thread under RPi gateways?

After posting a topic of finding a better antenna another user pointed me that there might be an issue with my gateway. So far in initial testing I’ve reached about 300 Meters at best with my setup and not the tens of KM as most people say is possible.

Here’s my setup:
Gateway
Raspberry Pi 3 with ic880A connected using short jumper wires, all contained in a box. The box has a u.fl to SMA connector on it. This is located in my garage. I used two antennas, one from amazon and another that came with my other LoPy module. I then am using TTN Packet forwarder.

Node
For the node I’m using a LoPy with an antenna connected to it. The code uses the ABP mode in default configuration with a piece of code that sends a 5 byte packet continuously every 6 seconds.

I’ve then been using TTN Mapper app and get the following.

Could it be my antenna is just bad or something wrong with my setup?

Screenshot from 2017-12-17 18-18-26

Better using a purpose made adaptor board to sit between PI and ic880A - I am sure there are reports of jumpers cables adding to interference, if its indoors behind double glazing this will impact performance too. Walls in the garage are made of what? Double glazing impacts Downlinks too.

What SF are you using? sending packets ever 6 seconds is prob outside TTN rules of traffic too.

Are you moving when packets are sent? ABP or OTAA?

In your node outside or in a car?

Antenna height on your gateway is important too. High up is best. I have mine located in the attic and can get a range of over 3km. Even the small 3dBi antenna that came with the gateway achieved over 1.25km. These are all OTAA distances so relied on 2 way communications.

Andrew

This is a point that doesn’t seem to get mentioned much re roaming tests and re ABP and OTAA and up and down reception issues, more specifically its one then being able to transmit packets but just as important is the ability to receive them in tests too.

I think…

Basically you can end up focusing all your efforts on node Uplinks via ABP and then when you switch over to OTAA you find Downlinks are having reception issues (ie joins fail)

This is why racing around sending packets every 6 seconds in not showing you the full picture, another approach is to set your node to SF7 on OTAA and have a trigger switch to test joins at a given location - this keeps airtime down, tests worst case re SF7 and tests Downlinks as part of the OTAA connections process.

@jezd, I’m using jumper wires however the length is 10CM including the connector, The 5V & GND are on 20CM Lengths to reach the other side, I’ve also disabled the Wi-Fi & Bluetooth functions of the Pi 3 an am using ethernet.

I am using SF7, From what I’ve read I can increase it but I should be getting at least 1KM before using this.

I’m using ABP as mentioned in my original post, I can increase the time delay however with the fact that such a short distance you’re talking 10 seconds can be the difference of it transmitting a packet or not. The node is just handheld and I’m walking with my dog while walking round the block. I was expecting to drive around with it but obviously with the very poor distance already have no need to drive away to test.

The garage is just a single skin brick, one double glazed door. I can put the antenna outside (which is why I’m looking at possibly buying a better one which is weatherproof however if something else is to blame to begin with I don’t see the point in spending money on something that won’t fix my issue).

@andrewl, Height is about the only thing that I haven’t been able to do anything about as while it could be inside the house I live in it’s only a bungalow so wouldn’t be much higher. (Most of the houses in the complex I live in are also bungalows).

@jezd, If ABP mode sending packets every 6 seconds isn’t showing me a worse case scenario and this is the best case then surely something is even worse as if I can’t even get a good range with settings that should be getting a better range then with settings that use a lower range it’d be worse.

However I really am not an expert. Hence asking on here.

10km range is only when you place the gateway (or at least the antenna) outdoor and on sufficient height (let’s say at least 15m). If you place a gateway indoor, on ground floor you will be lucky if you have a range of a few 100m at all. Jumper wires or not does not have any impact on reception. You should only expect home coverage from indoor gateways.

Like one famous engineer once said: dammit Jim, ye cannae change the laws of physics!

1 Like

So the solution could be like I mentioned. getting an external antenna. But it could be difficult to put it quite high? How high would it have to be from say Ground level? 15M isn’t likely going to be possible.

I understand that I won’t get 10KM however was expecting at least 1-2KM.

For 10km you need some LOS (Line Of Sight). The signal of node can ‘break free’ out of the building it is in, but it won’t reach an antenna that is inside another building, especially not on ground floor. A rule of thumb would be that the antenna has to be able to ‘see’ all the locations you want reception from. Especially so in urban environments.

Be aware that most Chinese or brand-less antennas don’t have the gain they claim, if they have any gain at all. E.g. one of my setups has the antenna you link to in the first post (albeit a different manufacturer), but it only behaves like a ground plane antenna with no gain. In the best case. You also need quality coax cable and pigtails, especially if you are gonna run several meters between the antenna and the gateway.

Imo it’s better to place the gateway itself outdoors, in a suitable enclosure, and keep the distance to the antenna short.

1 Like

Ok, Let’s start fresh.

Since the last post I have moved the antenna outside but not the gateway (I need to re-do a couple of bits to mount the whole box outside).

The antenna I’m currently using is https://www.amazon.co.uk/gp/product/B07587JSWW/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1 , However it only has a 1.5M Wire compared to whats advertised. It looks the same otherwise.

Moving it outside and about half a meter higher up has increased outside performance slightly but decreased it while inside my house.

I can possibly mount the gateway outside but would only do this if using an antenna that attaches direct to a SMA Connector. Otherwise using the cable to the gateway being inside is more reliable and easier to mount.

With the amazon antenna would the main issue be the antenna or height still? If so would getting a longer antenna also help?

A few options are https://www.amazon.co.uk/Eightwood-Magnetic-Bluetooth-Wireless-Networks-SMA-Antenna/dp/B01N0ZGL1D/ref=pd_day0_107_4?_encoding=UTF8&psc=1&refRID=EZZCCBQ4E7RAC76PNM1H ,

https://www.maplin.co.uk/p/miniscan-mobile-antenna-qt30h or the DIY One DIY external antenna for gateway

As mentioned before but want to make it clearer. If its under 2KM range then it’s not suitable Ideally I’d be looking for 5-6KM Range as this covers most of the town I live in (which is the point of me buying a proper concentrator board and not continuing using a single channel one for me).

If it matters I’m using the TTN forwarder software , I’m not sure if this is configured weaker than the legacy packet forwarder or not.

1 Like

Choosing a good antenna is arguably the most difficult task in setting up a gateway. Not because antennas are hard to find, but because reliable information about them is hard to find. But I for one would place all the antennas you link to in the ‘avoid’ category, because these are multi mode wideband antennas, not especially suited for 868MHz. There have been some tests on this forum, and most of these antennas even attenuate the signal in stead of increase the reception.

In selecting an antenna, next to the frequency range you should at least have information about the gain, the radiation pattern and the VSWR. But even then, if this information is not coming from a reputable manufacturer it is to be taken with a grain of salt.

If you want a cheap solution that works pretty well, you can easily make your own antenna. For cheap antennas, some people here (including myself) have ‘good’ experiences with this and this antenna. ‘Good’ as in: it works at least as well as the DIY ground plane antenna.

Like said before, even 2km range will be difficult if the antenna is low and in the vicinity of obstacles higher than itself. To guarantee good reception, you should be able to draw a straight line between the place the node is positioned and the antenna. But you will have to experiment. Start with the DIY ground plane, this antenna has no gain and therefore a wide radiation pattern (no directivity), which you will need in your case. This means that this antenna will be able to pick up signals in almost all vertical directions. Antennas with gain, like the ones you link to or the Aliexpress ones, have a more horizontal radiation pattern and are less sensitive above and below the antenna.

The reason I recommend placing the gateway outside as well is to avoid cable loss. Cheap coaxial cable, like the ones attached to the antennas you link to, can have a loss of up to 1dB/m. If you have a cable like this with a length of 6m, you won’t have much signal left at the other end. The closer you can place the gateway to the antenna, the better. Or buy good cable (e.g. Aircell).

3 Likes

OK, in an attempt to gain more clarity about the “Why” of things, it makes sense to know a bit about what is going on.

868 MHz sits firmly in the UHF band and as such, has certain properties particular to that frequency which are:

  • UHF frequencies are very much “line of sight” and are attenuated by normal sized (from a human perspective) objects because of their short wavelength (35cm). Think of it like this - if the wavelength is long (e.g. for MW radio - 1MHz), then walls appear 866 times “thinner” to the wavelength. At 866MHz, things like buildings / walls / trees / cars become relatively “thicker” and so they attenutate the radio signal. This is why radio wave transmission between an un-obstructed balloon node and a “in air” gateway can be over many 10s of kilometres, but for a node and gateway in a town at ground level, the range could be less than 300m

  • There is no getting round it - the best place to site the antenna is up high, with clear “line of sight” and reasonablly away from structures (e.g. roofline) so that impedance matching for the transmitting/receiving electronics is optimal (and so max. power is transferred between antenna and electronics) .

  • If you live in a high rise block (like many in Europe), the only option may be to site an antenna in the middle of a window of a high rise block. This is because there is no accessable roof to host the antenna in free space (without a long lossy cable) and the wavelength hitting the antenna is smaller than the window apperture with glass obviously being transparent to electromagnetic waves - after all, you can see light through it :wink: . However, This is not ideal because of the non-isotropoic nature of the radiation pattern (look it up) because in a similar fashion to when you look out of a window, you can only view things in one direction. The same thing happens with 866MHz radio waves with brick walls in other directions attenuating (dampen) the radio signals, but the effect is not as bad as with light waves where there is 100% attenuation (no-one can see through brick walls)
    One good things about this situation is the antenna will be high up, so “line of sight” should be better".

  • Antennae that offer large dB gain are not amplifying as such, they concentrate the radiation to a contained pattern e.g. The pattern for a Yagi antenna means that away from the directed beam, the signal transmitted and received signal strength is weaker
    yagi-antenna-typical-radiation-pattern
    https://en.wikipedia.org/wiki/Isotropic_radiator

  • There will always be substantial losses resulting from the junctions and cables as follows.
    The SMA connector - on the antenna
    The U.FL connector - on the PCB)
    The cable - U.FL IPX to SMA Female Pigtail

  • 3 antennae that are suitable for gateways are half wave dipoles (which don’t need a ground plane), a quarter wave ground plane or a 5/8 ground plane (identified by a coil incorporated in the antenna ).

  • If you buy the cheap chinese antenna with a magnetic base. put it on something metallic e.g a metal biscuit tin will do. This will improve performance because the design of the antenna relies on a ground plane being present to be an optimal resonator of radio waves (impedance). This is why the aerial is useful on a car, because the metal skin of the car is used as the ground plane!

7 Likes

Thanks for the response,

From what I can understand I need to look at a better antenna designed purely for 868Mhz (where possible) and if possible have it higher up. The only exception to note is where I live has very little high rise buildings. (They’re less common in UK towns than in cities).

I’ll have a look on Farnell, RS and a few other places and see what options there are.

@Ryanteck,

you’r TTNMapper picture shows no (dark) blue lines, means you are not receiving anything below -115dBm. This could be because of a too high noise level on the input. If you use ~10cm jumper wires between Pi and IMST board that could be the reason.

All these wires behave as antenna, sending noise into the environment. The IMST antenna input circuit and the external antenne itself will pick up these.

Maybe check the discussion on IMST reset problems on the forum.

On the picture the setup I’m using already for some years, it works very reliable without any crash or reset ever.

I did experiments with home-made GP antenna and stacked dipole, the last one is some better than the GP but a bit more complex to produce. I recommend the simple homemade GP to start, connect with decent coax cable (as short as possible) to the IMST and keep the antenna away from the Pi and other digital devices.

IMG_2689

Wrong way round - Please re-read the responses again.
Choice of Antenna is not as important as placement (height)

Consider this pic of the Fresnel zone - notice the reduced range of the middle pic
Fresnel_zone_disrupted

Stop thinking you can buy an antenna to compensate for poor “line of sight” positioning :wink:
Its not just being able to see the node, it is also about making sure there is no obstruction which intrudes into the “ellipse”

Move the antenna higher up (think where a TV aerial is - there is good reason why they are there and not where you want them to be :slight_smile: )
If the antenna is too close to the ground (which it will be if put on a single story garage), the radiation pattern WILL be severely comprimised and you must expect range to be reduced

2 Likes

Hi @Peter_dtn,

I’ll see about either getting a PCB connector made up and try a few different things ( also have some shielding tape I can use). Would high noise level be looking at an improvement in SNR? I can also try some shielding tape I have inside the box.

I’ll look at making the simple GP antenna that you and @epyon linked to, Apart from the base connector I have the other parts required. I can then look at mounting it to a longish piece of PVC Tube. While the cable wouldn’t be as short it’d allow me to get it high up which would hopefully help the most as @CurlyWurly recommended saying height is more important.

One thing about height though could be how high I’m allowed to put it as stuff like this is quite restricted in the UK without permission.

Edit I’ve been recommended this antenna here - https://www.ebay.co.uk/itm/Antenna-collinear-868-Mhz-869-mhz-LORAWAN-LORA-great-gain-SDR-USB-smart-grid/292371508852?_trkparms=aid%3D777003%26algo%3DDISCL.MBE%26ao%3D2%26asc%3D49567%26meid%3Da6903d8fc5324f4d9e3dd9ae1c9d2200%26pid%3D100012%26rk%3D6%26rkt%3D9%26sd%3D302516300057&_trksid=p2047675.c100012.m1985

It fits in my price range and I can mount this possibly 50-70CM High from the roof of my garage meaning that it would be ~ 120CM High all in all possibly getting the height aspect solved. I’ll do some more experimenting still with shielding the system for the meantime.

Hi @Ryanteck

if you keep the long wires it will be hard to reduce the noise, maybe use one of these interconnect boards between IMST and Pi… I’m afraid screening the long wires makes no sense, also the long connection wires not only send signals into the environment they are also sensing glitches, gsm, etc. making the gateway less reliable (unexpected reset ec.)

My antenna is 2 meter above the gateway the connecting coax cable is ~2.5m. Maybe if you copy this construction and use the GP antenna you can do experiments without placing the antenna on a higher position. Just make sure with TTNmapper or the RSSI display in the TTN console you can receive the small signals.

How about lightning protection for an antenna?
Any useful information and tips?