AtomS3, UIFlow2 and BLE
-
@ajb2k3 Alas, its not looking good, UIFlow was update to Alpha21 but on any device other than the CoreS3 I get a reset when trying to use BLE functions.
-
@ajb2k3 you arrived to implement ble functions on core S3 ?
-
@syrinebh Not sure they work and no computer or phone seas a BT devices and cant get an ATOM S3 devices to run the code without resetting.
-
I was able to get the S3 devices to advertise as a BLE server, and write some values out via GATT transactions, and then scan/detect/connect/read those values from a BLE scanner app on my phone - just to prove that it worked.
Its BLE (bluetooth low energy) , not standard bluetooth BR/EDR.
I only determined how to send short (under 20 bytes) GATT messages. I dont think there is a layer to "stream" data using BLE in UIFlOW, just to setup as a BLE server, advertise, and do GATT transactions. BLE is really only meant for a low duty cycle (very short messages occasionally, not a constant connection and streaming data) but even so, that should be okay for sensors and short data packets.
You can read about GATT and BLE here https://learn.adafruit.com/introduction-to-bluetooth-low-energy/gatt
There are more mature arduino libraries for using BLE on ESP32 (ArduinoBLE@1.2.0 for example) if you want to go that route but I think UIFLOW2 is currently limited to the barest of implementations. But it seems to be slowly but surely filling out with more things added each week, and I think it is going to be awesome when it is more complete.
-
This post is deleted! -
@mtylerjr is it possible to scan devices with Core S3 ?
-
@syrinebh I really dont know. I got it working only responding to scan requests. I had problems trying to get it to work in the other direction, doing the scanning.
Sorry not much help.
-
@mtylerjr you mean that you were able to scan S3 devices with your phone and in the other direction (scanning devices with s3 devices) you were not able to find a solution ?
-
@syrinebh Yes. But I only spent maybe 2 hours total, experimenting, and that was with UIFlow2 version alpha 17 (maybe?)
Havent tried with the latest (alpha 21?)
-
@mtylerjr I'm already working with alpha 21