-
Notifications
You must be signed in to change notification settings - Fork 52
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
Allow use of the datalogging feature when using BLE and a tablet #157
Comments
Questions:
|
Please see martinwork@e65ba17 I've added functions to MicroBitLog and created a BLE service to use them. I've named the BLE service "Utility", thinking it could be extended for other purposes, to avoid the RAM consumption of multiple separate services. My working copy of the iOS app is able to download the HTML file and display it in a webkit view to support sharing the CSV via the HTML buttons, but I'm thinking it might be better for the app to download the CSV and create the display locally, either using a local version of the HTML or natively. The HTML header is an overhead for the download.
For the BLE service, I have created separate config macros for inclusion in pairing & application mode (default yes & no).
I don't understand. Which flash?
I expect the MicroBitLog additions would always be there, but the BLE service could be created as required.
A user program can check for the BLE service with getShared() and create it with createShared.
Should MicroBitLog have a synchronous function to dump the entire CSV to serial? |
I am making project smart in that i have combined bluetooth and usb serial communication code. But if i run both simultaneously then its not working(getting error 020 sad icon). so could you help in that? |
Hi @Darshnik253, please get in touch with support via https://support.microbit.org. See this support article for details on the 020 error. |
Hello @Darshnik253. Posting the same request in multiple places is not helpful. Please create a new issue for your problem and give more details, especially sample code that shows it going wrong, what micro:bit (V1 or V2), etc.. Please pick an appropriate repo for the programming environment you are using (makecode, python, C++). If C++ then DAL for micro:bit V1 or here for V2 or both. |
Created #177 with basic functions to allow access to the data, test program etc. |
Created #178 with BLE service to read data. I don't know how to choose service and characteristic ID to add to the micro:bit base UUID. |
@JohnVidler would you be able to review these PRs for 0.2.38? |
I'm going to move this to 0.2.42, which is increasingly looking to be the 'DAPLink and Blutooth update' :) I'd rather spend the time getting this all correct and tested than rush it out right now for 0.2.41 |
Work being currently carried out in: |
@JohnVidler I thought this had been merged but in latest MakeCode with the alpha iOS app I still can't access the UtlityService. @martinwork can't either. Did we perhaps add the service but not configure it to build? |
This has been shipped in the v0.2.56 tag, but still need to test this, so will keep this issue open until we know we are good to enable it by default as indicated in: |
No more changes are required in the CODAL source code, so I'll close this as resolved and then any changes to the defaults or MakeCode/MicroPython will be covered in: |
At the moment, the log API is only useful to someone with a USB connection to their micro:bit. This means it doesn't work well for people on iOS or Android (or people using webUSB exclusively)
In order to resolve this, I think we should introduce
So, to extract the data even if also using radio, the user can activate pairing mode and ‘copy off’ their data.
For consistency, I’d like to also copy the HTML header and load the HTML file so that the experience is the same across browsers/systems - this might affect the way we expose the data in the log, or it may be something that the file itself does. I suspect from a user PoV it makes most sense to have a way to get data (say, also useful for working with webUSB access to the data, or doing some data processing on the board), and a separate way to get the whole HTML file.
@finneyj and @martinwork this I hope roughly lines up with separate conversations I've now had with both of you! Note that @martinwork has already filed #156 which I think is a good precursor to this.
The text was updated successfully, but these errors were encountered: