PDA

Click to See Complete Forum and Search --> : Send SMS whitt VB


mendonca.nuno
Jun 29th, 2001, 10:38 AM
hi everyone,

i am trying an application where a visual basic program can communicate with mobile phones.

I would like to know how to give AT commands in visual basic code. how can a visual basic program identify if a mobile is connected to a serial port or no..

bye
Nuno

Jhd.Honza
Jul 10th, 2001, 01:42 PM
Maybe MSCOM ocx can help you. Very useful is \SAMPLES\COMPTOOL\MSCOMM example.

But you have to know AT commands.

maloney
Jul 14th, 2001, 04:57 AM
This would be a simple dial command for a modem, it stems from old basic, but it still works! Here goes:

code:

Open "COM1:9600,n,8,1" for RANDOM as #1
Print #1, "ATDT 5551212"
'A delay added here phone will disconnect upon close
Close #1

I don't know if that helps, but I hope it did! Good Luck!