Hello,
I am new to GPC but I have experience with Delphi. There I use Turbopower´s Async library to do serial communications. Can I use that library with GPC?.
Can you show me a simple program that demonstrates serial communications? or where do I get it?
Thank you in advance.
Miguel Pérez E Development Engineer Primestone E-Mail: miguel.perez@primestone.com Tel: (571) 6265432 Fax: (571) 6156377
Miguel Pérez E wrote:
I am new to GPC but I have experience with Delphi. There I use
Turbopower´s Async library to do serial communications. Can I use that library with GPC?.
Don't know: do you have the sources ? mingw32 / cygwin can interface with window modules, but I have nearly no experience.
For djgpp (dos / win95) there is bcsio20.zip in the v2tk directory in any simtelnet mirror.
C code, but you can write an unit import file for gpc as usual.
No guarantee, never used. Maurice
Maurice,
Thank you for answering. Yes, I have the sources, but the application I have to do is intended to run in a PC-DOS 7.0 powered hand computer.
Miguel Pérez E Development Engineer Primestone E-Mail: miguel.perez@primestone.com Tel: (571) 6265432 Fax: (571) 6156377
----- Original Message ----- From: Maurice Lombardi Maurice.Lombardi@ujf-grenoble.fr To: Miguel Pérez E miguel.perez@primestone.com Cc: gpc@gnu.de Sent: Tuesday, July 24, 2001 4:48 AM Subject: Re: about serial communciations
Miguel Pérez E wrote:
I am new to GPC but I have experience with Delphi. There I use
Turbopower´s Async library to do serial communications. Can I use that library with GPC?.
Don't know: do you have the sources ? mingw32 / cygwin can interface with window modules, but I have nearly no experience.
For djgpp (dos / win95) there is bcsio20.zip in the v2tk directory in any simtelnet mirror.
C code, but you can write an unit import file for gpc as usual.
No guarantee, never used. Maurice
-- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 51 45 44 mailto:Maurice.Lombardi@ujf-grenoble.fr
Miguel Pérez E wrote:
Maurice,
Thank you for answering. Yes, I have the sources, but the application I have to do is intended to run in a PC-DOS 7.0 powered hand computer.
No windows then. So the delphi sources probably won't help much because they probably use calls to windows dll to communicate with the serial line. Unless Turbopower use directly dos or hardware interrupts. In that case djgpp's libc has functions to call interrupts from within protected mode. This is the way bcsio20 works. Impossible to say more without more informations !
Maurice
On Thu, 26 Jul 2001, Maurice Lombardi wrote:
No windows then. So the delphi sources probably won't help much because they probably use calls to windows dll to communicate with the serial line. Unless Turbopower use directly dos or hardware interrupts. In that case djgpp's libc has functions to call interrupts from within protected mode. This is the way bcsio20 works.
I have tried bcsio20 for some time (C and C++ though) and has rather bad experience to it (had to fix rather many problems with it but there were still other ones and I didn't want to mess with assembler source too much). So I changed to dzcomm-0.98b where I need serial communications. But I'm doing it mostly from C++. Anyway I don't think it would be so difficult to write Pascal unit for that.
Andris