Posted on 2003-03-31
Medium Priority
Last Modified: 2008-02-26
I am writing a piece of code to catch the data coming into my internal modem.
i made a text box which displays data as when a call comes in
this code just tells my modem to wait for an incoming call so that it can receive data when a telephone call comes in.
but i dont get any data on the text box.also is there any specific modem that i have to take care of.
if any of u guys have a working piece of code for an internal modem..kindly send it

Public Call_Name As String
Public Call_Number As String
Private Sub Form_Load()
    With MSComm1
        .Settings = "9600, N, 8, 1"    
        .CommPort = 2              
        If .PortOpen = False Then          
               .PortOpen = True    
        End if
     .RThreshold = 0
        .InputLen = 0
     .Output = "AT#CID=1" & Chr(13)    
    End With
End Sub
Question by:venky1981

Accepted Solution

AdamAnderson earned 100 total points
ID: 8249635
Pass your msComm control to this function prior to opening it.

Private Function SetupPort(ByRef xCom As MSComm)
        xCom.Break = False
        xCom.DTREnable = True
        xCom.EOFEnable = False
        xCom.Handshaking = comNone
        xCom.InBufferCount = 0
        xCom.InBufferSize = 1
        xCom.InputLen = 1
        xCom.InputMode = comInputModeText
        xCom.NullDiscard = False
        xCom.OutBufferCount = 0
        xCom.OutBufferSize = 1
' this setting is up to you
        xCom.ParityReplace = Chr(0)
        xCom.RThreshold = 1
        xCom.RTSEnable = True
        xCom.SThreshold = 1
        xCom.Settings = "19200,N,8,1" 'default settings
End Function

Expert Comment

ID: 9446606
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Introduction to Processes

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question