This is the unfilterd log for Serial1.Connect3()
GC_FOR_MALLOC freed 98K, 50% free 3432K/6855K, external 1596K/2108K, paused 67ms
Grow heap (frag case) to 7.507MB for 87396-byte allocation
GC_FOR_MALLOC freed 5K, 50% free 3512K/6983K, external 1596K/2108K, paused 14ms
GC_EXPLICIT freed 69K, 53% free 2570K/5379K, external 1596K/2108K, paused 57ms
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '40a86df0 BlueTooth.Test/BlueTooth.Test.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '40a86df0 BlueTooth.Test/BlueTooth.Test.main (server)'
create BluetoothSocket: type = 1, fd = -1, uuid = [null], port = 18
blz20_wrp_socket: fam 31, type 1, prot BTPROTO_RFCOMM
wrp_wsock_create: BTS
wrp_alloc_new_sock: wrp_alloc_new_sock sub 16
wrp_wsock_create: 47
btsk_alloc_add: success
btsk_dump_list: fd (53:53), bta 1, rc 17, wflags 0x20, cflags 0x2, port 9049
btsk_dump_list: fd (-1:47), bta -1, rc 0, wflags 0x0, cflags 0x0, port 0
blz20_wrp_socket: return 47
blz20_wrp_setsockopt: fd (-1:47), bta -1, rc 0, wflags 0x0, cflags 0x0, port 0
blz20_wrp_setsockopt: configure rfcomm lm mode 0x26, (master:0, auth 1, enc 1)
blz20_wrp_setsockopt: success
blz20_wrp_setsockopt: fd (-1:47), bta -1, rc 0, wflags 0x0, cflags 0x0, port 0
blz20_wrp_setsockopt: configure rfcomm sndbuf len 71680 bytes
blz20_wrp_setsockopt: success
asocket_init
blz20_wrp_fcntl: s 47, cmd 3
blz20_wrp_fcntl: fd (-1:47), bta -1, rc 0, wflags 0x0, cflags 0x0, port 0
blz20_wrp_fcntl: s 47, cmd 4
blz20_wrp_fcntl: fd (-1:47), bta -1, rc 0, wflags 0x0, cflags 0x0, port 0
blz20_wrp_fcntl: transparant fcntl
blz20_wrp_fcntl: s 63, cmd 3
blz20_wrp_fcntl: wsock not found, pass through transparantly
blz20_wrp_fcntl: s 63, cmd 4
blz20_wrp_fcntl: wsock not found, pass through transparantly
blz20_set_asocket: success (47,62,63)
asocket_connect
blz20_wrp_connect: s 47
blz20_wrp_connect: fd (-1:47), bta -1, rc 0, wflags 0x0, cflags 0x0, port 0
__connect_prot_rfcomm: connecting to... 8baa695f2200, rc chan 18
__connect_prot_rfcomm: non blocking mode
send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_BTS_RFC_CON_REQ (BTS) 23 pbytes (hdl 52)
Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40a130e8
>>> START GKI_timer_update(), wake_lock_count:1
>>> RESTARTED GKI_timer_update(): run_cond: 1
btlif_bts_api_ctrl_cb: btlif_bts_api_ctrl_cb : id BTLIF_BTS_RFC_CON_REQ (4477) on hdl 29
bts_chan_alloc_add: success (tot 2)
wrp_alloc_dynamicport: allocated port 9050 (s:47) (sub 1)
bts_chan_dump_all: ### channel list ###
bts_chan_dump_all: type 0, dhdl -1, bta_hdl 1, scn 17, phdl 65535, lstpnd 0, 53:-1 (L

)
bts_chan_dump_all: type 0, dhdl -1, bta_hdl 4660, scn 18, phdl 65535, lstpnd 0, -1:47 (L

)
btlif_rfc_connect_req: bts_rfcomm_connect_req : bd 00225f69aa8b, sec_mask 30, role 1, scn 18, btlifport 9050
jw_if_rfcomm_cl_cback: jw_if_rfcomm_cl_cback event=BTA_JV_RFCOMM_CL_INIT_EVT
jv_rfc_cl_init_evt: CL init status: 0, handle:2, security id: 53
blz20_wrp_connect: success
blz20_wrp_poll: nfds 2, timeout -1 ms
blz20_wrp_poll: pending connect fd (-1:47), bta -1, rc 18, wflags 0x0, cflags 0x1, port 0
btlif_wait_response: id(s) |BTLIF_BTS_RFC_CON_RSP|BTLIF_BTS_RFC_DISC_IND|
update start
updateBattery level:63 scale:100 status:3 health:2 present:true voltage: 3763 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
BAT. S:3 H:2
[*] Received suspend/ resume event but DUN is not up so neglect
acquire_wake_lock g_error=2
release_wake_lock g_error=2
notifyServiceState: 0 home E-Plus E-Plus 26203 EDGE CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false
onServiceStateChanged-S:0 home E-Plus E-Plus 26203 EDGE CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false
onDataActivity-D:0
notifyDataConnection: state=0 activeState=0 isDataConnectivityPossible=true reason=gprsAttached apn=null interfaceName=null networkType=2
onDataConnectionStateChanged-S:0 T:2
updateDataNetType-T:2
notifyDataConnection: state=0 activeState=0 isDataConnectivityPossible=true reason=networkTypeChanged apn=null interfaceName=null networkType=2
onDataConnectionStateChanged-S:0 T:2
updateDataNetType-T:2
[wssTelephonyData.java Line:153] getInstance PHONE_TYPE_GSM
GC_CONCURRENT freed 503K, 59% free 2842K/6855K, external 1596K/2108K, paused 2ms+3ms
info:x10
dtun-rx signal [DTUN_SIG_DM_LINK_UP] (id 51) len 12
send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 10 pbytes (hdl 18)
dtun_dm_sig_link_up()
dtun_dm_sig_link_up: dummy_handle = 258
event_filter: Received signal org.bluez.Device

