Meshtastic to connect isolated villages

@TitanTronics looks like they are using the Amatuer Radio Toolkit app for those diagrams. It’s a handy tool.

2 Likes

Oh! You want to try out the wifi stuff! There’s not much there “usable” if you enable wifi at the moment, but if you’d like to test out a few things – I’d really appreciate feedback:

When in client mode (wifi_ap_mode false):

  • What happens when you walk away from your AP and the signal is weak?
  • What happens when you walk really far from your AP and the signal gets lost?
  • What happens when you walk back ward the AP? Does it reconnect?
  • For all of the above, does the information on the network page on the display make sense? Is it accurate?

When in software ap mode (wifi_ap_mode true)

  • Does it work on android? Does it work on iOS? Does it work on Mac? Does it work on Windows? (I bet you can’t answer all those :slight_smile:
  • When you connect to it on ap mode, does the captive portal redirect all your requests back to the meshtastic device?
  • If you use an iPhone or iPad, does the meshtastic device’s webpage automagically come up when you connect to it from the list of access points?

There is a known problem where the wifi stack will eventually stop working – this is a bug in the SDK we’re using. We have a work around right now, if you want the wifi to stay active, keep it plugged into the USB port with an external charger.

I’m also displaying the raw values of signal (RSSI) strength from the connected Access Point. Would you prefer that or a “connection strength” percentage?

1 Like

Amazing stuff! Took me a while to realise that the device needs a reboot after changing the settings.

client mode:

Started walking away from the AP, and kept getting -90 ~ -93 RSSI for a long time until at some point the device showed SSID: Unknown, but kept saying it was connected. Once I walked back it automatically reconnected.

software ap mode:

First thing I noticed was that it creates an open network with the name ESP_FA10D9 despite the ssid and passwod I passed to the cli.

  • Works well on: Android Chrome; Linux Chromium & Firefox; MacOS Safari & Chrome; iPhone Safari;
  • Redirects on all tested devices above
  • Yes, on iPhone a captive-portal shows up as soon as connected

The RSSI bars are very intuitive, but percentage does give more detail.

2 Likes

@luandro
I’m using this app
3 Likes

Hi @luandro , I prepared the parameters for the 915MHz

2 Likes

I’ll look at the soft AP. It shouldn’t have done that.

Maybe I’ll calculate the % have it toggle between both signal % and Rssi. Hmmm…

Thanks for all this amazing detail!

1 Like

Antenna tuning

Here’s the result of our first attempts at tuning a ground-plane:

First thing we did was leave the vertical radial and a single side radial. With close to 80mm the resonance was at around 860Mhz. We found it strange that we had to cut the radial sizes to around 68mm which is 20mm smaller then the calculated 78mm for 915Mhz. According to this Return Loss vs VSWR table we’re at 1.4 SWR which is pretty good, am I interpreting this right?

The graph isn’t looking reallly good yet, but it was good practice to understand the relation between the radial sizes, angles and quantity.

@TitanTronics the measurements your app gives differs from the reference I used. The vertical monopole it the same, but the radials are very different.

The radials are different because you used a square plate that joins everything together by changing the conical function, the antenna needs to be redesigned slightly or their length simply needs to be changed according to what your nano VNA says :wink:
Trust your nanoVNA :grin:
It will do its job for what it was designed for

1 Like

That is great. an swr of 1.4 means about 97% of the rf energy is making it toward the radiating part of the antenna. That is about as good anyone would achieve, note that subtle changes in the temperature, humidity and nearby obstructions will cause the swr to vary slightly, so don’t be alarmed or concerned.

1 Like

@TitanTronics you’re right, the square plate measures 21mm, so taking that into account the radials should measure 67mm, which is close to what they have now. I also wasn’t measuring the vertical radial from the base, and it really is 78mm now. So everything is matching :+1:

Thanks for the tip @ac8dg!

I started testing the new v1.1.1 firmware, and the consumption in the morning now has gone down from 70% to 50%. Much better, thanks @geeksville! Also tried the router mode, but the command line doesn’t show battery information, so can’t really tell. Had forgetten to put a battery :confused:

2 Likes

Directional antenna

The two 20dbi Yagi antennas have arrived. It’s 2,55m long, 21 elements Yagi.

Here’s what the NanoVNA tells me about them:

SWR at 915Mhz is at 2.2, which is not good.

This antenna has it’s resonance at 832Mhz. Using a Yagi calculator set to 915Mhz, I get a Boomlength of 2.13m, it’s actually 2,55m.

The directors should have from 149mm to 136mm of length, they have all around 140mm.

I’m not sure how I should go about tuning it… Any tips?

2 Likes

I’m guessing an impedance of around 40Ohm gives you around 1.5 swr?! Did you connect the VNA directly to the pigtail (how long is the pigtail) from the antenna? If you take the front end off, do the measurements change? Is the dipole fixed or can you slightly change its position on the beam?
The relector at the back looks allright, is it fixed tight? At what angle? Can it be taken off and test etc.
To make production cheaper they may have made all directors the same size and added a few more to compensate. Since these are designed for 100Mhz range to resonate somewhere in the middle is expected.
My 900 Mhz yagi is also not “perfect” at 868mhz but works pretty well from the tests I did a week ago. Got a bigger model coming in this week and I am considering to put a reflector like you have onto them but getting the material cheaper then the actual antenna is a challenge lol.

1 Like

Hey @PA7John! Thanks for the info.

I’m using 10cm pigtails to connect the antenna directly to the VNA.

By taking the extender off, at 916Mhz the return loss goes to around -6dB and smith chart value goes to around ~31 ohms ~5pF (donno how to interpret these values, only the chart itself).

There’s a screw holding the dipole, so it’s easy to unscrew it and move it around, to fix it would just need to drill new holes.

The reflector is fixed pretty tight at around 45 degrees I would guess. They are easy to take off and test.

Which parts should I be tweking with in what ways to tune it?

1 Like

Really awesome bamboo casing a local artisan from my village made :slight_smile:

I’m at the indigenous territory where the implementation will happen… will be documenting offline, and posting whenever a have a chance. Thanks everyone for the help so far, which made this possible.

12 Likes

Ooooh, nice.

I’d totally buy half a dozen of those if they want to make more and a non awful shipping arrangement could be organsed?

My setup is with a TTGO t-beam Lora dev board. Following all the instructions I’ve tried to setup with the python API to run Wifi in AP mode with the command:

meshtastic --set wifi_ap_mode true --setstr wifi_ssid "*****" --setstr wifi_password "*****"

But I get this in return:

meshtastic --set wifi_ap_mode true --setstr wifi_ssid mywifissid --setstr wifi_password mywifipsw
File “”, line 1
meshtastic --set wifi_ap_mode true --setstr wifi_ssid mywifissid --setstr wifi_password mywifipsw
^
SyntaxError: invalid syntax

I read that there might be a bug on Mac OS X however I have also tried Windows 10 and Ubuntu to the same affect.

Implementation

In the first day we left a node with one of the DIY ground-planes at Manuel Alves village, which is closer to town and furthest from Serra Grande. But it seems we’ll need Yagis for these ~20Km links between hills.

In the first three days we managed to get a 18Km LoRa link working between two hills using the large Yagis I bought, and from them to two distant villages: Serra Grande to Galheiros.

Galheiros was holding the meeting of all chiefs. They saw the experiment working and were thrilled. Many came asking me to visit their villages to connect them.

The meeting started warming up and we had no time to experiment for the next few days. After a few rainy days we came back to testing with two nodes in the same house, but only they would show up, not the two hill nodes.

I’ve been using BATMAN protocol for meshing with #libremesh and #librerouter, but I’m not sure how it works, I know there are originators and neighbors. I’m also not sure how I should be testing #meshtastic networks. I’ve been using mainly the Python cli. All nodes are using v1.1.6 and the two hill nodes are using router-mode which should be helping saving battery, and indeed it is, but what I noticed is that they don’t seem to wake up, but disabling doesn’t seem to help either.

Should I be using the v1.0.0 as it’s more stable? Is there a reason why messages aren’t waking up the two hills nodes?

Yagi Antennas

We started experimenting with DIY Yagis. They have meters of spare 4mm copper wire, so that’s what we have. We used this folded dipole calculator and this yagi calculator. But the dipole never matched, we had to do some guess work to get it to around 900Mhz. I’m guessing the diameter of the material used isn’t matching with the calculator, but without Internet I couldn’t really do any research. The dipole we ended up using was quite smaller then the one the calculator suggested.

Any recommendations for folded dipole and yagi calculators? Any good Android apps?

Copper will brittle, is there any good way to protect it, or any other material we could use?

2 Likes

If the copper wire is too brittle, you could try aluminum or brass brazing rod. It is inexpensive and easy to bend. Most welding rod has a durable coating(flux) and usually corrosion resistant.

link:
https://www.ebay.com/itm/20PCS-3-2mm-Low-Temperature-Aluminum-Welding-Solder-Wire-Brazing-Repair-Rods/324340086592

Since you use a fixed small bandwith try an open dipole, totally oversize the wavelenght (45cm’ish) and slowly cut it down untill you get a good reading in VNA.
Build up the antenna with a few elements every time after that.

Much of it is trial and error as the materials are the “unknown” ,calculators will help but as ac8dg says if you got (alu)materials around just give it a go. Even chicken fence will work as a reflector.
If you have a stable signal that you can allign the antenna with and test the changes, even easier.
I ordered two of these https://www.youtube.com/watch?v=ZWoy-IKy10g
so I can do some signal testing with my antenna’s, at some point RSSI and auto reply will be in Meshtastic but not soon I think.

1 Like

Any updates on you project?

1 Like