Open km4efp opened 8 years ago
People say this works flawless for wideband fm https://github.com/markondej/fm_transmitter
Apparently their solution is to get rid of using the dma controller for output. I have someone testing your code soon hopefully by just trying to replace 0x20000000 with 0x3F000000 in both instances but I am unsure if it will work. I think if you can port the github above to nbfm it will be a much more elagant cross platform solution.
Also this code is based on older version of markondej but with lots of comments to understand whats going on https://github.com/asmello/fm_transmitter
Another https://github.com/SandPox/fm_transmitter
Here is another source to check for solutions this is the original and simplest code for pi2 to the best of my knowledge translated as pdf http://yosemitefoothills.com/ACM_Workshop_Notes/TranslationOfNetBuffaloPaper.pdf
translated through google https://translate.googleusercontent.com/translate_c?depth=1&hl=en&nv=1&rurl=translate.google.com&sl=auto&tl=en&u=http://netbuffalo.doorblog.jp/archives/5064702.html&usg=ALkJrhiorbeAelQvNITOnajT5LPueck8ZA
I hope there is enough interest for you to port your code to rpi2. I have people wanting to use my foxhunt transmitter script on rpi2's and it uses your nbfm. I think a lot more people than you or me think are actually out there using it.
I appreciate all the work you've done so far. I'm still learning a little bit more everyday or I would try to tackle it. Thank you.
Here is the results from kd0whb
Troubleshooting NBFM and Pifox
NBFM + Pifox Raspberry Pi 2 troubleshooting
•Downloaded NBFM and Pifox and put them in folders in home directory of the pi.
•Went to directory and opened the file. Replaced the two instances of 0x20000000
with 0x3F000000
then ran
gcc -o3 -lm -std=c99 -o nbfm nbfm.c
It returned
pi@raspberrypi ~/nbfm/NBFM-master $ sudo gcc -o3 -lm -std=c99 -o nbfm.c
/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crt1.o: In function `_start':
(.text+0x34): undefined reference to `main'
collect2: ld returned 1 exit status
And gave me the file.
Now went to the pifox directory and replaced the file the new NBFM
Now opened pifox and changed the settings to
Foxver=113
Callsign=KD0WHB
Message='Hello this is a test 1234567'
Foxtime=0
Autofox=0
Foxbutton=0
Vox=0
Voice=1
Packet=0
Frequency=146.565
Interval=10
Plays=0
ppM=-21
Deviation=5
Preemphasis=400
Tone=0
ToneFreq=110.9
Power=7
Ran sudo apt-get update
Ran sudo apt-get upgrade
Ran sudo-apt-get install git-core
Ran sudo apt-get install festival
Installed and build wiringpi
Rebooted the Pi
Ran pifox.sh under sudo
The pi seems to transmit random carriers, some lasting up to 30 seconds, some only a few seconds. There is no audio with the carriers other than a low pitch
After waiting a while for the random carriers to key up and unkey, there is a steady carrier that never unkeys
Pi now froze and can’t get in through SSH, have to Reboot.
Email me at km4efp at yahoo Thank you