Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Arduino C Builder USB ComPort


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Jun 20, 2017 7:31 PM Last Post By: Andrew McIsaac Threads: [ Previous | Next ]
Andrew McIsaac

Posts: 91
Registered: 3/12/13
Arduino C Builder USB ComPort  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 14, 2017 3:52 PM
Good afternoon,
I am currently using XE8 Enterprise, Windows 10.

I am looking to interface with the Arduino Boards, and Communicate with it through C++
Watched the video of Create IOT solutions with Delphi and Arduino with BoianMitov, Code Rage XI,

Require
Would like to use the Arduino Mega - as I need to have approx. 50 input / output pins.
Communicate through USB if possible

I am comfortable programming the Microcontroller first - plenty of experience using Microchip -
Now I would like to use the Arduino - looks like it should be simple enough - direct communication to the board from C++
I have Comport from Winsoft which works well for for my Serial Connection - Sensors / GPS... C++ can read these live.

Would like to be able to read write top the IO pins of the Arduino ?
Preferable with USB

In the video - he used TCLComport - another addition ?

Any one have thoughts / experience to do this ?
Or other references ?

Thanks in advance.
Andrew
Bissett Daniel

Posts: 6
Registered: 11/28/07
Re: Arduino C Builder USB ComPort  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 12, 2017 1:51 PM   in response to: Andrew McIsaac in response to: Andrew McIsaac
I use Turbo Power Async Pro in almost all the programs I write. It is really a solid tool kit for serial communications. It works well with USB serial ports and I have used it to talk to PIC Microcontrollers.

As nice as it is, it is a pain in the a.. to install in C Builder. If you look around here on EDN, there is a white paper on installing it. The white paper was great but it was written before XE8. After XE8, there was a a change in the compiler command line options. Any compiler after XE8 requires command lines that look like this:

dcc32.exe -JL -NSrtl;system;vcl;winapi;system.win AsyncPro.dpk
dcc32.exe -JL -NSrtl;system;vcl;winapi;system.win dclAsyncPro.dpk

instead of the ones in the white paper.
Andrew McIsaac

Posts: 91
Registered: 3/12/13
Re: Arduino C Builder USB ComPort  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 14, 2017 8:32 AM   in response to: Andrew McIsaac in response to: Andrew McIsaac
Thanks for the reply.
I will look into

Thanks
Andrew McIsaac

Posts: 91
Registered: 3/12/13
Re: Arduino C Builder USB ComPort  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 20, 2017 7:31 PM   in response to: Andrew McIsaac in response to: Andrew McIsaac
Hi everyone,

In case anyone else is looking into.
I have the ComPort component from Winsoft ( http://www.winsoft.sk )
This works really well.
Changed the rate to 19200, and set on the Arduino
Two way communication is easily done.

Thanks,
Andrew
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02