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.

DEFAULT_HID_IDLE_TIMEOUT value set to zero(TI' ble remote controller)



Project: HIDAdvRemote

BLE STACK:1.4.0

HW: TI' ble remote controller

I want  not to send to disconnect command with at settopbox or smartphone. so I set to zero "DEFAULT_HID_IDLE_TIMEOUT"

But Gallaxy S4 and Common Moblie phone is disconnected with ti's TI' ble remote controller.

TI's HIDAdvRemoteDongle has no problem. It keep to ble link.

I adjust to link supervison timeout and slave lattency. but Gallaxy S4 still disconnected.

How can  keep to ble link?

Br

YJ KIM

  • Hello,

    What app are you using on your Android device to connect the BLE RC? Some Android devices will not keep the connection up if you initiate the connection from Settings. This is phone specific behavior, so you'll need to follow up with your phone's manufacture for more details.

    Best wishes
  • Hello,

    It is android default bluetooth app(pre-intalled app). My connection setting is default hidAdvRemote app's setting(I change that only DEFAULT_HID_IDLE_TIMEOUT value).

    I attached btsnoop log file(It is tested another phone and Ti's hidRemote.)

    btsnoop_hci.log

    thank you

    BR

    YJ kim  

  • Hi

    Please change some parameters and test again

    from

    #define DEFAULT_PAIRING_MODE                  GAPBOND_PAIRING_MODE_INITIATE

    to

    #define DEFAULT_PAIRING_MODE                  GAPBOND_PAIRING_MODE_WAIT_FOR_REQ

    from

    #define DEFAULT_ENABLE_UPDATE_REQUEST         TRUE

    to

    #define DEFAULT_ENABLE_UPDATE_REQUEST         FALSE

  • Hi

    I tested again. but It has same problem.

    Let me notice another imforation.

    Br

    yjkim.

  • Hi yjkim,
    Have you resolved the problem? Could you let me know it.Thank you.
  • Hi,

    What is "android default bluetooth app"? Can you try BLE Scanner? Also, I'm not able to read your 'snoop' log. Can you take a air sniffer trace using the TI Packet Sniffer or your favorite BLE air sniffer? Note that an HCI log is not an air sniffer trace.

    Best wishes
  • Hi

    You can download tool below.

    https://www.wireshark.org/

    http://www.fte.com/products/default.aspx/

    "android default bluetooth app" is  provided phone maiufactor internal app(setting--> bluetooth).

    BR

    yjkim

  • Hello yjkim,

    Please refer to my original response w.r.t use of the Android BT Settings (in addition to search the forum). Android Settings menu app will not sustain a connection since there is no need for it to do so - you'll need to use a dedicated BT app, such as BLE Scanner or your custom BLE app.

    Best wishes
  • Hello yjkim & JXS,

      Thany you for your reply.

      Maybe we talk about is not the same problem.

      In my opnion, TI's ARC is a system HID device for Android.So it can connect with a  mobile/tablet ,and work OK  ,It does not need other APP.

      Here is the problem:

    It can pair with mobile or tablet successly,auto connecting,and working OK.

    but when ARC is reset or re-power on ,it  will disconnect soon after connecting with mobile or tablet, and re-connecting, disconnect again, ...  To turn off  BT of the mobile or bablet, and then re-turn on  it , the ARC will connect with it stable ,and work OK .

     I have change the setting as following,but the problem is still existing.

    // HID idle timeout in msec; set to zero to disable timeout
    #define DEFAULT_HID_IDLE_TIMEOUT    0  //60000

    #define HID_KBD_FLAGS           HID_FLAGS_NORMALLY_CONNECTABLE  // HID_FLAGS_REMOTE_WAKE

    Could you give me some suggestiont?

    Thank you 

    Best Wishes