Why does my IF820 EZ-Serial not disconnect from an SPP connection?

There are two ways to disconnect from an SPP connection.


  1. Using the CYSPP pin
  2. Using the disconnect command in non-transparent mode


SPP can be controlled through the hardware GPIO on the EZ-Serial firmware platform for Laird Vela IF820 series module. Cyspp pin, which is also used for CYSPP, can be used to control the SPP connection state:

• By default, CYSPP pin is set in HIGH state.

• Once SPP connection is active, CYSPP pin will be set to LOW state.

• If CYSPP pin is set to HIGH by an ex ternal MCU while a SPP connection is active, the SPP connection will be terminated.

Note there is a jumper on the IF820 DVK that may be pulling CYSPP high which needs to be removed before using this method of disconnection.

In non-transparent mode, though SPP is connected, user still can use command mode. Data receive from SPP connection will arrive with event “.SPPD”. See the command protocol_set_parse_mode (SPPM, ID=1/1) to use non-transparent mode. See bt_disconnect (/BTDIS, ID=14/6)

Categories

Products