Giter Site home page Giter Site logo

Comments (9)

jackwilsdon avatar jackwilsdon commented on August 17, 2024

I am using this method which seems to work fine with PiFmRds.

from pifmrds.

danielmoore123 avatar danielmoore123 commented on August 17, 2024

This works great! Thanks 👍
To clarify to the common reader, my code is:

sudo arecord -fS16_LE -r 44100 -Dplughw:1,0 -c 2 - | sudo ./pi_fm_rds -freq 100.0 -ps 'Station1' -ctl rds_ctl -rt 'You are listening to Station1' -audio -
Using a USB Sound card: http://www.gearbest.com/development-boards/pp_176927.html?currency=GBP&gclid=CK6jqqqi2soCFRITGwodrWUN8Q

from pifmrds.

danielmoore123 avatar danielmoore123 commented on August 17, 2024

Run this overnight and get this now:

overrun!!! (at least 7.223 ms long)
Any fix for that? :-o

from pifmrds.

danielmoore123 avatar danielmoore123 commented on August 17, 2024

This is a little clearer, I installed again onto a fresh image, I get the feeling the program is designed to only run for a fixed length of time...

overrun!!! (at least 0.503 ms long) overrun!!! (at least 0.400 ms long) overrun!!! (at least 0.614 ms long) overrun!!! (at least 4.543 ms long) overrun!!! (at least 1.988 ms long) overrun!!! (at least 0.070 ms long) Could not rewind in audio file, terminating Terminating: cleanly deactivated the DMA engine and killed the carrier.

from pifmrds.

ChristopheJacquet avatar ChristopheJacquet commented on August 17, 2024

The program is not designed that way, it's definitely a bug :) Unfortunately I have no idea what is causing it.

Thanks for the command to pipe audio, I'll include it in the README and close this bug. We can track the issue of program stopping on bug #37.

By the way you mention the "overrun" and "terminating" messages. Do they happen all at the same time?

from pifmrds.

ChristopheJacquet avatar ChristopheJacquet commented on August 17, 2024

Note: I had a look at the "overrun" message: it's a message printed by arecord when the Alsa input buffer is full. Not sure of the interaction with PiFmRds.

from pifmrds.

jackwilsdon avatar jackwilsdon commented on August 17, 2024

Could there be any reason PiFmRds is "lagging behind" and not consuming the data at the speed ALSA is providing the data?

from pifmrds.

danielmoore123 avatar danielmoore123 commented on August 17, 2024

So..... we're killing the memory? Any way to get the program to automatically pick itself up again when it does stop?

from pifmrds.

MrSchumck avatar MrSchumck commented on August 17, 2024

Okay, so it seems the best way to compensate for this is to make the program accept data a bit faster. Try adding -ppm 125000 to the PiFmRds command and see if it works. Did the trick for me. If it doesn't, do some troubleshooting: if it skips backward decrease the ppm number. If it skips forward and throws an overrun, add to the ppm number. do this until it works fine. My number is 125000 with no issues for a few hours now.
Edit: tested on a Raspberry Pi 3

from pifmrds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.