2

I need to pass std::vector <double> values from a C++ console program (written in Visual Studio 2015) running on a PC to Arduino in real-time using USB serial communication. Can anyone of you give any advice on how to implement Firmata or something similar into a C++ console application?

I googled everywhere and could not find a decent example for C++. Almost everything can be computed in console app, Arduino needs to work only with LCD display and beside that it can have StandardFirmata uploaded.

2
  • If you are willing to use python to write a simple scripts you can use Telemetry (See on github) to exchange the data to Pytelemetry. Using a technique called indexing you can send arrays and sparse arrays. The C implementation of the protocol doesn't support it out of the box but it's 2 lines of code to add to your embedded application. Let me know (I am the author) Commented Mar 1, 2016 at 16:02
  • 1
    Do you have an upst date on this issue? I looking to compile the FIrmata test app in VIsual Studio 2017 in C++ Commented Sep 6, 2018 at 7:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.