1Setting up your hardware
For whatever board you're using (probably a RPi?) connect your RDA5807M to your control board. Make sure you have an antenna hooked up.
2Get the source
Hot off the press at https://github.com/bennettmsherman/RDA5807M
3Change up the makefiles
The makefiles are stored in the make directory. They're modified versions of makefiles generated by Eclipse. There's a few things that'll need to change depending on your setup, in particular:
- If you're not using mraa, find and replace references to mraa within the makefiles
- Another item on my list is to clean up the makefiles. Having said that, my personal directories are hardcoded in. Find and replace instances of "/home/ben/Development/RDA5807M" with the root directory of the project.
execute "make Radio" in the make directory
5Execute the CLI
The "Radio" executable will be located at make/Radio. Execute Radio (I need sudo perms to run it)
6Try out commands
By default, the radio starts out at 88MHz, 100KHz channel spacing, and US frequency bands.
- To view available commands, type "HELP".
- Commands are of the form <COMMAND>=<PARAM>, where <PARAM> is an int. If a command is passed in as <COMMAND>, -1 is used as the parameter.
- To switch to a station, type "FREQ=985", for example, where "985" is the frequency in MHz. Don't use a decimal point in the frequency - all frequencies are submitted as integers (ie 105.6MHz = 1056).
- Unmute the radio by typing "MUTE"
- Set the volume by entering "VOL=<int from 0-15>"
- A cool command is "FREQMAP", which plots a dotplot RSSI vs frequencies in 100KHz spacings from 88MHz to 107MHz