SunitRaut / pyMultiSerial

A Python module for simultaneous communication with multiple serial ports, based on pyserial module
GNU General Public License v3.0
11 stars 3 forks source link

Doesnt detect ports above certain number and when trying to change to higher it no longer detects any ports #8

Open ScarSoft opened 2 years ago

ScarSoft commented 2 years ago

I need to connect a lot of devices to computer which means my COM port number is very high i have another script that can get all com ports and it does for i in range 9999 as an example, this library does in range 29 i believe and i can change it to 99 but if it gets into 3 digit and 4 digit it no longer works. So is there a way to edit the code so it can detect ports on COM125 for example.

SunitRaut commented 2 years ago

Hi ScarSoft, There is no restriction applied on port no in our library. Can you please test once with serial library as we are using this as our base library. Try three-digit port no. in pyserial and let us know. It will help me to analyze further as I am not able to create port numbering in the range of 125 on my system.

ScarSoft commented 2 years ago

I believe there is a restrictions this line here portno_range = 29 I can change 29 to 99 and it works to com ports up to 99 but when change to like 150 it longer detects any ports. I figured out a solution to what i needed but maybe someone else might need the higher ports in future

SunitRaut commented 2 years ago

Seems strange. I will try to find a way around this. Can you please share your solution. This will help me to analyze the issue.