zabsalahid / serialport-gsm

SerialPort-GSM is a simplified plugin for communicating with gsm modems. (Primarily for sms) (Focused in PDU mode)
MIT License
92 stars 48 forks source link

Handle multiple ports #117

Open umwdeveloper opened 2 years ago

umwdeveloper commented 2 years ago

image

How can I handle this I have connected 4 modems but this shows 8 ports and when I run these modems in a loop then they cause some errors. Is there any way to only connect 4 ports where the modems are connected and skip other ports.

@spidyhackx

Apollon77 commented 2 years ago

You need to choose the corect port to connect to

umwdeveloper commented 2 years ago

You need to choose the corect port to connect to

I get the list of all available ports and then loop through that list

Apollon77 commented 2 years ago

But this is nit they it works because the ports have different meanings and one device can have multiple ports. You need to find out which one is the correct one

umwdeveloper commented 2 years ago

Is there any way to find that programmatically?

Apollon77 commented 2 years ago

I would not know how or you need to connect and check if one of the base commands work and if yes use it and if no skip it