En/na Luca Olivetti ha escrit:

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 ;-)

Well, Lukáš has replied and my change (wrt device name) isn't really necessary. I don't remember why I though so. Regarding the changes in synautil.pas he told me that it is shared with the Synapse project, so it's not a good idea to make a special version for synaser: the latest version included in the synapse project should work.

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