8 8 5....
Well... not many of us have FM channels above 799MHz, so anything starting with an 8 is usually below 100MHz... Or?
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.
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.
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.
Forgot to mention that if you need the app to accept any specific key-codes I’ll happily add them.
Nope, still does not save the full freq.
Yes, entering 1049 works
Takes 0.25 of a second to find the port. No probing of the port required, just look for the correct Hardware ID.Quote:
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'
/// Autodetect COM port
/// Returns COM Port (Windows format), or empty if not found.
private string 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.
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
else CFTools.writeLog("DABFMMonkey:", "No Match on: " + name);
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.
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.
Mickz, you are an absolute trooper :-) thanks on behalf of all of us for the hard work you're putting in.
Thanks for that code snippet JJ, very handy.Quote:
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! :happy: