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. ATL / WTL / STL
  4. serial port access and communication using c

serial port access and communication using c

Scheduled Pinned Locked Moved ATL / WTL / STL
helptutorial
6 Posts 3 Posters 12 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.
  • U Offline
    U Offline
    User 11106013
    wrote on last edited by
    #1

    dear Sir/madam, I am pretty much familiar about working with c. Recently, I am supposed to do a project on serial port communication between two PCs using RS232 protocol with c. I am unfamiliar with the keyword and syntax required to accompany this task..kindly help with a tutorial on it

    P O 2 Replies Last reply
    0
    • U User 11106013

      dear Sir/madam, I am pretty much familiar about working with c. Recently, I am supposed to do a project on serial port communication between two PCs using RS232 protocol with c. I am unfamiliar with the keyword and syntax required to accompany this task..kindly help with a tutorial on it

      P Offline
      P Offline
      pasztorpisti
      wrote on last edited by
      #2

      http://lmgtfy.com/?q=rs232+visual+c+programming[^]

      O 1 Reply Last reply
      0
      • U User 11106013

        dear Sir/madam, I am pretty much familiar about working with c. Recently, I am supposed to do a project on serial port communication between two PCs using RS232 protocol with c. I am unfamiliar with the keyword and syntax required to accompany this task..kindly help with a tutorial on it

        O Offline
        O Offline
        Orjan Westin
        wrote on last edited by
        #3

        The syntax and APIs available depends on your operating system - Windows, OSX, Linux, Net/FreeBSD, Solaris, embedded OSs etc. First, do a search for "Serial port API" and your operating system. As for how serial communications work, check Wikipedia[^], and pay attention to the hardware signalling and the fact that if you connect two computers, you need a "twisted" cable, and if you connect to a device, you need a "straight" one. Oh, and this question rightly belong in the "C/C++" discussion forum rather than "ATL/WTL/STL".

        1 Reply Last reply
        0
        • P pasztorpisti

          http://lmgtfy.com/?q=rs232+visual+c+programming[^]

          O Offline
          O Offline
          Orjan Westin
          wrote on last edited by
          #4

          How do you know the poster is using Microsoft's tool or platform? Plenty of other compilers and platforms, and a C developer is more likely to be working on Unix variant or embedded system these days. I'd skip the "visual".

          P 1 Reply Last reply
          0
          • O Orjan Westin

            How do you know the poster is using Microsoft's tool or platform? Plenty of other compilers and platforms, and a C developer is more likely to be working on Unix variant or embedded system these days. I'd skip the "visual".

            P Offline
            P Offline
            pasztorpisti
            wrote on last edited by
            #5

            I guessed Visual C because this message board contains mostly windows development related posts. If OP needs another platform then modifying the search parameters isn't difficult. RS232 is a topic for which you can find very good tutorials on any platform very easily just by googling. I think OP was simply lazy to try that before posting here.

            O 1 Reply Last reply
            0
            • P pasztorpisti

              I guessed Visual C because this message board contains mostly windows development related posts. If OP needs another platform then modifying the search parameters isn't difficult. RS232 is a topic for which you can find very good tutorials on any platform very easily just by googling. I think OP was simply lazy to try that before posting here.

              O Offline
              O Offline
              Orjan Westin
              wrote on last edited by
              #6

              Fair enough. I think it's likely OP posted in the wrong group, as neither A, W, or S TL are C libraries.

              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