Thread: Serial Port or USB Communication Help

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    2

    Serial Port or USB Communication Help

    I have a machine that is outputting data from an RS232. I used a RS232 to USB Cable to plug into a computer. I need to write a program that writes the incoming data to a file. Binary or txt maybe. I need to learn how to do this quick.(I just got a job and the sooner I can do this the better chance I have at keeping my job) To get started is there a way I can send a few numbers out of my computers rs232 with the USB converter cable (Or RS232 to RS232) to another computer and put those numbers on a file. I need something simple to start out with. I just want to send something with that set up and put it on a file. That way I can access that binary or txt file later. Preferably something I can open and see if data was sent correctly. I'm open to suggestions on how I should go about learning how to do this or sample code. Thank you so much for your help!

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    What operating system... what compiler... 32 or 64 bit code... C or C++...
    What code have you written so far?

    Also, it's not our job to save your job. If you've gotten yourself in over your head that's not our problem.

    We volunteer to help people with problems in their code. We don't teach C and we don't write code for people.

    If you want to retain my services professionally, I generally charge $250.00 per day, with a minimum charge of 1 day.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I'm sure if you Google a bit on the subject, you'll find some examples - and check your operating system forum site, as well. You may even find a tutorial site just for this.

    It's up to you to start this out. We will help if possible, but we don't start out writing code for assignments. We'd be buried by students and others looking for free programming if we did that.

    If and when you get stuck, post up your code, and the details of the PC or server you're working with, and what the problem is, of course.

  4. #4
    Registered User
    Join Date
    Nov 2011
    Posts
    2
    Understood. I have not written anything. I'm using windows 7 and also windows xp. Programming this in C with visual studio. I'll change the question to what should I learn first to get in the right direction? Know any good books on this? If not, Sorry for the wast of thread, i'll come back when I have code written. Thanks

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Books? No. Google!! You'll find something, surely.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Serial Port Communication
    By ArunS in forum Networking/Device Communication
    Replies: 0
    Last Post: 05-09-2011, 06:50 AM
  2. serial port communication using c++
    By mayuri_608 in forum C++ Programming
    Replies: 7
    Last Post: 04-20-2011, 04:30 AM
  3. Serial port Communication
    By vin_pll in forum C++ Programming
    Replies: 23
    Last Post: 01-07-2009, 09:32 AM
  4. Serial Port Communication
    By maxorator in forum C++ Programming
    Replies: 11
    Last Post: 04-27-2006, 03:13 PM
  5. serial port communication from two Application
    By lsme in forum Networking/Device Communication
    Replies: 5
    Last Post: 12-12-2005, 11:32 PM