Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: radio/hdradio/obdII testing in nghost

  1. #21
    Newbie
    Join Date
    Jun 2007
    Posts
    49
    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.

  2. #22
    Newbie
    Join Date
    Feb 2008
    Posts
    20
    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.

  3. #23
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,555
    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.

  4. #24
    Newbie
    Join Date
    Feb 2008
    Posts
    20
    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?

  5. #25
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,555
    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.

  6. #26
    Newbie
    Join Date
    Feb 2008
    Posts
    20
    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.

  7. #27
    Newbie
    Join Date
    Feb 2008
    Posts
    20
    Another observation: I have no audio until I click on one of the preset buttons, then I can tune and use the radio.

  8. #28
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,555
    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.

  9. #29
    Newbie
    Join Date
    Feb 2008
    Posts
    20
    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.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Linux Ice and Nghost looking for developers
    By wirelessdreamer in forum LinuxICE
    Replies: 5
    Last Post: 08-16-2009, 06:05 AM
  2. nGhost 2.0.0 Final is out!
    By tripzero in forum LinuxICE
    Replies: 53
    Last Post: 07-16-2009, 09:16 PM
  3. Replies: 4
    Last Post: 03-05-2009, 11:36 AM
  4. nGhost Media Center 2.0 RC1 - The desktop for you car
    By tripzero in forum Software & Software Development
    Replies: 8
    Last Post: 08-19-2008, 11:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •