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

AIROC™ Bluetooth

TaYa_4777276
Level 2
First solution authored 25 sign-ins 10 replies posted
Level 2

I would like to continue to discuss about below.

https://community.infineon.com/t5/AIROC-Bluetooth/EZ-Serial-SPP-Multi-Port-Application-for-20xxx-dev...

I modified https://github.com/Infineon/mtb-example-btsdk-rfcomm-spp-multi-port  as follows. But I could not connect to more than 2 devices. Could you please advise how to modify.

hci_spp.c
    1. Change "#define MAX_NUM_OF_SPP_CLIENTS" value from 2 to 4
    2. Add "wiced_bt_spp_reg_t spp_reg3" and "wiced_bt_spp_reg_t spp_reg4"
    3. Add "wiced_bt_spp_startup(&spp_reg3);" and "wiced_bt_spp_startup(&spp_reg3);" in "void hci_spp_init()"


wiced_bt_cfg.c
    4. Change "Maximum Number of simultaneous RFCOMM ports/connections" from 2 to 4 in "const wiced_bt_cfg_settings_t wiced_bt_cfg_settings ="


spp_multi_port.h
    5. Add "#define SPP_RFCOMM_SCN3 6" and "#define SPP_RFCOMM_SCN4 8"

 

Thanks,

Yasui

0 Likes
2 Replies
DheerajPK_41
Moderator
Moderator 750 replies posted 500 likes received 500 replies posted
Moderator

Hi,

Could you please share your modified example code as well? 

Thanks,

-Dheeraj.P.K

0 Likes
TaYa_4777276
Level 2
First solution authored 25 sign-ins 10 replies posted
Level 2

Hi Dheeraj.P.K,

Thank you for your reply.

I attached the hci_spp.zip file included hci_spp.c, spp_multi_port.h and wiced_bt_cfg.c. You can see modified code by grepping of "Yasui". Please confirm it and advise.

Thanks,

Yasui

0 Likes