Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
What is the best way to interrogate COM ports with smslib?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ivan Yawiz  
View profile  
 More options Nov 6 2012, 10:35 am
From: Ivan Yawiz
Date: Tue, 6 Nov 2012 07:35:07 -0800 (PST)
Local: Tues, Nov 6 2012 10:35 am
Subject: What is the best way to interrogate COM ports with smslib?

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thanasis  
View profile  
 More options Nov 11 2012, 12:12 pm
From: Thanasis
Date: Sun, 11 Nov 2012 09:12:08 -0800 (PST)
Local: Sun, Nov 11 2012 12:12 pm
Subject: Re: What is the best way to interrogate COM ports with smslib?

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivan Yawiz  
View profile  
 More options Nov 13 2012, 9:46 am
From: Ivan Yawiz
Date: Tue, 13 Nov 2012 06:46:56 -0800 (PST)
Local: Tues, Nov 13 2012 9:46 am
Subject: Re: What is the best way to interrogate COM ports with smslib?

Thank you for your answer!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »