One more question:
I successfuly made prefix mode data exchange between uC and Android at 460800 baud. But some problems still exist.
1. If I start uC transmission after BT connection established everything runs OK as expected.
2. But if I made connection while uC transmission is running, I got in 50/50 cases errors concerned message size. I found it reasonable as the received data randomly may occure in the middle off message.
3. I tryed to find solution to somehow syncronize the receiving procces by sending void messages: 0, 0, 0, 0 between the data messages. I logically assume that these short and correct data packets must correctly received in all cases. But the situation became even worse I could not establish communication at all. Does it means that such 0,0,0,0 packets are illegal for prefix mode? May be longer packets such as 0,0,0,8, 0,0,0,0, 0,0,0,0 will solve the problem?
And if not, is there a way to establish connection on the fly while transmitter is permanently sending?
I do know that there is a way to make some kind of handshaking by sending to the uC stop command and then to start it. But it is not acceptible in my case.
Any help appreciated.
Thanks in advance