Skip to content
/ hftp Public

Script to send data files over shoft waves transmitter

Notifications You must be signed in to change notification settings

ati/hftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Script to send one-way messages using HF radio transmission.

General idea is:

  1. resize big jpeg file, convert it to BPG format
  2. convert a small jpeg into OFDM raw data using utility from the codec2 project
  3. convert raw data into audio file (sox)
  4. transmit it using REM/DATA link of the tranceiver (tested with TX-500) in VOX mode
  5. record transmission using KiwiSDR network
  6. send decoded message via email to recepients

1-3 are running in the smartphone (Pixel3, Android11, termux with compiled codec2 and installed sox and ImageMagick) 4-5 are running on the internet-connected server

Software setup/install

  1. Install Termux from F-droid or APK. PlayStore version does not work
  2. Open Termux and run:
pkg install git cmake imagemagick sox
  1. Install codec2 utils
> mkdir distr; cd distr
> git clone --depth=1 https://github.com/drowe67/codec2.git
> mkdir codec2/build; cd codec2/build
> cmake ..
> make && make install
  1. (Optional) Install bpgenc

Bpgenc is a highly efficient (2 times smaller that JPEG) image copmpression format

4.1 Install required libraries

> mkdir ~/local
> pkg install libjpeg-turbo

4.2 Compile and install SDL and SDL_Images v 1.2

> git clone --depth=1 https://github.com/libsdl-org/SDL-1.2.git
> git clone --branch=SDL-1.2 --depth=1 https://github.com/libsdl-org/SDL_image.git
> cd ~/distr/SDL-1.2; ./configure --prefix=$HOME/local; make && make install
> cd ~/distr/SDL_image; ./configure --prefix=$HOME/local; make && make install

4.2 Patch and install libbpg

TODO

Running script

./send.sh [path_to_image]

Running script with a single parameter converts it to the audiofile for the OFDM transmission

If script is run without parameters it plays the audiofile to the phone's default audio output

e.g.

> ./send.sh ~/DSC_2132.JPG # scales JPG and creates out/5_out.mp3
> ./send.sh # plays 5_out.mp3

Links

  1. Setting TX-500 digital mode
  2. REM/DATA cable pinout
  3. codec2 data transmission
  4. KiwiSDR client

About

Script to send data files over shoft waves transmitter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages