Page 1 of 1

Unable to read from DM-1801

Posted: Sun Oct 09, 2022 1:33 pm
by 9h1gp
I am trying to read the codeplug from my Baofeng DM-1801. I had programmed it a couple of months ago on another computer but this computer is now faulty.... I installed the CPS and when I check with the device manager on Win10 I can see COM3 as GD-77. However when I try to read it is giving me the following error. Can anybody help me to read and write to my radio again.
Thanks

Re: Unable to read from DM-1801

Posted: Sun Oct 09, 2022 1:53 pm
by F1RMB
Hi,

What the "Details" say ?


Cheers.
---
Daniel

Re: Unable to read from DM-1801

Posted: Sun Oct 09, 2022 2:22 pm
by 9h1gp
Hi Daniel, Thanks for replying..... The firmware on the DM1801 is OpenDM1801 Built 17:36:20, Apr 3 2021 [ 70564b8 ]
The following are the details:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at DMR.OpenGD77Form.readOpenGD77RadioInfoAndUpdateUSBBufferSize(SerialPort port)
at DMR.OpenGD77Form.probeRadioModel()
at DMR.OpenGD77Form.OpenGD77Form_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
OpenGD77CPS
Assembly Version: 1.2.8298.23590
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/OpenGD77CPS/OpenGD77CPS.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4536.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
WeifenLuo.WinFormsUI.Docking
Assembly Version: 3.0.4.0
Win32 Version: 3.0.4.0
CodeBase: file:///C:/Program%20Files%20(x86)/OpenGD77CPS/WeifenLuo.WinFormsUI.Docking.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4536.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4536.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Re: Unable to read from DM-1801

Posted: Sun Oct 09, 2022 2:55 pm
by F1RMB
Hi,
9h1gp wrote:
Sun Oct 09, 2022 2:22 pm
Hi Daniel, Thanks for replying..... The firmware on the DM1801 is OpenDM1801 Built 17:36:20, Apr 3 2021 [ 70564b8 ]
The following are the details:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at DMR.OpenGD77Form.readOpenGD77RadioInfoAndUpdateUSBBufferSize(SerialPort port)
at DMR.OpenGD77Form.probeRadioModel()
at DMR.OpenGD77Form.OpenGD77Form_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
........
Looks like a problem with the USB serial port. Have you tried to use another USB port.
Also, does the serial port is in working state in the device manager ?


Cheers.
---
Daniel

Re: Unable to read from DM-1801

Posted: Sun Oct 09, 2022 3:40 pm
by 9h1gp
Yes I used another USB port which was being used by my USB keyboard and mouse and giving the same error. This is the device manager on the PC using Windows 10.

Re: Unable to read from DM-1801

Posted: Mon Mar 20, 2023 11:07 am
by db9cr
Hello,
I am experiencing the same issue unter WIndows 11 and on Windows 10 in a VirtualBox VM.
It happens with OpenGD77 driver installed and with the original driver.
I tried a non admin user, an admin user and an admin user with "run as administrator". Same problem in every case.
Any ideas hot wo solve that?
Thanks in advance
73 Christian DB9CR

Re: Unable to read from DM-1801

Posted: Mon Mar 20, 2023 11:45 am
by db9cr
Update:
it's working with OpenGD77CPSInstaller_E2021.09.14.01.exe. it's not working with higher versions.
What has changed after this version?
73 Christian DB9CR

SOLVED: Re: Unable to read from DM-1801

Posted: Mon Mar 20, 2023 4:07 pm
by db9cr
Updating the firmware on the GD77 to current version fixed the problem