Dne 24.10.2014 v 7:45 Robert Angermayr napsal(a):
> i found where my problem come from.
> first the good news, you are right, it works.
>
> The problem came from the handling of the /dev/ttyS devices.
>
> GetSerialPortNames gives you a list of the devices without the /dev/.
> If you try it with a Windows COM port in linux, there is no problem becaus 
> the get GomPortNr gives you the Portnumber and a /dev/ttyS + Nr is created.
> If i'm working with GetSerialPortNames, i have to add the /dev/ folder to the 
> device.
> So i did the following Modification
>

Thank you,
I analyzed your problems and result is uploaded to the SVN #194.

GetSerialPortNames returns full names include '/dev/' now. I added your 
next serial port names too.

'Connect' is designed to accept any device name. But it must be real 
full device name, including '/dev/' on linux.

For code compatibility between Windows and Linux it have comport name 
mapping. Names like COM?? are mapped into /dev/ttyS?? names, and vice 
versa. It doing internal method GetComNR. If it cannot get comport 
number, original device name is used.

L.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to