Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VB 6.0 MSCOMM and long phonenumbers/strings.

1 view
Skip to first unread message

Jan Alfastsen

unread,
Nov 16, 1999, 3:00:00 AM11/16/99
to
Hi' There.

I have some trouble sending more than 40 DTMF tones to my modem in VB 6.0

I use the MSCOMM.Output = "ATDT.........." + vbCr

Now you can ask yourself why send so many DTMF tones???


Well here is what my program has to do:


My program converts a string of characters to DTMF tones.

I have to dial a phonenumber (My switchboard)
and then send DTMF tones for each character to a Wallmounted LED-display.

First i convert each character after the following scheme:

A = 21# ; B = 22# ; C = 23# ; D = 31# ; E = 32# ; F = 33#
G = 41# ; H = 42# ; I = 43# ; J = 51# ; K = 52# ; L = 53#
M = 61# ; N = 62# ; O = 63# ; P = 71# ; Q = 01# ; R = 72#
S = 73# ; T = 81# ; U = 82# ; V = 83# ; W = 91# ; X = 92#
Y = 93# ; Z = 02# ; é = 03# ; è = 04# ; Å = 05# ; Æ = 06#
Ö = 07# ; £ = 08# ; SPACE = 1#


The LED-display holds 21 characters.

This means that I have to send the following to the modem to write HELLO
WORLD:
ATDT0,155,*0,42#,32#,53#,53#,63#,1#,91#,63#,72#,53#,31#,*
^ ^
Dial the switchboard
^ ^
Start Programming
^ ^
Write the string: HELLO WORLD
^^
End Programming


If I wants the display to save the string to NVRAM
I have to add the following to the string: *#1,1111*

If You have any ideas please let me know.


Best Regards
Jan Alfastsen


Hooda Gest

unread,
Nov 16, 1999, 3:00:00 AM11/16/99
to

Jan Alfastsen wrote in message ...


I am assuming you don't have a modem to deal with at the display board but
just want to use your modem to send DTMF tones. If so, I would suggest you
increase the Wait for Carrier value and use the semi-colon command to keep
the modem in command modem when through dialing. With that, you can send
several strings. Using the dial command.

The semi-colon is the terminator, as in ATDT123-4567;

This works with my USR modem and I think it's a standard dial command.

Hooda


0 new messages