markondej / fm_transmitter

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

Transmitting randomly stops #172

Open Mifaxav opened 2 years ago

Mifaxav commented 2 years ago

I'm on a raspberry Pi 4 with a wire at gpio 4

After about 4 seconds of the guitar duet, it randomly stops transmitting. I've tried the same with another similar software and also facing the same issues. Any idea on how to fix this?

markondej commented 2 years ago

Please keep in mind this software makes use of some RPi hardware, which may be also used by other currently working applications. More specific: GPIO, DMA and PWM hardware are being used. Please veryfiy if no other software is using their resources, ie. PWM is used for audio playback when jack output is selected. Also there are about 15 DMA channels available, try using different one than default (-d option).

Check if 1-wire interface is disabled, as it was reported interferring with fm_transmitter.

Please reffer which system are you using (Raspbian/Arch/Ubuntu, Lite version or normal etc.)

Mifaxav commented 2 years ago

Previously was using raspbian now using lite(raspbian) planning to shift back to raspbian. No other software is on unless automatic. What i do is, boot up my raspi, open terminal, cd fm_transmitter/src, sudo ./fm_transmitter -audio xyz.wav -freq 99.9

I don't see what should be causing the problem here :/

On Fri, 15 Jul, 2022, 2:27 pm Marcin Kondej, @.***> wrote:

Please keep in mind this software makes use of some RPi hardware, which may be also used by other currently working applications. More specific GPIO, DMA and PWM hardware are being used. Please veryfiy if no other software is using their resources, ie. PWM is used for audio playback when jack output is selected. Also there are about 15 DMA channels available, try using different one than default (-d option).

Check if 1-wire interface is disabled, as it was reported interferring with fm_transmitter.

Please reffer which system are you using (Raspbian/Arch/Ubuntu, Lite version or normal etc.)

— Reply to this email directly, view it on GitHub https://github.com/markondej/fm_transmitter/issues/172#issuecomment-1185332576, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUD6MXZXEKUQCLNLMDS4WZLVUERYLANCNFSM53SV4B2A . You are receiving this because you authored the thread.Message ID: @.***>

markondej commented 2 years ago

Try disabling ARM auto frequency switching by:

echo "powersave"| sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Notice: this will reduce overall RPi 4 CPU performance (until next reboot)

Mifaxav commented 2 years ago

Will try that

On Fri, 15 Jul, 2022, 4:35 pm Marcin Kondej, @.***> wrote:

Try disabling ARM auto frequency switching by:

echo "powersave"| sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Notice: this will reduce overall RPi 4 CPU performance (until next reboot)

— Reply to this email directly, view it on GitHub https://github.com/markondej/fm_transmitter/issues/172#issuecomment-1185436037, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUD6MX6J7EYGMTSGCX6EMV3VUFAWPANCNFSM53SV4B2A . You are receiving this because you authored the thread.Message ID: @.***>

ppoojohn commented 2 years ago

try changing your bandwidth to 50000 it worked for me or just tweak your bandwidth

sudo ./fm_transmitter -f 99.9 snakejazzremix.wav -b 50000

Mifaxav commented 2 years ago

I installed RPITX! On Sat, 24 Sep, 2022, 11:55 am ppoojohn, @.***> wrote:

try changing your bandwidth to 50000 it worked for me

sudo ./fm_transmitter -f 99.9 snakejazzremix.wav -b 50000

— Reply to this email directly, view it on GitHub https://github.com/markondej/fm_transmitter/issues/172#issuecomment-1256878702, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUD6MXYZ6UIMQHB33ZEYXGDV72NFJANCNFSM53SV4B2A . You are receiving this because you authored the thread.Message ID: @.***>

La-Cabra commented 1 year ago

Do you mean to say that you fixed it with that? Because I have a similar problem.

Did the GPIO21=1 once and started working perfectly. But only worked once. Never worked again with any frequency despite a few reboots and a reinstall.