GithubHelp home page GithubHelp logo

Comments (5)

GiovanniVisentiniST avatar GiovanniVisentiniST commented on August 10, 2024

Hi,

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

Best Regards
Giovanni

from stblesensor_android.

berlioan avatar berlioan commented on August 10, 2024

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

from stblesensor_android.

GiovanniVisentiniST avatar GiovanniVisentiniST commented on August 10, 2024

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.

from stblesensor_android.

berlioan avatar berlioan commented on August 10, 2024

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

from stblesensor_android.

berlioan avatar berlioan commented on August 10, 2024

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

from stblesensor_android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.