Okay, I hooked my tuner directly to the serial port on my docking station, and still no control or audio. I didn't find those configuration files for the hdradio tuner installed anywhere, so, I'll need to know where to put them.
Just as a side note kev when you run configure it doesnt check to see if you have libboost-dev installed, or rather just boost.
Okay, I hooked my tuner directly to the serial port on my docking station, and still no control or audio. I didn't find those configuration files for the hdradio tuner installed anywhere, so, I'll need to know where to put them.
Looks like the plugin looks in /etc/HDRadio.cfg and the default serial port is ttyS0:
Code:mainconfigfile="/etc/HDRadio.cfg"; sessionconfigfile = getenv("HOME"); sessionconfigfile += "/.hdradio/HDRadioSession.cfg"; //DEBUG: Remove the following 2 lines when we're done testing. // mainconfigfile = "hdradio/HDRadio.cfg"; // sessionconfigfile = "hdradio/HDRadioSession.cfg"; defaultserial = "/dev/ttyS0";
Former author of LinuxICE, nghost.
Current author of nobdy.
Okay, I found the config files and moved them to their proper places.
I ran nghost again and I still don't have control of the tuner.
Note: When the hdradio tuner is plugged into power, line-in and serial, I get static whether nghost is running or not.
Currently, I'm using my ThinkPad's docking station serial port, /dev/ttyS0. I made one change to the hdradio.cfg file in /etc/ opting to turn the detection feature on.
The hdradio session config file is located in /home/user/.hdradio.
When nghost runs, I find no errors related to the serial port or operation of the hdradio plugin itself.
So, what next?
can you confirm the plugin is running at all? I don't remember if I mentioned that you need to add "libhdradio" (or "libnhdradio"?) to your ~/.nghost/plugins.conf ?
try:
nghost -d4 -lstdout | grep radio
Former author of LinuxICE, nghost.
Current author of nobdy.
No, you did not mention the fact that I needed plugins.conf, so I added it. After creating a plugins.conf file with the single entry libnhdradio, nghost will not load. The following is the output:
nghost
03/18/2009 18:09:17 EDT:WARNING - WARNING: Duplicate Global Command 'name' found: subscribeToProgress
found: /usr/local/lib/nghost//libnghostdownload.so
03/18/2009 18:09:17 EDT:WARNING - populate.cpp:SearchDir(70) - Failed to create the artgrabber plugin
03/18/2009 18:09:17 EDT:WARNING - populate.cpp:SearchDir(70) - Failed to create the artgrabber plugin
found: /usr/local/lib/nghost//libsqlitedatabase.so
found: /usr/local/lib/nghost//libsqlitequery.so
found: /usr/local/lib/nghost//libnhdradio.so
Opening port: /dev/ttyS0
Serial port attribute set return code: 0
Port /dev/ttyS0 has been opened. Descriptor: 12
nghost: tpp.c:63: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= __sched_fifo_min_prio && new_prio <= __sched_fifo_max_prio)' failed.
Aborted
However, running the command nghost -d4 -lstdout | grep radio got the library working! Clicking on presets work, seek works. I can tune in stations. However, I have no working indicators; no frequency or RDS data is displayed. The hdradio tuner does mute when I quite nghost.
Here is the output when I run the above command and nghost initially loads. You can also hear the tuner come on but stay muted:
nghost -d4 -lstdout | grep radio
03/18/2009 18:15:27 EDT:NOTICE - nghost.conf not found in ~/.nghost. Now looking in /usr/local/etc/nghost/.
03/18/2009 18:15:27 EDTEBUG - found config nghost.conf at /usr/local/etc/nghost/
03/18/2009 18:15:27 EDTEBUG - m_item->set_name(): 'lnk_radio'
03/18/2009 18:15:27 EDTEBUG - m_item->set_name(): 'lnk_hd-radio'
03/18/2009 18:15:27 EDTEBUG - XML: Attribute name: music-hdradio
03/18/2009 18:15:27 EDTEBUG - XML: Attribute path: ./screens/music-hdradio.xml
03/18/2009 18:15:27 EDT:INFO - XML_SCREEN: Parsing file: './screens/music-hdradio.xml'
03/18/2009 18:15:27 EDTEBUG - m_item->set_name(): 'hdradio_now_playing'
03/18/2009 18:15:27 EDTEBUG - m_item->set_name(): 'hdradio_channels'
03/18/2009 18:15:27 EDTEBUG - on_comment(): ' initializer for when we enable background threading of the hdradio plugin '
<action type="nhdradio">null init "nhdradio"</action>
03/18/2009 18:15:28 EDTEBUG - ActionClass:
arseAction(): eventsubscriber:null subscribeToEvent "OnHdRadioSongInfoChanged" "text" "local" "text:hdradio_now_playing set '%s: %s'"
03/18/2009 18:15:28 EDTEBUG - searching for libnhdradio
03/18/2009 18:15:28 EDTEBUG - settings.cpp:get_plugin_dir(127) - Failed to find 'libnhdradio'
found: /usr/local/lib/nghost//libnhdradio.so
03/18/2009 18:15:28 EDT:INFO - Loading plugin '/usr/local/lib/nghost//libnhdradio.so'
03/18/2009 18:15:28 EDTEBUG - doAction(eventsubscriber:null subscribeToEvent "OnHdRadioSongInfoChanged" "text" "local" "text:hdradio_now_playing set '%s: %s'" )
03/18/2009 18:15:28 EDTEBUG - ActionClass:
arseAction(): text:hdradio_now_playing set "%s: %s"
Correction: I do have a frequency indication, and RDS does output but not correctly. There is one radio station that has RDS and what I get displayed is just the characters %s: %s. I should point out that I have a poor antenna--a short rubber duck type antenna and a bit of wire connecting it to the tuner.
Another observation: I have no audio until I click on one of the preset buttons, then I can tune and use the radio.
so it works if you run nghost -d4 but not when you run "nghost" (noargs)?
That's good you got it somewhat working. We'll take a look at your issues.
Thanks!
Former author of LinuxICE, nghost.
Current author of nobdy.
I have a minor update. After shutting down and rebooting the system, using nghost without the debug command will load nghost without any crashes. Otherwise, the plugin behavior is the same.
Bookmarks