What component can I use to transmit commands to my Bose stereo at 27.148Mhz?
I've been playing around with pi-rc to successfully transmit commands to my Bose stereo, which uses OOK timings (on/off key) at 27.148Mhz to communicate commands from the remote to the stereo. pi-rc uses the dma controller to regulate the frequencies (& timings?), but there are warnings in the package that since it starts the dma controller as a user process, there's a risk that the controller might not get stopped and who knows what could happen when that memory gets reallocated. When you run their server, and send codes to it to transmit from another terminal window, they get transmitted immediately. But I'm reluctant to leave the pi-rc server running all the time to achieve this timely transmission of commands to my stereo.
Alternatively, running my modified code (which starts the dma controller, transmits, and exits) each time I want to transmit a command is a bit slow. Starting up the dma controller takes a second or two, so it takes 1-2 seconds between hitting enter and the command getting transmitted.
So I was wondering if using rpitx could solve my 2 problems: i.e. run in a more safe manner and reduce lag time between starting the program and transmitting the command.
I was looking through your code and I see that it does way more than what I want to accomplish... and I don't know where to start. pi-rc lets you create json files containing the frequency(ies) and the OOK timings. How would I define my codes to transmit using rpitx? And which of your scripts can I use to transmit the commands?
Incidentally, I have my fork of pi-rc doing the basics of what I want to accomplish. I just don't want to be messing with the dma controller. Also, it's a tad slow when you don't run it as a server.
I basically want to try rpitx to do the same thing as this (which I currently do with my forked pi-rc code):
sudo pi_bose -i bose/mute.json