I'm working on a Raspberry Pi 3 project to read out smart meter data via an IR-Probe. That probe connects to a serial interface and gives an ASCII character stream at 960,7,E,1.
I tried both USB to UART and the internal UART, and the result is the same on both channels. Some characters that I receive are correct, but there is a lot of garbage characters in the stream. And I get much more characters as it should be there.
My code for serial port reading is identical to the sample: https://github.com/ms-iot/samples/tree/ ... ialUART/CS
Package manifest capabilities are set correctly and there is no exception thrown, so the code itself looks to run well.
One additional information: When I connect the USB to serial adapter to a normal windows PC and use a terminal program, the received stream is perfect what it should be, no disturbances and no garbage at all.
Does anyone have hints?