markondej / fm_transmitter

Raspberry Pi as FM transmitter
1.32k stars 292 forks source link

What did you fix to get it to work on the pi 2? #10

Open skyler440 opened 9 years ago

skyler440 commented 9 years ago

Hello, this is an issue on another script called PiFox (a Narrow band FM transmitter for the 2 meter ham band for transmitter locating) , which is written for the raspberry pi, but does not work on the pi2.

What did you do to get the signal to transmit on the pi 2? I am in high school and new at programming and am wondering if you could lead me in the right direction for getting pifox to work on the 2. The contacts at pifox end are all dead, and I have tried to email several times. I hope to get it working in the next few weeks because I started an amateur radio club at my high school and I want to have a foxhunt.

Thanks, Skyler

ghost commented 9 years ago

"DMA controller was changed in RPI2, so old solutions based on pifm project won't work."

markondej commented 9 years ago

Like SandPox wrote, DMA controller support has changed in RPi2 so it's not that simple.

You can try to clone: https://github.com/fotografAle/NBFM, then edit nbfm.c file, on line 168:

 0x20000000 //base

to:

 0x3F000000 //rpi2 base

then compile nbfm:

gcc -o3 -lm -std=c99 -o nbfm nbfm.c

This will result with creating executable file nbfm, which you should copy into your pifox location (overwriting existing one). If you're lucky it could work.

skyler440 commented 9 years ago

Thanks, I tested it and it is transmitting a carrier now, but no audio is working, and it is very buggy (ex. found the carrier way off frequency at one time)

Here is my live progress on getting Nbfm or pifox working and everything I have tried so far

https://docs.google.com/document/d/1j_9KvkxA1LSg185Ded42PzbSZbsrGQTyy5o0kZxz9GM/edit?usp=sharing

Grimmy347 commented 8 years ago

@markondej how would you go about doing this on rpi3? I would prefer a solution that does not use so much cpu power. Thanks!