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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. About Serial Communication ...

About Serial Communication ...

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionjson
2 Posts 2 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.
  • L Offline
    L Offline
    Lachezar
    wrote on last edited by
    #1

    :confused:I’d like to build communication program between Personal Computer and Microchip PIC device. I use WIN32 API functions. But I have troubles with Receiving Part on the PC Side. I need some help to understand the action of functions and collaborations between them ! I am feeling like a blind one, when I am writing the code. What I need and what are my questions ? I need more information about the whole Receiving Process, about the synchronization between the Parts of the Process, and about the roles of the WIN32 API functions (in the context of the Data Receiving. Now, some specific questions. - Organization of stable waiting cycle – it must be endless and I must have control over it To exit whet I want, or when some period expired, or … - what functions I need and what are the proposal parameters ? - What is the difference between: communication event and object ? - Is the communication event an object ? - About WaitCommEvent: “If hFile was not opened with FILE_FLAG_OVERLAPPED, WaitCommEvent does not return until one of the specified events or an error occurs” – I need to define some waiting time, … some ideas ? - Can I use WaitForSingleObject ? It allow me to define some waiting time ? - About ReadFile functions: If I don’t know the number of receiving symbols … ? To finish – I need something like receiving part of Microsoft Hyper Terminal ? Any kind of information, devoted to these topics will be useful for me . Thank You !

    J 1 Reply Last reply
    0
    • L Lachezar

      :confused:I’d like to build communication program between Personal Computer and Microchip PIC device. I use WIN32 API functions. But I have troubles with Receiving Part on the PC Side. I need some help to understand the action of functions and collaborations between them ! I am feeling like a blind one, when I am writing the code. What I need and what are my questions ? I need more information about the whole Receiving Process, about the synchronization between the Parts of the Process, and about the roles of the WIN32 API functions (in the context of the Data Receiving. Now, some specific questions. - Organization of stable waiting cycle – it must be endless and I must have control over it To exit whet I want, or when some period expired, or … - what functions I need and what are the proposal parameters ? - What is the difference between: communication event and object ? - Is the communication event an object ? - About WaitCommEvent: “If hFile was not opened with FILE_FLAG_OVERLAPPED, WaitCommEvent does not return until one of the specified events or an error occurs” – I need to define some waiting time, … some ideas ? - Can I use WaitForSingleObject ? It allow me to define some waiting time ? - About ReadFile functions: If I don’t know the number of receiving symbols … ? To finish – I need something like receiving part of Microsoft Hyper Terminal ? Any kind of information, devoted to these topics will be useful for me . Thank You !

      J Offline
      J Offline
      jmkhael
      wrote on last edited by
      #2

      Check this http://www.codeproject.com/system/simpleserialcomm.asp http://www.thecodeproject.com/system/cserialport.asp And what are you trying to do whith the PIC? Is it a 16F877 or 16F84? Papa while (TRUE) Papa.WillLove ( Bebe ) ;

      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