good day, i'm trying to gather the data sent by a telemetry equipment to our company's Serial Printer (with baudrate of 1200, even parity, 1 stop bit) to my arduino mega., I manage to gather the data but i can't make it look similar to what the Serial Printer prints.
can someone help me with my project? i attach my code and the result i gathered
the last line in what i gathered is what our Serial Printer prints, how can i remove the 1st-19th line so that i can manage to save what i gathered to .csv file that looks like what our Serial Printer prints, thanks
good day, i'm trying to gather the data sent by a telemetry equipment to our company's Serial Printer (with baudrate of 1200, even parity, 1 stop bit) to my arduino mega., I manage to gather the data but i can't make it look similar to what the Serial Printer prints. The Serial Printer prints something like this :
good day, i'm trying to gather the data sent by a telemetry equipment to our company's Serial Printer (with baudrate of 1200, even parity, 1 stop bit) to my arduino mega., I manage to gather the data but i can't make it look similar to what the Serial Printer prints. The Serial Printer prints something like this :
Just don't build up the String, print character as they come
Printer += Telemetry; adds the new character to the Printer String and it will grow like crazy for every line... (using the String class is also a bad idea)
Now, if you also want to do other stuff, you might want to collect the data; see Robin2's Serial input basics - updated thread for ideas to get rid of the String (capital S) class.