hello,
I use the sppServer demo project to achieve UART receiving and transmiting data,It works (echo anything it received),when POWERSAVING is disabled,but when I enable the POWERSAVING some mistakes occure.
When POWERSAVING enabled,my sending process is:
///////////////////////////////////////////////////////////////////////////////////////////////////////////
MCU send data to 2640:
1.Set MRDY to low,delay 1ms;
2.Send data through uart ;
3.delay 1ms;
4.Set MRDY to high.
//////////////////////////////////////////////////////////////////////////////////////////////////////////
Test situation:
a.First I send "0123456789",2640 uart doesn't echo anything;
b.Then I send "xxxxxxxxxx",but 2640 uart echo "0123456789";
c.when I keep on sending,2640 allways delays one time to echo,but data will not be lost.
That is,whatever I send,2640 doesn't echo in real time,but delays to echo and no data is lost.It seems that 2640 comes to standby before completing sending back the received data.It restore the left data,and carries on to send back when next data comming,just like a shift register.
The question is ,where should I add the code to forbiden STANDBY,and when it completes transmition,re-enable STANDBY again.
Thanks.