Announcement

Collapse
No announcement yet.

HDRadio on Linux?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • HDRadio on Linux?

    I downloaded the latest code from svn trunk, opened the OpenMobile-Linux solution file in MonoDevelop, and built it. The solution didn't include the OMVisteonRadio project, so I added it, and tried to build it (after adding the VB.NET compiler, yuck!). It complains that it's missing AudioRouter, which after a while I found in svn under a branch called Libraries (why is there a branch called Libraries? That's not what branches are for, but that's irrelevant for this question). AudioRouter references WindowsAudio, and DirectShowLib, and this I cannot find a way to get around.

    So is HDRadio Windows only? I sure hope not. I'd be happy to fix it so it builds under Linux, but unfortunately I'm not familiar enough with your framework, and it would take me a while to get up to speed.

    Thanks!
    -- Kevin

  • #2
    At this moment it does not. I talked with mitch and had him make some changes to his hd radio dll that should let it work under linux. I have not had a chance to try it yet as my car has been torn apart and I don't have an easy way to test linux in the car itself. As far as the audio router part I am not the one that created of those pieces. I thought linux versions had been added but maybe I am wrong. While I am a heavy linux user I am not up on programming under it. I'll try to check it out in the next week or so though.
    openMobile - Download
    Like what you see? Donations are always welcome

    Comment


    • #3
      If I remember correctly AudioRouter will work under linux but I have to verify this as I've never tested it. I think Justchat did some testing on this.

      But my linux skills is close to zero so it's hard for me to do any reliable testing...

      DAB and DAB+ (Venice5 and Venice7) should also work under linux but again this also needs testing.
      Failure is not an option...
      __________________________________________________ ______________________________
      The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

      Comment


      • #4
        I got the AudioRouter to build, after updating the references, and changing the build type to .net 3.5 (it was set to 3.0, while everything else was 3.5). But now I'm getting weird build errors in the OMVisteonRadio project, leading me to believe the Mono VB.NET compiler isn't entirely stable.

        Example: Line 305: Unexpected error: There has been an internal error in the compiler. (VBNC99999)

        Commenting out those lines gives me other errors:

        /home/kevin/openmobile/Plugins/OMVisteonRadio/RadioComm.vb(154,154): Error VBNC99999: Delegate problems 3, /home/kevin/openmobile/Plugins/OMVisteonRadio/RadioComm.vb (103,154)>/home/kevin/openmobile/Plugins/OMVisteonRadio/RadioComm.vb (103,39) (VBNC99999) (OMVisteonRadio)

        I don't see anything wrong on those lines, and I assume it builds okay under Windows, so I have to assume its another compiler problem.

        The module isn't too big, it might just be easier for me to rewrite it in C#, if the vb.net compiler is indeed the problem.

        Comment


        • #5
          I can tell you there will be problems in mitch's dll for sure. I'll have to dig up the one I got from him before. I can make the changes and compile it up for you then. Make it easier for you.
          openMobile - Download
          Like what you see? Donations are always welcome

          Comment


          • #6
            Yeah if the DLL that's included won't work, I guess I'll need a new one.

            Thanks!
            -- Kevin

            Comment


            • #7
              I did a bunch of audio work on the car and need to get the radio working again and was hoping to do it tonight. Let me make the few code changes and make sure it works under windows still and will send it your way after that. I keep meaning to get linux on my portable HD but haven't and can't easily bring the radio in the house.
              openMobile - Download
              Like what you see? Donations are always welcome

              Comment


              • #8
                Give this a go. You should hopefully see the full port names in the settings and it use the right one. Before Mitch's dll just used and integer value. If you can at least see radio data even if just the station freq that means the radio control itself is working. From there we can figure out the audio router stuff.

                Let me know how it goes. Sorry it was not working already. I had been meaning to test it all out for ages as I use linux daily. Just took some one asking for me to get going on it I guess.

                Attachment removed
                Last edited by heezer7; 03-14-2011, 08:16 PM.
                openMobile - Download
                Like what you see? Donations are always welcome

                Comment


                • #9
                  yes.. String ComPortString is the property to be set, depreciated is the OLDER Int Comport

                  myHDRadio.ComPortString = "/dev/ttyS0";
                  myHDRadio.Open();

                  or what ever you linux guys do.. for comports...

                  i do have a newer .dll, V1.6.0.5, a minor fix... but still wort nabbing...
                  heerzer7 you have my email right?
                  -Thanks
                  Mitch
                  www.rush2112.net

                  "Did you test it in carwings??"

                  Sun, Come shine my way
                  May healing waters bury all my pain
                  Wind, Carry me home
                  The fabric of reality is tearing apart
                  The piece of me that died
                  Will return To live again

                  Comment


                  • #10
                    Oh, I didn't know you added a new property.

                    Mitch, email on the way for the update.

                    Kross, as soon as he sends me the update email I will post a new version with the fixed property. I just tore out some wires to rearrange things and have to hook them back up first but should only be a minute there.
                    openMobile - Download
                    Like what you see? Donations are always welcome

                    Comment


                    • #11
                      yea.. i did while back...months im sure
                      -Thanks
                      Mitch
                      www.rush2112.net

                      "Did you test it in carwings??"

                      Sun, Come shine my way
                      May healing waters bury all my pain
                      Wind, Carry me home
                      The fabric of reality is tearing apart
                      The piece of me that died
                      Will return To live again

                      Comment


                      • #12
                        Yeah, i had you do it back in sept. I just forgot today it was a new property. About to try it out on windows so I can attach an updated version.
                        openMobile - Download
                        Like what you see? Donations are always welcome

                        Comment


                        • #13
                          Ok, give this a go.
                          Attached Files
                          openMobile - Download
                          Like what you see? Donations are always welcome

                          Comment


                          • #14
                            Thanks!

                            I might not be able to get to it until tomorrow, though.

                            -- Kevin

                            Comment


                            • #15
                              I threw together a quick test app to test out the HDRadio.dll, but I get this error in the HDRadio constructor:

                              Unhandled Exception: System.NotImplementedException: The requested feature is not implemented.
                              at System.IO.Ports.SerialPort.set_ReceivedBytesThresh old (Int32 value) [0x00000] in <filename unknown>:0
                              at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:set_ReceivedBytesThresh old (int)
                              at HDRadioComm.HDRadio..ctor () [0x00000] in <filename unknown>:0
                              at (wrapper remoting-invoke-with-check) HDRadioComm.HDRadio:.ctor ()
                              at MainWindow..ctor () [0x00000] in <filename unknown>:0
                              at HDRadioTest.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0

                              Comment

                              Working...
                              X