DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: Sending SMS Messages from Terminal Devices Using MSComm Control.

  1. #1
    Pankil Guest

    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 (DevX)

    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.


  2. #2
    Thiru Guest

    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 (DevX)
    >
    >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.
    >



  3. #3
    saril Guest

    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 (DevX)
    >>
    >>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. #4
    santosh Guest

    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 (DevX)
    >
    >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.
    >



  5. #5
    ty Guest

    Re: Sending SMS Messages from Terminal Devices Using MSComm Control.


    Hi,

    As I mentioned in another devx 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 (DevX)
    >
    >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.
    >



  6. #6
    Join Date
    Oct 2007
    Posts
    1

    Problems receiving sms from NOKIA + Visual Basic

    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

  7. #7
    Join Date
    May 2009
    Posts
    2
    Quote Originally Posted by pcapelo View Post
    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
    Hello

    I have nokia 6230 and i want to interface it with PC to send sms through VB 6.

    Respected Sir

    I found your website really useful. I badly need ur help.

    Actually, In my project, I am using some sensors connected to microcontroller and the microcontroller is interfaced to PC. The readings of the sensors is shown on the PC in Visual Basic 6.

    For example, LM35 measures temperature. Incase, there is extreme increase in temperature, an SMS should be sent to the owner or any hospital or any place. For this I have to interface mobile to PC. I need the code in VB 6 to send sms. I have two mobiles: nokia 3310 and nokia 6230. Which one would be easy to use. I think, i can get the data cable for 6230. Can u plz tell me the name for the data cable of 3310. Is it called dau-9p or it has any other name?


    For nokia 6230, I want to know about FBus and MBus. I mean, the pin diagram, the connections needed to connect with PC. I want to connect it through serial port. I am getting 0.5V and 4.5V from MAX232, but after this, I dont know, what connections are required? Plz help me.

    I need the code in VB 6 to send sms. I know, its long back, u had posted this question, but plz help me. Plz send me the correct code in VB to send sms and do i need to instal any file before creating the form. what is nokia component, i read this somewhere.

    Thanks alot for helping...

    May God reward you...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center