zabsalahid / serialport-gsm

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

Handle multiple ports #117

Open umwdeveloper opened 1 year ago

umwdeveloper commented 1 year 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 1 year ago

You need to choose the corect port to connect to

umwdeveloper commented 1 year 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 1 year 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 1 year ago

Is there any way to find that programmatically?

Apollon77 commented 1 year 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