Recent

Author Topic: Serial communication  (Read 2382 times)

osbritod

  • Newbie
  • Posts: 1
Serial communication
« on: September 02, 2015, 10:21:27 pm »
How do I communicate with the COM1 my computer? I want to get the data received from a serial device.

Chronos

  • Full Member
  • ***
  • Posts: 241
    • PascalClassLibrary
Re: Serial communication
« Reply #1 on: September 02, 2015, 11:02:40 pm »

Henppy

  • Jr. Member
  • **
  • Posts: 60
Re: Serial communication
« Reply #2 on: September 03, 2015, 04:37:43 am »
I'm actually using Synaser at this very moment. First time I use it and it... works... kind of. I was having some weird problems, that could be my own lack of experience with it.

If you go with Synaser, then I can say:

Here's something to look to get you started: http://forum.arduino.cc/index.php?topic=37577.25;wap2

And here's another blog that probed useful: https://bigdanzblog.wordpress.com/2014/11/06/serial-communications-between-a-pc-and-an-arduino-using-lazarus-free-pascal/

Both things are for arduinos because that's just what I was doing, but the library should work for other things as well.

Note: pay attention to the waitingData call (as opposed to CanRead on the example on the first link).
« Last Edit: September 03, 2015, 04:39:17 am by Henppy »

 

TinyPortal © 2005-2018