cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect if USART is connected to a console app ?

AlexandrosAA
Associate III

As i state in the title, what is the best way to detect a connection to a console app on a pc?

I want to include a while loop in my program, that stalls the main program until the user establishes a connection and the program proccedes to the super loop.

Is there a function or a variable that detects the conection and returns true or false respectively ?

SHould i try to create a handshake between the two ?

1 REPLY 1

See previous answers:

https://community.st.com/t5/stm32-mcus-products/best-way-to-transfer-strings-to-stm32-with-usart/m-p/629214/highlight/true#M232764

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.