?
Solved

MsComm

Posted on 2003-03-31
3
Medium Priority
?
440 Views
Last Modified: 2008-02-26
Hi
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
0
Comment
Question by:venky1981
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Accepted Solution

by:
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
0
 

Expert Comment

by:CleanupPing
ID: 9446606
venky1981:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Six Sigma Control Plans

771 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