Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlueVoiceFullBand Not Working #9

Open
berlioan opened this issue Apr 6, 2020 · 5 comments
Open

BlueVoiceFullBand Not Working #9

berlioan opened this issue Apr 6, 2020 · 5 comments

Comments

@berlioan
Copy link

berlioan commented Apr 6, 2020

Hi,

I'm trying to use the BlueVoiceFullBand demo with a bluecoin, but It doesn't seem to work.
For which kind of STM32 device this demo was created? Are there some particularities we must know to make it work?

Best regards,

A.

@GiovanniVisentiniST
Copy link
Contributor

Hi,

yes the demo is not working with the BlueCoin board.
you need a ST32WB + FP-AUDBVLINKWB1 firmware

Best Regards
Giovanni

@berlioan
Copy link
Author

berlioan commented Apr 6, 2020

Hi thanks for your fast response.

I would like to make a full duplex audio communication between an Android device and a bluecoin. Even this example doesn't work, it's still possible to integrate these functions into the BlueVoiceFragment, but which layers must be changed to make it work?

Does the ST32WB + FP-AUDBVLINKWB1 allow a fullduplex communication with an Android device?

Which advantages the second option brings compared to the first one?

Thanks a lot

@GiovanniVisentiniST
Copy link
Contributor

Hi,

if you want to use the BlueCoin, using the ADPCM Codec you could have problem with the BLE Bandwidth since the codec is not the best.
if you can use the Opus codec, into FP-AUD-BVLINK2 there is an fw that permit you to have a full duplex communication, between 2 BlueCoin.

checking with my colleagues, using that fw you should do some changes.

app side:

  • change the decode settings to match the one used on the fw (currently we are using hight quality settings to transmit music, the BVLINK2 target voice transmission that require different settings to achieve an optimal bandwidth)
  • use the microphone to generate the stream that is encoded (now we are reading a wave file)
  • add the code to receive the opus stream and decoding it

into the fw side you have to:

  • check if the app behaviour is fine: the characteristics used to the app the same requested by the fw? do the fw enables the notification when discover the chars? (otherwise the full band demo will not appear between the demos).

we have in the pipeline to add the support for the full duplex, but it will not be done in a short term.

the big difference between the BlueCoin and the STM32WB is that the STM32WB is bluetooth 5 complaint, so you can have more bandwidth -> better audio quality.

@berlioan
Copy link
Author

berlioan commented Apr 8, 2020

Hi Giovanni,
Thanks for your help. I will try to do so.

@berlioan berlioan closed this as completed Apr 8, 2020
@berlioan
Copy link
Author

berlioan commented May 25, 2020

Hi Giovanni,
I succed to make the communication between Android and the STM32WB using the fullduplex demo but I still have an unresolved problem. If I force the « receiving mode » in the nucleo I’m able to start and stop the emission of audio. But I would like to avoid this by sending a control notification that will notify the Nucleo to change it state.
After some researches I found two methods that might correspond to what I need to do but couldn’t make it work. The first one is sendCommand(byte commandType,@nonnull byte[] data) from the feature class and the other one is notifyOnFeature(feat: Class, dataToWrite: ByteArray) from the NodeServer class.
So, could you tell me what’s the right way to send a control notification from the Android to the Nucleo ?
Thanks

@berlioan berlioan reopened this May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants