Showing posts with label Wifi. Show all posts
Showing posts with label Wifi. Show all posts

Friday, June 4, 2021

LORA APRS Tracker using T-Beam ESP32 with GPS

 Setting up a  LoRa APRS Tracker or Igate on 433Mhz.

I need to build a Tracker for LORA on 433Mhz and I hate two options to consider.

Using the same TTGO-T-Beam ESP32 with GPS and Lora 433Mhz module that will be the same as my Lora Igate board.

Setting up a Lora APRS tracker using the ESP32 Lora32 TTGO-T T-Beam 433/470Mhz Module.

 Here is picture of how the Lora signal looks like


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

I was looking for a low power battery backup APRS Lora system to track Balloons and cars.

I then got the TTGO-T T-Beam witch has ESP32 with WIFI and Bluetooth.
It also has a GPS Ublock and a Lora32 TTGO 433/470Mhz and USB port.

This module is available from Giga Technology here

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

I found a project on Github https://github.com/lora-aprs/LoRa_APRS_Tracker
It seems to be strate foreword replacing the default firmware in the SP32

So lets get Started

Lets download the project from github here

On your pc run the following

git clone https://github.com/antonjan/LoRa_APRS_Tracker

cd LoRa_APRS_Tracker/

 
I Recommend installing Visual Studio Code with PlatformIO plugin.


PlatformIO can be downloaded directly from the PlatformIO website. There you just have to press the green button with “Install PlatformIO now”. Then just install it. If you have already installed Visual Studio Code, the PlatformIO Module can also be installed via the Plugin Manager. Now the source code can be opened in Visual Studio Code.

Start your Code editor
 
 
 
First we have to make some adjustments to the  data/is-code.json file
We now need to edit the is-code.json settings as follows
 


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
The callsign must be changed (line 3) 
The SSID and password must be filled in of you WIFI.
Latitude and Longitude must always be filled in.  
If you don't have your coordinates in your head, simply open Google Maps, right-click on the desired location and click on ‘What's there?’  
These settings have to be changed if you want to use an iGate: the active in wifi and aprs must be set from false to true.
These settings have to be changed to get a Digi: the active in digi must be set from false to true.
It is not recommended to run an iGate and a Digi at the same time. This will be checked in a later version and only the settings of the iGate will run (presumably the Digi Mode will be active when no WiFi connection can be established - let's see). May board dont have the display but I dont think you have to change any of the setting.

Choosing the right board in Platformio plug in Code

Now the right board has to be selected, because each board is wired a little differently (the GPIOs are used differently) or has additional components. This can be changed in the status bar, which is currently still in Default.  
 Here is example of platformio.ini file. Select TTGO_T_Beam_V1_0 as in picture below
 

Sunday, June 4, 2017

Configuring my wifi dongle on the Raspberry Pi to connect to my network router.

Configuring my wifi dongle on the Raspberry Pi to connect to my network router.

Generic Wifi dongle used on my Raspberry Pi


I had to get my router details and had to configure the following configuration files.
I wanted to give my Raspberry Pi a spear static IP so I always know what it is on my network.

I edited the following files.

/etc/wpa_supplicant/wpa_supplicant.conf

I added the following at the end. I was using WEB encryption and shared key on my router.
Change the details in yellow for your router if you use web encryption with shared key.
use your favorite editor
sudo vi /etc/wpa_supplicant/wpa_supplicant.conf

#Configeration of the file /etc/wpa_supplicant/wpa_supplicant.conf
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
        ssid="MyRouter"  # your router ID
        key_mgmt=NONE
        wep_key0="0123456789123"  # or 13 characters, or a hexkey starting with 0x your key
        wep_tx_keyidx=0
        auth_alg=OPEN
}

Save and exit
And the change the following file

Edit the file as follows in the section configuring wlan0
I gave my Raspberry pi a spear static Ip on my network so always now what the ip is and don't use DHCP so I will not know what the Ip will be 
use your favorite editor

sudo vi /etc/network/interfaces
auto wlan0
allow-hotplug wlan0
#iface wlan0 inet dhcp
iface wlan0 inet static
address 192.168.1.205  #Static Ip
netmask 255.255.255.0 # Ip mask of network
gateway 192.168.1.254 # IP gateway of router
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

Save

And reboot Raspberry Pi  sudo shutdown -r 0

ping your new Ip on Wifi network

ping 192.168.1.205

And it should now work.





Thursday, July 16, 2015

What can I do with the TP-Link TL-WR703N router? (APRS, SDR)

What can I do with the TP-Link TL-WR703N router? (APRS, SDR)



Basically this device is meant to be a little 3g travel router. You can plug in a 3g USB adapter and share that Internet connection to multiple devices over WIFI. It also supports Ethernet. It runs a Linux operating system so this opens up lost of Amateur Radio opportunities. So for $24 you can get a 400mhz Linux computer, with Ethernet, Wifi and USB ports and several GPIO pins.
This router is available from http://www.giga.co.za/ocart/index.php?route=product/product&path=99&product_id=150

1) SDR
Using a RTL-SDR dongle on TL-WR703n you can listing to Amateur radio frequencies.
If you’re running OpenWrt Barrier Breaker (i.e. trunk) you can install librtlsdr SDR dongle labraries
Here is the pre compiled applications
https://steve-m.de/projects/rtl-sdr/openwrt/packages/

2) APRS
This unit can be used to do APRS with external GPS unit.
More info how to make this router a (APRS) Igate go  to http://www.aprs4r.org/cgi-bin/trac.cgi/wiki/OpenWrtAPRS4RInstallation
The router is well documented http://wiki.openwrt.org/toh/tp-link/tl-wr703n/pcb

Thursday, June 7, 2012

Wifi Mesh network South of Johannesburg

Wifi  Mesh Nodes in South of Johannesburg. (Self learning nodes and auto rout)(You are the network)
I will be setting up my Mikrotik router for Mesh network and if anyone is interested in connecting in Bassonia Glenvista aria let me know. (2.4Ghz and 5Ghz).
I change my mind and is using Ubuntu mobile mesh as a network node.

More details at http://en.wikipedia.org/wiki/Wireless_mesh_network
here is a link to install mobile mash
1) Getting your Ubuntu to use mobile mesh
1.1) Install mobilemash (wget http://launchpadlibrarian.net/5005432/mobilemesh_1.0%2Bdfsg0-0.1_i386.deb)
2.1)  install deb (sudo dpkg -i mobilemesh_1.0+dfsg0-0.1_i386.deb)

3.1) config your wifi (make shore you have wifi)
3.2) sudo iwconfig wlan0 mode ad-hoc
3.3) cd /var/run/mobilemesh/
3.4) sudo ifconfig wlan0 up
3.5) sudo iwconfig wlan0 essid mobilemesh
3.6) sudo iwconfig wlan0 key 12345678910
3.7) sudo ifconfig wlan0 196.254.1.1
3.8) sudo vi /etc/mobilemesh/mmrp.conf

3.9) Changee the config file interface wlan0 # <- Change/add interface here
3.10) sudo mmdiscover -i wlan0
3.11)  sudo mmrp
3.12)  ip route
3.13)  sudo mmdiscover  -i wlan0
4.1) look in the log file /var/log/syslog
5.1) find the udp port that mmrp is listing on (sudo lsof | grep mmrp)
5.2) you should see somting in the listing like this ( UDP *:20471)
6.1) sudo mmtodot -p 20471
6.2) if all the codependency lib For GraphViz is installed you should see something like this