Results 1 to 3 of 3

Thread: Receiving data via MScomm in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    Bangalore, India
    Posts
    5

    Question

    We are using MScomm to read the data available on the serial port . We are unable to retreive the data fully. We are getting only first few characters and others are lost. Can you suggest a way to overcome this problem


    The setting for MScomm are as follows:

    MSComm settings 9600,n,8,1
    Rthreshold 0
    Inputlen 0
    Handshaking none
    InputMode comInputModeText

    Thanks in advance
    lakshmi
    LK

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898
    The information is being sent to fast. slow down the speed. ALso because it is serial, you also need to put in some kind of CRC to ensure data is valid since you also tend to get 'noise' that needs to be removed.

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    First of all, you need to write a routine to diagest the dta from the MSComm and look for the predefine end string character (Should have, e.g vbCrLf, Chr(3) or etc.)

    You need to call his function when there isa fire on the OnComm event for the received data event.

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