Sending SMS Messages from Terminal Devices Using MSComm Control.
Hi All,
I have read the Topic on "Sending SMS Messages from Terminal Devices
by Al Pritchard" on this Site (dev-archive)
My Problem is How to Send (Ctrl-Z) Character to the Mobile to Hang up the
Phone. I have Tried ^z, Chr$(26) (for Ctrl+Z Pressed Together), Chr$(13)
(Carraige Return), (ctrl-Z) etc...
But No Success.
Any Help will be Appriciated.
Thank you.
[411 byte] By [
Pankil] at [2007-11-9 15:34:12]

# 1 Re: Sending SMS Messages from Terminal Devices Using MSComm Control.
Hi Pankil,
you assign Chr$(26) to a string & then send out. ie...
dim sendText as String
sendText = "mobileNumber" + Chr$(26)
MSComm1.Output = sendText + Chr$(13)
Hope this will work..
>Hi All,
>
>I have read the Topic on "Sending SMS Messages from Terminal Devices
>by Al Pritchard" on this Site (dev-archive)
>
>My Problem is How to Send (Ctrl-Z) Character to the Mobile to Hang up the
>Phone. I have Tried ^z, Chr$(26) (for Ctrl+Z Pressed Together), Chr$(13)
>(Carraige Return), (ctrl-Z) etc...
>But No Success.
>
>Any Help will be Appriciated.
>
>Thank you.
>
Thiru at 2007-11-12 0:16:16 >

# 2 Re: Sending SMS Messages from Terminal Devices Using MSComm Control.
Hi,
I am using some commands for the siemens m20 Terminal.
when i use the hyperterminal, i get teh information properly
MSComm1.Output = "AT+CSCA?" & vbCrLf
but when i use the above from vb,
RichTextBox1.Text = MSComm1.Input
the response is not being displayed... though is contains some things.. what
could be the reason... do i have to explicity convert to string and parse
it... any idea will be greatly appreciated..
saril
"Thiru" <tarasu@singtel.com> wrote:
>
>Hi Pankil,
>you assign Chr$(26) to a string & then send out. ie...
>
>dim sendText as String
>sendText = "mobileNumber" + Chr$(26)
>
>MSComm1.Output = sendText + Chr$(13)
>
>Hope this will work..
>
>
>>Hi All,
>>
>>I have read the Topic on "Sending SMS Messages from Terminal Devices
>>by Al Pritchard" on this Site (dev-archive)
>>
>>My Problem is How to Send (Ctrl-Z) Character to the Mobile to Hang up the
>>Phone. I have Tried ^z, Chr$(26) (for Ctrl+Z Pressed Together), Chr$(13)
>>(Carraige Return), (ctrl-Z) etc...
>>But No Success.
>>
>>Any Help will be Appriciated.
>>
>>Thank you.
>>
>
saril at 2007-11-12 0:17:13 >

# 3 Re: Sending SMS Messages from Terminal Devices Using MSComm Control.
Hi Pankil
If u r using vb and mscomm control use following code
mscomm.output= 12(length of pdu) & chr$(13)
wait for ">" to come from modem then
mscomm.output= sms pdu & Chr$(26)
It will solve u r problem
Bye
"Pankil" <sPankil@indiatimes.com> wrote:
>
>Hi All,
>
>I have read the Topic on "Sending SMS Messages from Terminal Devices
>by Al Pritchard" on this Site (dev-archive)
>
>My Problem is How to Send (Ctrl-Z) Character to the Mobile to Hang up the
>Phone. I have Tried ^z, Chr$(26) (for Ctrl+Z Pressed Together), Chr$(13)
>(Carraige Return), (ctrl-Z) etc...
>But No Success.
>
>Any Help will be Appriciated.
>
>Thank you.
>
# 4 Re: Sending SMS Messages from Terminal Devices Using MSComm Control.
Hi,
As I mentioned in another dev-archive forum, I'm using chr(26) for (Ctrl-z). It
works great for VB6, using MSComm & a Motorola Timeport.
I have no idea it crashes your mobile but thought this might help.
"Pankil" <sPankil@indiatimes.com> wrote:
>
>Hi All,
>
>I have read the Topic on "Sending SMS Messages from Terminal Devices
>by Al Pritchard" on this Site (dev-archive)
>
>My Problem is How to Send (Ctrl-Z) Character to the Mobile to Hang up the
>Phone. I have Tried ^z, Chr$(26) (for Ctrl+Z Pressed Together), Chr$(13)
>(Carraige Return), (ctrl-Z) etc...
>But No Success.
>
>Any Help will be Appriciated.
>
>Thank you.
>
ty at 2007-11-12 0:19:20 >

# 5 Re: Sending SMS Messages from Terminal Devices Using MSComm Control.
Hello.
Help me please, I am working with nokia 6230 + Visual basic 6 + mscomm
It works good sending sms using vBasic, but I can not receive data. This is a problem receiving data, and a message is displayed:
Error '8020': Error reading device
That error occurs when I try to read port: data=mscomm1.input
Help me please
Thanks in advance