ZSWatch icon indicating copy to clipboard operation
ZSWatch copied to clipboard

Implement Chronos App support

Open jakkra opened this issue 1 year ago • 10 comments

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 https://github.com/jakkra/ZSWatch/issues/254

jakkra avatar Apr 17 '24 07:04 jakkra

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?

fbiego avatar Apr 17 '24 15:04 fbiego

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.

jakkra avatar Apr 17 '24 16:04 jakkra

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

fbiego avatar Apr 17 '24 16:04 fbiego

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

fbiego avatar May 15 '24 06:05 fbiego

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.

jakkra avatar May 15 '24 11:05 jakkra

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.

fbiego avatar Jun 01 '24 13:06 fbiego

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!

jakkra avatar Jun 02 '24 17:06 jakkra