Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. MsComm Buffer

MsComm Buffer

Scheduled Pinned Locked Moved Visual Basic
helpquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arunendra
    wrote on last edited by
    #1

    Hi! I want to know can I have a mscomm buffer of one mb? Currently my initialization part look like the following : '''''''''''''''''''''''''''''''''''''''''''''''' If MSComm1.PortOpen = True Then 'double check to avoid error if this sub re-called MSComm1.PortOpen = False End If MSComm1.CommPort = 1 'portnumber MSComm1.Settings = "9600,N,8,1" '9600 baud, no parity, 8 data and 1 stop MSComm1.InputMode = comInputModeText 'text mode MSComm1.InputLen = 1 'Set INPUT to read ONE char MSComm1.RTSEnable = False 'disable MSComm1.DTREnable = False 'disable MSComm1.Handshaking = comNone 'for 3 wire connection MSComm1.InBufferSize = 1024 ' MSComm1.RThreshold = 1 MSComm1.PortOpen = True 'open the port MSComm1.InBufferCount = 0 '''''''''''''''''''''''''''''''''''''''''''''''''' but the problem is with the buffer, the device i am connecting with can transfer one mb of data, so i may need to get the full amount of data in one go, but if i increase the size to around 5000, the program gives error. Is there any way to solve this problem? Regards Arunendra

    A 1 Reply Last reply
    0
    • A arunendra

      Hi! I want to know can I have a mscomm buffer of one mb? Currently my initialization part look like the following : '''''''''''''''''''''''''''''''''''''''''''''''' If MSComm1.PortOpen = True Then 'double check to avoid error if this sub re-called MSComm1.PortOpen = False End If MSComm1.CommPort = 1 'portnumber MSComm1.Settings = "9600,N,8,1" '9600 baud, no parity, 8 data and 1 stop MSComm1.InputMode = comInputModeText 'text mode MSComm1.InputLen = 1 'Set INPUT to read ONE char MSComm1.RTSEnable = False 'disable MSComm1.DTREnable = False 'disable MSComm1.Handshaking = comNone 'for 3 wire connection MSComm1.InBufferSize = 1024 ' MSComm1.RThreshold = 1 MSComm1.PortOpen = True 'open the port MSComm1.InBufferCount = 0 '''''''''''''''''''''''''''''''''''''''''''''''''' but the problem is with the buffer, the device i am connecting with can transfer one mb of data, so i may need to get the full amount of data in one go, but if i increase the size to around 5000, the program gives error. Is there any way to solve this problem? Regards Arunendra

      A Offline
      A Offline
      arunendra
      wrote on last edited by
      #2

      can anybody help me out of this???? Regard Arunendra

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups