Correct, but I have to save the text that is proper the serial flow acquired (not a single string, but all to the end of the alarm).
For example:
The strings contain the value of an accelerometer, when this value exceeds a threshold then starts the saving of the file with serial flow.