Skip to content
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

Implement Chronos App support #257

Open
jakkra opened this issue Apr 17, 2024 · 5 comments
Open

Implement Chronos App support #257

jakkra opened this issue Apr 17, 2024 · 5 comments

Comments

@jakkra
Copy link
Owner

jakkra commented Apr 17, 2024

I created a skeleton here: https://github.com/jakkra/ZSWatch/tree/jakkra_ble_chronos_app

Commands: https://github.com/fbiego/dt78/blob/master/DT78_COMMANDS.md

Find more info in #254

@fbiego
Copy link

fbiego commented Apr 17, 2024

I have forked the repo and will be working on it soon. Just a quick question, what name and service(s) does the watch advertise for ble discovery?

@jakkra
Copy link
Owner Author

jakkra commented Apr 17, 2024

I have forked the repo and will be working on it soon. Just a quick question, what name and service(s) does the watch advertise for ble discovery?

Just the NUS UUID. If you have a Linux computer you can run everything in Linux (even with Bluetooth) if you want to experiment :) https://github.com/jakkra/ZSWatch/blob/main/GETTING_STARTED.md#1-native-posix

Although Zephyr can be a bit daunting if you have not worked with it before.

@fbiego
Copy link

fbiego commented Apr 17, 2024

Yeah, haven't worked with Zephyr before but I'll try to set it up

@fbiego
Copy link

fbiego commented May 15, 2024

I haven't had any luck setting up Zephyr. Considering this, I'm contemplating rewriting the Chronos library in C.

@jakkra
Copy link
Owner Author

jakkra commented May 15, 2024

I haven't had any luck setting up Zephyr. Considering this, I'm contemplating rewriting the Chronos library in C.

I guess you turned on CPP support in Zephyr?
If you rewrite it in c, I suggest having a port layer with transmit and receive functions, and then your target platform can implement those however suitable.

Something like I did here https://github.com/jakkra/ZSWatch/blob/main/app/src/ble/ble_transport.h
That should make a c library quite flexible and portable.

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

No branches or pull requests

2 participants