(sorry for my english).
I started example SerialSample. Works well. 
But I have a question: how to send something to the com port without the use of a button, only directly with the code, for example: at application startup or after the occurrence of an event?
And the second question: how to choose a serial on board without a button only when the application is started?
Thanks.