Hi
I have a problem while sending data to RaspBerry serial port (UART) with pi4j library as described in:
http://pi4j.com/example/serial.html
Basically I have connected my RPi UART to RS232 as shown in the picture below:
The other side is connected to my PC so I can monitor the RPi serial port.
Once the data are sended (I use a java application that includes the demo in the link above) I can see
on my serial monitor that some data (bytes sended) "changed" in a way. Will try to explain.
For instance. If I send a byte like (byte)0x05 I receive "05" on serial monitor. That's OK.
The problem occurs when I send for instance (byte)0x80 (more then 79). In that case I get on serial
monitor the value EF BF BD. The problem occurs also when I send (byte)0x00. In that case I get on
serial monitor the value C0 80.
I think that the problem should be connected with the UTF-8 encoding but I don't know where to
disable the UTF-8 or maybe tell the RPi to use only ASCII char.
Can someone please help me. I have such a wonderful project with RPi to work on but this time I
can not identify the cause of the situation described.
Mitja





