Dan Forever
Member
I've been using serial (over the standard usb port) to communicate between the host PC and my teensy 3.2.
It's been fine so far, but I recently ran into a bug that stumped me for a bit.
I wanted to do something when the connection was established, so I used
and then added the initialisation code I wanted. But it didn't seem to be called, (but my other stuff still worked, so serial communication was definitely working.
I tried reducing my program down to what basically amounts to hello world:
and still nothing. However, as soon as I connected the serial monitor in the arduino ide, my PC was flooded with messages of greeting from my teensy.
So I'm essentially wondering, what am I doing differently (or simply not doing) that the arduino ide serial monitor does?
On the PC side, I've got a console app written in C# using the serial port library (Windows). Essentially all I really do is open a connection on a port and start sending data, there are a whole bunch of properties listed there that I haven't used, including the "handshake" property.
It's been fine so far, but I recently ran into a bug that stumped me for a bit.
I wanted to do something when the connection was established, so I used
Code:
if(Serial)
I tried reducing my program down to what basically amounts to hello world:
Code:
if(Serial) Serial.println("Hello!")
So I'm essentially wondering, what am I doing differently (or simply not doing) that the arduino ide serial monitor does?
On the PC side, I've got a console app written in C# using the serial port library (Windows). Essentially all I really do is open a connection on a port and start sending data, there are a whole bunch of properties listed there that I haven't used, including the "handshake" property.