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. Other Discussions
  3. IT & Infrastructure
  4. RS232 Communicating/Receiving

RS232 Communicating/Receiving

Scheduled Pinned Locked Moved IT & Infrastructure
c++databaseoraclehelp
2 Posts 2 Posters 2 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
    Lost User
    wrote on last edited by
    #1

    I'm connecting from my pc to a device using rs232 (COM1) ports. The device sends a string of ASCII characters to the serial port of the device. I want to be able to grab these characters from the device using C++ and store them in a temporary location where other programs can access them or to send them to a specific field in an oracle database. Any help or suggestions would be great! Note: there is a single bit sent from the device to begin and a single bit when it ends.

    J 1 Reply Last reply
    0
    • L Lost User

      I'm connecting from my pc to a device using rs232 (COM1) ports. The device sends a string of ASCII characters to the serial port of the device. I want to be able to grab these characters from the device using C++ and store them in a temporary location where other programs can access them or to send them to a specific field in an oracle database. Any help or suggestions would be great! Note: there is a single bit sent from the device to begin and a single bit when it ends.

      J Offline
      J Offline
      Joseph Dempsey
      wrote on last edited by
      #2

      not exactly sure what you are having problems with here but if it is with the send and receiving part I would suggest you do a search in MSDN. The main functions you will use to do all operations with the COM port are ReadFile(...) and WriteFile(...) . You get a handle to the COM Port with CreateFile(...) . You also need to use the COMSTAT structure and the TIMEOUTS structure. If you need more specific help post a more specific question and I will try to give better advice. Joseph Dempsey jdempsey@cox.rr.com Joseph.Dempsey@thermobio.com "Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning." --anonymous

      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