Page 16 of 33 FirstFirst ... 67891011121314151617181920212223242526 ... LastLast
Results 151 to 160 of 329
Like Tree1Likes

Thread: DAB DAB+ FM Digital Radio Development Board

  1. #151
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,870
    Quote Originally Posted by johnjore View Post
    Mickz,
    also, an enhancement suggestion:
    The way CF works is you only need to enter the numbers 1 0 4 9 and it figures out its 104.9MHz. Saves pressing the . and the button could be removed?


    JJ
    How do you enter a freq as 88.5 without the dot ?

  2. #152
    Newbie
    Join Date
    Apr 2012
    Posts
    44
    8 8 5....

    Well... not many of us have FM channels above 799MHz, so anything starting with an 8 is usually below 100MHz... Or?

  3. #153
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    881
    Quote Originally Posted by johnjore View Post
    Mickz,
    Sorry for late feedback, been busy trying to write a Centrafuse frontend.

    Just tested your app and entering the freq manually now works, but can't save (when dragging the green freq to a preset button, it still strips off everything after the ,)

    also, an enhancement suggestion:
    The way CF works is you only need to enter the numbers 1 0 4 9 and it figures out its 104.9MHz. Saves pressing the . and the button could be removed?


    JJ
    Quick reply as I have a full day of renovations on. I can rewrite the logic so you wont have to press the KHz separator.

    When you drag the frequency to the Preset what is the separator displayed as on the top frequency display I take it that it is a , ? If so it's an easy fix.

    BTW I cant refer to colours any more as every font and colour in the app is now changeable.
    Surface Pro 2 128GB portrait mode, Win8.1, Reverse camera, Dual 10HZ GPS RX's for Speed Display & Sat Nav, FM-DAB & Phone Modules, iDrive interface. T-Screen HVAC control, custom microcontrollers, microcode and FE. Previous Car-PC Project

  4. #154
    Newbie
    Join Date
    Apr 2012
    Posts
    44
    Jepp, the freq is shown with a , not . at the top left corner.

    Btw, I've got some code to auto detect the COM port used by the board. Let me know if you want a copy.


    JJ

  5. #155
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    881
    Quote Originally Posted by johnjore View Post
    Jepp, the freq is shown with a , not . at the top left corner.

    Btw, I've got some code to auto detect the COM port used by the board. Let me know if you want a copy.


    JJ
    Hi JJ, I had a few minutes to look at the code, can you give this a try, drag drop for , and no KHz separator needed (hopefully). I tried it once and uploaded it as Im out of here again.

    I have auto port on some apps but I didnt like the 6 second timeout that can occur on some ports when accessed via the DLL, you may not have encounter that yet, or perhaps you found a way around it?

    BTW Thanks for giving the app a workout and the feedback, it really is appreciated.

    Mike.

    Forgot to mention that if you need the app to accept any specific key-codes Ill happily add them.
    Last edited by Mickz; 09-20-2012 at 05:13 AM.
    Surface Pro 2 128GB portrait mode, Win8.1, Reverse camera, Dual 10HZ GPS RX's for Speed Display & Sat Nav, FM-DAB & Phone Modules, iDrive interface. T-Screen HVAC control, custom microcontrollers, microcode and FE. Previous Car-PC Project

  6. #156
    Newbie
    Join Date
    Apr 2012
    Posts
    44
    Nope, still does not save the full freq.

    Yes, entering 1049 works

    COM port:
    43:28.71> DABFMMonkey:: SetupCOMPortInformation(): SetupCOMPortInformation()
    43:28.95> DABFMMonkey:: SetupCOMPortInformation(): Enumerating USBCOM Devices: 'Communications Port (COM17)' HardwareID: 'USB\VID_04D8&PID_000A\7&25C389C1&0&1'
    43:28.95> DABFMMonkey:: SetupCOMPortInformation(): Match. Found MonkeyBoard on: 'Communications Port (COM17)'
    43:28.96> DABFMMonkey:: SetupCOMPortInformation(): COM Port '\\.\COM17'
    43:28.96> DABFMMonkey: InitializeRadio(): COM Port found and will initialize radio using: '\\.\COM17'
    Takes 0.25 of a second to find the port. No probing of the port required, just look for the correct Hardware ID.

    Code:
            /// <summary>
            ///		Autodetect COM port
            /// </summary>
            /// <return>
            ///		Returns COM Port (Windows format), or empty if not found.
            /// </return>
            private string SetupCOMPortInformation()
            {
                CFTools.writeLog("DABFMMonkey:", "SetupCOMPortInformation()");
    
                ManagementObjectSearcher searcherPNP = new ManagementObjectSearcher("SELECT * FROM Win32_PnPEntity");
                foreach (ManagementObject mo in searcherPNP.Get())
                {
                    string name = mo["Name"].ToString();
                    // Name will have a substring like "(COM12)" in it.
                    if (name.Contains("(COM"))
                    {
                        string HardwareID = mo["DeviceID"].ToString();
                        CFTools.writeLog("DABFMMonkey:", "Enumerating USBCOM Devices: '" + name + "' HardwareID: '" + HardwareID + "'");
    
                        if (HardwareID.IndexOf(DABFMMonkeyUSBVIDPID) == 0)
                        {
                            CFTools.writeLog("DABFMMonkey:", "Match. Found MonkeyBoard on: '" + name + "'");
                            string strPort = name.Substring(name.LastIndexOf("(") + 1, name.LastIndexOf(")") - name.LastIndexOf("(") - 1);
    
                            //Convert port to Windows format
                            strPort = "\\\\.\\" + strPort;
    
                            CFTools.writeLog("DABFMMonkey:", "COM Port '" + strPort + "'");
    
                            // Return port name
                            return strPort;
                        }
                        else CFTools.writeLog("DABFMMonkey:", "No Match on: " + name);
                    }
                }
                return "";
            }

    JJ

  7. #157
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    881
    Of course, I do that for GPS devices and problem Device restart / initialisation in the FE, don’t know why I didn’t think of it for the DAB Module. Getting old I guess.

    I’ll look at drag drop again, I must of missed something, I fed 104,5 to Station text and it saved it ok.

    I’ll look tomorrow.

    Mike.
    Surface Pro 2 128GB portrait mode, Win8.1, Reverse camera, Dual 10HZ GPS RX's for Speed Display & Sat Nav, FM-DAB & Phone Modules, iDrive interface. T-Screen HVAC control, custom microcontrollers, microcode and FE. Previous Car-PC Project

  8. #158
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    881
    Hi JJ, getting really tired here but made a quick change to drag-drop before heading off. Hopefully it’s ok now? Only the EXE needed and it’s uploaded. If not Ok I'll look tomorrow.
    Surface Pro 2 128GB portrait mode, Win8.1, Reverse camera, Dual 10HZ GPS RX's for Speed Display & Sat Nav, FM-DAB & Phone Modules, iDrive interface. T-Screen HVAC control, custom microcontrollers, microcode and FE. Previous Car-PC Project

  9. #159
    Low Bitrate
    Join Date
    Sep 2005
    Posts
    82
    Mickz, you are an absolute trooper :-) thanks on behalf of all of us for the hard work you're putting in.
    Car news and wallpaper site: www.carfeed.net

  10. #160
    Newbie
    Join Date
    Feb 2012
    Location
    UK
    Posts
    49
    Quote Originally Posted by johnjore
    COM port:

    Takes 0.25 of a second to find the port. No probing of the port required, just look for the correct Hardware ID.
    Thanks for that code snippet JJ, very handy.

    I've assumed 'DABFMMonkeyUSBVIDPID' is supposed to be 'USB\VID_04D8&PID_000A'. Is that correct?
    It works for me anyway!

Similar Threads

  1. Replies: 1
    Last Post: 04-29-2008, 12:52 AM
  2. On-Board Digital Equalizer
    By Cheekz185 in forum Car Audio
    Replies: 4
    Last Post: 05-24-2005, 06:47 PM
  3. Frustrated with my digital WW board....
    By Waveblaster785 in forum LCD/Display
    Replies: 15
    Last Post: 03-12-2005, 05:42 PM
  4. Fried my Digital WW board....
    By Waveblaster785 in forum LCD/Display
    Replies: 9
    Last Post: 02-21-2005, 10:26 PM
  5. SB Value Digital I/O Board???
    By RaZor in forum General Hardware Discussion
    Replies: 6
    Last Post: 04-19-2001, 12:45 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
  •