Hello,

You cannot do this with SMSLib, but your approach is correct.
The RxTx / JavaComm libraries also keep all ports as collections. This may 
not work well in Linux, as RxTx does not seem to iterate properly all those 
differently named ports. The send-at-command-and-wait-for-an-answer method 
could also apply - although a less "elegant" approach.

On Tuesday, November 6, 2012 5:35:07 PM UTC+2, Ivan Yawiz wrote:
>
> Hi! I'd like to implement SMSlib, but I've notised, that at least atwin 
> machines the comXX port number is changed with time, if device was removed 
> and plugged back. So, in our program we should interrogate ports to find 
> the right gateway properties. In my understanding, we should try to write 
> something like "AT+GMM" to port; if there is a valid modem there some valid 
> answer will be returned. It can be done by means of rxtx, isn't it? If I'm 
> wrong I'll be gratefull to any who will give me right direction :)
>
> Another approach is to try to initialize ~ 50 gateways, with increazing 
> com port number from COM1 to COM50 and trying to get some data from it and 
> handling errors. For me it is too straightforward approach.
>
> But what if some functionality already exists in SMSlib? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/smslib/-/6r02cK4El6wJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to