Espigah / as3-arduino-connector

Automatically exported from code.google.com/p/as3-arduino-connector
0 stars 0 forks source link

Com Ports > 16 are valid on windows #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. My arduino is currently running on com19

What is the expected output? What do you see instead?
I need to be able to connect to ports greater than 16, the native code is hard 
coded to connect to ports from 1 to 16.

What version of the product are you using? On what operating system?
Using 1.0.0 on Windows Vista 32bit

Original issue reported on code.google.com by blanchar...@gmail.com on 2 Feb 2012 at 9:02

GoogleCodeExporter commented 9 years ago
Please see the attached rs232.c file that allows for com ports up to 999

Original comment by blanchar...@gmail.com on 8 Feb 2012 at 10:18

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks!  I'll be adding this patch into the next version I push out.  Thanks 
for contributing!

Original comment by Nicholas...@gmail.com on 8 Feb 2012 at 11:08

GoogleCodeExporter commented 9 years ago
Thanks for incorporating the changes note that the new rs232.c takes the com 
port as is and uses it instead of offsetting it into an array e.g. 
OpenComport(1, 9600) actually opens \\.\COM1.  The previous version would have 
opened \\.\COM2 not sure where you want to change it?  Either remove the 
adjustment in the .as or add 1 before it is converted to string form in the .c

Thanks again it is a great library!

Original comment by blanchar...@gmail.com on 9 Feb 2012 at 7:51

GoogleCodeExporter commented 9 years ago
Fixed in 1.2.0.  Will now accept > COM16 (however, the getComPorts() will only 
report 16, as most Windows based OSs only support COM1 -> COM16

Original comment by Nicholas...@gmail.com on 25 Mar 2012 at 3:43