Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/selfup/dipex
Parses VITA49 from a FLEX radio TCP stream to change a dipole/tophat antenna.
https://github.com/selfup/dipex
antenna elixir flex gpio ham-radio phoenix radio raspberry-pi-gpio relay-switch tcp
Last synced: about 1 month ago
JSON representation
Parses VITA49 from a FLEX radio TCP stream to change a dipole/tophat antenna.
- Host: GitHub
- URL: https://github.com/selfup/dipex
- Owner: selfup
- Created: 2018-11-23T19:48:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-14T22:07:47.000Z (over 5 years ago)
- Last Synced: 2024-04-14T05:13:12.207Z (7 months ago)
- Topics: antenna, elixir, flex, gpio, ham-radio, phoenix, radio, raspberry-pi-gpio, relay-switch, tcp
- Language: Elixir
- Homepage: https://selfup.github.io/dipex
- Size: 149 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dipex
Dipole Antenna Elixir Project! :radio:
## Purpose
- Listen to a Flex Radio TCP stream
- Parse VITA49
- Based on antenna/frequency turn on/off relay switch via Raspberry Pi GPIO
- Relay switch dictate dipole mode on antennaThis is for my Dad :pray:
We are both HAM radio operators :tada:
## On Boot (init)
#### ENV vars
1. `FLEX_IP` known IP address of the Flex Radio
1. `FLEX_RPI` if the server is running on a RPI with GPIO- You do not need to define the FLEX_RPI var but you can set it to 0 or 1.
- 1 being that GPIO is on the system and the wiringPi `gpio` CLI is available for use.
- 0 means no, and not defining it means no as well.Example use on a rpi:
`FLEX_IP=10.0.0.192 FLEX_RPI=1 mix run --no-halt`
#### GPIO
- Unexports all pins
- Exports mode out for BCM pin 17#### TCP
- Opens TCP `:gen_tcp` connection to flex
- Send a recieve all msg to flex with `:gen_tcp` (need to CLRF msg string)
- Recursive loop recv with `:gen_tcp`#### Parsing
- Parses recv msg to check for antenna and frequencies
- Based on antenna/frequency turn on/off relay switch via Raspberry Pi GPIOForever!
## API
If running on `10.0.0.230`
```elixir
curl 10.230:4000/api/?cmd=on
curl 10.230:4000/api/?cmd=off
curl 10.230:4000/api/?cmd=unexport
curl 10.230:4000/api/?cmd=export
```