Skip to content

BLE Serial Example #19

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

Open
hongkai0818 opened this issue Sep 1, 2019 · 10 comments
Open

BLE Serial Example #19

hongkai0818 opened this issue Sep 1, 2019 · 10 comments
Labels
type: enhancement Proposed improvement

Comments

@hongkai0818
Copy link

Hi Possible to add an example on ble serial similar to
https://github.com/sandeepmistry/arduino-BLEPeripheral/tree/master/examples/serial

Thanks

@sandeepmistry
Copy link
Contributor

@tigoe any opinions on this?

@tigoe
Copy link

tigoe commented Sep 3, 2019

I don't love the idea, since BLE isn't serial, and it's confusing to users who think it should show up on their laptop/desktop machines as a serial port. Unless you have an app to pair it with that'll provide a "serial" connection, I think it'll only be confusing.

OTOH, if BLE 4 and 5 now supports real serial, and it can actually show up as a COM port on MacOS and Windows and Linux without having to modify the central device's OS, I am all for it.

@hongkai0818
Copy link
Author

Hi, thanks for your reply.
The reason I was asking that is because I have previously explored NRF52DK and Bluefruit NRF52. Both SDK provides examples on both BLE central and peripheral that are exposing to BLEUART (NUS). Current examples in the arduinoBLE do not have the BLEUART example using NUS. That might be good to add BLEUART examples in the future release of the library.

@ChrisKretschmer
Copy link

ChrisKretschmer commented Sep 19, 2019

Is it even possible to create a serial connection via regular BT 5 on the nano 33 ble sense?

I'm currently searching for a way to Transfer bulk data and had no luck so far :(

Just asking, because if BLE is the only (recommended) way, a tutorial would be nice..

@tigoe
Copy link

tigoe commented Sep 19, 2019 via email

@ChrisKretschmer
Copy link

Well... I'm building a data logger for model rockets...
The Arduino nano 33 Sense had the perfect fit for me, but i thought that BLE might be the best idea to get the data from the Arduino after recovery...

so we're talking about not more than a few KB if done correctly i think.

I'm currently experimenting with the notification feature to push the values through, but it feels like im abusing it...

@tigoe
Copy link

tigoe commented Sep 20, 2019 via email

@ChrisKretschmer
Copy link

one last question (and i know i'm abusing this topic right now :D)

I have a struct for my logging data points - BLECharacteristic are typed... the largest thing i can get is BLELongCharacteristic or something like that, but I want to transfer my struct as a byte array...

how would I manage that?
I think, there will be others with this problem...

@tigoe
Copy link

tigoe commented Sep 21, 2019 via email

@ChrisKretschmer
Copy link

Thank you all for your help - got it all working.

For anyone who is interested - my code is in https://github.com/adastra-rocketry/adastra-telemetry/tree/master/ArduinoNano33BLESense/Telemetry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

5 participants