En/na Bogusław Brandys ha escrit:
Luca Olivetti wrote:

En/na John Samperi ha escrit:


Also is there any serial port component available? I have been
using Cport with D6.


I've been successfully using synaser (http://www.ararat.cz/synapse/)
with lazarus. I made some changes to make it work (and changed the
behaviour of connect not to change the name of the device: it's better
with usb serial port). Note that I developed my program under linux, but
it should work fine in windows too.
My changes are attached, I forgot to send them upstream (I'll do it asap).

Bye



Did you sent patch to Synapse development group and author ?

I did so right after I sent that message, to Lukáš Gebauer (from the page http://www.ararat.cz/synapse/credits.htm)

is that
really work  with USB also ?

Yes. The problem with the original implementation is that, in IMHO a misguided attempt to cross compatibility, it mangled the name of the device, so if you try to open 'COM1' it would try to open /dev/ttyS0 under linux, and viceversa. The problem is that serial usb ports take the name /dev/ttyUSBx (where x is the number of the port), so that approach would fail miserably. I changed that so that the library doesn't mangle the name (i.e. you can try to open the device with any name) and added an overloaded method to open the port by number (e.g. 1 for COM1 or /dev/ttyS0). And I'm pretty sure it works: I have 4 PCs using this library to gather data on an assembly line working 24h a day ;-)

Bye

--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004      Fax +34 93 5883007

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to