I'm new in the Arduino world and i try to send serial data via a c++ comandline application (from a mac) to the arduino. I try to send 8 digits in a string and display them on 8 7segment displays. everything works fine as long i send the string direct from the arduino serial monitor. wen i try to send the data from the c++ app the leds on the arduino board (mega2560) starts to blink (like the board receives data) but nothing happens on the displays. as soon as i open up the serial monitor in arduino, everything works fine again, and the data from the c++ app is displayed on the 7segments.
but nothing happens on the displays. as soon as i open up the serial monitor in arduino, everything works fine again
Your C++ application is not setting all the attributes of the serial port correctly. The Serial Monitor does. Opening it corrects the mismatch, and allows data to be sent properly.
All you need to do is set the serial port attributes correctly.