Showing posts with label HASviolet Software. Show all posts
Showing posts with label HASviolet Software. Show all posts

Monday, June 22, 2020

Quack! Quack! Its time for some RDF fun with LoRa (and HASviolet)


Joe NE2Z,  head of software development for the HASviolet project has been busy working on application specific use cases for our HVDN LoRa project along with the help of Steve K2GOG for user experience function feedback.

Function before feature

Many LoRa projects hit a roadblock after they reach basic objectives such as basic text chat between units where others such as the Disaster Radio go much further.

Since HASviolet has been initially built around a Raspberry Pi Zero instead of the various ESP32 boards, we are able to do a few things differently from a development perspective and most of which will port over to ESP32 based boards in the future. 




RDF:  To find the duck

Use any directional antenna suitable for 900 MHz or make your own by following our instructions for our open source design.

Here are some photos of the user interface that allows easy to navigate function selection without the need for a  SSH connection after initial configuration for things like messages, call sign, SSID and other parameters.

A more advanced version of the basic game involves a laser sensor to detect when someone is near by the Duck and it can either start quacking even more or stop transmitting just to annoy the hunter.













Monday, May 18, 2020

HASviolet: Developing News.....

The HVDN HASviolet team have been "mostly" hard at work toiling on our next software release over the past month.  This article is meant as a tease only to entice you to check out our Git repository and to stock up on some HASviolet Certified hardware.

We expect that as COVID-19 goes back into hiding, people will want to get out and enjoy some nice weather enabled by technology that is safe and able to promote social distancing. Our goal was to develop some really fun and unique use cases to let people ease back into normal society.
















Explaining some of the above

We have covered our basic applications in past articles, such as HASviolet Beacon and HASviolet Chat along with the receive and transmit applications used to enable other future applications.  Now, lets talk about.....
HASviolet-atmos.py - Provides temperature, barometric and other environmental sensor data integration.
HASviolet-distance.py - Support for laser based distance sensors related to our "Duck Hunt" series of radio direction finding (RDF) applications which will be ready for Amateur Radio Field Day 2020. 
HASviolet-GPS.py - When executed, allows the transmission of standard NMEA 0183 formatted location data and telemetry along with the call sign specified in your HASviolet.ini file 
HASviolet-handheld.py - This is a stand alone application which when enabled allows navigation and control of various function using the buttons on the Adafruit Lora bonnet as well as future supported hardware. This will be helpful for "basic field use" when a computer or smartphone is not available.
How to get started with HASviolet

If you are just learning about HASviolet and do not wish to go through our detailed documentation and user guide, here is what you need to do.
Step 1 - Buy Hardware 
Step 2 - Image an SD card with Raspbian 
Step 3 - Follow the basic OS set up requirements 
Step 4 - Run our installation script 
Step 5 - Start having fun with HASviolet
 Please have a look at hvdn.org/violet for more details

Monday, April 6, 2020

HASviolet: LoRa RX, TX & Chat Applications

N1JTA worked on some stuff on the UI, but was very minimal


There are four demonstration applications that are built in to HASviolet.  This article will discuss our receive (HASviolet-rx.py), transmit (HASviolet-tx.py) and chat (HASviolet-chat.py) applications plus some helpful tips and tricks to using them.

HASviolet RX & TX Applications

The HASviolet project is focused on providing a basic environment for learning. We are not promoting this as a fully developed application. The reason is so that many use cases can be enabled through HASviolet and its basic demonstration applications.

Our HASviolet-rx.py and HASviolet-tx.py applications are designed for others to integrate with other tools which can be used for specific applications.

An example in using the HASviolet-tx.py application could be as a mechanism to transport some sort of sensor data or status report.

The same would go with the HASviolet-rx.py application, but as a receiver of whatever information is sent to it and then further filtered, actioned or forwarded through add on software that will easily run on the Raspberry Pi Zero.

