- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm working on a program that needs to open a SPP link and a SCO link. The pairing is successful. The SPP link can be opened successfully and data can be exchanged on the serial link.
For SCO, once the link is established (I can see on the other side that it is opened), the board resets. This is not because of the watchdog (I disabled it).
Voice path is configured for PCM in master mode:
pcm_config.mode = WICED_HAL_PCM_MODE;
pcm_config.role = WICED_HAL_PCM_MASTER;
pcm_config.pcm_param.lsbFirst = 0;
pcm_config.pcm_param.fillBits = 0;
pcm_config.pcm_param.fillData = 2;
pcm_config.pcm_param.fillNum = 0;
pcm_config.pcm_param.rightJustify = 0;
pcm_config.pcm_param.frame_type = WICED_HAL_PCM_FRAME_TYPE_SHORT;
wiced_hal_set_pcm_config(&pcm_config);
wiced_hal_pcm_select_pads(/* pcm_clk */ WICED_P25,
/* pcm_sync */ WICED_P26,
/* pcm_out */ WICED_P38,
/* pcm_in */ WICED_P34);
VoicePathSetup.path = WICED_BT_SCO_OVER_PCM;
wiced_bt_sco_setup_voice_path(/* pData */ &VoicePathSetup);
When the SCO link is open the LED D1 is switched on for a while, until the board resets.
Any suggestion on what may cause the reset?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @ileonardi ,
Are you routing SCO data over HCI? You need to call the hci_bcm_write_sco_pcm_int after the stack has initialized. Also make sure that your host is not programmed to send a hci reset command as that is generally the norm when using HCI. Also let us know if you are using some code example or have developed your own code.
Thanks and regards,
Advait Kulkarni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your answer.
No we don't use HCI. We develop embedded standalone platforms and the BT module is one of the hardware components. There is no host. We establish a BT connection with another standalone platform and exchange data on the SPP link and audio on SCO. PCM Audio is sent to/received from another component on the platform.
We used the mtb-example-btsdk-rfcomm-spp example and tried to add the SCO link.
Thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @ileonardi ,
Can you check the terminal logs at the device whether you are getting anything when the board resets? You can share those logs with us. If there are no logs, kindly share your modified project so we can try to debug it at our end.
Thanks and regards,
Advait Kulkarni.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
Here is the modified mtb-example-btsdk-rfcomm-spp sample. When SPP is established, it prepares SCO as acceptor. When the SCO is opened (the sample application accepts the link), the firmware crashes (in BtSpy we can see some characters displayed that looks like a crash dump).
To test the sample, we use on the other side a WT41 from Bluegiga that is embedded on some of our platforms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
Have you been able to reproduce the issue?
It is very important for us as we plan to use this device on most of our platforms.
Thanks for your help