[EZ-Serial] SPP Multi Port Application for 20xxx devices

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

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

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
3 Replies
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Could you please share your modified example code as well? 

Thanks,

-Dheeraj.P.K

0 Likes
lock attach
Attachments are accessible only for community members.
TaYa_4777276
Level 2
Level 2
First solution authored 25 sign-ins 10 replies posted

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
advait_kulkarni
Moderator
Moderator
Moderator
25 likes received 250 sign-ins 100 solutions authored

Hi @TaYa_4777276 ,

We missed to follow-up on this issue. Can you please let us know if the issue is still open or is it fixed at your end?

Thanks and regards,

Advait Kulkarni

0 Likes