ropertyChanged from /org/bluez/533/hci0/dev_00_22_5F_69_AA_8B
Device property changed:00:22:5F:69:AA:8Bproperty:Connected
ACL connected, mAclLinkCount = 1
btl_ifc_ctrl_rx: [BTL_IFC CTRL] recv BTLIF_BTS_RFC_DISC_IND (BTS) 11 pbytes (hdl 52)
btlif_ctrl_callback: btlif_ctrl_callback : msg id BTLIF_BTS_RFC_DISC_IND
btlif_process_disc_ind: disconnect ind status 19, rc chan 18
btlif_signal_event: fd (-1:47), bta -1, rc 18, wflags 0x900, cflags 0x4, port 0
btlif_signal_event: event BTLIF_BTS_RFC_DISC_IND matched
send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_BTS_RFC_DISC_IND_ACK (BTS) 9 pbytes (hdl 52)
btlif_wait_response: unblocked fd (-1:47), bta -1, rc 18, wflags 0x100, cflags 0x4, port 0
blz20_wrp_poll: connection was rejected
blz20_wrp_poll: set errno 111 (Connection refused) l.2098
jw_if_rfcomm_cl_cback: jw_if_rfcomm_cl_cback event=BTA_JV_RFCOMM_CLOSE_EVT
jv_rfc_close: hdl 2, status 1, remotely initiated 1, result 19, port status 1075875348
bts_free_tx_queue: freeing full tx queue
jv_rfc_close: scn 18, sock 47
send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_BTS_RFC_DISC_IND (BTS) 9 pbytes (hdl 29)
btlif_bts_api_ctrl_cb: btlif_bts_api_ctrl_cb : id BTLIF_BTS_RFC_DISC_IND_ACK (4482) on hdl 29
btlif_rfc_disc_ind_ack: scn remote 18
bts_chan_free: p = 0x213cd8, tx_que count:0
bts_free_tx_queue: freeing full tx queue
BTL_IF_CancelListener: [BTL_IFS] cancel datachannel listener [BTS], sub_port 1
BTL_IF_CancelListener: [BTL_IFS] subport not found
wrp_free_dynamicport: free dyn port 9050 (s:47), sub 1
bts_chan_free: success, bta hdl 2 (tot 1)
bts_chan_dump_all: ### channel list ###
bts_chan_dump_all: type 0, dhdl -1, bta_hdl 1, scn 17, phdl 65535, lstpnd 0, 53:-1 (L

)
Update broadcast received.
Timer 0x3->0x3|0x0
onSignalStrengthsChanged
BTA_DM_LINK_DOWN_EVT::bdaddr 00:22:5f:69:aa:8b reason x13
dtun-rx signal [DTUN_SIG_DM_LINK_DOWN] (id 49) len 13
dtun_dm_sig_link_down()
dtun_dm_sig_link_down device = 0xfb30 handle = 258 reason = 19
send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 11 pbytes (hdl 18)
event_filter: Received signal org.bluez.Device

ropertyChanged from /org/bluez/533/hci0/dev_00_22_5F_69_AA_8B
Device property changed:00:22:5F:69:AA:8Bproperty

isconnected
ACL disconnected, mAclLinkCount = 0
Received intent Intent { act=android.bluetooth.device.action.ACL_DISCONNECTED (has extras) }, device = 00:22:5F:69:AA:8B
...ACL disconnected
>>> STOP GKI_timer_update(), wake_lock_count:0
>>> SUSPENDED GKI_timer_update()
onSignalStrengthsChanged
update start
updateBattery level:63 scale:100 status:3 health:2 present:true voltage: 3781 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
BAT. S:3 H:2
onSignalStrengthsChanged
onSignalStrengthsChanged
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '40b463f0 BlueTooth.Test/BlueTooth.Test.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '40b463f0 BlueTooth.Test/BlueTooth.Test.main (server)'
Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@409155d8
Input event: value=1
isBackKeyPressed(), return value = false
updateBackKeyPressed(), pressed = true
Ulight 3->7|0
BUTTON : 105
Delivering key to current input target: action: 0, channel '4098b3e0 BlueTooth.Test/BlueTooth.Test.main (server)'
** Activity (main) Pause, UserClosed = true **
Delivering key to current input target: action: 1, channel '4098b3e0 BlueTooth.Test/BlueTooth.Test.main (server)'
** Activity (main) Resume **
No longer want com.android.packageinstaller (pid 1508): hidden #16
onSignalStrengthsChanged
Input event: value=0
isBackKeyPressed(), return value = true
updateBackKeyPressed(), pressed = false
Delivering key to current input target: action: 1, channel '40a47a70 anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.b4abridge.main (server)'