Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[21] Com Ports and the MSComm Control

Last post 07-10-2006 1:19 PM by raxe. 90 replies.
Page 1 of 7 (91 items) 1 2 3 4 5 Next > ... Last »
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [21] Com Ports and the MSComm Control

    This thread is for discussions of Com Ports and the MSComm Control.

    • Post Points: 365
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 03-26-2002 5:05 AM In reply to

    • nelly
    • Not Ranked
    • Joined on 03-26-2002
    • New Member
    • Points 5
    hi..there...

    I would like to ask you the following questions.

    1. If I open my Com port, does it mean I am always listening to incoming data from that com port?
    2. If it does not keep listening, how do I do the polling in my program so that it will keep listening to incoming data from that com port?

    Hope you would like to answer my questions....

    Thank You very much

    Nelly
    • Post Points: 0
  • 04-04-2002 10:02 AM In reply to

    Answer 1

    As long as PortOpen is TRUE, the OnComm Event will fire if there is incomming data.
    • Post Points: 0
  • 05-30-2002 1:08 AM In reply to

    • ajayld
    • Not Ranked
    • Joined on 05-30-2002
    • New Member
    • Points 5

    Mscomm control

    Can we use mscomm control to read synchronous binary data. If yes, please tell me how?

    Thank you.
    • Post Points: 0
  • 06-04-2002 3:56 AM In reply to

    • anup
    • Not Ranked
    • Joined on 06-04-2002
    • New Member
    • Points 5

    Receiving Data-MsComm

    Hello,

    How can receive the numbers pressed by anyone while I am talking with him/her via telephone. I think this is the way PABX works.

    My compiler is showing syntax error with the following code-
    txtOutput.Text = txtOutput.Text & StrConv(MSComm1.Input, vbUnicode)

    Please help...

    Anup
    • Post Points: 0
  • 06-20-2002 9:05 AM In reply to

    • Mark_H
    • Not Ranked
    • Joined on 06-20-2002
    • New Member
    • Points 20

    NullDiscard - Help! .... Please!

    Hi,

    Hopefully there's a simple solution to this one, but I'm pulling my hair out right now, coz I've tried everyway I can think of ....


    Please forgive me if I'm overlooking the obvious, but though I'm an experienced programmer, I am very new to VB!

    I am trying to write an application to emulate a thermal printer to allow printing 'through' a PC. The received data includes nulls/zeros, mainly as part of command properties, which I need the app to recognise.

    I have tried to receive the data as text (comInputModeText) but as null is an empty string, that doesn't work! I have tried receiving the data numerically (comInputModeBinary) but as soon as I try to run the app with 'NullDiscard' as false it hangs, seemingly receiving infinate nulls/zeros, long after the input data has ceased. The program does not hang if I set 'NullDiscard' to true, but of course then I don't get my nulls!!

    Please Help!! ... anyone!!

    Cheers,

    Mark H
    • Post Points: 0
  • 06-21-2002 3:12 PM In reply to

    windows 98 issue

    I tried using your comport example but it didn't work on windows 98.  is there any supporting DLL's or components I need to attach to my project.
    • Post Points: 0
  • 06-21-2002 10:48 PM In reply to

    • urmila
    • Not Ranked
    • Joined on 06-21-2002
    • New Member
    • Points 5

    mscomm control

    Can i transfer a file to my friend with whom i am talking on a phone by holding on the connection using the mscomm control?
    (this refers to use of voiceview at-commands). please help me out.
    • Post Points: 0
  • 07-03-2002 7:08 AM In reply to

    mscomm control

    how can i get the numbers pressed on the telephone using mscomm control, using the same telephone line with modem and telephone?
    • Post Points: 0
  • 07-13-2002 12:42 PM In reply to

    • Mark_H
    • Not Ranked
    • Joined on 06-20-2002
    • New Member
    • Points 20

    NullDiscard problem sorted!

    OK guys, don't all rush to help ... sussed it anyway!!

    Anyone experiencing the same problem, use comInputModeBinary reception mode and receive the entire buffter into a byte array, then get the size of the array using UBound (+1 to include the first byte stored in the zero element) and write your decoding routine within a for next loop to work through each received byte. (Did that make any sense?? )



    Mark H
    • Post Points: 0
  • 07-13-2002 12:50 PM In reply to

    • Mark_H
    • Not Ranked
    • Joined on 06-20-2002
    • New Member
    • Points 20

    Windows 98 issue

    Hi Ashsoliman,

    I'm having that problem too, actually with Win Me, but I suspect it doesn't work with any non-XP/2000/NT PCs.

    I have based a port detection part of a project I'm working on around this method, and it worked fine until I came to install the final program on a Win Me system.

    Have you found a solution yet ??

    I'll let you know if I find one.

    Cheers
    Mark
    • Post Points: 0
  • 08-06-2002 12:40 PM In reply to

    • fiber
    • Not Ranked
    • Joined on 08-06-2002
    • New Member
    • Points 10

    onComm Even not fire

    Dear All,

    I got some problem when I try to capture data using the onComm1.commEvent

         Case comEvReceive        
           ' receive log here
           inBuffer = inBuffer & MSComm1.Input
           Debug.Print MSComm1.Input

    I have to put the break point infront of the MsComm1_OnComm() inorder to have it fire.

    my configure of MsComm1 is:
    Private Sub Form_Load()
       With MSComm1
             .CommPort = 1
             .Handshaking = comRTSXOnXOff
             .RThreshold = 1
             .RTSEnable = True
             .Settings = "9600,n,8,1"
             .SThreshold = 1
             .PortOpen = True
             .EOFEnable = True
             .InputMode = comInputModeText
             .InputLen = 0
       End With
    End Sub

    According to the posting above it should be working fine.
    But for my case it was not .

    Help,
    Many Thanks
    • Post Points: 0
  • 08-25-2002 4:36 PM In reply to

    • ren_here
    • Not Ranked
    • Joined on 08-25-2002
    • New Member
    • Points 55

    Need MSComm help

    Hi,
        Please help me regarding the usage of the MSComm control.Iam able to recieve messages but not able to transmit messages.I can clearly hear the other parties voice but they r not able to hear me.
    • Post Points: 0
  • 08-30-2002 5:25 PM In reply to

    • klindsey
    • Not Ranked
    • Joined on 08-30-2002
    • New Member
    • Points 20

    cant get mscomm to be recognised in vb5 / 6



    i have a copy (from legit source) of mscomm ocx and have added to available controls, but vb 6 does not recognise mscomm (says it need an object declaration) - the downloaded code from here causes error - any thoughts?

    kevin
    • Post Points: 0
  • 09-12-2002 5:40 AM In reply to

    • topper
    • Not Ranked
    • Joined on 09-12-2002
    • New Member
    • Points 45

    marquee Help

    How do i create a marquee script for an email signature....ive seen it on someones email they sent me and it looks so cool, i am on a works network p.c so i dont know if i am able to do it or not, please supply the code and instructions if poss

    kind regards

    chris
    • Post Points: 0
Page 1 of 7 (91 items) 1 2 3 4 5 Next > ... Last »