LoRa tranmit ham radio















When using the HASviolet-rx.py application, you simply run it while in the HASviolet directory by typing:

./HASviolet-rx.py
You can add -s or -r to show either signal strength (RSSI, in dbm),  raw data or both.

The only parameter in the HASviolet.ini file you should be aware of is the frequency.  Our default to promote experimentation is on 911.250 MHz.

There are a number of modem parameters we have already configured that combine  spread, bandwidth and speed.

Our next release of HASviolet will include a fancier interface, that will resemble the one used in raspi-config or what that the unrelated, but nice rpitx project has migrated to.

This new interface will provide easier to understand options to select optimum combinations for receiving and transmitting data to support different use cases.

Our transmit application offers the ability for you to specify where you want to send the message by using the "-d" function.  Then, you can use the "-m" function followed by quotes to type what you wish to send.


how to text message with LoRa
















HASviolet Chat Application

The HASviolet-chat.py application as shown in Joe's video will also be able to monitor any transmissions sent from a HASviolet-tx.py user as well as the HASviolet-beacon.py application, but its not the intended purpose.

The "chat" demonstration application does a few things that no other project based around the RFM95/96/97/98 LoRa capable modules when combined with a Raspberry Pi.

There are many LoRa projects that use the ESP32, ESP8266 and Arduino computers since they more easily handle handshakes via the GPIO. 

While there is a benefit in using these lower CPU options such as lower power consumption, our goal in creating a project using the Raspberry Pi Zero is to eventually make use of its faster processor and flexibility in memory storage or configuration.






The HASviolet-chat.py application uses a special interrupt function which is initiated by the "Control Z" key sequence to break the receive or transmit loop which prevents these sort of "chat" based applications from being possible.

Joe NE2Z came up with this idea after gaining some insight from a few people that revolve around our local maker space called "Squidwrench".

He also got some helpful insight from Casey KC7IBT whom HVDN's founder, Steve K2GOG met during one of the Hackaday.io "hack chat" meetings this past December and introduced Casey into HVDN and Squidwrench.

The journey in creating the HASviolet-chat.py application has fulfilled some of the hopes and dreams for the project goals.

We not only met some people along the way, but were able to put that applied learning to good use where others may build upon our work.  This journey also exposed the ability or inability for project team members to either learn new things or to admit the lack of knowledge in certain areas that needed improvement.


HASviolet:  What is chat good for?

Having a basic chat application is not exactly the most exciting thing to have, but was a necessary evolution step for our more advanced applications already in development, such as our quasi secretive "duck-hunt" and "vasili" applications.

Perhaps, as an example use case for both our chat and further described beacon application can be to enable "troposcatter"or other long range communication methods using 911.250 MHz in the United States, or other frequencies in the 868 or 433 MHz spectrum bands.

IoT 900 Mhz Casey Inductive Twig














Watch "HASviolet: Talking about RX and TX and Chat"







Sunday, April 5, 2020

HASviolet: Introducing our software




Our HASviolet project has been a rewarding endeavor. Many of the team involved have learned a number of new skills along the way.

The object of this article is to illustrate some of the basic functions within the HASviolet software package and its four initial underlying "stable" applications.

Future articles and videos will demonstrate these further, so e sure to follow our blog and YouTube Channel to stay up to date with HASviolet.


Getting started:  SSH

This article does not go into detail on setting up your hardware. We are going to fast forward to the point where the user has made the changes needed to make within the cmdline.txt and config.txt on your freshly created SD card with Raspbian.

We also are skipping past the part where you enable interfaces within the raspi-config screen.  Our setup guide has details on how to do all this as found on the hvdn.org/violet page, our Git repository or even by following this other article

HASviolet, HVDN, USB SSH RPI

Setting up HASviolet 

Making HAsviolet setup easy for first time users was a goal of ours to get you quickly on the air to experiment with LoRa on our project frequency in the United States.

