NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
345 stars 143 forks source link

Unable to read more than 256 ports in Windows #9

Closed swadhwa6 closed 10 years ago

swadhwa6 commented 10 years ago

Hello All,

We are using nrjavaSerial-3.8.8 APIs on Windows 64 bit environment with JDK 7 (64 bit). We have a moxa server which can virtually provide around 4096 COMM ports over the network. However, nrjavaseail APIs read only maximum of 256 ports out of total 4096 COMM ports present in the network. Moreover, Java comm APIs available for 32 bit JDK by Oracle, provides this support and it shows all the 4096 COMM ports available.

Could you please explain/confirm, if its possible to read more than 256 COMM ports using nrJavaSerial APIs?

Your help is highly appreciated as we are struggling with it for last few days.

Thanks Sandeep Wadhwa Application Architect +918860850650

madhephaestus commented 10 years ago

This release should fix your problem https://github.com/NeuronRobotics/nrjavaserial/releases/tag/3.9.1

mthapa3 commented 10 years ago

The fix is causing an ArrayIndexOutOfBounds Exception. String[] temp = new String[getScannedBufferSize()+1]; needs to be changed to String[] temp = new String[getScannedBufferSize()+3];

madhephaestus commented 10 years ago

try this? https://github.com/NeuronRobotics/nrjavaserial/releases/tag/3.9.2