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.

Bluetopia - isssue in opening ports multiple time

Hi Sso,


I am using Bluetopia V1.2 with TIVA-TM4C129X.  We are currently running a SPPLE demo.  We are using android mobile as client and TIVA as server.

A strange thing I observed today is, SeriaPort ID is getting incremented consistently, if I close the serial port and reopen it. even though port number is same[Server port number is set to 1], serila port Id is incremented by 1 every time when I re open it. 

This is affecting our project in various stages.

Please can you help me in resolving the same?

6087.serialId_issue.txt
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#GAP_Event_Callback


 Auth = 0xa

atIOCapabilityResponse: 0xf8a9d0ad3082

@figleaf#GAP_Event_Callback


 Auth = 0x4

atIOCapabilityRequest: 0xf8a9d0ad3082

Auth success.

@figleaf#GAP_Event_Callback


 Auth = 0x5

atUserConfirmationRequest: 0xf8a9d0ad3082
User Confirmation: 625665
Respond with: UserConfirmationResponse

@figleaf#
 ManageStatus =17 31 0 192

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0xb
Un-handled Auth. Event.

@figleaf#GAP_Event_Callback


 Auth = 0x3
atLinkKeyCreation: 0xf8a9d0ad3082

 LinkKey = ox2003b732

@figleaf#
SPP Open Indication, ID: 0x0001, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 1 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0001, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

 ManageStatus =16 31 0 192

SPP Close Port, ID: 0x0001
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 1 SPPServerSDPHandle = 65536
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 3 ServerPortNum = 1 SPPServerSDPHandle = 65538l

OpenServer() done success.
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x0003, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 3 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0003, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0003
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 3 SPPServerSDPHandle = 65538
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 4 ServerPortNum = 1 SPPServerSDPHandle = 65539l

OpenServer() done success.

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x0004, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 4 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0004, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0004
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 4 SPPServerSDPHandle = 65539
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 5 ServerPortNum = 1 SPPServerSDPHandle = 65540l

OpenServer() done success.

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x0005, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 5 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0005, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0005
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 5 SPPServerSDPHandle = 65540
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 6 ServerPortNum = 1 SPPServerSDPHandle = 65541l

OpenServer() done success.

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x0006, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 6 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0006, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0006
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 6 SPPServerSDPHandle = 65541
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 7 ServerPortNum = 1 SPPServerSDPHandle = 65542l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x0007, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 7 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0007, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0007
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 7 SPPServerSDPHandle = 65542
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 8 ServerPortNum = 1 SPPServerSDPHandle = 65543l

OpenServer() done success.

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x0008, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 8 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0008, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0008
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 8 SPPServerSDPHandle = 65543
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 9 ServerPortNum = 1 SPPServerSDPHandle = 65544l

OpenServer() done success.

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x0009, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 9 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0009, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0009
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 9 SPPServerSDPHandle = 65544
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 10 ServerPortNum = 1 SPPServerSDPHandle = 65545l

OpenServer() done success.

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x000a, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 10 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x000a, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x000a
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 10 SPPServerSDPHandle = 65545
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 11 ServerPortNum = 1 SPPServerSDPHandle = 65546l

OpenServer() done success.

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x000b, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 11 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x000b, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x000b
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 11 SPPServerSDPHandle = 65546
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 12 ServerPortNum = 1 SPPServerSDPHandle = 65547l

OpenServer() done success.

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x000c, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 12 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x000c, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x000c
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 12 SPPServerSDPHandle = 65547
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 13 ServerPortNum = 1 SPPServerSDPHandle = 65548l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x000d, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 13 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x000d, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x000d
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 13 SPPServerSDPHandle = 65548
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 14 ServerPortNum = 1 SPPServerSDPHandle = 65549l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x000e, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 14 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x000e, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x000e
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 14 SPPServerSDPHandle = 65549
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 15 ServerPortNum = 1 SPPServerSDPHandle = 65550l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x000f, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 15 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x000f, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x000f
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 15 SPPServerSDPHandle = 65550
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 16 ServerPortNum = 1 SPPServerSDPHandle = 65551l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x0010, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 16 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0010, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

 ManageStatus =16 31 0 192

SPP Close Port, ID: 0x0010
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 16 SPPServerSDPHandle = 65551
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 17 ServerPortNum = 1 SPPServerSDPHandle = 65552l

OpenServer() done success.

SPP Open Indication, ID: 0x0011, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 17 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0011, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0011
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 17 SPPServerSDPHandle = 65552
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 18 ServerPortNum = 1 SPPServerSDPHandle = 65553l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x0012, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 18 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0012, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0012
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 18 SPPServerSDPHandle = 65553
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 19 ServerPortNum = 1 SPPServerSDPHandle = 65554l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x0013, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 19 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0013, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0013
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 19 SPPServerSDPHandle = 65554
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 20 ServerPortNum = 1 SPPServerSDPHandle = 65555l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x0014, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 20 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0014, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0014
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 20 SPPServerSDPHandle = 65555
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 21 ServerPortNum = 1 SPPServerSDPHandle = 65556l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x0015, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 21 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0015, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0015
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 21 SPPServerSDPHandle = 65556
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 22 ServerPortNum = 1 SPPServerSDPHandle = 65557l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x0016, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 22 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0016, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0016
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 22 SPPServerSDPHandle = 65557
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 23 ServerPortNum = 1 SPPServerSDPHandle = 65558l

OpenServer() done success.

 ManageStatus =16 31 0 192

SPP Open Indication, ID: 0x0017, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 23 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0017, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0017
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 23 SPPServerSDPHandle = 65558
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 24 ServerPortNum = 1 SPPServerSDPHandle = 65559l

OpenServer() done success.

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x0018, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 24 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0018, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0018
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 24 SPPServerSDPHandle = 65559
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 25 ServerPortNum = 1 SPPServerSDPHandle = 65560l

OpenServer() done success.

 ManageStatus =16 31 0 192
GAP_Event_Callback


 Auth = 0x0

atLinkKeyRequest: 0xf8a9d0ad3082

@figleaf#
SPP Open Indication, ID: 0x0019, Board: 0xf8a9d0ad3082.
 FindSPPPortIndex: 0
                     0-activeSerialPortId = 25 portIndex = 0

GAP_Query_Connection_Handle()-10 success.

SPP Port Status Indication: 0x0019, Status: 0x000b, Break Status: 0x0000, Length: 0x0000.

 parseCmd = 18 0x12

 ManageStatus =17 31 0 192

SPP Close Port, ID: 0x0019
 FindSPPPortIndex: 0
                      etPort_Close_Port_Indication 0 1
 FindSPPPortIndex: 0

 Closing Server portIndex = 0 ServerPortID = 1 LocalSerialPortID = 25 SPPServerSDPHandle = 65560
Server 1 Closed.
1-activeSerialPortId = 0
 FindSPPPortIndex: 0
                     FreePortAvailable FindFreeSPPPortIndex: 0,
Storing Info@OpenServer: Index:0 SerialPortID = 26 ServerPortNum = 1 SPPServerSDPHandle = 65561l

OpenServer() done success.

 ManageStatus =16 31 0 192