aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md51
1 files changed, 51 insertions, 0 deletions
diff --git a/README.md b/README.md
index 931bc06..4a1a8f7 100644
--- a/README.md
+++ b/README.md
@@ -84,6 +84,57 @@ Heart rate possible responses:
Other responses (blood oxygen, blood pressure, blood sugar) have not been tested yet.
+### sendMessageByZk (push notification to watch)
+
+Must send `configDeviceSettings` first to enable notifications on the watch, otherwise messages will not display.
+
+Notification enable packet (write/6E40FC20)
+```
+byte[0] = 0x02 (command)
+byte[1] = 0x02 (subcommand)
+byte[2] = skype enabled (0/1)
+byte[3] = line enabled (0/1)
+byte[4] = long time sit reminder interval
+byte[5] = long time sit enabled (0/1)
+byte[6] = call notice enabled (0/1)
+byte[7] = SMS notice enabled (0/1)
+byte[8] = WeChat enabled (0/1)
+byte[9] = QQ enabled (0/1)
+byte[10] = KakaoTalk enabled (0/1)
+byte[11] = Facebook enabled (0/1)
+byte[12] = Twitter enabled (0/1)
+byte[13] = WhatsApp enabled (0/1)
+byte[14] = LinkedIn enabled (0/1)
+byte[15] = heart rate monitor (0/1)
+byte[16] = hands up screen on (0/1)
+byte[17] = heart rate loop monitor (0/1)
+byte[18] = heart rate monitor interval time
+byte[19] = Instagram enabled (0/1)
+byte[20] = other push enabled (0/1)
+byte[21] = Zalo (bit 0) + Messenger (bit 1) flags
+```
+
+Message packet structure (write/6E40FC20), one packet per 17 byte chunk:
+```
+byte[0] = 0x23 (command)
+byte[1] = chunk index (0, 1, 2...)
+byte[2] = notification type
+ 0x01 = SMS
+ 0x02 = WeChat
+ 0x03 = QQ
+ 0x04 = DingTalk
+ 0x05 = WhatsApp
+ 0x06 = Facebook
+ 0x07 = Twitter
+ 0x08 = LinkedIn
+byte[3-19] = up to 17 bytes of UTF-8 message text
+byte[20] = 0xFF end marker (last chunk only, appended after text)
+```
+
+Message format: `"Title: Content"`, title truncated to 23 bytes, content to 240 bytes.
+
+Send chunks sequentially with ~100ms delay between each.
+
### enterMakeDial (watch face)
Watch face header packet (write/6E40FC20)