Recording data on pc from µcontroller

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello
I want to use data sent by an avr on my PC.
I want to do this in C:
-Show data in live,
-Record?

Do somebody have a tip or a link?
Thanks..

computer : GNU Linux / e6750
ship : Attiny 2313 / ATmega8
compiler : avr-gcc 1:4.3.2-1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How are they communicating?

Leon Heller G1HSM

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use serial communication (with baudrate) and Visual C# for PC to display.

I think you can get a lite version of Visual studios 2008 from the website for students or testing etc.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ok
i'm studyng IO serial access i n C.

computer : GNU Linux / e6750
ship : Attiny 2313 / ATmega8
compiler : avr-gcc 1:4.3.2-1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

First you have to decide about the comunication method between the micro and the PC.
Usually, embedded engineers use UART (similar to RS232), but todays PCs don't use RS232.
Microcontrollers support UART, USART, I2C, SPI, USB, CAN, LIN, but todays PC motherboards usually support only USB.
My opinion is to use a UART controller like ATtiny2313 and then using an external UART to USB converter ic, like FT232R from FTDI, to connect the circuit to the PC.
Don't be afraid of the USB protocol, because FTDI does it for you. The device USB protocol is included in the ic and the PC driver can be found at FTDI. It' called VirtualCom driver, so you can handle the USB like you are comunicating via the RS232 (COM port).

So, after deciding about the comunication method and the used hardware, then you can talk about the used language (C, D, E, F, G e.t.c).

There is too much discussion about the above and too many examples if you google.

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
then you can talk about the used language (C, D, E, F, G e.t.c).

Apparently Michael doesn't think much of Assembly, or Basic... :wink:

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes i'm in this way
I found a lot of things to communicate in C.

computer : GNU Linux / e6750
ship : Attiny 2313 / ATmega8
compiler : avr-gcc 1:4.3.2-1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Implement MODBUS server in AVR and implement MODBUS client in PC application.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I found this helpful when I was learning

http://www.youtube.com/watch?v=t...