It's a bug. I'm not if it was caused by mraa, the kernel/u-boot or a combination of both.
- if it is just the kernel, try a cold start (unplug the power cord)
- if it still persists, it might be mraa, what version to you use?
- we worked around this by re-configuring the serial port here hs_uart/hs_serial.c at master · htot/hs_uart · GitHub
- I haven't seen this issue with our unofficial image GitHub - htot/meta-intel-edison: Here is the meta-intel-edison that builds, tries to stay up to date and provides a PREE… , but that is based on Morty, U-Boot 17.03, Linux 4.12 and mraa 1.7, basically everything is updated, so don't no where this was fixed.
Welcome to the "Multiple-0xFF-garbage club"! I thought I was the only one in the world unfortunate enough to stumble upon this bug, but now there's two of us
I've been tackling this problem for a few months now. So far, no one could help me get rid of it...
I've already tried what Ferry suggested and it didn't help, same outcome.
I've also got another problem which I think is similar to this one:
I suspect that the problem lies within the mraa and upm libraries. I was planning on trying out drivers from other libraries like Arduino but I haven't got the chance to yet.
If you'd like, try it out yourself and please share your results.
Right, OP here. For whomsoever might be interested:
My problem was with the reference voltage I supplied to measure Tx/Rx against.
My setup was TTL camera <=> level shifter <=> Edison.
The spec for the TTL camera said that either a 3.3V or a 5V power supply will be suitable.
The demo I used as a guide ( https://communities.intel.com/message/313323#313323) had a similar setup, but the TTL camera was powered from the 3.3V power out pin on the Edison. I did not want to do that, because I believed that it will draw too much current through the Edison. I therefore powered the camera separately from a 5V power supply. I also supplied the 5V as a reference voltage to the level shifter from the same power supply, assuming that the Tx/Rx signals will flip between 0V and Vcc = 5V. It turn out that the camera output on Tx/Rx varies between 0V and 3.3V instead of between 0V and 5V - therefore the 5V reference to the level shifter resulted in too low a voltage switched through the level shifter for a positive voltage.
I changed the 5V reference voltage to the level shifter on the camera side from the 5V Vcc to the 3.3V from the Edison power out, and the problem disappeared.