8 8 5....
Well... not many of us have FM channels above 799MHz, so anything starting with an 8 is usually below 100MHz... Or?
8 8 5....
Well... not many of us have FM channels above 799MHz, so anything starting with an 8 is usually below 100MHz... Or?
Quick reply as I have a full day of renovations on. I can rewrite the logic so you won’t 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 can’t refer to colours any more as every font and colour in the app is now changeable.
GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project
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 I’m out of here again.
I have auto port on some apps but I didn’t 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 I’ll happily add them.
Last edited by Mickz; 09-20-2012 at 04:13 AM.
GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project
Nope, still does not save the full freq.
Yes, entering 1049 works
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.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'
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
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.
GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project
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.
GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project
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
Thanks for that code snippet JJ, very handy.Originally Posted by johnjore
I've assumed 'DABFMMonkeyUSBVIDPID' is supposed to be 'USB\VID_04D8&PID_000A'. Is that correct?
It works for me anyway!![]()
Bookmarks