This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Some problems of enabling POWERSAVING when using sdi

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.

  

  • Hi,
    It will probably be one of the files under "Serial Data Interface". Where are you echoing the characters? One workaround might be to just toggle the MRDY pin to force the echo.

    See the functions SDITL_relPM() and SDITL_setPM() to see how to set and release constraints on standby mode.

    Will need to take a closer look at this.
  • Hi,

    Maybe I have found the reason.Because when the connection state changes,I call SDISendtoUART() to send some state information to the MCU.If I comment the function,it works well.It means the way to send data through uart is not properly,I will try your suggestions,thanks!