miegl / PiFmAdv

Advanced Raspberry Pi FM transmitter with RDS encoding
GNU General Public License v3.0
487 stars 82 forks source link

Any idea how to fix? #14

Closed Niall7459 closed 6 years ago

Niall7459 commented 6 years ago

screen shot 2017-12-24 at 08 07 52

I get this after i restart PiFmAdv after it crashes. High pitched noise, very weak signal as well. overruns happening every second Is PiFmAdv not reading the data at correct speed?

Niall7459 commented 6 years ago

Or buffer full or something? (by the way it is arecord command)

Niall7459 commented 6 years ago

"Fixed" with this script. (Modified verison of yours) `#!/bin/bash

cd /home/pi/Desktop/PiFmAdv/src

while :; do echo -e "\033[0;37m" date echo -e "\033[0;32mStarting PiFmAdv Transmisson." echo -e "\033[0;37m" sudo arecord -fS16_LE -r 44100 -D hw:Loopback,1,0 -c 2 - | sudo ./pi_f$ sleep 1h echo -e "\033[0;31mAutomatic Restart. Killing Processes/" sudo killall -2 pi_fm_adv sudo killall arecord sleep 2s echo -e "\033[0;31mTransmission Ended.. \033[0;33mRestarting..." done