Show two device in windows->settings->devices.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
gykim
Level 3
Level 3
25 sign-ins 10 replies posted 10 sign-ins

I'm trying to make hid-mouse.

When my board is connected to computer, show two devices.

The one of two is my mouse, the other is 'bluetooth peripheral device'.

(The 'bluetooth 주변 장치 ' is bluetooth peripheral device.)

image.png

It also shows in device manager.

image.png

 

This issue occur after update sdk 2.6 to 3.2.

How can I remove the 'Bluetooth peripheral device'?

0 Likes
1 Solution
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @gykim,

Thanks for waiting. The software team confirmed that this is expected.  LE Mouse (or your LE device name) is a device which is instantiated by the installed Bluetooth Peripheral Device driver. 

Regards,
Bragadeesh

View solution in original post

0 Likes
11 Replies
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello @gykim 

Could you please mention the device that you are using for your application?

Also, please provide more details regarding your application functionality, if possible, kindly attach your project with the next response. It would help us to understand why you are observing the 'Bluetooth' device in your device manager.

Best Regards
Ekta

0 Likes
gykim
Level 3
Level 3
25 sign-ins 10 replies posted 10 sign-ins

Hi Ekta.

 

I have got the 'https://github.com/Infineon/mtb-example-btsdk-hid-ble-mouse'.

And I enabled 'BLE_SUPPORT' only in makefile, disabled the function 'bredr_init()' as follows.

void bt_init()
{
    ble_init();
    //bredr_init();

 

#if defined(BLE_SUPPORT) && defined(BR_EDR_SUPPORT)
    wiced_hidd_app_init(BT_DEVICE_TYPE_BREDR_BLE);
#elif defined(BLE_SUPPORT)
    wiced_hidd_app_init(BT_DEVICE_TYPE_BLE);
#elif defined(BR_EDR_SUPPORT)
    wiced_hidd_app_init(BT_DEVICE_TYPE_BREDR);
#else
# error "Error: At least either BLE_SUPPORT or BR_EDR_SUPPORT must be defined"
#endif

 

    /* Allow peer to pair */
    wiced_bt_set_pairable_mode(WICED_TRUE, 0);
}
 
Regards,
gykim
0 Likes
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @gykim ,

Can you please check if the device is being operated in dual mode? ie, BLE and BR/EDR together?

Regards,
Bragadeesh
0 Likes

Hi Bragadeesh.

I'm sorry I have no idea to distinguish if it is dual mode.

But I used source from https://github.com/Infineon/mtb-example-btsdk-hid-ble-mouse.

And I enabled 'BLE_SUPPORT' only in makefile, disabled the function 'bredr_init()' as follows.
void bt_init()
{
ble_init();
//bredr_init();


#if defined(BLE_SUPPORT) && defined(BR_EDR_SUPPORT)
wiced_hidd_app_init(BT_DEVICE_TYPE_BREDR_BLE);
#elif defined(BLE_SUPPORT)
wiced_hidd_app_init(BT_DEVICE_TYPE_BLE);
#elif defined(BR_EDR_SUPPORT)
wiced_hidd_app_init(BT_DEVICE_TYPE_BREDR);
#else
# error "Error: At least either BLE_SUPPORT or BR_EDR_SUPPORT must be defined"
#endif


/* Allow peer to pair */
wiced_bt_set_pairable_mode(WICED_TRUE, 0);
}

Regards,
gykim

0 Likes
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @gykim , can you please let us know which device and eval board (or custom board) you are using to test this?

Regards,
Bragadeesh
0 Likes

Hi Bragadeesh.

I'm using custom board with cybt213043.

Regards,

gykim

0 Likes
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @gykim , Were you able to reproduce this issue in the eval board? Can you share your project here or list the modifications you have done in the example project? I'm seeing only one BT name if I enable BLE only mode.

Regards,
Bragadeesh
0 Likes

Hi Bragadeesh.

I don't have eval board.

The source code is https://github.com/Infineon/mtb-example-btsdk-hid-ble-mouse I mentioned above.

Modified points are:

1. mtb-example-btsdk-hid-ble-mouse/bt/bt.c

void bt_init()
{
ble_init();
//bredr_init();(modification)

#if defined(BLE_SUPPORT) && defined(BR_EDR_SUPPORT)
wiced_hidd_app_init(BT_DEVICE_TYPE_BREDR_BLE);
#elif defined(BLE_SUPPORT)
wiced_hidd_app_init(BT_DEVICE_TYPE_BLE);
#elif defined(BR_EDR_SUPPORT)
wiced_hidd_app_init(BT_DEVICE_TYPE_BREDR);
#else
# error "Error: At least either BLE_SUPPORT or BR_EDR_SUPPORT must be defined"
#endif

/* Allow peer to pair */
wiced_bt_set_pairable_mode(WICED_TRUE, 0);
}

 

2. mtb-example-btsdk-hid-ble-mouse/makefile

TARGET=CYBT-213043-EVAL

SUPPORTED_TARGETS = \
CYW920735Q60EVB-01 \
CYW920835M2EVB-01 \
CYBLE-343072-EVAL-M2B \
CYBLE-333074-EVAL-M2B \
CYBT-213043-EVAL

 

SLEEP_ALLOWED_DEFAULT=0

LED_SUPPORT_DEFAULT=0

CY_APP_DEFINES += -DCLICK_SUPPORT
CY_APP_DEFINES += -DCLICK_USE_BUTTON
CY_APP_DEFINES += -DUSE_COMBO_PAIRING(modification: add)

modification: remove -DMOTION_SUPPORT

 

3. mtb_shared/wiced_btsdk/dev-kit/bsp/TARGET_CYBT-213043-EVAL/release-v3.2.0/COMPONENT_bsp_design_modus/design.modus

 

<Block location="ioss[0].pin[2]">(modification, pin[0]->pin[2])
<Alias value="BTN_USER"/>
<Personality template="20x19_pin" version="1.0">
<Param id="Type" value="BUTTON"/>
<Param id="Index" value="1"/>
<Param id="DefaultState" value="GPIO_PIN_OUTPUT_LOW"/>
<Param id="PressedValue" value="GPIO_PIN_OUTPUT_HIGH"/>
<Param id="Control" value="GPIO_INPUT_ENABLE"/>
<Param id="PullMode" value="GPIO_PULL_DOWN"/>
<Param id="InterruptEnable" value="true"/>
<Param id="InterruptTrigger" value="GPIO_EN_INT_RISING_EDGE"/>
</Personality>
</Block>

 

4. mtb-example-btsdk-hid-ble-mouse/mouse/button.c

static void BUTTON_combo_key_timeout( uint32_t arg)(modification: add 'arg', because I meet compile error)
{
switch (button.state) {
case CONNECT_COMBO:
button.state = 0;
mouse_button_state_changed((uint8_t) button.state);
hidd_led_off(LED_RED);
app_enter_pairing();
break;
}
}

============================================================

That's all I modified.

 

Regards,

gykim.

0 Likes
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @gykim , I'm able to replicate your scenario as well. We are checking with our software team on why this occurs. We appreciate your patience.

Regards,
Bragadeesh
0 Likes

Hi Bragadeesh.

How can I check if this issue is solved?

Regards,

gykim.

0 Likes
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @gykim,

Thanks for waiting. The software team confirmed that this is expected.  LE Mouse (or your LE device name) is a device which is instantiated by the installed Bluetooth Peripheral Device driver. 

Regards,
Bragadeesh
0 Likes