Send data to PC from MCU & save it in .txt file

Discussion in 'Embedded Systems and Microcontrollers' started by aamirali, Feb 9, 2014.

  1. aamirali

    Thread Starter Member

    Feb 2, 2012
    415
    1
    Hi,

    I am able to send data to hyperterminal & data sent is correct.
    How can I save that data to .txt file instead. What should I do for this.
     
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,398
    497
    Are you using USB to connect uC to PC?
     
  3. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,398
    497
  4. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,887
    1,017

    Where do you want to save the data? On the PC or on the MCU? Please help others to help you and be clear in your requirements.
     
  5. GetDeviceInfo

    Senior Member

    Jun 7, 2009
    1,571
    230
    continue to use hyperterminal and 'capture text' to your designated file.
     
  6. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,570
    2,380
    Is this a case of converting the data or just the extension name of the file?
    Max.
     
  7. aamirali

    Thread Starter Member

    Feb 2, 2012
    415
    1
    I am using RS232 to send data to hyperterminal & want to save sata in PC
     
  8. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,887
    1,017
    hyperterminal should have a feature to save data.
     
  9. Brownout

    Well-Known Member

    Jan 10, 2012
    2,375
    998
    HyperTerminal is a little restrictive in how it saves data. I've found that I need to send formatting along with data in order to have the data saved the way I need it. However, I've written my own communications program in which I can format the data when I save it from the computer, or even write it out as it's being collected. It's a work in progress, but the bulk of code for sending and receiving data is done.
     
  10. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
Loading...