Author Topic: Development of interface software for the miniRDS in C#  (Read 22914 times)

SteveyD

  • Newbie
  • *
  • Posts: 24
Re: Development of interface software for the miniRDS in C#
« Reply #15 on: October 17, 2011, 02:33:28 pm »
Yes,  even the most recent zip package from 4 posts above.

It occurs on your example.exe in Delphi as well as my C# conversion.

Jan

  • Hero Member
  • *****
  • Posts: 1057
Re: Development of interface software for the miniRDS in C#
« Reply #16 on: October 17, 2011, 03:49:19 pm »
The Disconnect procedure is pretty simple:
Code: [Select]
procedure TDM1.Disconnect;
begin
Connected:=false;
try
  VaComm1.Close;
  sleep(200);
  except
  end;
end;

Could you confirm that the error occurs also if you connect to some COM port previously?

SteveyD

  • Newbie
  • *
  • Posts: 24
Re: Development of interface software for the miniRDS in C#
« Reply #17 on: October 18, 2011, 02:11:45 am »
Jan

I've tested my Serial (with 2K resistor replacement) version and it consistently returns the error.

My LPT version is functioning fine in both Delphi and C#.

I will rebuilding my Serial interface cable and will test again.

Steve

Jan

  • Hero Member
  • *****
  • Posts: 1057
Re: Development of interface software for the miniRDS in C#
« Reply #18 on: October 18, 2011, 09:06:35 am »
This kind of error may occur if you use USB to RS232 converter and if you remove the converter from the USB before the connection is closed in the application. (But for example FTDI drivers are well written and do not raise this error.)

The cable wiring has no effect on it. It may be a driver issue. There's something more you can test:
http://pira.cz/rds/TinyRDS_Setup.exe - This is the minirds control software based on mrdsio.dll
http://pira.cz/rds/minirds.zip - This is an older minirds control software that accesses the port directly (but using the same VaComm component).

SteveyD

  • Newbie
  • *
  • Posts: 24
Re: Development of interface software for the miniRDS in C#
« Reply #19 on: October 23, 2011, 06:33:54 pm »
Error was found

my Serial adapter cable was at fault.


Jan

  • Hero Member
  • *****
  • Posts: 1057
Re: Development of interface software for the miniRDS in C#
« Reply #20 on: October 23, 2011, 09:37:56 pm »
Is it a USB to RS232?

SteveyD

  • Newbie
  • *
  • Posts: 24
Re: Development of interface software for the miniRDS in C#
« Reply #21 on: October 23, 2011, 10:08:25 pm »
No, just a simple bi-directional Serial port interface.

I built a new interface and the errors are gone.