Thanks
raphaelcno, you found the solution in just a couple of lines.
I have two problems though!
1- There are 3 control bytes + a checksum byte in the beginning of the arrived array of bytes (00 00 00 nn). This is very
good as simple CRC for transmission validation, but unfortunately my MCU controller board is designed differently and
its firmware can not parse these additional bytes (at this time). Is there any way to get rid of them? I removed the "prefix" but
didn't work.
2- When I send back bytes to the Android device, the first transmission doesn't appear, but the second causes the app
to shut down. Is there any explanation?
Thanks in advance.