Status of Bluetooth for ESP32

Posted on
  • I spend lot of days to get Bluetooth up and running in a very first simple step
    So is time to give a first status.
    To be open, I'm not sure, we will ever get it running in a nice way.
    Memory consumption in binary file and in RAM is huuuuge

    This is what I did in some short steps:

    1. got the example from esp-idf for UART-Server running
    2. got connected from my mobile, using nRF Toolbox
    3. rebuilt source and added to Espruino/targets/ESP32
    4. got huge binary, up to 1400KB
    5. created a new partition table to support this big application size
    6. flashed and got "no heap" and reset, reset, ....
    7. changed config and removed classic Bluetooth and some other memory eater
    8. tons of problems, sometimes even without any error message
    9. had to reduce jsvars from 5000 down to 2000 and now its working

    There is still no functionality available in Javascript, and UART is receiving data only.
    Question is, should I spend more time on this, or wait for availibility of breadboards with ESP32 wrover which has additional PSRAM.

  • Hi @JumJum
    Well at least it is progress of sorts. Which ever way you go, it would be great to capture what you have learnt, so we can get back to this point later...

    So, perhaps start a new branch esp32-ble and put the espruino changes under that, and also a new branch under espruino build tools with the same name, that will capture the partition changes and sdkconfig changes.

    I can get this all working with Travis if you like - then if we want to return to this point, or someone else want to pick up the gauntlet, we have a starting point.

    I think the bluedroid libraries might be quite large - but at the end of the day there is plenty of flash, it's the ram there the issue.

    It would be great to get it working, as a ble to wifi bridge would be awesome.

    Contact me on gitter if you would like some help.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Status of Bluetooth for ESP32

Posted by Avatar for JumJum @JumJum

Actions