LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

View modems attached to comports

Hi
 
I have an application where several PPP USB modem will be attaches. But every modem is assigned to a random COM port. (e.g Com4)
How can I get access to this information, vindows api, dll ??. Then I will make a liste before attachement and after, the I can make a modem comport detect vi..
 
I would like to read from this place
 
H.H.
0 Kudos
Message 1 of 12
(6,193 Views)

Hi HH

are you sure they have random COM ports ?

Once you have set them up, surely they are permanent?

If not then I would suggest to interogate each port to identify which modemis attached . and procedd from there.

 

chow xseadog

0 Kudos
Message 2 of 12
(6,187 Views)
Hi
 
Every item I connect reports a specific item number. Therefor windows gives them a new com port number. Linux havent got this problem, but windows have.
 
I'm not sure what you meen with your last solution??
 
HH
0 Kudos
Message 3 of 12
(6,186 Views)

Hi HH

if all your modems are connected and turn on then start MAX.

Using MAX you can then see what COM ports are connected.

 

You can then communicate with each port individually.You can also use NI spy to see the communication strings etc
 
With regard to 'last solution' open  a session using serial usb vi's to communicate with modem on port X . X is a number between 0  and max number of com ports o n your machine.
So start with 0 and see if you  can communicate with modem.
 
chow xseadog 
 
0 Kudos
Message 4 of 12
(6,183 Views)

This part is no problem! MAX and ....

But I would like to make this automatic, and not have to open any other programs. I would like to make a form of auto-detect.

pseudo code

-Get modem list (1)

-Ask operator to connect the DUT

-Get modem list (2)

-compare modem list 1 and 2

-New comport = DUT PPP comport!!
 
HH
0 Kudos
Message 5 of 12
(6,178 Views)

Hi HH

your project sounds similar to a previous project I worked several years ago.

In that instance we hardwired four com ports and connected our DUTs to the vacant sockets. Testing four DUT's at once. Power was switched on,

the four units were interograted at 38k and reset to 115k Power rebooted ( necessary for speed change)

then serial numbers and identification routinues performed.

Are you testing modems or???

If you are not testing modems then not necessary to interact with operator !

Chow

xseadog

 

 

0 Kudos
Message 6 of 12
(6,175 Views)
You should be able to read some registry values, what operating system are you using??
0 Kudos
Message 7 of 12
(6,167 Views)

Hi

WinXp..

HH

0 Kudos
Message 8 of 12
(6,157 Views)

Yes i'm testing phones that act like modems. And when connected all have a unic serialno on the USB port. Therefor winXp gives all "new" modems a new comport. If a modem known to the compoter is attached, it will be given the "old" comport..

Therefor to automate it I have to be able to look somewhere to find the comport number..

HH

0 Kudos
Message 9 of 12
(6,157 Views)
See if this will help you any. 7.0 format.
Message 10 of 12
(6,153 Views)