Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code update #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
IDIR =../include
CC=gcc
CFLAGS=-I$(IDIR)

ODIR=obj
LDIR =../lib

CC=gcc
CFLAGS=-Wall -Wpedantic
LIBS=-lusb -lm

#_DEPS = hellomake.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
BIN=keene
OBJ = keene.o

_OBJ = keene.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
_OBJ = $(patsubst %,$(ODIR)/%,$(OBJ))

ALL: keene

$(ODIR)/%.o: %.c $(DEPS)
$(ODIR)/%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)

keene: $(OBJ)
$(BIN): $(_OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

.PHONY: clean

clean:
rm -f $(ODIR)/*.o *~ core $(IDIR)/*~
rm -f $(ODIR)/*.o keene
16 changes: 12 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,23 @@ Compiling:

You need libusb and libusb-dev (in Debian apt-get install libusb libusb-dev),

gcc -o keene keene.c -lusb
gcc -o keene keene.c -lusb -lm

Usage:

When you plug the device in, it presents as a composite device, one is the audio device, the other a HID device, which controls the radio elements. On one of my PC's the alsa control is set to 0 after the device is plugged in, set this to 70-80, if the audio is distorted try reducing this.

The program currently accepts one argument which is the FM transmitter frequency without a decimal point, e.g. 98.80 is 9880, execute the program like:

./keene 9880
Usage: ./keene [OPTIONS]
OPTIONS:
-g, --gain=GAIN Transmission gain [0..7] default 7
-c, --channels=NCHAN Number of channels [1..2] default 2
-f, --frequency=FREQ Transmission frequency [76.00..108.00]
-P, --PA=PA Unknown [30..120] default 120
-e, --emphasis 75uS emphasis instead of 50uS
-d, --disable Do not transmit
-m, --mute Transmit silence
-v, --verbose Print more to stderr
-h, --help Show this help

When excuted the program will attempt to set the frequency as set, it will set the tx gain to full, kick the device into stereo, and set it to use European FM, as such the frequencies available are 87.50 - 108.00 (8750 - 10800). The increments available are 0.05, if you call 8881 for example it will round to 88.80.

Expand Down
Loading