We did this by making an installation script. After following our user guide steps which clones our Git repository to your SD card, all you then need to do is navigate to where the script is and run it.

All other dependencies will install automatically. Our v1-1 installation guide does detail everything we used should you wish to manually set things up.

For basic steps needed, all you need to do is:

chmod 755 HASviolet_install.sh
./HASviolet_install.sh

After a few minutes it takes for everything to install,  you will then have the following ready to start learning about.

SSH USB RPI,  HASviolet, HVDN















HASviolet Directory Information

In the associated video,  Joe NE2Z explains the four different directories related to the HASviolet project and provides a quick demonstration of the "HASviolet-Beacon.py" application.



Sunday, March 29, 2020

HASviolet: What color is your spectrum?

K2GOG NE2Z N1JTA


The entire United States amateur radio community are relative late comers to using or even understanding what LoRa is.

However, the "maker" community in the United States and elsewhere has embraced this weak signal spread spectrum technology much quicker and has been doing some interesting things with it.

This article will highlight where both communities of hobbyists can learn from each other and inspire some really nice projects enabled by LoRa technology thanks to HVDN's HASviolet project.

K2GOG NE2Z N1JTA

Black & White: What is LoRa?

Amateur radio or "ham" radio people usually love to talk about history and sometimes forget to look forward.

LoRa actually has some roots going back to the German radio company Telefunken and the underlying thinking of LoRa as a general concept was even described in part of a 1903 US patent by Nikola Tesla.

During World War II,  both the Axis and Allied powers experimented with "frequency hopping spread spectrum".

The smart minds of the day such as Leonard Danilewicz, Willem Broertjes and actress Hedy Lamarr being just a few to read about to learn the history of spread spectrum communication to help level up when it comes to learning about LoRa and technology like it.

womane in ham radio  limor fried k2gog  n1jta ne2z
While frequency hopping spread spectrum or FCSS can be useful for both data or voice transmissions,  only "chirp spread spectrum" or CSS is useful for sending short bursts of data over multiple frequencies.

This is one reason why the "maker" community has adopted LoRa because they generally care more about actionable use cases versus "talking for the sake of talking", which is what a lot of "ham radio" people enjoy most.

LoRa is not meant for voice transmission and it even requires some fancy manipulation to get it functioning for basic "chat" sort of communication.

The good news is that the HVDN team and our HASviolet project went a few more steps where others gave up when it comes to use case exploration.

The lack of voice communication via LoRa does not matter much for non-amateur radio users as other electronics hobbyists are more interested in using LoRa to relay sensor data or control the status of different devices, like a gate, mailbox or even as a fault indicator for a 3-D printer. But, not all amateur radio people use voice to communicate so this is ok.

The "Continuous Wave" or CW mode for short involves Morse Code and is still highly practiced within the amateur ranks today.

Even much newer modes  like WSPR, JT-65, JS-8CALL and PSK31 are some other choices with different use cases, but all really only focus on chat functions and not anything more use case driven beyond that. This now starts to make some amateur radio and maker people not very different from each other, aside possibly from age.

How to send LoRa:  Straight key optional

CSS also not only helps obscure messages as Hedy Lamarr exploited in her work more than 70 years ago with torpedoes and the US Navy, but also helps increase transmission range and control of torpedoes.

While encryption on amateur radio spectrum is not permitted, LoRa is easily demystified once you know how to look for the signals and decode them.  This makes LoRa and CW not really that far different from one another.

An amateur radio person may known Morse Code and a maker will not. Conversely, a maker may know how to probe packets and reassemble messages where someone who lives only in the ham radio world will not.

Perhaps the shared merit of LoRa and CW as  "DX" or "Long Distance" communication capabilities is worth exploring within amateur radio, but with value added use cases for a change beyond making contact for the sake of it.

This is where both communities can share and learn different skill sets and what HASviolet is all about.


K2GOG NE2Z  N1JTA

LoRa implements CSS mostly in a default configuration which takes up about 250 kHz of spectrum,
but can be easily modified by changing the spread and bandwidth settings, which may be advantageous for certain applications.

This may sound crazy compared to sub 2 kHz wide CW signals, but LoRa can offer so much more.

What makes LoRa unique compared to other "spread spectrum" methods of transmission is that it is focused on relative narrow band use cases and thus better suited for sub-GHz spectrum use.

Comparatively, Bluetooth and Wi-Fi are also spread spectrum based, but use much wider bandwidth and would be troublesome to be used at frequencies such as 433 and 868 MHz as well as 900 to 928 MHz.   Since Bluetooth and Wi-Fi live at 2.4 GHz and above, this is a non issue since the higher you go in frequency, the shorter they travel when not including "Line Of Sight" communications.

The HASviolet project's goal is to utilize LoRa in the 900 to 928 MHz band also known as 33cm and to take advantage of the different characteristics this unique mode offers.

And because how well LoRa works very far into the "noise floor"  the communication distance when thought about as a function of transmit power, range and antenna size becomes pretty interesting.

There are ways to shrink the bandwidth which LoRa uses for single channel communication and will also be explored via the HASviolet project too at a sub 6 kHz levels and possibly even further with correct precision timing.

LoRa: Made better with fruit?

One major challenge with LoRa is that it uses proprietary modulation offered by Semtech and is not considered an "open source" mode like what NB IoT uses, which is a competing wireless standard along with SIGFOX as popular "Internet of Things" type of applications that commercial and maker enthusiasts are using.

A company started in 2005 by Lady Ada (Limor Fried) called Adafruit Industries helps the educational "STEM" and maker communities through open source development of fully functional and semi-complete products which incorporate components made by company like Semtech.

The modern electronic hobbyist or "maker" can easily purchase what Limor and her team creates and use them in any number of projects, just like our HVDN HASviolet project.

ne2z n1jta k2gog
And there is one thing that the "ham radio" community really loves, and it is anything that involves "low cost".   LoRa easily becomes a low cost way to experiment with something very fun.

A side benefit beyond cost is that it makes a perfect platform to start the "ham radio" crowd to essentially start to "level up" on some areas of interest that the maker crowd has already zoomed far ahead on. Some of these include things to do with "Raspberry Pi",  "ESP32", "MicroPython", "IoT"

Full integrated Semtech LoRa chips such as the SX1276, SX1272 and SX1261 can all be generally had on preconfigured breakout boards for under $10 USD, so lets dive into what each community can learn from each other in upcoming articles.

So what is HASviolet?

When the HVDN HASviolet team came up with an idea to make something which the maker and amateur radio community could use together,  they started thinking about how to highlight underused spectrum where licensed and unlicensed users may overlap.

Originally, the amateur 50-54 MHz "6m" band and its nearby unlicensed 49 MHz spectrum was thought to be a good starting point due to the ability to easily design something that could use the popular Raspberry Pi with an add on RF filter board.


https://github.com/hudsonvalleydigitalnetwork/hasviolet


This proved pretty quickly even after discussion with other amateur radio enthusiasts as far away as Arizona and Germany to not be a path to start down first as others have done it, but failed to get a lot of interest.

Instead, it became clear  that going much higher in frequency would still offer what the HVDN team was looking for.

We would like to introduce you to the HVDN backed HASviolet project, our journey and lots of great documentation to inspire others to come along for the ride using violet shared spectrum.

If you want to learn something cool involving hardware, antenna or software, we think you will like what you are about to find.

HASviolet Team

  • Joe Apuzzo N1JTA - General Do'er & HASviolet HW Certification Guy
  • Steve Bossert K2GOG - Antenna & RF Design Lead & UI/UX Hamster
  • Joe Cupano NE2Z - Core Software Developer & Git Hub Jedi Master

HASviolet General Details