Results 1 to 2 of 2

Thread: run AT Commands

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    12

    Thumbs up run AT Commands

    Hi Guys

    I want to run AT commands through VB.

    Is it possible within VB, or some other language it needs.

    Actually i have been assigned one project in which I have to look for the telephone no through which the call has been made.

    Through Modem commands (AT commands) I may get the solved my problem done.


    Any idea on this or any other way to find out..............


    Thanks

    Arvind


  2. #2
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    Use MSCOMM control to send AT commands to MODEM

    Like...

    VB Code:
    1. Private Sub Form_load()
    2.     With MSComm
    3.         If .PortOpen = False Then
    4.             .Settings = "9600,n,8,1"
    5.             .CommPort = 1
    6.             .PortOpen=True
    7.         End If
    8. End Sub
    9.  
    10. Private Sub SendATCommand(Command as String)
    11.         If MSComm.PortOpen=True then MScomm.output=Command
    12. End Sub

    Hope this helps.

    Kinjal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width