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 · 7 comments
Open

Implement Chronos App support #257

jakkra opened this issue Apr 17, 2024 · 7 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.

@fbiego
Copy link

fbiego commented Jun 1, 2024

Hi @jakkra and @Kampi,

I have created PR #290, which still needs review, particularly regarding the implementation of the functions.

Could you please review the code and provide guidance on how to properly implement these functions? I'm currently unable to test on my end as I have not gotten Zephyr running yet.

@jakkra
Copy link
Owner Author

jakkra commented Jun 2, 2024

Hi @jakkra and @Kampi,

I have created PR #290, which still needs review, particularly regarding the implementation of the functions.

Could you please review the code and provide guidance on how to properly implement these functions? I'm currently unable to test on my end as I have not gotten Zephyr running yet.

Hi, very nice, I'm busy now for 2 days, but will look into it after that!

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